import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Use this data source to access information about an existing IoTHub. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = azure.iot.getIotHub({ * name: "existing", * resourceGroupName: "existing", * }); * export const id = example.then(example => example.id); * ``` */ export declare function getIotHub(args: GetIotHubArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getIotHub. */ export interface GetIotHubArgs { /** * The name of this IoTHub. */ name: string; /** * The name of the Resource Group where the IoTHub exists. */ resourceGroupName: string; /** * A mapping of tags which should be assigned to the IoTHub. */ tags?: { [key: string]: string; }; } /** * A collection of values returned by getIotHub. */ export interface GetIotHubResult { /** * The Hostname of the IoTHub. */ readonly hostname: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * A `identity` block as defined below. */ readonly identities: outputs.iot.GetIotHubIdentity[]; readonly name: string; readonly resourceGroupName: string; readonly tags?: { [key: string]: string; }; } /** * Use this data source to access information about an existing IoTHub. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = azure.iot.getIotHub({ * name: "existing", * resourceGroupName: "existing", * }); * export const id = example.then(example => example.id); * ``` */ export declare function getIotHubOutput(args: GetIotHubOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getIotHub. */ export interface GetIotHubOutputArgs { /** * The name of this IoTHub. */ name: pulumi.Input; /** * The name of the Resource Group where the IoTHub exists. */ resourceGroupName: pulumi.Input; /** * A mapping of tags which should be assigned to the IoTHub. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; }