/
localGatewayRouteTableVirtualInterfaceGroupAssociation.go
197 lines (165 loc) · 10.2 KB
/
localGatewayRouteTableVirtualInterfaceGroupAssociation.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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
// Code generated by pulumi-language-go DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package ec2
import (
"context"
"reflect"
"errors"
"github.com/pulumi/pulumi-aws-native/sdk/go/aws"
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Describes a local gateway route table virtual interface group association for a local gateway.
type LocalGatewayRouteTableVirtualInterfaceGroupAssociation struct {
pulumi.CustomResourceState
// The ID of the local gateway.
LocalGatewayId pulumi.StringOutput `pulumi:"localGatewayId"`
// The ARN of the local gateway route table.
LocalGatewayRouteTableArn pulumi.StringOutput `pulumi:"localGatewayRouteTableArn"`
// The ID of the local gateway route table.
LocalGatewayRouteTableId pulumi.StringOutput `pulumi:"localGatewayRouteTableId"`
// The ID of the local gateway route table virtual interface group association.
LocalGatewayRouteTableVirtualInterfaceGroupAssociationId pulumi.StringOutput `pulumi:"localGatewayRouteTableVirtualInterfaceGroupAssociationId"`
// The ID of the local gateway route table virtual interface group.
LocalGatewayVirtualInterfaceGroupId pulumi.StringOutput `pulumi:"localGatewayVirtualInterfaceGroupId"`
// The owner of the local gateway route table virtual interface group association.
OwnerId pulumi.StringOutput `pulumi:"ownerId"`
// The state of the local gateway route table virtual interface group association.
State pulumi.StringOutput `pulumi:"state"`
// The tags for the local gateway route table virtual interface group association.
Tags aws.TagArrayOutput `pulumi:"tags"`
}
// NewLocalGatewayRouteTableVirtualInterfaceGroupAssociation registers a new resource with the given unique name, arguments, and options.
func NewLocalGatewayRouteTableVirtualInterfaceGroupAssociation(ctx *pulumi.Context,
name string, args *LocalGatewayRouteTableVirtualInterfaceGroupAssociationArgs, opts ...pulumi.ResourceOption) (*LocalGatewayRouteTableVirtualInterfaceGroupAssociation, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.LocalGatewayRouteTableId == nil {
return nil, errors.New("invalid value for required argument 'LocalGatewayRouteTableId'")
}
if args.LocalGatewayVirtualInterfaceGroupId == nil {
return nil, errors.New("invalid value for required argument 'LocalGatewayVirtualInterfaceGroupId'")
}
replaceOnChanges := pulumi.ReplaceOnChanges([]string{
"localGatewayRouteTableId",
"localGatewayVirtualInterfaceGroupId",
})
opts = append(opts, replaceOnChanges)
opts = internal.PkgResourceDefaultOpts(opts)
var resource LocalGatewayRouteTableVirtualInterfaceGroupAssociation
err := ctx.RegisterResource("aws-native:ec2:LocalGatewayRouteTableVirtualInterfaceGroupAssociation", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetLocalGatewayRouteTableVirtualInterfaceGroupAssociation gets an existing LocalGatewayRouteTableVirtualInterfaceGroupAssociation resource's state with the given name, ID, and optional
// state properties that are used to uniquely qualify the lookup (nil if not required).
func GetLocalGatewayRouteTableVirtualInterfaceGroupAssociation(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *LocalGatewayRouteTableVirtualInterfaceGroupAssociationState, opts ...pulumi.ResourceOption) (*LocalGatewayRouteTableVirtualInterfaceGroupAssociation, error) {
var resource LocalGatewayRouteTableVirtualInterfaceGroupAssociation
err := ctx.ReadResource("aws-native:ec2:LocalGatewayRouteTableVirtualInterfaceGroupAssociation", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering LocalGatewayRouteTableVirtualInterfaceGroupAssociation resources.
type localGatewayRouteTableVirtualInterfaceGroupAssociationState struct {
}
type LocalGatewayRouteTableVirtualInterfaceGroupAssociationState struct {
}
func (LocalGatewayRouteTableVirtualInterfaceGroupAssociationState) ElementType() reflect.Type {
return reflect.TypeOf((*localGatewayRouteTableVirtualInterfaceGroupAssociationState)(nil)).Elem()
}
type localGatewayRouteTableVirtualInterfaceGroupAssociationArgs struct {
// The ID of the local gateway route table.
LocalGatewayRouteTableId string `pulumi:"localGatewayRouteTableId"`
// The ID of the local gateway route table virtual interface group.
LocalGatewayVirtualInterfaceGroupId string `pulumi:"localGatewayVirtualInterfaceGroupId"`
// The tags for the local gateway route table virtual interface group association.
Tags []aws.Tag `pulumi:"tags"`
}
// The set of arguments for constructing a LocalGatewayRouteTableVirtualInterfaceGroupAssociation resource.
type LocalGatewayRouteTableVirtualInterfaceGroupAssociationArgs struct {
// The ID of the local gateway route table.
LocalGatewayRouteTableId pulumi.StringInput
// The ID of the local gateway route table virtual interface group.
LocalGatewayVirtualInterfaceGroupId pulumi.StringInput
// The tags for the local gateway route table virtual interface group association.
Tags aws.TagArrayInput
}
func (LocalGatewayRouteTableVirtualInterfaceGroupAssociationArgs) ElementType() reflect.Type {
return reflect.TypeOf((*localGatewayRouteTableVirtualInterfaceGroupAssociationArgs)(nil)).Elem()
}
type LocalGatewayRouteTableVirtualInterfaceGroupAssociationInput interface {
pulumi.Input
ToLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput() LocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput
ToLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutputWithContext(ctx context.Context) LocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput
}
func (*LocalGatewayRouteTableVirtualInterfaceGroupAssociation) ElementType() reflect.Type {
return reflect.TypeOf((**LocalGatewayRouteTableVirtualInterfaceGroupAssociation)(nil)).Elem()
}
func (i *LocalGatewayRouteTableVirtualInterfaceGroupAssociation) ToLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput() LocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput {
return i.ToLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutputWithContext(context.Background())
}
func (i *LocalGatewayRouteTableVirtualInterfaceGroupAssociation) ToLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutputWithContext(ctx context.Context) LocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput {
return pulumi.ToOutputWithContext(ctx, i).(LocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput)
}
type LocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput struct{ *pulumi.OutputState }
func (LocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput) ElementType() reflect.Type {
return reflect.TypeOf((**LocalGatewayRouteTableVirtualInterfaceGroupAssociation)(nil)).Elem()
}
func (o LocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput) ToLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput() LocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput {
return o
}
func (o LocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput) ToLocalGatewayRouteTableVirtualInterfaceGroupAssociationOutputWithContext(ctx context.Context) LocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput {
return o
}
// The ID of the local gateway.
func (o LocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput) LocalGatewayId() pulumi.StringOutput {
return o.ApplyT(func(v *LocalGatewayRouteTableVirtualInterfaceGroupAssociation) pulumi.StringOutput {
return v.LocalGatewayId
}).(pulumi.StringOutput)
}
// The ARN of the local gateway route table.
func (o LocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput) LocalGatewayRouteTableArn() pulumi.StringOutput {
return o.ApplyT(func(v *LocalGatewayRouteTableVirtualInterfaceGroupAssociation) pulumi.StringOutput {
return v.LocalGatewayRouteTableArn
}).(pulumi.StringOutput)
}
// The ID of the local gateway route table.
func (o LocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput) LocalGatewayRouteTableId() pulumi.StringOutput {
return o.ApplyT(func(v *LocalGatewayRouteTableVirtualInterfaceGroupAssociation) pulumi.StringOutput {
return v.LocalGatewayRouteTableId
}).(pulumi.StringOutput)
}
// The ID of the local gateway route table virtual interface group association.
func (o LocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput) LocalGatewayRouteTableVirtualInterfaceGroupAssociationId() pulumi.StringOutput {
return o.ApplyT(func(v *LocalGatewayRouteTableVirtualInterfaceGroupAssociation) pulumi.StringOutput {
return v.LocalGatewayRouteTableVirtualInterfaceGroupAssociationId
}).(pulumi.StringOutput)
}
// The ID of the local gateway route table virtual interface group.
func (o LocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput) LocalGatewayVirtualInterfaceGroupId() pulumi.StringOutput {
return o.ApplyT(func(v *LocalGatewayRouteTableVirtualInterfaceGroupAssociation) pulumi.StringOutput {
return v.LocalGatewayVirtualInterfaceGroupId
}).(pulumi.StringOutput)
}
// The owner of the local gateway route table virtual interface group association.
func (o LocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput) OwnerId() pulumi.StringOutput {
return o.ApplyT(func(v *LocalGatewayRouteTableVirtualInterfaceGroupAssociation) pulumi.StringOutput { return v.OwnerId }).(pulumi.StringOutput)
}
// The state of the local gateway route table virtual interface group association.
func (o LocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput) State() pulumi.StringOutput {
return o.ApplyT(func(v *LocalGatewayRouteTableVirtualInterfaceGroupAssociation) pulumi.StringOutput { return v.State }).(pulumi.StringOutput)
}
// The tags for the local gateway route table virtual interface group association.
func (o LocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput) Tags() aws.TagArrayOutput {
return o.ApplyT(func(v *LocalGatewayRouteTableVirtualInterfaceGroupAssociation) aws.TagArrayOutput { return v.Tags }).(aws.TagArrayOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*LocalGatewayRouteTableVirtualInterfaceGroupAssociationInput)(nil)).Elem(), &LocalGatewayRouteTableVirtualInterfaceGroupAssociation{})
pulumi.RegisterOutputType(LocalGatewayRouteTableVirtualInterfaceGroupAssociationOutput{})
}