Io TRole Args
data class IoTRoleArgs(val computeResource: Output<ComputeResourceArgs>? = null, val deviceName: Output<String>? = null, val hostPlatform: Output<Either<String, PlatformType>>? = null, val ioTDeviceDetails: Output<IoTDeviceInfoArgs>? = null, val ioTEdgeAgentInfo: Output<IoTEdgeAgentInfoArgs>? = null, val ioTEdgeDeviceDetails: Output<IoTDeviceInfoArgs>? = null, val kind: Output<String>? = null, val name: Output<String>? = null, val resourceGroupName: Output<String>? = null, val roleStatus: Output<Either<String, RoleStatus>>? = null, val shareMappings: Output<List<MountPointMapArgs>>? = null) : ConvertibleToJava<IoTRoleArgs>
Compute role. Azure REST API version: 2022-03-01. Prior API version in Azure Native 1.x: 2020-12-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 = "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 = "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 = "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 = "Enabled",
ShareMappings = new[] {},
});
});
Content copied to clipboard
package main
import (
"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("Linux"),
IoTDeviceDetails: databoxedge.IoTDeviceInfoResponse{
Authentication: interface{}{
SymmetricKey: interface{}{
ConnectionString: &databoxedge.AsymmetricEncryptedSecretArgs{
EncryptionAlgorithm: pulumi.String("AES256"),
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.IoTDeviceInfoResponse{
Authentication: interface{}{
SymmetricKey: interface{}{
ConnectionString: &databoxedge.AsymmetricEncryptedSecretArgs{
EncryptionAlgorithm: pulumi.String("AES256"),
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("Enabled"),
ShareMappings: databoxedge.MountPointMapArray{
},
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
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 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(Map.ofEntries(
Map.entry("authentication", Map.of("symmetricKey", Map.of("connectionString", Map.ofEntries(
Map.entry("encryptionAlgorithm", "AES256"),
Map.entry("encryptionCertThumbprint", "348586569999244"),
Map.entry("value", "Encrypted<<HostName=iothub.azure-devices.net;DeviceId=iotDevice;SharedAccessKey=2C750FscEas3JmQ8Bnui5yQWZPyml0/UiRt1bQwd8=>>")
)))),
Map.entry("deviceId", "iotdevice"),
Map.entry("ioTHostHub", "iothub.azure-devices.net")
))
.ioTEdgeDeviceDetails(Map.ofEntries(
Map.entry("authentication", Map.of("symmetricKey", Map.of("connectionString", Map.ofEntries(
Map.entry("encryptionAlgorithm", "AES256"),
Map.entry("encryptionCertThumbprint", "1245475856069999244"),
Map.entry("value", "Encrypted<<HostName=iothub.azure-devices.net;DeviceId=iotEdge;SharedAccessKey=2C750FscEas3JmQ8Bnui5yQWZPyml0/UiRt1bQwd8=>>")
)))),
Map.entry("deviceId", "iotEdge"),
Map.entry("ioTHostHub", "iothub.azure-devices.net")
))
.kind("IOT")
.name("IoTRole1")
.resourceGroupName("GroupForEdgeAutomation")
.roleStatus("Enabled")
.shareMappings()
.build());
}
}
Content copied to clipboard
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}
Content copied to clipboard
Constructors
Link copied to clipboard
fun IoTRoleArgs(computeResource: Output<ComputeResourceArgs>? = null, deviceName: Output<String>? = null, hostPlatform: Output<Either<String, PlatformType>>? = null, ioTDeviceDetails: Output<IoTDeviceInfoArgs>? = null, ioTEdgeAgentInfo: Output<IoTEdgeAgentInfoArgs>? = null, ioTEdgeDeviceDetails: Output<IoTDeviceInfoArgs>? = null, kind: Output<String>? = null, name: Output<String>? = null, resourceGroupName: Output<String>? = null, roleStatus: Output<Either<String, RoleStatus>>? = null, shareMappings: Output<List<MountPointMapArgs>>? = null)