Class CfnLocationEFS

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, ITaggable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-08T21:35:05.102Z") @Stability(Stable) public class CfnLocationEFS extends CfnResource implements IInspectable, ITaggable
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();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String 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 software.constructs.Construct scope, @NotNull String id, @NotNull CfnLocationEFSProps 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

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      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:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrLocationArn

      @Stability(Stable) @NotNull public String getAttrLocationArn()
      The Amazon Resource Name (ARN) of the Amazon EFS file system.
    • getAttrLocationUri

      @Stability(Stable) @NotNull public String getAttrLocationUri()
      The URI of the Amazon EFS file system.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getTags

      @Stability(Stable) @NotNull public TagManager getTags()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getTags in interface ITaggable
    • getEc2Config

      @Stability(Stable) @NotNull public Object getEc2Config()
      Specifies the subnet and security groups DataSync uses to access your Amazon EFS file system.
    • setEc2Config

      @Stability(Stable) public void setEc2Config(@NotNull IResolvable value)
      Specifies the subnet and security groups DataSync uses to access your Amazon EFS file system.
    • setEc2Config

      @Stability(Stable) public void setEc2Config(@NotNull CfnLocationEFS.Ec2ConfigProperty value)
      Specifies the subnet and security groups DataSync uses to access your Amazon EFS file system.
    • getAccessPointArn

      @Stability(Stable) @Nullable public String getAccessPointArn()
      Specifies the Amazon Resource Name (ARN) of the access point that DataSync uses to access the Amazon EFS file system.
    • setAccessPointArn

      @Stability(Stable) public void setAccessPointArn(@Nullable String value)
      Specifies the Amazon Resource Name (ARN) of the access point that DataSync uses to access the Amazon EFS file system.
    • getEfsFilesystemArn

      @Stability(Stable) @Nullable public String getEfsFilesystemArn()
      Specifies the ARN for the Amazon EFS file system.
    • setEfsFilesystemArn

      @Stability(Stable) public void setEfsFilesystemArn(@Nullable String value)
      Specifies the ARN for the Amazon EFS file system.
    • getFileSystemAccessRoleArn

      @Stability(Stable) @Nullable public String getFileSystemAccessRoleArn()
      Specifies an AWS Identity and Access Management (IAM) role that DataSync assumes when mounting the Amazon EFS file system.
    • setFileSystemAccessRoleArn

      @Stability(Stable) public void setFileSystemAccessRoleArn(@Nullable String value)
      Specifies an AWS Identity and Access Management (IAM) role that DataSync assumes when mounting the Amazon EFS file system.
    • getInTransitEncryption

      @Stability(Stable) @Nullable public String 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.
    • setInTransitEncryption

      @Stability(Stable) public void setInTransitEncryption(@Nullable 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.
    • getSubdirectory

      @Stability(Stable) @Nullable public String getSubdirectory()
      Specifies a mount path for your Amazon EFS file system.
    • setSubdirectory

      @Stability(Stable) public void setSubdirectory(@Nullable String value)
      Specifies a mount path for your Amazon EFS file system.
    • getTagsRaw

      @Stability(Stable) @Nullable public List<CfnTag> getTagsRaw()
      Specifies the key-value pair that represents a tag that you want to add to the resource.
    • setTagsRaw

      @Stability(Stable) public void setTagsRaw(@Nullable List<CfnTag> value)
      Specifies the key-value pair that represents a tag that you want to add to the resource.