FileSystem

class FileSystem : KotlinCustomResource

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

Properties

Link copied to clipboard
val arn: Output<String>

Amazon Resource Name of the file system.

Link copied to clipboard

The identifier of the Availability Zone in which the file system's One Zone storage classes exist.

Link copied to clipboard

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>

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 dnsName: Output<String>

The DNS name for the filesystem per documented convention.

Link copied to clipboard
val encrypted: Output<Boolean>

If true, the disk will be encrypted.

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

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

The current number of mount targets that the file system has.

Link copied to clipboard
val ownerId: Output<String>

The AWS account that created the file system. If the file system was createdby an IAM user, the parent account to which the user belongs is the owner.

Link copied to clipboard
val performanceMode: Output<String>

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 pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The latest known metered size (in bytes) of data stored in the file system, the value is not the exact size that the file system was at any point in time. See Size In Bytes.

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

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 tagsAll: Output<Map<String, String>>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

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

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

Link copied to clipboard
val urn: Output<String>