@Stability(value=Stable)
public static interface CfnTaskDefinition.VolumeFromProperty
extends software.amazon.jsii.JsiiSerializable
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.*;
VolumeFromProperty volumeFromProperty = VolumeFromProperty.builder()
.readOnly(false)
.sourceContainer("sourceContainer")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnTaskDefinition.VolumeFromProperty.Builder
A builder for
CfnTaskDefinition.VolumeFromProperty |
static class |
CfnTaskDefinition.VolumeFromProperty.Jsii$Proxy
An implementation for
CfnTaskDefinition.VolumeFromProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnTaskDefinition.VolumeFromProperty.Builder |
builder() |
default Object |
getReadOnly()
If this value is `true` , the container has read-only access to the volume.
|
default String |
getSourceContainer()
The name of another container within the same task definition to mount volumes from.
|
@Stability(value=Stable) @Nullable default Object getReadOnly()
If this value is false , then the container can write to the volume. The default value is false .
@Stability(value=Stable) @Nullable default String getSourceContainer()
@Stability(value=Stable) static CfnTaskDefinition.VolumeFromProperty.Builder builder()
Copyright © 2022. All rights reserved.