Class CfnLocationS3
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.datasync.CfnLocationS3
- All Implemented Interfaces:
IInspectable,ILocationS3Ref,IEnvironmentAware,ITaggable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-12-01T16:02:17.997Z")
@Stability(Stable)
public class CfnLocationS3
extends CfnResource
implements IInspectable, ILocationS3Ref, ITaggable
The
AWS::DataSync::LocationS3 resource specifies an endpoint for an Amazon S3 bucket.
For more information, see 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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnLocationS3.static interfaceSpecifies the Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that DataSync uses to access your S3 bucket.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.datasync.ILocationS3Ref
ILocationS3Ref.Jsii$Default, ILocationS3Ref.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnLocationS3(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnLocationS3(software.amazon.jsii.JsiiObjectRef objRef) CfnLocationS3(software.constructs.Construct scope, String id, CfnLocationS3Props props) Create a newAWS::DataSync::LocationS3. -
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the specified Amazon S3 location.The URI of the specified Amazon S3 location.A reference to a LocationS3 resource.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.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).getTags()Tag Manager which manages the tags for this resource.Specifies labels that help you categorize, filter, and search for your AWS resources.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnLocationS3.renderProperties(Map<String, Object> props) voidsetS3BucketArn(String value) The ARN of the Amazon S3 bucket.voidsetS3Config(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.voidThe Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that is used to access an Amazon S3 bucket.voidsetS3StorageClass(String value) The Amazon S3 storage class that you want to store your files in when this location is used as a task destination.voidsetSubdirectory(String value) 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).voidsetTagsRaw(List<CfnTag> value) Specifies labels that help you categorize, filter, and search for your AWS resources.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods 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 software.constructs.Construct scope, @NotNull String id, @NotNull CfnLocationS3Props props) Create a newAWS::DataSync::LocationS3.- 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.props- Resource properties. This parameter is required.
-
-
Method Details
-
isCfnLocationS3
Checks whether the given object is a CfnLocationS3.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin 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:
getCfnPropertiesin classCfnResource
-
getLocationS3Ref
A reference to a LocationS3 resource.- Specified by:
getLocationS3Refin interfaceILocationS3Ref
-
getTags
Tag Manager which manages the tags for this resource. -
getS3Config
The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that is used to access an Amazon S3 bucket.Returns union: either
IResolvableorCfnLocationS3.S3ConfigProperty -
setS3Config
The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that is used to access an Amazon S3 bucket. -
setS3Config
The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that is used to access an Amazon S3 bucket. -
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. -
setS3StorageClass
The Amazon S3 storage class that you want to store your files in when this location is used as a task destination. -
getSubdirectory
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). -
setSubdirectory
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). -
getTagsRaw
Specifies labels that help you categorize, filter, and search for your AWS resources. -
setTagsRaw
Specifies labels that help you categorize, filter, and search for your AWS resources.
-