Interface Device
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
Device.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-17T14:40:50.500Z")
@Stability(Stable)
public interface Device
extends software.amazon.jsii.JsiiSerializable
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.*;
Device device = Device.builder()
.hostPath("hostPath")
// the properties below are optional
.containerPath("containerPath")
.permissions(List.of(DevicePermission.READ))
.build();
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Device.Builderbuilder()default StringThe path inside the container at which to expose the host device.The path for the device on the host container instance.default List<DevicePermission> The explicit permissions to provide to the container for the device.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getHostPath
The path for the device on the host container instance. -
getContainerPath
The path inside the container at which to expose the host device.Default: Same path as the host
-
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.
Default: Readonly
-
builder
- Returns:
- a
Device.BuilderofDevice
-