Class CfnLocationS3
- All Implemented Interfaces:
IConstruct
,IDependable
,IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
AWS::DataSync::LocationS3
.
The AWS::DataSync::LocationS3
resource specifies an endpoint for an Amazon S3 bucket.
For more information, see Create an Amazon S3 location in the AWS DataSync User Guide .
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.datasync.*; CfnLocationS3 cfnLocationS3 = CfnLocationS3.Builder.create(this, "MyCfnLocationS3") .s3Config(S3ConfigProperty.builder() .bucketAccessRoleArn("bucketAccessRoleArn") .build()) // the properties below are optional .s3BucketArn("s3BucketArn") .s3StorageClass("s3StorageClass") .subdirectory("subdirectory") .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .build();
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnLocationS3
.static interface
The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role used to access an Amazon S3 bucket.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionCfnLocationS3
(Construct scope, String id, CfnLocationS3Props props) Create a newAWS::DataSync::LocationS3
.protected
CfnLocationS3
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnLocationS3
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the specified Amazon S3 location.The URI of the specified Amazon S3 location.The ARN of the Amazon S3 bucket.The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that is used to access an Amazon S3 bucket.The Amazon S3 storage class that you want to store your files in when this location is used as a task destination.A subdirectory in the Amazon S3 bucket.getTags()
The key-value pair that represents the tag that you want to add to the location.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setS3BucketArn
(String value) The ARN of the Amazon S3 bucket.void
setS3Config
(IResolvable value) The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that is used to access an Amazon S3 bucket.void
The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that is used to access an Amazon S3 bucket.void
setS3StorageClass
(String value) The Amazon S3 storage class that you want to store your files in when this location is used as a task destination.void
setSubdirectory
(String value) A subdirectory in the Amazon S3 bucket.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnLocationS3
protected CfnLocationS3(software.amazon.jsii.JsiiObjectRef objRef) -
CfnLocationS3
protected CfnLocationS3(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnLocationS3
@Stability(Stable) public CfnLocationS3(@NotNull Construct scope, @NotNull String id, @NotNull CfnLocationS3Props props) Create a newAWS::DataSync::LocationS3
.- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
props
-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrLocationArn
The Amazon Resource Name (ARN) of the specified Amazon S3 location. -
getAttrLocationUri
The URI of the specified Amazon S3 location. -
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getTags
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.
-
getS3Config
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 .
-
setS3Config
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 .
-
setS3Config
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 .
-
getS3BucketArn
The ARN of the Amazon S3 bucket. -
setS3BucketArn
The ARN of the Amazon S3 bucket. -
getS3StorageClass
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 .
-
setS3StorageClass
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 .
-
getSubdirectory
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.
-
setSubdirectory
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.
-