forked from aws/aws-sdk-go
/
directconnect.go
562 lines (494 loc) · 24.7 KB
/
directconnect.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
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
// Package directconnect provides a client for AWS Direct Connect.
package directconnect
import (
"net/http"
"time"
"github.com/awslabs/aws-sdk-go/aws"
"github.com/awslabs/aws-sdk-go/gen/endpoints"
)
// DirectConnect is a client for AWS Direct Connect.
type DirectConnect struct {
client *aws.JSONClient
}
type DirectConnectAPI interface {
AllocateConnectionOnInterconnect(req *AllocateConnectionOnInterconnectRequest) (resp *Connection, err error)
AllocatePrivateVirtualInterface(req *AllocatePrivateVirtualInterfaceRequest) (resp *VirtualInterface, err error)
AllocatePublicVirtualInterface(req *AllocatePublicVirtualInterfaceRequest) (resp *VirtualInterface, err error)
ConfirmConnection(req *ConfirmConnectionRequest) (resp *ConfirmConnectionResponse, err error)
ConfirmPrivateVirtualInterface(req *ConfirmPrivateVirtualInterfaceRequest) (resp *ConfirmPrivateVirtualInterfaceResponse, err error)
ConfirmPublicVirtualInterface(req *ConfirmPublicVirtualInterfaceRequest) (resp *ConfirmPublicVirtualInterfaceResponse, err error)
CreateConnection(req *CreateConnectionRequest) (resp *Connection, err error)
CreateInterconnect(req *CreateInterconnectRequest) (resp *Interconnect, err error)
CreatePrivateVirtualInterface(req *CreatePrivateVirtualInterfaceRequest) (resp *VirtualInterface, err error)
CreatePublicVirtualInterface(req *CreatePublicVirtualInterfaceRequest) (resp *VirtualInterface, err error)
DeleteConnection(req *DeleteConnectionRequest) (resp *Connection, err error)
DeleteInterconnect(req *DeleteInterconnectRequest) (resp *DeleteInterconnectResponse, err error)
DeleteVirtualInterface(req *DeleteVirtualInterfaceRequest) (resp *DeleteVirtualInterfaceResponse, err error)
DescribeConnections(req *DescribeConnectionsRequest) (resp *Connections, err error)
DescribeConnectionsOnInterconnect(req *DescribeConnectionsOnInterconnectRequest) (resp *Connections, err error)
DescribeInterconnects(req *DescribeInterconnectsRequest) (resp *Interconnects, err error)
DescribeLocations() (resp *Locations, err error)
DescribeVirtualGateways() (resp *VirtualGateways, err error)
DescribeVirtualInterfaces(req *DescribeVirtualInterfacesRequest) (resp *VirtualInterfaces, err error)
}
// New returns a new DirectConnect client.
func New(creds aws.CredentialsProvider, region string, client *http.Client) *DirectConnect {
if client == nil {
client = http.DefaultClient
}
endpoint, service, region := endpoints.Lookup("directconnect", region)
return &DirectConnect{
client: &aws.JSONClient{
Context: aws.Context{
Credentials: creds,
Service: service,
Region: region,
}, Client: client,
Endpoint: endpoint,
JSONVersion: "1.1",
TargetPrefix: "OvertureService",
},
}
}
// AllocateConnectionOnInterconnect creates a hosted connection on an
// interconnect. Allocates a number and a specified amount of bandwidth for
// use by a hosted connection on the given interconnect.
func (c *DirectConnect) AllocateConnectionOnInterconnect(req *AllocateConnectionOnInterconnectRequest) (resp *Connection, err error) {
resp = &Connection{}
err = c.client.Do("AllocateConnectionOnInterconnect", "POST", "/", req, resp)
return
}
// AllocatePrivateVirtualInterface provisions a private virtual interface
// to be owned by a different customer. The owner of a connection calls
// this function to provision a private virtual interface which will be
// owned by another AWS customer. Virtual interfaces created using this
// function must be confirmed by the virtual interface owner by calling
// ConfirmPrivateVirtualInterface. Until this step has been completed, the
// virtual interface will be in 'Confirming' state, and will not be
// available for handling traffic.
func (c *DirectConnect) AllocatePrivateVirtualInterface(req *AllocatePrivateVirtualInterfaceRequest) (resp *VirtualInterface, err error) {
resp = &VirtualInterface{}
err = c.client.Do("AllocatePrivateVirtualInterface", "POST", "/", req, resp)
return
}
// AllocatePublicVirtualInterface provisions a public virtual interface to
// be owned by a different customer. The owner of a connection calls this
// function to provision a public virtual interface which will be owned by
// another AWS customer. Virtual interfaces created using this function
// must be confirmed by the virtual interface owner by calling
// ConfirmPublicVirtualInterface. Until this step has been completed, the
// virtual interface will be in 'Confirming' state, and will not be
// available for handling traffic.
func (c *DirectConnect) AllocatePublicVirtualInterface(req *AllocatePublicVirtualInterfaceRequest) (resp *VirtualInterface, err error) {
resp = &VirtualInterface{}
err = c.client.Do("AllocatePublicVirtualInterface", "POST", "/", req, resp)
return
}
// ConfirmConnection confirm the creation of a hosted connection on an
// interconnect. Upon creation, the hosted connection is initially in the
// 'Ordering' state, and will remain in this state until the owner calls
// ConfirmConnection to confirm creation of the hosted connection.
func (c *DirectConnect) ConfirmConnection(req *ConfirmConnectionRequest) (resp *ConfirmConnectionResponse, err error) {
resp = &ConfirmConnectionResponse{}
err = c.client.Do("ConfirmConnection", "POST", "/", req, resp)
return
}
// ConfirmPrivateVirtualInterface accept ownership of a private virtual
// interface created by another customer. After the virtual interface owner
// calls this function, the virtual interface will be created and attached
// to the given virtual private gateway, and will be available for handling
// traffic.
func (c *DirectConnect) ConfirmPrivateVirtualInterface(req *ConfirmPrivateVirtualInterfaceRequest) (resp *ConfirmPrivateVirtualInterfaceResponse, err error) {
resp = &ConfirmPrivateVirtualInterfaceResponse{}
err = c.client.Do("ConfirmPrivateVirtualInterface", "POST", "/", req, resp)
return
}
// ConfirmPublicVirtualInterface accept ownership of a public virtual
// interface created by another customer. After the virtual interface owner
// calls this function, the specified virtual interface will be created and
// made available for handling traffic.
func (c *DirectConnect) ConfirmPublicVirtualInterface(req *ConfirmPublicVirtualInterfaceRequest) (resp *ConfirmPublicVirtualInterfaceResponse, err error) {
resp = &ConfirmPublicVirtualInterfaceResponse{}
err = c.client.Do("ConfirmPublicVirtualInterface", "POST", "/", req, resp)
return
}
// CreateConnection creates a new connection between the customer network
// and a specific AWS Direct Connect location. A connection links your
// internal network to an AWS Direct Connect location over a standard 1
// gigabit or 10 gigabit Ethernet fiber-optic cable. One end of the cable
// is connected to your router, the other to an AWS Direct Connect router.
// An AWS Direct Connect location provides access to Amazon Web Services in
// the region it is associated with. You can establish connections with AWS
// Direct Connect locations in multiple regions, but a connection in one
// region does not provide connectivity to other regions.
func (c *DirectConnect) CreateConnection(req *CreateConnectionRequest) (resp *Connection, err error) {
resp = &Connection{}
err = c.client.Do("CreateConnection", "POST", "/", req, resp)
return
}
// CreateInterconnect creates a new interconnect between a AWS Direct
// Connect partner's network and a specific AWS Direct Connect location. An
// interconnect is a connection which is capable of hosting other
// connections. The AWS Direct Connect partner can use an interconnect to
// provide sub-1Gbps AWS Direct Connect service to tier 2 customers who do
// not have their own connections. Like a standard connection, an
// interconnect links the AWS Direct Connect partner's network to an AWS
// Direct Connect location over a standard 1 Gbps or 10 Gbps Ethernet
// fiber-optic cable. One end is connected to the partner's router, the
// other to an AWS Direct Connect router. For each end customer, the AWS
// Direct Connect partner provisions a connection on their interconnect by
// calling AllocateConnectionOnInterconnect. The end customer can then
// connect to AWS resources by creating a virtual interface on their
// connection, using the assigned to them by the AWS Direct Connect
// partner.
func (c *DirectConnect) CreateInterconnect(req *CreateInterconnectRequest) (resp *Interconnect, err error) {
resp = &Interconnect{}
err = c.client.Do("CreateInterconnect", "POST", "/", req, resp)
return
}
// CreatePrivateVirtualInterface creates a new private virtual interface. A
// virtual interface is the that transports AWS Direct Connect traffic. A
// private virtual interface supports sending traffic to a single virtual
// private cloud
func (c *DirectConnect) CreatePrivateVirtualInterface(req *CreatePrivateVirtualInterfaceRequest) (resp *VirtualInterface, err error) {
resp = &VirtualInterface{}
err = c.client.Do("CreatePrivateVirtualInterface", "POST", "/", req, resp)
return
}
// CreatePublicVirtualInterface creates a new public virtual interface. A
// virtual interface is the that transports AWS Direct Connect traffic. A
// public virtual interface supports sending traffic to public services of
// AWS such as Amazon Simple Storage Service (Amazon S3).
func (c *DirectConnect) CreatePublicVirtualInterface(req *CreatePublicVirtualInterfaceRequest) (resp *VirtualInterface, err error) {
resp = &VirtualInterface{}
err = c.client.Do("CreatePublicVirtualInterface", "POST", "/", req, resp)
return
}
// DeleteConnection deletes the connection. Deleting a connection only
// stops the AWS Direct Connect port hour and data transfer charges. You
// need to cancel separately with the providers any services or charges for
// cross-connects or network circuits that connect you to the AWS Direct
// Connect location.
func (c *DirectConnect) DeleteConnection(req *DeleteConnectionRequest) (resp *Connection, err error) {
resp = &Connection{}
err = c.client.Do("DeleteConnection", "POST", "/", req, resp)
return
}
// DeleteInterconnect is undocumented.
func (c *DirectConnect) DeleteInterconnect(req *DeleteInterconnectRequest) (resp *DeleteInterconnectResponse, err error) {
resp = &DeleteInterconnectResponse{}
err = c.client.Do("DeleteInterconnect", "POST", "/", req, resp)
return
}
// DeleteVirtualInterface is undocumented.
func (c *DirectConnect) DeleteVirtualInterface(req *DeleteVirtualInterfaceRequest) (resp *DeleteVirtualInterfaceResponse, err error) {
resp = &DeleteVirtualInterfaceResponse{}
err = c.client.Do("DeleteVirtualInterface", "POST", "/", req, resp)
return
}
// DescribeConnections displays all connections in this region. If a
// connection ID is provided, the call returns only that particular
// connection.
func (c *DirectConnect) DescribeConnections(req *DescribeConnectionsRequest) (resp *Connections, err error) {
resp = &Connections{}
err = c.client.Do("DescribeConnections", "POST", "/", req, resp)
return
}
// DescribeConnectionsOnInterconnect return a list of connections that have
// been provisioned on the given interconnect.
func (c *DirectConnect) DescribeConnectionsOnInterconnect(req *DescribeConnectionsOnInterconnectRequest) (resp *Connections, err error) {
resp = &Connections{}
err = c.client.Do("DescribeConnectionsOnInterconnect", "POST", "/", req, resp)
return
}
// DescribeInterconnects returns a list of interconnects owned by the AWS
// account. If an interconnect ID is provided, it will only return this
// particular interconnect.
func (c *DirectConnect) DescribeInterconnects(req *DescribeInterconnectsRequest) (resp *Interconnects, err error) {
resp = &Interconnects{}
err = c.client.Do("DescribeInterconnects", "POST", "/", req, resp)
return
}
// DescribeLocations returns the list of AWS Direct Connect locations in
// the current AWS region. These are the locations that may be selected
// when calling CreateConnection or CreateInterconnect.
func (c *DirectConnect) DescribeLocations() (resp *Locations, err error) {
resp = &Locations{}
err = c.client.Do("DescribeLocations", "POST", "/", nil, resp)
return
}
// DescribeVirtualGateways returns a list of virtual private gateways owned
// by the AWS account. You can create one or more AWS Direct Connect
// private virtual interfaces linking to a virtual private gateway. A
// virtual private gateway can be managed via Amazon Virtual Private Cloud
// console or the EC2 CreateVpnGateway action.
func (c *DirectConnect) DescribeVirtualGateways() (resp *VirtualGateways, err error) {
resp = &VirtualGateways{}
err = c.client.Do("DescribeVirtualGateways", "POST", "/", nil, resp)
return
}
// DescribeVirtualInterfaces displays all virtual interfaces for an AWS
// account. Virtual interfaces deleted fewer than 15 minutes before
// DescribeVirtualInterfaces is called are also returned. If a connection
// ID is included then only virtual interfaces associated with this
// connection will be returned. If a virtual interface ID is included then
// only a single virtual interface will be returned. A virtual interface
// transmits the traffic between the AWS Direct Connect location and the
// customer. If a connection ID is provided, only virtual interfaces
// provisioned on the specified connection will be returned. If a virtual
// interface ID is provided, only this particular virtual interface will be
// returned.
func (c *DirectConnect) DescribeVirtualInterfaces(req *DescribeVirtualInterfacesRequest) (resp *VirtualInterfaces, err error) {
resp = &VirtualInterfaces{}
err = c.client.Do("DescribeVirtualInterfaces", "POST", "/", req, resp)
return
}
// AllocateConnectionOnInterconnectRequest is undocumented.
type AllocateConnectionOnInterconnectRequest struct {
Bandwidth aws.StringValue `json:"bandwidth"`
ConnectionName aws.StringValue `json:"connectionName"`
InterconnectID aws.StringValue `json:"interconnectId"`
OwnerAccount aws.StringValue `json:"ownerAccount"`
VLAN aws.IntegerValue `json:"vlan"`
}
// AllocatePrivateVirtualInterfaceRequest is undocumented.
type AllocatePrivateVirtualInterfaceRequest struct {
ConnectionID aws.StringValue `json:"connectionId"`
NewPrivateVirtualInterfaceAllocation *NewPrivateVirtualInterfaceAllocation `json:"newPrivateVirtualInterfaceAllocation"`
OwnerAccount aws.StringValue `json:"ownerAccount"`
}
// AllocatePublicVirtualInterfaceRequest is undocumented.
type AllocatePublicVirtualInterfaceRequest struct {
ConnectionID aws.StringValue `json:"connectionId"`
NewPublicVirtualInterfaceAllocation *NewPublicVirtualInterfaceAllocation `json:"newPublicVirtualInterfaceAllocation"`
OwnerAccount aws.StringValue `json:"ownerAccount"`
}
// ConfirmConnectionRequest is undocumented.
type ConfirmConnectionRequest struct {
ConnectionID aws.StringValue `json:"connectionId"`
}
// ConfirmConnectionResponse is undocumented.
type ConfirmConnectionResponse struct {
ConnectionState aws.StringValue `json:"connectionState,omitempty"`
}
// ConfirmPrivateVirtualInterfaceRequest is undocumented.
type ConfirmPrivateVirtualInterfaceRequest struct {
VirtualGatewayID aws.StringValue `json:"virtualGatewayId"`
VirtualInterfaceID aws.StringValue `json:"virtualInterfaceId"`
}
// ConfirmPrivateVirtualInterfaceResponse is undocumented.
type ConfirmPrivateVirtualInterfaceResponse struct {
VirtualInterfaceState aws.StringValue `json:"virtualInterfaceState,omitempty"`
}
// ConfirmPublicVirtualInterfaceRequest is undocumented.
type ConfirmPublicVirtualInterfaceRequest struct {
VirtualInterfaceID aws.StringValue `json:"virtualInterfaceId"`
}
// ConfirmPublicVirtualInterfaceResponse is undocumented.
type ConfirmPublicVirtualInterfaceResponse struct {
VirtualInterfaceState aws.StringValue `json:"virtualInterfaceState,omitempty"`
}
// Connection is undocumented.
type Connection struct {
Bandwidth aws.StringValue `json:"bandwidth,omitempty"`
ConnectionID aws.StringValue `json:"connectionId,omitempty"`
ConnectionName aws.StringValue `json:"connectionName,omitempty"`
ConnectionState aws.StringValue `json:"connectionState,omitempty"`
Location aws.StringValue `json:"location,omitempty"`
OwnerAccount aws.StringValue `json:"ownerAccount,omitempty"`
PartnerName aws.StringValue `json:"partnerName,omitempty"`
Region aws.StringValue `json:"region,omitempty"`
VLAN aws.IntegerValue `json:"vlan,omitempty"`
}
// Possible values for DirectConnect.
const (
ConnectionStateAvailable = "available"
ConnectionStateDeleted = "deleted"
ConnectionStateDeleting = "deleting"
ConnectionStateDown = "down"
ConnectionStateOrdering = "ordering"
ConnectionStatePending = "pending"
ConnectionStateRejected = "rejected"
ConnectionStateRequested = "requested"
)
// Connections is undocumented.
type Connections struct {
Connections []Connection `json:"connections,omitempty"`
}
// CreateConnectionRequest is undocumented.
type CreateConnectionRequest struct {
Bandwidth aws.StringValue `json:"bandwidth"`
ConnectionName aws.StringValue `json:"connectionName"`
Location aws.StringValue `json:"location"`
}
// CreateInterconnectRequest is undocumented.
type CreateInterconnectRequest struct {
Bandwidth aws.StringValue `json:"bandwidth"`
InterconnectName aws.StringValue `json:"interconnectName"`
Location aws.StringValue `json:"location"`
}
// CreatePrivateVirtualInterfaceRequest is undocumented.
type CreatePrivateVirtualInterfaceRequest struct {
ConnectionID aws.StringValue `json:"connectionId"`
NewPrivateVirtualInterface *NewPrivateVirtualInterface `json:"newPrivateVirtualInterface"`
}
// CreatePublicVirtualInterfaceRequest is undocumented.
type CreatePublicVirtualInterfaceRequest struct {
ConnectionID aws.StringValue `json:"connectionId"`
NewPublicVirtualInterface *NewPublicVirtualInterface `json:"newPublicVirtualInterface"`
}
// DeleteConnectionRequest is undocumented.
type DeleteConnectionRequest struct {
ConnectionID aws.StringValue `json:"connectionId"`
}
// DeleteInterconnectRequest is undocumented.
type DeleteInterconnectRequest struct {
InterconnectID aws.StringValue `json:"interconnectId"`
}
// DeleteInterconnectResponse is undocumented.
type DeleteInterconnectResponse struct {
InterconnectState aws.StringValue `json:"interconnectState,omitempty"`
}
// DeleteVirtualInterfaceRequest is undocumented.
type DeleteVirtualInterfaceRequest struct {
VirtualInterfaceID aws.StringValue `json:"virtualInterfaceId"`
}
// DeleteVirtualInterfaceResponse is undocumented.
type DeleteVirtualInterfaceResponse struct {
VirtualInterfaceState aws.StringValue `json:"virtualInterfaceState,omitempty"`
}
// DescribeConnectionsOnInterconnectRequest is undocumented.
type DescribeConnectionsOnInterconnectRequest struct {
InterconnectID aws.StringValue `json:"interconnectId"`
}
// DescribeConnectionsRequest is undocumented.
type DescribeConnectionsRequest struct {
ConnectionID aws.StringValue `json:"connectionId,omitempty"`
}
// DescribeInterconnectsRequest is undocumented.
type DescribeInterconnectsRequest struct {
InterconnectID aws.StringValue `json:"interconnectId,omitempty"`
}
// DescribeVirtualInterfacesRequest is undocumented.
type DescribeVirtualInterfacesRequest struct {
ConnectionID aws.StringValue `json:"connectionId,omitempty"`
VirtualInterfaceID aws.StringValue `json:"virtualInterfaceId,omitempty"`
}
// Interconnect is undocumented.
type Interconnect struct {
Bandwidth aws.StringValue `json:"bandwidth,omitempty"`
InterconnectID aws.StringValue `json:"interconnectId,omitempty"`
InterconnectName aws.StringValue `json:"interconnectName,omitempty"`
InterconnectState aws.StringValue `json:"interconnectState,omitempty"`
Location aws.StringValue `json:"location,omitempty"`
Region aws.StringValue `json:"region,omitempty"`
}
// Possible values for DirectConnect.
const (
InterconnectStateAvailable = "available"
InterconnectStateDeleted = "deleted"
InterconnectStateDeleting = "deleting"
InterconnectStateDown = "down"
InterconnectStatePending = "pending"
InterconnectStateRequested = "requested"
)
// Interconnects is undocumented.
type Interconnects struct {
Interconnects []Interconnect `json:"interconnects,omitempty"`
}
// Location is undocumented.
type Location struct {
LocationCode aws.StringValue `json:"locationCode,omitempty"`
LocationName aws.StringValue `json:"locationName,omitempty"`
}
// Locations is undocumented.
type Locations struct {
Locations []Location `json:"locations,omitempty"`
}
// NewPrivateVirtualInterface is undocumented.
type NewPrivateVirtualInterface struct {
AmazonAddress aws.StringValue `json:"amazonAddress,omitempty"`
ASN aws.IntegerValue `json:"asn"`
AuthKey aws.StringValue `json:"authKey,omitempty"`
CustomerAddress aws.StringValue `json:"customerAddress,omitempty"`
VirtualGatewayID aws.StringValue `json:"virtualGatewayId"`
VirtualInterfaceName aws.StringValue `json:"virtualInterfaceName"`
VLAN aws.IntegerValue `json:"vlan"`
}
// NewPrivateVirtualInterfaceAllocation is undocumented.
type NewPrivateVirtualInterfaceAllocation struct {
AmazonAddress aws.StringValue `json:"amazonAddress,omitempty"`
ASN aws.IntegerValue `json:"asn"`
AuthKey aws.StringValue `json:"authKey,omitempty"`
CustomerAddress aws.StringValue `json:"customerAddress,omitempty"`
VirtualInterfaceName aws.StringValue `json:"virtualInterfaceName"`
VLAN aws.IntegerValue `json:"vlan"`
}
// NewPublicVirtualInterface is undocumented.
type NewPublicVirtualInterface struct {
AmazonAddress aws.StringValue `json:"amazonAddress"`
ASN aws.IntegerValue `json:"asn"`
AuthKey aws.StringValue `json:"authKey,omitempty"`
CustomerAddress aws.StringValue `json:"customerAddress"`
RouteFilterPrefixes []RouteFilterPrefix `json:"routeFilterPrefixes"`
VirtualInterfaceName aws.StringValue `json:"virtualInterfaceName"`
VLAN aws.IntegerValue `json:"vlan"`
}
// NewPublicVirtualInterfaceAllocation is undocumented.
type NewPublicVirtualInterfaceAllocation struct {
AmazonAddress aws.StringValue `json:"amazonAddress"`
ASN aws.IntegerValue `json:"asn"`
AuthKey aws.StringValue `json:"authKey,omitempty"`
CustomerAddress aws.StringValue `json:"customerAddress"`
RouteFilterPrefixes []RouteFilterPrefix `json:"routeFilterPrefixes"`
VirtualInterfaceName aws.StringValue `json:"virtualInterfaceName"`
VLAN aws.IntegerValue `json:"vlan"`
}
// RouteFilterPrefix is undocumented.
type RouteFilterPrefix struct {
CIDR aws.StringValue `json:"cidr,omitempty"`
}
// VirtualGateway is undocumented.
type VirtualGateway struct {
VirtualGatewayID aws.StringValue `json:"virtualGatewayId,omitempty"`
VirtualGatewayState aws.StringValue `json:"virtualGatewayState,omitempty"`
}
// VirtualGateways is undocumented.
type VirtualGateways struct {
VirtualGateways []VirtualGateway `json:"virtualGateways,omitempty"`
}
// VirtualInterface is undocumented.
type VirtualInterface struct {
AmazonAddress aws.StringValue `json:"amazonAddress,omitempty"`
ASN aws.IntegerValue `json:"asn,omitempty"`
AuthKey aws.StringValue `json:"authKey,omitempty"`
ConnectionID aws.StringValue `json:"connectionId,omitempty"`
CustomerAddress aws.StringValue `json:"customerAddress,omitempty"`
CustomerRouterConfig aws.StringValue `json:"customerRouterConfig,omitempty"`
Location aws.StringValue `json:"location,omitempty"`
OwnerAccount aws.StringValue `json:"ownerAccount,omitempty"`
RouteFilterPrefixes []RouteFilterPrefix `json:"routeFilterPrefixes,omitempty"`
VirtualGatewayID aws.StringValue `json:"virtualGatewayId,omitempty"`
VirtualInterfaceID aws.StringValue `json:"virtualInterfaceId,omitempty"`
VirtualInterfaceName aws.StringValue `json:"virtualInterfaceName,omitempty"`
VirtualInterfaceState aws.StringValue `json:"virtualInterfaceState,omitempty"`
VirtualInterfaceType aws.StringValue `json:"virtualInterfaceType,omitempty"`
VLAN aws.IntegerValue `json:"vlan,omitempty"`
}
// Possible values for DirectConnect.
const (
VirtualInterfaceStateAvailable = "available"
VirtualInterfaceStateConfirming = "confirming"
VirtualInterfaceStateDeleted = "deleted"
VirtualInterfaceStateDeleting = "deleting"
VirtualInterfaceStatePending = "pending"
VirtualInterfaceStateRejected = "rejected"
VirtualInterfaceStateVerifying = "verifying"
)
// VirtualInterfaces is undocumented.
type VirtualInterfaces struct {
VirtualInterfaces []VirtualInterface `json:"virtualInterfaces,omitempty"`
}
// avoid errors if the packages aren't referenced
var _ time.Time