@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.893Z") @Stability(value=Stable) public class CfnLocationS3 extends CfnResource implements IInspectable
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")
.s3BucketArn("s3BucketArn")
.s3Config(S3ConfigProperty.builder()
.bucketAccessRoleArn("bucketAccessRoleArn")
.build())
// the properties below are optional
.s3StorageClass("s3StorageClass")
.subdirectory("subdirectory")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnLocationS3.Builder
A fluent builder for
CfnLocationS3. |
static interface |
CfnLocationS3.S3ConfigProperty
The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role used to access an Amazon S3 bucket.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnLocationS3(software.constructs.Construct scope,
String id,
CfnLocationS3Props props)
Create a new `AWS::DataSync::LocationS3`.
|
protected |
CfnLocationS3(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnLocationS3(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrLocationArn()
The Amazon Resource Name (ARN) of the specified Amazon S3 location.
|
String |
getAttrLocationUri()
The URI of the specified Amazon S3 location.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getS3BucketArn()
The ARN of the Amazon S3 bucket.
|
Object |
getS3Config()
The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that is used to access an Amazon S3 bucket.
|
String |
getS3StorageClass()
The Amazon S3 storage class that you want to store your files in when this location is used as a task destination.
|
String |
getSubdirectory()
A subdirectory in the Amazon S3 bucket.
|
TagManager |
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.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setS3BucketArn(String value)
The ARN of the Amazon S3 bucket.
|
void |
setS3Config(CfnLocationS3.S3ConfigProperty 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 |
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 |
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.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnLocationS3(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnLocationS3(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnLocationS3(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnLocationS3Props props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrLocationArn()
@Stability(value=Stable) @NotNull public String getAttrLocationUri()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
The value can be an empty string. We recommend using tags to name your resources.
@Stability(value=Stable) @NotNull public String getS3BucketArn()
@Stability(value=Stable)
public void setS3BucketArn(@NotNull
String value)
@Stability(value=Stable) @NotNull public Object getS3Config()
For detailed information about using such a role, see Creating a Location for Amazon S3 in the AWS DataSync User Guide .
@Stability(value=Stable)
public void setS3Config(@NotNull
CfnLocationS3.S3ConfigProperty value)
For detailed information about using such a role, see Creating a Location for Amazon S3 in the AWS DataSync User Guide .
@Stability(value=Stable)
public void setS3Config(@NotNull
IResolvable value)
For detailed information about using such a role, see Creating a Location for Amazon S3 in the AWS DataSync User Guide .
@Stability(value=Stable) @Nullable public String getS3StorageClass()
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 .
@Stability(value=Stable)
public void setS3StorageClass(@Nullable
String value)
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 .
@Stability(value=Stable) @Nullable public String getSubdirectory()
This subdirectory in Amazon S3 is used to read data from the S3 source location or write data to the S3 destination.
@Stability(value=Stable)
public void setSubdirectory(@Nullable
String value)
This subdirectory in Amazon S3 is used to read data from the S3 source location or write data to the S3 destination.
Copyright © 2022. All rights reserved.