Device
- class aws_cdk.aws_ecs.Device(*, host_path, container_path=None, permissions=None)
Bases:
object
A container instance host device.
- Parameters:
host_path (
str
) – The path for the device on the host container instance.container_path (
Optional
[str
]) – The path inside the container at which to expose the host device. Default: Same path as the hostpermissions (
Optional
[Sequence
[DevicePermission
]]) – 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. Default: Readonly
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_ecs as ecs device = ecs.Device( host_path="hostPath", # the properties below are optional container_path="containerPath", permissions=[ecs.DevicePermission.READ] )
Attributes
- container_path
The path inside the container at which to expose the host device.
- Default:
Same path as the host
- host_path
The path for the device on the host container instance.
- permissions
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.
- Default:
Readonly