Interface Device
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
Device.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-12-27T17:01:57.815Z")
@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.batch.*; Device device = Device.builder() .hostPath("hostPath") // the properties below are optional .containerPath("containerPath") .permissions(List.of(DevicePermission.READ)) .build();
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Device.Builder
builder()
default String
The 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.Builder
ofDevice
-