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 CfnTaskDefinition.IVolumeFromProperty
Syntax (vb)
Public Interface 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
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.
object? ReadOnly { get; }
Property Value
Remarks
If this value is false , then the container can write to the volume. The default value is false .
Type union: either bool or IResolvable
SourceContainer
The name of another container within the same task definition to mount volumes from.
string? SourceContainer { get; }