Interface CfnTaskDefinition.IVolumeFromProperty
Details on a data volume from another container in the same task definition.
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IVolumeFromProperty
Syntax (vb)
Public Interface IVolumeFromProperty
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 volumeFromProperty = new VolumeFromProperty {
ReadOnly = false,
SourceContainer = "sourceContainer"
};
Synopsis
Properties
ReadOnly | If this value is |
SourceContainer | The name of another container within the same task definition to mount volumes from. |
Properties
ReadOnly
If this value is true
, the container has read-only access to the volume.
virtual object ReadOnly { get; }
Property Value
System.Object
Remarks
If this value is false
, then the container can write to the volume. The default value is false
.
SourceContainer
The name of another container within the same task definition to mount volumes from.
virtual string SourceContainer { get; }
Property Value
System.String