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.
Aws Native. Data Sync. Inputs. Location EFSEc2Config Args - Access
Point stringArn The Amazon Resource Name (ARN) for the Amazon EFS Access point that DataSync uses when accessing the EFS file system.
- Efs
Filesystem stringArn The Amazon Resource Name (ARN) for the Amazon EFS file system.
- File
System stringAccess Role Arn The Amazon Resource Name (ARN) of the AWS IAM role that the DataSync will assume when mounting the EFS file system.
- In
Transit Pulumi.Encryption Aws Native. Data Sync. Location EFSIn Transit Encryption 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.
- List<Pulumi.
Aws Native. Data Sync. Inputs. Location EFSTag Args> An array of key-value pairs to apply to this resource.
- Ec2Config
Location
EFSEc2Config Args - Access
Point stringArn The Amazon Resource Name (ARN) for the Amazon EFS Access point that DataSync uses when accessing the EFS file system.
- Efs
Filesystem stringArn The Amazon Resource Name (ARN) for the Amazon EFS file system.
- File
System stringAccess Role Arn The Amazon Resource Name (ARN) of the AWS IAM role that the DataSync will assume when mounting the EFS file system.
- In
Transit LocationEncryption EFSIn Transit Encryption 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.
- []Location
EFSTag Args An array of key-value pairs to apply to this resource.
- ec2Config
Location
EFSEc2Config Args - access
Point StringArn The Amazon Resource Name (ARN) for the Amazon EFS Access point that DataSync uses when accessing the EFS file system.
- efs
Filesystem StringArn The Amazon Resource Name (ARN) for the Amazon EFS file system.
- file
System StringAccess Role Arn The Amazon Resource Name (ARN) of the AWS IAM role that the DataSync will assume when mounting the EFS file system.
- in
Transit LocationEncryption EFSIn Transit Encryption 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.
- List<Location
EFSTag Args> An array of key-value pairs to apply to this resource.
- ec2Config
Location
EFSEc2Config Args - access
Point stringArn The Amazon Resource Name (ARN) for the Amazon EFS Access point that DataSync uses when accessing the EFS file system.
- efs
Filesystem stringArn The Amazon Resource Name (ARN) for the Amazon EFS file system.
- file
System stringAccess Role Arn The Amazon Resource Name (ARN) of the AWS IAM role that the DataSync will assume when mounting the EFS file system.
- in
Transit LocationEncryption EFSIn Transit Encryption 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.
- Location
EFSTag Args[] An array of key-value pairs to apply to this resource.
- ec2_
config LocationEFSEc2Config Args - access_
point_ strarn The Amazon Resource Name (ARN) for the Amazon EFS Access point that DataSync uses when accessing the EFS file system.
- efs_
filesystem_ strarn The Amazon Resource Name (ARN) for the Amazon EFS file system.
- file_
system_ straccess_ role_ arn The Amazon Resource Name (ARN) of the AWS IAM role that the DataSync will assume when mounting the EFS file system.
- in_
transit_ Locationencryption EFSIn Transit Encryption 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.
- Sequence[Location
EFSTag Args] An array of key-value pairs to apply to this resource.
- ec2Config Property Map
- access
Point StringArn The Amazon Resource Name (ARN) for the Amazon EFS Access point that DataSync uses when accessing the EFS file system.
- efs
Filesystem StringArn The Amazon Resource Name (ARN) for the Amazon EFS file system.
- file
System StringAccess Role Arn The Amazon Resource Name (ARN) of the AWS IAM role that the DataSync will assume when mounting the EFS file system.
- in
Transit "NONE" | "TLS1_2"Encryption 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.
- 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.
- Location
Arn string The Amazon Resource Name (ARN) of the Amazon EFS file system location that is created.
- Location
Uri string The URL of the EFS location that was described.
- Id string
The provider-assigned unique ID for this managed resource.
- Location
Arn string The Amazon Resource Name (ARN) of the Amazon EFS file system location that is created.
- Location
Uri string The URL of the EFS location that was described.
- id String
The provider-assigned unique ID for this managed resource.
- location
Arn String The Amazon Resource Name (ARN) of the Amazon EFS file system location that is created.
- location
Uri String The URL of the EFS location that was described.
- id string
The provider-assigned unique ID for this managed resource.
- location
Arn string The Amazon Resource Name (ARN) of the Amazon EFS file system location that is created.
- location
Uri 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.
- location
Arn String The Amazon Resource Name (ARN) of the Amazon EFS file system location that is created.
- location
Uri String The URL of the EFS location that was described.
Supporting Types
LocationEFSEc2Config
- Security
Group List<string>Arns The Amazon Resource Names (ARNs) of the security groups that are configured for the Amazon EC2 resource.
- Subnet
Arn string The ARN of the subnet that DataSync uses to access the target EFS file system.
- Security
Group []stringArns The Amazon Resource Names (ARNs) of the security groups that are configured for the Amazon EC2 resource.
- Subnet
Arn string The ARN of the subnet that DataSync uses to access the target EFS file system.
- security
Group List<String>Arns The Amazon Resource Names (ARNs) of the security groups that are configured for the Amazon EC2 resource.
- subnet
Arn String The ARN of the subnet that DataSync uses to access the target EFS file system.
- security
Group string[]Arns The Amazon Resource Names (ARNs) of the security groups that are configured for the Amazon EC2 resource.
- subnet
Arn string The ARN of the subnet that DataSync uses to access the target EFS file system.
- security_
group_ Sequence[str]arns 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.
- security
Group List<String>Arns The Amazon Resource Names (ARNs) of the security groups that are configured for the Amazon EC2 resource.
- subnet
Arn String The ARN of the subnet that DataSync uses to access the target EFS file system.
LocationEFSInTransitEncryption
- None
- NONE
- Tls12
- TLS1_2
- Location
EFSIn Transit Encryption None - NONE
- Location
EFSIn Transit Encryption Tls12 - TLS1_2
- None
- NONE
- Tls12
- TLS1_2
- None
- NONE
- Tls12
- TLS1_2
- NONE
- NONE
- TLS12
- TLS1_2
- "NONE"
- NONE
- "TLS1_2"
- TLS1_2
LocationEFSTag
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0