Class CfnTaskDefinition.EFSVolumeConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.CfnTaskDefinition.EFSVolumeConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTaskDefinition.EFSVolumeConfigurationProperty>
- Enclosing interface:
CfnTaskDefinition.EFSVolumeConfigurationProperty
@Stability(Stable)
public static final class CfnTaskDefinition.EFSVolumeConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTaskDefinition.EFSVolumeConfigurationProperty>
A builder for
CfnTaskDefinition.EFSVolumeConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionauthorizationConfig
(IResolvable authorizationConfig) authorizationConfig
(CfnTaskDefinition.AuthorizationConfigProperty authorizationConfig) build()
Builds the configured instance.filesystemId
(String filesystemId) Sets the value ofCfnTaskDefinition.EFSVolumeConfigurationProperty.getFilesystemId()
rootDirectory
(String rootDirectory) Sets the value ofCfnTaskDefinition.EFSVolumeConfigurationProperty.getRootDirectory()
transitEncryption
(String transitEncryption) Sets the value ofCfnTaskDefinition.EFSVolumeConfigurationProperty.getTransitEncryption()
transitEncryptionPort
(Number transitEncryptionPort)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
filesystemId
@Stability(Stable) public CfnTaskDefinition.EFSVolumeConfigurationProperty.Builder filesystemId(String filesystemId) Sets the value ofCfnTaskDefinition.EFSVolumeConfigurationProperty.getFilesystemId()
- Parameters:
filesystemId
- The Amazon EFS file system ID to use. This parameter is required.- Returns:
this
-
authorizationConfig
@Stability(Stable) public CfnTaskDefinition.EFSVolumeConfigurationProperty.Builder authorizationConfig(IResolvable authorizationConfig) - Parameters:
authorizationConfig
- The authorization configuration details for the Amazon EFS file system.- Returns:
this
-
authorizationConfig
@Stability(Stable) public CfnTaskDefinition.EFSVolumeConfigurationProperty.Builder authorizationConfig(CfnTaskDefinition.AuthorizationConfigProperty authorizationConfig) - Parameters:
authorizationConfig
- The authorization configuration details for the Amazon EFS file system.- Returns:
this
-
rootDirectory
@Stability(Stable) public CfnTaskDefinition.EFSVolumeConfigurationProperty.Builder rootDirectory(String rootDirectory) Sets the value ofCfnTaskDefinition.EFSVolumeConfigurationProperty.getRootDirectory()
- Parameters:
rootDirectory
- The directory within the Amazon EFS file system to mount as the root directory inside the host. If this parameter is omitted, the root of the Amazon EFS volume will be used. Specifying/
will have the same effect as omitting this parameter.If an EFS access point is specified in the
authorizationConfig
, the root directory parameter must either be omitted or set to/
which will enforce the path set on the EFS access point.- Returns:
this
-
transitEncryption
@Stability(Stable) public CfnTaskDefinition.EFSVolumeConfigurationProperty.Builder transitEncryption(String transitEncryption) Sets the value ofCfnTaskDefinition.EFSVolumeConfigurationProperty.getTransitEncryption()
- Parameters:
transitEncryption
- Determines whether to use encryption for Amazon EFS data in transit between the Amazon ECS host and the Amazon EFS server. Transit encryption must be turned on if Amazon EFS IAM authorization is used. If this parameter is omitted, the default value ofDISABLED
is used. For more information, see Encrypting data in transit in the Amazon Elastic File System User Guide .- Returns:
this
-
transitEncryptionPort
@Stability(Stable) public CfnTaskDefinition.EFSVolumeConfigurationProperty.Builder transitEncryptionPort(Number transitEncryptionPort) - Parameters:
transitEncryptionPort
- The port to use when sending encrypted data between the Amazon ECS host and the Amazon EFS server. If you do not specify a transit encryption port, it will use the port selection strategy that the Amazon EFS mount helper uses. For more information, see EFS mount helper in the Amazon Elastic File System User Guide .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTaskDefinition.EFSVolumeConfigurationProperty>
- Returns:
- a new instance of
CfnTaskDefinition.EFSVolumeConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-