Interface CfnDaemonTaskDefinition.VolumeProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnDaemonTaskDefinition.VolumeProperty.Jsii$Proxy
- Enclosing class:
CfnDaemonTaskDefinition
Specifying a volume configuration in a task definition is optional. The volume configuration may contain multiple volumes but only one volume configured at launch is supported. Each volume defined in the volume configuration may only specify a name and one of either configuredAtLaunch, dockerVolumeConfiguration, efsVolumeConfiguration, fsxWindowsFileServerVolumeConfiguration, or host. If an empty volume configuration is specified, by default Amazon ECS uses a host volume. For more information, see Using data volumes in tasks.
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.*;
VolumeProperty volumeProperty = VolumeProperty.builder()
.host(HostVolumePropertiesProperty.builder()
.sourcePath("sourcePath")
.build())
.name("name")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnDaemonTaskDefinition.VolumePropertystatic final classAn implementation forCfnDaemonTaskDefinition.VolumeProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getHost
Details on a container instance bind mount host volume.Returns union: either
IResolvableorCfnDaemonTaskDefinition.HostVolumePropertiesProperty- See Also:
-
getName
The name of the volume.Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed. When using a volume configured at launch, the
nameis required and must also be specified as the volume name in theServiceVolumeConfigurationorTaskVolumeConfigurationparameter when creating your service or standalone task. For all other types of volumes, this name is referenced in thesourceVolumeparameter of themountPointsobject in the container definition. When a volume is using theefsVolumeConfiguration, the name is required.- See Also:
-
builder
-