Show / Hide Table of Contents

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,
    });
}

}
Inheritance
System.Object
Resource
CustomResource
MountTarget
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.Efs
Assembly: Pulumi.Aws.dll
Syntax
public class MountTarget : CustomResource

Constructors

View Source

MountTarget(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 Source

DnsName

The DNS name for the given subnet/AZ per documented convention.

Declaration
public Output<string> DnsName { get; }
Property Value
Type Description
Output<System.String>
View Source

FileSystemArn

Amazon Resource Name of the file system.

Declaration
public Output<string> FileSystemArn { get; }
Property Value
Type Description
Output<System.String>
View Source

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>
View Source

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>
View Source

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>
View Source

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>>
View Source

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 Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.