Class CfnDaemonTaskDefinitionPropsMixin.HostVolumePropertiesProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ecs.CfnDaemonTaskDefinitionPropsMixin.HostVolumePropertiesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDaemonTaskDefinitionPropsMixin.HostVolumePropertiesProperty>
- Enclosing interface:
CfnDaemonTaskDefinitionPropsMixin.HostVolumePropertiesProperty
@Stability(Stable)
public static final class CfnDaemonTaskDefinitionPropsMixin.HostVolumePropertiesProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDaemonTaskDefinitionPropsMixin.HostVolumePropertiesProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.sourcePath(String sourcePath)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
sourcePath
@Stability(Stable) public CfnDaemonTaskDefinitionPropsMixin.HostVolumePropertiesProperty.Builder sourcePath(String sourcePath) - Parameters:
sourcePath- When thehostparameter is used, specify asourcePathto declare the path on the host container instance that's presented to the container. If this parameter is empty, then the Docker daemon has assigned a host path for you. If thehostparameter contains asourcePathfile location, then the data volume persists at the specified location on the host container instance until you delete it manually. If thesourcePathvalue doesn't exist on the host container instance, the Docker daemon creates it. If the location does exist, the contents of the source path folder are exported. If you're using the Fargate launch type, thesourcePathparameter is not supported.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDaemonTaskDefinitionPropsMixin.HostVolumePropertiesProperty>- Returns:
- a new instance of
CfnDaemonTaskDefinitionPropsMixin.HostVolumePropertiesProperty - Throws:
NullPointerException- if any required attribute was not provided
-