Class CfnTaskDefinitionPropsMixin.EFSVolumeConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ecs.CfnTaskDefinitionPropsMixin.EFSVolumeConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTaskDefinitionPropsMixin.EFSVolumeConfigurationProperty>
- Enclosing interface:
CfnTaskDefinitionPropsMixin.EFSVolumeConfigurationProperty
@Stability(Stable)
public static final class CfnTaskDefinitionPropsMixin.EFSVolumeConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTaskDefinitionPropsMixin.EFSVolumeConfigurationProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthorizationConfig(CfnTaskDefinitionPropsMixin.AuthorizationConfigProperty authorizationConfig) authorizationConfig(IResolvable authorizationConfig) build()Builds the configured instance.filesystemId(String filesystemId) filesystemId(IFileSystemRef filesystemId) rootDirectory(String rootDirectory) transitEncryption(String transitEncryption) transitEncryptionPort(Number transitEncryptionPort)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
authorizationConfig
@Stability(Stable) public CfnTaskDefinitionPropsMixin.EFSVolumeConfigurationProperty.Builder authorizationConfig(IResolvable authorizationConfig) Sets the value ofCfnTaskDefinitionPropsMixin.EFSVolumeConfigurationProperty.getAuthorizationConfig()- Parameters:
authorizationConfig- The authorization configuration details for the Amazon EFS file system.- Returns:
this
-
authorizationConfig
@Stability(Stable) public CfnTaskDefinitionPropsMixin.EFSVolumeConfigurationProperty.Builder authorizationConfig(CfnTaskDefinitionPropsMixin.AuthorizationConfigProperty authorizationConfig) Sets the value ofCfnTaskDefinitionPropsMixin.EFSVolumeConfigurationProperty.getAuthorizationConfig()- Parameters:
authorizationConfig- The authorization configuration details for the Amazon EFS file system.- Returns:
this
-
filesystemId
@Stability(Stable) public CfnTaskDefinitionPropsMixin.EFSVolumeConfigurationProperty.Builder filesystemId(String filesystemId) - Parameters:
filesystemId- The Amazon EFS file system ID to use.- Returns:
this
-
filesystemId
@Stability(Stable) public CfnTaskDefinitionPropsMixin.EFSVolumeConfigurationProperty.Builder filesystemId(IFileSystemRef filesystemId) - Parameters:
filesystemId- The Amazon EFS file system ID to use.- Returns:
this
-
rootDirectory
@Stability(Stable) public CfnTaskDefinitionPropsMixin.EFSVolumeConfigurationProperty.Builder rootDirectory(String rootDirectory) - 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 CfnTaskDefinitionPropsMixin.EFSVolumeConfigurationProperty.Builder transitEncryption(String transitEncryption) - 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 ofDISABLEDis used. For more information, see Encrypting data in transit in the Amazon Elastic File System User Guide .- Returns:
this
-
transitEncryptionPort
@Stability(Stable) public CfnTaskDefinitionPropsMixin.EFSVolumeConfigurationProperty.Builder transitEncryptionPort(Number transitEncryptionPort) Sets the value ofCfnTaskDefinitionPropsMixin.EFSVolumeConfigurationProperty.getTransitEncryptionPort()- 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:
buildin interfacesoftware.amazon.jsii.Builder<CfnTaskDefinitionPropsMixin.EFSVolumeConfigurationProperty>- Returns:
- a new instance of
CfnTaskDefinitionPropsMixin.EFSVolumeConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-