aws-native logo
AWS Native v0.54.0, Mar 21 23

aws-native.datasync.LocationEFS

Resource schema for AWS::DataSync::LocationEFS.

Example Usage

Example

using System.Collections.Generic;
using Pulumi;
using AwsNative = Pulumi.AwsNative;

return await Deployment.RunAsync(() => 
{
    var locationEFS = new AwsNative.DataSync.LocationEFS("locationEFS", new()
    {
        Ec2Config = new AwsNative.DataSync.Inputs.LocationEFSEc2ConfigArgs
        {
            SecurityGroupArns = new[]
            {
                "arn:aws:ec2:us-east-2:11122233344:security-group/sg-1234567890abcdef2",
            },
            SubnetArn = "arn:aws:ec2:us-east-2:11122233344:subnet/subnet-1234567890abcdef1",
        },
        EfsFilesystemArn = "arn:aws:elasticfilesystem:us-east-2:111222333444:file-system/fs-021345abcdef6789",
        Subdirectory = "/mount/path",
    });

});
package main

import (
	"github.com/pulumi/pulumi-aws-native/sdk/go/aws/datasync"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := datasync.NewLocationEFS(ctx, "locationEFS", &datasync.LocationEFSArgs{
			Ec2Config: &datasync.LocationEFSEc2ConfigArgs{
				SecurityGroupArns: pulumi.StringArray{
					pulumi.String("arn:aws:ec2:us-east-2:11122233344:security-group/sg-1234567890abcdef2"),
				},
				SubnetArn: pulumi.String("arn:aws:ec2:us-east-2:11122233344:subnet/subnet-1234567890abcdef1"),
			},
			EfsFilesystemArn: pulumi.String("arn:aws:elasticfilesystem:us-east-2:111222333444:file-system/fs-021345abcdef6789"),
			Subdirectory:     pulumi.String("/mount/path"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_aws_native as aws_native

location_efs = aws_native.datasync.LocationEFS("locationEFS",
    ec2_config=aws_native.datasync.LocationEFSEc2ConfigArgs(
        security_group_arns=["arn:aws:ec2:us-east-2:11122233344:security-group/sg-1234567890abcdef2"],
        subnet_arn="arn:aws:ec2:us-east-2:11122233344:subnet/subnet-1234567890abcdef1",
    ),
    efs_filesystem_arn="arn:aws:elasticfilesystem:us-east-2:111222333444:file-system/fs-021345abcdef6789",
    subdirectory="/mount/path")
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";

const locationEFS = new aws_native.datasync.LocationEFS("locationEFS", {
    ec2Config: {
        securityGroupArns: ["arn:aws:ec2:us-east-2:11122233344:security-group/sg-1234567890abcdef2"],
        subnetArn: "arn:aws:ec2:us-east-2:11122233344:subnet/subnet-1234567890abcdef1",
    },
    efsFilesystemArn: "arn:aws:elasticfilesystem:us-east-2:111222333444:file-system/fs-021345abcdef6789",
    subdirectory: "/mount/path",
});

Coming soon!

Example

using System.Collections.Generic;
using Pulumi;
using AwsNative = Pulumi.AwsNative;

return await Deployment.RunAsync(() => 
{
    var locationEFS = new AwsNative.DataSync.LocationEFS("locationEFS", new()
    {
        AccessPointArn = "arn:aws:elasticfilesystem:us-east-2:111222333444:access-point/fsap-1234567890abcdef0",
        Ec2Config = new AwsNative.DataSync.Inputs.LocationEFSEc2ConfigArgs
        {
            SecurityGroupArns = new[]
            {
                "arn:aws:ec2:us-east-2:11122233344:security-group/sg-1234567890abcdef2",
            },
            SubnetArn = "arn:aws:ec2:us-east-2:11122233344:subnet/subnet-1234567890abcdef1",
        },
        EfsFilesystemArn = "arn:aws:elasticfilesystem:us-east-2:111222333444:file-system/fs-021345abcdef6789",
        FileSystemAccessRoleArn = "arn:aws:iam::111222333444:role/AllowDataSyncAccess",
        InTransitEncryption = AwsNative.DataSync.LocationEFSInTransitEncryption.Tls12,
    });

});
package main

import (
	"github.com/pulumi/pulumi-aws-native/sdk/go/aws/datasync"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := datasync.NewLocationEFS(ctx, "locationEFS", &datasync.LocationEFSArgs{
			AccessPointArn: pulumi.String("arn:aws:elasticfilesystem:us-east-2:111222333444:access-point/fsap-1234567890abcdef0"),
			Ec2Config: &datasync.LocationEFSEc2ConfigArgs{
				SecurityGroupArns: pulumi.StringArray{
					pulumi.String("arn:aws:ec2:us-east-2:11122233344:security-group/sg-1234567890abcdef2"),
				},
				SubnetArn: pulumi.String("arn:aws:ec2:us-east-2:11122233344:subnet/subnet-1234567890abcdef1"),
			},
			EfsFilesystemArn:        pulumi.String("arn:aws:elasticfilesystem:us-east-2:111222333444:file-system/fs-021345abcdef6789"),
			FileSystemAccessRoleArn: pulumi.String("arn:aws:iam::111222333444:role/AllowDataSyncAccess"),
			InTransitEncryption:     datasync.LocationEFSInTransitEncryptionTls12,
		})
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_aws_native as aws_native

location_efs = aws_native.datasync.LocationEFS("locationEFS",
    access_point_arn="arn:aws:elasticfilesystem:us-east-2:111222333444:access-point/fsap-1234567890abcdef0",
    ec2_config=aws_native.datasync.LocationEFSEc2ConfigArgs(
        security_group_arns=["arn:aws:ec2:us-east-2:11122233344:security-group/sg-1234567890abcdef2"],
        subnet_arn="arn:aws:ec2:us-east-2:11122233344:subnet/subnet-1234567890abcdef1",
    ),
    efs_filesystem_arn="arn:aws:elasticfilesystem:us-east-2:111222333444:file-system/fs-021345abcdef6789",
    file_system_access_role_arn="arn:aws:iam::111222333444:role/AllowDataSyncAccess",
    in_transit_encryption=aws_native.datasync.LocationEFSInTransitEncryption.TLS12)
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";

const locationEFS = new aws_native.datasync.LocationEFS("locationEFS", {
    accessPointArn: "arn:aws:elasticfilesystem:us-east-2:111222333444:access-point/fsap-1234567890abcdef0",
    ec2Config: {
        securityGroupArns: ["arn:aws:ec2:us-east-2:11122233344:security-group/sg-1234567890abcdef2"],
        subnetArn: "arn:aws:ec2:us-east-2:11122233344:subnet/subnet-1234567890abcdef1",
    },
    efsFilesystemArn: "arn:aws:elasticfilesystem:us-east-2:111222333444:file-system/fs-021345abcdef6789",
    fileSystemAccessRoleArn: "arn:aws:iam::111222333444:role/AllowDataSyncAccess",
    inTransitEncryption: aws_native.datasync.LocationEFSInTransitEncryption.Tls12,
});

Coming soon!

Create LocationEFS Resource

new LocationEFS(name: string, args: LocationEFSArgs, opts?: CustomResourceOptions);
@overload
def LocationEFS(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                access_point_arn: Optional[str] = None,
                ec2_config: Optional[LocationEFSEc2ConfigArgs] = None,
                efs_filesystem_arn: Optional[str] = None,
                file_system_access_role_arn: Optional[str] = None,
                in_transit_encryption: Optional[LocationEFSInTransitEncryption] = None,
                subdirectory: Optional[str] = None,
                tags: Optional[Sequence[LocationEFSTagArgs]] = None)
@overload
def LocationEFS(resource_name: str,
                args: LocationEFSArgs,
                opts: Optional[ResourceOptions] = None)
func NewLocationEFS(ctx *Context, name string, args LocationEFSArgs, opts ...ResourceOption) (*LocationEFS, error)
public LocationEFS(string name, LocationEFSArgs args, CustomResourceOptions? opts = null)
public LocationEFS(String name, LocationEFSArgs args)
public LocationEFS(String name, LocationEFSArgs args, CustomResourceOptions options)
type: aws-native:datasync:LocationEFS
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args LocationEFSArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args LocationEFSArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args LocationEFSArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args LocationEFSArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args LocationEFSArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

LocationEFS Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The LocationEFS resource accepts the following input properties:

Ec2Config Pulumi.AwsNative.DataSync.Inputs.LocationEFSEc2ConfigArgs
AccessPointArn string

The Amazon Resource Name (ARN) for the Amazon EFS Access point that DataSync uses when accessing the EFS file system.

EfsFilesystemArn string

The Amazon Resource Name (ARN) for the Amazon EFS file system.

FileSystemAccessRoleArn string

The Amazon Resource Name (ARN) of the AWS IAM role that the DataSync will assume when mounting the EFS file system.

InTransitEncryption Pulumi.AwsNative.DataSync.LocationEFSInTransitEncryption

Protocol that is used for encrypting the traffic exchanged between the DataSync Agent and the EFS file system.

Subdirectory string

A subdirectory in the location's path. This subdirectory in the EFS file system is used to read data from the EFS source location or write data to the EFS destination.

Tags List<Pulumi.AwsNative.DataSync.Inputs.LocationEFSTagArgs>

An array of key-value pairs to apply to this resource.

Ec2Config LocationEFSEc2ConfigArgs
AccessPointArn string

The Amazon Resource Name (ARN) for the Amazon EFS Access point that DataSync uses when accessing the EFS file system.

EfsFilesystemArn string

The Amazon Resource Name (ARN) for the Amazon EFS file system.

FileSystemAccessRoleArn string

The Amazon Resource Name (ARN) of the AWS IAM role that the DataSync will assume when mounting the EFS file system.

InTransitEncryption LocationEFSInTransitEncryption

Protocol that is used for encrypting the traffic exchanged between the DataSync Agent and the EFS file system.

Subdirectory string

A subdirectory in the location's path. This subdirectory in the EFS file system is used to read data from the EFS source location or write data to the EFS destination.

Tags []LocationEFSTagArgs

An array of key-value pairs to apply to this resource.

ec2Config LocationEFSEc2ConfigArgs
accessPointArn String

The Amazon Resource Name (ARN) for the Amazon EFS Access point that DataSync uses when accessing the EFS file system.

efsFilesystemArn String

The Amazon Resource Name (ARN) for the Amazon EFS file system.

fileSystemAccessRoleArn String

The Amazon Resource Name (ARN) of the AWS IAM role that the DataSync will assume when mounting the EFS file system.

inTransitEncryption LocationEFSInTransitEncryption

Protocol that is used for encrypting the traffic exchanged between the DataSync Agent and the EFS file system.

subdirectory String

A subdirectory in the location's path. This subdirectory in the EFS file system is used to read data from the EFS source location or write data to the EFS destination.

tags List<LocationEFSTagArgs>

An array of key-value pairs to apply to this resource.

ec2Config LocationEFSEc2ConfigArgs
accessPointArn string

The Amazon Resource Name (ARN) for the Amazon EFS Access point that DataSync uses when accessing the EFS file system.

efsFilesystemArn string

The Amazon Resource Name (ARN) for the Amazon EFS file system.

fileSystemAccessRoleArn string

The Amazon Resource Name (ARN) of the AWS IAM role that the DataSync will assume when mounting the EFS file system.

inTransitEncryption LocationEFSInTransitEncryption

Protocol that is used for encrypting the traffic exchanged between the DataSync Agent and the EFS file system.

subdirectory string

A subdirectory in the location's path. This subdirectory in the EFS file system is used to read data from the EFS source location or write data to the EFS destination.

tags LocationEFSTagArgs[]

An array of key-value pairs to apply to this resource.

ec2_config LocationEFSEc2ConfigArgs
access_point_arn str

The Amazon Resource Name (ARN) for the Amazon EFS Access point that DataSync uses when accessing the EFS file system.

efs_filesystem_arn str

The Amazon Resource Name (ARN) for the Amazon EFS file system.

file_system_access_role_arn str

The Amazon Resource Name (ARN) of the AWS IAM role that the DataSync will assume when mounting the EFS file system.

in_transit_encryption LocationEFSInTransitEncryption

Protocol that is used for encrypting the traffic exchanged between the DataSync Agent and the EFS file system.

subdirectory str

A subdirectory in the location's path. This subdirectory in the EFS file system is used to read data from the EFS source location or write data to the EFS destination.

tags Sequence[LocationEFSTagArgs]

An array of key-value pairs to apply to this resource.

ec2Config Property Map
accessPointArn String

The Amazon Resource Name (ARN) for the Amazon EFS Access point that DataSync uses when accessing the EFS file system.

efsFilesystemArn String

The Amazon Resource Name (ARN) for the Amazon EFS file system.

fileSystemAccessRoleArn String

The Amazon Resource Name (ARN) of the AWS IAM role that the DataSync will assume when mounting the EFS file system.

inTransitEncryption "NONE" | "TLS1_2"

Protocol that is used for encrypting the traffic exchanged between the DataSync Agent and the EFS file system.

subdirectory String

A subdirectory in the location's path. This subdirectory in the EFS file system is used to read data from the EFS source location or write data to the EFS destination.

tags List<Property Map>

An array of key-value pairs to apply to this resource.

Outputs

All input properties are implicitly available as output properties. Additionally, the LocationEFS resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

LocationArn string

The Amazon Resource Name (ARN) of the Amazon EFS file system location that is created.

LocationUri string

The URL of the EFS location that was described.

Id string

The provider-assigned unique ID for this managed resource.

LocationArn string

The Amazon Resource Name (ARN) of the Amazon EFS file system location that is created.

LocationUri string

The URL of the EFS location that was described.

id String

The provider-assigned unique ID for this managed resource.

locationArn String

The Amazon Resource Name (ARN) of the Amazon EFS file system location that is created.

locationUri String

The URL of the EFS location that was described.

id string

The provider-assigned unique ID for this managed resource.

locationArn string

The Amazon Resource Name (ARN) of the Amazon EFS file system location that is created.

locationUri string

The URL of the EFS location that was described.

id str

The provider-assigned unique ID for this managed resource.

location_arn str

The Amazon Resource Name (ARN) of the Amazon EFS file system location that is created.

location_uri str

The URL of the EFS location that was described.

id String

The provider-assigned unique ID for this managed resource.

locationArn String

The Amazon Resource Name (ARN) of the Amazon EFS file system location that is created.

locationUri String

The URL of the EFS location that was described.

Supporting Types

LocationEFSEc2Config

SecurityGroupArns List<string>

The Amazon Resource Names (ARNs) of the security groups that are configured for the Amazon EC2 resource.

SubnetArn string

The ARN of the subnet that DataSync uses to access the target EFS file system.

SecurityGroupArns []string

The Amazon Resource Names (ARNs) of the security groups that are configured for the Amazon EC2 resource.

SubnetArn string

The ARN of the subnet that DataSync uses to access the target EFS file system.

securityGroupArns List<String>

The Amazon Resource Names (ARNs) of the security groups that are configured for the Amazon EC2 resource.

subnetArn String

The ARN of the subnet that DataSync uses to access the target EFS file system.

securityGroupArns string[]

The Amazon Resource Names (ARNs) of the security groups that are configured for the Amazon EC2 resource.

subnetArn string

The ARN of the subnet that DataSync uses to access the target EFS file system.

security_group_arns Sequence[str]

The Amazon Resource Names (ARNs) of the security groups that are configured for the Amazon EC2 resource.

subnet_arn str

The ARN of the subnet that DataSync uses to access the target EFS file system.

securityGroupArns List<String>

The Amazon Resource Names (ARNs) of the security groups that are configured for the Amazon EC2 resource.

subnetArn String

The ARN of the subnet that DataSync uses to access the target EFS file system.

LocationEFSInTransitEncryption

None
NONE
Tls12
TLS1_2
LocationEFSInTransitEncryptionNone
NONE
LocationEFSInTransitEncryptionTls12
TLS1_2
None
NONE
Tls12
TLS1_2
None
NONE
Tls12
TLS1_2
NONE
NONE
TLS12
TLS1_2
"NONE"
NONE
"TLS1_2"
TLS1_2

LocationEFSTag

Key string

The key for an AWS resource tag.

Value string

The value for an AWS resource tag.

Key string

The key for an AWS resource tag.

Value string

The value for an AWS resource tag.

key String

The key for an AWS resource tag.

value String

The value for an AWS resource tag.

key string

The key for an AWS resource tag.

value string

The value for an AWS resource tag.

key str

The key for an AWS resource tag.

value str

The value for an AWS resource tag.

key String

The key for an AWS resource tag.

value String

The value for an AWS resource tag.

Package Details

Repository
AWS Native pulumi/pulumi-aws-native
License
Apache-2.0