import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages an IoT Hub Device Update Instance. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "example-resources", * location: "East US", * }); * const exampleIotHubDeviceUpdateAccount = new azure.iot.IotHubDeviceUpdateAccount("example", { * name: "example", * resourceGroupName: example.name, * location: example.location, * }); * const exampleIoTHub = new azure.iot.IoTHub("example", { * name: "example", * resourceGroupName: example.name, * location: example.location, * sku: { * name: "S1", * capacity: 1, * }, * }); * const exampleAccount = new azure.storage.Account("example", { * name: "example", * resourceGroupName: example.name, * location: example.location, * accountTier: "Standard", * accountReplicationType: "LRS", * }); * const exampleIotHubDeviceUpdateInstance = new azure.iot.IotHubDeviceUpdateInstance("example", { * name: "example", * deviceUpdateAccountId: exampleIotHubDeviceUpdateAccount.id, * iothubId: exampleIoTHub.id, * diagnosticEnabled: true, * diagnosticStorageAccount: { * connectionString: exampleAccount.primaryConnectionString, * id: exampleAccount.id, * }, * tags: { * key: "value", * }, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.DeviceUpdate` - 2022-10-01 * * ## Import * * IoT Hub Device Update Instance can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:iot/iotHubDeviceUpdateInstance:IotHubDeviceUpdateInstance example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.DeviceUpdate/accounts/account1/instances/instance1 * ``` */ export declare class IotHubDeviceUpdateInstance extends pulumi.CustomResource { /** * Get an existing IotHubDeviceUpdateInstance resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: IotHubDeviceUpdateInstanceState, opts?: pulumi.CustomResourceOptions): IotHubDeviceUpdateInstance; /** * Returns true if the given object is an instance of IotHubDeviceUpdateInstance. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is IotHubDeviceUpdateInstance; /** * Specifies the ID of the IoT Hub Device Update Account where the IoT Hub Device Update Instance exists. Changing this forces a new resource to be created. */ readonly deviceUpdateAccountId: pulumi.Output; /** * Whether the diagnostic log collection is enabled. Possible values are `true` and `false`. Defaults to `false`. */ readonly diagnosticEnabled: pulumi.Output; /** * A `diagnosticStorageAccount` block as defined below. */ readonly diagnosticStorageAccount: pulumi.Output; /** * Specifies the ID of the IoT Hub associated with the IoT Hub Device Update Instance. Changing this forces a new resource to be created. */ readonly iothubId: pulumi.Output; /** * Specifies the name which should be used for this IoT Hub Device Update Instance. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * A mapping of tags which should be assigned to the IoT Hub Device Update Instance. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Create a IotHubDeviceUpdateInstance resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: IotHubDeviceUpdateInstanceArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering IotHubDeviceUpdateInstance resources. */ export interface IotHubDeviceUpdateInstanceState { /** * Specifies the ID of the IoT Hub Device Update Account where the IoT Hub Device Update Instance exists. Changing this forces a new resource to be created. */ deviceUpdateAccountId?: pulumi.Input; /** * Whether the diagnostic log collection is enabled. Possible values are `true` and `false`. Defaults to `false`. */ diagnosticEnabled?: pulumi.Input; /** * A `diagnosticStorageAccount` block as defined below. */ diagnosticStorageAccount?: pulumi.Input; /** * Specifies the ID of the IoT Hub associated with the IoT Hub Device Update Instance. Changing this forces a new resource to be created. */ iothubId?: pulumi.Input; /** * Specifies the name which should be used for this IoT Hub Device Update Instance. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * A mapping of tags which should be assigned to the IoT Hub Device Update Instance. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; } /** * The set of arguments for constructing a IotHubDeviceUpdateInstance resource. */ export interface IotHubDeviceUpdateInstanceArgs { /** * Specifies the ID of the IoT Hub Device Update Account where the IoT Hub Device Update Instance exists. Changing this forces a new resource to be created. */ deviceUpdateAccountId: pulumi.Input; /** * Whether the diagnostic log collection is enabled. Possible values are `true` and `false`. Defaults to `false`. */ diagnosticEnabled?: pulumi.Input; /** * A `diagnosticStorageAccount` block as defined below. */ diagnosticStorageAccount?: pulumi.Input; /** * Specifies the ID of the IoT Hub associated with the IoT Hub Device Update Instance. Changing this forces a new resource to be created. */ iothubId: pulumi.Input; /** * Specifies the name which should be used for this IoT Hub Device Update Instance. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * A mapping of tags which should be assigned to the IoT Hub Device Update Instance. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; }