Class CfnJobDefinition.MountPointsProperty
Details for a Docker volume mount point that's used in a job's container properties.
Inheritance
System.Object
CfnJobDefinition.MountPointsProperty
Implements
Namespace: Amazon.CDK.AWS.Batch
Assembly: Amazon.CDK.AWS.Batch.dll
Syntax (csharp)
public class MountPointsProperty : Object, CfnJobDefinition.IMountPointsProperty
Syntax (vb)
Public Class MountPointsProperty
Inherits Object
Implements CfnJobDefinition.IMountPointsProperty
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.AWS.Batch;
var mountPointsProperty = new MountPointsProperty {
ContainerPath = "containerPath",
ReadOnly = false,
SourceVolume = "sourceVolume"
};
Synopsis
Constructors
MountPointsProperty() |
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
MountPointsProperty()
public MountPointsProperty()
Properties
ContainerPath
The path on the container where the host volume is mounted.
public string ContainerPath { get; set; }
Property Value
System.String
Remarks
ReadOnly
If this value is true
, the container has read-only access to the volume.
public object ReadOnly { get; set; }
Property Value
System.Object
Remarks
Otherwise, the container can write to the volume. The default value is false
.
SourceVolume
The name of the volume to mount.
public string SourceVolume { get; set; }
Property Value
System.String