@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.690Z") @Stability(value=Stable) public interface Device extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
Device.Builder
A builder for
Device |
static class |
Device.Jsii$Proxy
An implementation for
Device |
| Modifier and Type | Method and Description |
|---|---|
static Device.Builder |
builder() |
default String |
getContainerPath()
The path inside the container at which to expose the host device.
|
String |
getHostPath()
The path for the device on the host container instance.
|
default List<DevicePermission> |
getPermissions()
The explicit permissions to provide to the container for the device.
|
@Stability(value=Stable) @NotNull String getHostPath()
@Stability(value=Stable) @Nullable default String getContainerPath()
Default: Same path as the host
@Stability(value=Stable) @Nullable default List<DevicePermission> getPermissions()
By default, the container has permissions for read, write, and mknod for the device.
Default: Readonly
@Stability(value=Stable) static Device.Builder builder()
Device.Builder of DeviceCopyright © 2022. All rights reserved.