Class CfnTaskDefinition.AuthorizationConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.CfnTaskDefinition.AuthorizationConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTaskDefinition.AuthorizationConfigProperty>
- Enclosing interface:
CfnTaskDefinition.AuthorizationConfigProperty
@Stability(Stable)
public static final class CfnTaskDefinition.AuthorizationConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTaskDefinition.AuthorizationConfigProperty>
A builder for
CfnTaskDefinition.AuthorizationConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessPointId(String accessPointId) Sets the value ofCfnTaskDefinition.AuthorizationConfigProperty.getAccessPointId()build()Builds the configured instance.Sets the value ofCfnTaskDefinition.AuthorizationConfigProperty.getIam()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accessPointId
@Stability(Stable) public CfnTaskDefinition.AuthorizationConfigProperty.Builder accessPointId(String accessPointId) Sets the value ofCfnTaskDefinition.AuthorizationConfigProperty.getAccessPointId()- Parameters:
accessPointId- The Amazon EFS access point ID to use. If an access point is specified, the root directory value specified in theEFSVolumeConfigurationmust either be omitted or set to/which will enforce the path set on the EFS access point. If an access point is used, transit encryption must be on in theEFSVolumeConfiguration. For more information, see Working with Amazon EFS access points in the Amazon Elastic File System User Guide .- Returns:
this
-
iam
Sets the value ofCfnTaskDefinition.AuthorizationConfigProperty.getIam()- Parameters:
iam- Determines whether to use the Amazon ECS task role defined in a task definition when mounting the Amazon EFS file system. If it is turned on, transit encryption must be turned on in theEFSVolumeConfiguration. If this parameter is omitted, the default value ofDISABLEDis used. For more information, see Using Amazon EFS access points in the Amazon Elastic Container Service Developer Guide .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTaskDefinition.AuthorizationConfigProperty>- Returns:
- a new instance of
CfnTaskDefinition.AuthorizationConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-