FileSystemArgs

data class FileSystemArgs(val availabilityZoneName: Output<String>? = null, val creationToken: Output<String>? = null, val encrypted: Output<Boolean>? = null, val kmsKeyId: Output<String>? = null, val lifecyclePolicies: Output<List<FileSystemLifecyclePolicyArgs>>? = null, val performanceMode: Output<String>? = null, val provisionedThroughputInMibps: Output<Double>? = null, val tags: Output<Map<String, String>>? = null, val throughputMode: Output<String>? = null) : ConvertibleToJava<FileSystemArgs>

Provides an Elastic File System (EFS) File System resource.

Example Usage

EFS File System w/ tags

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.efs.FileSystem;
import com.pulumi.aws.efs.FileSystemArgs;
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 FileSystem("foo", FileSystemArgs.builder()
.tags(Map.of("Name", "MyProduct"))
.build());
}
}

Using lifecycle policy

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.efs.FileSystem;
import com.pulumi.aws.efs.FileSystemArgs;
import com.pulumi.aws.efs.inputs.FileSystemLifecyclePolicyArgs;
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 fooWithLifecylePolicy = new FileSystem("fooWithLifecylePolicy", FileSystemArgs.builder()
.lifecyclePolicies(FileSystemLifecyclePolicyArgs.builder()
.transitionToIa("AFTER_30_DAYS")
.build())
.build());
}
}

Import

The EFS file systems can be imported using the id, e.g.,

$ pulumi import aws:efs/fileSystem:FileSystem foo fs-6fa144c6

Constructors

Link copied to clipboard
constructor(availabilityZoneName: Output<String>? = null, creationToken: Output<String>? = null, encrypted: Output<Boolean>? = null, kmsKeyId: Output<String>? = null, lifecyclePolicies: Output<List<FileSystemLifecyclePolicyArgs>>? = null, performanceMode: Output<String>? = null, provisionedThroughputInMibps: Output<Double>? = null, tags: Output<Map<String, String>>? = null, throughputMode: Output<String>? = null)

Properties

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

the AWS Availability Zone in which to create the file system. Used to create a file system that uses One Zone storage classes. See user guide for more information.

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

A unique name (a maximum of 64 characters are allowed) used as reference when creating the Elastic File System to ensure idempotent file system creation. By default generated by this provider. See Elastic File System user guide for more information.

Link copied to clipboard
val encrypted: Output<Boolean>? = null

If true, the disk will be encrypted.

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

The ARN for the KMS encryption key. When specifying kms_key_id, encrypted needs to be set to true.

Link copied to clipboard

A file system lifecycle policy object (documented below).

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

The file system performance mode. Can be either "generalPurpose" or "maxIO" (Default: "generalPurpose").

Link copied to clipboard

The throughput, measured in MiB/s, that you want to provision for the file system. Only applicable with throughput_mode set to provisioned.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

A map of tags to assign to the file system. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

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

Throughput mode for the file system. Defaults to bursting. Valid values: bursting, provisioned, or elastic. When using provisioned, also set provisioned_throughput_in_mibps.

Functions

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