-
Notifications
You must be signed in to change notification settings - Fork 151
/
getMountTarget.go
87 lines (82 loc) · 3.48 KB
/
getMountTarget.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
// *** 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 Mount Target (EFS).
//
// ## 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, "")
// mountTargetId := ""
// if param := cfg.Get("mountTargetId"); param != "" {
// mountTargetId = param
// }
// opt0 := mountTargetId
// _, err := efs.LookupMountTarget(ctx, &efs.LookupMountTargetArgs{
// MountTargetId: &opt0,
// }, nil)
// if err != nil {
// return err
// }
// return nil
// })
// }
// ```
func LookupMountTarget(ctx *pulumi.Context, args *LookupMountTargetArgs, opts ...pulumi.InvokeOption) (*LookupMountTargetResult, error) {
var rv LookupMountTargetResult
err := ctx.Invoke("aws:efs/getMountTarget:getMountTarget", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getMountTarget.
type LookupMountTargetArgs struct {
// ID or ARN of the access point whose mount target that you want to find. It must be included if a `fileSystemId` and `mountTargetId` are not included.
AccessPointId *string `pulumi:"accessPointId"`
// ID or ARN of the file system whose mount target that you want to find. It must be included if an `accessPointId` and `mountTargetId` are not included.
FileSystemId *string `pulumi:"fileSystemId"`
// ID or ARN of the mount target that you want to find. It must be included in your request if an `accessPointId` and `fileSystemId` are not included.
MountTargetId *string `pulumi:"mountTargetId"`
}
// A collection of values returned by getMountTarget.
type LookupMountTargetResult struct {
AccessPointId *string `pulumi:"accessPointId"`
// The unique and consistent identifier of the Availability Zone (AZ) that the mount target resides in.
AvailabilityZoneId string `pulumi:"availabilityZoneId"`
// The name of the Availability Zone (AZ) that the mount target resides in.
AvailabilityZoneName string `pulumi:"availabilityZoneName"`
// The DNS name for the EFS file system.
DnsName string `pulumi:"dnsName"`
// Amazon Resource Name of the file system for which the mount target is intended.
FileSystemArn string `pulumi:"fileSystemArn"`
FileSystemId string `pulumi:"fileSystemId"`
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
// Address at which the file system may be mounted via the mount target.
IpAddress string `pulumi:"ipAddress"`
// The DNS name for the given subnet/AZ per [documented convention](http://docs.aws.amazon.com/efs/latest/ug/mounting-fs-mount-cmd-dns-name.html).
MountTargetDnsName string `pulumi:"mountTargetDnsName"`
MountTargetId string `pulumi:"mountTargetId"`
// The ID of the network interface that Amazon EFS created when it created the mount target.
NetworkInterfaceId string `pulumi:"networkInterfaceId"`
// AWS account ID that owns the resource.
OwnerId string `pulumi:"ownerId"`
// List of VPC security group IDs attached to the mount target.
SecurityGroups []string `pulumi:"securityGroups"`
// ID of the mount target's subnet.
SubnetId string `pulumi:"subnetId"`
}