Class VolumeFrom
The details on a data volume from another container in the same task definition.
Inheritance
System.Object
VolumeFrom
Implements
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class VolumeFrom : Object, IVolumeFrom
Syntax (vb)
Public Class VolumeFrom
Inherits Object
Implements IVolumeFrom
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 volumeFrom = new VolumeFrom {
ReadOnly = false,
SourceContainer = "sourceContainer"
};
Synopsis
Constructors
VolumeFrom() |
Properties
ReadOnly | Specifies whether the container has read-only access to the volume. |
SourceContainer | The name of another container within the same task definition from which to mount volumes. |
Constructors
VolumeFrom()
public VolumeFrom()
Properties
ReadOnly
Specifies whether the container has 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.
SourceContainer
The name of another container within the same task definition from which to mount volumes.
public string SourceContainer { get; set; }
Property Value
System.String