Class CfnTaskDefinition.VolumeFromProperty
Details on a data volume from another container in the same task definition.
Inheritance
System.Object
CfnTaskDefinition.VolumeFromProperty
Implements
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.AWS.ECS.dll
Syntax (csharp)
public class VolumeFromProperty : Object, CfnTaskDefinition.IVolumeFromProperty
Syntax (vb)
Public Class VolumeFromProperty
Inherits Object
Implements CfnTaskDefinition.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
Constructors
VolumeFromProperty() |
Properties
ReadOnly | If this value is |
SourceContainer | The name of another container within the same task definition to mount volumes from. |
Constructors
VolumeFromProperty()
public VolumeFromProperty()
Properties
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
.
SourceContainer
The name of another container within the same task definition to mount volumes from.
public string SourceContainer { get; set; }
Property Value
System.String