/
getFileSystem.go
89 lines (84 loc) · 3.3 KB
/
getFileSystem.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package efs
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Provides information about an Elastic File System (EFS) File System.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
// "github.com/pulumi/pulumi-aws/sdk/v4/go/aws/efs"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// cfg := config.New(ctx, "")
// fileSystemId := ""
// if param := cfg.Get("fileSystemId"); param != "" {
// fileSystemId = param
// }
// opt0 := fileSystemId
// _, err := efs.LookupFileSystem(ctx, &efs.LookupFileSystemArgs{
// FileSystemId: &opt0,
// }, nil)
// if err != nil {
// return err
// }
// return nil
// })
// }
// ```
func LookupFileSystem(ctx *pulumi.Context, args *LookupFileSystemArgs, opts ...pulumi.InvokeOption) (*LookupFileSystemResult, error) {
var rv LookupFileSystemResult
err := ctx.Invoke("aws:efs/getFileSystem:getFileSystem", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getFileSystem.
type LookupFileSystemArgs struct {
// Restricts the list to the file system with this creation token.
CreationToken *string `pulumi:"creationToken"`
// The ID that identifies the file system (e.g. fs-ccfc0d65).
FileSystemId *string `pulumi:"fileSystemId"`
Tags map[string]string `pulumi:"tags"`
}
// A collection of values returned by getFileSystem.
type LookupFileSystemResult struct {
// Amazon Resource Name of the file system.
Arn string `pulumi:"arn"`
// The identifier of the Availability Zone in which the file system's One Zone storage classes exist.
AvailabilityZoneId string `pulumi:"availabilityZoneId"`
// The Availability Zone name in which the file system's One Zone storage classes exist.
AvailabilityZoneName string `pulumi:"availabilityZoneName"`
CreationToken string `pulumi:"creationToken"`
// 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 string `pulumi:"dnsName"`
// Whether EFS is encrypted.
Encrypted bool `pulumi:"encrypted"`
FileSystemId string `pulumi:"fileSystemId"`
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
// The ARN for the KMS encryption key.
KmsKeyId string `pulumi:"kmsKeyId"`
// A file system [lifecycle policy](https://docs.aws.amazon.com/efs/latest/ug/API_LifecyclePolicy.html) object.
LifecyclePolicy GetFileSystemLifecyclePolicy `pulumi:"lifecyclePolicy"`
// The file system performance mode.
PerformanceMode string `pulumi:"performanceMode"`
// The throughput, measured in MiB/s, that you want to provision for the file system.
// * `tags` -A map of tags to assign to the file system.
ProvisionedThroughputInMibps float64 `pulumi:"provisionedThroughputInMibps"`
// The current byte count used by the file system.
SizeInBytes int `pulumi:"sizeInBytes"`
Tags map[string]string `pulumi:"tags"`
// Throughput mode for the file system.
ThroughputMode string `pulumi:"throughputMode"`
}