Class CfnLocationS3.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLocationS3>
- Enclosing class:
CfnLocationS3
CfnLocationS3
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static CfnLocationS3.Builder
s3BucketArn
(String s3BucketArn) The ARN of the Amazon S3 bucket.s3Config
(IResolvable s3Config) The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that is used to access an Amazon S3 bucket.s3Config
(CfnLocationS3.S3ConfigProperty s3Config) The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that is used to access an Amazon S3 bucket.s3StorageClass
(String s3StorageClass) The Amazon S3 storage class that you want to store your files in when this location is used as a task destination.subdirectory
(String subdirectory) A subdirectory in the Amazon S3 bucket.The key-value pair that represents the tag that you want to add to the location.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnLocationS3.Builder
.
-
s3Config
The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that is used to access an Amazon S3 bucket.For detailed information about using such a role, see Creating a Location for Amazon S3 in the AWS DataSync User Guide .
- Parameters:
s3Config
- The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that is used to access an Amazon S3 bucket. This parameter is required.- Returns:
this
-
s3Config
The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that is used to access an Amazon S3 bucket.For detailed information about using such a role, see Creating a Location for Amazon S3 in the AWS DataSync User Guide .
- Parameters:
s3Config
- The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that is used to access an Amazon S3 bucket. This parameter is required.- Returns:
this
-
s3BucketArn
The ARN of the Amazon S3 bucket.- Parameters:
s3BucketArn
- The ARN of the Amazon S3 bucket. This parameter is required.- Returns:
this
-
s3StorageClass
The Amazon S3 storage class that you want to store your files in when this location is used as a task destination.For buckets in AWS Regions , the storage class defaults to S3 Standard.
For more information about S3 storage classes, see Amazon S3 Storage Classes . Some storage classes have behaviors that can affect your S3 storage costs. For detailed information, see Considerations When Working with Amazon S3 Storage Classes in DataSync .
- Parameters:
s3StorageClass
- The Amazon S3 storage class that you want to store your files in when this location is used as a task destination. This parameter is required.- Returns:
this
-
subdirectory
A subdirectory in the Amazon S3 bucket.This subdirectory in Amazon S3 is used to read data from the S3 source location or write data to the S3 destination.
- Parameters:
subdirectory
- A subdirectory in the Amazon S3 bucket. This parameter is required.- Returns:
this
-
tags
The key-value pair that represents the tag that you want to add to the location.The value can be an empty string. We recommend using tags to name your resources.
- Parameters:
tags
- The key-value pair that represents the tag that you want to add to the location. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnLocationS3>
- Returns:
- a newly built instance of
CfnLocationS3
.
-