Class IoTRole
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.azurenative.databoxedge.IoTRole
-
public class IoTRole extends com.pulumi.resources.CustomResource
Compute role. Azure REST API version: 2022-03-01. Prior API version in Azure Native 1.x: 2020-12-01. ## Example Usage ### RolePut ```java 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. ```sh $ pulumi import azure-native:databoxedge:IoTRole IoTRole1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/roles/{name} ```
-
-
Constructor Summary
Constructors Constructor Description IoTRole(java.lang.String name)
IoTRole(java.lang.String name, IoTRoleArgs args)
IoTRole(java.lang.String name, IoTRoleArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.util.Optional<ComputeResourceResponse>>
computeResource()
static IoTRole
get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.lang.String>
hostPlatform()
com.pulumi.core.Output<java.lang.String>
hostPlatformType()
com.pulumi.core.Output<IoTDeviceInfoResponse>
ioTDeviceDetails()
com.pulumi.core.Output<java.util.Optional<IoTEdgeAgentInfoResponse>>
ioTEdgeAgentInfo()
com.pulumi.core.Output<IoTDeviceInfoResponse>
ioTEdgeDeviceDetails()
com.pulumi.core.Output<java.lang.String>
kind()
com.pulumi.core.Output<java.lang.String>
name()
com.pulumi.core.Output<java.lang.String>
roleStatus()
com.pulumi.core.Output<java.util.Optional<java.util.List<MountPointMapResponse>>>
shareMappings()
com.pulumi.core.Output<SystemDataResponse>
systemData()
com.pulumi.core.Output<java.lang.String>
type()
-
-
-
Constructor Detail
-
IoTRole
public IoTRole(java.lang.String name)
- Parameters:
name
- The _unique_ name of the resulting resource.
-
IoTRole
public IoTRole(java.lang.String name, IoTRoleArgs args)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.
-
IoTRole
public IoTRole(java.lang.String name, IoTRoleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.options
- A bag of options that control this resource's behavior.
-
-
Method Detail
-
computeResource
public com.pulumi.core.Output<java.util.Optional<ComputeResourceResponse>> computeResource()
- Returns:
- Resource allocation
-
hostPlatform
public com.pulumi.core.Output<java.lang.String> hostPlatform()
- Returns:
- Host OS supported by the IoT role.
-
hostPlatformType
public com.pulumi.core.Output<java.lang.String> hostPlatformType()
- Returns:
- Platform where the Iot runtime is hosted.
-
ioTDeviceDetails
public com.pulumi.core.Output<IoTDeviceInfoResponse> ioTDeviceDetails()
- Returns:
- IoT device metadata to which data box edge device needs to be connected.
-
ioTEdgeAgentInfo
public com.pulumi.core.Output<java.util.Optional<IoTEdgeAgentInfoResponse>> ioTEdgeAgentInfo()
- Returns:
- Iot edge agent details to download the agent and bootstrap iot runtime.
-
ioTEdgeDeviceDetails
public com.pulumi.core.Output<IoTDeviceInfoResponse> ioTEdgeDeviceDetails()
- Returns:
- IoT edge device to which the IoT role needs to be configured.
-
kind
public com.pulumi.core.Output<java.lang.String> kind()
- Returns:
- Role type. Expected value is 'IOT'.
-
name
public com.pulumi.core.Output<java.lang.String> name()
- Returns:
- The object name.
-
roleStatus
public com.pulumi.core.Output<java.lang.String> roleStatus()
- Returns:
- Role status.
-
shareMappings
public com.pulumi.core.Output<java.util.Optional<java.util.List<MountPointMapResponse>>> shareMappings()
- Returns:
- Mount points of shares in role(s).
-
systemData
public com.pulumi.core.Output<SystemDataResponse> systemData()
- Returns:
- Metadata pertaining to creation and last modification of Role
-
type
public com.pulumi.core.Output<java.lang.String> type()
- Returns:
- The hierarchical type of the object.
-
get
public static IoTRole get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name
- The _unique_ name of the resulting resource.id
- The _unique_ provider ID of the resource to lookup.options
- Optional settings to control the behavior of the CustomResource.
-
-