IoTRole

class IoTRole : KotlinCustomResource

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

Properties

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

Role configured on ASE resource

Link copied to clipboard
val type: Output<String>

The hierarchical type of the object.

Link copied to clipboard
val urn: Output<String>