EfsLocationArgs

data class EfsLocationArgs(val accessPointArn: Output<String>? = null, val ec2Config: Output<EfsLocationEc2ConfigArgs>? = null, val efsFileSystemArn: Output<String>? = null, val fileSystemAccessRoleArn: Output<String>? = null, val inTransitEncryption: Output<String>? = null, val subdirectory: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<EfsLocationArgs>

Manages an AWS DataSync EFS Location.

NOTE: The EFS File System must have a mounted EFS Mount Target before creating this resource.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.datasync.EfsLocation("example", {
efsFileSystemArn: exampleAwsEfsMountTarget.fileSystemArn,
ec2Config: {
securityGroupArns: [exampleAwsSecurityGroup&#46;arn],
subnetArn: exampleAwsSubnet.arn,
},
});
import pulumi
import pulumi_aws as aws
example = aws.datasync.EfsLocation("example",
efs_file_system_arn=example_aws_efs_mount_target["fileSystemArn"],
ec2_config={
"security_group_arns": [example_aws_security_group["arn"]],
"subnet_arn": example_aws_subnet["arn"],
})
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.DataSync.EfsLocation("example", new()
{
EfsFileSystemArn = exampleAwsEfsMountTarget.FileSystemArn,
Ec2Config = new Aws.DataSync.Inputs.EfsLocationEc2ConfigArgs
{
SecurityGroupArns = new[]
{
exampleAwsSecurityGroup.Arn,
},
SubnetArn = exampleAwsSubnet.Arn,
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws"
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/datasync"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := datasync.NewEfsLocation(ctx, "example", &datasync.EfsLocationArgs{
EfsFileSystemArn: pulumi.Any(exampleAwsEfsMountTarget.FileSystemArn),
Ec2Config: &datasync.EfsLocationEc2ConfigArgs{
SecurityGroupArns: pulumi.StringArray{
exampleAwsSecurityGroup.Arn,
},
SubnetArn: pulumi.Any(exampleAwsSubnet.Arn),
},
})
if err != nil {
return err
}
return nil
})
}
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());
}
}
resources:
example:
type: aws:datasync:EfsLocation
properties:
efsFileSystemArn: ${exampleAwsEfsMountTarget.fileSystemArn}
ec2Config:
securityGroupArns:
- ${exampleAwsSecurityGroup.arn}
subnetArn: ${exampleAwsSubnet.arn}

Import

Using pulumi import, import aws_datasync_location_efs using the DataSync Task Amazon Resource Name (ARN). For example:

$ pulumi import aws:datasync/efsLocation:EfsLocation example arn:aws:datasync:us-east-1:123456789012:location/loc-12345678901234567

Constructors

Link copied to clipboard
constructor(accessPointArn: Output<String>? = null, ec2Config: Output<EfsLocationEc2ConfigArgs>? = null, efsFileSystemArn: Output<String>? = null, fileSystemAccessRoleArn: Output<String>? = null, inTransitEncryption: Output<String>? = null, subdirectory: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val accessPointArn: Output<String>? = null

Specifies the Amazon Resource Name (ARN) of the access point that DataSync uses to access the Amazon EFS file system.

Link copied to clipboard
val ec2Config: Output<EfsLocationEc2ConfigArgs>? = null

Configuration block containing EC2 configurations for connecting to the EFS File System.

Link copied to clipboard
val efsFileSystemArn: Output<String>? = null

Amazon Resource Name (ARN) of EFS File System.

Link copied to clipboard
val fileSystemAccessRoleArn: Output<String>? = null

Specifies an Identity and Access Management (IAM) role that DataSync assumes when mounting the Amazon EFS file system.

Link copied to clipboard
val inTransitEncryption: Output<String>? = null

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.

Link copied to clipboard
val subdirectory: Output<String>? = null

Subdirectory to perform actions as source or destination. Default /.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

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.

Functions

Link copied to clipboard
open override fun toJava(): EfsLocationArgs