IotHubDeviceUpdateInstanceArgs

data class IotHubDeviceUpdateInstanceArgs(val deviceUpdateAccountId: Output<String>? = null, val diagnosticEnabled: Output<Boolean>? = null, val diagnosticStorageAccount: Output<IotHubDeviceUpdateInstanceDiagnosticStorageAccountArgs>? = null, val iothubId: Output<String>? = null, val name: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<IotHubDeviceUpdateInstanceArgs>

Manages an IoT Hub Device Update Instance.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.iot.IotHubDeviceUpdateAccount;
import com.pulumi.azure.iot.IotHubDeviceUpdateAccountArgs;
import com.pulumi.azure.iot.IoTHub;
import com.pulumi.azure.iot.IoTHubArgs;
import com.pulumi.azure.iot.inputs.IoTHubSkuArgs;
import com.pulumi.azure.storage.Account;
import com.pulumi.azure.storage.AccountArgs;
import com.pulumi.azure.iot.IotHubDeviceUpdateInstance;
import com.pulumi.azure.iot.IotHubDeviceUpdateInstanceArgs;
import com.pulumi.azure.iot.inputs.IotHubDeviceUpdateInstanceDiagnosticStorageAccountArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("East US")
.build());
var exampleIotHubDeviceUpdateAccount = new IotHubDeviceUpdateAccount("exampleIotHubDeviceUpdateAccount", IotHubDeviceUpdateAccountArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.build());
var exampleIoTHub = new IoTHub("exampleIoTHub", IoTHubArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.sku(IoTHubSkuArgs.builder()
.name("S1")
.capacity("1")
.build())
.build());
var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.accountTier("Standard")
.accountReplicationType("LRS")
.build());
var exampleIotHubDeviceUpdateInstance = new IotHubDeviceUpdateInstance("exampleIotHubDeviceUpdateInstance", IotHubDeviceUpdateInstanceArgs.builder()
.deviceUpdateAccountId(exampleIotHubDeviceUpdateAccount.id())
.iothubId(exampleIoTHub.id())
.diagnosticEnabled(true)
.diagnosticStorageAccount(IotHubDeviceUpdateInstanceDiagnosticStorageAccountArgs.builder()
.connectionString(exampleAccount.primaryConnectionString())
.id(exampleAccount.id())
.build())
.tags(Map.of("key", "value"))
.build());
}
}

Import

IoT Hub Device Update Instance can be imported using the resource id, e.g.

$ pulumi import azure:iot/iotHubDeviceUpdateInstance:IotHubDeviceUpdateInstance example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.DeviceUpdate/accounts/account1/instances/instance1

Constructors

Link copied to clipboard
fun IotHubDeviceUpdateInstanceArgs(deviceUpdateAccountId: Output<String>? = null, diagnosticEnabled: Output<Boolean>? = null, diagnosticStorageAccount: Output<IotHubDeviceUpdateInstanceDiagnosticStorageAccountArgs>? = null, iothubId: Output<String>? = null, name: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Functions

Link copied to clipboard
open override fun toJava(): IotHubDeviceUpdateInstanceArgs

Properties

Link copied to clipboard
val deviceUpdateAccountId: Output<String>? = null

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.

Link copied to clipboard
val diagnosticEnabled: Output<Boolean>? = null

Whether the diagnostic log collection is enabled. Possible values are true and false. Defaults to false.

Link copied to clipboard

A diagnostic_storage_account block as defined below.

Link copied to clipboard
val iothubId: Output<String>? = null

Specifies the ID of the IoT Hub associated with the IoT Hub Device Update Instance. Changing this forces a new resource to be created.

Link copied to clipboard
val name: Output<String>? = null

Specifies the name which should be used for this IoT Hub Device Update Instance. Changing this forces a new resource to be created.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

A mapping of tags which should be assigned to the IoT Hub Device Update Instance.