@aws-sdk/client-direct-connect 3.927.0 → 3.929.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +1693 -1913
- package/dist-cjs/runtimeConfig.shared.js +7 -0
- package/dist-es/DirectConnectClient.js +2 -0
- package/dist-es/commands/AcceptDirectConnectGatewayAssociationProposalCommand.js +3 -9
- package/dist-es/commands/AllocateConnectionOnInterconnectCommand.js +3 -9
- package/dist-es/commands/AllocateHostedConnectionCommand.js +3 -9
- package/dist-es/commands/AllocatePrivateVirtualInterfaceCommand.js +3 -9
- package/dist-es/commands/AllocatePublicVirtualInterfaceCommand.js +3 -9
- package/dist-es/commands/AllocateTransitVirtualInterfaceCommand.js +3 -9
- package/dist-es/commands/AssociateConnectionWithLagCommand.js +3 -9
- package/dist-es/commands/AssociateHostedConnectionCommand.js +3 -9
- package/dist-es/commands/AssociateMacSecKeyCommand.js +3 -9
- package/dist-es/commands/AssociateVirtualInterfaceCommand.js +3 -9
- package/dist-es/commands/ConfirmConnectionCommand.js +3 -9
- package/dist-es/commands/ConfirmCustomerAgreementCommand.js +3 -9
- package/dist-es/commands/ConfirmPrivateVirtualInterfaceCommand.js +3 -9
- package/dist-es/commands/ConfirmPublicVirtualInterfaceCommand.js +3 -9
- package/dist-es/commands/ConfirmTransitVirtualInterfaceCommand.js +3 -9
- package/dist-es/commands/CreateBGPPeerCommand.js +3 -9
- package/dist-es/commands/CreateConnectionCommand.js +3 -9
- package/dist-es/commands/CreateDirectConnectGatewayAssociationCommand.js +3 -9
- package/dist-es/commands/CreateDirectConnectGatewayAssociationProposalCommand.js +3 -9
- package/dist-es/commands/CreateDirectConnectGatewayCommand.js +3 -9
- package/dist-es/commands/CreateInterconnectCommand.js +3 -9
- package/dist-es/commands/CreateLagCommand.js +3 -9
- package/dist-es/commands/CreatePrivateVirtualInterfaceCommand.js +3 -9
- package/dist-es/commands/CreatePublicVirtualInterfaceCommand.js +3 -9
- package/dist-es/commands/CreateTransitVirtualInterfaceCommand.js +3 -9
- package/dist-es/commands/DeleteBGPPeerCommand.js +3 -9
- package/dist-es/commands/DeleteConnectionCommand.js +3 -9
- package/dist-es/commands/DeleteDirectConnectGatewayAssociationCommand.js +3 -9
- package/dist-es/commands/DeleteDirectConnectGatewayAssociationProposalCommand.js +3 -9
- package/dist-es/commands/DeleteDirectConnectGatewayCommand.js +3 -9
- package/dist-es/commands/DeleteInterconnectCommand.js +3 -9
- package/dist-es/commands/DeleteLagCommand.js +3 -9
- package/dist-es/commands/DeleteVirtualInterfaceCommand.js +3 -9
- package/dist-es/commands/DescribeConnectionLoaCommand.js +3 -9
- package/dist-es/commands/DescribeConnectionsCommand.js +3 -9
- package/dist-es/commands/DescribeConnectionsOnInterconnectCommand.js +3 -9
- package/dist-es/commands/DescribeCustomerMetadataCommand.js +3 -9
- package/dist-es/commands/DescribeDirectConnectGatewayAssociationProposalsCommand.js +3 -9
- package/dist-es/commands/DescribeDirectConnectGatewayAssociationsCommand.js +3 -9
- package/dist-es/commands/DescribeDirectConnectGatewayAttachmentsCommand.js +3 -9
- package/dist-es/commands/DescribeDirectConnectGatewaysCommand.js +3 -9
- package/dist-es/commands/DescribeHostedConnectionsCommand.js +3 -9
- package/dist-es/commands/DescribeInterconnectLoaCommand.js +3 -9
- package/dist-es/commands/DescribeInterconnectsCommand.js +3 -9
- package/dist-es/commands/DescribeLagsCommand.js +3 -9
- package/dist-es/commands/DescribeLoaCommand.js +3 -9
- package/dist-es/commands/DescribeLocationsCommand.js +3 -9
- package/dist-es/commands/DescribeRouterConfigurationCommand.js +3 -9
- package/dist-es/commands/DescribeTagsCommand.js +3 -9
- package/dist-es/commands/DescribeVirtualGatewaysCommand.js +3 -9
- package/dist-es/commands/DescribeVirtualInterfacesCommand.js +3 -9
- package/dist-es/commands/DisassociateConnectionFromLagCommand.js +3 -9
- package/dist-es/commands/DisassociateMacSecKeyCommand.js +3 -9
- package/dist-es/commands/ListVirtualInterfaceTestHistoryCommand.js +3 -9
- package/dist-es/commands/StartBgpFailoverTestCommand.js +3 -9
- package/dist-es/commands/StopBgpFailoverTestCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateConnectionCommand.js +3 -9
- package/dist-es/commands/UpdateDirectConnectGatewayAssociationCommand.js +3 -9
- package/dist-es/commands/UpdateDirectConnectGatewayCommand.js +3 -9
- package/dist-es/commands/UpdateLagCommand.js +3 -9
- package/dist-es/commands/UpdateVirtualInterfaceAttributesCommand.js +3 -9
- package/dist-es/runtimeConfig.shared.js +7 -0
- package/dist-es/schemas/schemas_0.js +1559 -0
- package/dist-types/DirectConnectClient.d.ts +10 -1
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +223 -0
- package/dist-types/ts3.4/DirectConnectClient.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +228 -0
- package/package.json +5 -5
- package/dist-es/protocols/Aws_json1_1.js +0 -1464
- package/dist-types/protocols/Aws_json1_1.d.ts +0 -569
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -761
|
@@ -1,1464 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { DirectConnectServiceException as __BaseException } from "../models/DirectConnectServiceException";
|
|
5
|
-
import { DirectConnectClientException, DirectConnectServerException, DuplicateTagKeysException, TooManyTagsException, } from "../models/models_0";
|
|
6
|
-
export const se_AcceptDirectConnectGatewayAssociationProposalCommand = async (input, context) => {
|
|
7
|
-
const headers = sharedHeaders("AcceptDirectConnectGatewayAssociationProposal");
|
|
8
|
-
let body;
|
|
9
|
-
body = JSON.stringify(_json(input));
|
|
10
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
11
|
-
};
|
|
12
|
-
export const se_AllocateConnectionOnInterconnectCommand = async (input, context) => {
|
|
13
|
-
const headers = sharedHeaders("AllocateConnectionOnInterconnect");
|
|
14
|
-
let body;
|
|
15
|
-
body = JSON.stringify(_json(input));
|
|
16
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
|
-
};
|
|
18
|
-
export const se_AllocateHostedConnectionCommand = async (input, context) => {
|
|
19
|
-
const headers = sharedHeaders("AllocateHostedConnection");
|
|
20
|
-
let body;
|
|
21
|
-
body = JSON.stringify(_json(input));
|
|
22
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
23
|
-
};
|
|
24
|
-
export const se_AllocatePrivateVirtualInterfaceCommand = async (input, context) => {
|
|
25
|
-
const headers = sharedHeaders("AllocatePrivateVirtualInterface");
|
|
26
|
-
let body;
|
|
27
|
-
body = JSON.stringify(_json(input));
|
|
28
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
29
|
-
};
|
|
30
|
-
export const se_AllocatePublicVirtualInterfaceCommand = async (input, context) => {
|
|
31
|
-
const headers = sharedHeaders("AllocatePublicVirtualInterface");
|
|
32
|
-
let body;
|
|
33
|
-
body = JSON.stringify(_json(input));
|
|
34
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
35
|
-
};
|
|
36
|
-
export const se_AllocateTransitVirtualInterfaceCommand = async (input, context) => {
|
|
37
|
-
const headers = sharedHeaders("AllocateTransitVirtualInterface");
|
|
38
|
-
let body;
|
|
39
|
-
body = JSON.stringify(_json(input));
|
|
40
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
|
-
};
|
|
42
|
-
export const se_AssociateConnectionWithLagCommand = async (input, context) => {
|
|
43
|
-
const headers = sharedHeaders("AssociateConnectionWithLag");
|
|
44
|
-
let body;
|
|
45
|
-
body = JSON.stringify(_json(input));
|
|
46
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
|
-
};
|
|
48
|
-
export const se_AssociateHostedConnectionCommand = async (input, context) => {
|
|
49
|
-
const headers = sharedHeaders("AssociateHostedConnection");
|
|
50
|
-
let body;
|
|
51
|
-
body = JSON.stringify(_json(input));
|
|
52
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
53
|
-
};
|
|
54
|
-
export const se_AssociateMacSecKeyCommand = async (input, context) => {
|
|
55
|
-
const headers = sharedHeaders("AssociateMacSecKey");
|
|
56
|
-
let body;
|
|
57
|
-
body = JSON.stringify(_json(input));
|
|
58
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
59
|
-
};
|
|
60
|
-
export const se_AssociateVirtualInterfaceCommand = async (input, context) => {
|
|
61
|
-
const headers = sharedHeaders("AssociateVirtualInterface");
|
|
62
|
-
let body;
|
|
63
|
-
body = JSON.stringify(_json(input));
|
|
64
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
65
|
-
};
|
|
66
|
-
export const se_ConfirmConnectionCommand = async (input, context) => {
|
|
67
|
-
const headers = sharedHeaders("ConfirmConnection");
|
|
68
|
-
let body;
|
|
69
|
-
body = JSON.stringify(_json(input));
|
|
70
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
71
|
-
};
|
|
72
|
-
export const se_ConfirmCustomerAgreementCommand = async (input, context) => {
|
|
73
|
-
const headers = sharedHeaders("ConfirmCustomerAgreement");
|
|
74
|
-
let body;
|
|
75
|
-
body = JSON.stringify(_json(input));
|
|
76
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
|
-
};
|
|
78
|
-
export const se_ConfirmPrivateVirtualInterfaceCommand = async (input, context) => {
|
|
79
|
-
const headers = sharedHeaders("ConfirmPrivateVirtualInterface");
|
|
80
|
-
let body;
|
|
81
|
-
body = JSON.stringify(_json(input));
|
|
82
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
83
|
-
};
|
|
84
|
-
export const se_ConfirmPublicVirtualInterfaceCommand = async (input, context) => {
|
|
85
|
-
const headers = sharedHeaders("ConfirmPublicVirtualInterface");
|
|
86
|
-
let body;
|
|
87
|
-
body = JSON.stringify(_json(input));
|
|
88
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
89
|
-
};
|
|
90
|
-
export const se_ConfirmTransitVirtualInterfaceCommand = async (input, context) => {
|
|
91
|
-
const headers = sharedHeaders("ConfirmTransitVirtualInterface");
|
|
92
|
-
let body;
|
|
93
|
-
body = JSON.stringify(_json(input));
|
|
94
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
95
|
-
};
|
|
96
|
-
export const se_CreateBGPPeerCommand = async (input, context) => {
|
|
97
|
-
const headers = sharedHeaders("CreateBGPPeer");
|
|
98
|
-
let body;
|
|
99
|
-
body = JSON.stringify(_json(input));
|
|
100
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
101
|
-
};
|
|
102
|
-
export const se_CreateConnectionCommand = async (input, context) => {
|
|
103
|
-
const headers = sharedHeaders("CreateConnection");
|
|
104
|
-
let body;
|
|
105
|
-
body = JSON.stringify(_json(input));
|
|
106
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
107
|
-
};
|
|
108
|
-
export const se_CreateDirectConnectGatewayCommand = async (input, context) => {
|
|
109
|
-
const headers = sharedHeaders("CreateDirectConnectGateway");
|
|
110
|
-
let body;
|
|
111
|
-
body = JSON.stringify(_json(input));
|
|
112
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
113
|
-
};
|
|
114
|
-
export const se_CreateDirectConnectGatewayAssociationCommand = async (input, context) => {
|
|
115
|
-
const headers = sharedHeaders("CreateDirectConnectGatewayAssociation");
|
|
116
|
-
let body;
|
|
117
|
-
body = JSON.stringify(_json(input));
|
|
118
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
119
|
-
};
|
|
120
|
-
export const se_CreateDirectConnectGatewayAssociationProposalCommand = async (input, context) => {
|
|
121
|
-
const headers = sharedHeaders("CreateDirectConnectGatewayAssociationProposal");
|
|
122
|
-
let body;
|
|
123
|
-
body = JSON.stringify(_json(input));
|
|
124
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
125
|
-
};
|
|
126
|
-
export const se_CreateInterconnectCommand = async (input, context) => {
|
|
127
|
-
const headers = sharedHeaders("CreateInterconnect");
|
|
128
|
-
let body;
|
|
129
|
-
body = JSON.stringify(_json(input));
|
|
130
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
131
|
-
};
|
|
132
|
-
export const se_CreateLagCommand = async (input, context) => {
|
|
133
|
-
const headers = sharedHeaders("CreateLag");
|
|
134
|
-
let body;
|
|
135
|
-
body = JSON.stringify(_json(input));
|
|
136
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
137
|
-
};
|
|
138
|
-
export const se_CreatePrivateVirtualInterfaceCommand = async (input, context) => {
|
|
139
|
-
const headers = sharedHeaders("CreatePrivateVirtualInterface");
|
|
140
|
-
let body;
|
|
141
|
-
body = JSON.stringify(_json(input));
|
|
142
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
143
|
-
};
|
|
144
|
-
export const se_CreatePublicVirtualInterfaceCommand = async (input, context) => {
|
|
145
|
-
const headers = sharedHeaders("CreatePublicVirtualInterface");
|
|
146
|
-
let body;
|
|
147
|
-
body = JSON.stringify(_json(input));
|
|
148
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
149
|
-
};
|
|
150
|
-
export const se_CreateTransitVirtualInterfaceCommand = async (input, context) => {
|
|
151
|
-
const headers = sharedHeaders("CreateTransitVirtualInterface");
|
|
152
|
-
let body;
|
|
153
|
-
body = JSON.stringify(_json(input));
|
|
154
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
155
|
-
};
|
|
156
|
-
export const se_DeleteBGPPeerCommand = async (input, context) => {
|
|
157
|
-
const headers = sharedHeaders("DeleteBGPPeer");
|
|
158
|
-
let body;
|
|
159
|
-
body = JSON.stringify(_json(input));
|
|
160
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
161
|
-
};
|
|
162
|
-
export const se_DeleteConnectionCommand = async (input, context) => {
|
|
163
|
-
const headers = sharedHeaders("DeleteConnection");
|
|
164
|
-
let body;
|
|
165
|
-
body = JSON.stringify(_json(input));
|
|
166
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
167
|
-
};
|
|
168
|
-
export const se_DeleteDirectConnectGatewayCommand = async (input, context) => {
|
|
169
|
-
const headers = sharedHeaders("DeleteDirectConnectGateway");
|
|
170
|
-
let body;
|
|
171
|
-
body = JSON.stringify(_json(input));
|
|
172
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
173
|
-
};
|
|
174
|
-
export const se_DeleteDirectConnectGatewayAssociationCommand = async (input, context) => {
|
|
175
|
-
const headers = sharedHeaders("DeleteDirectConnectGatewayAssociation");
|
|
176
|
-
let body;
|
|
177
|
-
body = JSON.stringify(_json(input));
|
|
178
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
179
|
-
};
|
|
180
|
-
export const se_DeleteDirectConnectGatewayAssociationProposalCommand = async (input, context) => {
|
|
181
|
-
const headers = sharedHeaders("DeleteDirectConnectGatewayAssociationProposal");
|
|
182
|
-
let body;
|
|
183
|
-
body = JSON.stringify(_json(input));
|
|
184
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
185
|
-
};
|
|
186
|
-
export const se_DeleteInterconnectCommand = async (input, context) => {
|
|
187
|
-
const headers = sharedHeaders("DeleteInterconnect");
|
|
188
|
-
let body;
|
|
189
|
-
body = JSON.stringify(_json(input));
|
|
190
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
191
|
-
};
|
|
192
|
-
export const se_DeleteLagCommand = async (input, context) => {
|
|
193
|
-
const headers = sharedHeaders("DeleteLag");
|
|
194
|
-
let body;
|
|
195
|
-
body = JSON.stringify(_json(input));
|
|
196
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
197
|
-
};
|
|
198
|
-
export const se_DeleteVirtualInterfaceCommand = async (input, context) => {
|
|
199
|
-
const headers = sharedHeaders("DeleteVirtualInterface");
|
|
200
|
-
let body;
|
|
201
|
-
body = JSON.stringify(_json(input));
|
|
202
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
203
|
-
};
|
|
204
|
-
export const se_DescribeConnectionLoaCommand = async (input, context) => {
|
|
205
|
-
const headers = sharedHeaders("DescribeConnectionLoa");
|
|
206
|
-
let body;
|
|
207
|
-
body = JSON.stringify(_json(input));
|
|
208
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
209
|
-
};
|
|
210
|
-
export const se_DescribeConnectionsCommand = async (input, context) => {
|
|
211
|
-
const headers = sharedHeaders("DescribeConnections");
|
|
212
|
-
let body;
|
|
213
|
-
body = JSON.stringify(_json(input));
|
|
214
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
215
|
-
};
|
|
216
|
-
export const se_DescribeConnectionsOnInterconnectCommand = async (input, context) => {
|
|
217
|
-
const headers = sharedHeaders("DescribeConnectionsOnInterconnect");
|
|
218
|
-
let body;
|
|
219
|
-
body = JSON.stringify(_json(input));
|
|
220
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
221
|
-
};
|
|
222
|
-
export const se_DescribeCustomerMetadataCommand = async (input, context) => {
|
|
223
|
-
const headers = sharedHeaders("DescribeCustomerMetadata");
|
|
224
|
-
const body = "{}";
|
|
225
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
226
|
-
};
|
|
227
|
-
export const se_DescribeDirectConnectGatewayAssociationProposalsCommand = async (input, context) => {
|
|
228
|
-
const headers = sharedHeaders("DescribeDirectConnectGatewayAssociationProposals");
|
|
229
|
-
let body;
|
|
230
|
-
body = JSON.stringify(_json(input));
|
|
231
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
232
|
-
};
|
|
233
|
-
export const se_DescribeDirectConnectGatewayAssociationsCommand = async (input, context) => {
|
|
234
|
-
const headers = sharedHeaders("DescribeDirectConnectGatewayAssociations");
|
|
235
|
-
let body;
|
|
236
|
-
body = JSON.stringify(_json(input));
|
|
237
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
238
|
-
};
|
|
239
|
-
export const se_DescribeDirectConnectGatewayAttachmentsCommand = async (input, context) => {
|
|
240
|
-
const headers = sharedHeaders("DescribeDirectConnectGatewayAttachments");
|
|
241
|
-
let body;
|
|
242
|
-
body = JSON.stringify(_json(input));
|
|
243
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
244
|
-
};
|
|
245
|
-
export const se_DescribeDirectConnectGatewaysCommand = async (input, context) => {
|
|
246
|
-
const headers = sharedHeaders("DescribeDirectConnectGateways");
|
|
247
|
-
let body;
|
|
248
|
-
body = JSON.stringify(_json(input));
|
|
249
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
250
|
-
};
|
|
251
|
-
export const se_DescribeHostedConnectionsCommand = async (input, context) => {
|
|
252
|
-
const headers = sharedHeaders("DescribeHostedConnections");
|
|
253
|
-
let body;
|
|
254
|
-
body = JSON.stringify(_json(input));
|
|
255
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
256
|
-
};
|
|
257
|
-
export const se_DescribeInterconnectLoaCommand = async (input, context) => {
|
|
258
|
-
const headers = sharedHeaders("DescribeInterconnectLoa");
|
|
259
|
-
let body;
|
|
260
|
-
body = JSON.stringify(_json(input));
|
|
261
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
262
|
-
};
|
|
263
|
-
export const se_DescribeInterconnectsCommand = async (input, context) => {
|
|
264
|
-
const headers = sharedHeaders("DescribeInterconnects");
|
|
265
|
-
let body;
|
|
266
|
-
body = JSON.stringify(_json(input));
|
|
267
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
268
|
-
};
|
|
269
|
-
export const se_DescribeLagsCommand = async (input, context) => {
|
|
270
|
-
const headers = sharedHeaders("DescribeLags");
|
|
271
|
-
let body;
|
|
272
|
-
body = JSON.stringify(_json(input));
|
|
273
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
274
|
-
};
|
|
275
|
-
export const se_DescribeLoaCommand = async (input, context) => {
|
|
276
|
-
const headers = sharedHeaders("DescribeLoa");
|
|
277
|
-
let body;
|
|
278
|
-
body = JSON.stringify(_json(input));
|
|
279
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
280
|
-
};
|
|
281
|
-
export const se_DescribeLocationsCommand = async (input, context) => {
|
|
282
|
-
const headers = sharedHeaders("DescribeLocations");
|
|
283
|
-
const body = "{}";
|
|
284
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
285
|
-
};
|
|
286
|
-
export const se_DescribeRouterConfigurationCommand = async (input, context) => {
|
|
287
|
-
const headers = sharedHeaders("DescribeRouterConfiguration");
|
|
288
|
-
let body;
|
|
289
|
-
body = JSON.stringify(_json(input));
|
|
290
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
291
|
-
};
|
|
292
|
-
export const se_DescribeTagsCommand = async (input, context) => {
|
|
293
|
-
const headers = sharedHeaders("DescribeTags");
|
|
294
|
-
let body;
|
|
295
|
-
body = JSON.stringify(_json(input));
|
|
296
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
297
|
-
};
|
|
298
|
-
export const se_DescribeVirtualGatewaysCommand = async (input, context) => {
|
|
299
|
-
const headers = sharedHeaders("DescribeVirtualGateways");
|
|
300
|
-
const body = "{}";
|
|
301
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
302
|
-
};
|
|
303
|
-
export const se_DescribeVirtualInterfacesCommand = async (input, context) => {
|
|
304
|
-
const headers = sharedHeaders("DescribeVirtualInterfaces");
|
|
305
|
-
let body;
|
|
306
|
-
body = JSON.stringify(_json(input));
|
|
307
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
308
|
-
};
|
|
309
|
-
export const se_DisassociateConnectionFromLagCommand = async (input, context) => {
|
|
310
|
-
const headers = sharedHeaders("DisassociateConnectionFromLag");
|
|
311
|
-
let body;
|
|
312
|
-
body = JSON.stringify(_json(input));
|
|
313
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
314
|
-
};
|
|
315
|
-
export const se_DisassociateMacSecKeyCommand = async (input, context) => {
|
|
316
|
-
const headers = sharedHeaders("DisassociateMacSecKey");
|
|
317
|
-
let body;
|
|
318
|
-
body = JSON.stringify(_json(input));
|
|
319
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
320
|
-
};
|
|
321
|
-
export const se_ListVirtualInterfaceTestHistoryCommand = async (input, context) => {
|
|
322
|
-
const headers = sharedHeaders("ListVirtualInterfaceTestHistory");
|
|
323
|
-
let body;
|
|
324
|
-
body = JSON.stringify(_json(input));
|
|
325
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
326
|
-
};
|
|
327
|
-
export const se_StartBgpFailoverTestCommand = async (input, context) => {
|
|
328
|
-
const headers = sharedHeaders("StartBgpFailoverTest");
|
|
329
|
-
let body;
|
|
330
|
-
body = JSON.stringify(_json(input));
|
|
331
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
332
|
-
};
|
|
333
|
-
export const se_StopBgpFailoverTestCommand = async (input, context) => {
|
|
334
|
-
const headers = sharedHeaders("StopBgpFailoverTest");
|
|
335
|
-
let body;
|
|
336
|
-
body = JSON.stringify(_json(input));
|
|
337
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
338
|
-
};
|
|
339
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
340
|
-
const headers = sharedHeaders("TagResource");
|
|
341
|
-
let body;
|
|
342
|
-
body = JSON.stringify(_json(input));
|
|
343
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
344
|
-
};
|
|
345
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
346
|
-
const headers = sharedHeaders("UntagResource");
|
|
347
|
-
let body;
|
|
348
|
-
body = JSON.stringify(_json(input));
|
|
349
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
350
|
-
};
|
|
351
|
-
export const se_UpdateConnectionCommand = async (input, context) => {
|
|
352
|
-
const headers = sharedHeaders("UpdateConnection");
|
|
353
|
-
let body;
|
|
354
|
-
body = JSON.stringify(_json(input));
|
|
355
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
356
|
-
};
|
|
357
|
-
export const se_UpdateDirectConnectGatewayCommand = async (input, context) => {
|
|
358
|
-
const headers = sharedHeaders("UpdateDirectConnectGateway");
|
|
359
|
-
let body;
|
|
360
|
-
body = JSON.stringify(_json(input));
|
|
361
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
362
|
-
};
|
|
363
|
-
export const se_UpdateDirectConnectGatewayAssociationCommand = async (input, context) => {
|
|
364
|
-
const headers = sharedHeaders("UpdateDirectConnectGatewayAssociation");
|
|
365
|
-
let body;
|
|
366
|
-
body = JSON.stringify(_json(input));
|
|
367
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
368
|
-
};
|
|
369
|
-
export const se_UpdateLagCommand = async (input, context) => {
|
|
370
|
-
const headers = sharedHeaders("UpdateLag");
|
|
371
|
-
let body;
|
|
372
|
-
body = JSON.stringify(_json(input));
|
|
373
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
374
|
-
};
|
|
375
|
-
export const se_UpdateVirtualInterfaceAttributesCommand = async (input, context) => {
|
|
376
|
-
const headers = sharedHeaders("UpdateVirtualInterfaceAttributes");
|
|
377
|
-
let body;
|
|
378
|
-
body = JSON.stringify(_json(input));
|
|
379
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
380
|
-
};
|
|
381
|
-
export const de_AcceptDirectConnectGatewayAssociationProposalCommand = async (output, context) => {
|
|
382
|
-
if (output.statusCode >= 300) {
|
|
383
|
-
return de_CommandError(output, context);
|
|
384
|
-
}
|
|
385
|
-
const data = await parseBody(output.body, context);
|
|
386
|
-
let contents = {};
|
|
387
|
-
contents = _json(data);
|
|
388
|
-
const response = {
|
|
389
|
-
$metadata: deserializeMetadata(output),
|
|
390
|
-
...contents,
|
|
391
|
-
};
|
|
392
|
-
return response;
|
|
393
|
-
};
|
|
394
|
-
export const de_AllocateConnectionOnInterconnectCommand = async (output, context) => {
|
|
395
|
-
if (output.statusCode >= 300) {
|
|
396
|
-
return de_CommandError(output, context);
|
|
397
|
-
}
|
|
398
|
-
const data = await parseBody(output.body, context);
|
|
399
|
-
let contents = {};
|
|
400
|
-
contents = de_Connection(data, context);
|
|
401
|
-
const response = {
|
|
402
|
-
$metadata: deserializeMetadata(output),
|
|
403
|
-
...contents,
|
|
404
|
-
};
|
|
405
|
-
return response;
|
|
406
|
-
};
|
|
407
|
-
export const de_AllocateHostedConnectionCommand = async (output, context) => {
|
|
408
|
-
if (output.statusCode >= 300) {
|
|
409
|
-
return de_CommandError(output, context);
|
|
410
|
-
}
|
|
411
|
-
const data = await parseBody(output.body, context);
|
|
412
|
-
let contents = {};
|
|
413
|
-
contents = de_Connection(data, context);
|
|
414
|
-
const response = {
|
|
415
|
-
$metadata: deserializeMetadata(output),
|
|
416
|
-
...contents,
|
|
417
|
-
};
|
|
418
|
-
return response;
|
|
419
|
-
};
|
|
420
|
-
export const de_AllocatePrivateVirtualInterfaceCommand = async (output, context) => {
|
|
421
|
-
if (output.statusCode >= 300) {
|
|
422
|
-
return de_CommandError(output, context);
|
|
423
|
-
}
|
|
424
|
-
const data = await parseBody(output.body, context);
|
|
425
|
-
let contents = {};
|
|
426
|
-
contents = _json(data);
|
|
427
|
-
const response = {
|
|
428
|
-
$metadata: deserializeMetadata(output),
|
|
429
|
-
...contents,
|
|
430
|
-
};
|
|
431
|
-
return response;
|
|
432
|
-
};
|
|
433
|
-
export const de_AllocatePublicVirtualInterfaceCommand = async (output, context) => {
|
|
434
|
-
if (output.statusCode >= 300) {
|
|
435
|
-
return de_CommandError(output, context);
|
|
436
|
-
}
|
|
437
|
-
const data = await parseBody(output.body, context);
|
|
438
|
-
let contents = {};
|
|
439
|
-
contents = _json(data);
|
|
440
|
-
const response = {
|
|
441
|
-
$metadata: deserializeMetadata(output),
|
|
442
|
-
...contents,
|
|
443
|
-
};
|
|
444
|
-
return response;
|
|
445
|
-
};
|
|
446
|
-
export const de_AllocateTransitVirtualInterfaceCommand = async (output, context) => {
|
|
447
|
-
if (output.statusCode >= 300) {
|
|
448
|
-
return de_CommandError(output, context);
|
|
449
|
-
}
|
|
450
|
-
const data = await parseBody(output.body, context);
|
|
451
|
-
let contents = {};
|
|
452
|
-
contents = _json(data);
|
|
453
|
-
const response = {
|
|
454
|
-
$metadata: deserializeMetadata(output),
|
|
455
|
-
...contents,
|
|
456
|
-
};
|
|
457
|
-
return response;
|
|
458
|
-
};
|
|
459
|
-
export const de_AssociateConnectionWithLagCommand = async (output, context) => {
|
|
460
|
-
if (output.statusCode >= 300) {
|
|
461
|
-
return de_CommandError(output, context);
|
|
462
|
-
}
|
|
463
|
-
const data = await parseBody(output.body, context);
|
|
464
|
-
let contents = {};
|
|
465
|
-
contents = de_Connection(data, context);
|
|
466
|
-
const response = {
|
|
467
|
-
$metadata: deserializeMetadata(output),
|
|
468
|
-
...contents,
|
|
469
|
-
};
|
|
470
|
-
return response;
|
|
471
|
-
};
|
|
472
|
-
export const de_AssociateHostedConnectionCommand = async (output, context) => {
|
|
473
|
-
if (output.statusCode >= 300) {
|
|
474
|
-
return de_CommandError(output, context);
|
|
475
|
-
}
|
|
476
|
-
const data = await parseBody(output.body, context);
|
|
477
|
-
let contents = {};
|
|
478
|
-
contents = de_Connection(data, context);
|
|
479
|
-
const response = {
|
|
480
|
-
$metadata: deserializeMetadata(output),
|
|
481
|
-
...contents,
|
|
482
|
-
};
|
|
483
|
-
return response;
|
|
484
|
-
};
|
|
485
|
-
export const de_AssociateMacSecKeyCommand = async (output, context) => {
|
|
486
|
-
if (output.statusCode >= 300) {
|
|
487
|
-
return de_CommandError(output, context);
|
|
488
|
-
}
|
|
489
|
-
const data = await parseBody(output.body, context);
|
|
490
|
-
let contents = {};
|
|
491
|
-
contents = _json(data);
|
|
492
|
-
const response = {
|
|
493
|
-
$metadata: deserializeMetadata(output),
|
|
494
|
-
...contents,
|
|
495
|
-
};
|
|
496
|
-
return response;
|
|
497
|
-
};
|
|
498
|
-
export const de_AssociateVirtualInterfaceCommand = async (output, context) => {
|
|
499
|
-
if (output.statusCode >= 300) {
|
|
500
|
-
return de_CommandError(output, context);
|
|
501
|
-
}
|
|
502
|
-
const data = await parseBody(output.body, context);
|
|
503
|
-
let contents = {};
|
|
504
|
-
contents = _json(data);
|
|
505
|
-
const response = {
|
|
506
|
-
$metadata: deserializeMetadata(output),
|
|
507
|
-
...contents,
|
|
508
|
-
};
|
|
509
|
-
return response;
|
|
510
|
-
};
|
|
511
|
-
export const de_ConfirmConnectionCommand = async (output, context) => {
|
|
512
|
-
if (output.statusCode >= 300) {
|
|
513
|
-
return de_CommandError(output, context);
|
|
514
|
-
}
|
|
515
|
-
const data = await parseBody(output.body, context);
|
|
516
|
-
let contents = {};
|
|
517
|
-
contents = _json(data);
|
|
518
|
-
const response = {
|
|
519
|
-
$metadata: deserializeMetadata(output),
|
|
520
|
-
...contents,
|
|
521
|
-
};
|
|
522
|
-
return response;
|
|
523
|
-
};
|
|
524
|
-
export const de_ConfirmCustomerAgreementCommand = async (output, context) => {
|
|
525
|
-
if (output.statusCode >= 300) {
|
|
526
|
-
return de_CommandError(output, context);
|
|
527
|
-
}
|
|
528
|
-
const data = await parseBody(output.body, context);
|
|
529
|
-
let contents = {};
|
|
530
|
-
contents = _json(data);
|
|
531
|
-
const response = {
|
|
532
|
-
$metadata: deserializeMetadata(output),
|
|
533
|
-
...contents,
|
|
534
|
-
};
|
|
535
|
-
return response;
|
|
536
|
-
};
|
|
537
|
-
export const de_ConfirmPrivateVirtualInterfaceCommand = async (output, context) => {
|
|
538
|
-
if (output.statusCode >= 300) {
|
|
539
|
-
return de_CommandError(output, context);
|
|
540
|
-
}
|
|
541
|
-
const data = await parseBody(output.body, context);
|
|
542
|
-
let contents = {};
|
|
543
|
-
contents = _json(data);
|
|
544
|
-
const response = {
|
|
545
|
-
$metadata: deserializeMetadata(output),
|
|
546
|
-
...contents,
|
|
547
|
-
};
|
|
548
|
-
return response;
|
|
549
|
-
};
|
|
550
|
-
export const de_ConfirmPublicVirtualInterfaceCommand = async (output, context) => {
|
|
551
|
-
if (output.statusCode >= 300) {
|
|
552
|
-
return de_CommandError(output, context);
|
|
553
|
-
}
|
|
554
|
-
const data = await parseBody(output.body, context);
|
|
555
|
-
let contents = {};
|
|
556
|
-
contents = _json(data);
|
|
557
|
-
const response = {
|
|
558
|
-
$metadata: deserializeMetadata(output),
|
|
559
|
-
...contents,
|
|
560
|
-
};
|
|
561
|
-
return response;
|
|
562
|
-
};
|
|
563
|
-
export const de_ConfirmTransitVirtualInterfaceCommand = async (output, context) => {
|
|
564
|
-
if (output.statusCode >= 300) {
|
|
565
|
-
return de_CommandError(output, context);
|
|
566
|
-
}
|
|
567
|
-
const data = await parseBody(output.body, context);
|
|
568
|
-
let contents = {};
|
|
569
|
-
contents = _json(data);
|
|
570
|
-
const response = {
|
|
571
|
-
$metadata: deserializeMetadata(output),
|
|
572
|
-
...contents,
|
|
573
|
-
};
|
|
574
|
-
return response;
|
|
575
|
-
};
|
|
576
|
-
export const de_CreateBGPPeerCommand = async (output, context) => {
|
|
577
|
-
if (output.statusCode >= 300) {
|
|
578
|
-
return de_CommandError(output, context);
|
|
579
|
-
}
|
|
580
|
-
const data = await parseBody(output.body, context);
|
|
581
|
-
let contents = {};
|
|
582
|
-
contents = _json(data);
|
|
583
|
-
const response = {
|
|
584
|
-
$metadata: deserializeMetadata(output),
|
|
585
|
-
...contents,
|
|
586
|
-
};
|
|
587
|
-
return response;
|
|
588
|
-
};
|
|
589
|
-
export const de_CreateConnectionCommand = async (output, context) => {
|
|
590
|
-
if (output.statusCode >= 300) {
|
|
591
|
-
return de_CommandError(output, context);
|
|
592
|
-
}
|
|
593
|
-
const data = await parseBody(output.body, context);
|
|
594
|
-
let contents = {};
|
|
595
|
-
contents = de_Connection(data, context);
|
|
596
|
-
const response = {
|
|
597
|
-
$metadata: deserializeMetadata(output),
|
|
598
|
-
...contents,
|
|
599
|
-
};
|
|
600
|
-
return response;
|
|
601
|
-
};
|
|
602
|
-
export const de_CreateDirectConnectGatewayCommand = async (output, context) => {
|
|
603
|
-
if (output.statusCode >= 300) {
|
|
604
|
-
return de_CommandError(output, context);
|
|
605
|
-
}
|
|
606
|
-
const data = await parseBody(output.body, context);
|
|
607
|
-
let contents = {};
|
|
608
|
-
contents = _json(data);
|
|
609
|
-
const response = {
|
|
610
|
-
$metadata: deserializeMetadata(output),
|
|
611
|
-
...contents,
|
|
612
|
-
};
|
|
613
|
-
return response;
|
|
614
|
-
};
|
|
615
|
-
export const de_CreateDirectConnectGatewayAssociationCommand = async (output, context) => {
|
|
616
|
-
if (output.statusCode >= 300) {
|
|
617
|
-
return de_CommandError(output, context);
|
|
618
|
-
}
|
|
619
|
-
const data = await parseBody(output.body, context);
|
|
620
|
-
let contents = {};
|
|
621
|
-
contents = _json(data);
|
|
622
|
-
const response = {
|
|
623
|
-
$metadata: deserializeMetadata(output),
|
|
624
|
-
...contents,
|
|
625
|
-
};
|
|
626
|
-
return response;
|
|
627
|
-
};
|
|
628
|
-
export const de_CreateDirectConnectGatewayAssociationProposalCommand = async (output, context) => {
|
|
629
|
-
if (output.statusCode >= 300) {
|
|
630
|
-
return de_CommandError(output, context);
|
|
631
|
-
}
|
|
632
|
-
const data = await parseBody(output.body, context);
|
|
633
|
-
let contents = {};
|
|
634
|
-
contents = _json(data);
|
|
635
|
-
const response = {
|
|
636
|
-
$metadata: deserializeMetadata(output),
|
|
637
|
-
...contents,
|
|
638
|
-
};
|
|
639
|
-
return response;
|
|
640
|
-
};
|
|
641
|
-
export const de_CreateInterconnectCommand = async (output, context) => {
|
|
642
|
-
if (output.statusCode >= 300) {
|
|
643
|
-
return de_CommandError(output, context);
|
|
644
|
-
}
|
|
645
|
-
const data = await parseBody(output.body, context);
|
|
646
|
-
let contents = {};
|
|
647
|
-
contents = de_Interconnect(data, context);
|
|
648
|
-
const response = {
|
|
649
|
-
$metadata: deserializeMetadata(output),
|
|
650
|
-
...contents,
|
|
651
|
-
};
|
|
652
|
-
return response;
|
|
653
|
-
};
|
|
654
|
-
export const de_CreateLagCommand = async (output, context) => {
|
|
655
|
-
if (output.statusCode >= 300) {
|
|
656
|
-
return de_CommandError(output, context);
|
|
657
|
-
}
|
|
658
|
-
const data = await parseBody(output.body, context);
|
|
659
|
-
let contents = {};
|
|
660
|
-
contents = de_Lag(data, context);
|
|
661
|
-
const response = {
|
|
662
|
-
$metadata: deserializeMetadata(output),
|
|
663
|
-
...contents,
|
|
664
|
-
};
|
|
665
|
-
return response;
|
|
666
|
-
};
|
|
667
|
-
export const de_CreatePrivateVirtualInterfaceCommand = async (output, context) => {
|
|
668
|
-
if (output.statusCode >= 300) {
|
|
669
|
-
return de_CommandError(output, context);
|
|
670
|
-
}
|
|
671
|
-
const data = await parseBody(output.body, context);
|
|
672
|
-
let contents = {};
|
|
673
|
-
contents = _json(data);
|
|
674
|
-
const response = {
|
|
675
|
-
$metadata: deserializeMetadata(output),
|
|
676
|
-
...contents,
|
|
677
|
-
};
|
|
678
|
-
return response;
|
|
679
|
-
};
|
|
680
|
-
export const de_CreatePublicVirtualInterfaceCommand = async (output, context) => {
|
|
681
|
-
if (output.statusCode >= 300) {
|
|
682
|
-
return de_CommandError(output, context);
|
|
683
|
-
}
|
|
684
|
-
const data = await parseBody(output.body, context);
|
|
685
|
-
let contents = {};
|
|
686
|
-
contents = _json(data);
|
|
687
|
-
const response = {
|
|
688
|
-
$metadata: deserializeMetadata(output),
|
|
689
|
-
...contents,
|
|
690
|
-
};
|
|
691
|
-
return response;
|
|
692
|
-
};
|
|
693
|
-
export const de_CreateTransitVirtualInterfaceCommand = async (output, context) => {
|
|
694
|
-
if (output.statusCode >= 300) {
|
|
695
|
-
return de_CommandError(output, context);
|
|
696
|
-
}
|
|
697
|
-
const data = await parseBody(output.body, context);
|
|
698
|
-
let contents = {};
|
|
699
|
-
contents = _json(data);
|
|
700
|
-
const response = {
|
|
701
|
-
$metadata: deserializeMetadata(output),
|
|
702
|
-
...contents,
|
|
703
|
-
};
|
|
704
|
-
return response;
|
|
705
|
-
};
|
|
706
|
-
export const de_DeleteBGPPeerCommand = async (output, context) => {
|
|
707
|
-
if (output.statusCode >= 300) {
|
|
708
|
-
return de_CommandError(output, context);
|
|
709
|
-
}
|
|
710
|
-
const data = await parseBody(output.body, context);
|
|
711
|
-
let contents = {};
|
|
712
|
-
contents = _json(data);
|
|
713
|
-
const response = {
|
|
714
|
-
$metadata: deserializeMetadata(output),
|
|
715
|
-
...contents,
|
|
716
|
-
};
|
|
717
|
-
return response;
|
|
718
|
-
};
|
|
719
|
-
export const de_DeleteConnectionCommand = async (output, context) => {
|
|
720
|
-
if (output.statusCode >= 300) {
|
|
721
|
-
return de_CommandError(output, context);
|
|
722
|
-
}
|
|
723
|
-
const data = await parseBody(output.body, context);
|
|
724
|
-
let contents = {};
|
|
725
|
-
contents = de_Connection(data, context);
|
|
726
|
-
const response = {
|
|
727
|
-
$metadata: deserializeMetadata(output),
|
|
728
|
-
...contents,
|
|
729
|
-
};
|
|
730
|
-
return response;
|
|
731
|
-
};
|
|
732
|
-
export const de_DeleteDirectConnectGatewayCommand = async (output, context) => {
|
|
733
|
-
if (output.statusCode >= 300) {
|
|
734
|
-
return de_CommandError(output, context);
|
|
735
|
-
}
|
|
736
|
-
const data = await parseBody(output.body, context);
|
|
737
|
-
let contents = {};
|
|
738
|
-
contents = _json(data);
|
|
739
|
-
const response = {
|
|
740
|
-
$metadata: deserializeMetadata(output),
|
|
741
|
-
...contents,
|
|
742
|
-
};
|
|
743
|
-
return response;
|
|
744
|
-
};
|
|
745
|
-
export const de_DeleteDirectConnectGatewayAssociationCommand = async (output, context) => {
|
|
746
|
-
if (output.statusCode >= 300) {
|
|
747
|
-
return de_CommandError(output, context);
|
|
748
|
-
}
|
|
749
|
-
const data = await parseBody(output.body, context);
|
|
750
|
-
let contents = {};
|
|
751
|
-
contents = _json(data);
|
|
752
|
-
const response = {
|
|
753
|
-
$metadata: deserializeMetadata(output),
|
|
754
|
-
...contents,
|
|
755
|
-
};
|
|
756
|
-
return response;
|
|
757
|
-
};
|
|
758
|
-
export const de_DeleteDirectConnectGatewayAssociationProposalCommand = async (output, context) => {
|
|
759
|
-
if (output.statusCode >= 300) {
|
|
760
|
-
return de_CommandError(output, context);
|
|
761
|
-
}
|
|
762
|
-
const data = await parseBody(output.body, context);
|
|
763
|
-
let contents = {};
|
|
764
|
-
contents = _json(data);
|
|
765
|
-
const response = {
|
|
766
|
-
$metadata: deserializeMetadata(output),
|
|
767
|
-
...contents,
|
|
768
|
-
};
|
|
769
|
-
return response;
|
|
770
|
-
};
|
|
771
|
-
export const de_DeleteInterconnectCommand = async (output, context) => {
|
|
772
|
-
if (output.statusCode >= 300) {
|
|
773
|
-
return de_CommandError(output, context);
|
|
774
|
-
}
|
|
775
|
-
const data = await parseBody(output.body, context);
|
|
776
|
-
let contents = {};
|
|
777
|
-
contents = _json(data);
|
|
778
|
-
const response = {
|
|
779
|
-
$metadata: deserializeMetadata(output),
|
|
780
|
-
...contents,
|
|
781
|
-
};
|
|
782
|
-
return response;
|
|
783
|
-
};
|
|
784
|
-
export const de_DeleteLagCommand = async (output, context) => {
|
|
785
|
-
if (output.statusCode >= 300) {
|
|
786
|
-
return de_CommandError(output, context);
|
|
787
|
-
}
|
|
788
|
-
const data = await parseBody(output.body, context);
|
|
789
|
-
let contents = {};
|
|
790
|
-
contents = de_Lag(data, context);
|
|
791
|
-
const response = {
|
|
792
|
-
$metadata: deserializeMetadata(output),
|
|
793
|
-
...contents,
|
|
794
|
-
};
|
|
795
|
-
return response;
|
|
796
|
-
};
|
|
797
|
-
export const de_DeleteVirtualInterfaceCommand = async (output, context) => {
|
|
798
|
-
if (output.statusCode >= 300) {
|
|
799
|
-
return de_CommandError(output, context);
|
|
800
|
-
}
|
|
801
|
-
const data = await parseBody(output.body, context);
|
|
802
|
-
let contents = {};
|
|
803
|
-
contents = _json(data);
|
|
804
|
-
const response = {
|
|
805
|
-
$metadata: deserializeMetadata(output),
|
|
806
|
-
...contents,
|
|
807
|
-
};
|
|
808
|
-
return response;
|
|
809
|
-
};
|
|
810
|
-
export const de_DescribeConnectionLoaCommand = async (output, context) => {
|
|
811
|
-
if (output.statusCode >= 300) {
|
|
812
|
-
return de_CommandError(output, context);
|
|
813
|
-
}
|
|
814
|
-
const data = await parseBody(output.body, context);
|
|
815
|
-
let contents = {};
|
|
816
|
-
contents = de_DescribeConnectionLoaResponse(data, context);
|
|
817
|
-
const response = {
|
|
818
|
-
$metadata: deserializeMetadata(output),
|
|
819
|
-
...contents,
|
|
820
|
-
};
|
|
821
|
-
return response;
|
|
822
|
-
};
|
|
823
|
-
export const de_DescribeConnectionsCommand = async (output, context) => {
|
|
824
|
-
if (output.statusCode >= 300) {
|
|
825
|
-
return de_CommandError(output, context);
|
|
826
|
-
}
|
|
827
|
-
const data = await parseBody(output.body, context);
|
|
828
|
-
let contents = {};
|
|
829
|
-
contents = de_Connections(data, context);
|
|
830
|
-
const response = {
|
|
831
|
-
$metadata: deserializeMetadata(output),
|
|
832
|
-
...contents,
|
|
833
|
-
};
|
|
834
|
-
return response;
|
|
835
|
-
};
|
|
836
|
-
export const de_DescribeConnectionsOnInterconnectCommand = async (output, context) => {
|
|
837
|
-
if (output.statusCode >= 300) {
|
|
838
|
-
return de_CommandError(output, context);
|
|
839
|
-
}
|
|
840
|
-
const data = await parseBody(output.body, context);
|
|
841
|
-
let contents = {};
|
|
842
|
-
contents = de_Connections(data, context);
|
|
843
|
-
const response = {
|
|
844
|
-
$metadata: deserializeMetadata(output),
|
|
845
|
-
...contents,
|
|
846
|
-
};
|
|
847
|
-
return response;
|
|
848
|
-
};
|
|
849
|
-
export const de_DescribeCustomerMetadataCommand = async (output, context) => {
|
|
850
|
-
if (output.statusCode >= 300) {
|
|
851
|
-
return de_CommandError(output, context);
|
|
852
|
-
}
|
|
853
|
-
const data = await parseBody(output.body, context);
|
|
854
|
-
let contents = {};
|
|
855
|
-
contents = _json(data);
|
|
856
|
-
const response = {
|
|
857
|
-
$metadata: deserializeMetadata(output),
|
|
858
|
-
...contents,
|
|
859
|
-
};
|
|
860
|
-
return response;
|
|
861
|
-
};
|
|
862
|
-
export const de_DescribeDirectConnectGatewayAssociationProposalsCommand = async (output, context) => {
|
|
863
|
-
if (output.statusCode >= 300) {
|
|
864
|
-
return de_CommandError(output, context);
|
|
865
|
-
}
|
|
866
|
-
const data = await parseBody(output.body, context);
|
|
867
|
-
let contents = {};
|
|
868
|
-
contents = _json(data);
|
|
869
|
-
const response = {
|
|
870
|
-
$metadata: deserializeMetadata(output),
|
|
871
|
-
...contents,
|
|
872
|
-
};
|
|
873
|
-
return response;
|
|
874
|
-
};
|
|
875
|
-
export const de_DescribeDirectConnectGatewayAssociationsCommand = async (output, context) => {
|
|
876
|
-
if (output.statusCode >= 300) {
|
|
877
|
-
return de_CommandError(output, context);
|
|
878
|
-
}
|
|
879
|
-
const data = await parseBody(output.body, context);
|
|
880
|
-
let contents = {};
|
|
881
|
-
contents = _json(data);
|
|
882
|
-
const response = {
|
|
883
|
-
$metadata: deserializeMetadata(output),
|
|
884
|
-
...contents,
|
|
885
|
-
};
|
|
886
|
-
return response;
|
|
887
|
-
};
|
|
888
|
-
export const de_DescribeDirectConnectGatewayAttachmentsCommand = async (output, context) => {
|
|
889
|
-
if (output.statusCode >= 300) {
|
|
890
|
-
return de_CommandError(output, context);
|
|
891
|
-
}
|
|
892
|
-
const data = await parseBody(output.body, context);
|
|
893
|
-
let contents = {};
|
|
894
|
-
contents = _json(data);
|
|
895
|
-
const response = {
|
|
896
|
-
$metadata: deserializeMetadata(output),
|
|
897
|
-
...contents,
|
|
898
|
-
};
|
|
899
|
-
return response;
|
|
900
|
-
};
|
|
901
|
-
export const de_DescribeDirectConnectGatewaysCommand = async (output, context) => {
|
|
902
|
-
if (output.statusCode >= 300) {
|
|
903
|
-
return de_CommandError(output, context);
|
|
904
|
-
}
|
|
905
|
-
const data = await parseBody(output.body, context);
|
|
906
|
-
let contents = {};
|
|
907
|
-
contents = _json(data);
|
|
908
|
-
const response = {
|
|
909
|
-
$metadata: deserializeMetadata(output),
|
|
910
|
-
...contents,
|
|
911
|
-
};
|
|
912
|
-
return response;
|
|
913
|
-
};
|
|
914
|
-
export const de_DescribeHostedConnectionsCommand = async (output, context) => {
|
|
915
|
-
if (output.statusCode >= 300) {
|
|
916
|
-
return de_CommandError(output, context);
|
|
917
|
-
}
|
|
918
|
-
const data = await parseBody(output.body, context);
|
|
919
|
-
let contents = {};
|
|
920
|
-
contents = de_Connections(data, context);
|
|
921
|
-
const response = {
|
|
922
|
-
$metadata: deserializeMetadata(output),
|
|
923
|
-
...contents,
|
|
924
|
-
};
|
|
925
|
-
return response;
|
|
926
|
-
};
|
|
927
|
-
export const de_DescribeInterconnectLoaCommand = async (output, context) => {
|
|
928
|
-
if (output.statusCode >= 300) {
|
|
929
|
-
return de_CommandError(output, context);
|
|
930
|
-
}
|
|
931
|
-
const data = await parseBody(output.body, context);
|
|
932
|
-
let contents = {};
|
|
933
|
-
contents = de_DescribeInterconnectLoaResponse(data, context);
|
|
934
|
-
const response = {
|
|
935
|
-
$metadata: deserializeMetadata(output),
|
|
936
|
-
...contents,
|
|
937
|
-
};
|
|
938
|
-
return response;
|
|
939
|
-
};
|
|
940
|
-
export const de_DescribeInterconnectsCommand = async (output, context) => {
|
|
941
|
-
if (output.statusCode >= 300) {
|
|
942
|
-
return de_CommandError(output, context);
|
|
943
|
-
}
|
|
944
|
-
const data = await parseBody(output.body, context);
|
|
945
|
-
let contents = {};
|
|
946
|
-
contents = de_Interconnects(data, context);
|
|
947
|
-
const response = {
|
|
948
|
-
$metadata: deserializeMetadata(output),
|
|
949
|
-
...contents,
|
|
950
|
-
};
|
|
951
|
-
return response;
|
|
952
|
-
};
|
|
953
|
-
export const de_DescribeLagsCommand = async (output, context) => {
|
|
954
|
-
if (output.statusCode >= 300) {
|
|
955
|
-
return de_CommandError(output, context);
|
|
956
|
-
}
|
|
957
|
-
const data = await parseBody(output.body, context);
|
|
958
|
-
let contents = {};
|
|
959
|
-
contents = de_Lags(data, context);
|
|
960
|
-
const response = {
|
|
961
|
-
$metadata: deserializeMetadata(output),
|
|
962
|
-
...contents,
|
|
963
|
-
};
|
|
964
|
-
return response;
|
|
965
|
-
};
|
|
966
|
-
export const de_DescribeLoaCommand = async (output, context) => {
|
|
967
|
-
if (output.statusCode >= 300) {
|
|
968
|
-
return de_CommandError(output, context);
|
|
969
|
-
}
|
|
970
|
-
const data = await parseBody(output.body, context);
|
|
971
|
-
let contents = {};
|
|
972
|
-
contents = de_Loa(data, context);
|
|
973
|
-
const response = {
|
|
974
|
-
$metadata: deserializeMetadata(output),
|
|
975
|
-
...contents,
|
|
976
|
-
};
|
|
977
|
-
return response;
|
|
978
|
-
};
|
|
979
|
-
export const de_DescribeLocationsCommand = async (output, context) => {
|
|
980
|
-
if (output.statusCode >= 300) {
|
|
981
|
-
return de_CommandError(output, context);
|
|
982
|
-
}
|
|
983
|
-
const data = await parseBody(output.body, context);
|
|
984
|
-
let contents = {};
|
|
985
|
-
contents = _json(data);
|
|
986
|
-
const response = {
|
|
987
|
-
$metadata: deserializeMetadata(output),
|
|
988
|
-
...contents,
|
|
989
|
-
};
|
|
990
|
-
return response;
|
|
991
|
-
};
|
|
992
|
-
export const de_DescribeRouterConfigurationCommand = async (output, context) => {
|
|
993
|
-
if (output.statusCode >= 300) {
|
|
994
|
-
return de_CommandError(output, context);
|
|
995
|
-
}
|
|
996
|
-
const data = await parseBody(output.body, context);
|
|
997
|
-
let contents = {};
|
|
998
|
-
contents = _json(data);
|
|
999
|
-
const response = {
|
|
1000
|
-
$metadata: deserializeMetadata(output),
|
|
1001
|
-
...contents,
|
|
1002
|
-
};
|
|
1003
|
-
return response;
|
|
1004
|
-
};
|
|
1005
|
-
export const de_DescribeTagsCommand = async (output, context) => {
|
|
1006
|
-
if (output.statusCode >= 300) {
|
|
1007
|
-
return de_CommandError(output, context);
|
|
1008
|
-
}
|
|
1009
|
-
const data = await parseBody(output.body, context);
|
|
1010
|
-
let contents = {};
|
|
1011
|
-
contents = _json(data);
|
|
1012
|
-
const response = {
|
|
1013
|
-
$metadata: deserializeMetadata(output),
|
|
1014
|
-
...contents,
|
|
1015
|
-
};
|
|
1016
|
-
return response;
|
|
1017
|
-
};
|
|
1018
|
-
export const de_DescribeVirtualGatewaysCommand = async (output, context) => {
|
|
1019
|
-
if (output.statusCode >= 300) {
|
|
1020
|
-
return de_CommandError(output, context);
|
|
1021
|
-
}
|
|
1022
|
-
const data = await parseBody(output.body, context);
|
|
1023
|
-
let contents = {};
|
|
1024
|
-
contents = _json(data);
|
|
1025
|
-
const response = {
|
|
1026
|
-
$metadata: deserializeMetadata(output),
|
|
1027
|
-
...contents,
|
|
1028
|
-
};
|
|
1029
|
-
return response;
|
|
1030
|
-
};
|
|
1031
|
-
export const de_DescribeVirtualInterfacesCommand = async (output, context) => {
|
|
1032
|
-
if (output.statusCode >= 300) {
|
|
1033
|
-
return de_CommandError(output, context);
|
|
1034
|
-
}
|
|
1035
|
-
const data = await parseBody(output.body, context);
|
|
1036
|
-
let contents = {};
|
|
1037
|
-
contents = _json(data);
|
|
1038
|
-
const response = {
|
|
1039
|
-
$metadata: deserializeMetadata(output),
|
|
1040
|
-
...contents,
|
|
1041
|
-
};
|
|
1042
|
-
return response;
|
|
1043
|
-
};
|
|
1044
|
-
export const de_DisassociateConnectionFromLagCommand = async (output, context) => {
|
|
1045
|
-
if (output.statusCode >= 300) {
|
|
1046
|
-
return de_CommandError(output, context);
|
|
1047
|
-
}
|
|
1048
|
-
const data = await parseBody(output.body, context);
|
|
1049
|
-
let contents = {};
|
|
1050
|
-
contents = de_Connection(data, context);
|
|
1051
|
-
const response = {
|
|
1052
|
-
$metadata: deserializeMetadata(output),
|
|
1053
|
-
...contents,
|
|
1054
|
-
};
|
|
1055
|
-
return response;
|
|
1056
|
-
};
|
|
1057
|
-
export const de_DisassociateMacSecKeyCommand = async (output, context) => {
|
|
1058
|
-
if (output.statusCode >= 300) {
|
|
1059
|
-
return de_CommandError(output, context);
|
|
1060
|
-
}
|
|
1061
|
-
const data = await parseBody(output.body, context);
|
|
1062
|
-
let contents = {};
|
|
1063
|
-
contents = _json(data);
|
|
1064
|
-
const response = {
|
|
1065
|
-
$metadata: deserializeMetadata(output),
|
|
1066
|
-
...contents,
|
|
1067
|
-
};
|
|
1068
|
-
return response;
|
|
1069
|
-
};
|
|
1070
|
-
export const de_ListVirtualInterfaceTestHistoryCommand = async (output, context) => {
|
|
1071
|
-
if (output.statusCode >= 300) {
|
|
1072
|
-
return de_CommandError(output, context);
|
|
1073
|
-
}
|
|
1074
|
-
const data = await parseBody(output.body, context);
|
|
1075
|
-
let contents = {};
|
|
1076
|
-
contents = de_ListVirtualInterfaceTestHistoryResponse(data, context);
|
|
1077
|
-
const response = {
|
|
1078
|
-
$metadata: deserializeMetadata(output),
|
|
1079
|
-
...contents,
|
|
1080
|
-
};
|
|
1081
|
-
return response;
|
|
1082
|
-
};
|
|
1083
|
-
export const de_StartBgpFailoverTestCommand = async (output, context) => {
|
|
1084
|
-
if (output.statusCode >= 300) {
|
|
1085
|
-
return de_CommandError(output, context);
|
|
1086
|
-
}
|
|
1087
|
-
const data = await parseBody(output.body, context);
|
|
1088
|
-
let contents = {};
|
|
1089
|
-
contents = de_StartBgpFailoverTestResponse(data, context);
|
|
1090
|
-
const response = {
|
|
1091
|
-
$metadata: deserializeMetadata(output),
|
|
1092
|
-
...contents,
|
|
1093
|
-
};
|
|
1094
|
-
return response;
|
|
1095
|
-
};
|
|
1096
|
-
export const de_StopBgpFailoverTestCommand = async (output, context) => {
|
|
1097
|
-
if (output.statusCode >= 300) {
|
|
1098
|
-
return de_CommandError(output, context);
|
|
1099
|
-
}
|
|
1100
|
-
const data = await parseBody(output.body, context);
|
|
1101
|
-
let contents = {};
|
|
1102
|
-
contents = de_StopBgpFailoverTestResponse(data, context);
|
|
1103
|
-
const response = {
|
|
1104
|
-
$metadata: deserializeMetadata(output),
|
|
1105
|
-
...contents,
|
|
1106
|
-
};
|
|
1107
|
-
return response;
|
|
1108
|
-
};
|
|
1109
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
1110
|
-
if (output.statusCode >= 300) {
|
|
1111
|
-
return de_CommandError(output, context);
|
|
1112
|
-
}
|
|
1113
|
-
const data = await parseBody(output.body, context);
|
|
1114
|
-
let contents = {};
|
|
1115
|
-
contents = _json(data);
|
|
1116
|
-
const response = {
|
|
1117
|
-
$metadata: deserializeMetadata(output),
|
|
1118
|
-
...contents,
|
|
1119
|
-
};
|
|
1120
|
-
return response;
|
|
1121
|
-
};
|
|
1122
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
1123
|
-
if (output.statusCode >= 300) {
|
|
1124
|
-
return de_CommandError(output, context);
|
|
1125
|
-
}
|
|
1126
|
-
const data = await parseBody(output.body, context);
|
|
1127
|
-
let contents = {};
|
|
1128
|
-
contents = _json(data);
|
|
1129
|
-
const response = {
|
|
1130
|
-
$metadata: deserializeMetadata(output),
|
|
1131
|
-
...contents,
|
|
1132
|
-
};
|
|
1133
|
-
return response;
|
|
1134
|
-
};
|
|
1135
|
-
export const de_UpdateConnectionCommand = async (output, context) => {
|
|
1136
|
-
if (output.statusCode >= 300) {
|
|
1137
|
-
return de_CommandError(output, context);
|
|
1138
|
-
}
|
|
1139
|
-
const data = await parseBody(output.body, context);
|
|
1140
|
-
let contents = {};
|
|
1141
|
-
contents = de_Connection(data, context);
|
|
1142
|
-
const response = {
|
|
1143
|
-
$metadata: deserializeMetadata(output),
|
|
1144
|
-
...contents,
|
|
1145
|
-
};
|
|
1146
|
-
return response;
|
|
1147
|
-
};
|
|
1148
|
-
export const de_UpdateDirectConnectGatewayCommand = async (output, context) => {
|
|
1149
|
-
if (output.statusCode >= 300) {
|
|
1150
|
-
return de_CommandError(output, context);
|
|
1151
|
-
}
|
|
1152
|
-
const data = await parseBody(output.body, context);
|
|
1153
|
-
let contents = {};
|
|
1154
|
-
contents = _json(data);
|
|
1155
|
-
const response = {
|
|
1156
|
-
$metadata: deserializeMetadata(output),
|
|
1157
|
-
...contents,
|
|
1158
|
-
};
|
|
1159
|
-
return response;
|
|
1160
|
-
};
|
|
1161
|
-
export const de_UpdateDirectConnectGatewayAssociationCommand = async (output, context) => {
|
|
1162
|
-
if (output.statusCode >= 300) {
|
|
1163
|
-
return de_CommandError(output, context);
|
|
1164
|
-
}
|
|
1165
|
-
const data = await parseBody(output.body, context);
|
|
1166
|
-
let contents = {};
|
|
1167
|
-
contents = _json(data);
|
|
1168
|
-
const response = {
|
|
1169
|
-
$metadata: deserializeMetadata(output),
|
|
1170
|
-
...contents,
|
|
1171
|
-
};
|
|
1172
|
-
return response;
|
|
1173
|
-
};
|
|
1174
|
-
export const de_UpdateLagCommand = async (output, context) => {
|
|
1175
|
-
if (output.statusCode >= 300) {
|
|
1176
|
-
return de_CommandError(output, context);
|
|
1177
|
-
}
|
|
1178
|
-
const data = await parseBody(output.body, context);
|
|
1179
|
-
let contents = {};
|
|
1180
|
-
contents = de_Lag(data, context);
|
|
1181
|
-
const response = {
|
|
1182
|
-
$metadata: deserializeMetadata(output),
|
|
1183
|
-
...contents,
|
|
1184
|
-
};
|
|
1185
|
-
return response;
|
|
1186
|
-
};
|
|
1187
|
-
export const de_UpdateVirtualInterfaceAttributesCommand = async (output, context) => {
|
|
1188
|
-
if (output.statusCode >= 300) {
|
|
1189
|
-
return de_CommandError(output, context);
|
|
1190
|
-
}
|
|
1191
|
-
const data = await parseBody(output.body, context);
|
|
1192
|
-
let contents = {};
|
|
1193
|
-
contents = _json(data);
|
|
1194
|
-
const response = {
|
|
1195
|
-
$metadata: deserializeMetadata(output),
|
|
1196
|
-
...contents,
|
|
1197
|
-
};
|
|
1198
|
-
return response;
|
|
1199
|
-
};
|
|
1200
|
-
const de_CommandError = async (output, context) => {
|
|
1201
|
-
const parsedOutput = {
|
|
1202
|
-
...output,
|
|
1203
|
-
body: await parseErrorBody(output.body, context),
|
|
1204
|
-
};
|
|
1205
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1206
|
-
switch (errorCode) {
|
|
1207
|
-
case "DirectConnectClientException":
|
|
1208
|
-
case "com.amazonaws.directconnect#DirectConnectClientException":
|
|
1209
|
-
throw await de_DirectConnectClientExceptionRes(parsedOutput, context);
|
|
1210
|
-
case "DirectConnectServerException":
|
|
1211
|
-
case "com.amazonaws.directconnect#DirectConnectServerException":
|
|
1212
|
-
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
1213
|
-
case "DuplicateTagKeysException":
|
|
1214
|
-
case "com.amazonaws.directconnect#DuplicateTagKeysException":
|
|
1215
|
-
throw await de_DuplicateTagKeysExceptionRes(parsedOutput, context);
|
|
1216
|
-
case "TooManyTagsException":
|
|
1217
|
-
case "com.amazonaws.directconnect#TooManyTagsException":
|
|
1218
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1219
|
-
default:
|
|
1220
|
-
const parsedBody = parsedOutput.body;
|
|
1221
|
-
return throwDefaultError({
|
|
1222
|
-
output,
|
|
1223
|
-
parsedBody,
|
|
1224
|
-
errorCode,
|
|
1225
|
-
});
|
|
1226
|
-
}
|
|
1227
|
-
};
|
|
1228
|
-
const de_DirectConnectClientExceptionRes = async (parsedOutput, context) => {
|
|
1229
|
-
const body = parsedOutput.body;
|
|
1230
|
-
const deserialized = _json(body);
|
|
1231
|
-
const exception = new DirectConnectClientException({
|
|
1232
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1233
|
-
...deserialized,
|
|
1234
|
-
});
|
|
1235
|
-
return __decorateServiceException(exception, body);
|
|
1236
|
-
};
|
|
1237
|
-
const de_DirectConnectServerExceptionRes = async (parsedOutput, context) => {
|
|
1238
|
-
const body = parsedOutput.body;
|
|
1239
|
-
const deserialized = _json(body);
|
|
1240
|
-
const exception = new DirectConnectServerException({
|
|
1241
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1242
|
-
...deserialized,
|
|
1243
|
-
});
|
|
1244
|
-
return __decorateServiceException(exception, body);
|
|
1245
|
-
};
|
|
1246
|
-
const de_DuplicateTagKeysExceptionRes = async (parsedOutput, context) => {
|
|
1247
|
-
const body = parsedOutput.body;
|
|
1248
|
-
const deserialized = _json(body);
|
|
1249
|
-
const exception = new DuplicateTagKeysException({
|
|
1250
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1251
|
-
...deserialized,
|
|
1252
|
-
});
|
|
1253
|
-
return __decorateServiceException(exception, body);
|
|
1254
|
-
};
|
|
1255
|
-
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
1256
|
-
const body = parsedOutput.body;
|
|
1257
|
-
const deserialized = _json(body);
|
|
1258
|
-
const exception = new TooManyTagsException({
|
|
1259
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1260
|
-
...deserialized,
|
|
1261
|
-
});
|
|
1262
|
-
return __decorateServiceException(exception, body);
|
|
1263
|
-
};
|
|
1264
|
-
const de_Connection = (output, context) => {
|
|
1265
|
-
return take(output, {
|
|
1266
|
-
awsDevice: __expectString,
|
|
1267
|
-
awsDeviceV2: __expectString,
|
|
1268
|
-
awsLogicalDeviceId: __expectString,
|
|
1269
|
-
bandwidth: __expectString,
|
|
1270
|
-
connectionId: __expectString,
|
|
1271
|
-
connectionName: __expectString,
|
|
1272
|
-
connectionState: __expectString,
|
|
1273
|
-
encryptionMode: __expectString,
|
|
1274
|
-
hasLogicalRedundancy: __expectString,
|
|
1275
|
-
jumboFrameCapable: __expectBoolean,
|
|
1276
|
-
lagId: __expectString,
|
|
1277
|
-
loaIssueTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1278
|
-
location: __expectString,
|
|
1279
|
-
macSecCapable: __expectBoolean,
|
|
1280
|
-
macSecKeys: _json,
|
|
1281
|
-
ownerAccount: __expectString,
|
|
1282
|
-
partnerInterconnectMacSecCapable: __expectBoolean,
|
|
1283
|
-
partnerName: __expectString,
|
|
1284
|
-
portEncryptionStatus: __expectString,
|
|
1285
|
-
providerName: __expectString,
|
|
1286
|
-
region: __expectString,
|
|
1287
|
-
tags: _json,
|
|
1288
|
-
vlan: __expectInt32,
|
|
1289
|
-
});
|
|
1290
|
-
};
|
|
1291
|
-
const de_ConnectionList = (output, context) => {
|
|
1292
|
-
const retVal = (output || [])
|
|
1293
|
-
.filter((e) => e != null)
|
|
1294
|
-
.map((entry) => {
|
|
1295
|
-
return de_Connection(entry, context);
|
|
1296
|
-
});
|
|
1297
|
-
return retVal;
|
|
1298
|
-
};
|
|
1299
|
-
const de_Connections = (output, context) => {
|
|
1300
|
-
return take(output, {
|
|
1301
|
-
connections: (_) => de_ConnectionList(_, context),
|
|
1302
|
-
nextToken: __expectString,
|
|
1303
|
-
});
|
|
1304
|
-
};
|
|
1305
|
-
const de_DescribeConnectionLoaResponse = (output, context) => {
|
|
1306
|
-
return take(output, {
|
|
1307
|
-
loa: (_) => de_Loa(_, context),
|
|
1308
|
-
});
|
|
1309
|
-
};
|
|
1310
|
-
const de_DescribeInterconnectLoaResponse = (output, context) => {
|
|
1311
|
-
return take(output, {
|
|
1312
|
-
loa: (_) => de_Loa(_, context),
|
|
1313
|
-
});
|
|
1314
|
-
};
|
|
1315
|
-
const de_Interconnect = (output, context) => {
|
|
1316
|
-
return take(output, {
|
|
1317
|
-
awsDevice: __expectString,
|
|
1318
|
-
awsDeviceV2: __expectString,
|
|
1319
|
-
awsLogicalDeviceId: __expectString,
|
|
1320
|
-
bandwidth: __expectString,
|
|
1321
|
-
encryptionMode: __expectString,
|
|
1322
|
-
hasLogicalRedundancy: __expectString,
|
|
1323
|
-
interconnectId: __expectString,
|
|
1324
|
-
interconnectName: __expectString,
|
|
1325
|
-
interconnectState: __expectString,
|
|
1326
|
-
jumboFrameCapable: __expectBoolean,
|
|
1327
|
-
lagId: __expectString,
|
|
1328
|
-
loaIssueTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1329
|
-
location: __expectString,
|
|
1330
|
-
macSecCapable: __expectBoolean,
|
|
1331
|
-
macSecKeys: _json,
|
|
1332
|
-
portEncryptionStatus: __expectString,
|
|
1333
|
-
providerName: __expectString,
|
|
1334
|
-
region: __expectString,
|
|
1335
|
-
tags: _json,
|
|
1336
|
-
});
|
|
1337
|
-
};
|
|
1338
|
-
const de_InterconnectList = (output, context) => {
|
|
1339
|
-
const retVal = (output || [])
|
|
1340
|
-
.filter((e) => e != null)
|
|
1341
|
-
.map((entry) => {
|
|
1342
|
-
return de_Interconnect(entry, context);
|
|
1343
|
-
});
|
|
1344
|
-
return retVal;
|
|
1345
|
-
};
|
|
1346
|
-
const de_Interconnects = (output, context) => {
|
|
1347
|
-
return take(output, {
|
|
1348
|
-
interconnects: (_) => de_InterconnectList(_, context),
|
|
1349
|
-
nextToken: __expectString,
|
|
1350
|
-
});
|
|
1351
|
-
};
|
|
1352
|
-
const de_Lag = (output, context) => {
|
|
1353
|
-
return take(output, {
|
|
1354
|
-
allowsHostedConnections: __expectBoolean,
|
|
1355
|
-
awsDevice: __expectString,
|
|
1356
|
-
awsDeviceV2: __expectString,
|
|
1357
|
-
awsLogicalDeviceId: __expectString,
|
|
1358
|
-
connections: (_) => de_ConnectionList(_, context),
|
|
1359
|
-
connectionsBandwidth: __expectString,
|
|
1360
|
-
encryptionMode: __expectString,
|
|
1361
|
-
hasLogicalRedundancy: __expectString,
|
|
1362
|
-
jumboFrameCapable: __expectBoolean,
|
|
1363
|
-
lagId: __expectString,
|
|
1364
|
-
lagName: __expectString,
|
|
1365
|
-
lagState: __expectString,
|
|
1366
|
-
location: __expectString,
|
|
1367
|
-
macSecCapable: __expectBoolean,
|
|
1368
|
-
macSecKeys: _json,
|
|
1369
|
-
minimumLinks: __expectInt32,
|
|
1370
|
-
numberOfConnections: __expectInt32,
|
|
1371
|
-
ownerAccount: __expectString,
|
|
1372
|
-
providerName: __expectString,
|
|
1373
|
-
region: __expectString,
|
|
1374
|
-
tags: _json,
|
|
1375
|
-
});
|
|
1376
|
-
};
|
|
1377
|
-
const de_LagList = (output, context) => {
|
|
1378
|
-
const retVal = (output || [])
|
|
1379
|
-
.filter((e) => e != null)
|
|
1380
|
-
.map((entry) => {
|
|
1381
|
-
return de_Lag(entry, context);
|
|
1382
|
-
});
|
|
1383
|
-
return retVal;
|
|
1384
|
-
};
|
|
1385
|
-
const de_Lags = (output, context) => {
|
|
1386
|
-
return take(output, {
|
|
1387
|
-
lags: (_) => de_LagList(_, context),
|
|
1388
|
-
nextToken: __expectString,
|
|
1389
|
-
});
|
|
1390
|
-
};
|
|
1391
|
-
const de_ListVirtualInterfaceTestHistoryResponse = (output, context) => {
|
|
1392
|
-
return take(output, {
|
|
1393
|
-
nextToken: __expectString,
|
|
1394
|
-
virtualInterfaceTestHistory: (_) => de_VirtualInterfaceTestHistoryList(_, context),
|
|
1395
|
-
});
|
|
1396
|
-
};
|
|
1397
|
-
const de_Loa = (output, context) => {
|
|
1398
|
-
return take(output, {
|
|
1399
|
-
loaContent: context.base64Decoder,
|
|
1400
|
-
loaContentType: __expectString,
|
|
1401
|
-
});
|
|
1402
|
-
};
|
|
1403
|
-
const de_StartBgpFailoverTestResponse = (output, context) => {
|
|
1404
|
-
return take(output, {
|
|
1405
|
-
virtualInterfaceTest: (_) => de_VirtualInterfaceTestHistory(_, context),
|
|
1406
|
-
});
|
|
1407
|
-
};
|
|
1408
|
-
const de_StopBgpFailoverTestResponse = (output, context) => {
|
|
1409
|
-
return take(output, {
|
|
1410
|
-
virtualInterfaceTest: (_) => de_VirtualInterfaceTestHistory(_, context),
|
|
1411
|
-
});
|
|
1412
|
-
};
|
|
1413
|
-
const de_VirtualInterfaceTestHistory = (output, context) => {
|
|
1414
|
-
return take(output, {
|
|
1415
|
-
bgpPeers: _json,
|
|
1416
|
-
endTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1417
|
-
ownerAccount: __expectString,
|
|
1418
|
-
startTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1419
|
-
status: __expectString,
|
|
1420
|
-
testDurationInMinutes: __expectInt32,
|
|
1421
|
-
testId: __expectString,
|
|
1422
|
-
virtualInterfaceId: __expectString,
|
|
1423
|
-
});
|
|
1424
|
-
};
|
|
1425
|
-
const de_VirtualInterfaceTestHistoryList = (output, context) => {
|
|
1426
|
-
const retVal = (output || [])
|
|
1427
|
-
.filter((e) => e != null)
|
|
1428
|
-
.map((entry) => {
|
|
1429
|
-
return de_VirtualInterfaceTestHistory(entry, context);
|
|
1430
|
-
});
|
|
1431
|
-
return retVal;
|
|
1432
|
-
};
|
|
1433
|
-
const deserializeMetadata = (output) => ({
|
|
1434
|
-
httpStatusCode: output.statusCode,
|
|
1435
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1436
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1437
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1438
|
-
});
|
|
1439
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1440
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
1441
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1442
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1443
|
-
const contents = {
|
|
1444
|
-
protocol,
|
|
1445
|
-
hostname,
|
|
1446
|
-
port,
|
|
1447
|
-
method: "POST",
|
|
1448
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
1449
|
-
headers,
|
|
1450
|
-
};
|
|
1451
|
-
if (resolvedHostname !== undefined) {
|
|
1452
|
-
contents.hostname = resolvedHostname;
|
|
1453
|
-
}
|
|
1454
|
-
if (body !== undefined) {
|
|
1455
|
-
contents.body = body;
|
|
1456
|
-
}
|
|
1457
|
-
return new __HttpRequest(contents);
|
|
1458
|
-
};
|
|
1459
|
-
function sharedHeaders(operation) {
|
|
1460
|
-
return {
|
|
1461
|
-
"content-type": "application/x-amz-json-1.1",
|
|
1462
|
-
"x-amz-target": `OvertureService.${operation}`,
|
|
1463
|
-
};
|
|
1464
|
-
}
|