Class CfnLocationEFS
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
AWS::DataSync::LocationEFS.
The AWS::DataSync::LocationEFS resource creates an endpoint for an Amazon EFS file system. AWS DataSync can access this endpoint as a source or destination location.
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.*;
CfnLocationEFS cfnLocationEFS = CfnLocationEFS.Builder.create(this, "MyCfnLocationEFS")
.ec2Config(Ec2ConfigProperty.builder()
.securityGroupArns(List.of("securityGroupArns"))
.subnetArn("subnetArn")
.build())
// the properties below are optional
.accessPointArn("accessPointArn")
.efsFilesystemArn("efsFilesystemArn")
.fileSystemAccessRoleArn("fileSystemAccessRoleArn")
.inTransitEncryption("inTransitEncryption")
.subdirectory("subdirectory")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnLocationEFS.static interfaceThe subnet and security groups that AWS DataSync uses to access your Amazon EFS file system.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnLocationEFS(Construct scope, String id, CfnLocationEFSProps props) Create a newAWS::DataSync::LocationEFS.protectedCfnLocationEFS(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnLocationEFS(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionSpecifies the Amazon Resource Name (ARN) of the access point that DataSync uses to access the Amazon EFS file system.The Amazon Resource Name (ARN) of the Amazon EFS file system.The URI of the Amazon EFS file system.Specifies the subnet and security groups DataSync uses to access your Amazon EFS file system.Specifies the ARN for the Amazon EFS file system.Specifies an AWS Identity and Access Management (IAM) role that DataSync assumes when mounting the Amazon EFS file system.Specifies whether you want DataSync to use Transport Layer Security (TLS) 1.2 encryption when it copies data to or from the Amazon EFS file system.Specifies a mount path for your Amazon EFS file system.getTags()Specifies the key-value pair that represents a tag that you want to add to the resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetAccessPointArn(String value) Specifies the Amazon Resource Name (ARN) of the access point that DataSync uses to access the Amazon EFS file system.voidsetEc2Config(IResolvable value) Specifies the subnet and security groups DataSync uses to access your Amazon EFS file system.voidSpecifies the subnet and security groups DataSync uses to access your Amazon EFS file system.voidsetEfsFilesystemArn(String value) Specifies the ARN for the Amazon EFS file system.voidsetFileSystemAccessRoleArn(String value) Specifies an AWS Identity and Access Management (IAM) role that DataSync assumes when mounting the Amazon EFS file system.voidsetInTransitEncryption(String value) Specifies whether you want DataSync to use Transport Layer Security (TLS) 1.2 encryption when it copies data to or from the Amazon EFS file system.voidsetSubdirectory(String value) Specifies a mount path for your Amazon EFS file system.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, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods 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
-
CfnLocationEFS
protected CfnLocationEFS(software.amazon.jsii.JsiiObjectRef objRef) -
CfnLocationEFS
protected CfnLocationEFS(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnLocationEFS
@Stability(Stable) public CfnLocationEFS(@NotNull Construct scope, @NotNull String id, @NotNull CfnLocationEFSProps props) Create a newAWS::DataSync::LocationEFS.- 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:
inspectin 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:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrLocationArn
The Amazon Resource Name (ARN) of the Amazon EFS file system. -
getAttrLocationUri
The URI of the Amazon EFS file system. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
Specifies the key-value pair that represents a tag that you want to add to the resource.The value can be an empty string. This value helps you manage, filter, and search for your resources. We recommend that you create a name tag for your location.
-
getEc2Config
Specifies the subnet and security groups DataSync uses to access your Amazon EFS file system. -
setEc2Config
Specifies the subnet and security groups DataSync uses to access your Amazon EFS file system. -
setEc2Config
Specifies the subnet and security groups DataSync uses to access your Amazon EFS file system. -
getAccessPointArn
Specifies the Amazon Resource Name (ARN) of the access point that DataSync uses to access the Amazon EFS file system. -
setAccessPointArn
Specifies the Amazon Resource Name (ARN) of the access point that DataSync uses to access the Amazon EFS file system. -
getEfsFilesystemArn
Specifies the ARN for the Amazon EFS file system. -
setEfsFilesystemArn
Specifies the ARN for the Amazon EFS file system. -
getFileSystemAccessRoleArn
Specifies an AWS Identity and Access Management (IAM) role that DataSync assumes when mounting the Amazon EFS file system. -
setFileSystemAccessRoleArn
Specifies an AWS Identity and Access Management (IAM) role that DataSync assumes when mounting the Amazon EFS file system. -
getInTransitEncryption
Specifies whether you want DataSync to use Transport Layer Security (TLS) 1.2 encryption when it copies data to or from the Amazon EFS file system.If you specify an access point using
AccessPointArnor an IAM role usingFileSystemAccessRoleArn, you must set this parameter toTLS1_2. -
setInTransitEncryption
Specifies whether you want DataSync to use Transport Layer Security (TLS) 1.2 encryption when it copies data to or from the Amazon EFS file system.If you specify an access point using
AccessPointArnor an IAM role usingFileSystemAccessRoleArn, you must set this parameter toTLS1_2. -
getSubdirectory
Specifies a mount path for your Amazon EFS file system.This is where DataSync reads or writes data (depending on if this is a source or destination location). By default, DataSync uses the root directory, but you can also include subdirectories.
You must specify a value with forward slashes (for example,
/path/to/folder). -
setSubdirectory
Specifies a mount path for your Amazon EFS file system.This is where DataSync reads or writes data (depending on if this is a source or destination location). By default, DataSync uses the root directory, but you can also include subdirectories.
You must specify a value with forward slashes (for example,
/path/to/folder).
-