Class CfnLocationS3.S3ConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.datasync.CfnLocationS3.S3ConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLocationS3.S3ConfigProperty>
- Enclosing interface:
CfnLocationS3.S3ConfigProperty
@Stability(Stable)
public static final class CfnLocationS3.S3ConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLocationS3.S3ConfigProperty>
A builder for
CfnLocationS3.S3ConfigProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbucketAccessRoleArn
(String bucketAccessRoleArn) Sets the value ofCfnLocationS3.S3ConfigProperty.getBucketAccessRoleArn()
build()
Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucketAccessRoleArn
@Stability(Stable) public CfnLocationS3.S3ConfigProperty.Builder bucketAccessRoleArn(String bucketAccessRoleArn) Sets the value ofCfnLocationS3.S3ConfigProperty.getBucketAccessRoleArn()
- Parameters:
bucketAccessRoleArn
- Specifies the ARN of the IAM role that DataSync uses to access your S3 bucket. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnLocationS3.S3ConfigProperty>
- Returns:
- a new instance of
CfnLocationS3.S3ConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-