import * as pulumi from "@pulumi/pulumi"; /** * Use this data source to access information about an existing IotHub Device Provisioning Service Shared Access Policy * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = azure.iot.getDpsSharedAccessPolicy({ * name: "example", * resourceGroupName: exampleAzurermResourceGroup.name, * iothubDpsName: exampleAzurermIothubDps.name, * }); * ``` * * ## API Providers * * * This data source uses the following Azure API Providers: * * * `Microsoft.Devices` - 2022-02-05 */ export declare function getDpsSharedAccessPolicy(args: GetDpsSharedAccessPolicyArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getDpsSharedAccessPolicy. */ export interface GetDpsSharedAccessPolicyArgs { /** * Specifies the name of the IoT Hub Device Provisioning service to which the Shared Access Policy belongs. */ iothubDpsName: string; /** * Specifies the name of the IotHub Shared Access Policy. */ name: string; /** * Specifies the name of the resource group under which the IotHub Shared Access Policy resource exists. */ resourceGroupName: string; } /** * A collection of values returned by getDpsSharedAccessPolicy. */ export interface GetDpsSharedAccessPolicyResult { /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly iothubDpsName: string; readonly name: string; /** * The primary connection string of the Shared Access Policy. */ readonly primaryConnectionString: string; /** * The primary key used to create the authentication token. */ readonly primaryKey: string; readonly resourceGroupName: string; /** * The secondary connection string of the Shared Access Policy. */ readonly secondaryConnectionString: string; /** * The secondary key used to create the authentication token. */ readonly secondaryKey: string; } /** * Use this data source to access information about an existing IotHub Device Provisioning Service Shared Access Policy * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = azure.iot.getDpsSharedAccessPolicy({ * name: "example", * resourceGroupName: exampleAzurermResourceGroup.name, * iothubDpsName: exampleAzurermIothubDps.name, * }); * ``` * * ## API Providers * * * This data source uses the following Azure API Providers: * * * `Microsoft.Devices` - 2022-02-05 */ export declare function getDpsSharedAccessPolicyOutput(args: GetDpsSharedAccessPolicyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getDpsSharedAccessPolicy. */ export interface GetDpsSharedAccessPolicyOutputArgs { /** * Specifies the name of the IoT Hub Device Provisioning service to which the Shared Access Policy belongs. */ iothubDpsName: pulumi.Input; /** * Specifies the name of the IotHub Shared Access Policy. */ name: pulumi.Input; /** * Specifies the name of the resource group under which the IotHub Shared Access Policy resource exists. */ resourceGroupName: pulumi.Input; }