@Stability(value=Stable)
public static interface CfnJobDefinition.DeviceProperty
extends software.amazon.jsii.JsiiSerializable
This object isn't applicable to jobs that are running on Fargate resources and shouldn't be provided.
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.*;
DeviceProperty deviceProperty = DeviceProperty.builder()
.containerPath("containerPath")
.hostPath("hostPath")
.permissions(List.of("permissions"))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnJobDefinition.DeviceProperty.Builder
A builder for
CfnJobDefinition.DeviceProperty |
static class |
CfnJobDefinition.DeviceProperty.Jsii$Proxy
An implementation for
CfnJobDefinition.DeviceProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnJobDefinition.DeviceProperty.Builder |
builder() |
default String |
getContainerPath()
The path inside the container that's used 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()
By default, the hostPath value is used.
@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 CfnJobDefinition.DeviceProperty.Builder builder()
Copyright © 2022. All rights reserved.