-
Notifications
You must be signed in to change notification settings - Fork 151
/
getLocalGatewayRouteTables.go
99 lines (81 loc) · 4.09 KB
/
getLocalGatewayRouteTables.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
90
91
92
93
94
95
96
97
98
99
// *** 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 ec2
import (
"context"
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Provides information for multiple EC2 Local Gateway Route Tables, such as their identifiers.
func GetLocalGatewayRouteTables(ctx *pulumi.Context, args *GetLocalGatewayRouteTablesArgs, opts ...pulumi.InvokeOption) (*GetLocalGatewayRouteTablesResult, error) {
var rv GetLocalGatewayRouteTablesResult
err := ctx.Invoke("aws:ec2/getLocalGatewayRouteTables:getLocalGatewayRouteTables", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getLocalGatewayRouteTables.
type GetLocalGatewayRouteTablesArgs struct {
// Custom filter block as described below.
Filters []GetLocalGatewayRouteTablesFilter `pulumi:"filters"`
// A mapping of tags, each pair of which must exactly match
// a pair on the desired local gateway route table.
Tags map[string]string `pulumi:"tags"`
}
// A collection of values returned by getLocalGatewayRouteTables.
type GetLocalGatewayRouteTablesResult struct {
Filters []GetLocalGatewayRouteTablesFilter `pulumi:"filters"`
// The provider-assigned unique ID for this managed resource.
Id string `pulumi:"id"`
// Set of Local Gateway Route Table identifiers
Ids []string `pulumi:"ids"`
Tags map[string]string `pulumi:"tags"`
}
func GetLocalGatewayRouteTablesOutput(ctx *pulumi.Context, args GetLocalGatewayRouteTablesOutputArgs, opts ...pulumi.InvokeOption) GetLocalGatewayRouteTablesResultOutput {
return pulumi.ToOutputWithContext(context.Background(), args).
ApplyT(func(v interface{}) (GetLocalGatewayRouteTablesResult, error) {
args := v.(GetLocalGatewayRouteTablesArgs)
r, err := GetLocalGatewayRouteTables(ctx, &args, opts...)
return *r, err
}).(GetLocalGatewayRouteTablesResultOutput)
}
// A collection of arguments for invoking getLocalGatewayRouteTables.
type GetLocalGatewayRouteTablesOutputArgs struct {
// Custom filter block as described below.
Filters GetLocalGatewayRouteTablesFilterArrayInput `pulumi:"filters"`
// A mapping of tags, each pair of which must exactly match
// a pair on the desired local gateway route table.
Tags pulumi.StringMapInput `pulumi:"tags"`
}
func (GetLocalGatewayRouteTablesOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*GetLocalGatewayRouteTablesArgs)(nil)).Elem()
}
// A collection of values returned by getLocalGatewayRouteTables.
type GetLocalGatewayRouteTablesResultOutput struct{ *pulumi.OutputState }
func (GetLocalGatewayRouteTablesResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*GetLocalGatewayRouteTablesResult)(nil)).Elem()
}
func (o GetLocalGatewayRouteTablesResultOutput) ToGetLocalGatewayRouteTablesResultOutput() GetLocalGatewayRouteTablesResultOutput {
return o
}
func (o GetLocalGatewayRouteTablesResultOutput) ToGetLocalGatewayRouteTablesResultOutputWithContext(ctx context.Context) GetLocalGatewayRouteTablesResultOutput {
return o
}
func (o GetLocalGatewayRouteTablesResultOutput) Filters() GetLocalGatewayRouteTablesFilterArrayOutput {
return o.ApplyT(func(v GetLocalGatewayRouteTablesResult) []GetLocalGatewayRouteTablesFilter { return v.Filters }).(GetLocalGatewayRouteTablesFilterArrayOutput)
}
// The provider-assigned unique ID for this managed resource.
func (o GetLocalGatewayRouteTablesResultOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v GetLocalGatewayRouteTablesResult) string { return v.Id }).(pulumi.StringOutput)
}
// Set of Local Gateway Route Table identifiers
func (o GetLocalGatewayRouteTablesResultOutput) Ids() pulumi.StringArrayOutput {
return o.ApplyT(func(v GetLocalGatewayRouteTablesResult) []string { return v.Ids }).(pulumi.StringArrayOutput)
}
func (o GetLocalGatewayRouteTablesResultOutput) Tags() pulumi.StringMapOutput {
return o.ApplyT(func(v GetLocalGatewayRouteTablesResult) map[string]string { return v.Tags }).(pulumi.StringMapOutput)
}
func init() {
pulumi.RegisterOutputType(GetLocalGatewayRouteTablesResultOutput{})
}