Class CfnJobDefinitionPropsMixin.MountPointProperty
Details for a Docker volume mount point that's used in a job's container properties.
Implements
Inherited Members
Namespace: Amazon.CDK.Mixins.Preview.AWS.Batch.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public class CfnJobDefinitionPropsMixin.MountPointProperty : CfnJobDefinitionPropsMixin.IMountPointProperty
Syntax (vb)
Public Class CfnJobDefinitionPropsMixin.MountPointProperty Implements CfnJobDefinitionPropsMixin.IMountPointProperty
Remarks
This parameter maps to Volumes in the Create a container section of the Docker Remote API and the --volume option to docker run.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Mixins.Preview.AWS.Batch.Mixins;
var mountPointProperty = new MountPointProperty {
ContainerPath = "containerPath",
ReadOnly = false,
SourceVolume = "sourceVolume"
};
Synopsis
Constructors
| MountPointProperty() | Details for a Docker volume mount point that's used in a job's container properties. |
Properties
| ContainerPath | The path on the container where the host volume is mounted. |
| ReadOnly | If this value is |
| SourceVolume | The name of the volume to mount. |
Constructors
MountPointProperty()
Details for a Docker volume mount point that's used in a job's container properties.
public MountPointProperty()
Remarks
This parameter maps to Volumes in the Create a container section of the Docker Remote API and the --volume option to docker run.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Mixins.Preview.AWS.Batch.Mixins;
var mountPointProperty = new MountPointProperty {
ContainerPath = "containerPath",
ReadOnly = false,
SourceVolume = "sourceVolume"
};
Properties
ContainerPath
The path on the container where the host volume is mounted.
public string? ContainerPath { get; set; }
Property Value
Remarks
ReadOnly
If this value is true , the container has read-only access to the volume.
public object? ReadOnly { get; set; }
Property Value
Remarks
Otherwise, the container can write to the volume. The default value is false .
Type union: either bool or IResolvable
SourceVolume
The name of the volume to mount.
public string? SourceVolume { get; set; }