Interface CfnTaskDefinition.DeviceProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnTaskDefinition.DeviceProperty.Jsii$Proxy
Enclosing class:
CfnTaskDefinition

@Stability(Stable) public static interface CfnTaskDefinition.DeviceProperty extends software.amazon.jsii.JsiiSerializable
The Device property specifies an object representing a container instance host device.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.ecs.*;
 DeviceProperty deviceProperty = DeviceProperty.builder()
         .containerPath("containerPath")
         .hostPath("hostPath")
         .permissions(List.of("permissions"))
         .build();
 
  • Method Details

    • getContainerPath

      @Stability(Stable) @Nullable default String getContainerPath()
      The path inside the container at which to expose the host device.
    • getHostPath

      @Stability(Stable) @Nullable default String getHostPath()
      The path for the device on the host container instance.
    • getPermissions

      @Stability(Stable) @Nullable default List<String> getPermissions()
      The explicit permissions to provide to the container for the device.

      By default, the container has permissions for read , write , and mknod for the device.

    • builder

      @Stability(Stable) static CfnTaskDefinition.DeviceProperty.Builder builder()
      Returns:
      a CfnTaskDefinition.DeviceProperty.Builder of CfnTaskDefinition.DeviceProperty