MountTargetArgs

data class MountTargetArgs(val fileSystemId: Output<String>? = null, val ipAddress: Output<String>? = null, val securityGroups: Output<List<String>>? = null, val subnetId: Output<String>? = null) : ConvertibleToJava<MountTargetArgs>

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

Constructors

Link copied to clipboard
constructor(fileSystemId: Output<String>? = null, ipAddress: Output<String>? = null, securityGroups: Output<List<String>>? = null, subnetId: Output<String>? = null)

Properties

Link copied to clipboard
val fileSystemId: Output<String>? = null

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

Link copied to clipboard
val ipAddress: Output<String>? = null

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
val securityGroups: Output<List<String>>? = null

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>? = null

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

Functions

Link copied to clipboard
open override fun toJava(): MountTargetArgs