AWS Direct Connect
API Reference
API Version 2012-10-25
AWS Direct Connect: API Reference
Copyright © Amazon Web Services, Inc. and/or its affiliates. All rights reserved.
Amazon's trademarks and trade dress may not be used in connection with any product or service that is not Amazon's, in any manner that is likely to cause confusion among customers, or in any manner that disparages or discredits Amazon. All other trademarks not owned by Amazon are the property of their respective owners, who may or may not be affiliated with, connected to, or sponsored by Amazon.
Table of Contents
Welcome ... 1
Actions ... 2
AcceptDirectConnectGatewayAssociationProposal ... 4
Request Syntax ... 4
Request Parameters ... 4
Response Syntax ... 5
Response Elements ... 5
Errors ... 5
See Also ... 5
AllocateConnectionOnInterconnect ... 7
Request Syntax ... 7
Request Parameters ... 7
Response Syntax ... 8
Response Elements ... 8
Errors ... 11
See Also ... 11
AllocateHostedConnection ... 12
Request Syntax ... 12
Request Parameters ... 12
Response Syntax ... 13
Response Elements ... 14
Errors ... 16
See Also ... 17
AllocatePrivateVirtualInterface ... 18
Request Syntax ... 18
Request Parameters ... 18
Response Syntax ... 19
Response Elements ... 19
Errors ... 22
See Also ... 23
AllocatePublicVirtualInterface ... 24
Request Syntax ... 24
Request Parameters ... 24
Response Syntax ... 25
Response Elements ... 26
Errors ... 28
See Also ... 29
AllocateTransitVirtualInterface ... 30
Request Syntax ... 30
Request Parameters ... 30
Response Syntax ... 31
Response Elements ... 32
Errors ... 32
See Also ... 32
AssociateConnectionWithLag ... 33
Request Syntax ... 33
Request Parameters ... 33
Response Syntax ... 33
Response Elements ... 34
Errors ... 37
See Also ... 37
AssociateHostedConnection ... 38
Request Syntax ... 38
Request Parameters ... 38
Response Syntax ... 38
Response Elements ... 39
Errors ... 41
See Also ... 42
AssociateMacSecKey ... 43
Request Syntax ... 43
Request Parameters ... 43
Response Syntax ... 44
Response Elements ... 44
Errors ... 44
See Also ... 45
AssociateVirtualInterface ... 46
Request Syntax ... 46
Request Parameters ... 46
Response Syntax ... 46
Response Elements ... 47
Errors ... 50
See Also ... 50
ConfirmConnection ... 52
Request Syntax ... 52
Request Parameters ... 52
Response Syntax ... 52
Response Elements ... 52
Errors ... 53
See Also ... 53
ConfirmCustomerAgreement ... 54
Request Syntax ... 54
Request Parameters ... 54
Response Syntax ... 54
Response Elements ... 54
Errors ... 54
See Also ... 55
ConfirmPrivateVirtualInterface ... 56
Request Syntax ... 56
Request Parameters ... 56
Response Syntax ... 56
Response Elements ... 56
Errors ... 57
See Also ... 57
ConfirmPublicVirtualInterface ... 59
Request Syntax ... 59
Request Parameters ... 59
Response Syntax ... 59
Response Elements ... 59
Errors ... 60
See Also ... 60
ConfirmTransitVirtualInterface ... 61
Request Syntax ... 61
Request Parameters ... 61
Response Syntax ... 61
Response Elements ... 61
Errors ... 62
See Also ... 62
CreateBGPPeer ... 63
Request Syntax ... 63
Request Parameters ... 63
Response Syntax ... 63
Response Elements ... 64
Errors ... 65
See Also ... 65
CreateConnection ... 66
Request Syntax ... 66
Request Parameters ... 66
Response Syntax ... 67
Response Elements ... 68
Errors ... 70
See Also ... 71
CreateDirectConnectGateway ... 72
Request Syntax ... 72
Request Parameters ... 72
Response Syntax ... 72
Response Elements ... 72
Errors ... 73
See Also ... 73
CreateDirectConnectGatewayAssociation ... 74
Request Syntax ... 74
Request Parameters ... 74
Response Syntax ... 75
Response Elements ... 75
Errors ... 75
See Also ... 75
CreateDirectConnectGatewayAssociationProposal ... 77
Request Syntax ... 77
Request Parameters ... 77
Response Syntax ... 78
Response Elements ... 78
Errors ... 78
See Also ... 79
CreateInterconnect ... 80
Request Syntax ... 80
Request Parameters ... 80
Response Syntax ... 81
Response Elements ... 82
Errors ... 83
See Also ... 84
CreateLag ... 85
Request Syntax ... 85
Request Parameters ... 85
Response Syntax ... 87
Response Elements ... 88
Errors ... 90
See Also ... 91
CreatePrivateVirtualInterface ... 92
Request Syntax ... 92
Request Parameters ... 92
Response Syntax ... 93
Response Elements ... 93
Errors ... 96
See Also ... 97
CreatePublicVirtualInterface ... 98
Request Syntax ... 98
Request Parameters ... 98
Response Syntax ... 99
Response Elements ... 99
Errors ... 102
See Also ... 103
CreateTransitVirtualInterface ... 104
Request Syntax ... 104
Request Parameters ... 104
Response Syntax ... 105
Response Elements ... 106
Errors ... 106
See Also ... 106
DeleteBGPPeer ... 107
Request Syntax ... 107
Request Parameters ... 107
Response Syntax ... 107
Response Elements ... 108
Errors ... 109
See Also ... 109
DeleteConnection ... 110
Request Syntax ... 110
Request Parameters ... 110
Response Syntax ... 110
Response Elements ... 111
Errors ... 113
See Also ... 114
DeleteDirectConnectGateway ... 115
Request Syntax ... 115
Request Parameters ... 115
Response Syntax ... 115
Response Elements ... 115
Errors ... 115
See Also ... 116
DeleteDirectConnectGatewayAssociation ... 117
Request Syntax ... 117
Request Parameters ... 117
Response Syntax ... 117
Response Elements ... 118
Errors ... 118
See Also ... 118
DeleteDirectConnectGatewayAssociationProposal ... 120
Request Syntax ... 120
Request Parameters ... 120
Response Syntax ... 120
Response Elements ... 120
Errors ... 121
See Also ... 121
DeleteInterconnect ... 122
Request Syntax ... 122
Request Parameters ... 122
Response Syntax ... 122
Response Elements ... 122
Errors ... 123
See Also ... 123
DeleteLag ... 124
Request Syntax ... 124
Request Parameters ... 124
Response Syntax ... 124
Response Elements ... 125
Errors ... 128
See Also ... 128
DeleteVirtualInterface ... 129
Request Syntax ... 129
Request Parameters ... 129
Response Syntax ... 129
Response Elements ... 129
Errors ... 130
See Also ... 130
DescribeConnectionLoa ... 131
Request Syntax ... 131
Request Parameters ... 131
Response Syntax ... 131
Response Elements ... 132
Errors ... 132
See Also ... 132
DescribeConnections ... 133
Request Syntax ... 133
Request Parameters ... 133
Response Syntax ... 133
Response Elements ... 134
Errors ... 134
See Also ... 134
DescribeConnectionsOnInterconnect ... 135
Request Syntax ... 135
Request Parameters ... 135
Response Syntax ... 135
Response Elements ... 136
Errors ... 136
See Also ... 136
DescribeCustomerMetadata ... 138
Response Syntax ... 138
Response Elements ... 138
Errors ... 138
See Also ... 139
DescribeDirectConnectGatewayAssociationProposals ... 140
Request Syntax ... 140
Request Parameters ... 140
Response Syntax ... 141
Response Elements ... 141
Errors ... 141
See Also ... 142
DescribeDirectConnectGatewayAssociations ... 143
Request Syntax ... 143
Request Parameters ... 143
Response Syntax ... 144
Response Elements ... 145
Errors ... 145
See Also ... 145
DescribeDirectConnectGatewayAttachments ... 146
Request Syntax ... 146
Request Parameters ... 146
Response Syntax ... 147
Response Elements ... 147
Errors ... 147
See Also ... 147
DescribeDirectConnectGateways ... 149
Request Syntax ... 149
Request Parameters ... 149
Response Syntax ... 149
Response Elements ... 150
Errors ... 150
See Also ... 150
DescribeHostedConnections ... 151
Request Syntax ... 151
Request Parameters ... 151
Response Syntax ... 151
Response Elements ... 152
Errors ... 152
See Also ... 152
DescribeInterconnectLoa ... 154
Request Syntax ... 154
Request Parameters ... 154
Response Syntax ... 154
Response Elements ... 155
Errors ... 155
See Also ... 155
DescribeInterconnects ... 156
Request Syntax ... 156
Request Parameters ... 156
Response Syntax ... 156
Response Elements ... 156
Errors ... 157
See Also ... 157
DescribeLags ... 158
Request Syntax ... 158
Request Parameters ... 158
Response Syntax ... 158
Response Elements ... 159
Errors ... 159
See Also ... 160
DescribeLoa ... 161
Request Syntax ... 161
Request Parameters ... 161
Response Syntax ... 161
Response Elements ... 162
Errors ... 162
See Also ... 162
DescribeLocations ... 163
Response Syntax ... 163
Response Elements ... 163
Errors ... 163
See Also ... 163
DescribeRouterConfiguration ... 165
Request Syntax ... 165
Request Parameters ... 165
Response Syntax ... 165
Response Elements ... 165
Errors ... 166
See Also ... 166
DescribeTags ... 167
Request Syntax ... 167
Request Parameters ... 167
Response Syntax ... 167
Response Elements ... 167
Errors ... 168
See Also ... 168
DescribeVirtualGateways ... 169
Response Syntax ... 169
Response Elements ... 169
Errors ... 169
See Also ... 169
DescribeVirtualInterfaces ... 171
Request Syntax ... 171
Request Parameters ... 171
Response Syntax ... 171
Response Elements ... 172
Errors ... 172
See Also ... 173
DisassociateConnectionFromLag ... 174
Request Syntax ... 174
Request Parameters ... 174
Response Syntax ... 174
Response Elements ... 175
Errors ... 177
See Also ... 178
DisassociateMacSecKey ... 179
Request Syntax ... 179
Request Parameters ... 179
Response Syntax ... 179
Response Elements ... 179
Errors ... 180
See Also ... 180
ListVirtualInterfaceTestHistory ... 181
Request Syntax ... 181
Request Parameters ... 181
Response Syntax ... 182
Response Elements ... 182
Errors ... 182
See Also ... 183
StartBgpFailoverTest ... 184
Request Syntax ... 184
Request Parameters ... 184
Response Syntax ... 184
Response Elements ... 185
Errors ... 185
See Also ... 185
StopBgpFailoverTest ... 186
Request Syntax ... 186
Request Parameters ... 186
Response Syntax ... 186
Response Elements ... 186
Errors ... 186
See Also ... 187
TagResource ... 188
Request Syntax ... 188
Request Parameters ... 188
Response Elements ... 188
Errors ... 188
See Also ... 189
UntagResource ... 190
Request Syntax ... 190
Request Parameters ... 190
Response Elements ... 190
Errors ... 190
See Also ... 191
UpdateConnection ... 192
Request Syntax ... 192
Request Parameters ... 192
Response Syntax ... 192
Response Elements ... 193
Errors ... 196
See Also ... 196
UpdateDirectConnectGateway ... 197
Request Syntax ... 197
Request Parameters ... 197
Response Syntax ... 197
Response Elements ... 197
Errors ... 198
See Also ... 198
UpdateDirectConnectGatewayAssociation ... 199
Request Syntax ... 199
Request Parameters ... 199
Response Syntax ... 199
Response Elements ... 200
Errors ... 200
See Also ... 200
UpdateLag ... 202
Request Syntax ... 202
Request Parameters ... 202
Response Syntax ... 203
Response Elements ... 204
Errors ... 206
See Also ... 206
UpdateVirtualInterfaceAttributes ... 208
Request Syntax ... 208
Request Parameters ... 208
Response Syntax ... 209
Response Elements ... 209
Errors ... 212
See Also ... 213
Data Types ... 214
AssociatedGateway ... 215
Contents ... 215
See Also ... 215
BGPPeer ... 216
Contents ... 216
See Also ... 217
Connection ... 218
Contents ... 218
See Also ... 221
CustomerAgreement ... 222
Contents ... 222
See Also ... 222
DirectConnectGateway ... 223
Contents ... 223
See Also ... 224
DirectConnectGatewayAssociation ... 225
Contents ... 225
See Also ... 226
DirectConnectGatewayAssociationProposal ... 227
Contents ... 227
See Also ... 228
DirectConnectGatewayAttachment ... 229
Contents ... 229
See Also ... 230
Interconnect ... 231
Contents ... 231
See Also ... 233
Lag ... 234
Contents ... 234
See Also ... 237
Loa ... 238
Contents ... 238
See Also ... 238
Location ... 239
Contents ... 239
See Also ... 239
MacSecKey ... 241
Contents ... 241
See Also ... 241
NewBGPPeer ... 243
Contents ... 243
See Also ... 243
NewPrivateVirtualInterface ... 244
Contents ... 244
See Also ... 245
NewPrivateVirtualInterfaceAllocation ... 246
Contents ... 246
See Also ... 247
NewPublicVirtualInterface ... 248
Contents ... 248
See Also ... 249
NewPublicVirtualInterfaceAllocation ... 250
Contents ... 250
See Also ... 251
NewTransitVirtualInterface ... 252
Contents ... 252
See Also ... 253
NewTransitVirtualInterfaceAllocation ... 254
Contents ... 254
See Also ... 255
ResourceTag ... 256
Contents ... 256
See Also ... 256
RouteFilterPrefix ... 257
Contents ... 257
See Also ... 257
RouterType ... 258
Contents ... 258
See Also ... 258
Tag ... 260
Contents ... 260
See Also ... 260
VirtualGateway ... 261
Contents ... 261
See Also ... 261
VirtualInterface ... 262
Contents ... 262
See Also ... 265
VirtualInterfaceTestHistory ... 266
Contents ... 266
See Also ... 267
Common Parameters ... 268
Common Errors ... 270
Welcome
AWS Direct Connect links your internal network to an AWS Direct Connect location over a standard Ethernet fiber-optic cable. One end of the cable is connected to your router, the other to an AWS Direct Connect router. With this connection in place, you can create virtual interfaces directly to the AWS Cloud (for example, to Amazon EC2 and Amazon S3) and to Amazon VPC, bypassing Internet service providers in your network path. A connection provides access to all AWS Regions except the China (Beijing) and (China) Ningxia Regions. AWS resources in the China Regions can only be accessed through locations associated with those Regions.
This document was last published on March 6, 2022.
Actions
The following actions are supported:
• AcceptDirectConnectGatewayAssociationProposal (p. 4)
• AllocateConnectionOnInterconnect (p. 7)
• AllocateHostedConnection (p. 12)
• AllocatePrivateVirtualInterface (p. 18)
• AllocatePublicVirtualInterface (p. 24)
• AllocateTransitVirtualInterface (p. 30)
• AssociateConnectionWithLag (p. 33)
• AssociateHostedConnection (p. 38)
• AssociateMacSecKey (p. 43)
• AssociateVirtualInterface (p. 46)
• ConfirmConnection (p. 52)
• ConfirmCustomerAgreement (p. 54)
• ConfirmPrivateVirtualInterface (p. 56)
• ConfirmPublicVirtualInterface (p. 59)
• ConfirmTransitVirtualInterface (p. 61)
• CreateBGPPeer (p. 63)
• CreateConnection (p. 66)
• CreateDirectConnectGateway (p. 72)
• CreateDirectConnectGatewayAssociation (p. 74)
• CreateDirectConnectGatewayAssociationProposal (p. 77)
• CreateInterconnect (p. 80)
• CreateLag (p. 85)
• CreatePrivateVirtualInterface (p. 92)
• CreatePublicVirtualInterface (p. 98)
• CreateTransitVirtualInterface (p. 104)
• DeleteBGPPeer (p. 107)
• DeleteConnection (p. 110)
• DeleteDirectConnectGateway (p. 115)
• DeleteDirectConnectGatewayAssociation (p. 117)
• DeleteDirectConnectGatewayAssociationProposal (p. 120)
• DeleteInterconnect (p. 122)
• DeleteLag (p. 124)
• DeleteVirtualInterface (p. 129)
• DescribeConnectionLoa (p. 131)
• DescribeConnections (p. 133)
• DescribeConnectionsOnInterconnect (p. 135)
• DescribeCustomerMetadata (p. 138)
• DescribeDirectConnectGatewayAssociationProposals (p. 140)
• DescribeDirectConnectGatewayAssociations (p. 143)
• DescribeDirectConnectGatewayAttachments (p. 146)
• DescribeDirectConnectGateways (p. 149)
• DescribeHostedConnections (p. 151)
• DescribeInterconnectLoa (p. 154)
• DescribeInterconnects (p. 156)
• DescribeLags (p. 158)
• DescribeLoa (p. 161)
• DescribeLocations (p. 163)
• DescribeRouterConfiguration (p. 165)
• DescribeTags (p. 167)
• DescribeVirtualGateways (p. 169)
• DescribeVirtualInterfaces (p. 171)
• DisassociateConnectionFromLag (p. 174)
• DisassociateMacSecKey (p. 179)
• ListVirtualInterfaceTestHistory (p. 181)
• StartBgpFailoverTest (p. 184)
• StopBgpFailoverTest (p. 186)
• TagResource (p. 188)
• UntagResource (p. 190)
• UpdateConnection (p. 192)
• UpdateDirectConnectGateway (p. 197)
• UpdateDirectConnectGatewayAssociation (p. 199)
• UpdateLag (p. 202)
• UpdateVirtualInterfaceAttributes (p. 208)
AcceptDirectConnectGatewayAssociationProposal
AcceptDirectConnectGatewayAssociationProposal
Accepts a proposal request to attach a virtual private gateway or transit gateway to a Direct Connect gateway.
Request Syntax
{ "associatedGatewayOwnerAccount": "string", "directConnectGatewayId": "string",
"overrideAllowedPrefixesToDirectConnectGateway": [ {
"cidr": "string"
} ],
"proposalId": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters (p. 268).
The request accepts the following data in JSON format.
associatedGatewayOwnerAccount (p. 4)
The ID of the AWS account that owns the virtual private gateway or transit gateway.
Type: String Required: Yes
directConnectGatewayId (p. 4)
The ID of the Direct Connect gateway.
Type: String Required: Yes
overrideAllowedPrefixesToDirectConnectGateway (p. 4)
Overrides the Amazon VPC prefixes advertised to the Direct Connect gateway.
For information about how to set the prefixes, see Allowed Prefixes in the AWS Direct Connect User Guide.
Type: Array of RouteFilterPrefix (p. 257) objects Required: No
proposalId (p. 4)
The ID of the request proposal.
Type: String Required: Yes
Response Syntax
Response Syntax
{
"directConnectGatewayAssociation": {
"allowedPrefixesToDirectConnectGateway": [ {
"cidr": "string"
} ],
"associatedGateway": { "id": "string",
"ownerAccount": "string", "region": "string", "type": "string"
},
"associationId": "string", "associationState": "string", "directConnectGatewayId": "string",
"directConnectGatewayOwnerAccount": "string", "stateChangeError": "string",
"virtualGatewayId": "string",
"virtualGatewayOwnerAccount": "string", "virtualGatewayRegion": "string"
}}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
directConnectGatewayAssociation (p. 5)
Information about an association between a Direct Connect gateway and a virtual private gateway or transit gateway.
Type: DirectConnectGatewayAssociation (p. 225) object
Errors
For information about the errors that are common to all actions, see Common Errors (p. 270).
DirectConnectClientException
One or more parameters are not valid.
HTTP Status Code: 400 DirectConnectServerException
A server-side error occurred.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
See Also
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
AllocateConnectionOnInterconnect
AllocateConnectionOnInterconnect
Deprecated. Use AllocateHostedConnection (p. 12) instead.
Creates a hosted connection on an interconnect.
Allocates a VLAN number and a specified amount of bandwidth for use by a hosted connection on the specified interconnect.
Note
Intended for use by AWS Direct Connect Partners only.
Request Syntax
{ "bandwidth": "string", "connectionName": "string", "interconnectId": "string", "ownerAccount": "string", "vlan": number
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters (p. 268).
The request accepts the following data in JSON format.
bandwidth (p. 7)
The bandwidth of the connection. The possible values are 50Mbps, 100Mbps, 200Mbps, 300Mbps, 400Mbps, 500Mbps, 1Gbps, 2Gbps, 5Gbps, and 10Gbps. Note that only those AWS Direct Connect Partners who have met specific requirements are allowed to create a 1Gbps, 2Gbps, 5Gbps or 10Gbps hosted connection.
Type: String Required: Yes connectionName (p. 7)
The name of the provisioned connection.
Type: String Required: Yes interconnectId (p. 7)
The ID of the interconnect on which the connection will be provisioned.
Type: String Required: Yes ownerAccount (p. 7)
The ID of the AWS account of the customer for whom the connection will be provisioned.
Type: String
Response Syntax
Required: Yes vlan (p. 7)
The dedicated VLAN provisioned to the connection.
Type: Integer Required: Yes
Response Syntax
{
"awsDevice": "string", "awsDeviceV2": "string", "awsLogicalDeviceId": "string", "bandwidth": "string",
"connectionId": "string", "connectionName": "string", "connectionState": "string", "encryptionMode": "string", "hasLogicalRedundancy": "string", "jumboFrameCapable": boolean, "lagId": "string",
"loaIssueTime": number, "location": "string", "macSecCapable": boolean, "macSecKeys": [
{
"ckn": "string", "secretARN": "string", "startOn": "string", "state": "string"
} ],
"ownerAccount": "string", "partnerName": "string",
"portEncryptionStatus": "string", "providerName": "string",
"region": "string", "tags": [
{
"key": "string", "value": "string"
} ],
"vlan": number }
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
awsDevice (p. 8)
This parameter has been deprecated.
The Direct Connect endpoint on which the physical connection terminates.
Response Elements
Type: String awsDeviceV2 (p. 8)
The Direct Connect endpoint that terminates the physical connection.
Type: String
awsLogicalDeviceId (p. 8)
The Direct Connect endpoint that terminates the logical connection. This device might be different than the device that terminates the physical connection.
Type: String bandwidth (p. 8)
The bandwidth of the connection.
Type: String connectionId (p. 8)
The ID of the connection.
Type: String connectionName (p. 8)
The name of the connection.
Type: String connectionState (p. 8)
The state of the connection. The following are the possible values:
• ordering: The initial state of a hosted connection provisioned on an interconnect. The connection stays in the ordering state until the owner of the hosted connection confirms or declines the connection order.
• requested: The initial state of a standard connection. The connection stays in the requested state until the Letter of Authorization (LOA) is sent to the customer.
• pending: The connection has been approved and is being initialized.
• available: The network link is up and the connection is ready for use.
• down: The network link is down.
• deleting: The connection is being deleted.
• deleted: The connection has been deleted.
• rejected: A hosted connection in the ordering state enters the rejected state if it is deleted by the customer.
• unknown: The state of the connection is not available.
Type: String
Valid Values: ordering | requested | pending | available | down | deleting | deleted | rejected | unknown
encryptionMode (p. 8)
The MAC Security (MACsec) connection encryption mode.
The valid values are no_encrypt, should_encrypt, and must_encrypt.
Type: String
Response Elements
hasLogicalRedundancy (p. 8)
Indicates whether the connection supports a secondary BGP peer in the same address family (IPv4/
IPv6).
Type: String
Valid Values: unknown | yes | no jumboFrameCapable (p. 8)
Indicates whether jumbo frames (9001 MTU) are supported.
Type: Boolean lagId (p. 8)
The ID of the LAG.
Type: String loaIssueTime (p. 8)
The time of the most recent call to DescribeLoa (p. 161) for this connection.
Type: Timestamp location (p. 8)
The location of the connection.
Type: String macSecCapable (p. 8)
Indicates whether the connection supports MAC Security (MACsec).
Type: Boolean macSecKeys (p. 8)
The MAC Security (MACsec) security keys associated with the connection.
Type: Array of MacSecKey (p. 241) objects ownerAccount (p. 8)
The ID of the AWS account that owns the connection.
Type: String partnerName (p. 8)
The name of the AWS Direct Connect service provider associated with the connection.
Type: String
portEncryptionStatus (p. 8)
The MAC Security (MACsec) port link status of the connection.
The valid values are Encryption Up, which means that there is an active Connection Key Name, or Encryption Down.
Type: String providerName (p. 8)
The name of the service provider associated with the connection.
Errors
Type: String region (p. 8)
The AWS Region where the connection is located.
Type: String tags (p. 8)
The tags associated with the connection.
Type: Array of Tag (p. 260) objects
Array Members: Minimum number of 1 item.
vlan (p. 8)
The ID of the VLAN.
Type: Integer
Errors
For information about the errors that are common to all actions, see Common Errors (p. 270).
DirectConnectClientException
One or more parameters are not valid.
HTTP Status Code: 400 DirectConnectServerException
A server-side error occurred.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
AllocateHostedConnection
AllocateHostedConnection
Creates a hosted connection on the specified interconnect or a link aggregation group (LAG) of interconnects.
Allocates a VLAN number and a specified amount of capacity (bandwidth) for use by a hosted connection on the specified interconnect or LAG of interconnects. AWS polices the hosted connection for the specified capacity and the AWS Direct Connect Partner must also police the hosted connection for the specified capacity.
NoteIntended for use by AWS Direct Connect Partners only.
Request Syntax
{ "bandwidth": "string", "connectionId": "string", "connectionName": "string", "ownerAccount": "string", "tags": [
{
"key": "string", "value": "string"
} ],
"vlan": number }
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters (p. 268).
The request accepts the following data in JSON format.
bandwidth (p. 12)
The bandwidth of the connection. The possible values are 50Mbps, 100Mbps, 200Mbps, 300Mbps, 400Mbps, 500Mbps, 1Gbps, 2Gbps, 5Gbps, and 10Gbps. Note that only those AWS Direct Connect Partners who have met specific requirements are allowed to create a 1Gbps, 2Gbps, 5Gbps or 10Gbps hosted connection.
Type: String Required: Yes connectionId (p. 12)
The ID of the interconnect or LAG.
Type: String Required: Yes connectionName (p. 12)
The name of the hosted connection.
Type: String
Response Syntax
Required: Yes ownerAccount (p. 12)
The ID of the AWS account ID of the customer for the connection.
Type: String Required: Yes tags (p. 12)
The tags associated with the connection.
Type: Array of Tag (p. 260) objects
Array Members: Minimum number of 1 item.
Required: No vlan (p. 12)
The dedicated VLAN provisioned to the hosted connection.
Type: Integer Required: Yes
Response Syntax
{ "awsDevice": "string", "awsDeviceV2": "string", "awsLogicalDeviceId": "string", "bandwidth": "string",
"connectionId": "string", "connectionName": "string", "connectionState": "string", "encryptionMode": "string", "hasLogicalRedundancy": "string", "jumboFrameCapable": boolean, "lagId": "string",
"loaIssueTime": number, "location": "string", "macSecCapable": boolean, "macSecKeys": [
{
"ckn": "string", "secretARN": "string", "startOn": "string", "state": "string"
} ],
"ownerAccount": "string", "partnerName": "string",
"portEncryptionStatus": "string", "providerName": "string",
"region": "string", "tags": [
{
"key": "string", "value": "string"
} ],
Response Elements
"vlan": number }
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
awsDevice (p. 13)
This parameter has been deprecated.
The Direct Connect endpoint on which the physical connection terminates.
Type: String awsDeviceV2 (p. 13)
The Direct Connect endpoint that terminates the physical connection.
Type: String
awsLogicalDeviceId (p. 13)
The Direct Connect endpoint that terminates the logical connection. This device might be different than the device that terminates the physical connection.
Type: String bandwidth (p. 13)
The bandwidth of the connection.
Type: String connectionId (p. 13)
The ID of the connection.
Type: String
connectionName (p. 13)
The name of the connection.
Type: String connectionState (p. 13)
The state of the connection. The following are the possible values:
• ordering: The initial state of a hosted connection provisioned on an interconnect. The connection stays in the ordering state until the owner of the hosted connection confirms or declines the connection order.
• requested: The initial state of a standard connection. The connection stays in the requested state until the Letter of Authorization (LOA) is sent to the customer.
• pending: The connection has been approved and is being initialized.
• available: The network link is up and the connection is ready for use.
• down: The network link is down.
• deleting: The connection is being deleted.
• deleted: The connection has been deleted.
Response Elements
• rejected: A hosted connection in the ordering state enters the rejected state if it is deleted by the customer.
• unknown: The state of the connection is not available.
Type: String
Valid Values: ordering | requested | pending | available | down | deleting | deleted | rejected | unknown
encryptionMode (p. 13)
The MAC Security (MACsec) connection encryption mode.
The valid values are no_encrypt, should_encrypt, and must_encrypt.
Type: String
hasLogicalRedundancy (p. 13)
Indicates whether the connection supports a secondary BGP peer in the same address family (IPv4/
IPv6).
Type: String
Valid Values: unknown | yes | no jumboFrameCapable (p. 13)
Indicates whether jumbo frames (9001 MTU) are supported.
Type: Boolean lagId (p. 13)
The ID of the LAG.
Type: String loaIssueTime (p. 13)
The time of the most recent call to DescribeLoa (p. 161) for this connection.
Type: Timestamp location (p. 13)
The location of the connection.
Type: String macSecCapable (p. 13)
Indicates whether the connection supports MAC Security (MACsec).
Type: Boolean macSecKeys (p. 13)
The MAC Security (MACsec) security keys associated with the connection.
Type: Array of MacSecKey (p. 241) objects ownerAccount (p. 13)
The ID of the AWS account that owns the connection.
Type: String
Errors
partnerName (p. 13)
The name of the AWS Direct Connect service provider associated with the connection.
Type: String
portEncryptionStatus (p. 13)
The MAC Security (MACsec) port link status of the connection.
The valid values are Encryption Up, which means that there is an active Connection Key Name, or Encryption Down.
Type: String providerName (p. 13)
The name of the service provider associated with the connection.
Type: String region (p. 13)
The AWS Region where the connection is located.
Type: String tags (p. 13)
The tags associated with the connection.
Type: Array of Tag (p. 260) objects
Array Members: Minimum number of 1 item.
vlan (p. 13)
The ID of the VLAN.
Type: Integer
Errors
For information about the errors that are common to all actions, see Common Errors (p. 270).
DirectConnectClientException
One or more parameters are not valid.
HTTP Status Code: 400 DirectConnectServerException
A server-side error occurred.
HTTP Status Code: 400 DuplicateTagKeysException
A tag key was specified more than once.
HTTP Status Code: 400 TooManyTagsException
You have reached the limit on the number of tags that can be assigned.
See Also
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
AllocatePrivateVirtualInterface
AllocatePrivateVirtualInterface
Provisions a private virtual interface to be owned by the specified AWS account.
Virtual interfaces created using this action must be confirmed by the owner using
ConfirmPrivateVirtualInterface (p. 56). Until then, the virtual interface is in the Confirming state and is not available to handle traffic.
Request Syntax
{ "connectionId": "string",
"newPrivateVirtualInterfaceAllocation": { "addressFamily": "string",
"amazonAddress": "string", "asn": number,
"authKey": "string",
"customerAddress": "string", "mtu": number,
"tags": [ {
"key": "string", "value": "string"
} ],
"virtualInterfaceName": "string", "vlan": number
},
"ownerAccount": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters (p. 268).
The request accepts the following data in JSON format.
connectionId (p. 18)
The ID of the connection on which the private virtual interface is provisioned.
Type: String Required: Yes
newPrivateVirtualInterfaceAllocation (p. 18) Information about the private virtual interface.
Type: NewPrivateVirtualInterfaceAllocation (p. 246) object Required: Yes
ownerAccount (p. 18)
The ID of the AWS account that owns the virtual private interface.
Type: String Required: Yes
Response Syntax
Response Syntax
{
"addressFamily": "string", "amazonAddress": "string", "amazonSideAsn": number, "asn": number,
"authKey": "string", "awsDeviceV2": "string", "awsLogicalDeviceId": "string", "bgpPeers": [
{
"addressFamily": "string", "amazonAddress": "string", "asn": number,
"authKey": "string", "awsDeviceV2": "string", "awsLogicalDeviceId": "string", "bgpPeerId": "string",
"bgpPeerState": "string", "bgpStatus": "string", "customerAddress": "string"
} ],
"connectionId": "string", "customerAddress": "string", "customerRouterConfig": "string", "directConnectGatewayId": "string", "jumboFrameCapable": boolean, "location": "string",
"mtu": number,
"ownerAccount": "string", "region": "string", "routeFilterPrefixes": [ {
"cidr": "string"
} ],
"siteLinkEnabled": boolean, "tags": [
{
"key": "string", "value": "string"
} ],
"virtualGatewayId": "string", "virtualInterfaceId": "string", "virtualInterfaceName": "string", "virtualInterfaceState": "string", "virtualInterfaceType": "string", "vlan": number
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
addressFamily (p. 19)
The address family for the BGP peer.
Response Elements
Type: String
Valid Values: ipv4 | ipv6 amazonAddress (p. 19)
The IP address assigned to the Amazon interface.
Type: String amazonSideAsn (p. 19)
The autonomous system number (ASN) for the Amazon side of the connection.
Type: Long asn (p. 19)
The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
The valid values are 1-2147483647.
Type: Integer authKey (p. 19)
The authentication key for BGP configuration. This string has a minimum length of 6 characters and and a maximun lenth of 80 characters.
Type: String awsDeviceV2 (p. 19)
The Direct Connect endpoint that terminates the physical connection.
Type: String
awsLogicalDeviceId (p. 19)
The Direct Connect endpoint that terminates the logical connection. This device might be different than the device that terminates the physical connection.
Type: String bgpPeers (p. 19)
The BGP peers configured on this virtual interface.
Type: Array of BGPPeer (p. 216) objects connectionId (p. 19)
The ID of the connection.
Type: String
customerAddress (p. 19)
The IP address assigned to the customer interface.
Type: String
customerRouterConfig (p. 19)
The customer router configuration.
Type: String
Response Elements
directConnectGatewayId (p. 19)
The ID of the Direct Connect gateway.
Type: String
jumboFrameCapable (p. 19)
Indicates whether jumbo frames (9001 MTU) are supported.
Type: Boolean location (p. 19)
The location of the connection.
Type: String mtu (p. 19)
The maximum transmission unit (MTU), in bytes. The supported values are 1500 and 9001. The default value is 1500.
Type: Integer ownerAccount (p. 19)
The ID of the AWS account that owns the virtual interface.
Type: String region (p. 19)
The AWS Region where the virtual interface is located.
Type: String
routeFilterPrefixes (p. 19)
The routes to be advertised to the AWS network in this Region. Applies to public virtual interfaces.
Type: Array of RouteFilterPrefix (p. 257) objects siteLinkEnabled (p. 19)
Indicates whether SiteLink is enabled.
Type: Boolean tags (p. 19)
The tags associated with the virtual interface.
Type: Array of Tag (p. 260) objects
Array Members: Minimum number of 1 item.
virtualGatewayId (p. 19)
The ID of the virtual private gateway. Applies only to private virtual interfaces.
Type: String
virtualInterfaceId (p. 19)
The ID of the virtual interface.
Type: String
Errors
virtualInterfaceName (p. 19)
The name of the virtual interface assigned by the customer network. The name has a maximum of 100 characters. The following are valid characters: a-z, 0-9 and a hyphen (-).
Type: String
virtualInterfaceState (p. 19)
The state of the virtual interface. The following are the possible values:
• confirming: The creation of the virtual interface is pending confirmation from the virtual interface owner. If the owner of the virtual interface is different from the owner of the connection on which it is provisioned, then the virtual interface will remain in this state until it is confirmed by the virtual interface owner.
• verifying: This state only applies to public virtual interfaces. Each public virtual interface needs validation before the virtual interface can be created.
• pending: A virtual interface is in this state from the time that it is created until the virtual interface is ready to forward traffic.
• available: A virtual interface that is able to forward traffic.
• down: A virtual interface that is BGP down.
• deleting: A virtual interface is in this state immediately after calling DeleteVirtualInterface (p. 129) until it can no longer forward traffic.
• deleted: A virtual interface that cannot forward traffic.
• rejected: The virtual interface owner has declined creation of the virtual interface. If a virtual interface in the Confirming state is deleted by the virtual interface owner, the virtual interface enters the Rejected state.
• unknown: The state of the virtual interface is not available.
Type: String
Valid Values: confirming | verifying | pending | available | down | deleting | deleted | rejected | unknown
virtualInterfaceType (p. 19)
The type of virtual interface. The possible values are private and public.
Type: String vlan (p. 19)
The ID of the VLAN.
Type: Integer
Errors
For information about the errors that are common to all actions, see Common Errors (p. 270).
DirectConnectClientException
One or more parameters are not valid.
HTTP Status Code: 400 DirectConnectServerException
A server-side error occurred.
See Also
HTTP Status Code: 400 DuplicateTagKeysException
A tag key was specified more than once.
HTTP Status Code: 400 TooManyTagsException
You have reached the limit on the number of tags that can be assigned.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
AllocatePublicVirtualInterface
AllocatePublicVirtualInterface
Provisions a public virtual interface to be owned by the specified AWS account.
The owner of a connection calls this function to provision a public virtual interface to be owned by the specified AWS account.
Virtual interfaces created using this function must be confirmed by the owner using
ConfirmPublicVirtualInterface (p. 59). Until this step has been completed, the virtual interface is in the confirming state and is not available to handle traffic.
When creating an IPv6 public virtual interface, omit the Amazon address and customer address. IPv6 addresses are automatically assigned from the Amazon pool of IPv6 addresses; you cannot specify custom IPv6 addresses.
Request Syntax
{
"connectionId": "string",
"newPublicVirtualInterfaceAllocation": { "addressFamily": "string",
"amazonAddress": "string", "asn": number,
"authKey": "string",
"customerAddress": "string", "routeFilterPrefixes": [ {
"cidr": "string"
} ],
"tags": [ {
"key": "string", "value": "string"
} ],
"virtualInterfaceName": "string", "vlan": number
},
"ownerAccount": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters (p. 268).
The request accepts the following data in JSON format.
connectionId (p. 24)
The ID of the connection on which the public virtual interface is provisioned.
Type: String Required: Yes
newPublicVirtualInterfaceAllocation (p. 24) Information about the public virtual interface.
Response Syntax
Type: NewPublicVirtualInterfaceAllocation (p. 250) object Required: Yes
ownerAccount (p. 24)
The ID of the AWS account that owns the public virtual interface.
Type: String Required: Yes
Response Syntax
{ "addressFamily": "string", "amazonAddress": "string", "amazonSideAsn": number, "asn": number,
"authKey": "string", "awsDeviceV2": "string", "awsLogicalDeviceId": "string", "bgpPeers": [
{
"addressFamily": "string", "amazonAddress": "string", "asn": number,
"authKey": "string", "awsDeviceV2": "string", "awsLogicalDeviceId": "string", "bgpPeerId": "string",
"bgpPeerState": "string", "bgpStatus": "string", "customerAddress": "string"
} ],
"connectionId": "string", "customerAddress": "string", "customerRouterConfig": "string", "directConnectGatewayId": "string", "jumboFrameCapable": boolean, "location": "string",
"mtu": number,
"ownerAccount": "string", "region": "string", "routeFilterPrefixes": [ {
"cidr": "string"
} ],
"siteLinkEnabled": boolean, "tags": [
{
"key": "string", "value": "string"
} ],
"virtualGatewayId": "string", "virtualInterfaceId": "string", "virtualInterfaceName": "string", "virtualInterfaceState": "string", "virtualInterfaceType": "string", "vlan": number
Response Elements
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
addressFamily (p. 25)
The address family for the BGP peer.
Type: String
Valid Values: ipv4 | ipv6 amazonAddress (p. 25)
The IP address assigned to the Amazon interface.
Type: String amazonSideAsn (p. 25)
The autonomous system number (ASN) for the Amazon side of the connection.
Type: Long asn (p. 25)
The autonomous system (AS) number for Border Gateway Protocol (BGP) configuration.
The valid values are 1-2147483647.
Type: Integer authKey (p. 25)
The authentication key for BGP configuration. This string has a minimum length of 6 characters and and a maximun lenth of 80 characters.
Type: String awsDeviceV2 (p. 25)
The Direct Connect endpoint that terminates the physical connection.
Type: String
awsLogicalDeviceId (p. 25)
The Direct Connect endpoint that terminates the logical connection. This device might be different than the device that terminates the physical connection.
Type: String bgpPeers (p. 25)
The BGP peers configured on this virtual interface.
Type: Array of BGPPeer (p. 216) objects connectionId (p. 25)
The ID of the connection.
Response Elements
Type: String
customerAddress (p. 25)
The IP address assigned to the customer interface.
Type: String
customerRouterConfig (p. 25)
The customer router configuration.
Type: String
directConnectGatewayId (p. 25)
The ID of the Direct Connect gateway.
Type: String
jumboFrameCapable (p. 25)
Indicates whether jumbo frames (9001 MTU) are supported.
Type: Boolean location (p. 25)
The location of the connection.
Type: String mtu (p. 25)
The maximum transmission unit (MTU), in bytes. The supported values are 1500 and 9001. The default value is 1500.
Type: Integer ownerAccount (p. 25)
The ID of the AWS account that owns the virtual interface.
Type: String region (p. 25)
The AWS Region where the virtual interface is located.
Type: String
routeFilterPrefixes (p. 25)
The routes to be advertised to the AWS network in this Region. Applies to public virtual interfaces.
Type: Array of RouteFilterPrefix (p. 257) objects siteLinkEnabled (p. 25)
Indicates whether SiteLink is enabled.
Type: Boolean tags (p. 25)
The tags associated with the virtual interface.
Type: Array of Tag (p. 260) objects
Array Members: Minimum number of 1 item.
Errors
virtualGatewayId (p. 25)
The ID of the virtual private gateway. Applies only to private virtual interfaces.
Type: String
virtualInterfaceId (p. 25)
The ID of the virtual interface.
Type: String
virtualInterfaceName (p. 25)
The name of the virtual interface assigned by the customer network. The name has a maximum of 100 characters. The following are valid characters: a-z, 0-9 and a hyphen (-).
Type: String
virtualInterfaceState (p. 25)
The state of the virtual interface. The following are the possible values:
• confirming: The creation of the virtual interface is pending confirmation from the virtual interface owner. If the owner of the virtual interface is different from the owner of the connection on which it is provisioned, then the virtual interface will remain in this state until it is confirmed by the virtual interface owner.
• verifying: This state only applies to public virtual interfaces. Each public virtual interface needs validation before the virtual interface can be created.
• pending: A virtual interface is in this state from the time that it is created until the virtual interface is ready to forward traffic.
• available: A virtual interface that is able to forward traffic.
• down: A virtual interface that is BGP down.
• deleting: A virtual interface is in this state immediately after calling DeleteVirtualInterface (p. 129) until it can no longer forward traffic.
• deleted: A virtual interface that cannot forward traffic.
• rejected: The virtual interface owner has declined creation of the virtual interface. If a virtual interface in the Confirming state is deleted by the virtual interface owner, the virtual interface enters the Rejected state.
• unknown: The state of the virtual interface is not available.
Type: String
Valid Values: confirming | verifying | pending | available | down | deleting | deleted | rejected | unknown
virtualInterfaceType (p. 25)
The type of virtual interface. The possible values are private and public.
Type: String vlan (p. 25)
The ID of the VLAN.
Type: Integer
Errors
For information about the errors that are common to all actions, see Common Errors (p. 270).
See Also
DirectConnectClientException
One or more parameters are not valid.
HTTP Status Code: 400 DirectConnectServerException
A server-side error occurred.
HTTP Status Code: 400 DuplicateTagKeysException
A tag key was specified more than once.
HTTP Status Code: 400 TooManyTagsException
You have reached the limit on the number of tags that can be assigned.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
AllocateTransitVirtualInterface
AllocateTransitVirtualInterface
Provisions a transit virtual interface to be owned by the specified AWS account. Use this type of interface to connect a transit gateway to your Direct Connect gateway.
The owner of a connection provisions a transit virtual interface to be owned by the specified AWS account.
After you create a transit virtual interface, it must be confirmed by the owner using
ConfirmTransitVirtualInterface (p. 61). Until this step has been completed, the transit virtual interface is in the requested state and is not available to handle traffic.
Request Syntax
{ "connectionId": "string",
"newTransitVirtualInterfaceAllocation": { "addressFamily": "string",
"amazonAddress": "string", "asn": number,
"authKey": "string",
"customerAddress": "string", "mtu": number,
"tags": [ {
"key": "string", "value": "string"
} ],
"virtualInterfaceName": "string", "vlan": number
},
"ownerAccount": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters (p. 268).
The request accepts the following data in JSON format.
connectionId (p. 30)
The ID of the connection on which the transit virtual interface is provisioned.
Type: String Required: Yes
newTransitVirtualInterfaceAllocation (p. 30)
Information about the transit virtual interface.
Type: NewTransitVirtualInterfaceAllocation (p. 254) object Required: Yes
Response Syntax
ownerAccount (p. 30)
The ID of the AWS account that owns the transit virtual interface.
Type: String Required: Yes
Response Syntax
{ "virtualInterface": { "addressFamily": "string", "amazonAddress": "string", "amazonSideAsn": number, "asn": number,
"authKey": "string", "awsDeviceV2": "string",
"awsLogicalDeviceId": "string", "bgpPeers": [
{
"addressFamily": "string", "amazonAddress": "string", "asn": number,
"authKey": "string", "awsDeviceV2": "string", "awsLogicalDeviceId": "string", "bgpPeerId": "string",
"bgpPeerState": "string", "bgpStatus": "string", "customerAddress": "string"
} ],
"connectionId": "string", "customerAddress": "string", "customerRouterConfig": "string", "directConnectGatewayId": "string", "jumboFrameCapable": boolean, "location": "string",
"mtu": number,
"ownerAccount": "string", "region": "string", "routeFilterPrefixes": [ {
"cidr": "string"
} ],
"siteLinkEnabled": boolean, "tags": [
{
"key": "string", "value": "string"
} ],
"virtualGatewayId": "string", "virtualInterfaceId": "string", "virtualInterfaceName": "string", "virtualInterfaceState": "string", "virtualInterfaceType": "string", "vlan": number
}}
Response Elements
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
virtualInterface (p. 31)
Information about a virtual interface.
Type: VirtualInterface (p. 262) object
Errors
For information about the errors that are common to all actions, see Common Errors (p. 270).
DirectConnectClientException
One or more parameters are not valid.
HTTP Status Code: 400 DirectConnectServerException
A server-side error occurred.
HTTP Status Code: 400 DuplicateTagKeysException
A tag key was specified more than once.
HTTP Status Code: 400 TooManyTagsException
You have reached the limit on the number of tags that can be assigned.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
AssociateConnectionWithLag
AssociateConnectionWithLag
Associates an existing connection with a link aggregation group (LAG). The connection is interrupted and re-established as a member of the LAG (connectivity to AWS is interrupted). The connection must be hosted on the same AWS Direct Connect endpoint as the LAG, and its bandwidth must match the bandwidth for the LAG. You can re-associate a connection that's currently associated with a different LAG; however, if removing the connection would cause the original LAG to fall below its setting for minimum number of operational connections, the request fails.
Any virtual interfaces that are directly associated with the connection are automatically re-associated with the LAG. If the connection was originally associated with a different LAG, the virtual interfaces remain associated with the original LAG.
For interconnects, any hosted connections are automatically re-associated with the LAG. If the interconnect was originally associated with a different LAG, the hosted connections remain associated with the original LAG.
Request Syntax
{ "connectionId": "string", "lagId": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters (p. 268).
The request accepts the following data in JSON format.
connectionId (p. 33)
The ID of the connection.
Type: String Required: Yes lagId (p. 33)
The ID of the LAG with which to associate the connection.
Type: String Required: Yes
Response Syntax
{
"awsDevice": "string", "awsDeviceV2": "string", "awsLogicalDeviceId": "string", "bandwidth": "string",
"connectionId": "string",
Response Elements
"connectionName": "string", "connectionState": "string", "encryptionMode": "string", "hasLogicalRedundancy": "string", "jumboFrameCapable": boolean, "lagId": "string",
"loaIssueTime": number, "location": "string", "macSecCapable": boolean, "macSecKeys": [
{
"ckn": "string", "secretARN": "string", "startOn": "string", "state": "string"
} ],
"ownerAccount": "string", "partnerName": "string",
"portEncryptionStatus": "string", "providerName": "string",
"region": "string", "tags": [
{
"key": "string", "value": "string"
} ],
"vlan": number }
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
awsDevice (p. 33)
This parameter has been deprecated.
The Direct Connect endpoint on which the physical connection terminates.
Type: String awsDeviceV2 (p. 33)
The Direct Connect endpoint that terminates the physical connection.
Type: String
awsLogicalDeviceId (p. 33)
The Direct Connect endpoint that terminates the logical connection. This device might be different than the device that terminates the physical connection.
Type: String bandwidth (p. 33)
The bandwidth of the connection.
Type: String
Response Elements
connectionId (p. 33)
The ID of the connection.
Type: String
connectionName (p. 33)
The name of the connection.
Type: String connectionState (p. 33)
The state of the connection. The following are the possible values:
• ordering: The initial state of a hosted connection provisioned on an interconnect. The connection stays in the ordering state until the owner of the hosted connection confirms or declines the connection order.
• requested: The initial state of a standard connection. The connection stays in the requested state until the Letter of Authorization (LOA) is sent to the customer.
• pending: The connection has been approved and is being initialized.
• available: The network link is up and the connection is ready for use.
• down: The network link is down.
• deleting: The connection is being deleted.
• deleted: The connection has been deleted.
• rejected: A hosted connection in the ordering state enters the rejected state if it is deleted by the customer.
• unknown: The state of the connection is not available.
Type: String
Valid Values: ordering | requested | pending | available | down | deleting | deleted | rejected | unknown
encryptionMode (p. 33)
The MAC Security (MACsec) connection encryption mode.
The valid values are no_encrypt, should_encrypt, and must_encrypt.
Type: String
hasLogicalRedundancy (p. 33)
Indicates whether the connection supports a secondary BGP peer in the same address family (IPv4/
IPv6).
Type: String
Valid Values: unknown | yes | no jumboFrameCapable (p. 33)
Indicates whether jumbo frames (9001 MTU) are supported.
Type: Boolean lagId (p. 33)
The ID of the LAG.
Type: String