import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Provides an Elastic File System (EFS) File System resource. * * ## Example Usage * * ### EFS File System w/ tags * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.efs.FileSystem("example", { * creationToken: "my-product", * tags: { * Name: "MyProduct", * }, * }); * ``` * * ### Using lifecycle policy * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const fooWithLifecylePolicy = new aws.efs.FileSystem("foo_with_lifecyle_policy", { * lifecyclePolicies: [{ * transitionToIa: "AFTER_30_DAYS", * }], * creationToken: "my-product", * }); * ``` * * ## Import * * ### Identity Schema * * #### Required * * * `id` (String) ID of the file system. * * #### Optional * * * `accountId` (String) AWS Account where this resource is managed. * * `region` (String) Region where this resource is managed. * * Using `pulumi import`, import the EFS file systems using the `id`. For example: * * ```sh * $ pulumi import aws:efs/fileSystem:FileSystem example fs-6fa144c6 * ``` */ export declare class FileSystem extends pulumi.CustomResource { /** * Get an existing FileSystem resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: FileSystemState, opts?: pulumi.CustomResourceOptions): FileSystem; /** * Check whether an existing FileSystem resource with the given ID exists. * * @param id The _unique_ provider ID of the resource to check. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static exists(id: pulumi.Input, state?: FileSystemState, opts?: pulumi.CustomResourceOptions): pulumi.Output; /** * Returns true if the given object is an instance of FileSystem. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is FileSystem; /** * ARN of the file system. */ readonly arn: pulumi.Output; /** * The identifier of the Availability Zone in which the file system's One Zone storage classes exist. */ readonly availabilityZoneId: pulumi.Output; /** * 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](https://docs.aws.amazon.com/efs/latest/ug/availability-durability.html) for more information. */ readonly availabilityZoneName: pulumi.Output; /** * 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. */ readonly creationToken: pulumi.Output; /** * The DNS name for the filesystem per [documented convention](http://docs.aws.amazon.com/efs/latest/ug/mounting-fs-mount-cmd-dns-name.html). */ readonly dnsName: pulumi.Output; /** * Whether the file system is encrypted at rest. Defaults to `true`. AWS encrypts all new file systems regardless of this value. Encryption at rest [cannot be changed after the file system is created](https://docs.aws.amazon.com/efs/latest/ug/encryption-at-rest.html). Changing an existing unencrypted file system from `false` to `true` forces replacement; changing `true` to `false` is ignored. */ readonly encrypted: pulumi.Output; /** * ARN of the KMS encryption key. Cannot be specified when `encrypted` is explicitly set to `false`. */ readonly kmsKeyId: pulumi.Output; /** * A file system [lifecycle policy](https://docs.aws.amazon.com/efs/latest/ug/API_LifecyclePolicy.html) object. See `lifecyclePolicy` block below for details. */ readonly lifecyclePolicies: pulumi.Output; /** * The value of the file system's `Name` tag. */ readonly name: pulumi.Output; /** * The current number of mount targets that the file system has. */ readonly numberOfMountTargets: pulumi.Output; /** * 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. */ readonly ownerId: pulumi.Output; /** * The file system performance mode. Can be either `"generalPurpose"` or `"maxIO"` (Default: `"generalPurpose"`). */ readonly performanceMode: pulumi.Output; /** * A file system [protection](https://docs.aws.amazon.com/efs/latest/ug/API_FileSystemProtectionDescription.html) object. See `protection` block below for details. */ readonly protection: pulumi.Output; /** * The throughput, measured in MiB/s, that you want to provision for the file system. Only applicable with `throughputMode` set to `provisioned`. */ readonly provisionedThroughputInMibps: pulumi.Output; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ readonly region: pulumi.Output; /** * 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. */ readonly sizeInBytes: pulumi.Output; /** * A map of tags to assign to the file system. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. */ readonly tagsAll: pulumi.Output<{ [key: string]: string; }>; /** * Throughput mode for the file system. Defaults to `bursting`, matching the [`CreateFileSystem`](https://docs.aws.amazon.com/efs/latest/ug/API_CreateFileSystem.html) API default. Note that AWS [recommends `elastic` for most use cases](https://docs.aws.amazon.com/efs/latest/ug/managing-throughput.html), and `elastic` is the default in the Amazon EFS console. Valid values: `bursting`, `provisioned`, or `elastic`. When using `provisioned`, also set `provisionedThroughputInMibps`. */ readonly throughputMode: pulumi.Output; /** * Create a FileSystem resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args?: FileSystemArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering FileSystem resources. */ export interface FileSystemState { /** * ARN of the file system. */ arn?: pulumi.Input; /** * The identifier of the Availability Zone in which the file system's One Zone storage classes exist. */ availabilityZoneId?: pulumi.Input; /** * 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](https://docs.aws.amazon.com/efs/latest/ug/availability-durability.html) for more information. */ availabilityZoneName?: pulumi.Input; /** * 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. */ creationToken?: pulumi.Input; /** * The DNS name for the filesystem per [documented convention](http://docs.aws.amazon.com/efs/latest/ug/mounting-fs-mount-cmd-dns-name.html). */ dnsName?: pulumi.Input; /** * Whether the file system is encrypted at rest. Defaults to `true`. AWS encrypts all new file systems regardless of this value. Encryption at rest [cannot be changed after the file system is created](https://docs.aws.amazon.com/efs/latest/ug/encryption-at-rest.html). Changing an existing unencrypted file system from `false` to `true` forces replacement; changing `true` to `false` is ignored. */ encrypted?: pulumi.Input; /** * ARN of the KMS encryption key. Cannot be specified when `encrypted` is explicitly set to `false`. */ kmsKeyId?: pulumi.Input; /** * A file system [lifecycle policy](https://docs.aws.amazon.com/efs/latest/ug/API_LifecyclePolicy.html) object. See `lifecyclePolicy` block below for details. */ lifecyclePolicies?: pulumi.Input[] | undefined>; /** * The value of the file system's `Name` tag. */ name?: pulumi.Input; /** * The current number of mount targets that the file system has. */ numberOfMountTargets?: pulumi.Input; /** * 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. */ ownerId?: pulumi.Input; /** * The file system performance mode. Can be either `"generalPurpose"` or `"maxIO"` (Default: `"generalPurpose"`). */ performanceMode?: pulumi.Input; /** * A file system [protection](https://docs.aws.amazon.com/efs/latest/ug/API_FileSystemProtectionDescription.html) object. See `protection` block below for details. */ protection?: pulumi.Input; /** * The throughput, measured in MiB/s, that you want to provision for the file system. Only applicable with `throughputMode` set to `provisioned`. */ provisionedThroughputInMibps?: pulumi.Input; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input; /** * 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. */ sizeInBytes?: pulumi.Input[] | undefined>; /** * A map of tags to assign to the file system. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block. */ tagsAll?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Throughput mode for the file system. Defaults to `bursting`, matching the [`CreateFileSystem`](https://docs.aws.amazon.com/efs/latest/ug/API_CreateFileSystem.html) API default. Note that AWS [recommends `elastic` for most use cases](https://docs.aws.amazon.com/efs/latest/ug/managing-throughput.html), and `elastic` is the default in the Amazon EFS console. Valid values: `bursting`, `provisioned`, or `elastic`. When using `provisioned`, also set `provisionedThroughputInMibps`. */ throughputMode?: pulumi.Input; } /** * The set of arguments for constructing a FileSystem resource. */ export interface FileSystemArgs { /** * 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](https://docs.aws.amazon.com/efs/latest/ug/availability-durability.html) for more information. */ availabilityZoneName?: pulumi.Input; /** * 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. */ creationToken?: pulumi.Input; /** * Whether the file system is encrypted at rest. Defaults to `true`. AWS encrypts all new file systems regardless of this value. Encryption at rest [cannot be changed after the file system is created](https://docs.aws.amazon.com/efs/latest/ug/encryption-at-rest.html). Changing an existing unencrypted file system from `false` to `true` forces replacement; changing `true` to `false` is ignored. */ encrypted?: pulumi.Input; /** * ARN of the KMS encryption key. Cannot be specified when `encrypted` is explicitly set to `false`. */ kmsKeyId?: pulumi.Input; /** * A file system [lifecycle policy](https://docs.aws.amazon.com/efs/latest/ug/API_LifecyclePolicy.html) object. See `lifecyclePolicy` block below for details. */ lifecyclePolicies?: pulumi.Input[] | undefined>; /** * The file system performance mode. Can be either `"generalPurpose"` or `"maxIO"` (Default: `"generalPurpose"`). */ performanceMode?: pulumi.Input; /** * A file system [protection](https://docs.aws.amazon.com/efs/latest/ug/API_FileSystemProtectionDescription.html) object. See `protection` block below for details. */ protection?: pulumi.Input; /** * The throughput, measured in MiB/s, that you want to provision for the file system. Only applicable with `throughputMode` set to `provisioned`. */ provisionedThroughputInMibps?: pulumi.Input; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input; /** * A map of tags to assign to the file system. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * Throughput mode for the file system. Defaults to `bursting`, matching the [`CreateFileSystem`](https://docs.aws.amazon.com/efs/latest/ug/API_CreateFileSystem.html) API default. Note that AWS [recommends `elastic` for most use cases](https://docs.aws.amazon.com/efs/latest/ug/managing-throughput.html), and `elastic` is the default in the Amazon EFS console. Valid values: `bursting`, `provisioned`, or `elastic`. When using `provisioned`, also set `provisionedThroughputInMibps`. */ throughputMode?: pulumi.Input; } //# sourceMappingURL=fileSystem.d.ts.map