Interface VolumeFrom
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
VolumeFrom.Jsii$Proxy
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-12T17:54:12.897Z")
@Stability(Stable)
public interface VolumeFrom
extends software.amazon.jsii.JsiiSerializable
The details on a data volume from another container in the same task definition.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ecs.*;
VolumeFrom volumeFrom = VolumeFrom.builder()
.readOnly(false)
.sourceContainer("sourceContainer")
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forVolumeFromstatic final classAn implementation forVolumeFrom -
Method Summary
Modifier and TypeMethodDescriptionstatic VolumeFrom.Builderbuilder()Specifies whether the container has read-only access to the volume.The name of another container within the same task definition from which to mount volumes.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getReadOnly
Specifies whether the container has read-only access to the volume.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.
-
getSourceContainer
The name of another container within the same task definition from which to mount volumes. -
builder
- Returns:
- a
VolumeFrom.BuilderofVolumeFrom
-