IoTRoleArgs

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. API Version: 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[] {},
});
});
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());
}
}

Import

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

$ pulumi import azure-native:databoxedge:IoTRole IoTRole1 /subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/GroupForEdgeAutomation/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/testedgedevice/roles/IoTRole1

Constructors

Link copied to clipboard
constructor(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)

Properties

Link copied to clipboard

Resource allocation

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

The device name.

Link copied to clipboard
val hostPlatform: Output<Either<String, PlatformType>>? = null

Host OS supported by the IoT role.

Link copied to clipboard
val ioTDeviceDetails: Output<IoTDeviceInfoArgs>? = null

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>? = null

Role type. Expected value is 'IOT'.

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

The role name.

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

The resource group name.

Link copied to clipboard
val roleStatus: Output<Either<String, RoleStatus>>? = null

Role status.

Link copied to clipboard
val shareMappings: Output<List<MountPointMapArgs>>? = null

Mount points of shares in role(s).

Functions

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