IoTRole

class IoTRole : KotlinCustomResource

Compute role. Uses Azure REST API version 2023-07-01. In version 2.x of the Azure Native provider, it used API version 2022-03-01.

Example Usage

RolePut

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var ioTRole = new AzureNative.DataBoxEdge.IoTRole("ioTRole", new()
{
DeviceName = "testedgedevice",
HostPlatform = AzureNative.DataBoxEdge.PlatformType.Linux,
IoTDeviceDetails = new AzureNative.DataBoxEdge.Inputs.IoTDeviceInfoArgs
{
Authentication = new AzureNative.DataBoxEdge.Inputs.AuthenticationArgs
{
SymmetricKey = new AzureNative.DataBoxEdge.Inputs.SymmetricKeyArgs
{
ConnectionString = new AzureNative.DataBoxEdge.Inputs.AsymmetricEncryptedSecretArgs
{
EncryptionAlgorithm = AzureNative.DataBoxEdge.EncryptionAlgorithm.AES256,
EncryptionCertThumbprint = "348586569999244",
Value = "Encrypted<<HostName=iothub.azure-devices.net;DeviceId=iotDevice;SharedAccessKey=2C750FscEas3JmQ8Bnui5yQWZPyml0/UiRt1bQwd8=>>",
},
},
},
DeviceId = "iotdevice",
IoTHostHub = "iothub.azure-devices.net",
},
IoTEdgeDeviceDetails = new AzureNative.DataBoxEdge.Inputs.IoTDeviceInfoArgs
{
Authentication = new AzureNative.DataBoxEdge.Inputs.AuthenticationArgs
{
SymmetricKey = new AzureNative.DataBoxEdge.Inputs.SymmetricKeyArgs
{
ConnectionString = new AzureNative.DataBoxEdge.Inputs.AsymmetricEncryptedSecretArgs
{
EncryptionAlgorithm = AzureNative.DataBoxEdge.EncryptionAlgorithm.AES256,
EncryptionCertThumbprint = "1245475856069999244",
Value = "Encrypted<<HostName=iothub.azure-devices.net;DeviceId=iotEdge;SharedAccessKey=2C750FscEas3JmQ8Bnui5yQWZPyml0/UiRt1bQwd8=>>",
},
},
},
DeviceId = "iotEdge",
IoTHostHub = "iothub.azure-devices.net",
},
Kind = "IOT",
Name = "IoTRole1",
ResourceGroupName = "GroupForEdgeAutomation",
RoleStatus = AzureNative.DataBoxEdge.RoleStatus.Enabled,
ShareMappings = new[] {},
});
});
package main
import (
databoxedge "github.com/pulumi/pulumi-azure-native-sdk/databoxedge/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := databoxedge.NewIoTRole(ctx, "ioTRole", &databoxedge.IoTRoleArgs{
DeviceName: pulumi.String("testedgedevice"),
HostPlatform: pulumi.String(databoxedge.PlatformTypeLinux),
IoTDeviceDetails: &databoxedge.IoTDeviceInfoArgs{
Authentication: &databoxedge.AuthenticationArgs{
SymmetricKey: &databoxedge.SymmetricKeyArgs{
ConnectionString: &databoxedge.AsymmetricEncryptedSecretArgs{
EncryptionAlgorithm: pulumi.String(databoxedge.EncryptionAlgorithmAES256),
EncryptionCertThumbprint: pulumi.String("348586569999244"),
Value: pulumi.String("Encrypted<<HostName=iothub.azure-devices.net;DeviceId=iotDevice;SharedAccessKey=2C750FscEas3JmQ8Bnui5yQWZPyml0/UiRt1bQwd8=>>"),
},
},
},
DeviceId: pulumi.String("iotdevice"),
IoTHostHub: pulumi.String("iothub.azure-devices.net"),
},
IoTEdgeDeviceDetails: &databoxedge.IoTDeviceInfoArgs{
Authentication: &databoxedge.AuthenticationArgs{
SymmetricKey: &databoxedge.SymmetricKeyArgs{
ConnectionString: &databoxedge.AsymmetricEncryptedSecretArgs{
EncryptionAlgorithm: pulumi.String(databoxedge.EncryptionAlgorithmAES256),
EncryptionCertThumbprint: pulumi.String("1245475856069999244"),
Value: pulumi.String("Encrypted<<HostName=iothub.azure-devices.net;DeviceId=iotEdge;SharedAccessKey=2C750FscEas3JmQ8Bnui5yQWZPyml0/UiRt1bQwd8=>>"),
},
},
},
DeviceId: pulumi.String("iotEdge"),
IoTHostHub: pulumi.String("iothub.azure-devices.net"),
},
Kind: pulumi.String("IOT"),
Name: pulumi.String("IoTRole1"),
ResourceGroupName: pulumi.String("GroupForEdgeAutomation"),
RoleStatus: pulumi.String(databoxedge.RoleStatusEnabled),
ShareMappings: databoxedge.MountPointMapArray{},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.databoxedge.IoTRole;
import com.pulumi.azurenative.databoxedge.IoTRoleArgs;
import com.pulumi.azurenative.databoxedge.inputs.IoTDeviceInfoArgs;
import com.pulumi.azurenative.databoxedge.inputs.AuthenticationArgs;
import com.pulumi.azurenative.databoxedge.inputs.SymmetricKeyArgs;
import com.pulumi.azurenative.databoxedge.inputs.AsymmetricEncryptedSecretArgs;
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 ioTRole = new IoTRole("ioTRole", IoTRoleArgs.builder()
.deviceName("testedgedevice")
.hostPlatform("Linux")
.ioTDeviceDetails(IoTDeviceInfoArgs.builder()
.authentication(AuthenticationArgs.builder()
.symmetricKey(SymmetricKeyArgs.builder()
.connectionString(AsymmetricEncryptedSecretArgs.builder()
.encryptionAlgorithm("AES256")
.encryptionCertThumbprint("348586569999244")
.value("Encrypted<<HostName=iothub.azure-devices.net;DeviceId=iotDevice;SharedAccessKey=2C750FscEas3JmQ8Bnui5yQWZPyml0/UiRt1bQwd8=>>")
.build())
.build())
.build())
.deviceId("iotdevice")
.ioTHostHub("iothub.azure-devices.net")
.build())
.ioTEdgeDeviceDetails(IoTDeviceInfoArgs.builder()
.authentication(AuthenticationArgs.builder()
.symmetricKey(SymmetricKeyArgs.builder()
.connectionString(AsymmetricEncryptedSecretArgs.builder()
.encryptionAlgorithm("AES256")
.encryptionCertThumbprint("1245475856069999244")
.value("Encrypted<<HostName=iothub.azure-devices.net;DeviceId=iotEdge;SharedAccessKey=2C750FscEas3JmQ8Bnui5yQWZPyml0/UiRt1bQwd8=>>")
.build())
.build())
.build())
.deviceId("iotEdge")
.ioTHostHub("iothub.azure-devices.net")
.build())
.kind("IOT")
.name("IoTRole1")
.resourceGroupName("GroupForEdgeAutomation")
.roleStatus("Enabled")
.shareMappings()
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:databoxedge:IoTRole IoTRole1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/roles/{name}

Properties

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

Link copied to clipboard

Resource allocation

Link copied to clipboard
val hostPlatform: Output<String>

Host OS supported by the IoT role.

Link copied to clipboard

Platform where the Iot runtime is hosted.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

IoT device metadata to which data box edge device needs to be connected.

Link copied to clipboard

Iot edge agent details to download the agent and bootstrap iot runtime.

Link copied to clipboard

IoT edge device to which the IoT role needs to be configured.

Link copied to clipboard
val kind: Output<String>

Role type. Expected value is 'IOT'.

Link copied to clipboard
val name: Output<String>

The object name.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val roleStatus: Output<String>

Role status.

Link copied to clipboard

Mount points of shares in role(s).

Link copied to clipboard

Metadata pertaining to creation and last modification of Role

Link copied to clipboard
val type: Output<String>

The hierarchical type of the object.

Link copied to clipboard
val urn: Output<String>