github.com/pulumi/pulumi-aws/sdk/v6@v6.32.0/go/aws/efs/getAccessPoints.go (about) 1 // Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. 2 // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** 3 4 package efs 5 6 import ( 7 "context" 8 "reflect" 9 10 "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/internal" 11 "github.com/pulumi/pulumi/sdk/v3/go/pulumi" 12 ) 13 14 // Provides information about multiple Elastic File System (EFS) Access Points. 15 // 16 // ## Example Usage 17 // 18 // <!--Start PulumiCodeChooser --> 19 // ```go 20 // package main 21 // 22 // import ( 23 // 24 // "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/efs" 25 // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" 26 // 27 // ) 28 // 29 // func main() { 30 // pulumi.Run(func(ctx *pulumi.Context) error { 31 // _, err := efs.GetAccessPoints(ctx, &efs.GetAccessPointsArgs{ 32 // FileSystemId: "fs-12345678", 33 // }, nil) 34 // if err != nil { 35 // return err 36 // } 37 // return nil 38 // }) 39 // } 40 // 41 // ``` 42 // <!--End PulumiCodeChooser --> 43 func GetAccessPoints(ctx *pulumi.Context, args *GetAccessPointsArgs, opts ...pulumi.InvokeOption) (*GetAccessPointsResult, error) { 44 opts = internal.PkgInvokeDefaultOpts(opts) 45 var rv GetAccessPointsResult 46 err := ctx.Invoke("aws:efs/getAccessPoints:getAccessPoints", args, &rv, opts...) 47 if err != nil { 48 return nil, err 49 } 50 return &rv, nil 51 } 52 53 // A collection of arguments for invoking getAccessPoints. 54 type GetAccessPointsArgs struct { 55 // EFS File System identifier. 56 FileSystemId string `pulumi:"fileSystemId"` 57 } 58 59 // A collection of values returned by getAccessPoints. 60 type GetAccessPointsResult struct { 61 // Set of Amazon Resource Names (ARNs). 62 Arns []string `pulumi:"arns"` 63 FileSystemId string `pulumi:"fileSystemId"` 64 // The provider-assigned unique ID for this managed resource. 65 Id string `pulumi:"id"` 66 // Set of identifiers. 67 Ids []string `pulumi:"ids"` 68 } 69 70 func GetAccessPointsOutput(ctx *pulumi.Context, args GetAccessPointsOutputArgs, opts ...pulumi.InvokeOption) GetAccessPointsResultOutput { 71 return pulumi.ToOutputWithContext(context.Background(), args). 72 ApplyT(func(v interface{}) (GetAccessPointsResult, error) { 73 args := v.(GetAccessPointsArgs) 74 r, err := GetAccessPoints(ctx, &args, opts...) 75 var s GetAccessPointsResult 76 if r != nil { 77 s = *r 78 } 79 return s, err 80 }).(GetAccessPointsResultOutput) 81 } 82 83 // A collection of arguments for invoking getAccessPoints. 84 type GetAccessPointsOutputArgs struct { 85 // EFS File System identifier. 86 FileSystemId pulumi.StringInput `pulumi:"fileSystemId"` 87 } 88 89 func (GetAccessPointsOutputArgs) ElementType() reflect.Type { 90 return reflect.TypeOf((*GetAccessPointsArgs)(nil)).Elem() 91 } 92 93 // A collection of values returned by getAccessPoints. 94 type GetAccessPointsResultOutput struct{ *pulumi.OutputState } 95 96 func (GetAccessPointsResultOutput) ElementType() reflect.Type { 97 return reflect.TypeOf((*GetAccessPointsResult)(nil)).Elem() 98 } 99 100 func (o GetAccessPointsResultOutput) ToGetAccessPointsResultOutput() GetAccessPointsResultOutput { 101 return o 102 } 103 104 func (o GetAccessPointsResultOutput) ToGetAccessPointsResultOutputWithContext(ctx context.Context) GetAccessPointsResultOutput { 105 return o 106 } 107 108 // Set of Amazon Resource Names (ARNs). 109 func (o GetAccessPointsResultOutput) Arns() pulumi.StringArrayOutput { 110 return o.ApplyT(func(v GetAccessPointsResult) []string { return v.Arns }).(pulumi.StringArrayOutput) 111 } 112 113 func (o GetAccessPointsResultOutput) FileSystemId() pulumi.StringOutput { 114 return o.ApplyT(func(v GetAccessPointsResult) string { return v.FileSystemId }).(pulumi.StringOutput) 115 } 116 117 // The provider-assigned unique ID for this managed resource. 118 func (o GetAccessPointsResultOutput) Id() pulumi.StringOutput { 119 return o.ApplyT(func(v GetAccessPointsResult) string { return v.Id }).(pulumi.StringOutput) 120 } 121 122 // Set of identifiers. 123 func (o GetAccessPointsResultOutput) Ids() pulumi.StringArrayOutput { 124 return o.ApplyT(func(v GetAccessPointsResult) []string { return v.Ids }).(pulumi.StringArrayOutput) 125 } 126 127 func init() { 128 pulumi.RegisterOutputType(GetAccessPointsResultOutput{}) 129 }