-
Notifications
You must be signed in to change notification settings - Fork 151
/
getAccessPoint.go
68 lines (63 loc) · 2.18 KB
/
getAccessPoint.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
// *** 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) Access Point.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
// "github.com/pulumi/pulumi-aws/sdk/v4/go/aws/efs"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// _, err := efs.LookupAccessPoint(ctx, &efs.LookupAccessPointArgs{
// AccessPointId: "fsap-12345678",
// }, nil)
// if err != nil {
// return err
// }
// return nil
// })
// }
// ```
func LookupAccessPoint(ctx *pulumi.Context, args *LookupAccessPointArgs, opts ...pulumi.InvokeOption) (*LookupAccessPointResult, error) {
var rv LookupAccessPointResult
err := ctx.Invoke("aws:efs/getAccessPoint:getAccessPoint", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getAccessPoint.
type LookupAccessPointArgs struct {
// The ID that identifies the file system.
AccessPointId string `pulumi:"accessPointId"`
// Key-value mapping of resource tags.
Tags map[string]string `pulumi:"tags"`
}
// A collection of values returned by getAccessPoint.
type LookupAccessPointResult struct {
AccessPointId string `pulumi:"accessPointId"`
// Amazon Resource Name of the file system.
Arn string `pulumi:"arn"`
// Amazon Resource Name of the file system.
FileSystemArn string `pulumi:"fileSystemArn"`
// The ID of the file system for which the access point is intended.
FileSystemId string `pulumi:"fileSystemId"`
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
OwnerId string `pulumi:"ownerId"`
// Single element list containing operating system user and group applied to all file system requests made using the access point.
PosixUsers []GetAccessPointPosixUser `pulumi:"posixUsers"`
RootDirectories []GetAccessPointRootDirectory `pulumi:"rootDirectories"`
// Key-value mapping of resource tags.
Tags map[string]string `pulumi:"tags"`
}