Class CfnTaskDefinition.MountPointProperty
The details for a volume mount point that's used in a container definition.
Inheritance
System.Object
CfnTaskDefinition.MountPointProperty
Implements
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class MountPointProperty : Object, CfnTaskDefinition.IMountPointProperty
Syntax (vb)
Public Class MountPointProperty
Inherits Object
Implements CfnTaskDefinition.IMountPointProperty
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 mountPointProperty = new MountPointProperty {
ContainerPath = "containerPath",
ReadOnly = false,
SourceVolume = "sourceVolume"
};
Synopsis
Constructors
MountPointProperty() |
Properties
ContainerPath | The path on the container to mount the host volume at. |
ReadOnly | If this value is |
SourceVolume | The name of the volume to mount. |
Constructors
MountPointProperty()
public MountPointProperty()
Properties
ContainerPath
The path on the container to mount the host volume at.
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
If this value is false
, then 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
Remarks
Must be a volume name referenced in the name
parameter of task definition volume
.