@Stability(value=Stable)
public static interface CfnTaskDefinition.DeviceProperty
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.*;
DeviceProperty deviceProperty = DeviceProperty.builder()
.containerPath("containerPath")
.hostPath("hostPath")
.permissions(List.of("permissions"))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnTaskDefinition.DeviceProperty.Builder
A builder for
CfnTaskDefinition.DeviceProperty |
static class |
CfnTaskDefinition.DeviceProperty.Jsii$Proxy
An implementation for
CfnTaskDefinition.DeviceProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnTaskDefinition.DeviceProperty.Builder |
builder() |
default String |
getContainerPath()
The path inside the container at which to expose the host device.
|
default String |
getHostPath()
The path for the device on the host container instance.
|
default List<String> |
getPermissions()
The explicit permissions to provide to the container for the device.
|
@Stability(value=Stable) @Nullable default String getContainerPath()
@Stability(value=Stable) @Nullable default String getHostPath()
@Stability(value=Stable) @Nullable default List<String> getPermissions()
By default, the container has permissions for read , write , and mknod for the device.
@Stability(value=Stable) static CfnTaskDefinition.DeviceProperty.Builder builder()
Copyright © 2022. All rights reserved.