Class MountTarget
Provides an Elastic File System (EFS) mount target.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var foo = new Aws.Ec2.Vpc("foo", new Aws.Ec2.VpcArgs
{
CidrBlock = "10.0.0.0/16",
});
var alphaSubnet = new Aws.Ec2.Subnet("alphaSubnet", new Aws.Ec2.SubnetArgs
{
AvailabilityZone = "us-west-2a",
CidrBlock = "10.0.1.0/24",
VpcId = foo.Id,
});
var alphaMountTarget = new Aws.Efs.MountTarget("alphaMountTarget", new Aws.Efs.MountTargetArgs
{
FileSystemId = aws_efs_file_system.Foo.Id,
SubnetId = alphaSubnet.Id,
});
}
}
Inherited Members
Namespace: Pulumi.Aws.Efs
Assembly: Pulumi.Aws.dll
Syntax
public class MountTarget : CustomResource
Constructors
View SourceMountTarget(String, MountTargetArgs, CustomResourceOptions)
Create a MountTarget resource with the given unique name, arguments, and options.
Declaration
public MountTarget(string name, MountTargetArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| MountTargetArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceDnsName
The DNS name for the given subnet/AZ per documented convention.
Declaration
public Output<string> DnsName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
FileSystemArn
Amazon Resource Name of the file system.
Declaration
public Output<string> FileSystemArn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
FileSystemId
The ID of the file system for which the mount target is intended.
Declaration
public Output<string> FileSystemId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
IpAddress
The address (within the address range of the specified subnet) at which the file system may be mounted via the mount target.
Declaration
public Output<string> IpAddress { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
NetworkInterfaceId
The ID of the network interface that Amazon EFS created when it created the mount target.
Declaration
public Output<string> NetworkInterfaceId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
SecurityGroups
A list of up to 5 VPC security group IDs (that must be for the same VPC as subnet specified) in effect for the mount target.
Declaration
public Output<ImmutableArray<string>> SecurityGroups { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
SubnetId
The ID of the subnet to add the mount target in.
Declaration
public Output<string> SubnetId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, MountTargetState, CustomResourceOptions)
Get an existing MountTarget resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static MountTarget Get(string name, Input<string> id, MountTargetState 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. |
| MountTargetState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| MountTarget |