aws.efs.FileSystem
Explore with Pulumi AI
Provides an Elastic File System (EFS) File System resource.
Example Usage
EFS File System w/ tags
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const foo = new aws.efs.FileSystem("foo", {
creationToken: "my-product",
tags: {
Name: "MyProduct",
},
});
import pulumi
import pulumi_aws as aws
foo = aws.efs.FileSystem("foo",
creation_token="my-product",
tags={
"Name": "MyProduct",
})
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/efs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := efs.NewFileSystem(ctx, "foo", &efs.FileSystemArgs{
CreationToken: pulumi.String("my-product"),
Tags: pulumi.StringMap{
"Name": pulumi.String("MyProduct"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var foo = new Aws.Efs.FileSystem("foo", new()
{
CreationToken = "my-product",
Tags =
{
{ "Name", "MyProduct" },
},
});
});
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()
.creationToken("my-product")
.tags(Map.of("Name", "MyProduct"))
.build());
}
}
resources:
foo:
type: aws:efs:FileSystem
properties:
creationToken: my-product
tags:
Name: MyProduct
Using lifecycle policy
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const fooWithLifecylePolicy = new aws.efs.FileSystem("foo_with_lifecyle_policy", {
creationToken: "my-product",
lifecyclePolicies: [{
transitionToIa: "AFTER_30_DAYS",
}],
});
import pulumi
import pulumi_aws as aws
foo_with_lifecyle_policy = aws.efs.FileSystem("foo_with_lifecyle_policy",
creation_token="my-product",
lifecycle_policies=[{
"transition_to_ia": "AFTER_30_DAYS",
}])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/efs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := efs.NewFileSystem(ctx, "foo_with_lifecyle_policy", &efs.FileSystemArgs{
CreationToken: pulumi.String("my-product"),
LifecyclePolicies: efs.FileSystemLifecyclePolicyArray{
&efs.FileSystemLifecyclePolicyArgs{
TransitionToIa: pulumi.String("AFTER_30_DAYS"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var fooWithLifecylePolicy = new Aws.Efs.FileSystem("foo_with_lifecyle_policy", new()
{
CreationToken = "my-product",
LifecyclePolicies = new[]
{
new Aws.Efs.Inputs.FileSystemLifecyclePolicyArgs
{
TransitionToIa = "AFTER_30_DAYS",
},
},
});
});
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()
.creationToken("my-product")
.lifecyclePolicies(FileSystemLifecyclePolicyArgs.builder()
.transitionToIa("AFTER_30_DAYS")
.build())
.build());
}
}
resources:
fooWithLifecylePolicy:
type: aws:efs:FileSystem
name: foo_with_lifecyle_policy
properties:
creationToken: my-product
lifecyclePolicies:
- transitionToIa: AFTER_30_DAYS
Create FileSystem Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new FileSystem(name: string, args?: FileSystemArgs, opts?: CustomResourceOptions);
@overload
def FileSystem(resource_name: str,
args: Optional[FileSystemArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def FileSystem(resource_name: str,
opts: Optional[ResourceOptions] = None,
availability_zone_name: Optional[str] = None,
creation_token: Optional[str] = None,
encrypted: Optional[bool] = None,
kms_key_id: Optional[str] = None,
lifecycle_policies: Optional[Sequence[FileSystemLifecyclePolicyArgs]] = None,
performance_mode: Optional[str] = None,
protection: Optional[FileSystemProtectionArgs] = None,
provisioned_throughput_in_mibps: Optional[float] = None,
tags: Optional[Mapping[str, str]] = None,
throughput_mode: Optional[str] = None)
func NewFileSystem(ctx *Context, name string, args *FileSystemArgs, opts ...ResourceOption) (*FileSystem, error)
public FileSystem(string name, FileSystemArgs? args = null, CustomResourceOptions? opts = null)
public FileSystem(String name, FileSystemArgs args)
public FileSystem(String name, FileSystemArgs args, CustomResourceOptions options)
type: aws:efs:FileSystem
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args FileSystemArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args FileSystemArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args FileSystemArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FileSystemArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FileSystemArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var fileSystemResource = new Aws.Efs.FileSystem("fileSystemResource", new()
{
AvailabilityZoneName = "string",
CreationToken = "string",
Encrypted = false,
KmsKeyId = "string",
LifecyclePolicies = new[]
{
new Aws.Efs.Inputs.FileSystemLifecyclePolicyArgs
{
TransitionToArchive = "string",
TransitionToIa = "string",
TransitionToPrimaryStorageClass = "string",
},
},
PerformanceMode = "string",
Protection = new Aws.Efs.Inputs.FileSystemProtectionArgs
{
ReplicationOverwrite = "string",
},
ProvisionedThroughputInMibps = 0,
Tags =
{
{ "string", "string" },
},
ThroughputMode = "string",
});
example, err := efs.NewFileSystem(ctx, "fileSystemResource", &efs.FileSystemArgs{
AvailabilityZoneName: pulumi.String("string"),
CreationToken: pulumi.String("string"),
Encrypted: pulumi.Bool(false),
KmsKeyId: pulumi.String("string"),
LifecyclePolicies: efs.FileSystemLifecyclePolicyArray{
&efs.FileSystemLifecyclePolicyArgs{
TransitionToArchive: pulumi.String("string"),
TransitionToIa: pulumi.String("string"),
TransitionToPrimaryStorageClass: pulumi.String("string"),
},
},
PerformanceMode: pulumi.String("string"),
Protection: &efs.FileSystemProtectionArgs{
ReplicationOverwrite: pulumi.String("string"),
},
ProvisionedThroughputInMibps: pulumi.Float64(0),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
ThroughputMode: pulumi.String("string"),
})
var fileSystemResource = new FileSystem("fileSystemResource", FileSystemArgs.builder()
.availabilityZoneName("string")
.creationToken("string")
.encrypted(false)
.kmsKeyId("string")
.lifecyclePolicies(FileSystemLifecyclePolicyArgs.builder()
.transitionToArchive("string")
.transitionToIa("string")
.transitionToPrimaryStorageClass("string")
.build())
.performanceMode("string")
.protection(FileSystemProtectionArgs.builder()
.replicationOverwrite("string")
.build())
.provisionedThroughputInMibps(0)
.tags(Map.of("string", "string"))
.throughputMode("string")
.build());
file_system_resource = aws.efs.FileSystem("fileSystemResource",
availability_zone_name="string",
creation_token="string",
encrypted=False,
kms_key_id="string",
lifecycle_policies=[{
"transitionToArchive": "string",
"transitionToIa": "string",
"transitionToPrimaryStorageClass": "string",
}],
performance_mode="string",
protection={
"replicationOverwrite": "string",
},
provisioned_throughput_in_mibps=0,
tags={
"string": "string",
},
throughput_mode="string")
const fileSystemResource = new aws.efs.FileSystem("fileSystemResource", {
availabilityZoneName: "string",
creationToken: "string",
encrypted: false,
kmsKeyId: "string",
lifecyclePolicies: [{
transitionToArchive: "string",
transitionToIa: "string",
transitionToPrimaryStorageClass: "string",
}],
performanceMode: "string",
protection: {
replicationOverwrite: "string",
},
provisionedThroughputInMibps: 0,
tags: {
string: "string",
},
throughputMode: "string",
});
type: aws:efs:FileSystem
properties:
availabilityZoneName: string
creationToken: string
encrypted: false
kmsKeyId: string
lifecyclePolicies:
- transitionToArchive: string
transitionToIa: string
transitionToPrimaryStorageClass: string
performanceMode: string
protection:
replicationOverwrite: string
provisionedThroughputInMibps: 0
tags:
string: string
throughputMode: string
FileSystem Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The FileSystem resource accepts the following input properties:
- Availability
Zone stringName - 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.
- Creation
Token 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.
- Encrypted bool
- If true, the disk will be encrypted.
- Kms
Key stringId - The ARN for the KMS encryption key. When specifying kms_key_id, encrypted needs to be set to true.
- Lifecycle
Policies List<FileSystem Lifecycle Policy> - A file system lifecycle policy object. See
lifecycle_policy
block below for details. - Performance
Mode string - The file system performance mode. Can be either
"generalPurpose"
or"maxIO"
(Default:"generalPurpose"
). - Protection
File
System Protection - A file system protection object. See
protection
block below for details. - Provisioned
Throughput doubleIn Mibps - The throughput, measured in MiB/s, that you want to provision for the file system. Only applicable with
throughput_mode
set toprovisioned
. - Dictionary<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. - Throughput
Mode string - Throughput mode for the file system. Defaults to
bursting
. Valid values:bursting
,provisioned
, orelastic
. When usingprovisioned
, also setprovisioned_throughput_in_mibps
.
- Availability
Zone stringName - 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.
- Creation
Token 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.
- Encrypted bool
- If true, the disk will be encrypted.
- Kms
Key stringId - The ARN for the KMS encryption key. When specifying kms_key_id, encrypted needs to be set to true.
- Lifecycle
Policies []FileSystem Lifecycle Policy Args - A file system lifecycle policy object. See
lifecycle_policy
block below for details. - Performance
Mode string - The file system performance mode. Can be either
"generalPurpose"
or"maxIO"
(Default:"generalPurpose"
). - Protection
File
System Protection Args - A file system protection object. See
protection
block below for details. - Provisioned
Throughput float64In Mibps - The throughput, measured in MiB/s, that you want to provision for the file system. Only applicable with
throughput_mode
set toprovisioned
. - 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. - Throughput
Mode string - Throughput mode for the file system. Defaults to
bursting
. Valid values:bursting
,provisioned
, orelastic
. When usingprovisioned
, also setprovisioned_throughput_in_mibps
.
- availability
Zone StringName - 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.
- creation
Token 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.
- encrypted Boolean
- If true, the disk will be encrypted.
- kms
Key StringId - The ARN for the KMS encryption key. When specifying kms_key_id, encrypted needs to be set to true.
- lifecycle
Policies List<FileSystem Lifecycle Policy> - A file system lifecycle policy object. See
lifecycle_policy
block below for details. - performance
Mode String - The file system performance mode. Can be either
"generalPurpose"
or"maxIO"
(Default:"generalPurpose"
). - protection
File
System Protection - A file system protection object. See
protection
block below for details. - provisioned
Throughput DoubleIn Mibps - The throughput, measured in MiB/s, that you want to provision for the file system. Only applicable with
throughput_mode
set toprovisioned
. - 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. - throughput
Mode String - Throughput mode for the file system. Defaults to
bursting
. Valid values:bursting
,provisioned
, orelastic
. When usingprovisioned
, also setprovisioned_throughput_in_mibps
.
- availability
Zone stringName - 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.
- creation
Token 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.
- encrypted boolean
- If true, the disk will be encrypted.
- kms
Key stringId - The ARN for the KMS encryption key. When specifying kms_key_id, encrypted needs to be set to true.
- lifecycle
Policies FileSystem Lifecycle Policy[] - A file system lifecycle policy object. See
lifecycle_policy
block below for details. - performance
Mode string - The file system performance mode. Can be either
"generalPurpose"
or"maxIO"
(Default:"generalPurpose"
). - protection
File
System Protection - A file system protection object. See
protection
block below for details. - provisioned
Throughput numberIn Mibps - The throughput, measured in MiB/s, that you want to provision for the file system. Only applicable with
throughput_mode
set toprovisioned
. - {[key: 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. - throughput
Mode string - Throughput mode for the file system. Defaults to
bursting
. Valid values:bursting
,provisioned
, orelastic
. When usingprovisioned
, also setprovisioned_throughput_in_mibps
.
- availability_
zone_ strname - 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.
- creation_
token str - 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.
- encrypted bool
- If true, the disk will be encrypted.
- kms_
key_ strid - The ARN for the KMS encryption key. When specifying kms_key_id, encrypted needs to be set to true.
- lifecycle_
policies Sequence[FileSystem Lifecycle Policy Args] - A file system lifecycle policy object. See
lifecycle_policy
block below for details. - performance_
mode str - The file system performance mode. Can be either
"generalPurpose"
or"maxIO"
(Default:"generalPurpose"
). - protection
File
System Protection Args - A file system protection object. See
protection
block below for details. - provisioned_
throughput_ floatin_ mibps - The throughput, measured in MiB/s, that you want to provision for the file system. Only applicable with
throughput_mode
set toprovisioned
. - Mapping[str, str]
- 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. - throughput_
mode str - Throughput mode for the file system. Defaults to
bursting
. Valid values:bursting
,provisioned
, orelastic
. When usingprovisioned
, also setprovisioned_throughput_in_mibps
.
- availability
Zone StringName - 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.
- creation
Token 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.
- encrypted Boolean
- If true, the disk will be encrypted.
- kms
Key StringId - The ARN for the KMS encryption key. When specifying kms_key_id, encrypted needs to be set to true.
- lifecycle
Policies List<Property Map> - A file system lifecycle policy object. See
lifecycle_policy
block below for details. - performance
Mode String - The file system performance mode. Can be either
"generalPurpose"
or"maxIO"
(Default:"generalPurpose"
). - protection Property Map
- A file system protection object. See
protection
block below for details. - provisioned
Throughput NumberIn Mibps - The throughput, measured in MiB/s, that you want to provision for the file system. Only applicable with
throughput_mode
set toprovisioned
. - Map<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. - throughput
Mode String - Throughput mode for the file system. Defaults to
bursting
. Valid values:bursting
,provisioned
, orelastic
. When usingprovisioned
, also setprovisioned_throughput_in_mibps
.
Outputs
All input properties are implicitly available as output properties. Additionally, the FileSystem resource produces the following output properties:
- Arn string
- Amazon Resource Name of the file system.
- Availability
Zone stringId - The identifier of the Availability Zone in which the file system's One Zone storage classes exist.
- Dns
Name string - The DNS name for the filesystem per documented convention.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The value of the file system's
Name
tag. - Number
Of intMount Targets - The current number of mount targets that the file system has.
- Owner
Id 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.
- Size
In List<FileBytes System Size In Byte> - 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.
- Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- Arn string
- Amazon Resource Name of the file system.
- Availability
Zone stringId - The identifier of the Availability Zone in which the file system's One Zone storage classes exist.
- Dns
Name string - The DNS name for the filesystem per documented convention.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The value of the file system's
Name
tag. - Number
Of intMount Targets - The current number of mount targets that the file system has.
- Owner
Id 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.
- Size
In []FileBytes System Size In Byte - 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.
- map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- Amazon Resource Name of the file system.
- availability
Zone StringId - The identifier of the Availability Zone in which the file system's One Zone storage classes exist.
- dns
Name String - The DNS name for the filesystem per documented convention.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The value of the file system's
Name
tag. - number
Of IntegerMount Targets - The current number of mount targets that the file system has.
- owner
Id 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.
- size
In List<FileBytes System Size In Byte> - 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.
- Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn string
- Amazon Resource Name of the file system.
- availability
Zone stringId - The identifier of the Availability Zone in which the file system's One Zone storage classes exist.
- dns
Name string - The DNS name for the filesystem per documented convention.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The value of the file system's
Name
tag. - number
Of numberMount Targets - The current number of mount targets that the file system has.
- owner
Id 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.
- size
In FileBytes System Size In Byte[] - 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.
- {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn str
- Amazon Resource Name of the file system.
- availability_
zone_ strid - The identifier of the Availability Zone in which the file system's One Zone storage classes exist.
- dns_
name str - The DNS name for the filesystem per documented convention.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The value of the file system's
Name
tag. - number_
of_ intmount_ targets - The current number of mount targets that the file system has.
- owner_
id str - 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.
- size_
in_ Sequence[Filebytes System Size In Byte] - 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.
- Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
- arn String
- Amazon Resource Name of the file system.
- availability
Zone StringId - The identifier of the Availability Zone in which the file system's One Zone storage classes exist.
- dns
Name String - The DNS name for the filesystem per documented convention.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The value of the file system's
Name
tag. - number
Of NumberMount Targets - The current number of mount targets that the file system has.
- owner
Id 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.
- size
In List<Property Map>Bytes - 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.
- Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block.
Look up Existing FileSystem Resource
Get an existing FileSystem resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: FileSystemState, opts?: CustomResourceOptions): FileSystem
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arn: Optional[str] = None,
availability_zone_id: Optional[str] = None,
availability_zone_name: Optional[str] = None,
creation_token: Optional[str] = None,
dns_name: Optional[str] = None,
encrypted: Optional[bool] = None,
kms_key_id: Optional[str] = None,
lifecycle_policies: Optional[Sequence[FileSystemLifecyclePolicyArgs]] = None,
name: Optional[str] = None,
number_of_mount_targets: Optional[int] = None,
owner_id: Optional[str] = None,
performance_mode: Optional[str] = None,
protection: Optional[FileSystemProtectionArgs] = None,
provisioned_throughput_in_mibps: Optional[float] = None,
size_in_bytes: Optional[Sequence[FileSystemSizeInByteArgs]] = None,
tags: Optional[Mapping[str, str]] = None,
tags_all: Optional[Mapping[str, str]] = None,
throughput_mode: Optional[str] = None) -> FileSystem
func GetFileSystem(ctx *Context, name string, id IDInput, state *FileSystemState, opts ...ResourceOption) (*FileSystem, error)
public static FileSystem Get(string name, Input<string> id, FileSystemState? state, CustomResourceOptions? opts = null)
public static FileSystem get(String name, Output<String> id, FileSystemState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Arn string
- Amazon Resource Name of the file system.
- Availability
Zone stringId - The identifier of the Availability Zone in which the file system's One Zone storage classes exist.
- Availability
Zone stringName - 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.
- Creation
Token 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.
- Dns
Name string - The DNS name for the filesystem per documented convention.
- Encrypted bool
- If true, the disk will be encrypted.
- Kms
Key stringId - The ARN for the KMS encryption key. When specifying kms_key_id, encrypted needs to be set to true.
- Lifecycle
Policies List<FileSystem Lifecycle Policy> - A file system lifecycle policy object. See
lifecycle_policy
block below for details. - Name string
- The value of the file system's
Name
tag. - Number
Of intMount Targets - The current number of mount targets that the file system has.
- Owner
Id 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.
- Performance
Mode string - The file system performance mode. Can be either
"generalPurpose"
or"maxIO"
(Default:"generalPurpose"
). - Protection
File
System Protection - A file system protection object. See
protection
block below for details. - Provisioned
Throughput doubleIn Mibps - The throughput, measured in MiB/s, that you want to provision for the file system. Only applicable with
throughput_mode
set toprovisioned
. - Size
In List<FileBytes System Size In Byte> - 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.
- Dictionary<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. - Dictionary<string, string>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Throughput
Mode string - Throughput mode for the file system. Defaults to
bursting
. Valid values:bursting
,provisioned
, orelastic
. When usingprovisioned
, also setprovisioned_throughput_in_mibps
.
- Arn string
- Amazon Resource Name of the file system.
- Availability
Zone stringId - The identifier of the Availability Zone in which the file system's One Zone storage classes exist.
- Availability
Zone stringName - 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.
- Creation
Token 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.
- Dns
Name string - The DNS name for the filesystem per documented convention.
- Encrypted bool
- If true, the disk will be encrypted.
- Kms
Key stringId - The ARN for the KMS encryption key. When specifying kms_key_id, encrypted needs to be set to true.
- Lifecycle
Policies []FileSystem Lifecycle Policy Args - A file system lifecycle policy object. See
lifecycle_policy
block below for details. - Name string
- The value of the file system's
Name
tag. - Number
Of intMount Targets - The current number of mount targets that the file system has.
- Owner
Id 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.
- Performance
Mode string - The file system performance mode. Can be either
"generalPurpose"
or"maxIO"
(Default:"generalPurpose"
). - Protection
File
System Protection Args - A file system protection object. See
protection
block below for details. - Provisioned
Throughput float64In Mibps - The throughput, measured in MiB/s, that you want to provision for the file system. Only applicable with
throughput_mode
set toprovisioned
. - Size
In []FileBytes System Size In Byte Args - 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.
- 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. - map[string]string
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - Throughput
Mode string - Throughput mode for the file system. Defaults to
bursting
. Valid values:bursting
,provisioned
, orelastic
. When usingprovisioned
, also setprovisioned_throughput_in_mibps
.
- arn String
- Amazon Resource Name of the file system.
- availability
Zone StringId - The identifier of the Availability Zone in which the file system's One Zone storage classes exist.
- availability
Zone StringName - 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.
- creation
Token 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.
- dns
Name String - The DNS name for the filesystem per documented convention.
- encrypted Boolean
- If true, the disk will be encrypted.
- kms
Key StringId - The ARN for the KMS encryption key. When specifying kms_key_id, encrypted needs to be set to true.
- lifecycle
Policies List<FileSystem Lifecycle Policy> - A file system lifecycle policy object. See
lifecycle_policy
block below for details. - name String
- The value of the file system's
Name
tag. - number
Of IntegerMount Targets - The current number of mount targets that the file system has.
- owner
Id 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.
- performance
Mode String - The file system performance mode. Can be either
"generalPurpose"
or"maxIO"
(Default:"generalPurpose"
). - protection
File
System Protection - A file system protection object. See
protection
block below for details. - provisioned
Throughput DoubleIn Mibps - The throughput, measured in MiB/s, that you want to provision for the file system. Only applicable with
throughput_mode
set toprovisioned
. - size
In List<FileBytes System Size In Byte> - 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.
- 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. - Map<String,String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - throughput
Mode String - Throughput mode for the file system. Defaults to
bursting
. Valid values:bursting
,provisioned
, orelastic
. When usingprovisioned
, also setprovisioned_throughput_in_mibps
.
- arn string
- Amazon Resource Name of the file system.
- availability
Zone stringId - The identifier of the Availability Zone in which the file system's One Zone storage classes exist.
- availability
Zone stringName - 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.
- creation
Token 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.
- dns
Name string - The DNS name for the filesystem per documented convention.
- encrypted boolean
- If true, the disk will be encrypted.
- kms
Key stringId - The ARN for the KMS encryption key. When specifying kms_key_id, encrypted needs to be set to true.
- lifecycle
Policies FileSystem Lifecycle Policy[] - A file system lifecycle policy object. See
lifecycle_policy
block below for details. - name string
- The value of the file system's
Name
tag. - number
Of numberMount Targets - The current number of mount targets that the file system has.
- owner
Id 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.
- performance
Mode string - The file system performance mode. Can be either
"generalPurpose"
or"maxIO"
(Default:"generalPurpose"
). - protection
File
System Protection - A file system protection object. See
protection
block below for details. - provisioned
Throughput numberIn Mibps - The throughput, measured in MiB/s, that you want to provision for the file system. Only applicable with
throughput_mode
set toprovisioned
. - size
In FileBytes System Size In Byte[] - 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.
- {[key: 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. - {[key: string]: string}
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - throughput
Mode string - Throughput mode for the file system. Defaults to
bursting
. Valid values:bursting
,provisioned
, orelastic
. When usingprovisioned
, also setprovisioned_throughput_in_mibps
.
- arn str
- Amazon Resource Name of the file system.
- availability_
zone_ strid - The identifier of the Availability Zone in which the file system's One Zone storage classes exist.
- availability_
zone_ strname - 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.
- creation_
token str - 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.
- dns_
name str - The DNS name for the filesystem per documented convention.
- encrypted bool
- If true, the disk will be encrypted.
- kms_
key_ strid - The ARN for the KMS encryption key. When specifying kms_key_id, encrypted needs to be set to true.
- lifecycle_
policies Sequence[FileSystem Lifecycle Policy Args] - A file system lifecycle policy object. See
lifecycle_policy
block below for details. - name str
- The value of the file system's
Name
tag. - number_
of_ intmount_ targets - The current number of mount targets that the file system has.
- owner_
id str - 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.
- performance_
mode str - The file system performance mode. Can be either
"generalPurpose"
or"maxIO"
(Default:"generalPurpose"
). - protection
File
System Protection Args - A file system protection object. See
protection
block below for details. - provisioned_
throughput_ floatin_ mibps - The throughput, measured in MiB/s, that you want to provision for the file system. Only applicable with
throughput_mode
set toprovisioned
. - size_
in_ Sequence[Filebytes System Size In Byte Args] - 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.
- Mapping[str, str]
- 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. - Mapping[str, str]
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - throughput_
mode str - Throughput mode for the file system. Defaults to
bursting
. Valid values:bursting
,provisioned
, orelastic
. When usingprovisioned
, also setprovisioned_throughput_in_mibps
.
- arn String
- Amazon Resource Name of the file system.
- availability
Zone StringId - The identifier of the Availability Zone in which the file system's One Zone storage classes exist.
- availability
Zone StringName - 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.
- creation
Token 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.
- dns
Name String - The DNS name for the filesystem per documented convention.
- encrypted Boolean
- If true, the disk will be encrypted.
- kms
Key StringId - The ARN for the KMS encryption key. When specifying kms_key_id, encrypted needs to be set to true.
- lifecycle
Policies List<Property Map> - A file system lifecycle policy object. See
lifecycle_policy
block below for details. - name String
- The value of the file system's
Name
tag. - number
Of NumberMount Targets - The current number of mount targets that the file system has.
- owner
Id 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.
- performance
Mode String - The file system performance mode. Can be either
"generalPurpose"
or"maxIO"
(Default:"generalPurpose"
). - protection Property Map
- A file system protection object. See
protection
block below for details. - provisioned
Throughput NumberIn Mibps - The throughput, measured in MiB/s, that you want to provision for the file system. Only applicable with
throughput_mode
set toprovisioned
. - size
In List<Property Map>Bytes - 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.
- Map<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. - Map<String>
- A map of tags assigned to the resource, including those inherited from the provider
default_tags
configuration block. - throughput
Mode String - Throughput mode for the file system. Defaults to
bursting
. Valid values:bursting
,provisioned
, orelastic
. When usingprovisioned
, also setprovisioned_throughput_in_mibps
.
Supporting Types
FileSystemLifecyclePolicy, FileSystemLifecyclePolicyArgs
- Transition
To stringArchive - Indicates how long it takes to transition files to the archive storage class. Requires transition_to_ia, Elastic Throughput and General Purpose performance mode. Valid values:
AFTER_1_DAY
,AFTER_7_DAYS
,AFTER_14_DAYS
,AFTER_30_DAYS
,AFTER_60_DAYS
,AFTER_90_DAYS
,AFTER_180_DAYS
,AFTER_270_DAYS
, orAFTER_365_DAYS
. - Transition
To stringIa - Indicates how long it takes to transition files to the IA storage class. Valid values:
AFTER_1_DAY
,AFTER_7_DAYS
,AFTER_14_DAYS
,AFTER_30_DAYS
,AFTER_60_DAYS
,AFTER_90_DAYS
,AFTER_180_DAYS
,AFTER_270_DAYS
, orAFTER_365_DAYS
. - Transition
To stringPrimary Storage Class - Describes the policy used to transition a file from infequent access storage to primary storage. Valid values:
AFTER_1_ACCESS
.
- Transition
To stringArchive - Indicates how long it takes to transition files to the archive storage class. Requires transition_to_ia, Elastic Throughput and General Purpose performance mode. Valid values:
AFTER_1_DAY
,AFTER_7_DAYS
,AFTER_14_DAYS
,AFTER_30_DAYS
,AFTER_60_DAYS
,AFTER_90_DAYS
,AFTER_180_DAYS
,AFTER_270_DAYS
, orAFTER_365_DAYS
. - Transition
To stringIa - Indicates how long it takes to transition files to the IA storage class. Valid values:
AFTER_1_DAY
,AFTER_7_DAYS
,AFTER_14_DAYS
,AFTER_30_DAYS
,AFTER_60_DAYS
,AFTER_90_DAYS
,AFTER_180_DAYS
,AFTER_270_DAYS
, orAFTER_365_DAYS
. - Transition
To stringPrimary Storage Class - Describes the policy used to transition a file from infequent access storage to primary storage. Valid values:
AFTER_1_ACCESS
.
- transition
To StringArchive - Indicates how long it takes to transition files to the archive storage class. Requires transition_to_ia, Elastic Throughput and General Purpose performance mode. Valid values:
AFTER_1_DAY
,AFTER_7_DAYS
,AFTER_14_DAYS
,AFTER_30_DAYS
,AFTER_60_DAYS
,AFTER_90_DAYS
,AFTER_180_DAYS
,AFTER_270_DAYS
, orAFTER_365_DAYS
. - transition
To StringIa - Indicates how long it takes to transition files to the IA storage class. Valid values:
AFTER_1_DAY
,AFTER_7_DAYS
,AFTER_14_DAYS
,AFTER_30_DAYS
,AFTER_60_DAYS
,AFTER_90_DAYS
,AFTER_180_DAYS
,AFTER_270_DAYS
, orAFTER_365_DAYS
. - transition
To StringPrimary Storage Class - Describes the policy used to transition a file from infequent access storage to primary storage. Valid values:
AFTER_1_ACCESS
.
- transition
To stringArchive - Indicates how long it takes to transition files to the archive storage class. Requires transition_to_ia, Elastic Throughput and General Purpose performance mode. Valid values:
AFTER_1_DAY
,AFTER_7_DAYS
,AFTER_14_DAYS
,AFTER_30_DAYS
,AFTER_60_DAYS
,AFTER_90_DAYS
,AFTER_180_DAYS
,AFTER_270_DAYS
, orAFTER_365_DAYS
. - transition
To stringIa - Indicates how long it takes to transition files to the IA storage class. Valid values:
AFTER_1_DAY
,AFTER_7_DAYS
,AFTER_14_DAYS
,AFTER_30_DAYS
,AFTER_60_DAYS
,AFTER_90_DAYS
,AFTER_180_DAYS
,AFTER_270_DAYS
, orAFTER_365_DAYS
. - transition
To stringPrimary Storage Class - Describes the policy used to transition a file from infequent access storage to primary storage. Valid values:
AFTER_1_ACCESS
.
- transition_
to_ strarchive - Indicates how long it takes to transition files to the archive storage class. Requires transition_to_ia, Elastic Throughput and General Purpose performance mode. Valid values:
AFTER_1_DAY
,AFTER_7_DAYS
,AFTER_14_DAYS
,AFTER_30_DAYS
,AFTER_60_DAYS
,AFTER_90_DAYS
,AFTER_180_DAYS
,AFTER_270_DAYS
, orAFTER_365_DAYS
. - transition_
to_ stria - Indicates how long it takes to transition files to the IA storage class. Valid values:
AFTER_1_DAY
,AFTER_7_DAYS
,AFTER_14_DAYS
,AFTER_30_DAYS
,AFTER_60_DAYS
,AFTER_90_DAYS
,AFTER_180_DAYS
,AFTER_270_DAYS
, orAFTER_365_DAYS
. - transition_
to_ strprimary_ storage_ class - Describes the policy used to transition a file from infequent access storage to primary storage. Valid values:
AFTER_1_ACCESS
.
- transition
To StringArchive - Indicates how long it takes to transition files to the archive storage class. Requires transition_to_ia, Elastic Throughput and General Purpose performance mode. Valid values:
AFTER_1_DAY
,AFTER_7_DAYS
,AFTER_14_DAYS
,AFTER_30_DAYS
,AFTER_60_DAYS
,AFTER_90_DAYS
,AFTER_180_DAYS
,AFTER_270_DAYS
, orAFTER_365_DAYS
. - transition
To StringIa - Indicates how long it takes to transition files to the IA storage class. Valid values:
AFTER_1_DAY
,AFTER_7_DAYS
,AFTER_14_DAYS
,AFTER_30_DAYS
,AFTER_60_DAYS
,AFTER_90_DAYS
,AFTER_180_DAYS
,AFTER_270_DAYS
, orAFTER_365_DAYS
. - transition
To StringPrimary Storage Class - Describes the policy used to transition a file from infequent access storage to primary storage. Valid values:
AFTER_1_ACCESS
.
FileSystemProtection, FileSystemProtectionArgs
- Replication
Overwrite string - Indicates whether replication overwrite protection is enabled. Valid values:
ENABLED
orDISABLED
.
- Replication
Overwrite string - Indicates whether replication overwrite protection is enabled. Valid values:
ENABLED
orDISABLED
.
- replication
Overwrite String - Indicates whether replication overwrite protection is enabled. Valid values:
ENABLED
orDISABLED
.
- replication
Overwrite string - Indicates whether replication overwrite protection is enabled. Valid values:
ENABLED
orDISABLED
.
- replication_
overwrite str - Indicates whether replication overwrite protection is enabled. Valid values:
ENABLED
orDISABLED
.
- replication
Overwrite String - Indicates whether replication overwrite protection is enabled. Valid values:
ENABLED
orDISABLED
.
FileSystemSizeInByte, FileSystemSizeInByteArgs
- Value int
- The latest known metered size (in bytes) of data stored in the file system.
- Value
In intIa - The latest known metered size (in bytes) of data stored in the Infrequent Access storage class.
- Value
In intStandard - The latest known metered size (in bytes) of data stored in the Standard storage class.
- Value int
- The latest known metered size (in bytes) of data stored in the file system.
- Value
In intIa - The latest known metered size (in bytes) of data stored in the Infrequent Access storage class.
- Value
In intStandard - The latest known metered size (in bytes) of data stored in the Standard storage class.
- value Integer
- The latest known metered size (in bytes) of data stored in the file system.
- value
In IntegerIa - The latest known metered size (in bytes) of data stored in the Infrequent Access storage class.
- value
In IntegerStandard - The latest known metered size (in bytes) of data stored in the Standard storage class.
- value number
- The latest known metered size (in bytes) of data stored in the file system.
- value
In numberIa - The latest known metered size (in bytes) of data stored in the Infrequent Access storage class.
- value
In numberStandard - The latest known metered size (in bytes) of data stored in the Standard storage class.
- value int
- The latest known metered size (in bytes) of data stored in the file system.
- value_
in_ intia - The latest known metered size (in bytes) of data stored in the Infrequent Access storage class.
- value_
in_ intstandard - The latest known metered size (in bytes) of data stored in the Standard storage class.
- value Number
- The latest known metered size (in bytes) of data stored in the file system.
- value
In NumberIa - The latest known metered size (in bytes) of data stored in the Infrequent Access storage class.
- value
In NumberStandard - The latest known metered size (in bytes) of data stored in the Standard storage class.
Import
Using pulumi import
, import the EFS file systems using the id
. For example:
$ pulumi import aws:efs/fileSystem:FileSystem foo fs-6fa144c6
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.