Class EfsVolumeConfiguration.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.EfsVolumeConfiguration.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EfsVolumeConfiguration>
- Enclosing interface:
EfsVolumeConfiguration
@Stability(Stable)
public static final class EfsVolumeConfiguration.Builder
extends Object
implements software.amazon.jsii.Builder<EfsVolumeConfiguration>
A builder for
EfsVolumeConfiguration
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionauthorizationConfig
(AuthorizationConfig authorizationConfig) Sets the value ofEfsVolumeConfiguration.getAuthorizationConfig()
build()
Builds the configured instance.fileSystemId
(String fileSystemId) Sets the value ofEfsVolumeConfiguration.getFileSystemId()
rootDirectory
(String rootDirectory) Sets the value ofEfsVolumeConfiguration.getRootDirectory()
transitEncryption
(String transitEncryption) Sets the value ofEfsVolumeConfiguration.getTransitEncryption()
transitEncryptionPort
(Number transitEncryptionPort) Sets the value ofEfsVolumeConfiguration.getTransitEncryptionPort()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
fileSystemId
Sets the value ofEfsVolumeConfiguration.getFileSystemId()
- Parameters:
fileSystemId
- The Amazon EFS file system ID to use. This parameter is required.- Returns:
this
-
authorizationConfig
@Stability(Stable) public EfsVolumeConfiguration.Builder authorizationConfig(AuthorizationConfig authorizationConfig) Sets the value ofEfsVolumeConfiguration.getAuthorizationConfig()
- Parameters:
authorizationConfig
- The authorization configuration details for the Amazon EFS file system.- Returns:
this
-
rootDirectory
Sets the value ofEfsVolumeConfiguration.getRootDirectory()
- Parameters:
rootDirectory
- The directory within the Amazon EFS file system to mount as the root directory inside the host. Specifying / will have the same effect as omitting this parameter.- Returns:
this
-
transitEncryption
@Stability(Stable) public EfsVolumeConfiguration.Builder transitEncryption(String transitEncryption) Sets the value ofEfsVolumeConfiguration.getTransitEncryption()
- Parameters:
transitEncryption
- Whether or not to enable encryption for Amazon EFS data in transit between the Amazon ECS host and the Amazon EFS server. Transit encryption must be enabled if Amazon EFS IAM authorization is used.Valid values: ENABLED | DISABLED
- Returns:
this
-
transitEncryptionPort
@Stability(Stable) public EfsVolumeConfiguration.Builder transitEncryptionPort(Number transitEncryptionPort) Sets the value ofEfsVolumeConfiguration.getTransitEncryptionPort()
- Parameters:
transitEncryptionPort
- The port to use when sending encrypted data between the Amazon ECS host and the Amazon EFS server. EFS mount helper uses.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<EfsVolumeConfiguration>
- Returns:
- a new instance of
EfsVolumeConfiguration
- Throws:
NullPointerException
- if any required attribute was not provided
-