interface DeviceProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Batch.CfnJobDefinition.DeviceProperty |
![]() | software.amazon.awscdk.services.batch.CfnJobDefinition.DeviceProperty |
![]() | aws_cdk.aws_batch.CfnJobDefinition.DeviceProperty |
![]() | @aws-cdk/aws-batch » CfnJobDefinition » DeviceProperty |
An object that represents a container instance host device.
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 * as batch from '@aws-cdk/aws-batch';
const deviceProperty: batch.CfnJobDefinition.DeviceProperty = {
containerPath: 'containerPath',
hostPath: 'hostPath',
permissions: ['permissions'],
};
Properties
Name | Type | Description |
---|---|---|
container | string | The path inside the container that's used to expose the host device. |
host | string | The path for the device on the host container instance. |
permissions? | string[] | The explicit permissions to provide to the container for the device. |
containerPath?
Type:
string
(optional)
The path inside the container that's used to expose the host device.
By default, the hostPath
value is used.
hostPath?
Type:
string
(optional)
The path for the device on the host container instance.
permissions?
Type:
string[]
(optional)
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.