@Stability(value=Stable)
public static interface CfnTaskDefinition.VolumeProperty
extends software.amazon.jsii.JsiiSerializable
// 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.*;
VolumeProperty volumeProperty = VolumeProperty.builder()
.dockerVolumeConfiguration(DockerVolumeConfigurationProperty.builder()
.autoprovision(false)
.driver("driver")
.driverOpts(Map.of(
"driverOptsKey", "driverOpts"))
.labels(Map.of(
"labelsKey", "labels"))
.scope("scope")
.build())
.efsVolumeConfiguration(EfsVolumeConfigurationProperty.builder()
.fileSystemId("fileSystemId")
// the properties below are optional
.authorizationConfig(AuthorizationConfigProperty.builder()
.accessPointId("accessPointId")
.iam("iam")
.build())
.rootDirectory("rootDirectory")
.transitEncryption("transitEncryption")
.transitEncryptionPort(123)
.build())
.host(HostVolumePropertiesProperty.builder()
.sourcePath("sourcePath")
.build())
.name("name")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnTaskDefinition.VolumeProperty.Builder
A builder for
CfnTaskDefinition.VolumeProperty |
static class |
CfnTaskDefinition.VolumeProperty.Jsii$Proxy
An implementation for
CfnTaskDefinition.VolumeProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnTaskDefinition.VolumeProperty.Builder |
builder() |
default Object |
getDockerVolumeConfiguration()
`CfnTaskDefinition.VolumeProperty.DockerVolumeConfiguration`.
|
default Object |
getEfsVolumeConfiguration()
`CfnTaskDefinition.VolumeProperty.EfsVolumeConfiguration`.
|
default Object |
getHost()
`CfnTaskDefinition.VolumeProperty.Host`.
|
default String |
getName()
`CfnTaskDefinition.VolumeProperty.Name`.
|
@Stability(value=Stable) @Nullable default Object getDockerVolumeConfiguration()
@Stability(value=Stable) @Nullable default Object getEfsVolumeConfiguration()
@Stability(value=Stable) @Nullable default Object getHost()
@Stability(value=Stable) @Nullable default String getName()
@Stability(value=Stable) static CfnTaskDefinition.VolumeProperty.Builder builder()
Copyright © 2021. All rights reserved.