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) Specifies a prefix in the S3 bucket that DataSync reads from or writes to (depending on whether the bucket is a source or destination location).Specifies labels that help you categorize, filter, and search for your AWS resources.
-
Method Details
-
create
@Stability(Stable) public static CfnLocationS3.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- 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
- See Also:
-
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
- See Also:
-
s3BucketArn
The ARN of the Amazon S3 bucket.- Parameters:
s3BucketArn
- The ARN of the Amazon S3 bucket. This parameter is required.- Returns:
this
- See Also:
-
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 .
Default: - "STANDARD"
- 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
- See Also:
-
subdirectory
Specifies a prefix in the S3 bucket that DataSync reads from or writes to (depending on whether the bucket is a source or destination location).DataSync can't transfer objects with a prefix that begins with a slash (
/
) or includes//
,/./
, or/../
patterns. For example:/photos
photos//2006/January
photos/./2006/February
photos/../2006/March
- Parameters:
subdirectory
- Specifies a prefix in the S3 bucket that DataSync reads from or writes to (depending on whether the bucket is a source or destination location). This parameter is required.- Returns:
this
- See Also:
-
tags
Specifies labels that help you categorize, filter, and search for your AWS resources.We recommend creating at least a name tag for your transfer location.
- Parameters:
tags
- Specifies labels that help you categorize, filter, and search for your AWS resources. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnLocationS3>
- Returns:
- a newly built instance of
CfnLocationS3
.
-