Class EfsLocation
Manages an AWS DataSync EFS Location.
NOTE: The EFS File System must have a mounted EFS Mount Target before creating this resource.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.DataSync.EfsLocation("example", new Aws.DataSync.EfsLocationArgs
{
Ec2Config = new Aws.DataSync.Inputs.EfsLocationEc2ConfigArgs
{
SecurityGroupArns =
{
aws_security_group.Example.Arn,
},
SubnetArn = aws_subnet.Example.Arn,
},
EfsFileSystemArn = aws_efs_mount_target.Example.File_system_arn,
});
}
}
Inherited Members
Namespace: Pulumi.Aws.DataSync
Assembly: Pulumi.Aws.dll
Syntax
public class EfsLocation : CustomResource
Constructors
View SourceEfsLocation(String, EfsLocationArgs, CustomResourceOptions)
Create a EfsLocation resource with the given unique name, arguments, and options.
Declaration
public EfsLocation(string name, EfsLocationArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| EfsLocationArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceArn
Amazon Resource Name (ARN) of the DataSync Location.
Declaration
public Output<string> Arn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Ec2Config
Configuration block containing EC2 configurations for connecting to the EFS File System.
Declaration
public Output<EfsLocationEc2Config> Ec2Config { get; }
Property Value
| Type | Description |
|---|---|
| Output<EfsLocationEc2Config> |
EfsFileSystemArn
Amazon Resource Name (ARN) of EFS File System.
Declaration
public Output<string> EfsFileSystemArn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Subdirectory
Subdirectory to perform actions as source or destination. Default /.
Declaration
public Output<string> Subdirectory { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Tags
Key-value pairs of resource tags to assign to the DataSync Location.
Declaration
public Output<ImmutableDictionary<string, object>> Tags { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>> |
Uri
Declaration
public Output<string> Uri { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, EfsLocationState, CustomResourceOptions)
Get an existing EfsLocation resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static EfsLocation Get(string name, Input<string> id, EfsLocationState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| EfsLocationState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| EfsLocation |