/
privateVirtualInterface.go
502 lines (438 loc) · 23.8 KB
/
privateVirtualInterface.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
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package directconnect
import (
"context"
"reflect"
"errors"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Provides a Direct Connect private virtual interface resource.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi-aws/sdk/v5/go/aws/directconnect"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// _, err := directconnect.NewPrivateVirtualInterface(ctx, "foo", &directconnect.PrivateVirtualInterfaceArgs{
// AddressFamily: pulumi.String("ipv4"),
// BgpAsn: pulumi.Int(65352),
// ConnectionId: pulumi.String("dxcon-zzzzzzzz"),
// Vlan: pulumi.Int(4094),
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
//
// ## Import
//
// Direct Connect private virtual interfaces can be imported using the `vif id`, e.g.,
//
// ```sh
//
// $ pulumi import aws:directconnect/privateVirtualInterface:PrivateVirtualInterface test dxvif-33cc44dd
//
// ```
type PrivateVirtualInterface struct {
pulumi.CustomResourceState
// The address family for the BGP peer. ` ipv4 ` or `ipv6`.
AddressFamily pulumi.StringOutput `pulumi:"addressFamily"`
// The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers.
AmazonAddress pulumi.StringOutput `pulumi:"amazonAddress"`
AmazonSideAsn pulumi.StringOutput `pulumi:"amazonSideAsn"`
// The ARN of the virtual interface.
Arn pulumi.StringOutput `pulumi:"arn"`
// The Direct Connect endpoint on which the virtual interface terminates.
AwsDevice pulumi.StringOutput `pulumi:"awsDevice"`
// The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
BgpAsn pulumi.IntOutput `pulumi:"bgpAsn"`
// The authentication key for BGP configuration.
BgpAuthKey pulumi.StringOutput `pulumi:"bgpAuthKey"`
// The ID of the Direct Connect connection (or LAG) on which to create the virtual interface.
ConnectionId pulumi.StringOutput `pulumi:"connectionId"`
// The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers.
CustomerAddress pulumi.StringOutput `pulumi:"customerAddress"`
// The ID of the Direct Connect gateway to which to connect the virtual interface.
DxGatewayId pulumi.StringPtrOutput `pulumi:"dxGatewayId"`
// Indicates whether jumbo frames (9001 MTU) are supported.
JumboFrameCapable pulumi.BoolOutput `pulumi:"jumboFrameCapable"`
// The maximum transmission unit (MTU) is the size, in bytes, of the largest permissible packet that can be passed over the connection.
// The MTU of a virtual private interface can be either `1500` or `9001` (jumbo frames). Default is `1500`.
Mtu pulumi.IntPtrOutput `pulumi:"mtu"`
// The name for the virtual interface.
Name pulumi.StringOutput `pulumi:"name"`
// Indicates whether to enable or disable SiteLink.
SitelinkEnabled pulumi.BoolPtrOutput `pulumi:"sitelinkEnabled"`
// A map of tags to assign to the resource. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Tags pulumi.StringMapOutput `pulumi:"tags"`
// A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"`
// The VLAN ID.
Vlan pulumi.IntOutput `pulumi:"vlan"`
// The ID of the virtual private gateway to which to connect the virtual interface.
VpnGatewayId pulumi.StringPtrOutput `pulumi:"vpnGatewayId"`
}
// NewPrivateVirtualInterface registers a new resource with the given unique name, arguments, and options.
func NewPrivateVirtualInterface(ctx *pulumi.Context,
name string, args *PrivateVirtualInterfaceArgs, opts ...pulumi.ResourceOption) (*PrivateVirtualInterface, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.AddressFamily == nil {
return nil, errors.New("invalid value for required argument 'AddressFamily'")
}
if args.BgpAsn == nil {
return nil, errors.New("invalid value for required argument 'BgpAsn'")
}
if args.ConnectionId == nil {
return nil, errors.New("invalid value for required argument 'ConnectionId'")
}
if args.Vlan == nil {
return nil, errors.New("invalid value for required argument 'Vlan'")
}
var resource PrivateVirtualInterface
err := ctx.RegisterResource("aws:directconnect/privateVirtualInterface:PrivateVirtualInterface", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetPrivateVirtualInterface gets an existing PrivateVirtualInterface 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 GetPrivateVirtualInterface(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *PrivateVirtualInterfaceState, opts ...pulumi.ResourceOption) (*PrivateVirtualInterface, error) {
var resource PrivateVirtualInterface
err := ctx.ReadResource("aws:directconnect/privateVirtualInterface:PrivateVirtualInterface", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering PrivateVirtualInterface resources.
type privateVirtualInterfaceState struct {
// The address family for the BGP peer. ` ipv4 ` or `ipv6`.
AddressFamily *string `pulumi:"addressFamily"`
// The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers.
AmazonAddress *string `pulumi:"amazonAddress"`
AmazonSideAsn *string `pulumi:"amazonSideAsn"`
// The ARN of the virtual interface.
Arn *string `pulumi:"arn"`
// The Direct Connect endpoint on which the virtual interface terminates.
AwsDevice *string `pulumi:"awsDevice"`
// The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
BgpAsn *int `pulumi:"bgpAsn"`
// The authentication key for BGP configuration.
BgpAuthKey *string `pulumi:"bgpAuthKey"`
// The ID of the Direct Connect connection (or LAG) on which to create the virtual interface.
ConnectionId *string `pulumi:"connectionId"`
// The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers.
CustomerAddress *string `pulumi:"customerAddress"`
// The ID of the Direct Connect gateway to which to connect the virtual interface.
DxGatewayId *string `pulumi:"dxGatewayId"`
// Indicates whether jumbo frames (9001 MTU) are supported.
JumboFrameCapable *bool `pulumi:"jumboFrameCapable"`
// The maximum transmission unit (MTU) is the size, in bytes, of the largest permissible packet that can be passed over the connection.
// The MTU of a virtual private interface can be either `1500` or `9001` (jumbo frames). Default is `1500`.
Mtu *int `pulumi:"mtu"`
// The name for the virtual interface.
Name *string `pulumi:"name"`
// Indicates whether to enable or disable SiteLink.
SitelinkEnabled *bool `pulumi:"sitelinkEnabled"`
// A map of tags to assign to the resource. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Tags map[string]string `pulumi:"tags"`
// A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
TagsAll map[string]string `pulumi:"tagsAll"`
// The VLAN ID.
Vlan *int `pulumi:"vlan"`
// The ID of the virtual private gateway to which to connect the virtual interface.
VpnGatewayId *string `pulumi:"vpnGatewayId"`
}
type PrivateVirtualInterfaceState struct {
// The address family for the BGP peer. ` ipv4 ` or `ipv6`.
AddressFamily pulumi.StringPtrInput
// The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers.
AmazonAddress pulumi.StringPtrInput
AmazonSideAsn pulumi.StringPtrInput
// The ARN of the virtual interface.
Arn pulumi.StringPtrInput
// The Direct Connect endpoint on which the virtual interface terminates.
AwsDevice pulumi.StringPtrInput
// The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
BgpAsn pulumi.IntPtrInput
// The authentication key for BGP configuration.
BgpAuthKey pulumi.StringPtrInput
// The ID of the Direct Connect connection (or LAG) on which to create the virtual interface.
ConnectionId pulumi.StringPtrInput
// The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers.
CustomerAddress pulumi.StringPtrInput
// The ID of the Direct Connect gateway to which to connect the virtual interface.
DxGatewayId pulumi.StringPtrInput
// Indicates whether jumbo frames (9001 MTU) are supported.
JumboFrameCapable pulumi.BoolPtrInput
// The maximum transmission unit (MTU) is the size, in bytes, of the largest permissible packet that can be passed over the connection.
// The MTU of a virtual private interface can be either `1500` or `9001` (jumbo frames). Default is `1500`.
Mtu pulumi.IntPtrInput
// The name for the virtual interface.
Name pulumi.StringPtrInput
// Indicates whether to enable or disable SiteLink.
SitelinkEnabled pulumi.BoolPtrInput
// A map of tags to assign to the resource. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Tags pulumi.StringMapInput
// A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
TagsAll pulumi.StringMapInput
// The VLAN ID.
Vlan pulumi.IntPtrInput
// The ID of the virtual private gateway to which to connect the virtual interface.
VpnGatewayId pulumi.StringPtrInput
}
func (PrivateVirtualInterfaceState) ElementType() reflect.Type {
return reflect.TypeOf((*privateVirtualInterfaceState)(nil)).Elem()
}
type privateVirtualInterfaceArgs struct {
// The address family for the BGP peer. ` ipv4 ` or `ipv6`.
AddressFamily string `pulumi:"addressFamily"`
// The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers.
AmazonAddress *string `pulumi:"amazonAddress"`
// The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
BgpAsn int `pulumi:"bgpAsn"`
// The authentication key for BGP configuration.
BgpAuthKey *string `pulumi:"bgpAuthKey"`
// The ID of the Direct Connect connection (or LAG) on which to create the virtual interface.
ConnectionId string `pulumi:"connectionId"`
// The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers.
CustomerAddress *string `pulumi:"customerAddress"`
// The ID of the Direct Connect gateway to which to connect the virtual interface.
DxGatewayId *string `pulumi:"dxGatewayId"`
// The maximum transmission unit (MTU) is the size, in bytes, of the largest permissible packet that can be passed over the connection.
// The MTU of a virtual private interface can be either `1500` or `9001` (jumbo frames). Default is `1500`.
Mtu *int `pulumi:"mtu"`
// The name for the virtual interface.
Name *string `pulumi:"name"`
// Indicates whether to enable or disable SiteLink.
SitelinkEnabled *bool `pulumi:"sitelinkEnabled"`
// A map of tags to assign to the resource. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Tags map[string]string `pulumi:"tags"`
// The VLAN ID.
Vlan int `pulumi:"vlan"`
// The ID of the virtual private gateway to which to connect the virtual interface.
VpnGatewayId *string `pulumi:"vpnGatewayId"`
}
// The set of arguments for constructing a PrivateVirtualInterface resource.
type PrivateVirtualInterfaceArgs struct {
// The address family for the BGP peer. ` ipv4 ` or `ipv6`.
AddressFamily pulumi.StringInput
// The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers.
AmazonAddress pulumi.StringPtrInput
// The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
BgpAsn pulumi.IntInput
// The authentication key for BGP configuration.
BgpAuthKey pulumi.StringPtrInput
// The ID of the Direct Connect connection (or LAG) on which to create the virtual interface.
ConnectionId pulumi.StringInput
// The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers.
CustomerAddress pulumi.StringPtrInput
// The ID of the Direct Connect gateway to which to connect the virtual interface.
DxGatewayId pulumi.StringPtrInput
// The maximum transmission unit (MTU) is the size, in bytes, of the largest permissible packet that can be passed over the connection.
// The MTU of a virtual private interface can be either `1500` or `9001` (jumbo frames). Default is `1500`.
Mtu pulumi.IntPtrInput
// The name for the virtual interface.
Name pulumi.StringPtrInput
// Indicates whether to enable or disable SiteLink.
SitelinkEnabled pulumi.BoolPtrInput
// A map of tags to assign to the resource. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
Tags pulumi.StringMapInput
// The VLAN ID.
Vlan pulumi.IntInput
// The ID of the virtual private gateway to which to connect the virtual interface.
VpnGatewayId pulumi.StringPtrInput
}
func (PrivateVirtualInterfaceArgs) ElementType() reflect.Type {
return reflect.TypeOf((*privateVirtualInterfaceArgs)(nil)).Elem()
}
type PrivateVirtualInterfaceInput interface {
pulumi.Input
ToPrivateVirtualInterfaceOutput() PrivateVirtualInterfaceOutput
ToPrivateVirtualInterfaceOutputWithContext(ctx context.Context) PrivateVirtualInterfaceOutput
}
func (*PrivateVirtualInterface) ElementType() reflect.Type {
return reflect.TypeOf((**PrivateVirtualInterface)(nil)).Elem()
}
func (i *PrivateVirtualInterface) ToPrivateVirtualInterfaceOutput() PrivateVirtualInterfaceOutput {
return i.ToPrivateVirtualInterfaceOutputWithContext(context.Background())
}
func (i *PrivateVirtualInterface) ToPrivateVirtualInterfaceOutputWithContext(ctx context.Context) PrivateVirtualInterfaceOutput {
return pulumi.ToOutputWithContext(ctx, i).(PrivateVirtualInterfaceOutput)
}
// PrivateVirtualInterfaceArrayInput is an input type that accepts PrivateVirtualInterfaceArray and PrivateVirtualInterfaceArrayOutput values.
// You can construct a concrete instance of `PrivateVirtualInterfaceArrayInput` via:
//
// PrivateVirtualInterfaceArray{ PrivateVirtualInterfaceArgs{...} }
type PrivateVirtualInterfaceArrayInput interface {
pulumi.Input
ToPrivateVirtualInterfaceArrayOutput() PrivateVirtualInterfaceArrayOutput
ToPrivateVirtualInterfaceArrayOutputWithContext(context.Context) PrivateVirtualInterfaceArrayOutput
}
type PrivateVirtualInterfaceArray []PrivateVirtualInterfaceInput
func (PrivateVirtualInterfaceArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*PrivateVirtualInterface)(nil)).Elem()
}
func (i PrivateVirtualInterfaceArray) ToPrivateVirtualInterfaceArrayOutput() PrivateVirtualInterfaceArrayOutput {
return i.ToPrivateVirtualInterfaceArrayOutputWithContext(context.Background())
}
func (i PrivateVirtualInterfaceArray) ToPrivateVirtualInterfaceArrayOutputWithContext(ctx context.Context) PrivateVirtualInterfaceArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(PrivateVirtualInterfaceArrayOutput)
}
// PrivateVirtualInterfaceMapInput is an input type that accepts PrivateVirtualInterfaceMap and PrivateVirtualInterfaceMapOutput values.
// You can construct a concrete instance of `PrivateVirtualInterfaceMapInput` via:
//
// PrivateVirtualInterfaceMap{ "key": PrivateVirtualInterfaceArgs{...} }
type PrivateVirtualInterfaceMapInput interface {
pulumi.Input
ToPrivateVirtualInterfaceMapOutput() PrivateVirtualInterfaceMapOutput
ToPrivateVirtualInterfaceMapOutputWithContext(context.Context) PrivateVirtualInterfaceMapOutput
}
type PrivateVirtualInterfaceMap map[string]PrivateVirtualInterfaceInput
func (PrivateVirtualInterfaceMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*PrivateVirtualInterface)(nil)).Elem()
}
func (i PrivateVirtualInterfaceMap) ToPrivateVirtualInterfaceMapOutput() PrivateVirtualInterfaceMapOutput {
return i.ToPrivateVirtualInterfaceMapOutputWithContext(context.Background())
}
func (i PrivateVirtualInterfaceMap) ToPrivateVirtualInterfaceMapOutputWithContext(ctx context.Context) PrivateVirtualInterfaceMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(PrivateVirtualInterfaceMapOutput)
}
type PrivateVirtualInterfaceOutput struct{ *pulumi.OutputState }
func (PrivateVirtualInterfaceOutput) ElementType() reflect.Type {
return reflect.TypeOf((**PrivateVirtualInterface)(nil)).Elem()
}
func (o PrivateVirtualInterfaceOutput) ToPrivateVirtualInterfaceOutput() PrivateVirtualInterfaceOutput {
return o
}
func (o PrivateVirtualInterfaceOutput) ToPrivateVirtualInterfaceOutputWithContext(ctx context.Context) PrivateVirtualInterfaceOutput {
return o
}
// The address family for the BGP peer. ` ipv4 ` or `ipv6`.
func (o PrivateVirtualInterfaceOutput) AddressFamily() pulumi.StringOutput {
return o.ApplyT(func(v *PrivateVirtualInterface) pulumi.StringOutput { return v.AddressFamily }).(pulumi.StringOutput)
}
// The IPv4 CIDR address to use to send traffic to Amazon. Required for IPv4 BGP peers.
func (o PrivateVirtualInterfaceOutput) AmazonAddress() pulumi.StringOutput {
return o.ApplyT(func(v *PrivateVirtualInterface) pulumi.StringOutput { return v.AmazonAddress }).(pulumi.StringOutput)
}
func (o PrivateVirtualInterfaceOutput) AmazonSideAsn() pulumi.StringOutput {
return o.ApplyT(func(v *PrivateVirtualInterface) pulumi.StringOutput { return v.AmazonSideAsn }).(pulumi.StringOutput)
}
// The ARN of the virtual interface.
func (o PrivateVirtualInterfaceOutput) Arn() pulumi.StringOutput {
return o.ApplyT(func(v *PrivateVirtualInterface) pulumi.StringOutput { return v.Arn }).(pulumi.StringOutput)
}
// The Direct Connect endpoint on which the virtual interface terminates.
func (o PrivateVirtualInterfaceOutput) AwsDevice() pulumi.StringOutput {
return o.ApplyT(func(v *PrivateVirtualInterface) pulumi.StringOutput { return v.AwsDevice }).(pulumi.StringOutput)
}
// The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
func (o PrivateVirtualInterfaceOutput) BgpAsn() pulumi.IntOutput {
return o.ApplyT(func(v *PrivateVirtualInterface) pulumi.IntOutput { return v.BgpAsn }).(pulumi.IntOutput)
}
// The authentication key for BGP configuration.
func (o PrivateVirtualInterfaceOutput) BgpAuthKey() pulumi.StringOutput {
return o.ApplyT(func(v *PrivateVirtualInterface) pulumi.StringOutput { return v.BgpAuthKey }).(pulumi.StringOutput)
}
// The ID of the Direct Connect connection (or LAG) on which to create the virtual interface.
func (o PrivateVirtualInterfaceOutput) ConnectionId() pulumi.StringOutput {
return o.ApplyT(func(v *PrivateVirtualInterface) pulumi.StringOutput { return v.ConnectionId }).(pulumi.StringOutput)
}
// The IPv4 CIDR destination address to which Amazon should send traffic. Required for IPv4 BGP peers.
func (o PrivateVirtualInterfaceOutput) CustomerAddress() pulumi.StringOutput {
return o.ApplyT(func(v *PrivateVirtualInterface) pulumi.StringOutput { return v.CustomerAddress }).(pulumi.StringOutput)
}
// The ID of the Direct Connect gateway to which to connect the virtual interface.
func (o PrivateVirtualInterfaceOutput) DxGatewayId() pulumi.StringPtrOutput {
return o.ApplyT(func(v *PrivateVirtualInterface) pulumi.StringPtrOutput { return v.DxGatewayId }).(pulumi.StringPtrOutput)
}
// Indicates whether jumbo frames (9001 MTU) are supported.
func (o PrivateVirtualInterfaceOutput) JumboFrameCapable() pulumi.BoolOutput {
return o.ApplyT(func(v *PrivateVirtualInterface) pulumi.BoolOutput { return v.JumboFrameCapable }).(pulumi.BoolOutput)
}
// The maximum transmission unit (MTU) is the size, in bytes, of the largest permissible packet that can be passed over the connection.
// The MTU of a virtual private interface can be either `1500` or `9001` (jumbo frames). Default is `1500`.
func (o PrivateVirtualInterfaceOutput) Mtu() pulumi.IntPtrOutput {
return o.ApplyT(func(v *PrivateVirtualInterface) pulumi.IntPtrOutput { return v.Mtu }).(pulumi.IntPtrOutput)
}
// The name for the virtual interface.
func (o PrivateVirtualInterfaceOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v *PrivateVirtualInterface) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
}
// Indicates whether to enable or disable SiteLink.
func (o PrivateVirtualInterfaceOutput) SitelinkEnabled() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *PrivateVirtualInterface) pulumi.BoolPtrOutput { return v.SitelinkEnabled }).(pulumi.BoolPtrOutput)
}
// A map of tags to assign to the resource. .If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
func (o PrivateVirtualInterfaceOutput) Tags() pulumi.StringMapOutput {
return o.ApplyT(func(v *PrivateVirtualInterface) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput)
}
// A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
func (o PrivateVirtualInterfaceOutput) TagsAll() pulumi.StringMapOutput {
return o.ApplyT(func(v *PrivateVirtualInterface) pulumi.StringMapOutput { return v.TagsAll }).(pulumi.StringMapOutput)
}
// The VLAN ID.
func (o PrivateVirtualInterfaceOutput) Vlan() pulumi.IntOutput {
return o.ApplyT(func(v *PrivateVirtualInterface) pulumi.IntOutput { return v.Vlan }).(pulumi.IntOutput)
}
// The ID of the virtual private gateway to which to connect the virtual interface.
func (o PrivateVirtualInterfaceOutput) VpnGatewayId() pulumi.StringPtrOutput {
return o.ApplyT(func(v *PrivateVirtualInterface) pulumi.StringPtrOutput { return v.VpnGatewayId }).(pulumi.StringPtrOutput)
}
type PrivateVirtualInterfaceArrayOutput struct{ *pulumi.OutputState }
func (PrivateVirtualInterfaceArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*PrivateVirtualInterface)(nil)).Elem()
}
func (o PrivateVirtualInterfaceArrayOutput) ToPrivateVirtualInterfaceArrayOutput() PrivateVirtualInterfaceArrayOutput {
return o
}
func (o PrivateVirtualInterfaceArrayOutput) ToPrivateVirtualInterfaceArrayOutputWithContext(ctx context.Context) PrivateVirtualInterfaceArrayOutput {
return o
}
func (o PrivateVirtualInterfaceArrayOutput) Index(i pulumi.IntInput) PrivateVirtualInterfaceOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *PrivateVirtualInterface {
return vs[0].([]*PrivateVirtualInterface)[vs[1].(int)]
}).(PrivateVirtualInterfaceOutput)
}
type PrivateVirtualInterfaceMapOutput struct{ *pulumi.OutputState }
func (PrivateVirtualInterfaceMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*PrivateVirtualInterface)(nil)).Elem()
}
func (o PrivateVirtualInterfaceMapOutput) ToPrivateVirtualInterfaceMapOutput() PrivateVirtualInterfaceMapOutput {
return o
}
func (o PrivateVirtualInterfaceMapOutput) ToPrivateVirtualInterfaceMapOutputWithContext(ctx context.Context) PrivateVirtualInterfaceMapOutput {
return o
}
func (o PrivateVirtualInterfaceMapOutput) MapIndex(k pulumi.StringInput) PrivateVirtualInterfaceOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *PrivateVirtualInterface {
return vs[0].(map[string]*PrivateVirtualInterface)[vs[1].(string)]
}).(PrivateVirtualInterfaceOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*PrivateVirtualInterfaceInput)(nil)).Elem(), &PrivateVirtualInterface{})
pulumi.RegisterInputType(reflect.TypeOf((*PrivateVirtualInterfaceArrayInput)(nil)).Elem(), PrivateVirtualInterfaceArray{})
pulumi.RegisterInputType(reflect.TypeOf((*PrivateVirtualInterfaceMapInput)(nil)).Elem(), PrivateVirtualInterfaceMap{})
pulumi.RegisterOutputType(PrivateVirtualInterfaceOutput{})
pulumi.RegisterOutputType(PrivateVirtualInterfaceArrayOutput{})
pulumi.RegisterOutputType(PrivateVirtualInterfaceMapOutput{})
}