interface MountPointsProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Batch.CfnJobDefinition.MountPointsProperty |
Java | software.amazon.awscdk.services.batch.CfnJobDefinition.MountPointsProperty |
Python | aws_cdk.aws_batch.CfnJobDefinition.MountPointsProperty |
TypeScript | @aws-cdk/aws-batch » CfnJobDefinition » MountPointsProperty |
Details for a Docker volume mount point that's used in a job's container properties.
This parameter maps to Volumes
in the Create a container section of the Docker Remote API and the --volume
option to docker run.
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 mountPointsProperty: batch.CfnJobDefinition.MountPointsProperty = {
containerPath: 'containerPath',
readOnly: false,
sourceVolume: 'sourceVolume',
};
Properties
Name | Type | Description |
---|---|---|
container | string | The path on the container where the host volume is mounted. |
read | boolean | IResolvable | If this value is true , the container has read-only access to the volume. |
source | string | The name of the volume to mount. |
containerPath?
Type:
string
(optional)
The path on the container where the host volume is mounted.
readOnly?
Type:
boolean |
IResolvable
(optional)
If this value is true
, the container has read-only access to the volume.
Otherwise, the container can write to the volume. The default value is false
.
sourceVolume?
Type:
string
(optional)
The name of the volume to mount.