Package com.pulumi.aws.datasync
Class EfsLocation
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.datasync.EfsLocation
-
public class EfsLocation extends com.pulumi.resources.CustomResourceManages an AWS DataSync EFS Location. > **NOTE:** The EFS File System must have a mounted EFS Mount Target before creating this resource. ## Example Usage
## Import ### Identity Schema #### Required - `arn` (String) ARN of the DataSync EFS location. Using `pulumi import`, import `aws.datasync.EfsLocation` using the DataSync Task ARN. For example: ```sh $ pulumi import aws:datasync/efsLocation:EfsLocation example arn:aws:datasync:us-east-1:123456789012:location/loc-12345678901234567 ```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.ArrayList; import java.util.Arrays; 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() .ec2Config(EfsLocationEc2ConfigArgs.builder() .securityGroupArns(exampleAwsSecurityGroup.arn()) .subnetArn(exampleAwsSubnet.arn()) .build()) .efsFileSystemArn(exampleAwsEfsMountTarget.fileSystemArn()) .build()); } }
-
-
Constructor Summary
Constructors Constructor Description EfsLocation(java.lang.String name)EfsLocation(java.lang.String name, EfsLocationArgs args)EfsLocation(java.lang.String name, EfsLocationArgs args, com.pulumi.resources.CustomResourceOptions options)
-
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 EfsLocationget(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.lang.String>region()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()
-
-
-
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:
- 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:
- 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:
- 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`.
-
region
public com.pulumi.core.Output<java.lang.String> region()
- Returns:
- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
-
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 `defaultTags` 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 `defaultTags` 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.
-
-