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,ITaggable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.93.0 (build 1706ca5)",
date="2024-01-03T18:29:24.059Z")
@Stability(Stable)
public class CfnLocationS3
extends CfnResource
implements IInspectable, ITaggable
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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnLocationS3.static interfaceThe 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.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.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) -
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()Tag Manager which manages the tags for this resource.The key-value pair that represents the tag that you want to add to the location.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.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) A subdirectory in the Amazon S3 bucket.voidsetTagsRaw(List<CfnTag> value) The key-value pair that represents the tag that you want to add to the location.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, 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.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) - 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
-
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
-
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. -
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
A subdirectory in the Amazon S3 bucket. -
setSubdirectory
A subdirectory in the Amazon S3 bucket. -
getTagsRaw
The key-value pair that represents the tag that you want to add to the location. -
setTagsRaw
The key-value pair that represents the tag that you want to add to the location.
-