Interface CfnService.ServiceVolumeConfigurationProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnService.ServiceVolumeConfigurationProperty.Jsii$Proxy
Enclosing class:
CfnService

@Stability(Stable) public static interface CfnService.ServiceVolumeConfigurationProperty extends software.amazon.jsii.JsiiSerializable
The configuration for a volume specified in the task definition as a volume that is configured at launch time.

Currently, the only supported volume type is an Amazon EBS volume.

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.*;
 ServiceVolumeConfigurationProperty serviceVolumeConfigurationProperty = ServiceVolumeConfigurationProperty.builder()
         .name("name")
         // the properties below are optional
         .managedEbsVolume(ServiceManagedEBSVolumeConfigurationProperty.builder()
                 .roleArn("roleArn")
                 // the properties below are optional
                 .encrypted(false)
                 .filesystemType("filesystemType")
                 .iops(123)
                 .kmsKeyId("kmsKeyId")
                 .sizeInGiB(123)
                 .snapshotId("snapshotId")
                 .tagSpecifications(List.of(EBSTagSpecificationProperty.builder()
                         .resourceType("resourceType")
                         // the properties below are optional
                         .propagateTags("propagateTags")
                         .tags(List.of(CfnTag.builder()
                                 .key("key")
                                 .value("value")
                                 .build()))
                         .build()))
                 .throughput(123)
                 .volumeType("volumeType")
                 .build())
         .build();
 

See Also: