Class CfnJobDefinition.AuthorizationConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.batch.CfnJobDefinition.AuthorizationConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnJobDefinition.AuthorizationConfigProperty>
- Enclosing interface:
CfnJobDefinition.AuthorizationConfigProperty
@Stability(Stable)
public static final class CfnJobDefinition.AuthorizationConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnJobDefinition.AuthorizationConfigProperty>
A builder for
CfnJobDefinition.AuthorizationConfigProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaccessPointId
(String accessPointId) Sets the value ofCfnJobDefinition.AuthorizationConfigProperty.getAccessPointId()
build()
Builds the configured instance.Sets the value ofCfnJobDefinition.AuthorizationConfigProperty.getIam()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accessPointId
@Stability(Stable) public CfnJobDefinition.AuthorizationConfigProperty.Builder accessPointId(String accessPointId) Sets the value ofCfnJobDefinition.AuthorizationConfigProperty.getAccessPointId()
- Parameters:
accessPointId
- The Amazon EFS access point ID to use. If an access point is specified, the root directory value specified in theEFSVolumeConfiguration
must either be omitted or set to/
which enforces the path set on the EFS access point. If an access point is used, transit encryption must be enabled 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 ofCfnJobDefinition.AuthorizationConfigProperty.getIam()
- Parameters:
iam
- Whether or not to use the AWS Batch job IAM role defined in a job definition when mounting the Amazon EFS file system. If enabled, transit encryption must be enabled in theEFSVolumeConfiguration
. If this parameter is omitted, the default value ofDISABLED
is used. For more information, see Using Amazon EFS access points in the AWS Batch User Guide . EFS IAM authorization requires thatTransitEncryption
beENABLED
and that aJobRoleArn
is specified.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnJobDefinition.AuthorizationConfigProperty>
- Returns:
- a new instance of
CfnJobDefinition.AuthorizationConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-