Interface VolumeFrom
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
VolumeFrom.Jsii$Proxy
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-25T14:21:14.710Z")
@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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forVolumeFrom
static final class
An implementation forVolumeFrom
-
Method Summary
Modifier and TypeMethodDescriptionstatic VolumeFrom.Builder
builder()
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.Builder
ofVolumeFrom
-