Class CfnLocationS3MixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.datasync.CfnLocationS3MixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLocationS3MixinProps>
- Enclosing interface:
CfnLocationS3MixinProps
@Stability(Stable)
public static final class CfnLocationS3MixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLocationS3MixinProps>
A builder for
CfnLocationS3MixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.s3BucketArn(String s3BucketArn) Sets the value ofCfnLocationS3MixinProps.getS3BucketArn()s3BucketArn(IBucketRef s3BucketArn) Sets the value ofCfnLocationS3MixinProps.getS3BucketArn()Sets the value ofCfnLocationS3MixinProps.getS3Config()s3Config(IResolvable s3Config) Sets the value ofCfnLocationS3MixinProps.getS3Config()s3StorageClass(String s3StorageClass) Sets the value ofCfnLocationS3MixinProps.getS3StorageClass()subdirectory(String subdirectory) Sets the value ofCfnLocationS3MixinProps.getSubdirectory()Sets the value ofCfnLocationS3MixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
s3BucketArn
Sets the value ofCfnLocationS3MixinProps.getS3BucketArn()- Parameters:
s3BucketArn- The ARN of the Amazon S3 bucket.- Returns:
this
-
s3BucketArn
Sets the value ofCfnLocationS3MixinProps.getS3BucketArn()- Parameters:
s3BucketArn- The ARN of the Amazon S3 bucket.- Returns:
this
-
s3Config
Sets the value ofCfnLocationS3MixinProps.getS3Config()- 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. For detailed information about using such a role, see Creating a Location for Amazon S3 in the AWS DataSync User Guide .- Returns:
this
-
s3Config
@Stability(Stable) public CfnLocationS3MixinProps.Builder s3Config(CfnLocationS3PropsMixin.S3ConfigProperty s3Config) Sets the value ofCfnLocationS3MixinProps.getS3Config()- 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. For detailed information about using such a role, see Creating a Location for Amazon S3 in the AWS DataSync User Guide .- Returns:
this
-
s3StorageClass
Sets the value ofCfnLocationS3MixinProps.getS3StorageClass()- Parameters:
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 .
- Returns:
this
-
subdirectory
Sets the value ofCfnLocationS3MixinProps.getSubdirectory()- 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).DataSync can't transfer objects with a prefix that begins with a slash (
/) or includes//,/./, or/../patterns. For example:/photosphotos//2006/Januaryphotos/./2006/Februaryphotos/../2006/March
- Returns:
this
-
tags
Sets the value ofCfnLocationS3MixinProps.getTags()- Parameters:
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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLocationS3MixinProps>- Returns:
- a new instance of
CfnLocationS3MixinProps - Throws:
NullPointerException- if any required attribute was not provided
-