Class EfsLocation


  • public class EfsLocation
    extends com.pulumi.resources.CustomResource
    Manages an AWS DataSync EFS Location. > **NOTE:** The EFS File System must have a mounted EFS Mount Target before creating this resource. ## Example Usage <!--Start PulumiCodeChooser -->
     
     package generated_program;
     
     import com.pulumi.Context;
     import com.pulumi.Pulumi;
     import com.pulumi.core.Output;
     import com.pulumi.aws.datasync.EfsLocation;
     import com.pulumi.aws.datasync.EfsLocationArgs;
     import com.pulumi.aws.datasync.inputs.EfsLocationEc2ConfigArgs;
     import java.util.List;
     import java.util.ArrayList;
     import java.util.Map;
     import java.io.File;
     import java.nio.file.Files;
     import java.nio.file.Paths;
     
     public class App {
         public static void main(String[] args) {
             Pulumi.run(App::stack);
         }
     
         public static void stack(Context ctx) {
             var example = new EfsLocation("example", EfsLocationArgs.builder()        
                 .efsFileSystemArn(exampleAwsEfsMountTarget.fileSystemArn())
                 .ec2Config(EfsLocationEc2ConfigArgs.builder()
                     .securityGroupArns(exampleAwsSecurityGroup.arn())
                     .subnetArn(exampleAwsSubnet.arn())
                     .build())
                 .build());
     
         }
     }
     
     
    <!--End PulumiCodeChooser --> ## Import Using `pulumi import`, import `aws_datasync_location_efs` using the DataSync Task Amazon Resource Name (ARN). For example: ```sh $ pulumi import aws:datasync/efsLocation:EfsLocation example arn:aws:datasync:us-east-1:123456789012:location/loc-12345678901234567 ```
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.pulumi.resources.CustomResource

        com.pulumi.resources.CustomResource.CustomResourceInternal
      • Nested classes/interfaces inherited from class com.pulumi.resources.Resource

        com.pulumi.resources.Resource.LazyField<T extends java.lang.Object>, com.pulumi.resources.Resource.LazyFields, com.pulumi.resources.Resource.ResourceInternal
    • Field Summary

      • Fields inherited from class com.pulumi.resources.Resource

        childResources, remote
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> accessPointArn()  
      com.pulumi.core.Output<java.lang.String> arn()  
      com.pulumi.core.Output<EfsLocationEc2Config> ec2Config()  
      com.pulumi.core.Output<java.lang.String> efsFileSystemArn()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> fileSystemAccessRoleArn()  
      static EfsLocation get​(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, EfsLocationState state, com.pulumi.resources.CustomResourceOptions options)
      Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> inTransitEncryption()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> subdirectory()  
      com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,​java.lang.String>>> tags()  
      com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tagsAll()  
      com.pulumi.core.Output<java.lang.String> uri()  
      • Methods inherited from class com.pulumi.resources.CustomResource

        getId, id, idFuture
      • Methods inherited from class com.pulumi.resources.Resource

        getChildResources, getResourceName, getResourceType, getUrn, pulumiChildResources, pulumiResourceName, pulumiResourceType, urn
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EfsLocation

        public EfsLocation​(java.lang.String name)
        Parameters:
        name - The _unique_ name of the resulting resource.
      • EfsLocation

        public EfsLocation​(java.lang.String name,
                           EfsLocationArgs args)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
      • EfsLocation

        public EfsLocation​(java.lang.String name,
                           EfsLocationArgs args,
                           @Nullable
                           com.pulumi.resources.CustomResourceOptions options)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
        options - A bag of options that control this resource's behavior.
    • Method Detail

      • accessPointArn

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> accessPointArn()
        Returns:
        Specifies the Amazon Resource Name (ARN) of the access point that DataSync uses to access the Amazon EFS file system.
      • arn

        public com.pulumi.core.Output<java.lang.String> arn()
        Returns:
        Amazon Resource Name (ARN) of the DataSync Location.
      • ec2Config

        public com.pulumi.core.Output<EfsLocationEc2Config> ec2Config()
        Returns:
        Configuration block containing EC2 configurations for connecting to the EFS File System.
      • efsFileSystemArn

        public com.pulumi.core.Output<java.lang.String> efsFileSystemArn()
        Returns:
        Amazon Resource Name (ARN) of EFS File System.
      • fileSystemAccessRoleArn

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> fileSystemAccessRoleArn()
        Returns:
        Specifies an Identity and Access Management (IAM) role that DataSync assumes when mounting the Amazon EFS file system.
      • inTransitEncryption

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> inTransitEncryption()
        Returns:
        Specifies whether you want DataSync to use TLS encryption when transferring data to or from your Amazon EFS file system. Valid values are `NONE` and `TLS1_2`.
      • subdirectory

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> subdirectory()
        Returns:
        Subdirectory to perform actions as source or destination. Default `/`.
      • tags

        public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,​java.lang.String>>> tags()
        Returns:
        Key-value pairs of resource tags to assign to the DataSync Location. .If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
      • tagsAll

        public com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tagsAll()
        Returns:
        A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block.
      • uri

        public com.pulumi.core.Output<java.lang.String> uri()
      • get

        public static EfsLocation get​(java.lang.String name,
                                      com.pulumi.core.Output<java.lang.String> id,
                                      @Nullable
                                      EfsLocationState state,
                                      @Nullable
                                      com.pulumi.resources.CustomResourceOptions options)
        Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
        Parameters:
        name - The _unique_ name of the resulting resource.
        id - The _unique_ provider ID of the resource to lookup.
        state -
        options - Optional settings to control the behavior of the CustomResource.