@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.862Z") @Stability(value=Stable) public class CfnLocationEFS extends CfnResource implements IInspectable
The AWS::DataSync::LocationEFS resource specifies an endpoint for an Amazon EFS 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())
.efsFilesystemArn("efsFilesystemArn")
// the properties below are optional
.accessPointArn("accessPointArn")
.fileSystemAccessRoleArn("fileSystemAccessRoleArn")
.inTransitEncryption("inTransitEncryption")
.subdirectory("subdirectory")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnLocationEFS.Builder
A fluent builder for
CfnLocationEFS. |
static interface |
CfnLocationEFS.Ec2ConfigProperty
The subnet and the security group that DataSync uses to access the target EFS file system.
|
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 |
|---|---|
|
CfnLocationEFS(software.constructs.Construct scope,
String id,
CfnLocationEFSProps props)
Create a new `AWS::DataSync::LocationEFS`.
|
protected |
CfnLocationEFS(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnLocationEFS(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAccessPointArn()
`AWS::DataSync::LocationEFS.AccessPointArn`.
|
String |
getAttrLocationArn()
The Amazon Resource Name (ARN) of the Amazon EFS file system.
|
String |
getAttrLocationUri()
The URI of the Amazon EFS file system.
|
protected Map<String,Object> |
getCfnProperties() |
Object |
getEc2Config()
The subnet and security group that the Amazon EFS file system uses.
|
String |
getEfsFilesystemArn()
The Amazon Resource Name (ARN) for the Amazon EFS file system.
|
String |
getFileSystemAccessRoleArn()
`AWS::DataSync::LocationEFS.FileSystemAccessRoleArn`.
|
String |
getInTransitEncryption()
`AWS::DataSync::LocationEFS.InTransitEncryption`.
|
String |
getSubdirectory()
A subdirectory in the location’s path.
|
TagManager |
getTags()
The key-value pair that represents a tag that you want to add to the resource.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setAccessPointArn(String value)
`AWS::DataSync::LocationEFS.AccessPointArn`.
|
void |
setEc2Config(CfnLocationEFS.Ec2ConfigProperty value)
The subnet and security group that the Amazon EFS file system uses.
|
void |
setEc2Config(IResolvable value)
The subnet and security group that the Amazon EFS file system uses.
|
void |
setEfsFilesystemArn(String value)
The Amazon Resource Name (ARN) for the Amazon EFS file system.
|
void |
setFileSystemAccessRoleArn(String value)
`AWS::DataSync::LocationEFS.FileSystemAccessRoleArn`.
|
void |
setInTransitEncryption(String value)
`AWS::DataSync::LocationEFS.InTransitEncryption`.
|
void |
setSubdirectory(String value)
A subdirectory in the location’s path.
|
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 CfnLocationEFS(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnLocationEFS(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnLocationEFS(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnLocationEFSProps 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. This value helps you manage, filter, and search for your resources. We recommend that you create a name tag for your location.
@Stability(value=Stable) @NotNull public Object getEc2Config()
The security group that you provide needs to be able to communicate with the security group on the mount target in the subnet specified.
The exact relationship between security group M (of the mount target) and security group S (which you provide for DataSync to use at this stage) is as follows:
For information about security groups and mount targets, see Security Groups for Amazon EC2 Instances and Mount Targets in the Amazon EFS User Guide.
@Stability(value=Stable)
public void setEc2Config(@NotNull
CfnLocationEFS.Ec2ConfigProperty value)
The security group that you provide needs to be able to communicate with the security group on the mount target in the subnet specified.
The exact relationship between security group M (of the mount target) and security group S (which you provide for DataSync to use at this stage) is as follows:
For information about security groups and mount targets, see Security Groups for Amazon EC2 Instances and Mount Targets in the Amazon EFS User Guide.
@Stability(value=Stable)
public void setEc2Config(@NotNull
IResolvable value)
The security group that you provide needs to be able to communicate with the security group on the mount target in the subnet specified.
The exact relationship between security group M (of the mount target) and security group S (which you provide for DataSync to use at this stage) is as follows:
For information about security groups and mount targets, see Security Groups for Amazon EC2 Instances and Mount Targets in the Amazon EFS User Guide.
@Stability(value=Stable) @NotNull public String getEfsFilesystemArn()
@Stability(value=Stable)
public void setEfsFilesystemArn(@NotNull
String value)
@Stability(value=Stable) @Nullable public String getAccessPointArn()
@Stability(value=Stable)
public void setAccessPointArn(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getFileSystemAccessRoleArn()
@Stability(value=Stable)
public void setFileSystemAccessRoleArn(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getInTransitEncryption()
@Stability(value=Stable)
public void setInTransitEncryption(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getSubdirectory()
This subdirectory in the EFS file system is used to read data from the EFS source location or write data to the EFS destination. By default, AWS DataSync uses the root directory.
Subdirectorymust be specified with forward slashes. For example,/path/to/folder.
@Stability(value=Stable)
public void setSubdirectory(@Nullable
String value)
This subdirectory in the EFS file system is used to read data from the EFS source location or write data to the EFS destination. By default, AWS DataSync uses the root directory.
Subdirectorymust be specified with forward slashes. For example,/path/to/folder.
Copyright © 2022. All rights reserved.