Class ServiceManagedVolume.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.ServiceManagedVolume.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ServiceManagedVolume>
- Enclosing class:
ServiceManagedVolume
@Stability(Stable)
public static final class ServiceManagedVolume.Builder
extends Object
implements software.amazon.jsii.Builder<ServiceManagedVolume>
A fluent builder for
ServiceManagedVolume.-
Method Summary
Modifier and TypeMethodDescriptionbuild()static ServiceManagedVolume.BuildermanagedEbsVolume(ServiceManagedEBSVolumeConfiguration managedEbsVolume) Configuration for an Amazon Elastic Block Store (EBS) volume managed by ECS.The name of the volume.
-
Method Details
-
create
@Stability(Stable) public static ServiceManagedVolume.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- This parameter is required.id- This parameter is required.- Returns:
- a new instance of
ServiceManagedVolume.Builder.
-
name
The name of the volume.This corresponds to the name provided in the ECS TaskDefinition.
- Parameters:
name- The name of the volume. This parameter is required.- Returns:
this
-
managedEbsVolume
@Stability(Stable) public ServiceManagedVolume.Builder managedEbsVolume(ServiceManagedEBSVolumeConfiguration managedEbsVolume) Configuration for an Amazon Elastic Block Store (EBS) volume managed by ECS.Default: - undefined
- Parameters:
managedEbsVolume- Configuration for an Amazon Elastic Block Store (EBS) volume managed by ECS. This parameter is required.- Returns:
this
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ServiceManagedVolume>- Returns:
- a newly built instance of
ServiceManagedVolume.
-