Class AuthorizationConfig.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.AuthorizationConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AuthorizationConfig>
- Enclosing interface:
- AuthorizationConfig
@Stability(Stable)
public static final class AuthorizationConfig.Builder
extends Object
implements software.amazon.jsii.Builder<AuthorizationConfig>
A builder for
AuthorizationConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaccessPointId
(String accessPointId) Sets the value ofAuthorizationConfig.getAccessPointId()
build()
Builds the configured instance.Sets the value ofAuthorizationConfig.getIam()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accessPointId
Sets the value ofAuthorizationConfig.getAccessPointId()
- Parameters:
accessPointId
- The access point ID to use. If an access point is specified, the root directory value will be relative to the directory set for the access point. If specified, transit encryption must be enabled in the EFSVolumeConfiguration.- Returns:
this
-
iam
Sets the value ofAuthorizationConfig.getIam()
- Parameters:
iam
- Whether or not to use the Amazon ECS task IAM role defined in a task definition when mounting the Amazon EFS file system. If enabled, transit encryption must be enabled in the EFSVolumeConfiguration.Valid values: ENABLED | DISABLED
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<AuthorizationConfig>
- Returns:
- a new instance of
AuthorizationConfig
- Throws:
NullPointerException
- if any required attribute was not provided
-