MountTarget

class MountTarget : KotlinCustomResource

Provides an Elastic File System (EFS) mount target.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2.Vpc;
import com.pulumi.aws.ec2.VpcArgs;
import com.pulumi.aws.ec2.Subnet;
import com.pulumi.aws.ec2.SubnetArgs;
import com.pulumi.aws.efs.MountTarget;
import com.pulumi.aws.efs.MountTargetArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var foo = new Vpc("foo", VpcArgs.builder()
.cidrBlock("10.0.0.0/16")
.build());
var alphaSubnet = new Subnet("alphaSubnet", SubnetArgs.builder()
.vpcId(foo.id())
.availabilityZone("us-west-2a")
.cidrBlock("10.0.1.0/24")
.build());
var alphaMountTarget = new MountTarget("alphaMountTarget", MountTargetArgs.builder()
.fileSystemId(aws_efs_file_system.foo().id())
.subnetId(alphaSubnet.id())
.build());
}
}

Import

The EFS mount targets can be imported using the id, e.g.,

$ pulumi import aws:efs/mountTarget:MountTarget alpha fsmt-52a643fb

Properties

Link copied to clipboard

The unique and consistent identifier of the Availability Zone (AZ) that the mount target resides in.

Link copied to clipboard

The name of the Availability Zone (AZ) that the mount target resides in.

Link copied to clipboard
val dnsName: Output<String>

The DNS name for the EFS file system.

Link copied to clipboard
val fileSystemArn: Output<String>

Amazon Resource Name of the file system.

Link copied to clipboard
val fileSystemId: Output<String>

The ID of the file system for which the mount target is intended.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val ipAddress: Output<String>

The address (within the address range of the specified subnet) at which the file system may be mounted via the mount target.

Link copied to clipboard

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

Link copied to clipboard

The ID of the network interface that Amazon EFS created when it created the mount target.

Link copied to clipboard
val ownerId: Output<String>

AWS account ID that owns the resource.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val securityGroups: Output<List<String>>

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.

Link copied to clipboard
val subnetId: Output<String>

The ID of the subnet to add the mount target in.

Link copied to clipboard
val urn: Output<String>