@aws-sdk/client-direct-connect 3.312.0 → 3.315.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/protocols/Aws_json1_1.js +331 -1560
- package/dist-es/protocols/Aws_json1_1.js +332 -1561
- package/package.json +6 -6
|
@@ -10,252 +10,252 @@ const models_0_1 = require("../models/models_0");
|
|
|
10
10
|
const se_AcceptDirectConnectGatewayAssociationProposalCommand = async (input, context) => {
|
|
11
11
|
const headers = sharedHeaders("AcceptDirectConnectGatewayAssociationProposal");
|
|
12
12
|
let body;
|
|
13
|
-
body = JSON.stringify(
|
|
13
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
14
14
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
15
15
|
};
|
|
16
16
|
exports.se_AcceptDirectConnectGatewayAssociationProposalCommand = se_AcceptDirectConnectGatewayAssociationProposalCommand;
|
|
17
17
|
const se_AllocateConnectionOnInterconnectCommand = async (input, context) => {
|
|
18
18
|
const headers = sharedHeaders("AllocateConnectionOnInterconnect");
|
|
19
19
|
let body;
|
|
20
|
-
body = JSON.stringify(
|
|
20
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
21
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
22
|
};
|
|
23
23
|
exports.se_AllocateConnectionOnInterconnectCommand = se_AllocateConnectionOnInterconnectCommand;
|
|
24
24
|
const se_AllocateHostedConnectionCommand = async (input, context) => {
|
|
25
25
|
const headers = sharedHeaders("AllocateHostedConnection");
|
|
26
26
|
let body;
|
|
27
|
-
body = JSON.stringify(
|
|
27
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
28
28
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
29
29
|
};
|
|
30
30
|
exports.se_AllocateHostedConnectionCommand = se_AllocateHostedConnectionCommand;
|
|
31
31
|
const se_AllocatePrivateVirtualInterfaceCommand = async (input, context) => {
|
|
32
32
|
const headers = sharedHeaders("AllocatePrivateVirtualInterface");
|
|
33
33
|
let body;
|
|
34
|
-
body = JSON.stringify(
|
|
34
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
35
35
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
36
36
|
};
|
|
37
37
|
exports.se_AllocatePrivateVirtualInterfaceCommand = se_AllocatePrivateVirtualInterfaceCommand;
|
|
38
38
|
const se_AllocatePublicVirtualInterfaceCommand = async (input, context) => {
|
|
39
39
|
const headers = sharedHeaders("AllocatePublicVirtualInterface");
|
|
40
40
|
let body;
|
|
41
|
-
body = JSON.stringify(
|
|
41
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
42
42
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
43
43
|
};
|
|
44
44
|
exports.se_AllocatePublicVirtualInterfaceCommand = se_AllocatePublicVirtualInterfaceCommand;
|
|
45
45
|
const se_AllocateTransitVirtualInterfaceCommand = async (input, context) => {
|
|
46
46
|
const headers = sharedHeaders("AllocateTransitVirtualInterface");
|
|
47
47
|
let body;
|
|
48
|
-
body = JSON.stringify(
|
|
48
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
49
49
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
50
50
|
};
|
|
51
51
|
exports.se_AllocateTransitVirtualInterfaceCommand = se_AllocateTransitVirtualInterfaceCommand;
|
|
52
52
|
const se_AssociateConnectionWithLagCommand = async (input, context) => {
|
|
53
53
|
const headers = sharedHeaders("AssociateConnectionWithLag");
|
|
54
54
|
let body;
|
|
55
|
-
body = JSON.stringify(
|
|
55
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
56
56
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
57
57
|
};
|
|
58
58
|
exports.se_AssociateConnectionWithLagCommand = se_AssociateConnectionWithLagCommand;
|
|
59
59
|
const se_AssociateHostedConnectionCommand = async (input, context) => {
|
|
60
60
|
const headers = sharedHeaders("AssociateHostedConnection");
|
|
61
61
|
let body;
|
|
62
|
-
body = JSON.stringify(
|
|
62
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
63
63
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
64
64
|
};
|
|
65
65
|
exports.se_AssociateHostedConnectionCommand = se_AssociateHostedConnectionCommand;
|
|
66
66
|
const se_AssociateMacSecKeyCommand = async (input, context) => {
|
|
67
67
|
const headers = sharedHeaders("AssociateMacSecKey");
|
|
68
68
|
let body;
|
|
69
|
-
body = JSON.stringify(
|
|
69
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
70
70
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
71
71
|
};
|
|
72
72
|
exports.se_AssociateMacSecKeyCommand = se_AssociateMacSecKeyCommand;
|
|
73
73
|
const se_AssociateVirtualInterfaceCommand = async (input, context) => {
|
|
74
74
|
const headers = sharedHeaders("AssociateVirtualInterface");
|
|
75
75
|
let body;
|
|
76
|
-
body = JSON.stringify(
|
|
76
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
77
77
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
78
78
|
};
|
|
79
79
|
exports.se_AssociateVirtualInterfaceCommand = se_AssociateVirtualInterfaceCommand;
|
|
80
80
|
const se_ConfirmConnectionCommand = async (input, context) => {
|
|
81
81
|
const headers = sharedHeaders("ConfirmConnection");
|
|
82
82
|
let body;
|
|
83
|
-
body = JSON.stringify(
|
|
83
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
84
84
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
85
|
};
|
|
86
86
|
exports.se_ConfirmConnectionCommand = se_ConfirmConnectionCommand;
|
|
87
87
|
const se_ConfirmCustomerAgreementCommand = async (input, context) => {
|
|
88
88
|
const headers = sharedHeaders("ConfirmCustomerAgreement");
|
|
89
89
|
let body;
|
|
90
|
-
body = JSON.stringify(
|
|
90
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
91
91
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
92
92
|
};
|
|
93
93
|
exports.se_ConfirmCustomerAgreementCommand = se_ConfirmCustomerAgreementCommand;
|
|
94
94
|
const se_ConfirmPrivateVirtualInterfaceCommand = async (input, context) => {
|
|
95
95
|
const headers = sharedHeaders("ConfirmPrivateVirtualInterface");
|
|
96
96
|
let body;
|
|
97
|
-
body = JSON.stringify(
|
|
97
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
98
98
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
99
99
|
};
|
|
100
100
|
exports.se_ConfirmPrivateVirtualInterfaceCommand = se_ConfirmPrivateVirtualInterfaceCommand;
|
|
101
101
|
const se_ConfirmPublicVirtualInterfaceCommand = async (input, context) => {
|
|
102
102
|
const headers = sharedHeaders("ConfirmPublicVirtualInterface");
|
|
103
103
|
let body;
|
|
104
|
-
body = JSON.stringify(
|
|
104
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
105
105
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
106
106
|
};
|
|
107
107
|
exports.se_ConfirmPublicVirtualInterfaceCommand = se_ConfirmPublicVirtualInterfaceCommand;
|
|
108
108
|
const se_ConfirmTransitVirtualInterfaceCommand = async (input, context) => {
|
|
109
109
|
const headers = sharedHeaders("ConfirmTransitVirtualInterface");
|
|
110
110
|
let body;
|
|
111
|
-
body = JSON.stringify(
|
|
111
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
112
112
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
113
113
|
};
|
|
114
114
|
exports.se_ConfirmTransitVirtualInterfaceCommand = se_ConfirmTransitVirtualInterfaceCommand;
|
|
115
115
|
const se_CreateBGPPeerCommand = async (input, context) => {
|
|
116
116
|
const headers = sharedHeaders("CreateBGPPeer");
|
|
117
117
|
let body;
|
|
118
|
-
body = JSON.stringify(
|
|
118
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
119
119
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
120
120
|
};
|
|
121
121
|
exports.se_CreateBGPPeerCommand = se_CreateBGPPeerCommand;
|
|
122
122
|
const se_CreateConnectionCommand = async (input, context) => {
|
|
123
123
|
const headers = sharedHeaders("CreateConnection");
|
|
124
124
|
let body;
|
|
125
|
-
body = JSON.stringify(
|
|
125
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
126
126
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
127
127
|
};
|
|
128
128
|
exports.se_CreateConnectionCommand = se_CreateConnectionCommand;
|
|
129
129
|
const se_CreateDirectConnectGatewayCommand = async (input, context) => {
|
|
130
130
|
const headers = sharedHeaders("CreateDirectConnectGateway");
|
|
131
131
|
let body;
|
|
132
|
-
body = JSON.stringify(
|
|
132
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
133
133
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
134
134
|
};
|
|
135
135
|
exports.se_CreateDirectConnectGatewayCommand = se_CreateDirectConnectGatewayCommand;
|
|
136
136
|
const se_CreateDirectConnectGatewayAssociationCommand = async (input, context) => {
|
|
137
137
|
const headers = sharedHeaders("CreateDirectConnectGatewayAssociation");
|
|
138
138
|
let body;
|
|
139
|
-
body = JSON.stringify(
|
|
139
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
140
140
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
141
141
|
};
|
|
142
142
|
exports.se_CreateDirectConnectGatewayAssociationCommand = se_CreateDirectConnectGatewayAssociationCommand;
|
|
143
143
|
const se_CreateDirectConnectGatewayAssociationProposalCommand = async (input, context) => {
|
|
144
144
|
const headers = sharedHeaders("CreateDirectConnectGatewayAssociationProposal");
|
|
145
145
|
let body;
|
|
146
|
-
body = JSON.stringify(
|
|
146
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
147
147
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
148
|
};
|
|
149
149
|
exports.se_CreateDirectConnectGatewayAssociationProposalCommand = se_CreateDirectConnectGatewayAssociationProposalCommand;
|
|
150
150
|
const se_CreateInterconnectCommand = async (input, context) => {
|
|
151
151
|
const headers = sharedHeaders("CreateInterconnect");
|
|
152
152
|
let body;
|
|
153
|
-
body = JSON.stringify(
|
|
153
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
154
154
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
155
155
|
};
|
|
156
156
|
exports.se_CreateInterconnectCommand = se_CreateInterconnectCommand;
|
|
157
157
|
const se_CreateLagCommand = async (input, context) => {
|
|
158
158
|
const headers = sharedHeaders("CreateLag");
|
|
159
159
|
let body;
|
|
160
|
-
body = JSON.stringify(
|
|
160
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
161
161
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
162
162
|
};
|
|
163
163
|
exports.se_CreateLagCommand = se_CreateLagCommand;
|
|
164
164
|
const se_CreatePrivateVirtualInterfaceCommand = async (input, context) => {
|
|
165
165
|
const headers = sharedHeaders("CreatePrivateVirtualInterface");
|
|
166
166
|
let body;
|
|
167
|
-
body = JSON.stringify(
|
|
167
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
168
168
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
169
169
|
};
|
|
170
170
|
exports.se_CreatePrivateVirtualInterfaceCommand = se_CreatePrivateVirtualInterfaceCommand;
|
|
171
171
|
const se_CreatePublicVirtualInterfaceCommand = async (input, context) => {
|
|
172
172
|
const headers = sharedHeaders("CreatePublicVirtualInterface");
|
|
173
173
|
let body;
|
|
174
|
-
body = JSON.stringify(
|
|
174
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
175
175
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
176
176
|
};
|
|
177
177
|
exports.se_CreatePublicVirtualInterfaceCommand = se_CreatePublicVirtualInterfaceCommand;
|
|
178
178
|
const se_CreateTransitVirtualInterfaceCommand = async (input, context) => {
|
|
179
179
|
const headers = sharedHeaders("CreateTransitVirtualInterface");
|
|
180
180
|
let body;
|
|
181
|
-
body = JSON.stringify(
|
|
181
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
182
182
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
183
183
|
};
|
|
184
184
|
exports.se_CreateTransitVirtualInterfaceCommand = se_CreateTransitVirtualInterfaceCommand;
|
|
185
185
|
const se_DeleteBGPPeerCommand = async (input, context) => {
|
|
186
186
|
const headers = sharedHeaders("DeleteBGPPeer");
|
|
187
187
|
let body;
|
|
188
|
-
body = JSON.stringify(
|
|
188
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
189
189
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
190
190
|
};
|
|
191
191
|
exports.se_DeleteBGPPeerCommand = se_DeleteBGPPeerCommand;
|
|
192
192
|
const se_DeleteConnectionCommand = async (input, context) => {
|
|
193
193
|
const headers = sharedHeaders("DeleteConnection");
|
|
194
194
|
let body;
|
|
195
|
-
body = JSON.stringify(
|
|
195
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
196
196
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
197
197
|
};
|
|
198
198
|
exports.se_DeleteConnectionCommand = se_DeleteConnectionCommand;
|
|
199
199
|
const se_DeleteDirectConnectGatewayCommand = async (input, context) => {
|
|
200
200
|
const headers = sharedHeaders("DeleteDirectConnectGateway");
|
|
201
201
|
let body;
|
|
202
|
-
body = JSON.stringify(
|
|
202
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
203
203
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
204
204
|
};
|
|
205
205
|
exports.se_DeleteDirectConnectGatewayCommand = se_DeleteDirectConnectGatewayCommand;
|
|
206
206
|
const se_DeleteDirectConnectGatewayAssociationCommand = async (input, context) => {
|
|
207
207
|
const headers = sharedHeaders("DeleteDirectConnectGatewayAssociation");
|
|
208
208
|
let body;
|
|
209
|
-
body = JSON.stringify(
|
|
209
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
210
210
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
211
211
|
};
|
|
212
212
|
exports.se_DeleteDirectConnectGatewayAssociationCommand = se_DeleteDirectConnectGatewayAssociationCommand;
|
|
213
213
|
const se_DeleteDirectConnectGatewayAssociationProposalCommand = async (input, context) => {
|
|
214
214
|
const headers = sharedHeaders("DeleteDirectConnectGatewayAssociationProposal");
|
|
215
215
|
let body;
|
|
216
|
-
body = JSON.stringify(
|
|
216
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
217
217
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
218
218
|
};
|
|
219
219
|
exports.se_DeleteDirectConnectGatewayAssociationProposalCommand = se_DeleteDirectConnectGatewayAssociationProposalCommand;
|
|
220
220
|
const se_DeleteInterconnectCommand = async (input, context) => {
|
|
221
221
|
const headers = sharedHeaders("DeleteInterconnect");
|
|
222
222
|
let body;
|
|
223
|
-
body = JSON.stringify(
|
|
223
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
224
224
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
225
225
|
};
|
|
226
226
|
exports.se_DeleteInterconnectCommand = se_DeleteInterconnectCommand;
|
|
227
227
|
const se_DeleteLagCommand = async (input, context) => {
|
|
228
228
|
const headers = sharedHeaders("DeleteLag");
|
|
229
229
|
let body;
|
|
230
|
-
body = JSON.stringify(
|
|
230
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
231
231
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
232
232
|
};
|
|
233
233
|
exports.se_DeleteLagCommand = se_DeleteLagCommand;
|
|
234
234
|
const se_DeleteVirtualInterfaceCommand = async (input, context) => {
|
|
235
235
|
const headers = sharedHeaders("DeleteVirtualInterface");
|
|
236
236
|
let body;
|
|
237
|
-
body = JSON.stringify(
|
|
237
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
238
238
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
239
239
|
};
|
|
240
240
|
exports.se_DeleteVirtualInterfaceCommand = se_DeleteVirtualInterfaceCommand;
|
|
241
241
|
const se_DescribeConnectionLoaCommand = async (input, context) => {
|
|
242
242
|
const headers = sharedHeaders("DescribeConnectionLoa");
|
|
243
243
|
let body;
|
|
244
|
-
body = JSON.stringify(
|
|
244
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
245
245
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
246
246
|
};
|
|
247
247
|
exports.se_DescribeConnectionLoaCommand = se_DescribeConnectionLoaCommand;
|
|
248
248
|
const se_DescribeConnectionsCommand = async (input, context) => {
|
|
249
249
|
const headers = sharedHeaders("DescribeConnections");
|
|
250
250
|
let body;
|
|
251
|
-
body = JSON.stringify(
|
|
251
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
252
252
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
253
253
|
};
|
|
254
254
|
exports.se_DescribeConnectionsCommand = se_DescribeConnectionsCommand;
|
|
255
255
|
const se_DescribeConnectionsOnInterconnectCommand = async (input, context) => {
|
|
256
256
|
const headers = sharedHeaders("DescribeConnectionsOnInterconnect");
|
|
257
257
|
let body;
|
|
258
|
-
body = JSON.stringify(
|
|
258
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
259
259
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
260
260
|
};
|
|
261
261
|
exports.se_DescribeConnectionsOnInterconnectCommand = se_DescribeConnectionsOnInterconnectCommand;
|
|
@@ -268,63 +268,63 @@ exports.se_DescribeCustomerMetadataCommand = se_DescribeCustomerMetadataCommand;
|
|
|
268
268
|
const se_DescribeDirectConnectGatewayAssociationProposalsCommand = async (input, context) => {
|
|
269
269
|
const headers = sharedHeaders("DescribeDirectConnectGatewayAssociationProposals");
|
|
270
270
|
let body;
|
|
271
|
-
body = JSON.stringify(
|
|
271
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
272
272
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
273
273
|
};
|
|
274
274
|
exports.se_DescribeDirectConnectGatewayAssociationProposalsCommand = se_DescribeDirectConnectGatewayAssociationProposalsCommand;
|
|
275
275
|
const se_DescribeDirectConnectGatewayAssociationsCommand = async (input, context) => {
|
|
276
276
|
const headers = sharedHeaders("DescribeDirectConnectGatewayAssociations");
|
|
277
277
|
let body;
|
|
278
|
-
body = JSON.stringify(
|
|
278
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
279
279
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
280
280
|
};
|
|
281
281
|
exports.se_DescribeDirectConnectGatewayAssociationsCommand = se_DescribeDirectConnectGatewayAssociationsCommand;
|
|
282
282
|
const se_DescribeDirectConnectGatewayAttachmentsCommand = async (input, context) => {
|
|
283
283
|
const headers = sharedHeaders("DescribeDirectConnectGatewayAttachments");
|
|
284
284
|
let body;
|
|
285
|
-
body = JSON.stringify(
|
|
285
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
286
286
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
287
287
|
};
|
|
288
288
|
exports.se_DescribeDirectConnectGatewayAttachmentsCommand = se_DescribeDirectConnectGatewayAttachmentsCommand;
|
|
289
289
|
const se_DescribeDirectConnectGatewaysCommand = async (input, context) => {
|
|
290
290
|
const headers = sharedHeaders("DescribeDirectConnectGateways");
|
|
291
291
|
let body;
|
|
292
|
-
body = JSON.stringify(
|
|
292
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
293
293
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
294
294
|
};
|
|
295
295
|
exports.se_DescribeDirectConnectGatewaysCommand = se_DescribeDirectConnectGatewaysCommand;
|
|
296
296
|
const se_DescribeHostedConnectionsCommand = async (input, context) => {
|
|
297
297
|
const headers = sharedHeaders("DescribeHostedConnections");
|
|
298
298
|
let body;
|
|
299
|
-
body = JSON.stringify(
|
|
299
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
300
300
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
301
301
|
};
|
|
302
302
|
exports.se_DescribeHostedConnectionsCommand = se_DescribeHostedConnectionsCommand;
|
|
303
303
|
const se_DescribeInterconnectLoaCommand = async (input, context) => {
|
|
304
304
|
const headers = sharedHeaders("DescribeInterconnectLoa");
|
|
305
305
|
let body;
|
|
306
|
-
body = JSON.stringify(
|
|
306
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
307
307
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
308
308
|
};
|
|
309
309
|
exports.se_DescribeInterconnectLoaCommand = se_DescribeInterconnectLoaCommand;
|
|
310
310
|
const se_DescribeInterconnectsCommand = async (input, context) => {
|
|
311
311
|
const headers = sharedHeaders("DescribeInterconnects");
|
|
312
312
|
let body;
|
|
313
|
-
body = JSON.stringify(
|
|
313
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
314
314
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
315
315
|
};
|
|
316
316
|
exports.se_DescribeInterconnectsCommand = se_DescribeInterconnectsCommand;
|
|
317
317
|
const se_DescribeLagsCommand = async (input, context) => {
|
|
318
318
|
const headers = sharedHeaders("DescribeLags");
|
|
319
319
|
let body;
|
|
320
|
-
body = JSON.stringify(
|
|
320
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
321
321
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
322
322
|
};
|
|
323
323
|
exports.se_DescribeLagsCommand = se_DescribeLagsCommand;
|
|
324
324
|
const se_DescribeLoaCommand = async (input, context) => {
|
|
325
325
|
const headers = sharedHeaders("DescribeLoa");
|
|
326
326
|
let body;
|
|
327
|
-
body = JSON.stringify(
|
|
327
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
328
328
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
329
329
|
};
|
|
330
330
|
exports.se_DescribeLoaCommand = se_DescribeLoaCommand;
|
|
@@ -337,14 +337,14 @@ exports.se_DescribeLocationsCommand = se_DescribeLocationsCommand;
|
|
|
337
337
|
const se_DescribeRouterConfigurationCommand = async (input, context) => {
|
|
338
338
|
const headers = sharedHeaders("DescribeRouterConfiguration");
|
|
339
339
|
let body;
|
|
340
|
-
body = JSON.stringify(
|
|
340
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
341
341
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
342
342
|
};
|
|
343
343
|
exports.se_DescribeRouterConfigurationCommand = se_DescribeRouterConfigurationCommand;
|
|
344
344
|
const se_DescribeTagsCommand = async (input, context) => {
|
|
345
345
|
const headers = sharedHeaders("DescribeTags");
|
|
346
346
|
let body;
|
|
347
|
-
body = JSON.stringify(
|
|
347
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
348
348
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
349
349
|
};
|
|
350
350
|
exports.se_DescribeTagsCommand = se_DescribeTagsCommand;
|
|
@@ -357,91 +357,91 @@ exports.se_DescribeVirtualGatewaysCommand = se_DescribeVirtualGatewaysCommand;
|
|
|
357
357
|
const se_DescribeVirtualInterfacesCommand = async (input, context) => {
|
|
358
358
|
const headers = sharedHeaders("DescribeVirtualInterfaces");
|
|
359
359
|
let body;
|
|
360
|
-
body = JSON.stringify(
|
|
360
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
361
361
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
362
362
|
};
|
|
363
363
|
exports.se_DescribeVirtualInterfacesCommand = se_DescribeVirtualInterfacesCommand;
|
|
364
364
|
const se_DisassociateConnectionFromLagCommand = async (input, context) => {
|
|
365
365
|
const headers = sharedHeaders("DisassociateConnectionFromLag");
|
|
366
366
|
let body;
|
|
367
|
-
body = JSON.stringify(
|
|
367
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
368
368
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
369
369
|
};
|
|
370
370
|
exports.se_DisassociateConnectionFromLagCommand = se_DisassociateConnectionFromLagCommand;
|
|
371
371
|
const se_DisassociateMacSecKeyCommand = async (input, context) => {
|
|
372
372
|
const headers = sharedHeaders("DisassociateMacSecKey");
|
|
373
373
|
let body;
|
|
374
|
-
body = JSON.stringify(
|
|
374
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
375
375
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
376
376
|
};
|
|
377
377
|
exports.se_DisassociateMacSecKeyCommand = se_DisassociateMacSecKeyCommand;
|
|
378
378
|
const se_ListVirtualInterfaceTestHistoryCommand = async (input, context) => {
|
|
379
379
|
const headers = sharedHeaders("ListVirtualInterfaceTestHistory");
|
|
380
380
|
let body;
|
|
381
|
-
body = JSON.stringify(
|
|
381
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
382
382
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
383
383
|
};
|
|
384
384
|
exports.se_ListVirtualInterfaceTestHistoryCommand = se_ListVirtualInterfaceTestHistoryCommand;
|
|
385
385
|
const se_StartBgpFailoverTestCommand = async (input, context) => {
|
|
386
386
|
const headers = sharedHeaders("StartBgpFailoverTest");
|
|
387
387
|
let body;
|
|
388
|
-
body = JSON.stringify(
|
|
388
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
389
389
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
390
390
|
};
|
|
391
391
|
exports.se_StartBgpFailoverTestCommand = se_StartBgpFailoverTestCommand;
|
|
392
392
|
const se_StopBgpFailoverTestCommand = async (input, context) => {
|
|
393
393
|
const headers = sharedHeaders("StopBgpFailoverTest");
|
|
394
394
|
let body;
|
|
395
|
-
body = JSON.stringify(
|
|
395
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
396
396
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
397
397
|
};
|
|
398
398
|
exports.se_StopBgpFailoverTestCommand = se_StopBgpFailoverTestCommand;
|
|
399
399
|
const se_TagResourceCommand = async (input, context) => {
|
|
400
400
|
const headers = sharedHeaders("TagResource");
|
|
401
401
|
let body;
|
|
402
|
-
body = JSON.stringify(
|
|
402
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
403
403
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
404
404
|
};
|
|
405
405
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
406
406
|
const se_UntagResourceCommand = async (input, context) => {
|
|
407
407
|
const headers = sharedHeaders("UntagResource");
|
|
408
408
|
let body;
|
|
409
|
-
body = JSON.stringify(
|
|
409
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
410
410
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
411
411
|
};
|
|
412
412
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
413
413
|
const se_UpdateConnectionCommand = async (input, context) => {
|
|
414
414
|
const headers = sharedHeaders("UpdateConnection");
|
|
415
415
|
let body;
|
|
416
|
-
body = JSON.stringify(
|
|
416
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
417
417
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
418
418
|
};
|
|
419
419
|
exports.se_UpdateConnectionCommand = se_UpdateConnectionCommand;
|
|
420
420
|
const se_UpdateDirectConnectGatewayCommand = async (input, context) => {
|
|
421
421
|
const headers = sharedHeaders("UpdateDirectConnectGateway");
|
|
422
422
|
let body;
|
|
423
|
-
body = JSON.stringify(
|
|
423
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
424
424
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
425
425
|
};
|
|
426
426
|
exports.se_UpdateDirectConnectGatewayCommand = se_UpdateDirectConnectGatewayCommand;
|
|
427
427
|
const se_UpdateDirectConnectGatewayAssociationCommand = async (input, context) => {
|
|
428
428
|
const headers = sharedHeaders("UpdateDirectConnectGatewayAssociation");
|
|
429
429
|
let body;
|
|
430
|
-
body = JSON.stringify(
|
|
430
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
431
431
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
432
432
|
};
|
|
433
433
|
exports.se_UpdateDirectConnectGatewayAssociationCommand = se_UpdateDirectConnectGatewayAssociationCommand;
|
|
434
434
|
const se_UpdateLagCommand = async (input, context) => {
|
|
435
435
|
const headers = sharedHeaders("UpdateLag");
|
|
436
436
|
let body;
|
|
437
|
-
body = JSON.stringify(
|
|
437
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
438
438
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
439
439
|
};
|
|
440
440
|
exports.se_UpdateLagCommand = se_UpdateLagCommand;
|
|
441
441
|
const se_UpdateVirtualInterfaceAttributesCommand = async (input, context) => {
|
|
442
442
|
const headers = sharedHeaders("UpdateVirtualInterfaceAttributes");
|
|
443
443
|
let body;
|
|
444
|
-
body = JSON.stringify(
|
|
444
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
445
445
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
446
446
|
};
|
|
447
447
|
exports.se_UpdateVirtualInterfaceAttributesCommand = se_UpdateVirtualInterfaceAttributesCommand;
|
|
@@ -451,12 +451,12 @@ const de_AcceptDirectConnectGatewayAssociationProposalCommand = async (output, c
|
|
|
451
451
|
}
|
|
452
452
|
const data = await parseBody(output.body, context);
|
|
453
453
|
let contents = {};
|
|
454
|
-
contents =
|
|
454
|
+
contents = (0, smithy_client_1._json)(data);
|
|
455
455
|
const response = {
|
|
456
456
|
$metadata: deserializeMetadata(output),
|
|
457
457
|
...contents,
|
|
458
458
|
};
|
|
459
|
-
return
|
|
459
|
+
return response;
|
|
460
460
|
};
|
|
461
461
|
exports.de_AcceptDirectConnectGatewayAssociationProposalCommand = de_AcceptDirectConnectGatewayAssociationProposalCommand;
|
|
462
462
|
const de_AcceptDirectConnectGatewayAssociationProposalCommandError = async (output, context) => {
|
|
@@ -474,10 +474,9 @@ const de_AcceptDirectConnectGatewayAssociationProposalCommandError = async (outp
|
|
|
474
474
|
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
475
475
|
default:
|
|
476
476
|
const parsedBody = parsedOutput.body;
|
|
477
|
-
|
|
477
|
+
return throwDefaultError({
|
|
478
478
|
output,
|
|
479
479
|
parsedBody,
|
|
480
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
481
480
|
errorCode,
|
|
482
481
|
});
|
|
483
482
|
}
|
|
@@ -493,7 +492,7 @@ const de_AllocateConnectionOnInterconnectCommand = async (output, context) => {
|
|
|
493
492
|
$metadata: deserializeMetadata(output),
|
|
494
493
|
...contents,
|
|
495
494
|
};
|
|
496
|
-
return
|
|
495
|
+
return response;
|
|
497
496
|
};
|
|
498
497
|
exports.de_AllocateConnectionOnInterconnectCommand = de_AllocateConnectionOnInterconnectCommand;
|
|
499
498
|
const de_AllocateConnectionOnInterconnectCommandError = async (output, context) => {
|
|
@@ -511,10 +510,9 @@ const de_AllocateConnectionOnInterconnectCommandError = async (output, context)
|
|
|
511
510
|
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
512
511
|
default:
|
|
513
512
|
const parsedBody = parsedOutput.body;
|
|
514
|
-
|
|
513
|
+
return throwDefaultError({
|
|
515
514
|
output,
|
|
516
515
|
parsedBody,
|
|
517
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
518
516
|
errorCode,
|
|
519
517
|
});
|
|
520
518
|
}
|
|
@@ -530,7 +528,7 @@ const de_AllocateHostedConnectionCommand = async (output, context) => {
|
|
|
530
528
|
$metadata: deserializeMetadata(output),
|
|
531
529
|
...contents,
|
|
532
530
|
};
|
|
533
|
-
return
|
|
531
|
+
return response;
|
|
534
532
|
};
|
|
535
533
|
exports.de_AllocateHostedConnectionCommand = de_AllocateHostedConnectionCommand;
|
|
536
534
|
const de_AllocateHostedConnectionCommandError = async (output, context) => {
|
|
@@ -554,10 +552,9 @@ const de_AllocateHostedConnectionCommandError = async (output, context) => {
|
|
|
554
552
|
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
555
553
|
default:
|
|
556
554
|
const parsedBody = parsedOutput.body;
|
|
557
|
-
|
|
555
|
+
return throwDefaultError({
|
|
558
556
|
output,
|
|
559
557
|
parsedBody,
|
|
560
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
561
558
|
errorCode,
|
|
562
559
|
});
|
|
563
560
|
}
|
|
@@ -568,12 +565,12 @@ const de_AllocatePrivateVirtualInterfaceCommand = async (output, context) => {
|
|
|
568
565
|
}
|
|
569
566
|
const data = await parseBody(output.body, context);
|
|
570
567
|
let contents = {};
|
|
571
|
-
contents =
|
|
568
|
+
contents = (0, smithy_client_1._json)(data);
|
|
572
569
|
const response = {
|
|
573
570
|
$metadata: deserializeMetadata(output),
|
|
574
571
|
...contents,
|
|
575
572
|
};
|
|
576
|
-
return
|
|
573
|
+
return response;
|
|
577
574
|
};
|
|
578
575
|
exports.de_AllocatePrivateVirtualInterfaceCommand = de_AllocatePrivateVirtualInterfaceCommand;
|
|
579
576
|
const de_AllocatePrivateVirtualInterfaceCommandError = async (output, context) => {
|
|
@@ -597,10 +594,9 @@ const de_AllocatePrivateVirtualInterfaceCommandError = async (output, context) =
|
|
|
597
594
|
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
598
595
|
default:
|
|
599
596
|
const parsedBody = parsedOutput.body;
|
|
600
|
-
|
|
597
|
+
return throwDefaultError({
|
|
601
598
|
output,
|
|
602
599
|
parsedBody,
|
|
603
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
604
600
|
errorCode,
|
|
605
601
|
});
|
|
606
602
|
}
|
|
@@ -611,12 +607,12 @@ const de_AllocatePublicVirtualInterfaceCommand = async (output, context) => {
|
|
|
611
607
|
}
|
|
612
608
|
const data = await parseBody(output.body, context);
|
|
613
609
|
let contents = {};
|
|
614
|
-
contents =
|
|
610
|
+
contents = (0, smithy_client_1._json)(data);
|
|
615
611
|
const response = {
|
|
616
612
|
$metadata: deserializeMetadata(output),
|
|
617
613
|
...contents,
|
|
618
614
|
};
|
|
619
|
-
return
|
|
615
|
+
return response;
|
|
620
616
|
};
|
|
621
617
|
exports.de_AllocatePublicVirtualInterfaceCommand = de_AllocatePublicVirtualInterfaceCommand;
|
|
622
618
|
const de_AllocatePublicVirtualInterfaceCommandError = async (output, context) => {
|
|
@@ -640,10 +636,9 @@ const de_AllocatePublicVirtualInterfaceCommandError = async (output, context) =>
|
|
|
640
636
|
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
641
637
|
default:
|
|
642
638
|
const parsedBody = parsedOutput.body;
|
|
643
|
-
|
|
639
|
+
return throwDefaultError({
|
|
644
640
|
output,
|
|
645
641
|
parsedBody,
|
|
646
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
647
642
|
errorCode,
|
|
648
643
|
});
|
|
649
644
|
}
|
|
@@ -654,12 +649,12 @@ const de_AllocateTransitVirtualInterfaceCommand = async (output, context) => {
|
|
|
654
649
|
}
|
|
655
650
|
const data = await parseBody(output.body, context);
|
|
656
651
|
let contents = {};
|
|
657
|
-
contents =
|
|
652
|
+
contents = (0, smithy_client_1._json)(data);
|
|
658
653
|
const response = {
|
|
659
654
|
$metadata: deserializeMetadata(output),
|
|
660
655
|
...contents,
|
|
661
656
|
};
|
|
662
|
-
return
|
|
657
|
+
return response;
|
|
663
658
|
};
|
|
664
659
|
exports.de_AllocateTransitVirtualInterfaceCommand = de_AllocateTransitVirtualInterfaceCommand;
|
|
665
660
|
const de_AllocateTransitVirtualInterfaceCommandError = async (output, context) => {
|
|
@@ -683,10 +678,9 @@ const de_AllocateTransitVirtualInterfaceCommandError = async (output, context) =
|
|
|
683
678
|
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
684
679
|
default:
|
|
685
680
|
const parsedBody = parsedOutput.body;
|
|
686
|
-
|
|
681
|
+
return throwDefaultError({
|
|
687
682
|
output,
|
|
688
683
|
parsedBody,
|
|
689
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
690
684
|
errorCode,
|
|
691
685
|
});
|
|
692
686
|
}
|
|
@@ -702,7 +696,7 @@ const de_AssociateConnectionWithLagCommand = async (output, context) => {
|
|
|
702
696
|
$metadata: deserializeMetadata(output),
|
|
703
697
|
...contents,
|
|
704
698
|
};
|
|
705
|
-
return
|
|
699
|
+
return response;
|
|
706
700
|
};
|
|
707
701
|
exports.de_AssociateConnectionWithLagCommand = de_AssociateConnectionWithLagCommand;
|
|
708
702
|
const de_AssociateConnectionWithLagCommandError = async (output, context) => {
|
|
@@ -720,10 +714,9 @@ const de_AssociateConnectionWithLagCommandError = async (output, context) => {
|
|
|
720
714
|
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
721
715
|
default:
|
|
722
716
|
const parsedBody = parsedOutput.body;
|
|
723
|
-
|
|
717
|
+
return throwDefaultError({
|
|
724
718
|
output,
|
|
725
719
|
parsedBody,
|
|
726
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
727
720
|
errorCode,
|
|
728
721
|
});
|
|
729
722
|
}
|
|
@@ -739,7 +732,7 @@ const de_AssociateHostedConnectionCommand = async (output, context) => {
|
|
|
739
732
|
$metadata: deserializeMetadata(output),
|
|
740
733
|
...contents,
|
|
741
734
|
};
|
|
742
|
-
return
|
|
735
|
+
return response;
|
|
743
736
|
};
|
|
744
737
|
exports.de_AssociateHostedConnectionCommand = de_AssociateHostedConnectionCommand;
|
|
745
738
|
const de_AssociateHostedConnectionCommandError = async (output, context) => {
|
|
@@ -757,10 +750,9 @@ const de_AssociateHostedConnectionCommandError = async (output, context) => {
|
|
|
757
750
|
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
758
751
|
default:
|
|
759
752
|
const parsedBody = parsedOutput.body;
|
|
760
|
-
|
|
753
|
+
return throwDefaultError({
|
|
761
754
|
output,
|
|
762
755
|
parsedBody,
|
|
763
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
764
756
|
errorCode,
|
|
765
757
|
});
|
|
766
758
|
}
|
|
@@ -771,12 +763,12 @@ const de_AssociateMacSecKeyCommand = async (output, context) => {
|
|
|
771
763
|
}
|
|
772
764
|
const data = await parseBody(output.body, context);
|
|
773
765
|
let contents = {};
|
|
774
|
-
contents =
|
|
766
|
+
contents = (0, smithy_client_1._json)(data);
|
|
775
767
|
const response = {
|
|
776
768
|
$metadata: deserializeMetadata(output),
|
|
777
769
|
...contents,
|
|
778
770
|
};
|
|
779
|
-
return
|
|
771
|
+
return response;
|
|
780
772
|
};
|
|
781
773
|
exports.de_AssociateMacSecKeyCommand = de_AssociateMacSecKeyCommand;
|
|
782
774
|
const de_AssociateMacSecKeyCommandError = async (output, context) => {
|
|
@@ -794,10 +786,9 @@ const de_AssociateMacSecKeyCommandError = async (output, context) => {
|
|
|
794
786
|
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
795
787
|
default:
|
|
796
788
|
const parsedBody = parsedOutput.body;
|
|
797
|
-
|
|
789
|
+
return throwDefaultError({
|
|
798
790
|
output,
|
|
799
791
|
parsedBody,
|
|
800
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
801
792
|
errorCode,
|
|
802
793
|
});
|
|
803
794
|
}
|
|
@@ -808,12 +799,12 @@ const de_AssociateVirtualInterfaceCommand = async (output, context) => {
|
|
|
808
799
|
}
|
|
809
800
|
const data = await parseBody(output.body, context);
|
|
810
801
|
let contents = {};
|
|
811
|
-
contents =
|
|
802
|
+
contents = (0, smithy_client_1._json)(data);
|
|
812
803
|
const response = {
|
|
813
804
|
$metadata: deserializeMetadata(output),
|
|
814
805
|
...contents,
|
|
815
806
|
};
|
|
816
|
-
return
|
|
807
|
+
return response;
|
|
817
808
|
};
|
|
818
809
|
exports.de_AssociateVirtualInterfaceCommand = de_AssociateVirtualInterfaceCommand;
|
|
819
810
|
const de_AssociateVirtualInterfaceCommandError = async (output, context) => {
|
|
@@ -831,10 +822,9 @@ const de_AssociateVirtualInterfaceCommandError = async (output, context) => {
|
|
|
831
822
|
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
832
823
|
default:
|
|
833
824
|
const parsedBody = parsedOutput.body;
|
|
834
|
-
|
|
825
|
+
return throwDefaultError({
|
|
835
826
|
output,
|
|
836
827
|
parsedBody,
|
|
837
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
838
828
|
errorCode,
|
|
839
829
|
});
|
|
840
830
|
}
|
|
@@ -845,12 +835,12 @@ const de_ConfirmConnectionCommand = async (output, context) => {
|
|
|
845
835
|
}
|
|
846
836
|
const data = await parseBody(output.body, context);
|
|
847
837
|
let contents = {};
|
|
848
|
-
contents =
|
|
838
|
+
contents = (0, smithy_client_1._json)(data);
|
|
849
839
|
const response = {
|
|
850
840
|
$metadata: deserializeMetadata(output),
|
|
851
841
|
...contents,
|
|
852
842
|
};
|
|
853
|
-
return
|
|
843
|
+
return response;
|
|
854
844
|
};
|
|
855
845
|
exports.de_ConfirmConnectionCommand = de_ConfirmConnectionCommand;
|
|
856
846
|
const de_ConfirmConnectionCommandError = async (output, context) => {
|
|
@@ -868,10 +858,9 @@ const de_ConfirmConnectionCommandError = async (output, context) => {
|
|
|
868
858
|
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
869
859
|
default:
|
|
870
860
|
const parsedBody = parsedOutput.body;
|
|
871
|
-
|
|
861
|
+
return throwDefaultError({
|
|
872
862
|
output,
|
|
873
863
|
parsedBody,
|
|
874
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
875
864
|
errorCode,
|
|
876
865
|
});
|
|
877
866
|
}
|
|
@@ -882,12 +871,12 @@ const de_ConfirmCustomerAgreementCommand = async (output, context) => {
|
|
|
882
871
|
}
|
|
883
872
|
const data = await parseBody(output.body, context);
|
|
884
873
|
let contents = {};
|
|
885
|
-
contents =
|
|
874
|
+
contents = (0, smithy_client_1._json)(data);
|
|
886
875
|
const response = {
|
|
887
876
|
$metadata: deserializeMetadata(output),
|
|
888
877
|
...contents,
|
|
889
878
|
};
|
|
890
|
-
return
|
|
879
|
+
return response;
|
|
891
880
|
};
|
|
892
881
|
exports.de_ConfirmCustomerAgreementCommand = de_ConfirmCustomerAgreementCommand;
|
|
893
882
|
const de_ConfirmCustomerAgreementCommandError = async (output, context) => {
|
|
@@ -905,10 +894,9 @@ const de_ConfirmCustomerAgreementCommandError = async (output, context) => {
|
|
|
905
894
|
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
906
895
|
default:
|
|
907
896
|
const parsedBody = parsedOutput.body;
|
|
908
|
-
|
|
897
|
+
return throwDefaultError({
|
|
909
898
|
output,
|
|
910
899
|
parsedBody,
|
|
911
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
912
900
|
errorCode,
|
|
913
901
|
});
|
|
914
902
|
}
|
|
@@ -919,12 +907,12 @@ const de_ConfirmPrivateVirtualInterfaceCommand = async (output, context) => {
|
|
|
919
907
|
}
|
|
920
908
|
const data = await parseBody(output.body, context);
|
|
921
909
|
let contents = {};
|
|
922
|
-
contents =
|
|
910
|
+
contents = (0, smithy_client_1._json)(data);
|
|
923
911
|
const response = {
|
|
924
912
|
$metadata: deserializeMetadata(output),
|
|
925
913
|
...contents,
|
|
926
914
|
};
|
|
927
|
-
return
|
|
915
|
+
return response;
|
|
928
916
|
};
|
|
929
917
|
exports.de_ConfirmPrivateVirtualInterfaceCommand = de_ConfirmPrivateVirtualInterfaceCommand;
|
|
930
918
|
const de_ConfirmPrivateVirtualInterfaceCommandError = async (output, context) => {
|
|
@@ -942,10 +930,9 @@ const de_ConfirmPrivateVirtualInterfaceCommandError = async (output, context) =>
|
|
|
942
930
|
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
943
931
|
default:
|
|
944
932
|
const parsedBody = parsedOutput.body;
|
|
945
|
-
|
|
933
|
+
return throwDefaultError({
|
|
946
934
|
output,
|
|
947
935
|
parsedBody,
|
|
948
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
949
936
|
errorCode,
|
|
950
937
|
});
|
|
951
938
|
}
|
|
@@ -956,12 +943,12 @@ const de_ConfirmPublicVirtualInterfaceCommand = async (output, context) => {
|
|
|
956
943
|
}
|
|
957
944
|
const data = await parseBody(output.body, context);
|
|
958
945
|
let contents = {};
|
|
959
|
-
contents =
|
|
946
|
+
contents = (0, smithy_client_1._json)(data);
|
|
960
947
|
const response = {
|
|
961
948
|
$metadata: deserializeMetadata(output),
|
|
962
949
|
...contents,
|
|
963
950
|
};
|
|
964
|
-
return
|
|
951
|
+
return response;
|
|
965
952
|
};
|
|
966
953
|
exports.de_ConfirmPublicVirtualInterfaceCommand = de_ConfirmPublicVirtualInterfaceCommand;
|
|
967
954
|
const de_ConfirmPublicVirtualInterfaceCommandError = async (output, context) => {
|
|
@@ -979,10 +966,9 @@ const de_ConfirmPublicVirtualInterfaceCommandError = async (output, context) =>
|
|
|
979
966
|
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
980
967
|
default:
|
|
981
968
|
const parsedBody = parsedOutput.body;
|
|
982
|
-
|
|
969
|
+
return throwDefaultError({
|
|
983
970
|
output,
|
|
984
971
|
parsedBody,
|
|
985
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
986
972
|
errorCode,
|
|
987
973
|
});
|
|
988
974
|
}
|
|
@@ -993,12 +979,12 @@ const de_ConfirmTransitVirtualInterfaceCommand = async (output, context) => {
|
|
|
993
979
|
}
|
|
994
980
|
const data = await parseBody(output.body, context);
|
|
995
981
|
let contents = {};
|
|
996
|
-
contents =
|
|
982
|
+
contents = (0, smithy_client_1._json)(data);
|
|
997
983
|
const response = {
|
|
998
984
|
$metadata: deserializeMetadata(output),
|
|
999
985
|
...contents,
|
|
1000
986
|
};
|
|
1001
|
-
return
|
|
987
|
+
return response;
|
|
1002
988
|
};
|
|
1003
989
|
exports.de_ConfirmTransitVirtualInterfaceCommand = de_ConfirmTransitVirtualInterfaceCommand;
|
|
1004
990
|
const de_ConfirmTransitVirtualInterfaceCommandError = async (output, context) => {
|
|
@@ -1016,10 +1002,9 @@ const de_ConfirmTransitVirtualInterfaceCommandError = async (output, context) =>
|
|
|
1016
1002
|
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
1017
1003
|
default:
|
|
1018
1004
|
const parsedBody = parsedOutput.body;
|
|
1019
|
-
|
|
1005
|
+
return throwDefaultError({
|
|
1020
1006
|
output,
|
|
1021
1007
|
parsedBody,
|
|
1022
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
1023
1008
|
errorCode,
|
|
1024
1009
|
});
|
|
1025
1010
|
}
|
|
@@ -1030,12 +1015,12 @@ const de_CreateBGPPeerCommand = async (output, context) => {
|
|
|
1030
1015
|
}
|
|
1031
1016
|
const data = await parseBody(output.body, context);
|
|
1032
1017
|
let contents = {};
|
|
1033
|
-
contents =
|
|
1018
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1034
1019
|
const response = {
|
|
1035
1020
|
$metadata: deserializeMetadata(output),
|
|
1036
1021
|
...contents,
|
|
1037
1022
|
};
|
|
1038
|
-
return
|
|
1023
|
+
return response;
|
|
1039
1024
|
};
|
|
1040
1025
|
exports.de_CreateBGPPeerCommand = de_CreateBGPPeerCommand;
|
|
1041
1026
|
const de_CreateBGPPeerCommandError = async (output, context) => {
|
|
@@ -1053,10 +1038,9 @@ const de_CreateBGPPeerCommandError = async (output, context) => {
|
|
|
1053
1038
|
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
1054
1039
|
default:
|
|
1055
1040
|
const parsedBody = parsedOutput.body;
|
|
1056
|
-
|
|
1041
|
+
return throwDefaultError({
|
|
1057
1042
|
output,
|
|
1058
1043
|
parsedBody,
|
|
1059
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
1060
1044
|
errorCode,
|
|
1061
1045
|
});
|
|
1062
1046
|
}
|
|
@@ -1072,7 +1056,7 @@ const de_CreateConnectionCommand = async (output, context) => {
|
|
|
1072
1056
|
$metadata: deserializeMetadata(output),
|
|
1073
1057
|
...contents,
|
|
1074
1058
|
};
|
|
1075
|
-
return
|
|
1059
|
+
return response;
|
|
1076
1060
|
};
|
|
1077
1061
|
exports.de_CreateConnectionCommand = de_CreateConnectionCommand;
|
|
1078
1062
|
const de_CreateConnectionCommandError = async (output, context) => {
|
|
@@ -1096,10 +1080,9 @@ const de_CreateConnectionCommandError = async (output, context) => {
|
|
|
1096
1080
|
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1097
1081
|
default:
|
|
1098
1082
|
const parsedBody = parsedOutput.body;
|
|
1099
|
-
|
|
1083
|
+
return throwDefaultError({
|
|
1100
1084
|
output,
|
|
1101
1085
|
parsedBody,
|
|
1102
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
1103
1086
|
errorCode,
|
|
1104
1087
|
});
|
|
1105
1088
|
}
|
|
@@ -1110,12 +1093,12 @@ const de_CreateDirectConnectGatewayCommand = async (output, context) => {
|
|
|
1110
1093
|
}
|
|
1111
1094
|
const data = await parseBody(output.body, context);
|
|
1112
1095
|
let contents = {};
|
|
1113
|
-
contents =
|
|
1096
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1114
1097
|
const response = {
|
|
1115
1098
|
$metadata: deserializeMetadata(output),
|
|
1116
1099
|
...contents,
|
|
1117
1100
|
};
|
|
1118
|
-
return
|
|
1101
|
+
return response;
|
|
1119
1102
|
};
|
|
1120
1103
|
exports.de_CreateDirectConnectGatewayCommand = de_CreateDirectConnectGatewayCommand;
|
|
1121
1104
|
const de_CreateDirectConnectGatewayCommandError = async (output, context) => {
|
|
@@ -1133,10 +1116,9 @@ const de_CreateDirectConnectGatewayCommandError = async (output, context) => {
|
|
|
1133
1116
|
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
1134
1117
|
default:
|
|
1135
1118
|
const parsedBody = parsedOutput.body;
|
|
1136
|
-
|
|
1119
|
+
return throwDefaultError({
|
|
1137
1120
|
output,
|
|
1138
1121
|
parsedBody,
|
|
1139
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
1140
1122
|
errorCode,
|
|
1141
1123
|
});
|
|
1142
1124
|
}
|
|
@@ -1147,12 +1129,12 @@ const de_CreateDirectConnectGatewayAssociationCommand = async (output, context)
|
|
|
1147
1129
|
}
|
|
1148
1130
|
const data = await parseBody(output.body, context);
|
|
1149
1131
|
let contents = {};
|
|
1150
|
-
contents =
|
|
1132
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1151
1133
|
const response = {
|
|
1152
1134
|
$metadata: deserializeMetadata(output),
|
|
1153
1135
|
...contents,
|
|
1154
1136
|
};
|
|
1155
|
-
return
|
|
1137
|
+
return response;
|
|
1156
1138
|
};
|
|
1157
1139
|
exports.de_CreateDirectConnectGatewayAssociationCommand = de_CreateDirectConnectGatewayAssociationCommand;
|
|
1158
1140
|
const de_CreateDirectConnectGatewayAssociationCommandError = async (output, context) => {
|
|
@@ -1170,10 +1152,9 @@ const de_CreateDirectConnectGatewayAssociationCommandError = async (output, cont
|
|
|
1170
1152
|
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
1171
1153
|
default:
|
|
1172
1154
|
const parsedBody = parsedOutput.body;
|
|
1173
|
-
|
|
1155
|
+
return throwDefaultError({
|
|
1174
1156
|
output,
|
|
1175
1157
|
parsedBody,
|
|
1176
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
1177
1158
|
errorCode,
|
|
1178
1159
|
});
|
|
1179
1160
|
}
|
|
@@ -1184,12 +1165,12 @@ const de_CreateDirectConnectGatewayAssociationProposalCommand = async (output, c
|
|
|
1184
1165
|
}
|
|
1185
1166
|
const data = await parseBody(output.body, context);
|
|
1186
1167
|
let contents = {};
|
|
1187
|
-
contents =
|
|
1168
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1188
1169
|
const response = {
|
|
1189
1170
|
$metadata: deserializeMetadata(output),
|
|
1190
1171
|
...contents,
|
|
1191
1172
|
};
|
|
1192
|
-
return
|
|
1173
|
+
return response;
|
|
1193
1174
|
};
|
|
1194
1175
|
exports.de_CreateDirectConnectGatewayAssociationProposalCommand = de_CreateDirectConnectGatewayAssociationProposalCommand;
|
|
1195
1176
|
const de_CreateDirectConnectGatewayAssociationProposalCommandError = async (output, context) => {
|
|
@@ -1207,10 +1188,9 @@ const de_CreateDirectConnectGatewayAssociationProposalCommandError = async (outp
|
|
|
1207
1188
|
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
1208
1189
|
default:
|
|
1209
1190
|
const parsedBody = parsedOutput.body;
|
|
1210
|
-
|
|
1191
|
+
return throwDefaultError({
|
|
1211
1192
|
output,
|
|
1212
1193
|
parsedBody,
|
|
1213
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
1214
1194
|
errorCode,
|
|
1215
1195
|
});
|
|
1216
1196
|
}
|
|
@@ -1226,7 +1206,7 @@ const de_CreateInterconnectCommand = async (output, context) => {
|
|
|
1226
1206
|
$metadata: deserializeMetadata(output),
|
|
1227
1207
|
...contents,
|
|
1228
1208
|
};
|
|
1229
|
-
return
|
|
1209
|
+
return response;
|
|
1230
1210
|
};
|
|
1231
1211
|
exports.de_CreateInterconnectCommand = de_CreateInterconnectCommand;
|
|
1232
1212
|
const de_CreateInterconnectCommandError = async (output, context) => {
|
|
@@ -1250,10 +1230,9 @@ const de_CreateInterconnectCommandError = async (output, context) => {
|
|
|
1250
1230
|
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1251
1231
|
default:
|
|
1252
1232
|
const parsedBody = parsedOutput.body;
|
|
1253
|
-
|
|
1233
|
+
return throwDefaultError({
|
|
1254
1234
|
output,
|
|
1255
1235
|
parsedBody,
|
|
1256
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
1257
1236
|
errorCode,
|
|
1258
1237
|
});
|
|
1259
1238
|
}
|
|
@@ -1269,7 +1248,7 @@ const de_CreateLagCommand = async (output, context) => {
|
|
|
1269
1248
|
$metadata: deserializeMetadata(output),
|
|
1270
1249
|
...contents,
|
|
1271
1250
|
};
|
|
1272
|
-
return
|
|
1251
|
+
return response;
|
|
1273
1252
|
};
|
|
1274
1253
|
exports.de_CreateLagCommand = de_CreateLagCommand;
|
|
1275
1254
|
const de_CreateLagCommandError = async (output, context) => {
|
|
@@ -1293,10 +1272,9 @@ const de_CreateLagCommandError = async (output, context) => {
|
|
|
1293
1272
|
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1294
1273
|
default:
|
|
1295
1274
|
const parsedBody = parsedOutput.body;
|
|
1296
|
-
|
|
1275
|
+
return throwDefaultError({
|
|
1297
1276
|
output,
|
|
1298
1277
|
parsedBody,
|
|
1299
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
1300
1278
|
errorCode,
|
|
1301
1279
|
});
|
|
1302
1280
|
}
|
|
@@ -1307,12 +1285,12 @@ const de_CreatePrivateVirtualInterfaceCommand = async (output, context) => {
|
|
|
1307
1285
|
}
|
|
1308
1286
|
const data = await parseBody(output.body, context);
|
|
1309
1287
|
let contents = {};
|
|
1310
|
-
contents =
|
|
1288
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1311
1289
|
const response = {
|
|
1312
1290
|
$metadata: deserializeMetadata(output),
|
|
1313
1291
|
...contents,
|
|
1314
1292
|
};
|
|
1315
|
-
return
|
|
1293
|
+
return response;
|
|
1316
1294
|
};
|
|
1317
1295
|
exports.de_CreatePrivateVirtualInterfaceCommand = de_CreatePrivateVirtualInterfaceCommand;
|
|
1318
1296
|
const de_CreatePrivateVirtualInterfaceCommandError = async (output, context) => {
|
|
@@ -1336,10 +1314,9 @@ const de_CreatePrivateVirtualInterfaceCommandError = async (output, context) =>
|
|
|
1336
1314
|
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1337
1315
|
default:
|
|
1338
1316
|
const parsedBody = parsedOutput.body;
|
|
1339
|
-
|
|
1317
|
+
return throwDefaultError({
|
|
1340
1318
|
output,
|
|
1341
1319
|
parsedBody,
|
|
1342
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
1343
1320
|
errorCode,
|
|
1344
1321
|
});
|
|
1345
1322
|
}
|
|
@@ -1350,12 +1327,12 @@ const de_CreatePublicVirtualInterfaceCommand = async (output, context) => {
|
|
|
1350
1327
|
}
|
|
1351
1328
|
const data = await parseBody(output.body, context);
|
|
1352
1329
|
let contents = {};
|
|
1353
|
-
contents =
|
|
1330
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1354
1331
|
const response = {
|
|
1355
1332
|
$metadata: deserializeMetadata(output),
|
|
1356
1333
|
...contents,
|
|
1357
1334
|
};
|
|
1358
|
-
return
|
|
1335
|
+
return response;
|
|
1359
1336
|
};
|
|
1360
1337
|
exports.de_CreatePublicVirtualInterfaceCommand = de_CreatePublicVirtualInterfaceCommand;
|
|
1361
1338
|
const de_CreatePublicVirtualInterfaceCommandError = async (output, context) => {
|
|
@@ -1379,10 +1356,9 @@ const de_CreatePublicVirtualInterfaceCommandError = async (output, context) => {
|
|
|
1379
1356
|
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1380
1357
|
default:
|
|
1381
1358
|
const parsedBody = parsedOutput.body;
|
|
1382
|
-
|
|
1359
|
+
return throwDefaultError({
|
|
1383
1360
|
output,
|
|
1384
1361
|
parsedBody,
|
|
1385
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
1386
1362
|
errorCode,
|
|
1387
1363
|
});
|
|
1388
1364
|
}
|
|
@@ -1393,12 +1369,12 @@ const de_CreateTransitVirtualInterfaceCommand = async (output, context) => {
|
|
|
1393
1369
|
}
|
|
1394
1370
|
const data = await parseBody(output.body, context);
|
|
1395
1371
|
let contents = {};
|
|
1396
|
-
contents =
|
|
1372
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1397
1373
|
const response = {
|
|
1398
1374
|
$metadata: deserializeMetadata(output),
|
|
1399
1375
|
...contents,
|
|
1400
1376
|
};
|
|
1401
|
-
return
|
|
1377
|
+
return response;
|
|
1402
1378
|
};
|
|
1403
1379
|
exports.de_CreateTransitVirtualInterfaceCommand = de_CreateTransitVirtualInterfaceCommand;
|
|
1404
1380
|
const de_CreateTransitVirtualInterfaceCommandError = async (output, context) => {
|
|
@@ -1422,10 +1398,9 @@ const de_CreateTransitVirtualInterfaceCommandError = async (output, context) =>
|
|
|
1422
1398
|
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1423
1399
|
default:
|
|
1424
1400
|
const parsedBody = parsedOutput.body;
|
|
1425
|
-
|
|
1401
|
+
return throwDefaultError({
|
|
1426
1402
|
output,
|
|
1427
1403
|
parsedBody,
|
|
1428
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
1429
1404
|
errorCode,
|
|
1430
1405
|
});
|
|
1431
1406
|
}
|
|
@@ -1436,12 +1411,12 @@ const de_DeleteBGPPeerCommand = async (output, context) => {
|
|
|
1436
1411
|
}
|
|
1437
1412
|
const data = await parseBody(output.body, context);
|
|
1438
1413
|
let contents = {};
|
|
1439
|
-
contents =
|
|
1414
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1440
1415
|
const response = {
|
|
1441
1416
|
$metadata: deserializeMetadata(output),
|
|
1442
1417
|
...contents,
|
|
1443
1418
|
};
|
|
1444
|
-
return
|
|
1419
|
+
return response;
|
|
1445
1420
|
};
|
|
1446
1421
|
exports.de_DeleteBGPPeerCommand = de_DeleteBGPPeerCommand;
|
|
1447
1422
|
const de_DeleteBGPPeerCommandError = async (output, context) => {
|
|
@@ -1459,10 +1434,9 @@ const de_DeleteBGPPeerCommandError = async (output, context) => {
|
|
|
1459
1434
|
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
1460
1435
|
default:
|
|
1461
1436
|
const parsedBody = parsedOutput.body;
|
|
1462
|
-
|
|
1437
|
+
return throwDefaultError({
|
|
1463
1438
|
output,
|
|
1464
1439
|
parsedBody,
|
|
1465
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
1466
1440
|
errorCode,
|
|
1467
1441
|
});
|
|
1468
1442
|
}
|
|
@@ -1478,7 +1452,7 @@ const de_DeleteConnectionCommand = async (output, context) => {
|
|
|
1478
1452
|
$metadata: deserializeMetadata(output),
|
|
1479
1453
|
...contents,
|
|
1480
1454
|
};
|
|
1481
|
-
return
|
|
1455
|
+
return response;
|
|
1482
1456
|
};
|
|
1483
1457
|
exports.de_DeleteConnectionCommand = de_DeleteConnectionCommand;
|
|
1484
1458
|
const de_DeleteConnectionCommandError = async (output, context) => {
|
|
@@ -1496,10 +1470,9 @@ const de_DeleteConnectionCommandError = async (output, context) => {
|
|
|
1496
1470
|
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
1497
1471
|
default:
|
|
1498
1472
|
const parsedBody = parsedOutput.body;
|
|
1499
|
-
|
|
1473
|
+
return throwDefaultError({
|
|
1500
1474
|
output,
|
|
1501
1475
|
parsedBody,
|
|
1502
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
1503
1476
|
errorCode,
|
|
1504
1477
|
});
|
|
1505
1478
|
}
|
|
@@ -1510,12 +1483,12 @@ const de_DeleteDirectConnectGatewayCommand = async (output, context) => {
|
|
|
1510
1483
|
}
|
|
1511
1484
|
const data = await parseBody(output.body, context);
|
|
1512
1485
|
let contents = {};
|
|
1513
|
-
contents =
|
|
1486
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1514
1487
|
const response = {
|
|
1515
1488
|
$metadata: deserializeMetadata(output),
|
|
1516
1489
|
...contents,
|
|
1517
1490
|
};
|
|
1518
|
-
return
|
|
1491
|
+
return response;
|
|
1519
1492
|
};
|
|
1520
1493
|
exports.de_DeleteDirectConnectGatewayCommand = de_DeleteDirectConnectGatewayCommand;
|
|
1521
1494
|
const de_DeleteDirectConnectGatewayCommandError = async (output, context) => {
|
|
@@ -1533,10 +1506,9 @@ const de_DeleteDirectConnectGatewayCommandError = async (output, context) => {
|
|
|
1533
1506
|
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
1534
1507
|
default:
|
|
1535
1508
|
const parsedBody = parsedOutput.body;
|
|
1536
|
-
|
|
1509
|
+
return throwDefaultError({
|
|
1537
1510
|
output,
|
|
1538
1511
|
parsedBody,
|
|
1539
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
1540
1512
|
errorCode,
|
|
1541
1513
|
});
|
|
1542
1514
|
}
|
|
@@ -1547,12 +1519,12 @@ const de_DeleteDirectConnectGatewayAssociationCommand = async (output, context)
|
|
|
1547
1519
|
}
|
|
1548
1520
|
const data = await parseBody(output.body, context);
|
|
1549
1521
|
let contents = {};
|
|
1550
|
-
contents =
|
|
1522
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1551
1523
|
const response = {
|
|
1552
1524
|
$metadata: deserializeMetadata(output),
|
|
1553
1525
|
...contents,
|
|
1554
1526
|
};
|
|
1555
|
-
return
|
|
1527
|
+
return response;
|
|
1556
1528
|
};
|
|
1557
1529
|
exports.de_DeleteDirectConnectGatewayAssociationCommand = de_DeleteDirectConnectGatewayAssociationCommand;
|
|
1558
1530
|
const de_DeleteDirectConnectGatewayAssociationCommandError = async (output, context) => {
|
|
@@ -1570,10 +1542,9 @@ const de_DeleteDirectConnectGatewayAssociationCommandError = async (output, cont
|
|
|
1570
1542
|
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
1571
1543
|
default:
|
|
1572
1544
|
const parsedBody = parsedOutput.body;
|
|
1573
|
-
|
|
1545
|
+
return throwDefaultError({
|
|
1574
1546
|
output,
|
|
1575
1547
|
parsedBody,
|
|
1576
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
1577
1548
|
errorCode,
|
|
1578
1549
|
});
|
|
1579
1550
|
}
|
|
@@ -1584,12 +1555,12 @@ const de_DeleteDirectConnectGatewayAssociationProposalCommand = async (output, c
|
|
|
1584
1555
|
}
|
|
1585
1556
|
const data = await parseBody(output.body, context);
|
|
1586
1557
|
let contents = {};
|
|
1587
|
-
contents =
|
|
1558
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1588
1559
|
const response = {
|
|
1589
1560
|
$metadata: deserializeMetadata(output),
|
|
1590
1561
|
...contents,
|
|
1591
1562
|
};
|
|
1592
|
-
return
|
|
1563
|
+
return response;
|
|
1593
1564
|
};
|
|
1594
1565
|
exports.de_DeleteDirectConnectGatewayAssociationProposalCommand = de_DeleteDirectConnectGatewayAssociationProposalCommand;
|
|
1595
1566
|
const de_DeleteDirectConnectGatewayAssociationProposalCommandError = async (output, context) => {
|
|
@@ -1607,10 +1578,9 @@ const de_DeleteDirectConnectGatewayAssociationProposalCommandError = async (outp
|
|
|
1607
1578
|
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
1608
1579
|
default:
|
|
1609
1580
|
const parsedBody = parsedOutput.body;
|
|
1610
|
-
|
|
1581
|
+
return throwDefaultError({
|
|
1611
1582
|
output,
|
|
1612
1583
|
parsedBody,
|
|
1613
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
1614
1584
|
errorCode,
|
|
1615
1585
|
});
|
|
1616
1586
|
}
|
|
@@ -1621,12 +1591,12 @@ const de_DeleteInterconnectCommand = async (output, context) => {
|
|
|
1621
1591
|
}
|
|
1622
1592
|
const data = await parseBody(output.body, context);
|
|
1623
1593
|
let contents = {};
|
|
1624
|
-
contents =
|
|
1594
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1625
1595
|
const response = {
|
|
1626
1596
|
$metadata: deserializeMetadata(output),
|
|
1627
1597
|
...contents,
|
|
1628
1598
|
};
|
|
1629
|
-
return
|
|
1599
|
+
return response;
|
|
1630
1600
|
};
|
|
1631
1601
|
exports.de_DeleteInterconnectCommand = de_DeleteInterconnectCommand;
|
|
1632
1602
|
const de_DeleteInterconnectCommandError = async (output, context) => {
|
|
@@ -1644,10 +1614,9 @@ const de_DeleteInterconnectCommandError = async (output, context) => {
|
|
|
1644
1614
|
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
1645
1615
|
default:
|
|
1646
1616
|
const parsedBody = parsedOutput.body;
|
|
1647
|
-
|
|
1617
|
+
return throwDefaultError({
|
|
1648
1618
|
output,
|
|
1649
1619
|
parsedBody,
|
|
1650
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
1651
1620
|
errorCode,
|
|
1652
1621
|
});
|
|
1653
1622
|
}
|
|
@@ -1663,7 +1632,7 @@ const de_DeleteLagCommand = async (output, context) => {
|
|
|
1663
1632
|
$metadata: deserializeMetadata(output),
|
|
1664
1633
|
...contents,
|
|
1665
1634
|
};
|
|
1666
|
-
return
|
|
1635
|
+
return response;
|
|
1667
1636
|
};
|
|
1668
1637
|
exports.de_DeleteLagCommand = de_DeleteLagCommand;
|
|
1669
1638
|
const de_DeleteLagCommandError = async (output, context) => {
|
|
@@ -1681,10 +1650,9 @@ const de_DeleteLagCommandError = async (output, context) => {
|
|
|
1681
1650
|
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
1682
1651
|
default:
|
|
1683
1652
|
const parsedBody = parsedOutput.body;
|
|
1684
|
-
|
|
1653
|
+
return throwDefaultError({
|
|
1685
1654
|
output,
|
|
1686
1655
|
parsedBody,
|
|
1687
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
1688
1656
|
errorCode,
|
|
1689
1657
|
});
|
|
1690
1658
|
}
|
|
@@ -1695,12 +1663,12 @@ const de_DeleteVirtualInterfaceCommand = async (output, context) => {
|
|
|
1695
1663
|
}
|
|
1696
1664
|
const data = await parseBody(output.body, context);
|
|
1697
1665
|
let contents = {};
|
|
1698
|
-
contents =
|
|
1666
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1699
1667
|
const response = {
|
|
1700
1668
|
$metadata: deserializeMetadata(output),
|
|
1701
1669
|
...contents,
|
|
1702
1670
|
};
|
|
1703
|
-
return
|
|
1671
|
+
return response;
|
|
1704
1672
|
};
|
|
1705
1673
|
exports.de_DeleteVirtualInterfaceCommand = de_DeleteVirtualInterfaceCommand;
|
|
1706
1674
|
const de_DeleteVirtualInterfaceCommandError = async (output, context) => {
|
|
@@ -1718,10 +1686,9 @@ const de_DeleteVirtualInterfaceCommandError = async (output, context) => {
|
|
|
1718
1686
|
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
1719
1687
|
default:
|
|
1720
1688
|
const parsedBody = parsedOutput.body;
|
|
1721
|
-
|
|
1689
|
+
return throwDefaultError({
|
|
1722
1690
|
output,
|
|
1723
1691
|
parsedBody,
|
|
1724
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
1725
1692
|
errorCode,
|
|
1726
1693
|
});
|
|
1727
1694
|
}
|
|
@@ -1737,7 +1704,7 @@ const de_DescribeConnectionLoaCommand = async (output, context) => {
|
|
|
1737
1704
|
$metadata: deserializeMetadata(output),
|
|
1738
1705
|
...contents,
|
|
1739
1706
|
};
|
|
1740
|
-
return
|
|
1707
|
+
return response;
|
|
1741
1708
|
};
|
|
1742
1709
|
exports.de_DescribeConnectionLoaCommand = de_DescribeConnectionLoaCommand;
|
|
1743
1710
|
const de_DescribeConnectionLoaCommandError = async (output, context) => {
|
|
@@ -1755,10 +1722,9 @@ const de_DescribeConnectionLoaCommandError = async (output, context) => {
|
|
|
1755
1722
|
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
1756
1723
|
default:
|
|
1757
1724
|
const parsedBody = parsedOutput.body;
|
|
1758
|
-
|
|
1725
|
+
return throwDefaultError({
|
|
1759
1726
|
output,
|
|
1760
1727
|
parsedBody,
|
|
1761
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
1762
1728
|
errorCode,
|
|
1763
1729
|
});
|
|
1764
1730
|
}
|
|
@@ -1774,7 +1740,7 @@ const de_DescribeConnectionsCommand = async (output, context) => {
|
|
|
1774
1740
|
$metadata: deserializeMetadata(output),
|
|
1775
1741
|
...contents,
|
|
1776
1742
|
};
|
|
1777
|
-
return
|
|
1743
|
+
return response;
|
|
1778
1744
|
};
|
|
1779
1745
|
exports.de_DescribeConnectionsCommand = de_DescribeConnectionsCommand;
|
|
1780
1746
|
const de_DescribeConnectionsCommandError = async (output, context) => {
|
|
@@ -1792,10 +1758,9 @@ const de_DescribeConnectionsCommandError = async (output, context) => {
|
|
|
1792
1758
|
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
1793
1759
|
default:
|
|
1794
1760
|
const parsedBody = parsedOutput.body;
|
|
1795
|
-
|
|
1761
|
+
return throwDefaultError({
|
|
1796
1762
|
output,
|
|
1797
1763
|
parsedBody,
|
|
1798
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
1799
1764
|
errorCode,
|
|
1800
1765
|
});
|
|
1801
1766
|
}
|
|
@@ -1811,7 +1776,7 @@ const de_DescribeConnectionsOnInterconnectCommand = async (output, context) => {
|
|
|
1811
1776
|
$metadata: deserializeMetadata(output),
|
|
1812
1777
|
...contents,
|
|
1813
1778
|
};
|
|
1814
|
-
return
|
|
1779
|
+
return response;
|
|
1815
1780
|
};
|
|
1816
1781
|
exports.de_DescribeConnectionsOnInterconnectCommand = de_DescribeConnectionsOnInterconnectCommand;
|
|
1817
1782
|
const de_DescribeConnectionsOnInterconnectCommandError = async (output, context) => {
|
|
@@ -1829,10 +1794,9 @@ const de_DescribeConnectionsOnInterconnectCommandError = async (output, context)
|
|
|
1829
1794
|
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
1830
1795
|
default:
|
|
1831
1796
|
const parsedBody = parsedOutput.body;
|
|
1832
|
-
|
|
1797
|
+
return throwDefaultError({
|
|
1833
1798
|
output,
|
|
1834
1799
|
parsedBody,
|
|
1835
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
1836
1800
|
errorCode,
|
|
1837
1801
|
});
|
|
1838
1802
|
}
|
|
@@ -1843,12 +1807,12 @@ const de_DescribeCustomerMetadataCommand = async (output, context) => {
|
|
|
1843
1807
|
}
|
|
1844
1808
|
const data = await parseBody(output.body, context);
|
|
1845
1809
|
let contents = {};
|
|
1846
|
-
contents =
|
|
1810
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1847
1811
|
const response = {
|
|
1848
1812
|
$metadata: deserializeMetadata(output),
|
|
1849
1813
|
...contents,
|
|
1850
1814
|
};
|
|
1851
|
-
return
|
|
1815
|
+
return response;
|
|
1852
1816
|
};
|
|
1853
1817
|
exports.de_DescribeCustomerMetadataCommand = de_DescribeCustomerMetadataCommand;
|
|
1854
1818
|
const de_DescribeCustomerMetadataCommandError = async (output, context) => {
|
|
@@ -1866,10 +1830,9 @@ const de_DescribeCustomerMetadataCommandError = async (output, context) => {
|
|
|
1866
1830
|
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
1867
1831
|
default:
|
|
1868
1832
|
const parsedBody = parsedOutput.body;
|
|
1869
|
-
|
|
1833
|
+
return throwDefaultError({
|
|
1870
1834
|
output,
|
|
1871
1835
|
parsedBody,
|
|
1872
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
1873
1836
|
errorCode,
|
|
1874
1837
|
});
|
|
1875
1838
|
}
|
|
@@ -1880,12 +1843,12 @@ const de_DescribeDirectConnectGatewayAssociationProposalsCommand = async (output
|
|
|
1880
1843
|
}
|
|
1881
1844
|
const data = await parseBody(output.body, context);
|
|
1882
1845
|
let contents = {};
|
|
1883
|
-
contents =
|
|
1846
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1884
1847
|
const response = {
|
|
1885
1848
|
$metadata: deserializeMetadata(output),
|
|
1886
1849
|
...contents,
|
|
1887
1850
|
};
|
|
1888
|
-
return
|
|
1851
|
+
return response;
|
|
1889
1852
|
};
|
|
1890
1853
|
exports.de_DescribeDirectConnectGatewayAssociationProposalsCommand = de_DescribeDirectConnectGatewayAssociationProposalsCommand;
|
|
1891
1854
|
const de_DescribeDirectConnectGatewayAssociationProposalsCommandError = async (output, context) => {
|
|
@@ -1903,10 +1866,9 @@ const de_DescribeDirectConnectGatewayAssociationProposalsCommandError = async (o
|
|
|
1903
1866
|
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
1904
1867
|
default:
|
|
1905
1868
|
const parsedBody = parsedOutput.body;
|
|
1906
|
-
|
|
1869
|
+
return throwDefaultError({
|
|
1907
1870
|
output,
|
|
1908
1871
|
parsedBody,
|
|
1909
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
1910
1872
|
errorCode,
|
|
1911
1873
|
});
|
|
1912
1874
|
}
|
|
@@ -1917,12 +1879,12 @@ const de_DescribeDirectConnectGatewayAssociationsCommand = async (output, contex
|
|
|
1917
1879
|
}
|
|
1918
1880
|
const data = await parseBody(output.body, context);
|
|
1919
1881
|
let contents = {};
|
|
1920
|
-
contents =
|
|
1882
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1921
1883
|
const response = {
|
|
1922
1884
|
$metadata: deserializeMetadata(output),
|
|
1923
1885
|
...contents,
|
|
1924
1886
|
};
|
|
1925
|
-
return
|
|
1887
|
+
return response;
|
|
1926
1888
|
};
|
|
1927
1889
|
exports.de_DescribeDirectConnectGatewayAssociationsCommand = de_DescribeDirectConnectGatewayAssociationsCommand;
|
|
1928
1890
|
const de_DescribeDirectConnectGatewayAssociationsCommandError = async (output, context) => {
|
|
@@ -1940,10 +1902,9 @@ const de_DescribeDirectConnectGatewayAssociationsCommandError = async (output, c
|
|
|
1940
1902
|
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
1941
1903
|
default:
|
|
1942
1904
|
const parsedBody = parsedOutput.body;
|
|
1943
|
-
|
|
1905
|
+
return throwDefaultError({
|
|
1944
1906
|
output,
|
|
1945
1907
|
parsedBody,
|
|
1946
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
1947
1908
|
errorCode,
|
|
1948
1909
|
});
|
|
1949
1910
|
}
|
|
@@ -1954,12 +1915,12 @@ const de_DescribeDirectConnectGatewayAttachmentsCommand = async (output, context
|
|
|
1954
1915
|
}
|
|
1955
1916
|
const data = await parseBody(output.body, context);
|
|
1956
1917
|
let contents = {};
|
|
1957
|
-
contents =
|
|
1918
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1958
1919
|
const response = {
|
|
1959
1920
|
$metadata: deserializeMetadata(output),
|
|
1960
1921
|
...contents,
|
|
1961
1922
|
};
|
|
1962
|
-
return
|
|
1923
|
+
return response;
|
|
1963
1924
|
};
|
|
1964
1925
|
exports.de_DescribeDirectConnectGatewayAttachmentsCommand = de_DescribeDirectConnectGatewayAttachmentsCommand;
|
|
1965
1926
|
const de_DescribeDirectConnectGatewayAttachmentsCommandError = async (output, context) => {
|
|
@@ -1977,10 +1938,9 @@ const de_DescribeDirectConnectGatewayAttachmentsCommandError = async (output, co
|
|
|
1977
1938
|
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
1978
1939
|
default:
|
|
1979
1940
|
const parsedBody = parsedOutput.body;
|
|
1980
|
-
|
|
1941
|
+
return throwDefaultError({
|
|
1981
1942
|
output,
|
|
1982
1943
|
parsedBody,
|
|
1983
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
1984
1944
|
errorCode,
|
|
1985
1945
|
});
|
|
1986
1946
|
}
|
|
@@ -1991,12 +1951,12 @@ const de_DescribeDirectConnectGatewaysCommand = async (output, context) => {
|
|
|
1991
1951
|
}
|
|
1992
1952
|
const data = await parseBody(output.body, context);
|
|
1993
1953
|
let contents = {};
|
|
1994
|
-
contents =
|
|
1954
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1995
1955
|
const response = {
|
|
1996
1956
|
$metadata: deserializeMetadata(output),
|
|
1997
1957
|
...contents,
|
|
1998
1958
|
};
|
|
1999
|
-
return
|
|
1959
|
+
return response;
|
|
2000
1960
|
};
|
|
2001
1961
|
exports.de_DescribeDirectConnectGatewaysCommand = de_DescribeDirectConnectGatewaysCommand;
|
|
2002
1962
|
const de_DescribeDirectConnectGatewaysCommandError = async (output, context) => {
|
|
@@ -2014,10 +1974,9 @@ const de_DescribeDirectConnectGatewaysCommandError = async (output, context) =>
|
|
|
2014
1974
|
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
2015
1975
|
default:
|
|
2016
1976
|
const parsedBody = parsedOutput.body;
|
|
2017
|
-
|
|
1977
|
+
return throwDefaultError({
|
|
2018
1978
|
output,
|
|
2019
1979
|
parsedBody,
|
|
2020
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
2021
1980
|
errorCode,
|
|
2022
1981
|
});
|
|
2023
1982
|
}
|
|
@@ -2033,7 +1992,7 @@ const de_DescribeHostedConnectionsCommand = async (output, context) => {
|
|
|
2033
1992
|
$metadata: deserializeMetadata(output),
|
|
2034
1993
|
...contents,
|
|
2035
1994
|
};
|
|
2036
|
-
return
|
|
1995
|
+
return response;
|
|
2037
1996
|
};
|
|
2038
1997
|
exports.de_DescribeHostedConnectionsCommand = de_DescribeHostedConnectionsCommand;
|
|
2039
1998
|
const de_DescribeHostedConnectionsCommandError = async (output, context) => {
|
|
@@ -2051,10 +2010,9 @@ const de_DescribeHostedConnectionsCommandError = async (output, context) => {
|
|
|
2051
2010
|
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
2052
2011
|
default:
|
|
2053
2012
|
const parsedBody = parsedOutput.body;
|
|
2054
|
-
|
|
2013
|
+
return throwDefaultError({
|
|
2055
2014
|
output,
|
|
2056
2015
|
parsedBody,
|
|
2057
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
2058
2016
|
errorCode,
|
|
2059
2017
|
});
|
|
2060
2018
|
}
|
|
@@ -2070,7 +2028,7 @@ const de_DescribeInterconnectLoaCommand = async (output, context) => {
|
|
|
2070
2028
|
$metadata: deserializeMetadata(output),
|
|
2071
2029
|
...contents,
|
|
2072
2030
|
};
|
|
2073
|
-
return
|
|
2031
|
+
return response;
|
|
2074
2032
|
};
|
|
2075
2033
|
exports.de_DescribeInterconnectLoaCommand = de_DescribeInterconnectLoaCommand;
|
|
2076
2034
|
const de_DescribeInterconnectLoaCommandError = async (output, context) => {
|
|
@@ -2088,10 +2046,9 @@ const de_DescribeInterconnectLoaCommandError = async (output, context) => {
|
|
|
2088
2046
|
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
2089
2047
|
default:
|
|
2090
2048
|
const parsedBody = parsedOutput.body;
|
|
2091
|
-
|
|
2049
|
+
return throwDefaultError({
|
|
2092
2050
|
output,
|
|
2093
2051
|
parsedBody,
|
|
2094
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
2095
2052
|
errorCode,
|
|
2096
2053
|
});
|
|
2097
2054
|
}
|
|
@@ -2107,7 +2064,7 @@ const de_DescribeInterconnectsCommand = async (output, context) => {
|
|
|
2107
2064
|
$metadata: deserializeMetadata(output),
|
|
2108
2065
|
...contents,
|
|
2109
2066
|
};
|
|
2110
|
-
return
|
|
2067
|
+
return response;
|
|
2111
2068
|
};
|
|
2112
2069
|
exports.de_DescribeInterconnectsCommand = de_DescribeInterconnectsCommand;
|
|
2113
2070
|
const de_DescribeInterconnectsCommandError = async (output, context) => {
|
|
@@ -2125,10 +2082,9 @@ const de_DescribeInterconnectsCommandError = async (output, context) => {
|
|
|
2125
2082
|
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
2126
2083
|
default:
|
|
2127
2084
|
const parsedBody = parsedOutput.body;
|
|
2128
|
-
|
|
2085
|
+
return throwDefaultError({
|
|
2129
2086
|
output,
|
|
2130
2087
|
parsedBody,
|
|
2131
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
2132
2088
|
errorCode,
|
|
2133
2089
|
});
|
|
2134
2090
|
}
|
|
@@ -2144,7 +2100,7 @@ const de_DescribeLagsCommand = async (output, context) => {
|
|
|
2144
2100
|
$metadata: deserializeMetadata(output),
|
|
2145
2101
|
...contents,
|
|
2146
2102
|
};
|
|
2147
|
-
return
|
|
2103
|
+
return response;
|
|
2148
2104
|
};
|
|
2149
2105
|
exports.de_DescribeLagsCommand = de_DescribeLagsCommand;
|
|
2150
2106
|
const de_DescribeLagsCommandError = async (output, context) => {
|
|
@@ -2162,10 +2118,9 @@ const de_DescribeLagsCommandError = async (output, context) => {
|
|
|
2162
2118
|
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
2163
2119
|
default:
|
|
2164
2120
|
const parsedBody = parsedOutput.body;
|
|
2165
|
-
|
|
2121
|
+
return throwDefaultError({
|
|
2166
2122
|
output,
|
|
2167
2123
|
parsedBody,
|
|
2168
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
2169
2124
|
errorCode,
|
|
2170
2125
|
});
|
|
2171
2126
|
}
|
|
@@ -2181,7 +2136,7 @@ const de_DescribeLoaCommand = async (output, context) => {
|
|
|
2181
2136
|
$metadata: deserializeMetadata(output),
|
|
2182
2137
|
...contents,
|
|
2183
2138
|
};
|
|
2184
|
-
return
|
|
2139
|
+
return response;
|
|
2185
2140
|
};
|
|
2186
2141
|
exports.de_DescribeLoaCommand = de_DescribeLoaCommand;
|
|
2187
2142
|
const de_DescribeLoaCommandError = async (output, context) => {
|
|
@@ -2199,10 +2154,9 @@ const de_DescribeLoaCommandError = async (output, context) => {
|
|
|
2199
2154
|
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
2200
2155
|
default:
|
|
2201
2156
|
const parsedBody = parsedOutput.body;
|
|
2202
|
-
|
|
2157
|
+
return throwDefaultError({
|
|
2203
2158
|
output,
|
|
2204
2159
|
parsedBody,
|
|
2205
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
2206
2160
|
errorCode,
|
|
2207
2161
|
});
|
|
2208
2162
|
}
|
|
@@ -2213,12 +2167,12 @@ const de_DescribeLocationsCommand = async (output, context) => {
|
|
|
2213
2167
|
}
|
|
2214
2168
|
const data = await parseBody(output.body, context);
|
|
2215
2169
|
let contents = {};
|
|
2216
|
-
contents =
|
|
2170
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2217
2171
|
const response = {
|
|
2218
2172
|
$metadata: deserializeMetadata(output),
|
|
2219
2173
|
...contents,
|
|
2220
2174
|
};
|
|
2221
|
-
return
|
|
2175
|
+
return response;
|
|
2222
2176
|
};
|
|
2223
2177
|
exports.de_DescribeLocationsCommand = de_DescribeLocationsCommand;
|
|
2224
2178
|
const de_DescribeLocationsCommandError = async (output, context) => {
|
|
@@ -2236,10 +2190,9 @@ const de_DescribeLocationsCommandError = async (output, context) => {
|
|
|
2236
2190
|
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
2237
2191
|
default:
|
|
2238
2192
|
const parsedBody = parsedOutput.body;
|
|
2239
|
-
|
|
2193
|
+
return throwDefaultError({
|
|
2240
2194
|
output,
|
|
2241
2195
|
parsedBody,
|
|
2242
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
2243
2196
|
errorCode,
|
|
2244
2197
|
});
|
|
2245
2198
|
}
|
|
@@ -2250,12 +2203,12 @@ const de_DescribeRouterConfigurationCommand = async (output, context) => {
|
|
|
2250
2203
|
}
|
|
2251
2204
|
const data = await parseBody(output.body, context);
|
|
2252
2205
|
let contents = {};
|
|
2253
|
-
contents =
|
|
2206
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2254
2207
|
const response = {
|
|
2255
2208
|
$metadata: deserializeMetadata(output),
|
|
2256
2209
|
...contents,
|
|
2257
2210
|
};
|
|
2258
|
-
return
|
|
2211
|
+
return response;
|
|
2259
2212
|
};
|
|
2260
2213
|
exports.de_DescribeRouterConfigurationCommand = de_DescribeRouterConfigurationCommand;
|
|
2261
2214
|
const de_DescribeRouterConfigurationCommandError = async (output, context) => {
|
|
@@ -2273,10 +2226,9 @@ const de_DescribeRouterConfigurationCommandError = async (output, context) => {
|
|
|
2273
2226
|
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
2274
2227
|
default:
|
|
2275
2228
|
const parsedBody = parsedOutput.body;
|
|
2276
|
-
|
|
2229
|
+
return throwDefaultError({
|
|
2277
2230
|
output,
|
|
2278
2231
|
parsedBody,
|
|
2279
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
2280
2232
|
errorCode,
|
|
2281
2233
|
});
|
|
2282
2234
|
}
|
|
@@ -2287,12 +2239,12 @@ const de_DescribeTagsCommand = async (output, context) => {
|
|
|
2287
2239
|
}
|
|
2288
2240
|
const data = await parseBody(output.body, context);
|
|
2289
2241
|
let contents = {};
|
|
2290
|
-
contents =
|
|
2242
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2291
2243
|
const response = {
|
|
2292
2244
|
$metadata: deserializeMetadata(output),
|
|
2293
2245
|
...contents,
|
|
2294
2246
|
};
|
|
2295
|
-
return
|
|
2247
|
+
return response;
|
|
2296
2248
|
};
|
|
2297
2249
|
exports.de_DescribeTagsCommand = de_DescribeTagsCommand;
|
|
2298
2250
|
const de_DescribeTagsCommandError = async (output, context) => {
|
|
@@ -2310,10 +2262,9 @@ const de_DescribeTagsCommandError = async (output, context) => {
|
|
|
2310
2262
|
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
2311
2263
|
default:
|
|
2312
2264
|
const parsedBody = parsedOutput.body;
|
|
2313
|
-
|
|
2265
|
+
return throwDefaultError({
|
|
2314
2266
|
output,
|
|
2315
2267
|
parsedBody,
|
|
2316
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
2317
2268
|
errorCode,
|
|
2318
2269
|
});
|
|
2319
2270
|
}
|
|
@@ -2324,12 +2275,12 @@ const de_DescribeVirtualGatewaysCommand = async (output, context) => {
|
|
|
2324
2275
|
}
|
|
2325
2276
|
const data = await parseBody(output.body, context);
|
|
2326
2277
|
let contents = {};
|
|
2327
|
-
contents =
|
|
2278
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2328
2279
|
const response = {
|
|
2329
2280
|
$metadata: deserializeMetadata(output),
|
|
2330
2281
|
...contents,
|
|
2331
2282
|
};
|
|
2332
|
-
return
|
|
2283
|
+
return response;
|
|
2333
2284
|
};
|
|
2334
2285
|
exports.de_DescribeVirtualGatewaysCommand = de_DescribeVirtualGatewaysCommand;
|
|
2335
2286
|
const de_DescribeVirtualGatewaysCommandError = async (output, context) => {
|
|
@@ -2347,10 +2298,9 @@ const de_DescribeVirtualGatewaysCommandError = async (output, context) => {
|
|
|
2347
2298
|
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
2348
2299
|
default:
|
|
2349
2300
|
const parsedBody = parsedOutput.body;
|
|
2350
|
-
|
|
2301
|
+
return throwDefaultError({
|
|
2351
2302
|
output,
|
|
2352
2303
|
parsedBody,
|
|
2353
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
2354
2304
|
errorCode,
|
|
2355
2305
|
});
|
|
2356
2306
|
}
|
|
@@ -2361,12 +2311,12 @@ const de_DescribeVirtualInterfacesCommand = async (output, context) => {
|
|
|
2361
2311
|
}
|
|
2362
2312
|
const data = await parseBody(output.body, context);
|
|
2363
2313
|
let contents = {};
|
|
2364
|
-
contents =
|
|
2314
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2365
2315
|
const response = {
|
|
2366
2316
|
$metadata: deserializeMetadata(output),
|
|
2367
2317
|
...contents,
|
|
2368
2318
|
};
|
|
2369
|
-
return
|
|
2319
|
+
return response;
|
|
2370
2320
|
};
|
|
2371
2321
|
exports.de_DescribeVirtualInterfacesCommand = de_DescribeVirtualInterfacesCommand;
|
|
2372
2322
|
const de_DescribeVirtualInterfacesCommandError = async (output, context) => {
|
|
@@ -2384,10 +2334,9 @@ const de_DescribeVirtualInterfacesCommandError = async (output, context) => {
|
|
|
2384
2334
|
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
2385
2335
|
default:
|
|
2386
2336
|
const parsedBody = parsedOutput.body;
|
|
2387
|
-
|
|
2337
|
+
return throwDefaultError({
|
|
2388
2338
|
output,
|
|
2389
2339
|
parsedBody,
|
|
2390
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
2391
2340
|
errorCode,
|
|
2392
2341
|
});
|
|
2393
2342
|
}
|
|
@@ -2403,7 +2352,7 @@ const de_DisassociateConnectionFromLagCommand = async (output, context) => {
|
|
|
2403
2352
|
$metadata: deserializeMetadata(output),
|
|
2404
2353
|
...contents,
|
|
2405
2354
|
};
|
|
2406
|
-
return
|
|
2355
|
+
return response;
|
|
2407
2356
|
};
|
|
2408
2357
|
exports.de_DisassociateConnectionFromLagCommand = de_DisassociateConnectionFromLagCommand;
|
|
2409
2358
|
const de_DisassociateConnectionFromLagCommandError = async (output, context) => {
|
|
@@ -2421,10 +2370,9 @@ const de_DisassociateConnectionFromLagCommandError = async (output, context) =>
|
|
|
2421
2370
|
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
2422
2371
|
default:
|
|
2423
2372
|
const parsedBody = parsedOutput.body;
|
|
2424
|
-
|
|
2373
|
+
return throwDefaultError({
|
|
2425
2374
|
output,
|
|
2426
2375
|
parsedBody,
|
|
2427
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
2428
2376
|
errorCode,
|
|
2429
2377
|
});
|
|
2430
2378
|
}
|
|
@@ -2435,12 +2383,12 @@ const de_DisassociateMacSecKeyCommand = async (output, context) => {
|
|
|
2435
2383
|
}
|
|
2436
2384
|
const data = await parseBody(output.body, context);
|
|
2437
2385
|
let contents = {};
|
|
2438
|
-
contents =
|
|
2386
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2439
2387
|
const response = {
|
|
2440
2388
|
$metadata: deserializeMetadata(output),
|
|
2441
2389
|
...contents,
|
|
2442
2390
|
};
|
|
2443
|
-
return
|
|
2391
|
+
return response;
|
|
2444
2392
|
};
|
|
2445
2393
|
exports.de_DisassociateMacSecKeyCommand = de_DisassociateMacSecKeyCommand;
|
|
2446
2394
|
const de_DisassociateMacSecKeyCommandError = async (output, context) => {
|
|
@@ -2458,10 +2406,9 @@ const de_DisassociateMacSecKeyCommandError = async (output, context) => {
|
|
|
2458
2406
|
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
2459
2407
|
default:
|
|
2460
2408
|
const parsedBody = parsedOutput.body;
|
|
2461
|
-
|
|
2409
|
+
return throwDefaultError({
|
|
2462
2410
|
output,
|
|
2463
2411
|
parsedBody,
|
|
2464
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
2465
2412
|
errorCode,
|
|
2466
2413
|
});
|
|
2467
2414
|
}
|
|
@@ -2477,7 +2424,7 @@ const de_ListVirtualInterfaceTestHistoryCommand = async (output, context) => {
|
|
|
2477
2424
|
$metadata: deserializeMetadata(output),
|
|
2478
2425
|
...contents,
|
|
2479
2426
|
};
|
|
2480
|
-
return
|
|
2427
|
+
return response;
|
|
2481
2428
|
};
|
|
2482
2429
|
exports.de_ListVirtualInterfaceTestHistoryCommand = de_ListVirtualInterfaceTestHistoryCommand;
|
|
2483
2430
|
const de_ListVirtualInterfaceTestHistoryCommandError = async (output, context) => {
|
|
@@ -2495,10 +2442,9 @@ const de_ListVirtualInterfaceTestHistoryCommandError = async (output, context) =
|
|
|
2495
2442
|
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
2496
2443
|
default:
|
|
2497
2444
|
const parsedBody = parsedOutput.body;
|
|
2498
|
-
|
|
2445
|
+
return throwDefaultError({
|
|
2499
2446
|
output,
|
|
2500
2447
|
parsedBody,
|
|
2501
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
2502
2448
|
errorCode,
|
|
2503
2449
|
});
|
|
2504
2450
|
}
|
|
@@ -2514,7 +2460,7 @@ const de_StartBgpFailoverTestCommand = async (output, context) => {
|
|
|
2514
2460
|
$metadata: deserializeMetadata(output),
|
|
2515
2461
|
...contents,
|
|
2516
2462
|
};
|
|
2517
|
-
return
|
|
2463
|
+
return response;
|
|
2518
2464
|
};
|
|
2519
2465
|
exports.de_StartBgpFailoverTestCommand = de_StartBgpFailoverTestCommand;
|
|
2520
2466
|
const de_StartBgpFailoverTestCommandError = async (output, context) => {
|
|
@@ -2532,10 +2478,9 @@ const de_StartBgpFailoverTestCommandError = async (output, context) => {
|
|
|
2532
2478
|
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
2533
2479
|
default:
|
|
2534
2480
|
const parsedBody = parsedOutput.body;
|
|
2535
|
-
|
|
2481
|
+
return throwDefaultError({
|
|
2536
2482
|
output,
|
|
2537
2483
|
parsedBody,
|
|
2538
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
2539
2484
|
errorCode,
|
|
2540
2485
|
});
|
|
2541
2486
|
}
|
|
@@ -2551,7 +2496,7 @@ const de_StopBgpFailoverTestCommand = async (output, context) => {
|
|
|
2551
2496
|
$metadata: deserializeMetadata(output),
|
|
2552
2497
|
...contents,
|
|
2553
2498
|
};
|
|
2554
|
-
return
|
|
2499
|
+
return response;
|
|
2555
2500
|
};
|
|
2556
2501
|
exports.de_StopBgpFailoverTestCommand = de_StopBgpFailoverTestCommand;
|
|
2557
2502
|
const de_StopBgpFailoverTestCommandError = async (output, context) => {
|
|
@@ -2569,10 +2514,9 @@ const de_StopBgpFailoverTestCommandError = async (output, context) => {
|
|
|
2569
2514
|
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
2570
2515
|
default:
|
|
2571
2516
|
const parsedBody = parsedOutput.body;
|
|
2572
|
-
|
|
2517
|
+
return throwDefaultError({
|
|
2573
2518
|
output,
|
|
2574
2519
|
parsedBody,
|
|
2575
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
2576
2520
|
errorCode,
|
|
2577
2521
|
});
|
|
2578
2522
|
}
|
|
@@ -2583,12 +2527,12 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
2583
2527
|
}
|
|
2584
2528
|
const data = await parseBody(output.body, context);
|
|
2585
2529
|
let contents = {};
|
|
2586
|
-
contents =
|
|
2530
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2587
2531
|
const response = {
|
|
2588
2532
|
$metadata: deserializeMetadata(output),
|
|
2589
2533
|
...contents,
|
|
2590
2534
|
};
|
|
2591
|
-
return
|
|
2535
|
+
return response;
|
|
2592
2536
|
};
|
|
2593
2537
|
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
2594
2538
|
const de_TagResourceCommandError = async (output, context) => {
|
|
@@ -2612,10 +2556,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
2612
2556
|
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
2613
2557
|
default:
|
|
2614
2558
|
const parsedBody = parsedOutput.body;
|
|
2615
|
-
|
|
2559
|
+
return throwDefaultError({
|
|
2616
2560
|
output,
|
|
2617
2561
|
parsedBody,
|
|
2618
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
2619
2562
|
errorCode,
|
|
2620
2563
|
});
|
|
2621
2564
|
}
|
|
@@ -2626,12 +2569,12 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
2626
2569
|
}
|
|
2627
2570
|
const data = await parseBody(output.body, context);
|
|
2628
2571
|
let contents = {};
|
|
2629
|
-
contents =
|
|
2572
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2630
2573
|
const response = {
|
|
2631
2574
|
$metadata: deserializeMetadata(output),
|
|
2632
2575
|
...contents,
|
|
2633
2576
|
};
|
|
2634
|
-
return
|
|
2577
|
+
return response;
|
|
2635
2578
|
};
|
|
2636
2579
|
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
2637
2580
|
const de_UntagResourceCommandError = async (output, context) => {
|
|
@@ -2649,10 +2592,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
2649
2592
|
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
2650
2593
|
default:
|
|
2651
2594
|
const parsedBody = parsedOutput.body;
|
|
2652
|
-
|
|
2595
|
+
return throwDefaultError({
|
|
2653
2596
|
output,
|
|
2654
2597
|
parsedBody,
|
|
2655
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
2656
2598
|
errorCode,
|
|
2657
2599
|
});
|
|
2658
2600
|
}
|
|
@@ -2668,7 +2610,7 @@ const de_UpdateConnectionCommand = async (output, context) => {
|
|
|
2668
2610
|
$metadata: deserializeMetadata(output),
|
|
2669
2611
|
...contents,
|
|
2670
2612
|
};
|
|
2671
|
-
return
|
|
2613
|
+
return response;
|
|
2672
2614
|
};
|
|
2673
2615
|
exports.de_UpdateConnectionCommand = de_UpdateConnectionCommand;
|
|
2674
2616
|
const de_UpdateConnectionCommandError = async (output, context) => {
|
|
@@ -2686,10 +2628,9 @@ const de_UpdateConnectionCommandError = async (output, context) => {
|
|
|
2686
2628
|
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
2687
2629
|
default:
|
|
2688
2630
|
const parsedBody = parsedOutput.body;
|
|
2689
|
-
|
|
2631
|
+
return throwDefaultError({
|
|
2690
2632
|
output,
|
|
2691
2633
|
parsedBody,
|
|
2692
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
2693
2634
|
errorCode,
|
|
2694
2635
|
});
|
|
2695
2636
|
}
|
|
@@ -2700,12 +2641,12 @@ const de_UpdateDirectConnectGatewayCommand = async (output, context) => {
|
|
|
2700
2641
|
}
|
|
2701
2642
|
const data = await parseBody(output.body, context);
|
|
2702
2643
|
let contents = {};
|
|
2703
|
-
contents =
|
|
2644
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2704
2645
|
const response = {
|
|
2705
2646
|
$metadata: deserializeMetadata(output),
|
|
2706
2647
|
...contents,
|
|
2707
2648
|
};
|
|
2708
|
-
return
|
|
2649
|
+
return response;
|
|
2709
2650
|
};
|
|
2710
2651
|
exports.de_UpdateDirectConnectGatewayCommand = de_UpdateDirectConnectGatewayCommand;
|
|
2711
2652
|
const de_UpdateDirectConnectGatewayCommandError = async (output, context) => {
|
|
@@ -2723,10 +2664,9 @@ const de_UpdateDirectConnectGatewayCommandError = async (output, context) => {
|
|
|
2723
2664
|
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
2724
2665
|
default:
|
|
2725
2666
|
const parsedBody = parsedOutput.body;
|
|
2726
|
-
|
|
2667
|
+
return throwDefaultError({
|
|
2727
2668
|
output,
|
|
2728
2669
|
parsedBody,
|
|
2729
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
2730
2670
|
errorCode,
|
|
2731
2671
|
});
|
|
2732
2672
|
}
|
|
@@ -2737,12 +2677,12 @@ const de_UpdateDirectConnectGatewayAssociationCommand = async (output, context)
|
|
|
2737
2677
|
}
|
|
2738
2678
|
const data = await parseBody(output.body, context);
|
|
2739
2679
|
let contents = {};
|
|
2740
|
-
contents =
|
|
2680
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2741
2681
|
const response = {
|
|
2742
2682
|
$metadata: deserializeMetadata(output),
|
|
2743
2683
|
...contents,
|
|
2744
2684
|
};
|
|
2745
|
-
return
|
|
2685
|
+
return response;
|
|
2746
2686
|
};
|
|
2747
2687
|
exports.de_UpdateDirectConnectGatewayAssociationCommand = de_UpdateDirectConnectGatewayAssociationCommand;
|
|
2748
2688
|
const de_UpdateDirectConnectGatewayAssociationCommandError = async (output, context) => {
|
|
@@ -2760,10 +2700,9 @@ const de_UpdateDirectConnectGatewayAssociationCommandError = async (output, cont
|
|
|
2760
2700
|
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
2761
2701
|
default:
|
|
2762
2702
|
const parsedBody = parsedOutput.body;
|
|
2763
|
-
|
|
2703
|
+
return throwDefaultError({
|
|
2764
2704
|
output,
|
|
2765
2705
|
parsedBody,
|
|
2766
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
2767
2706
|
errorCode,
|
|
2768
2707
|
});
|
|
2769
2708
|
}
|
|
@@ -2779,7 +2718,7 @@ const de_UpdateLagCommand = async (output, context) => {
|
|
|
2779
2718
|
$metadata: deserializeMetadata(output),
|
|
2780
2719
|
...contents,
|
|
2781
2720
|
};
|
|
2782
|
-
return
|
|
2721
|
+
return response;
|
|
2783
2722
|
};
|
|
2784
2723
|
exports.de_UpdateLagCommand = de_UpdateLagCommand;
|
|
2785
2724
|
const de_UpdateLagCommandError = async (output, context) => {
|
|
@@ -2797,10 +2736,9 @@ const de_UpdateLagCommandError = async (output, context) => {
|
|
|
2797
2736
|
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
2798
2737
|
default:
|
|
2799
2738
|
const parsedBody = parsedOutput.body;
|
|
2800
|
-
|
|
2739
|
+
return throwDefaultError({
|
|
2801
2740
|
output,
|
|
2802
2741
|
parsedBody,
|
|
2803
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
2804
2742
|
errorCode,
|
|
2805
2743
|
});
|
|
2806
2744
|
}
|
|
@@ -2811,12 +2749,12 @@ const de_UpdateVirtualInterfaceAttributesCommand = async (output, context) => {
|
|
|
2811
2749
|
}
|
|
2812
2750
|
const data = await parseBody(output.body, context);
|
|
2813
2751
|
let contents = {};
|
|
2814
|
-
contents =
|
|
2752
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2815
2753
|
const response = {
|
|
2816
2754
|
$metadata: deserializeMetadata(output),
|
|
2817
2755
|
...contents,
|
|
2818
2756
|
};
|
|
2819
|
-
return
|
|
2757
|
+
return response;
|
|
2820
2758
|
};
|
|
2821
2759
|
exports.de_UpdateVirtualInterfaceAttributesCommand = de_UpdateVirtualInterfaceAttributesCommand;
|
|
2822
2760
|
const de_UpdateVirtualInterfaceAttributesCommandError = async (output, context) => {
|
|
@@ -2834,17 +2772,16 @@ const de_UpdateVirtualInterfaceAttributesCommandError = async (output, context)
|
|
|
2834
2772
|
throw await de_DirectConnectServerExceptionRes(parsedOutput, context);
|
|
2835
2773
|
default:
|
|
2836
2774
|
const parsedBody = parsedOutput.body;
|
|
2837
|
-
|
|
2775
|
+
return throwDefaultError({
|
|
2838
2776
|
output,
|
|
2839
2777
|
parsedBody,
|
|
2840
|
-
exceptionCtor: DirectConnectServiceException_1.DirectConnectServiceException,
|
|
2841
2778
|
errorCode,
|
|
2842
2779
|
});
|
|
2843
2780
|
}
|
|
2844
2781
|
};
|
|
2845
2782
|
const de_DirectConnectClientExceptionRes = async (parsedOutput, context) => {
|
|
2846
2783
|
const body = parsedOutput.body;
|
|
2847
|
-
const deserialized =
|
|
2784
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
2848
2785
|
const exception = new models_0_1.DirectConnectClientException({
|
|
2849
2786
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2850
2787
|
...deserialized,
|
|
@@ -2853,7 +2790,7 @@ const de_DirectConnectClientExceptionRes = async (parsedOutput, context) => {
|
|
|
2853
2790
|
};
|
|
2854
2791
|
const de_DirectConnectServerExceptionRes = async (parsedOutput, context) => {
|
|
2855
2792
|
const body = parsedOutput.body;
|
|
2856
|
-
const deserialized =
|
|
2793
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
2857
2794
|
const exception = new models_0_1.DirectConnectServerException({
|
|
2858
2795
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2859
2796
|
...deserialized,
|
|
@@ -2862,7 +2799,7 @@ const de_DirectConnectServerExceptionRes = async (parsedOutput, context) => {
|
|
|
2862
2799
|
};
|
|
2863
2800
|
const de_DuplicateTagKeysExceptionRes = async (parsedOutput, context) => {
|
|
2864
2801
|
const body = parsedOutput.body;
|
|
2865
|
-
const deserialized =
|
|
2802
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
2866
2803
|
const exception = new models_0_1.DuplicateTagKeysException({
|
|
2867
2804
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2868
2805
|
...deserialized,
|
|
@@ -2871,1337 +2808,170 @@ const de_DuplicateTagKeysExceptionRes = async (parsedOutput, context) => {
|
|
|
2871
2808
|
};
|
|
2872
2809
|
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
2873
2810
|
const body = parsedOutput.body;
|
|
2874
|
-
const deserialized =
|
|
2811
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
2875
2812
|
const exception = new models_0_1.TooManyTagsException({
|
|
2876
2813
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2877
2814
|
...deserialized,
|
|
2878
2815
|
});
|
|
2879
2816
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2880
2817
|
};
|
|
2881
|
-
const se_AcceptDirectConnectGatewayAssociationProposalRequest = (input, context) => {
|
|
2882
|
-
return {
|
|
2883
|
-
...(input.associatedGatewayOwnerAccount != null && {
|
|
2884
|
-
associatedGatewayOwnerAccount: input.associatedGatewayOwnerAccount,
|
|
2885
|
-
}),
|
|
2886
|
-
...(input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId }),
|
|
2887
|
-
...(input.overrideAllowedPrefixesToDirectConnectGateway != null && {
|
|
2888
|
-
overrideAllowedPrefixesToDirectConnectGateway: se_RouteFilterPrefixList(input.overrideAllowedPrefixesToDirectConnectGateway, context),
|
|
2889
|
-
}),
|
|
2890
|
-
...(input.proposalId != null && { proposalId: input.proposalId }),
|
|
2891
|
-
};
|
|
2892
|
-
};
|
|
2893
|
-
const se_AllocateConnectionOnInterconnectRequest = (input, context) => {
|
|
2894
|
-
return {
|
|
2895
|
-
...(input.bandwidth != null && { bandwidth: input.bandwidth }),
|
|
2896
|
-
...(input.connectionName != null && { connectionName: input.connectionName }),
|
|
2897
|
-
...(input.interconnectId != null && { interconnectId: input.interconnectId }),
|
|
2898
|
-
...(input.ownerAccount != null && { ownerAccount: input.ownerAccount }),
|
|
2899
|
-
...(input.vlan != null && { vlan: input.vlan }),
|
|
2900
|
-
};
|
|
2901
|
-
};
|
|
2902
|
-
const se_AllocateHostedConnectionRequest = (input, context) => {
|
|
2903
|
-
return {
|
|
2904
|
-
...(input.bandwidth != null && { bandwidth: input.bandwidth }),
|
|
2905
|
-
...(input.connectionId != null && { connectionId: input.connectionId }),
|
|
2906
|
-
...(input.connectionName != null && { connectionName: input.connectionName }),
|
|
2907
|
-
...(input.ownerAccount != null && { ownerAccount: input.ownerAccount }),
|
|
2908
|
-
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
2909
|
-
...(input.vlan != null && { vlan: input.vlan }),
|
|
2910
|
-
};
|
|
2911
|
-
};
|
|
2912
|
-
const se_AllocatePrivateVirtualInterfaceRequest = (input, context) => {
|
|
2913
|
-
return {
|
|
2914
|
-
...(input.connectionId != null && { connectionId: input.connectionId }),
|
|
2915
|
-
...(input.newPrivateVirtualInterfaceAllocation != null && {
|
|
2916
|
-
newPrivateVirtualInterfaceAllocation: se_NewPrivateVirtualInterfaceAllocation(input.newPrivateVirtualInterfaceAllocation, context),
|
|
2917
|
-
}),
|
|
2918
|
-
...(input.ownerAccount != null && { ownerAccount: input.ownerAccount }),
|
|
2919
|
-
};
|
|
2920
|
-
};
|
|
2921
|
-
const se_AllocatePublicVirtualInterfaceRequest = (input, context) => {
|
|
2922
|
-
return {
|
|
2923
|
-
...(input.connectionId != null && { connectionId: input.connectionId }),
|
|
2924
|
-
...(input.newPublicVirtualInterfaceAllocation != null && {
|
|
2925
|
-
newPublicVirtualInterfaceAllocation: se_NewPublicVirtualInterfaceAllocation(input.newPublicVirtualInterfaceAllocation, context),
|
|
2926
|
-
}),
|
|
2927
|
-
...(input.ownerAccount != null && { ownerAccount: input.ownerAccount }),
|
|
2928
|
-
};
|
|
2929
|
-
};
|
|
2930
|
-
const se_AllocateTransitVirtualInterfaceRequest = (input, context) => {
|
|
2931
|
-
return {
|
|
2932
|
-
...(input.connectionId != null && { connectionId: input.connectionId }),
|
|
2933
|
-
...(input.newTransitVirtualInterfaceAllocation != null && {
|
|
2934
|
-
newTransitVirtualInterfaceAllocation: se_NewTransitVirtualInterfaceAllocation(input.newTransitVirtualInterfaceAllocation, context),
|
|
2935
|
-
}),
|
|
2936
|
-
...(input.ownerAccount != null && { ownerAccount: input.ownerAccount }),
|
|
2937
|
-
};
|
|
2938
|
-
};
|
|
2939
|
-
const se_AssociateConnectionWithLagRequest = (input, context) => {
|
|
2940
|
-
return {
|
|
2941
|
-
...(input.connectionId != null && { connectionId: input.connectionId }),
|
|
2942
|
-
...(input.lagId != null && { lagId: input.lagId }),
|
|
2943
|
-
};
|
|
2944
|
-
};
|
|
2945
|
-
const se_AssociateHostedConnectionRequest = (input, context) => {
|
|
2946
|
-
return {
|
|
2947
|
-
...(input.connectionId != null && { connectionId: input.connectionId }),
|
|
2948
|
-
...(input.parentConnectionId != null && { parentConnectionId: input.parentConnectionId }),
|
|
2949
|
-
};
|
|
2950
|
-
};
|
|
2951
|
-
const se_AssociateMacSecKeyRequest = (input, context) => {
|
|
2952
|
-
return {
|
|
2953
|
-
...(input.cak != null && { cak: input.cak }),
|
|
2954
|
-
...(input.ckn != null && { ckn: input.ckn }),
|
|
2955
|
-
...(input.connectionId != null && { connectionId: input.connectionId }),
|
|
2956
|
-
...(input.secretARN != null && { secretARN: input.secretARN }),
|
|
2957
|
-
};
|
|
2958
|
-
};
|
|
2959
|
-
const se_AssociateVirtualInterfaceRequest = (input, context) => {
|
|
2960
|
-
return {
|
|
2961
|
-
...(input.connectionId != null && { connectionId: input.connectionId }),
|
|
2962
|
-
...(input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }),
|
|
2963
|
-
};
|
|
2964
|
-
};
|
|
2965
|
-
const se_BGPPeerIdList = (input, context) => {
|
|
2966
|
-
return input
|
|
2967
|
-
.filter((e) => e != null)
|
|
2968
|
-
.map((entry) => {
|
|
2969
|
-
return entry;
|
|
2970
|
-
});
|
|
2971
|
-
};
|
|
2972
|
-
const se_ConfirmConnectionRequest = (input, context) => {
|
|
2973
|
-
return {
|
|
2974
|
-
...(input.connectionId != null && { connectionId: input.connectionId }),
|
|
2975
|
-
};
|
|
2976
|
-
};
|
|
2977
|
-
const se_ConfirmCustomerAgreementRequest = (input, context) => {
|
|
2978
|
-
return {
|
|
2979
|
-
...(input.agreementName != null && { agreementName: input.agreementName }),
|
|
2980
|
-
};
|
|
2981
|
-
};
|
|
2982
|
-
const se_ConfirmPrivateVirtualInterfaceRequest = (input, context) => {
|
|
2983
|
-
return {
|
|
2984
|
-
...(input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId }),
|
|
2985
|
-
...(input.virtualGatewayId != null && { virtualGatewayId: input.virtualGatewayId }),
|
|
2986
|
-
...(input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }),
|
|
2987
|
-
};
|
|
2988
|
-
};
|
|
2989
|
-
const se_ConfirmPublicVirtualInterfaceRequest = (input, context) => {
|
|
2990
|
-
return {
|
|
2991
|
-
...(input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }),
|
|
2992
|
-
};
|
|
2993
|
-
};
|
|
2994
|
-
const se_ConfirmTransitVirtualInterfaceRequest = (input, context) => {
|
|
2995
|
-
return {
|
|
2996
|
-
...(input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId }),
|
|
2997
|
-
...(input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }),
|
|
2998
|
-
};
|
|
2999
|
-
};
|
|
3000
|
-
const se_CreateBGPPeerRequest = (input, context) => {
|
|
3001
|
-
return {
|
|
3002
|
-
...(input.newBGPPeer != null && { newBGPPeer: se_NewBGPPeer(input.newBGPPeer, context) }),
|
|
3003
|
-
...(input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }),
|
|
3004
|
-
};
|
|
3005
|
-
};
|
|
3006
|
-
const se_CreateConnectionRequest = (input, context) => {
|
|
3007
|
-
return {
|
|
3008
|
-
...(input.bandwidth != null && { bandwidth: input.bandwidth }),
|
|
3009
|
-
...(input.connectionName != null && { connectionName: input.connectionName }),
|
|
3010
|
-
...(input.lagId != null && { lagId: input.lagId }),
|
|
3011
|
-
...(input.location != null && { location: input.location }),
|
|
3012
|
-
...(input.providerName != null && { providerName: input.providerName }),
|
|
3013
|
-
...(input.requestMACSec != null && { requestMACSec: input.requestMACSec }),
|
|
3014
|
-
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
3015
|
-
};
|
|
3016
|
-
};
|
|
3017
|
-
const se_CreateDirectConnectGatewayAssociationProposalRequest = (input, context) => {
|
|
3018
|
-
return {
|
|
3019
|
-
...(input.addAllowedPrefixesToDirectConnectGateway != null && {
|
|
3020
|
-
addAllowedPrefixesToDirectConnectGateway: se_RouteFilterPrefixList(input.addAllowedPrefixesToDirectConnectGateway, context),
|
|
3021
|
-
}),
|
|
3022
|
-
...(input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId }),
|
|
3023
|
-
...(input.directConnectGatewayOwnerAccount != null && {
|
|
3024
|
-
directConnectGatewayOwnerAccount: input.directConnectGatewayOwnerAccount,
|
|
3025
|
-
}),
|
|
3026
|
-
...(input.gatewayId != null && { gatewayId: input.gatewayId }),
|
|
3027
|
-
...(input.removeAllowedPrefixesToDirectConnectGateway != null && {
|
|
3028
|
-
removeAllowedPrefixesToDirectConnectGateway: se_RouteFilterPrefixList(input.removeAllowedPrefixesToDirectConnectGateway, context),
|
|
3029
|
-
}),
|
|
3030
|
-
};
|
|
3031
|
-
};
|
|
3032
|
-
const se_CreateDirectConnectGatewayAssociationRequest = (input, context) => {
|
|
3033
|
-
return {
|
|
3034
|
-
...(input.addAllowedPrefixesToDirectConnectGateway != null && {
|
|
3035
|
-
addAllowedPrefixesToDirectConnectGateway: se_RouteFilterPrefixList(input.addAllowedPrefixesToDirectConnectGateway, context),
|
|
3036
|
-
}),
|
|
3037
|
-
...(input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId }),
|
|
3038
|
-
...(input.gatewayId != null && { gatewayId: input.gatewayId }),
|
|
3039
|
-
...(input.virtualGatewayId != null && { virtualGatewayId: input.virtualGatewayId }),
|
|
3040
|
-
};
|
|
3041
|
-
};
|
|
3042
|
-
const se_CreateDirectConnectGatewayRequest = (input, context) => {
|
|
3043
|
-
return {
|
|
3044
|
-
...(input.amazonSideAsn != null && { amazonSideAsn: input.amazonSideAsn }),
|
|
3045
|
-
...(input.directConnectGatewayName != null && { directConnectGatewayName: input.directConnectGatewayName }),
|
|
3046
|
-
};
|
|
3047
|
-
};
|
|
3048
|
-
const se_CreateInterconnectRequest = (input, context) => {
|
|
3049
|
-
return {
|
|
3050
|
-
...(input.bandwidth != null && { bandwidth: input.bandwidth }),
|
|
3051
|
-
...(input.interconnectName != null && { interconnectName: input.interconnectName }),
|
|
3052
|
-
...(input.lagId != null && { lagId: input.lagId }),
|
|
3053
|
-
...(input.location != null && { location: input.location }),
|
|
3054
|
-
...(input.providerName != null && { providerName: input.providerName }),
|
|
3055
|
-
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
3056
|
-
};
|
|
3057
|
-
};
|
|
3058
|
-
const se_CreateLagRequest = (input, context) => {
|
|
3059
|
-
return {
|
|
3060
|
-
...(input.childConnectionTags != null && { childConnectionTags: se_TagList(input.childConnectionTags, context) }),
|
|
3061
|
-
...(input.connectionId != null && { connectionId: input.connectionId }),
|
|
3062
|
-
...(input.connectionsBandwidth != null && { connectionsBandwidth: input.connectionsBandwidth }),
|
|
3063
|
-
...(input.lagName != null && { lagName: input.lagName }),
|
|
3064
|
-
...(input.location != null && { location: input.location }),
|
|
3065
|
-
...(input.numberOfConnections != null && { numberOfConnections: input.numberOfConnections }),
|
|
3066
|
-
...(input.providerName != null && { providerName: input.providerName }),
|
|
3067
|
-
...(input.requestMACSec != null && { requestMACSec: input.requestMACSec }),
|
|
3068
|
-
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
3069
|
-
};
|
|
3070
|
-
};
|
|
3071
|
-
const se_CreatePrivateVirtualInterfaceRequest = (input, context) => {
|
|
3072
|
-
return {
|
|
3073
|
-
...(input.connectionId != null && { connectionId: input.connectionId }),
|
|
3074
|
-
...(input.newPrivateVirtualInterface != null && {
|
|
3075
|
-
newPrivateVirtualInterface: se_NewPrivateVirtualInterface(input.newPrivateVirtualInterface, context),
|
|
3076
|
-
}),
|
|
3077
|
-
};
|
|
3078
|
-
};
|
|
3079
|
-
const se_CreatePublicVirtualInterfaceRequest = (input, context) => {
|
|
3080
|
-
return {
|
|
3081
|
-
...(input.connectionId != null && { connectionId: input.connectionId }),
|
|
3082
|
-
...(input.newPublicVirtualInterface != null && {
|
|
3083
|
-
newPublicVirtualInterface: se_NewPublicVirtualInterface(input.newPublicVirtualInterface, context),
|
|
3084
|
-
}),
|
|
3085
|
-
};
|
|
3086
|
-
};
|
|
3087
|
-
const se_CreateTransitVirtualInterfaceRequest = (input, context) => {
|
|
3088
|
-
return {
|
|
3089
|
-
...(input.connectionId != null && { connectionId: input.connectionId }),
|
|
3090
|
-
...(input.newTransitVirtualInterface != null && {
|
|
3091
|
-
newTransitVirtualInterface: se_NewTransitVirtualInterface(input.newTransitVirtualInterface, context),
|
|
3092
|
-
}),
|
|
3093
|
-
};
|
|
3094
|
-
};
|
|
3095
|
-
const se_DeleteBGPPeerRequest = (input, context) => {
|
|
3096
|
-
return {
|
|
3097
|
-
...(input.asn != null && { asn: input.asn }),
|
|
3098
|
-
...(input.bgpPeerId != null && { bgpPeerId: input.bgpPeerId }),
|
|
3099
|
-
...(input.customerAddress != null && { customerAddress: input.customerAddress }),
|
|
3100
|
-
...(input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }),
|
|
3101
|
-
};
|
|
3102
|
-
};
|
|
3103
|
-
const se_DeleteConnectionRequest = (input, context) => {
|
|
3104
|
-
return {
|
|
3105
|
-
...(input.connectionId != null && { connectionId: input.connectionId }),
|
|
3106
|
-
};
|
|
3107
|
-
};
|
|
3108
|
-
const se_DeleteDirectConnectGatewayAssociationProposalRequest = (input, context) => {
|
|
3109
|
-
return {
|
|
3110
|
-
...(input.proposalId != null && { proposalId: input.proposalId }),
|
|
3111
|
-
};
|
|
3112
|
-
};
|
|
3113
|
-
const se_DeleteDirectConnectGatewayAssociationRequest = (input, context) => {
|
|
3114
|
-
return {
|
|
3115
|
-
...(input.associationId != null && { associationId: input.associationId }),
|
|
3116
|
-
...(input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId }),
|
|
3117
|
-
...(input.virtualGatewayId != null && { virtualGatewayId: input.virtualGatewayId }),
|
|
3118
|
-
};
|
|
3119
|
-
};
|
|
3120
|
-
const se_DeleteDirectConnectGatewayRequest = (input, context) => {
|
|
3121
|
-
return {
|
|
3122
|
-
...(input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId }),
|
|
3123
|
-
};
|
|
3124
|
-
};
|
|
3125
|
-
const se_DeleteInterconnectRequest = (input, context) => {
|
|
3126
|
-
return {
|
|
3127
|
-
...(input.interconnectId != null && { interconnectId: input.interconnectId }),
|
|
3128
|
-
};
|
|
3129
|
-
};
|
|
3130
|
-
const se_DeleteLagRequest = (input, context) => {
|
|
3131
|
-
return {
|
|
3132
|
-
...(input.lagId != null && { lagId: input.lagId }),
|
|
3133
|
-
};
|
|
3134
|
-
};
|
|
3135
|
-
const se_DeleteVirtualInterfaceRequest = (input, context) => {
|
|
3136
|
-
return {
|
|
3137
|
-
...(input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }),
|
|
3138
|
-
};
|
|
3139
|
-
};
|
|
3140
|
-
const se_DescribeConnectionLoaRequest = (input, context) => {
|
|
3141
|
-
return {
|
|
3142
|
-
...(input.connectionId != null && { connectionId: input.connectionId }),
|
|
3143
|
-
...(input.loaContentType != null && { loaContentType: input.loaContentType }),
|
|
3144
|
-
...(input.providerName != null && { providerName: input.providerName }),
|
|
3145
|
-
};
|
|
3146
|
-
};
|
|
3147
|
-
const se_DescribeConnectionsOnInterconnectRequest = (input, context) => {
|
|
3148
|
-
return {
|
|
3149
|
-
...(input.interconnectId != null && { interconnectId: input.interconnectId }),
|
|
3150
|
-
};
|
|
3151
|
-
};
|
|
3152
|
-
const se_DescribeConnectionsRequest = (input, context) => {
|
|
3153
|
-
return {
|
|
3154
|
-
...(input.connectionId != null && { connectionId: input.connectionId }),
|
|
3155
|
-
};
|
|
3156
|
-
};
|
|
3157
|
-
const se_DescribeDirectConnectGatewayAssociationProposalsRequest = (input, context) => {
|
|
3158
|
-
return {
|
|
3159
|
-
...(input.associatedGatewayId != null && { associatedGatewayId: input.associatedGatewayId }),
|
|
3160
|
-
...(input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId }),
|
|
3161
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
3162
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
3163
|
-
...(input.proposalId != null && { proposalId: input.proposalId }),
|
|
3164
|
-
};
|
|
3165
|
-
};
|
|
3166
|
-
const se_DescribeDirectConnectGatewayAssociationsRequest = (input, context) => {
|
|
3167
|
-
return {
|
|
3168
|
-
...(input.associatedGatewayId != null && { associatedGatewayId: input.associatedGatewayId }),
|
|
3169
|
-
...(input.associationId != null && { associationId: input.associationId }),
|
|
3170
|
-
...(input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId }),
|
|
3171
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
3172
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
3173
|
-
...(input.virtualGatewayId != null && { virtualGatewayId: input.virtualGatewayId }),
|
|
3174
|
-
};
|
|
3175
|
-
};
|
|
3176
|
-
const se_DescribeDirectConnectGatewayAttachmentsRequest = (input, context) => {
|
|
3177
|
-
return {
|
|
3178
|
-
...(input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId }),
|
|
3179
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
3180
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
3181
|
-
...(input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }),
|
|
3182
|
-
};
|
|
3183
|
-
};
|
|
3184
|
-
const se_DescribeDirectConnectGatewaysRequest = (input, context) => {
|
|
3185
|
-
return {
|
|
3186
|
-
...(input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId }),
|
|
3187
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
3188
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
3189
|
-
};
|
|
3190
|
-
};
|
|
3191
|
-
const se_DescribeHostedConnectionsRequest = (input, context) => {
|
|
3192
|
-
return {
|
|
3193
|
-
...(input.connectionId != null && { connectionId: input.connectionId }),
|
|
3194
|
-
};
|
|
3195
|
-
};
|
|
3196
|
-
const se_DescribeInterconnectLoaRequest = (input, context) => {
|
|
3197
|
-
return {
|
|
3198
|
-
...(input.interconnectId != null && { interconnectId: input.interconnectId }),
|
|
3199
|
-
...(input.loaContentType != null && { loaContentType: input.loaContentType }),
|
|
3200
|
-
...(input.providerName != null && { providerName: input.providerName }),
|
|
3201
|
-
};
|
|
3202
|
-
};
|
|
3203
|
-
const se_DescribeInterconnectsRequest = (input, context) => {
|
|
3204
|
-
return {
|
|
3205
|
-
...(input.interconnectId != null && { interconnectId: input.interconnectId }),
|
|
3206
|
-
};
|
|
3207
|
-
};
|
|
3208
|
-
const se_DescribeLagsRequest = (input, context) => {
|
|
3209
|
-
return {
|
|
3210
|
-
...(input.lagId != null && { lagId: input.lagId }),
|
|
3211
|
-
};
|
|
3212
|
-
};
|
|
3213
|
-
const se_DescribeLoaRequest = (input, context) => {
|
|
3214
|
-
return {
|
|
3215
|
-
...(input.connectionId != null && { connectionId: input.connectionId }),
|
|
3216
|
-
...(input.loaContentType != null && { loaContentType: input.loaContentType }),
|
|
3217
|
-
...(input.providerName != null && { providerName: input.providerName }),
|
|
3218
|
-
};
|
|
3219
|
-
};
|
|
3220
|
-
const se_DescribeRouterConfigurationRequest = (input, context) => {
|
|
3221
|
-
return {
|
|
3222
|
-
...(input.routerTypeIdentifier != null && { routerTypeIdentifier: input.routerTypeIdentifier }),
|
|
3223
|
-
...(input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }),
|
|
3224
|
-
};
|
|
3225
|
-
};
|
|
3226
|
-
const se_DescribeTagsRequest = (input, context) => {
|
|
3227
|
-
return {
|
|
3228
|
-
...(input.resourceArns != null && { resourceArns: se_ResourceArnList(input.resourceArns, context) }),
|
|
3229
|
-
};
|
|
3230
|
-
};
|
|
3231
|
-
const se_DescribeVirtualInterfacesRequest = (input, context) => {
|
|
3232
|
-
return {
|
|
3233
|
-
...(input.connectionId != null && { connectionId: input.connectionId }),
|
|
3234
|
-
...(input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }),
|
|
3235
|
-
};
|
|
3236
|
-
};
|
|
3237
|
-
const se_DisassociateConnectionFromLagRequest = (input, context) => {
|
|
3238
|
-
return {
|
|
3239
|
-
...(input.connectionId != null && { connectionId: input.connectionId }),
|
|
3240
|
-
...(input.lagId != null && { lagId: input.lagId }),
|
|
3241
|
-
};
|
|
3242
|
-
};
|
|
3243
|
-
const se_DisassociateMacSecKeyRequest = (input, context) => {
|
|
3244
|
-
return {
|
|
3245
|
-
...(input.connectionId != null && { connectionId: input.connectionId }),
|
|
3246
|
-
...(input.secretARN != null && { secretARN: input.secretARN }),
|
|
3247
|
-
};
|
|
3248
|
-
};
|
|
3249
|
-
const se_ListVirtualInterfaceTestHistoryRequest = (input, context) => {
|
|
3250
|
-
return {
|
|
3251
|
-
...(input.bgpPeers != null && { bgpPeers: se_BGPPeerIdList(input.bgpPeers, context) }),
|
|
3252
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
3253
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
3254
|
-
...(input.status != null && { status: input.status }),
|
|
3255
|
-
...(input.testId != null && { testId: input.testId }),
|
|
3256
|
-
...(input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }),
|
|
3257
|
-
};
|
|
3258
|
-
};
|
|
3259
|
-
const se_NewBGPPeer = (input, context) => {
|
|
3260
|
-
return {
|
|
3261
|
-
...(input.addressFamily != null && { addressFamily: input.addressFamily }),
|
|
3262
|
-
...(input.amazonAddress != null && { amazonAddress: input.amazonAddress }),
|
|
3263
|
-
...(input.asn != null && { asn: input.asn }),
|
|
3264
|
-
...(input.authKey != null && { authKey: input.authKey }),
|
|
3265
|
-
...(input.customerAddress != null && { customerAddress: input.customerAddress }),
|
|
3266
|
-
};
|
|
3267
|
-
};
|
|
3268
|
-
const se_NewPrivateVirtualInterface = (input, context) => {
|
|
3269
|
-
return {
|
|
3270
|
-
...(input.addressFamily != null && { addressFamily: input.addressFamily }),
|
|
3271
|
-
...(input.amazonAddress != null && { amazonAddress: input.amazonAddress }),
|
|
3272
|
-
...(input.asn != null && { asn: input.asn }),
|
|
3273
|
-
...(input.authKey != null && { authKey: input.authKey }),
|
|
3274
|
-
...(input.customerAddress != null && { customerAddress: input.customerAddress }),
|
|
3275
|
-
...(input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId }),
|
|
3276
|
-
...(input.enableSiteLink != null && { enableSiteLink: input.enableSiteLink }),
|
|
3277
|
-
...(input.mtu != null && { mtu: input.mtu }),
|
|
3278
|
-
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
3279
|
-
...(input.virtualGatewayId != null && { virtualGatewayId: input.virtualGatewayId }),
|
|
3280
|
-
...(input.virtualInterfaceName != null && { virtualInterfaceName: input.virtualInterfaceName }),
|
|
3281
|
-
...(input.vlan != null && { vlan: input.vlan }),
|
|
3282
|
-
};
|
|
3283
|
-
};
|
|
3284
|
-
const se_NewPrivateVirtualInterfaceAllocation = (input, context) => {
|
|
3285
|
-
return {
|
|
3286
|
-
...(input.addressFamily != null && { addressFamily: input.addressFamily }),
|
|
3287
|
-
...(input.amazonAddress != null && { amazonAddress: input.amazonAddress }),
|
|
3288
|
-
...(input.asn != null && { asn: input.asn }),
|
|
3289
|
-
...(input.authKey != null && { authKey: input.authKey }),
|
|
3290
|
-
...(input.customerAddress != null && { customerAddress: input.customerAddress }),
|
|
3291
|
-
...(input.mtu != null && { mtu: input.mtu }),
|
|
3292
|
-
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
3293
|
-
...(input.virtualInterfaceName != null && { virtualInterfaceName: input.virtualInterfaceName }),
|
|
3294
|
-
...(input.vlan != null && { vlan: input.vlan }),
|
|
3295
|
-
};
|
|
3296
|
-
};
|
|
3297
|
-
const se_NewPublicVirtualInterface = (input, context) => {
|
|
3298
|
-
return {
|
|
3299
|
-
...(input.addressFamily != null && { addressFamily: input.addressFamily }),
|
|
3300
|
-
...(input.amazonAddress != null && { amazonAddress: input.amazonAddress }),
|
|
3301
|
-
...(input.asn != null && { asn: input.asn }),
|
|
3302
|
-
...(input.authKey != null && { authKey: input.authKey }),
|
|
3303
|
-
...(input.customerAddress != null && { customerAddress: input.customerAddress }),
|
|
3304
|
-
...(input.routeFilterPrefixes != null && {
|
|
3305
|
-
routeFilterPrefixes: se_RouteFilterPrefixList(input.routeFilterPrefixes, context),
|
|
3306
|
-
}),
|
|
3307
|
-
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
3308
|
-
...(input.virtualInterfaceName != null && { virtualInterfaceName: input.virtualInterfaceName }),
|
|
3309
|
-
...(input.vlan != null && { vlan: input.vlan }),
|
|
3310
|
-
};
|
|
3311
|
-
};
|
|
3312
|
-
const se_NewPublicVirtualInterfaceAllocation = (input, context) => {
|
|
3313
|
-
return {
|
|
3314
|
-
...(input.addressFamily != null && { addressFamily: input.addressFamily }),
|
|
3315
|
-
...(input.amazonAddress != null && { amazonAddress: input.amazonAddress }),
|
|
3316
|
-
...(input.asn != null && { asn: input.asn }),
|
|
3317
|
-
...(input.authKey != null && { authKey: input.authKey }),
|
|
3318
|
-
...(input.customerAddress != null && { customerAddress: input.customerAddress }),
|
|
3319
|
-
...(input.routeFilterPrefixes != null && {
|
|
3320
|
-
routeFilterPrefixes: se_RouteFilterPrefixList(input.routeFilterPrefixes, context),
|
|
3321
|
-
}),
|
|
3322
|
-
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
3323
|
-
...(input.virtualInterfaceName != null && { virtualInterfaceName: input.virtualInterfaceName }),
|
|
3324
|
-
...(input.vlan != null && { vlan: input.vlan }),
|
|
3325
|
-
};
|
|
3326
|
-
};
|
|
3327
|
-
const se_NewTransitVirtualInterface = (input, context) => {
|
|
3328
|
-
return {
|
|
3329
|
-
...(input.addressFamily != null && { addressFamily: input.addressFamily }),
|
|
3330
|
-
...(input.amazonAddress != null && { amazonAddress: input.amazonAddress }),
|
|
3331
|
-
...(input.asn != null && { asn: input.asn }),
|
|
3332
|
-
...(input.authKey != null && { authKey: input.authKey }),
|
|
3333
|
-
...(input.customerAddress != null && { customerAddress: input.customerAddress }),
|
|
3334
|
-
...(input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId }),
|
|
3335
|
-
...(input.enableSiteLink != null && { enableSiteLink: input.enableSiteLink }),
|
|
3336
|
-
...(input.mtu != null && { mtu: input.mtu }),
|
|
3337
|
-
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
3338
|
-
...(input.virtualInterfaceName != null && { virtualInterfaceName: input.virtualInterfaceName }),
|
|
3339
|
-
...(input.vlan != null && { vlan: input.vlan }),
|
|
3340
|
-
};
|
|
3341
|
-
};
|
|
3342
|
-
const se_NewTransitVirtualInterfaceAllocation = (input, context) => {
|
|
3343
|
-
return {
|
|
3344
|
-
...(input.addressFamily != null && { addressFamily: input.addressFamily }),
|
|
3345
|
-
...(input.amazonAddress != null && { amazonAddress: input.amazonAddress }),
|
|
3346
|
-
...(input.asn != null && { asn: input.asn }),
|
|
3347
|
-
...(input.authKey != null && { authKey: input.authKey }),
|
|
3348
|
-
...(input.customerAddress != null && { customerAddress: input.customerAddress }),
|
|
3349
|
-
...(input.mtu != null && { mtu: input.mtu }),
|
|
3350
|
-
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
3351
|
-
...(input.virtualInterfaceName != null && { virtualInterfaceName: input.virtualInterfaceName }),
|
|
3352
|
-
...(input.vlan != null && { vlan: input.vlan }),
|
|
3353
|
-
};
|
|
3354
|
-
};
|
|
3355
|
-
const se_ResourceArnList = (input, context) => {
|
|
3356
|
-
return input
|
|
3357
|
-
.filter((e) => e != null)
|
|
3358
|
-
.map((entry) => {
|
|
3359
|
-
return entry;
|
|
3360
|
-
});
|
|
3361
|
-
};
|
|
3362
|
-
const se_RouteFilterPrefix = (input, context) => {
|
|
3363
|
-
return {
|
|
3364
|
-
...(input.cidr != null && { cidr: input.cidr }),
|
|
3365
|
-
};
|
|
3366
|
-
};
|
|
3367
|
-
const se_RouteFilterPrefixList = (input, context) => {
|
|
3368
|
-
return input
|
|
3369
|
-
.filter((e) => e != null)
|
|
3370
|
-
.map((entry) => {
|
|
3371
|
-
return se_RouteFilterPrefix(entry, context);
|
|
3372
|
-
});
|
|
3373
|
-
};
|
|
3374
|
-
const se_StartBgpFailoverTestRequest = (input, context) => {
|
|
3375
|
-
return {
|
|
3376
|
-
...(input.bgpPeers != null && { bgpPeers: se_BGPPeerIdList(input.bgpPeers, context) }),
|
|
3377
|
-
...(input.testDurationInMinutes != null && { testDurationInMinutes: input.testDurationInMinutes }),
|
|
3378
|
-
...(input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }),
|
|
3379
|
-
};
|
|
3380
|
-
};
|
|
3381
|
-
const se_StopBgpFailoverTestRequest = (input, context) => {
|
|
3382
|
-
return {
|
|
3383
|
-
...(input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }),
|
|
3384
|
-
};
|
|
3385
|
-
};
|
|
3386
|
-
const se_Tag = (input, context) => {
|
|
3387
|
-
return {
|
|
3388
|
-
...(input.key != null && { key: input.key }),
|
|
3389
|
-
...(input.value != null && { value: input.value }),
|
|
3390
|
-
};
|
|
3391
|
-
};
|
|
3392
|
-
const se_TagKeyList = (input, context) => {
|
|
3393
|
-
return input
|
|
3394
|
-
.filter((e) => e != null)
|
|
3395
|
-
.map((entry) => {
|
|
3396
|
-
return entry;
|
|
3397
|
-
});
|
|
3398
|
-
};
|
|
3399
|
-
const se_TagList = (input, context) => {
|
|
3400
|
-
return input
|
|
3401
|
-
.filter((e) => e != null)
|
|
3402
|
-
.map((entry) => {
|
|
3403
|
-
return se_Tag(entry, context);
|
|
3404
|
-
});
|
|
3405
|
-
};
|
|
3406
|
-
const se_TagResourceRequest = (input, context) => {
|
|
3407
|
-
return {
|
|
3408
|
-
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
3409
|
-
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
3410
|
-
};
|
|
3411
|
-
};
|
|
3412
|
-
const se_UntagResourceRequest = (input, context) => {
|
|
3413
|
-
return {
|
|
3414
|
-
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
3415
|
-
...(input.tagKeys != null && { tagKeys: se_TagKeyList(input.tagKeys, context) }),
|
|
3416
|
-
};
|
|
3417
|
-
};
|
|
3418
|
-
const se_UpdateConnectionRequest = (input, context) => {
|
|
3419
|
-
return {
|
|
3420
|
-
...(input.connectionId != null && { connectionId: input.connectionId }),
|
|
3421
|
-
...(input.connectionName != null && { connectionName: input.connectionName }),
|
|
3422
|
-
...(input.encryptionMode != null && { encryptionMode: input.encryptionMode }),
|
|
3423
|
-
};
|
|
3424
|
-
};
|
|
3425
|
-
const se_UpdateDirectConnectGatewayAssociationRequest = (input, context) => {
|
|
3426
|
-
return {
|
|
3427
|
-
...(input.addAllowedPrefixesToDirectConnectGateway != null && {
|
|
3428
|
-
addAllowedPrefixesToDirectConnectGateway: se_RouteFilterPrefixList(input.addAllowedPrefixesToDirectConnectGateway, context),
|
|
3429
|
-
}),
|
|
3430
|
-
...(input.associationId != null && { associationId: input.associationId }),
|
|
3431
|
-
...(input.removeAllowedPrefixesToDirectConnectGateway != null && {
|
|
3432
|
-
removeAllowedPrefixesToDirectConnectGateway: se_RouteFilterPrefixList(input.removeAllowedPrefixesToDirectConnectGateway, context),
|
|
3433
|
-
}),
|
|
3434
|
-
};
|
|
3435
|
-
};
|
|
3436
|
-
const se_UpdateDirectConnectGatewayRequest = (input, context) => {
|
|
3437
|
-
return {
|
|
3438
|
-
...(input.directConnectGatewayId != null && { directConnectGatewayId: input.directConnectGatewayId }),
|
|
3439
|
-
...(input.newDirectConnectGatewayName != null && {
|
|
3440
|
-
newDirectConnectGatewayName: input.newDirectConnectGatewayName,
|
|
3441
|
-
}),
|
|
3442
|
-
};
|
|
3443
|
-
};
|
|
3444
|
-
const se_UpdateLagRequest = (input, context) => {
|
|
3445
|
-
return {
|
|
3446
|
-
...(input.encryptionMode != null && { encryptionMode: input.encryptionMode }),
|
|
3447
|
-
...(input.lagId != null && { lagId: input.lagId }),
|
|
3448
|
-
...(input.lagName != null && { lagName: input.lagName }),
|
|
3449
|
-
...(input.minimumLinks != null && { minimumLinks: input.minimumLinks }),
|
|
3450
|
-
};
|
|
3451
|
-
};
|
|
3452
|
-
const se_UpdateVirtualInterfaceAttributesRequest = (input, context) => {
|
|
3453
|
-
return {
|
|
3454
|
-
...(input.enableSiteLink != null && { enableSiteLink: input.enableSiteLink }),
|
|
3455
|
-
...(input.mtu != null && { mtu: input.mtu }),
|
|
3456
|
-
...(input.virtualInterfaceId != null && { virtualInterfaceId: input.virtualInterfaceId }),
|
|
3457
|
-
...(input.virtualInterfaceName != null && { virtualInterfaceName: input.virtualInterfaceName }),
|
|
3458
|
-
};
|
|
3459
|
-
};
|
|
3460
|
-
const de_AcceptDirectConnectGatewayAssociationProposalResult = (output, context) => {
|
|
3461
|
-
return {
|
|
3462
|
-
directConnectGatewayAssociation: output.directConnectGatewayAssociation != null
|
|
3463
|
-
? de_DirectConnectGatewayAssociation(output.directConnectGatewayAssociation, context)
|
|
3464
|
-
: undefined,
|
|
3465
|
-
};
|
|
3466
|
-
};
|
|
3467
|
-
const de_AgreementList = (output, context) => {
|
|
3468
|
-
const retVal = (output || [])
|
|
3469
|
-
.filter((e) => e != null)
|
|
3470
|
-
.map((entry) => {
|
|
3471
|
-
if (entry === null) {
|
|
3472
|
-
return null;
|
|
3473
|
-
}
|
|
3474
|
-
return de_CustomerAgreement(entry, context);
|
|
3475
|
-
});
|
|
3476
|
-
return retVal;
|
|
3477
|
-
};
|
|
3478
|
-
const de_AllocateTransitVirtualInterfaceResult = (output, context) => {
|
|
3479
|
-
return {
|
|
3480
|
-
virtualInterface: output.virtualInterface != null ? de_VirtualInterface(output.virtualInterface, context) : undefined,
|
|
3481
|
-
};
|
|
3482
|
-
};
|
|
3483
|
-
const de_AssociatedGateway = (output, context) => {
|
|
3484
|
-
return {
|
|
3485
|
-
id: (0, smithy_client_1.expectString)(output.id),
|
|
3486
|
-
ownerAccount: (0, smithy_client_1.expectString)(output.ownerAccount),
|
|
3487
|
-
region: (0, smithy_client_1.expectString)(output.region),
|
|
3488
|
-
type: (0, smithy_client_1.expectString)(output.type),
|
|
3489
|
-
};
|
|
3490
|
-
};
|
|
3491
|
-
const de_AssociateMacSecKeyResponse = (output, context) => {
|
|
3492
|
-
return {
|
|
3493
|
-
connectionId: (0, smithy_client_1.expectString)(output.connectionId),
|
|
3494
|
-
macSecKeys: output.macSecKeys != null ? de_MacSecKeyList(output.macSecKeys, context) : undefined,
|
|
3495
|
-
};
|
|
3496
|
-
};
|
|
3497
|
-
const de_AvailableMacSecPortSpeeds = (output, context) => {
|
|
3498
|
-
const retVal = (output || [])
|
|
3499
|
-
.filter((e) => e != null)
|
|
3500
|
-
.map((entry) => {
|
|
3501
|
-
if (entry === null) {
|
|
3502
|
-
return null;
|
|
3503
|
-
}
|
|
3504
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
3505
|
-
});
|
|
3506
|
-
return retVal;
|
|
3507
|
-
};
|
|
3508
|
-
const de_AvailablePortSpeeds = (output, context) => {
|
|
3509
|
-
const retVal = (output || [])
|
|
3510
|
-
.filter((e) => e != null)
|
|
3511
|
-
.map((entry) => {
|
|
3512
|
-
if (entry === null) {
|
|
3513
|
-
return null;
|
|
3514
|
-
}
|
|
3515
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
3516
|
-
});
|
|
3517
|
-
return retVal;
|
|
3518
|
-
};
|
|
3519
|
-
const de_BGPPeer = (output, context) => {
|
|
3520
|
-
return {
|
|
3521
|
-
addressFamily: (0, smithy_client_1.expectString)(output.addressFamily),
|
|
3522
|
-
amazonAddress: (0, smithy_client_1.expectString)(output.amazonAddress),
|
|
3523
|
-
asn: (0, smithy_client_1.expectInt32)(output.asn),
|
|
3524
|
-
authKey: (0, smithy_client_1.expectString)(output.authKey),
|
|
3525
|
-
awsDeviceV2: (0, smithy_client_1.expectString)(output.awsDeviceV2),
|
|
3526
|
-
awsLogicalDeviceId: (0, smithy_client_1.expectString)(output.awsLogicalDeviceId),
|
|
3527
|
-
bgpPeerId: (0, smithy_client_1.expectString)(output.bgpPeerId),
|
|
3528
|
-
bgpPeerState: (0, smithy_client_1.expectString)(output.bgpPeerState),
|
|
3529
|
-
bgpStatus: (0, smithy_client_1.expectString)(output.bgpStatus),
|
|
3530
|
-
customerAddress: (0, smithy_client_1.expectString)(output.customerAddress),
|
|
3531
|
-
};
|
|
3532
|
-
};
|
|
3533
|
-
const de_BGPPeerIdList = (output, context) => {
|
|
3534
|
-
const retVal = (output || [])
|
|
3535
|
-
.filter((e) => e != null)
|
|
3536
|
-
.map((entry) => {
|
|
3537
|
-
if (entry === null) {
|
|
3538
|
-
return null;
|
|
3539
|
-
}
|
|
3540
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
3541
|
-
});
|
|
3542
|
-
return retVal;
|
|
3543
|
-
};
|
|
3544
|
-
const de_BGPPeerList = (output, context) => {
|
|
3545
|
-
const retVal = (output || [])
|
|
3546
|
-
.filter((e) => e != null)
|
|
3547
|
-
.map((entry) => {
|
|
3548
|
-
if (entry === null) {
|
|
3549
|
-
return null;
|
|
3550
|
-
}
|
|
3551
|
-
return de_BGPPeer(entry, context);
|
|
3552
|
-
});
|
|
3553
|
-
return retVal;
|
|
3554
|
-
};
|
|
3555
|
-
const de_ConfirmConnectionResponse = (output, context) => {
|
|
3556
|
-
return {
|
|
3557
|
-
connectionState: (0, smithy_client_1.expectString)(output.connectionState),
|
|
3558
|
-
};
|
|
3559
|
-
};
|
|
3560
|
-
const de_ConfirmCustomerAgreementResponse = (output, context) => {
|
|
3561
|
-
return {
|
|
3562
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
3563
|
-
};
|
|
3564
|
-
};
|
|
3565
|
-
const de_ConfirmPrivateVirtualInterfaceResponse = (output, context) => {
|
|
3566
|
-
return {
|
|
3567
|
-
virtualInterfaceState: (0, smithy_client_1.expectString)(output.virtualInterfaceState),
|
|
3568
|
-
};
|
|
3569
|
-
};
|
|
3570
|
-
const de_ConfirmPublicVirtualInterfaceResponse = (output, context) => {
|
|
3571
|
-
return {
|
|
3572
|
-
virtualInterfaceState: (0, smithy_client_1.expectString)(output.virtualInterfaceState),
|
|
3573
|
-
};
|
|
3574
|
-
};
|
|
3575
|
-
const de_ConfirmTransitVirtualInterfaceResponse = (output, context) => {
|
|
3576
|
-
return {
|
|
3577
|
-
virtualInterfaceState: (0, smithy_client_1.expectString)(output.virtualInterfaceState),
|
|
3578
|
-
};
|
|
3579
|
-
};
|
|
3580
2818
|
const de_Connection = (output, context) => {
|
|
3581
|
-
return {
|
|
3582
|
-
awsDevice:
|
|
3583
|
-
awsDeviceV2:
|
|
3584
|
-
awsLogicalDeviceId:
|
|
3585
|
-
bandwidth:
|
|
3586
|
-
connectionId:
|
|
3587
|
-
connectionName:
|
|
3588
|
-
connectionState:
|
|
3589
|
-
encryptionMode:
|
|
3590
|
-
hasLogicalRedundancy:
|
|
3591
|
-
jumboFrameCapable:
|
|
3592
|
-
lagId:
|
|
3593
|
-
loaIssueTime:
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
vlan: (0, smithy_client_1.expectInt32)(output.vlan),
|
|
3606
|
-
};
|
|
2819
|
+
return (0, smithy_client_1.take)(output, {
|
|
2820
|
+
awsDevice: smithy_client_1.expectString,
|
|
2821
|
+
awsDeviceV2: smithy_client_1.expectString,
|
|
2822
|
+
awsLogicalDeviceId: smithy_client_1.expectString,
|
|
2823
|
+
bandwidth: smithy_client_1.expectString,
|
|
2824
|
+
connectionId: smithy_client_1.expectString,
|
|
2825
|
+
connectionName: smithy_client_1.expectString,
|
|
2826
|
+
connectionState: smithy_client_1.expectString,
|
|
2827
|
+
encryptionMode: smithy_client_1.expectString,
|
|
2828
|
+
hasLogicalRedundancy: smithy_client_1.expectString,
|
|
2829
|
+
jumboFrameCapable: smithy_client_1.expectBoolean,
|
|
2830
|
+
lagId: smithy_client_1.expectString,
|
|
2831
|
+
loaIssueTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2832
|
+
location: smithy_client_1.expectString,
|
|
2833
|
+
macSecCapable: smithy_client_1.expectBoolean,
|
|
2834
|
+
macSecKeys: smithy_client_1._json,
|
|
2835
|
+
ownerAccount: smithy_client_1.expectString,
|
|
2836
|
+
partnerName: smithy_client_1.expectString,
|
|
2837
|
+
portEncryptionStatus: smithy_client_1.expectString,
|
|
2838
|
+
providerName: smithy_client_1.expectString,
|
|
2839
|
+
region: smithy_client_1.expectString,
|
|
2840
|
+
tags: smithy_client_1._json,
|
|
2841
|
+
vlan: smithy_client_1.expectInt32,
|
|
2842
|
+
});
|
|
3607
2843
|
};
|
|
3608
2844
|
const de_ConnectionList = (output, context) => {
|
|
3609
2845
|
const retVal = (output || [])
|
|
3610
2846
|
.filter((e) => e != null)
|
|
3611
2847
|
.map((entry) => {
|
|
3612
|
-
if (entry === null) {
|
|
3613
|
-
return null;
|
|
3614
|
-
}
|
|
3615
2848
|
return de_Connection(entry, context);
|
|
3616
2849
|
});
|
|
3617
2850
|
return retVal;
|
|
3618
2851
|
};
|
|
3619
2852
|
const de_Connections = (output, context) => {
|
|
3620
|
-
return {
|
|
3621
|
-
connections:
|
|
3622
|
-
};
|
|
3623
|
-
};
|
|
3624
|
-
const de_CreateBGPPeerResponse = (output, context) => {
|
|
3625
|
-
return {
|
|
3626
|
-
virtualInterface: output.virtualInterface != null ? de_VirtualInterface(output.virtualInterface, context) : undefined,
|
|
3627
|
-
};
|
|
3628
|
-
};
|
|
3629
|
-
const de_CreateDirectConnectGatewayAssociationProposalResult = (output, context) => {
|
|
3630
|
-
return {
|
|
3631
|
-
directConnectGatewayAssociationProposal: output.directConnectGatewayAssociationProposal != null
|
|
3632
|
-
? de_DirectConnectGatewayAssociationProposal(output.directConnectGatewayAssociationProposal, context)
|
|
3633
|
-
: undefined,
|
|
3634
|
-
};
|
|
3635
|
-
};
|
|
3636
|
-
const de_CreateDirectConnectGatewayAssociationResult = (output, context) => {
|
|
3637
|
-
return {
|
|
3638
|
-
directConnectGatewayAssociation: output.directConnectGatewayAssociation != null
|
|
3639
|
-
? de_DirectConnectGatewayAssociation(output.directConnectGatewayAssociation, context)
|
|
3640
|
-
: undefined,
|
|
3641
|
-
};
|
|
3642
|
-
};
|
|
3643
|
-
const de_CreateDirectConnectGatewayResult = (output, context) => {
|
|
3644
|
-
return {
|
|
3645
|
-
directConnectGateway: output.directConnectGateway != null ? de_DirectConnectGateway(output.directConnectGateway, context) : undefined,
|
|
3646
|
-
};
|
|
3647
|
-
};
|
|
3648
|
-
const de_CreateTransitVirtualInterfaceResult = (output, context) => {
|
|
3649
|
-
return {
|
|
3650
|
-
virtualInterface: output.virtualInterface != null ? de_VirtualInterface(output.virtualInterface, context) : undefined,
|
|
3651
|
-
};
|
|
3652
|
-
};
|
|
3653
|
-
const de_CustomerAgreement = (output, context) => {
|
|
3654
|
-
return {
|
|
3655
|
-
agreementName: (0, smithy_client_1.expectString)(output.agreementName),
|
|
3656
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
3657
|
-
};
|
|
3658
|
-
};
|
|
3659
|
-
const de_DeleteBGPPeerResponse = (output, context) => {
|
|
3660
|
-
return {
|
|
3661
|
-
virtualInterface: output.virtualInterface != null ? de_VirtualInterface(output.virtualInterface, context) : undefined,
|
|
3662
|
-
};
|
|
3663
|
-
};
|
|
3664
|
-
const de_DeleteDirectConnectGatewayAssociationProposalResult = (output, context) => {
|
|
3665
|
-
return {
|
|
3666
|
-
directConnectGatewayAssociationProposal: output.directConnectGatewayAssociationProposal != null
|
|
3667
|
-
? de_DirectConnectGatewayAssociationProposal(output.directConnectGatewayAssociationProposal, context)
|
|
3668
|
-
: undefined,
|
|
3669
|
-
};
|
|
3670
|
-
};
|
|
3671
|
-
const de_DeleteDirectConnectGatewayAssociationResult = (output, context) => {
|
|
3672
|
-
return {
|
|
3673
|
-
directConnectGatewayAssociation: output.directConnectGatewayAssociation != null
|
|
3674
|
-
? de_DirectConnectGatewayAssociation(output.directConnectGatewayAssociation, context)
|
|
3675
|
-
: undefined,
|
|
3676
|
-
};
|
|
3677
|
-
};
|
|
3678
|
-
const de_DeleteDirectConnectGatewayResult = (output, context) => {
|
|
3679
|
-
return {
|
|
3680
|
-
directConnectGateway: output.directConnectGateway != null ? de_DirectConnectGateway(output.directConnectGateway, context) : undefined,
|
|
3681
|
-
};
|
|
3682
|
-
};
|
|
3683
|
-
const de_DeleteInterconnectResponse = (output, context) => {
|
|
3684
|
-
return {
|
|
3685
|
-
interconnectState: (0, smithy_client_1.expectString)(output.interconnectState),
|
|
3686
|
-
};
|
|
3687
|
-
};
|
|
3688
|
-
const de_DeleteVirtualInterfaceResponse = (output, context) => {
|
|
3689
|
-
return {
|
|
3690
|
-
virtualInterfaceState: (0, smithy_client_1.expectString)(output.virtualInterfaceState),
|
|
3691
|
-
};
|
|
3692
|
-
};
|
|
3693
|
-
const de_DescribeConnectionLoaResponse = (output, context) => {
|
|
3694
|
-
return {
|
|
3695
|
-
loa: output.loa != null ? de_Loa(output.loa, context) : undefined,
|
|
3696
|
-
};
|
|
3697
|
-
};
|
|
3698
|
-
const de_DescribeCustomerMetadataResponse = (output, context) => {
|
|
3699
|
-
return {
|
|
3700
|
-
agreements: output.agreements != null ? de_AgreementList(output.agreements, context) : undefined,
|
|
3701
|
-
nniPartnerType: (0, smithy_client_1.expectString)(output.nniPartnerType),
|
|
3702
|
-
};
|
|
3703
|
-
};
|
|
3704
|
-
const de_DescribeDirectConnectGatewayAssociationProposalsResult = (output, context) => {
|
|
3705
|
-
return {
|
|
3706
|
-
directConnectGatewayAssociationProposals: output.directConnectGatewayAssociationProposals != null
|
|
3707
|
-
? de_DirectConnectGatewayAssociationProposalList(output.directConnectGatewayAssociationProposals, context)
|
|
3708
|
-
: undefined,
|
|
3709
|
-
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
3710
|
-
};
|
|
3711
|
-
};
|
|
3712
|
-
const de_DescribeDirectConnectGatewayAssociationsResult = (output, context) => {
|
|
3713
|
-
return {
|
|
3714
|
-
directConnectGatewayAssociations: output.directConnectGatewayAssociations != null
|
|
3715
|
-
? de_DirectConnectGatewayAssociationList(output.directConnectGatewayAssociations, context)
|
|
3716
|
-
: undefined,
|
|
3717
|
-
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
3718
|
-
};
|
|
3719
|
-
};
|
|
3720
|
-
const de_DescribeDirectConnectGatewayAttachmentsResult = (output, context) => {
|
|
3721
|
-
return {
|
|
3722
|
-
directConnectGatewayAttachments: output.directConnectGatewayAttachments != null
|
|
3723
|
-
? de_DirectConnectGatewayAttachmentList(output.directConnectGatewayAttachments, context)
|
|
3724
|
-
: undefined,
|
|
3725
|
-
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
3726
|
-
};
|
|
3727
|
-
};
|
|
3728
|
-
const de_DescribeDirectConnectGatewaysResult = (output, context) => {
|
|
3729
|
-
return {
|
|
3730
|
-
directConnectGateways: output.directConnectGateways != null
|
|
3731
|
-
? de_DirectConnectGatewayList(output.directConnectGateways, context)
|
|
3732
|
-
: undefined,
|
|
3733
|
-
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
3734
|
-
};
|
|
3735
|
-
};
|
|
3736
|
-
const de_DescribeInterconnectLoaResponse = (output, context) => {
|
|
3737
|
-
return {
|
|
3738
|
-
loa: output.loa != null ? de_Loa(output.loa, context) : undefined,
|
|
3739
|
-
};
|
|
3740
|
-
};
|
|
3741
|
-
const de_DescribeRouterConfigurationResponse = (output, context) => {
|
|
3742
|
-
return {
|
|
3743
|
-
customerRouterConfig: (0, smithy_client_1.expectString)(output.customerRouterConfig),
|
|
3744
|
-
router: output.router != null ? de_RouterType(output.router, context) : undefined,
|
|
3745
|
-
virtualInterfaceId: (0, smithy_client_1.expectString)(output.virtualInterfaceId),
|
|
3746
|
-
virtualInterfaceName: (0, smithy_client_1.expectString)(output.virtualInterfaceName),
|
|
3747
|
-
};
|
|
3748
|
-
};
|
|
3749
|
-
const de_DescribeTagsResponse = (output, context) => {
|
|
3750
|
-
return {
|
|
3751
|
-
resourceTags: output.resourceTags != null ? de_ResourceTagList(output.resourceTags, context) : undefined,
|
|
3752
|
-
};
|
|
3753
|
-
};
|
|
3754
|
-
const de_DirectConnectClientException = (output, context) => {
|
|
3755
|
-
return {
|
|
3756
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
3757
|
-
};
|
|
3758
|
-
};
|
|
3759
|
-
const de_DirectConnectGateway = (output, context) => {
|
|
3760
|
-
return {
|
|
3761
|
-
amazonSideAsn: (0, smithy_client_1.expectLong)(output.amazonSideAsn),
|
|
3762
|
-
directConnectGatewayId: (0, smithy_client_1.expectString)(output.directConnectGatewayId),
|
|
3763
|
-
directConnectGatewayName: (0, smithy_client_1.expectString)(output.directConnectGatewayName),
|
|
3764
|
-
directConnectGatewayState: (0, smithy_client_1.expectString)(output.directConnectGatewayState),
|
|
3765
|
-
ownerAccount: (0, smithy_client_1.expectString)(output.ownerAccount),
|
|
3766
|
-
stateChangeError: (0, smithy_client_1.expectString)(output.stateChangeError),
|
|
3767
|
-
};
|
|
3768
|
-
};
|
|
3769
|
-
const de_DirectConnectGatewayAssociation = (output, context) => {
|
|
3770
|
-
return {
|
|
3771
|
-
allowedPrefixesToDirectConnectGateway: output.allowedPrefixesToDirectConnectGateway != null
|
|
3772
|
-
? de_RouteFilterPrefixList(output.allowedPrefixesToDirectConnectGateway, context)
|
|
3773
|
-
: undefined,
|
|
3774
|
-
associatedGateway: output.associatedGateway != null ? de_AssociatedGateway(output.associatedGateway, context) : undefined,
|
|
3775
|
-
associationId: (0, smithy_client_1.expectString)(output.associationId),
|
|
3776
|
-
associationState: (0, smithy_client_1.expectString)(output.associationState),
|
|
3777
|
-
directConnectGatewayId: (0, smithy_client_1.expectString)(output.directConnectGatewayId),
|
|
3778
|
-
directConnectGatewayOwnerAccount: (0, smithy_client_1.expectString)(output.directConnectGatewayOwnerAccount),
|
|
3779
|
-
stateChangeError: (0, smithy_client_1.expectString)(output.stateChangeError),
|
|
3780
|
-
virtualGatewayId: (0, smithy_client_1.expectString)(output.virtualGatewayId),
|
|
3781
|
-
virtualGatewayOwnerAccount: (0, smithy_client_1.expectString)(output.virtualGatewayOwnerAccount),
|
|
3782
|
-
virtualGatewayRegion: (0, smithy_client_1.expectString)(output.virtualGatewayRegion),
|
|
3783
|
-
};
|
|
3784
|
-
};
|
|
3785
|
-
const de_DirectConnectGatewayAssociationList = (output, context) => {
|
|
3786
|
-
const retVal = (output || [])
|
|
3787
|
-
.filter((e) => e != null)
|
|
3788
|
-
.map((entry) => {
|
|
3789
|
-
if (entry === null) {
|
|
3790
|
-
return null;
|
|
3791
|
-
}
|
|
3792
|
-
return de_DirectConnectGatewayAssociation(entry, context);
|
|
3793
|
-
});
|
|
3794
|
-
return retVal;
|
|
3795
|
-
};
|
|
3796
|
-
const de_DirectConnectGatewayAssociationProposal = (output, context) => {
|
|
3797
|
-
return {
|
|
3798
|
-
associatedGateway: output.associatedGateway != null ? de_AssociatedGateway(output.associatedGateway, context) : undefined,
|
|
3799
|
-
directConnectGatewayId: (0, smithy_client_1.expectString)(output.directConnectGatewayId),
|
|
3800
|
-
directConnectGatewayOwnerAccount: (0, smithy_client_1.expectString)(output.directConnectGatewayOwnerAccount),
|
|
3801
|
-
existingAllowedPrefixesToDirectConnectGateway: output.existingAllowedPrefixesToDirectConnectGateway != null
|
|
3802
|
-
? de_RouteFilterPrefixList(output.existingAllowedPrefixesToDirectConnectGateway, context)
|
|
3803
|
-
: undefined,
|
|
3804
|
-
proposalId: (0, smithy_client_1.expectString)(output.proposalId),
|
|
3805
|
-
proposalState: (0, smithy_client_1.expectString)(output.proposalState),
|
|
3806
|
-
requestedAllowedPrefixesToDirectConnectGateway: output.requestedAllowedPrefixesToDirectConnectGateway != null
|
|
3807
|
-
? de_RouteFilterPrefixList(output.requestedAllowedPrefixesToDirectConnectGateway, context)
|
|
3808
|
-
: undefined,
|
|
3809
|
-
};
|
|
3810
|
-
};
|
|
3811
|
-
const de_DirectConnectGatewayAssociationProposalList = (output, context) => {
|
|
3812
|
-
const retVal = (output || [])
|
|
3813
|
-
.filter((e) => e != null)
|
|
3814
|
-
.map((entry) => {
|
|
3815
|
-
if (entry === null) {
|
|
3816
|
-
return null;
|
|
3817
|
-
}
|
|
3818
|
-
return de_DirectConnectGatewayAssociationProposal(entry, context);
|
|
2853
|
+
return (0, smithy_client_1.take)(output, {
|
|
2854
|
+
connections: (_) => de_ConnectionList(_, context),
|
|
3819
2855
|
});
|
|
3820
|
-
return retVal;
|
|
3821
|
-
};
|
|
3822
|
-
const de_DirectConnectGatewayAttachment = (output, context) => {
|
|
3823
|
-
return {
|
|
3824
|
-
attachmentState: (0, smithy_client_1.expectString)(output.attachmentState),
|
|
3825
|
-
attachmentType: (0, smithy_client_1.expectString)(output.attachmentType),
|
|
3826
|
-
directConnectGatewayId: (0, smithy_client_1.expectString)(output.directConnectGatewayId),
|
|
3827
|
-
stateChangeError: (0, smithy_client_1.expectString)(output.stateChangeError),
|
|
3828
|
-
virtualInterfaceId: (0, smithy_client_1.expectString)(output.virtualInterfaceId),
|
|
3829
|
-
virtualInterfaceOwnerAccount: (0, smithy_client_1.expectString)(output.virtualInterfaceOwnerAccount),
|
|
3830
|
-
virtualInterfaceRegion: (0, smithy_client_1.expectString)(output.virtualInterfaceRegion),
|
|
3831
|
-
};
|
|
3832
2856
|
};
|
|
3833
|
-
const
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
.map((entry) => {
|
|
3837
|
-
if (entry === null) {
|
|
3838
|
-
return null;
|
|
3839
|
-
}
|
|
3840
|
-
return de_DirectConnectGatewayAttachment(entry, context);
|
|
2857
|
+
const de_DescribeConnectionLoaResponse = (output, context) => {
|
|
2858
|
+
return (0, smithy_client_1.take)(output, {
|
|
2859
|
+
loa: (_) => de_Loa(_, context),
|
|
3841
2860
|
});
|
|
3842
|
-
return retVal;
|
|
3843
2861
|
};
|
|
3844
|
-
const
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
.map((entry) => {
|
|
3848
|
-
if (entry === null) {
|
|
3849
|
-
return null;
|
|
3850
|
-
}
|
|
3851
|
-
return de_DirectConnectGateway(entry, context);
|
|
2862
|
+
const de_DescribeInterconnectLoaResponse = (output, context) => {
|
|
2863
|
+
return (0, smithy_client_1.take)(output, {
|
|
2864
|
+
loa: (_) => de_Loa(_, context),
|
|
3852
2865
|
});
|
|
3853
|
-
return retVal;
|
|
3854
|
-
};
|
|
3855
|
-
const de_DirectConnectServerException = (output, context) => {
|
|
3856
|
-
return {
|
|
3857
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
3858
|
-
};
|
|
3859
|
-
};
|
|
3860
|
-
const de_DisassociateMacSecKeyResponse = (output, context) => {
|
|
3861
|
-
return {
|
|
3862
|
-
connectionId: (0, smithy_client_1.expectString)(output.connectionId),
|
|
3863
|
-
macSecKeys: output.macSecKeys != null ? de_MacSecKeyList(output.macSecKeys, context) : undefined,
|
|
3864
|
-
};
|
|
3865
|
-
};
|
|
3866
|
-
const de_DuplicateTagKeysException = (output, context) => {
|
|
3867
|
-
return {
|
|
3868
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
3869
|
-
};
|
|
3870
2866
|
};
|
|
3871
2867
|
const de_Interconnect = (output, context) => {
|
|
3872
|
-
return {
|
|
3873
|
-
awsDevice:
|
|
3874
|
-
awsDeviceV2:
|
|
3875
|
-
awsLogicalDeviceId:
|
|
3876
|
-
bandwidth:
|
|
3877
|
-
hasLogicalRedundancy:
|
|
3878
|
-
interconnectId:
|
|
3879
|
-
interconnectName:
|
|
3880
|
-
interconnectState:
|
|
3881
|
-
jumboFrameCapable:
|
|
3882
|
-
lagId:
|
|
3883
|
-
loaIssueTime:
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
tags: output.tags != null ? de_TagList(output.tags, context) : undefined,
|
|
3890
|
-
};
|
|
2868
|
+
return (0, smithy_client_1.take)(output, {
|
|
2869
|
+
awsDevice: smithy_client_1.expectString,
|
|
2870
|
+
awsDeviceV2: smithy_client_1.expectString,
|
|
2871
|
+
awsLogicalDeviceId: smithy_client_1.expectString,
|
|
2872
|
+
bandwidth: smithy_client_1.expectString,
|
|
2873
|
+
hasLogicalRedundancy: smithy_client_1.expectString,
|
|
2874
|
+
interconnectId: smithy_client_1.expectString,
|
|
2875
|
+
interconnectName: smithy_client_1.expectString,
|
|
2876
|
+
interconnectState: smithy_client_1.expectString,
|
|
2877
|
+
jumboFrameCapable: smithy_client_1.expectBoolean,
|
|
2878
|
+
lagId: smithy_client_1.expectString,
|
|
2879
|
+
loaIssueTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2880
|
+
location: smithy_client_1.expectString,
|
|
2881
|
+
providerName: smithy_client_1.expectString,
|
|
2882
|
+
region: smithy_client_1.expectString,
|
|
2883
|
+
tags: smithy_client_1._json,
|
|
2884
|
+
});
|
|
3891
2885
|
};
|
|
3892
2886
|
const de_InterconnectList = (output, context) => {
|
|
3893
2887
|
const retVal = (output || [])
|
|
3894
2888
|
.filter((e) => e != null)
|
|
3895
2889
|
.map((entry) => {
|
|
3896
|
-
if (entry === null) {
|
|
3897
|
-
return null;
|
|
3898
|
-
}
|
|
3899
2890
|
return de_Interconnect(entry, context);
|
|
3900
2891
|
});
|
|
3901
2892
|
return retVal;
|
|
3902
2893
|
};
|
|
3903
2894
|
const de_Interconnects = (output, context) => {
|
|
3904
|
-
return {
|
|
3905
|
-
interconnects:
|
|
3906
|
-
};
|
|
2895
|
+
return (0, smithy_client_1.take)(output, {
|
|
2896
|
+
interconnects: (_) => de_InterconnectList(_, context),
|
|
2897
|
+
});
|
|
3907
2898
|
};
|
|
3908
2899
|
const de_Lag = (output, context) => {
|
|
3909
|
-
return {
|
|
3910
|
-
allowsHostedConnections:
|
|
3911
|
-
awsDevice:
|
|
3912
|
-
awsDeviceV2:
|
|
3913
|
-
awsLogicalDeviceId:
|
|
3914
|
-
connections:
|
|
3915
|
-
connectionsBandwidth:
|
|
3916
|
-
encryptionMode:
|
|
3917
|
-
hasLogicalRedundancy:
|
|
3918
|
-
jumboFrameCapable:
|
|
3919
|
-
lagId:
|
|
3920
|
-
lagName:
|
|
3921
|
-
lagState:
|
|
3922
|
-
location:
|
|
3923
|
-
macSecCapable:
|
|
3924
|
-
macSecKeys:
|
|
3925
|
-
minimumLinks:
|
|
3926
|
-
numberOfConnections:
|
|
3927
|
-
ownerAccount:
|
|
3928
|
-
providerName:
|
|
3929
|
-
region:
|
|
3930
|
-
tags:
|
|
3931
|
-
};
|
|
2900
|
+
return (0, smithy_client_1.take)(output, {
|
|
2901
|
+
allowsHostedConnections: smithy_client_1.expectBoolean,
|
|
2902
|
+
awsDevice: smithy_client_1.expectString,
|
|
2903
|
+
awsDeviceV2: smithy_client_1.expectString,
|
|
2904
|
+
awsLogicalDeviceId: smithy_client_1.expectString,
|
|
2905
|
+
connections: (_) => de_ConnectionList(_, context),
|
|
2906
|
+
connectionsBandwidth: smithy_client_1.expectString,
|
|
2907
|
+
encryptionMode: smithy_client_1.expectString,
|
|
2908
|
+
hasLogicalRedundancy: smithy_client_1.expectString,
|
|
2909
|
+
jumboFrameCapable: smithy_client_1.expectBoolean,
|
|
2910
|
+
lagId: smithy_client_1.expectString,
|
|
2911
|
+
lagName: smithy_client_1.expectString,
|
|
2912
|
+
lagState: smithy_client_1.expectString,
|
|
2913
|
+
location: smithy_client_1.expectString,
|
|
2914
|
+
macSecCapable: smithy_client_1.expectBoolean,
|
|
2915
|
+
macSecKeys: smithy_client_1._json,
|
|
2916
|
+
minimumLinks: smithy_client_1.expectInt32,
|
|
2917
|
+
numberOfConnections: smithy_client_1.expectInt32,
|
|
2918
|
+
ownerAccount: smithy_client_1.expectString,
|
|
2919
|
+
providerName: smithy_client_1.expectString,
|
|
2920
|
+
region: smithy_client_1.expectString,
|
|
2921
|
+
tags: smithy_client_1._json,
|
|
2922
|
+
});
|
|
3932
2923
|
};
|
|
3933
2924
|
const de_LagList = (output, context) => {
|
|
3934
2925
|
const retVal = (output || [])
|
|
3935
2926
|
.filter((e) => e != null)
|
|
3936
2927
|
.map((entry) => {
|
|
3937
|
-
if (entry === null) {
|
|
3938
|
-
return null;
|
|
3939
|
-
}
|
|
3940
2928
|
return de_Lag(entry, context);
|
|
3941
2929
|
});
|
|
3942
2930
|
return retVal;
|
|
3943
2931
|
};
|
|
3944
2932
|
const de_Lags = (output, context) => {
|
|
3945
|
-
return {
|
|
3946
|
-
lags:
|
|
3947
|
-
};
|
|
3948
|
-
};
|
|
3949
|
-
const de_ListVirtualInterfaceTestHistoryResponse = (output, context) => {
|
|
3950
|
-
return {
|
|
3951
|
-
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
3952
|
-
virtualInterfaceTestHistory: output.virtualInterfaceTestHistory != null
|
|
3953
|
-
? de_VirtualInterfaceTestHistoryList(output.virtualInterfaceTestHistory, context)
|
|
3954
|
-
: undefined,
|
|
3955
|
-
};
|
|
3956
|
-
};
|
|
3957
|
-
const de_Loa = (output, context) => {
|
|
3958
|
-
return {
|
|
3959
|
-
loaContent: output.loaContent != null ? context.base64Decoder(output.loaContent) : undefined,
|
|
3960
|
-
loaContentType: (0, smithy_client_1.expectString)(output.loaContentType),
|
|
3961
|
-
};
|
|
3962
|
-
};
|
|
3963
|
-
const de_Location = (output, context) => {
|
|
3964
|
-
return {
|
|
3965
|
-
availableMacSecPortSpeeds: output.availableMacSecPortSpeeds != null
|
|
3966
|
-
? de_AvailableMacSecPortSpeeds(output.availableMacSecPortSpeeds, context)
|
|
3967
|
-
: undefined,
|
|
3968
|
-
availablePortSpeeds: output.availablePortSpeeds != null ? de_AvailablePortSpeeds(output.availablePortSpeeds, context) : undefined,
|
|
3969
|
-
availableProviders: output.availableProviders != null ? de_ProviderList(output.availableProviders, context) : undefined,
|
|
3970
|
-
locationCode: (0, smithy_client_1.expectString)(output.locationCode),
|
|
3971
|
-
locationName: (0, smithy_client_1.expectString)(output.locationName),
|
|
3972
|
-
region: (0, smithy_client_1.expectString)(output.region),
|
|
3973
|
-
};
|
|
3974
|
-
};
|
|
3975
|
-
const de_LocationList = (output, context) => {
|
|
3976
|
-
const retVal = (output || [])
|
|
3977
|
-
.filter((e) => e != null)
|
|
3978
|
-
.map((entry) => {
|
|
3979
|
-
if (entry === null) {
|
|
3980
|
-
return null;
|
|
3981
|
-
}
|
|
3982
|
-
return de_Location(entry, context);
|
|
3983
|
-
});
|
|
3984
|
-
return retVal;
|
|
3985
|
-
};
|
|
3986
|
-
const de_Locations = (output, context) => {
|
|
3987
|
-
return {
|
|
3988
|
-
locations: output.locations != null ? de_LocationList(output.locations, context) : undefined,
|
|
3989
|
-
};
|
|
3990
|
-
};
|
|
3991
|
-
const de_MacSecKey = (output, context) => {
|
|
3992
|
-
return {
|
|
3993
|
-
ckn: (0, smithy_client_1.expectString)(output.ckn),
|
|
3994
|
-
secretARN: (0, smithy_client_1.expectString)(output.secretARN),
|
|
3995
|
-
startOn: (0, smithy_client_1.expectString)(output.startOn),
|
|
3996
|
-
state: (0, smithy_client_1.expectString)(output.state),
|
|
3997
|
-
};
|
|
3998
|
-
};
|
|
3999
|
-
const de_MacSecKeyList = (output, context) => {
|
|
4000
|
-
const retVal = (output || [])
|
|
4001
|
-
.filter((e) => e != null)
|
|
4002
|
-
.map((entry) => {
|
|
4003
|
-
if (entry === null) {
|
|
4004
|
-
return null;
|
|
4005
|
-
}
|
|
4006
|
-
return de_MacSecKey(entry, context);
|
|
4007
|
-
});
|
|
4008
|
-
return retVal;
|
|
4009
|
-
};
|
|
4010
|
-
const de_ProviderList = (output, context) => {
|
|
4011
|
-
const retVal = (output || [])
|
|
4012
|
-
.filter((e) => e != null)
|
|
4013
|
-
.map((entry) => {
|
|
4014
|
-
if (entry === null) {
|
|
4015
|
-
return null;
|
|
4016
|
-
}
|
|
4017
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
2933
|
+
return (0, smithy_client_1.take)(output, {
|
|
2934
|
+
lags: (_) => de_LagList(_, context),
|
|
4018
2935
|
});
|
|
4019
|
-
return retVal;
|
|
4020
2936
|
};
|
|
4021
|
-
const
|
|
4022
|
-
return {
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
};
|
|
4026
|
-
};
|
|
4027
|
-
const de_ResourceTagList = (output, context) => {
|
|
4028
|
-
const retVal = (output || [])
|
|
4029
|
-
.filter((e) => e != null)
|
|
4030
|
-
.map((entry) => {
|
|
4031
|
-
if (entry === null) {
|
|
4032
|
-
return null;
|
|
4033
|
-
}
|
|
4034
|
-
return de_ResourceTag(entry, context);
|
|
2937
|
+
const de_ListVirtualInterfaceTestHistoryResponse = (output, context) => {
|
|
2938
|
+
return (0, smithy_client_1.take)(output, {
|
|
2939
|
+
nextToken: smithy_client_1.expectString,
|
|
2940
|
+
virtualInterfaceTestHistory: (_) => de_VirtualInterfaceTestHistoryList(_, context),
|
|
4035
2941
|
});
|
|
4036
|
-
return retVal;
|
|
4037
|
-
};
|
|
4038
|
-
const de_RouteFilterPrefix = (output, context) => {
|
|
4039
|
-
return {
|
|
4040
|
-
cidr: (0, smithy_client_1.expectString)(output.cidr),
|
|
4041
|
-
};
|
|
4042
2942
|
};
|
|
4043
|
-
const
|
|
4044
|
-
|
|
4045
|
-
.
|
|
4046
|
-
.
|
|
4047
|
-
if (entry === null) {
|
|
4048
|
-
return null;
|
|
4049
|
-
}
|
|
4050
|
-
return de_RouteFilterPrefix(entry, context);
|
|
2943
|
+
const de_Loa = (output, context) => {
|
|
2944
|
+
return (0, smithy_client_1.take)(output, {
|
|
2945
|
+
loaContent: context.base64Decoder,
|
|
2946
|
+
loaContentType: smithy_client_1.expectString,
|
|
4051
2947
|
});
|
|
4052
|
-
return retVal;
|
|
4053
|
-
};
|
|
4054
|
-
const de_RouterType = (output, context) => {
|
|
4055
|
-
return {
|
|
4056
|
-
platform: (0, smithy_client_1.expectString)(output.platform),
|
|
4057
|
-
routerTypeIdentifier: (0, smithy_client_1.expectString)(output.routerTypeIdentifier),
|
|
4058
|
-
software: (0, smithy_client_1.expectString)(output.software),
|
|
4059
|
-
vendor: (0, smithy_client_1.expectString)(output.vendor),
|
|
4060
|
-
xsltTemplateName: (0, smithy_client_1.expectString)(output.xsltTemplateName),
|
|
4061
|
-
xsltTemplateNameForMacSec: (0, smithy_client_1.expectString)(output.xsltTemplateNameForMacSec),
|
|
4062
|
-
};
|
|
4063
2948
|
};
|
|
4064
2949
|
const de_StartBgpFailoverTestResponse = (output, context) => {
|
|
4065
|
-
return {
|
|
4066
|
-
virtualInterfaceTest:
|
|
4067
|
-
? de_VirtualInterfaceTestHistory(output.virtualInterfaceTest, context)
|
|
4068
|
-
: undefined,
|
|
4069
|
-
};
|
|
4070
|
-
};
|
|
4071
|
-
const de_StopBgpFailoverTestResponse = (output, context) => {
|
|
4072
|
-
return {
|
|
4073
|
-
virtualInterfaceTest: output.virtualInterfaceTest != null
|
|
4074
|
-
? de_VirtualInterfaceTestHistory(output.virtualInterfaceTest, context)
|
|
4075
|
-
: undefined,
|
|
4076
|
-
};
|
|
4077
|
-
};
|
|
4078
|
-
const de_Tag = (output, context) => {
|
|
4079
|
-
return {
|
|
4080
|
-
key: (0, smithy_client_1.expectString)(output.key),
|
|
4081
|
-
value: (0, smithy_client_1.expectString)(output.value),
|
|
4082
|
-
};
|
|
4083
|
-
};
|
|
4084
|
-
const de_TagList = (output, context) => {
|
|
4085
|
-
const retVal = (output || [])
|
|
4086
|
-
.filter((e) => e != null)
|
|
4087
|
-
.map((entry) => {
|
|
4088
|
-
if (entry === null) {
|
|
4089
|
-
return null;
|
|
4090
|
-
}
|
|
4091
|
-
return de_Tag(entry, context);
|
|
4092
|
-
});
|
|
4093
|
-
return retVal;
|
|
4094
|
-
};
|
|
4095
|
-
const de_TagResourceResponse = (output, context) => {
|
|
4096
|
-
return {};
|
|
4097
|
-
};
|
|
4098
|
-
const de_TooManyTagsException = (output, context) => {
|
|
4099
|
-
return {
|
|
4100
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
4101
|
-
};
|
|
4102
|
-
};
|
|
4103
|
-
const de_UntagResourceResponse = (output, context) => {
|
|
4104
|
-
return {};
|
|
4105
|
-
};
|
|
4106
|
-
const de_UpdateDirectConnectGatewayAssociationResult = (output, context) => {
|
|
4107
|
-
return {
|
|
4108
|
-
directConnectGatewayAssociation: output.directConnectGatewayAssociation != null
|
|
4109
|
-
? de_DirectConnectGatewayAssociation(output.directConnectGatewayAssociation, context)
|
|
4110
|
-
: undefined,
|
|
4111
|
-
};
|
|
4112
|
-
};
|
|
4113
|
-
const de_UpdateDirectConnectGatewayResponse = (output, context) => {
|
|
4114
|
-
return {
|
|
4115
|
-
directConnectGateway: output.directConnectGateway != null ? de_DirectConnectGateway(output.directConnectGateway, context) : undefined,
|
|
4116
|
-
};
|
|
4117
|
-
};
|
|
4118
|
-
const de_VirtualGateway = (output, context) => {
|
|
4119
|
-
return {
|
|
4120
|
-
virtualGatewayId: (0, smithy_client_1.expectString)(output.virtualGatewayId),
|
|
4121
|
-
virtualGatewayState: (0, smithy_client_1.expectString)(output.virtualGatewayState),
|
|
4122
|
-
};
|
|
4123
|
-
};
|
|
4124
|
-
const de_VirtualGatewayList = (output, context) => {
|
|
4125
|
-
const retVal = (output || [])
|
|
4126
|
-
.filter((e) => e != null)
|
|
4127
|
-
.map((entry) => {
|
|
4128
|
-
if (entry === null) {
|
|
4129
|
-
return null;
|
|
4130
|
-
}
|
|
4131
|
-
return de_VirtualGateway(entry, context);
|
|
2950
|
+
return (0, smithy_client_1.take)(output, {
|
|
2951
|
+
virtualInterfaceTest: (_) => de_VirtualInterfaceTestHistory(_, context),
|
|
4132
2952
|
});
|
|
4133
|
-
return retVal;
|
|
4134
|
-
};
|
|
4135
|
-
const de_VirtualGateways = (output, context) => {
|
|
4136
|
-
return {
|
|
4137
|
-
virtualGateways: output.virtualGateways != null ? de_VirtualGatewayList(output.virtualGateways, context) : undefined,
|
|
4138
|
-
};
|
|
4139
2953
|
};
|
|
4140
|
-
const
|
|
4141
|
-
return {
|
|
4142
|
-
|
|
4143
|
-
amazonAddress: (0, smithy_client_1.expectString)(output.amazonAddress),
|
|
4144
|
-
amazonSideAsn: (0, smithy_client_1.expectLong)(output.amazonSideAsn),
|
|
4145
|
-
asn: (0, smithy_client_1.expectInt32)(output.asn),
|
|
4146
|
-
authKey: (0, smithy_client_1.expectString)(output.authKey),
|
|
4147
|
-
awsDeviceV2: (0, smithy_client_1.expectString)(output.awsDeviceV2),
|
|
4148
|
-
awsLogicalDeviceId: (0, smithy_client_1.expectString)(output.awsLogicalDeviceId),
|
|
4149
|
-
bgpPeers: output.bgpPeers != null ? de_BGPPeerList(output.bgpPeers, context) : undefined,
|
|
4150
|
-
connectionId: (0, smithy_client_1.expectString)(output.connectionId),
|
|
4151
|
-
customerAddress: (0, smithy_client_1.expectString)(output.customerAddress),
|
|
4152
|
-
customerRouterConfig: (0, smithy_client_1.expectString)(output.customerRouterConfig),
|
|
4153
|
-
directConnectGatewayId: (0, smithy_client_1.expectString)(output.directConnectGatewayId),
|
|
4154
|
-
jumboFrameCapable: (0, smithy_client_1.expectBoolean)(output.jumboFrameCapable),
|
|
4155
|
-
location: (0, smithy_client_1.expectString)(output.location),
|
|
4156
|
-
mtu: (0, smithy_client_1.expectInt32)(output.mtu),
|
|
4157
|
-
ownerAccount: (0, smithy_client_1.expectString)(output.ownerAccount),
|
|
4158
|
-
region: (0, smithy_client_1.expectString)(output.region),
|
|
4159
|
-
routeFilterPrefixes: output.routeFilterPrefixes != null ? de_RouteFilterPrefixList(output.routeFilterPrefixes, context) : undefined,
|
|
4160
|
-
siteLinkEnabled: (0, smithy_client_1.expectBoolean)(output.siteLinkEnabled),
|
|
4161
|
-
tags: output.tags != null ? de_TagList(output.tags, context) : undefined,
|
|
4162
|
-
virtualGatewayId: (0, smithy_client_1.expectString)(output.virtualGatewayId),
|
|
4163
|
-
virtualInterfaceId: (0, smithy_client_1.expectString)(output.virtualInterfaceId),
|
|
4164
|
-
virtualInterfaceName: (0, smithy_client_1.expectString)(output.virtualInterfaceName),
|
|
4165
|
-
virtualInterfaceState: (0, smithy_client_1.expectString)(output.virtualInterfaceState),
|
|
4166
|
-
virtualInterfaceType: (0, smithy_client_1.expectString)(output.virtualInterfaceType),
|
|
4167
|
-
vlan: (0, smithy_client_1.expectInt32)(output.vlan),
|
|
4168
|
-
};
|
|
4169
|
-
};
|
|
4170
|
-
const de_VirtualInterfaceList = (output, context) => {
|
|
4171
|
-
const retVal = (output || [])
|
|
4172
|
-
.filter((e) => e != null)
|
|
4173
|
-
.map((entry) => {
|
|
4174
|
-
if (entry === null) {
|
|
4175
|
-
return null;
|
|
4176
|
-
}
|
|
4177
|
-
return de_VirtualInterface(entry, context);
|
|
2954
|
+
const de_StopBgpFailoverTestResponse = (output, context) => {
|
|
2955
|
+
return (0, smithy_client_1.take)(output, {
|
|
2956
|
+
virtualInterfaceTest: (_) => de_VirtualInterfaceTestHistory(_, context),
|
|
4178
2957
|
});
|
|
4179
|
-
return retVal;
|
|
4180
|
-
};
|
|
4181
|
-
const de_VirtualInterfaces = (output, context) => {
|
|
4182
|
-
return {
|
|
4183
|
-
virtualInterfaces: output.virtualInterfaces != null ? de_VirtualInterfaceList(output.virtualInterfaces, context) : undefined,
|
|
4184
|
-
};
|
|
4185
2958
|
};
|
|
4186
2959
|
const de_VirtualInterfaceTestHistory = (output, context) => {
|
|
4187
|
-
return {
|
|
4188
|
-
bgpPeers:
|
|
4189
|
-
endTime:
|
|
4190
|
-
ownerAccount:
|
|
4191
|
-
startTime:
|
|
4192
|
-
status:
|
|
4193
|
-
testDurationInMinutes:
|
|
4194
|
-
testId:
|
|
4195
|
-
virtualInterfaceId:
|
|
4196
|
-
};
|
|
2960
|
+
return (0, smithy_client_1.take)(output, {
|
|
2961
|
+
bgpPeers: smithy_client_1._json,
|
|
2962
|
+
endTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2963
|
+
ownerAccount: smithy_client_1.expectString,
|
|
2964
|
+
startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2965
|
+
status: smithy_client_1.expectString,
|
|
2966
|
+
testDurationInMinutes: smithy_client_1.expectInt32,
|
|
2967
|
+
testId: smithy_client_1.expectString,
|
|
2968
|
+
virtualInterfaceId: smithy_client_1.expectString,
|
|
2969
|
+
});
|
|
4197
2970
|
};
|
|
4198
2971
|
const de_VirtualInterfaceTestHistoryList = (output, context) => {
|
|
4199
2972
|
const retVal = (output || [])
|
|
4200
2973
|
.filter((e) => e != null)
|
|
4201
2974
|
.map((entry) => {
|
|
4202
|
-
if (entry === null) {
|
|
4203
|
-
return null;
|
|
4204
|
-
}
|
|
4205
2975
|
return de_VirtualInterfaceTestHistory(entry, context);
|
|
4206
2976
|
});
|
|
4207
2977
|
return retVal;
|
|
@@ -4219,6 +2989,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
4219
2989
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
4220
2990
|
};
|
|
4221
2991
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2992
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(DirectConnectServiceException_1.DirectConnectServiceException);
|
|
4222
2993
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
4223
2994
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
4224
2995
|
const contents = {
|