Class MountPoint
The details of data volume mount points for a container.
Inheritance
System.Object
MountPoint
Implements
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.AWS.ECS.dll
Syntax (csharp)
public class MountPoint : Object, IMountPoint
Syntax (vb)
Public Class MountPoint
Inherits Object
Implements IMountPoint
Remarks
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.ECS;
var mountPoint = new MountPoint {
ContainerPath = "containerPath",
ReadOnly = false,
SourceVolume = "sourceVolume"
};
Synopsis
Constructors
MountPoint() |
Properties
ContainerPath | The path on the container to mount the host volume at. |
ReadOnly | Specifies whether to give the container read-only access to the volume. |
SourceVolume | The name of the volume to mount. |
Constructors
MountPoint()
public MountPoint()
Properties
ContainerPath
The path on the container to mount the host volume at.
public string ContainerPath { get; set; }
Property Value
System.String
ReadOnly
Specifies whether to give the container read-only access to the volume.
public bool ReadOnly { get; set; }
Property Value
System.Boolean
Remarks
If this value is true, the container has read-only access to the volume. If this value is false, then the container can write to the volume.
SourceVolume
The name of the volume to mount.
public string SourceVolume { get; set; }
Property Value
System.String
Remarks
Must be a volume name referenced in the name parameter of task definition volume.