@aws-sdk/client-direct-connect 3.309.0 → 3.312.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 +69 -252
- package/dist-es/protocols/Aws_json1_1.js +69 -252
- package/package.json +35 -35
|
@@ -3,565 +3,376 @@ import { decorateServiceException as __decorateServiceException, expectBoolean a
|
|
|
3
3
|
import { DirectConnectServiceException as __BaseException } from "../models/DirectConnectServiceException";
|
|
4
4
|
import { DirectConnectClientException, DirectConnectServerException, DuplicateTagKeysException, TooManyTagsException, } from "../models/models_0";
|
|
5
5
|
export const se_AcceptDirectConnectGatewayAssociationProposalCommand = async (input, context) => {
|
|
6
|
-
const headers =
|
|
7
|
-
"content-type": "application/x-amz-json-1.1",
|
|
8
|
-
"x-amz-target": "OvertureService.AcceptDirectConnectGatewayAssociationProposal",
|
|
9
|
-
};
|
|
6
|
+
const headers = sharedHeaders("AcceptDirectConnectGatewayAssociationProposal");
|
|
10
7
|
let body;
|
|
11
8
|
body = JSON.stringify(se_AcceptDirectConnectGatewayAssociationProposalRequest(input, context));
|
|
12
9
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
10
|
};
|
|
14
11
|
export const se_AllocateConnectionOnInterconnectCommand = async (input, context) => {
|
|
15
|
-
const headers =
|
|
16
|
-
"content-type": "application/x-amz-json-1.1",
|
|
17
|
-
"x-amz-target": "OvertureService.AllocateConnectionOnInterconnect",
|
|
18
|
-
};
|
|
12
|
+
const headers = sharedHeaders("AllocateConnectionOnInterconnect");
|
|
19
13
|
let body;
|
|
20
14
|
body = JSON.stringify(se_AllocateConnectionOnInterconnectRequest(input, context));
|
|
21
15
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
16
|
};
|
|
23
17
|
export const se_AllocateHostedConnectionCommand = async (input, context) => {
|
|
24
|
-
const headers =
|
|
25
|
-
"content-type": "application/x-amz-json-1.1",
|
|
26
|
-
"x-amz-target": "OvertureService.AllocateHostedConnection",
|
|
27
|
-
};
|
|
18
|
+
const headers = sharedHeaders("AllocateHostedConnection");
|
|
28
19
|
let body;
|
|
29
20
|
body = JSON.stringify(se_AllocateHostedConnectionRequest(input, context));
|
|
30
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
31
22
|
};
|
|
32
23
|
export const se_AllocatePrivateVirtualInterfaceCommand = async (input, context) => {
|
|
33
|
-
const headers =
|
|
34
|
-
"content-type": "application/x-amz-json-1.1",
|
|
35
|
-
"x-amz-target": "OvertureService.AllocatePrivateVirtualInterface",
|
|
36
|
-
};
|
|
24
|
+
const headers = sharedHeaders("AllocatePrivateVirtualInterface");
|
|
37
25
|
let body;
|
|
38
26
|
body = JSON.stringify(se_AllocatePrivateVirtualInterfaceRequest(input, context));
|
|
39
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
28
|
};
|
|
41
29
|
export const se_AllocatePublicVirtualInterfaceCommand = async (input, context) => {
|
|
42
|
-
const headers =
|
|
43
|
-
"content-type": "application/x-amz-json-1.1",
|
|
44
|
-
"x-amz-target": "OvertureService.AllocatePublicVirtualInterface",
|
|
45
|
-
};
|
|
30
|
+
const headers = sharedHeaders("AllocatePublicVirtualInterface");
|
|
46
31
|
let body;
|
|
47
32
|
body = JSON.stringify(se_AllocatePublicVirtualInterfaceRequest(input, context));
|
|
48
33
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
34
|
};
|
|
50
35
|
export const se_AllocateTransitVirtualInterfaceCommand = async (input, context) => {
|
|
51
|
-
const headers =
|
|
52
|
-
"content-type": "application/x-amz-json-1.1",
|
|
53
|
-
"x-amz-target": "OvertureService.AllocateTransitVirtualInterface",
|
|
54
|
-
};
|
|
36
|
+
const headers = sharedHeaders("AllocateTransitVirtualInterface");
|
|
55
37
|
let body;
|
|
56
38
|
body = JSON.stringify(se_AllocateTransitVirtualInterfaceRequest(input, context));
|
|
57
39
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
40
|
};
|
|
59
41
|
export const se_AssociateConnectionWithLagCommand = async (input, context) => {
|
|
60
|
-
const headers =
|
|
61
|
-
"content-type": "application/x-amz-json-1.1",
|
|
62
|
-
"x-amz-target": "OvertureService.AssociateConnectionWithLag",
|
|
63
|
-
};
|
|
42
|
+
const headers = sharedHeaders("AssociateConnectionWithLag");
|
|
64
43
|
let body;
|
|
65
44
|
body = JSON.stringify(se_AssociateConnectionWithLagRequest(input, context));
|
|
66
45
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
46
|
};
|
|
68
47
|
export const se_AssociateHostedConnectionCommand = async (input, context) => {
|
|
69
|
-
const headers =
|
|
70
|
-
"content-type": "application/x-amz-json-1.1",
|
|
71
|
-
"x-amz-target": "OvertureService.AssociateHostedConnection",
|
|
72
|
-
};
|
|
48
|
+
const headers = sharedHeaders("AssociateHostedConnection");
|
|
73
49
|
let body;
|
|
74
50
|
body = JSON.stringify(se_AssociateHostedConnectionRequest(input, context));
|
|
75
51
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
52
|
};
|
|
77
53
|
export const se_AssociateMacSecKeyCommand = async (input, context) => {
|
|
78
|
-
const headers =
|
|
79
|
-
"content-type": "application/x-amz-json-1.1",
|
|
80
|
-
"x-amz-target": "OvertureService.AssociateMacSecKey",
|
|
81
|
-
};
|
|
54
|
+
const headers = sharedHeaders("AssociateMacSecKey");
|
|
82
55
|
let body;
|
|
83
56
|
body = JSON.stringify(se_AssociateMacSecKeyRequest(input, context));
|
|
84
57
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
58
|
};
|
|
86
59
|
export const se_AssociateVirtualInterfaceCommand = async (input, context) => {
|
|
87
|
-
const headers =
|
|
88
|
-
"content-type": "application/x-amz-json-1.1",
|
|
89
|
-
"x-amz-target": "OvertureService.AssociateVirtualInterface",
|
|
90
|
-
};
|
|
60
|
+
const headers = sharedHeaders("AssociateVirtualInterface");
|
|
91
61
|
let body;
|
|
92
62
|
body = JSON.stringify(se_AssociateVirtualInterfaceRequest(input, context));
|
|
93
63
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
94
64
|
};
|
|
95
65
|
export const se_ConfirmConnectionCommand = async (input, context) => {
|
|
96
|
-
const headers =
|
|
97
|
-
"content-type": "application/x-amz-json-1.1",
|
|
98
|
-
"x-amz-target": "OvertureService.ConfirmConnection",
|
|
99
|
-
};
|
|
66
|
+
const headers = sharedHeaders("ConfirmConnection");
|
|
100
67
|
let body;
|
|
101
68
|
body = JSON.stringify(se_ConfirmConnectionRequest(input, context));
|
|
102
69
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
103
70
|
};
|
|
104
71
|
export const se_ConfirmCustomerAgreementCommand = async (input, context) => {
|
|
105
|
-
const headers =
|
|
106
|
-
"content-type": "application/x-amz-json-1.1",
|
|
107
|
-
"x-amz-target": "OvertureService.ConfirmCustomerAgreement",
|
|
108
|
-
};
|
|
72
|
+
const headers = sharedHeaders("ConfirmCustomerAgreement");
|
|
109
73
|
let body;
|
|
110
74
|
body = JSON.stringify(se_ConfirmCustomerAgreementRequest(input, context));
|
|
111
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
112
76
|
};
|
|
113
77
|
export const se_ConfirmPrivateVirtualInterfaceCommand = async (input, context) => {
|
|
114
|
-
const headers =
|
|
115
|
-
"content-type": "application/x-amz-json-1.1",
|
|
116
|
-
"x-amz-target": "OvertureService.ConfirmPrivateVirtualInterface",
|
|
117
|
-
};
|
|
78
|
+
const headers = sharedHeaders("ConfirmPrivateVirtualInterface");
|
|
118
79
|
let body;
|
|
119
80
|
body = JSON.stringify(se_ConfirmPrivateVirtualInterfaceRequest(input, context));
|
|
120
81
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
121
82
|
};
|
|
122
83
|
export const se_ConfirmPublicVirtualInterfaceCommand = async (input, context) => {
|
|
123
|
-
const headers =
|
|
124
|
-
"content-type": "application/x-amz-json-1.1",
|
|
125
|
-
"x-amz-target": "OvertureService.ConfirmPublicVirtualInterface",
|
|
126
|
-
};
|
|
84
|
+
const headers = sharedHeaders("ConfirmPublicVirtualInterface");
|
|
127
85
|
let body;
|
|
128
86
|
body = JSON.stringify(se_ConfirmPublicVirtualInterfaceRequest(input, context));
|
|
129
87
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
130
88
|
};
|
|
131
89
|
export const se_ConfirmTransitVirtualInterfaceCommand = async (input, context) => {
|
|
132
|
-
const headers =
|
|
133
|
-
"content-type": "application/x-amz-json-1.1",
|
|
134
|
-
"x-amz-target": "OvertureService.ConfirmTransitVirtualInterface",
|
|
135
|
-
};
|
|
90
|
+
const headers = sharedHeaders("ConfirmTransitVirtualInterface");
|
|
136
91
|
let body;
|
|
137
92
|
body = JSON.stringify(se_ConfirmTransitVirtualInterfaceRequest(input, context));
|
|
138
93
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
139
94
|
};
|
|
140
95
|
export const se_CreateBGPPeerCommand = async (input, context) => {
|
|
141
|
-
const headers =
|
|
142
|
-
"content-type": "application/x-amz-json-1.1",
|
|
143
|
-
"x-amz-target": "OvertureService.CreateBGPPeer",
|
|
144
|
-
};
|
|
96
|
+
const headers = sharedHeaders("CreateBGPPeer");
|
|
145
97
|
let body;
|
|
146
98
|
body = JSON.stringify(se_CreateBGPPeerRequest(input, context));
|
|
147
99
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
100
|
};
|
|
149
101
|
export const se_CreateConnectionCommand = async (input, context) => {
|
|
150
|
-
const headers =
|
|
151
|
-
"content-type": "application/x-amz-json-1.1",
|
|
152
|
-
"x-amz-target": "OvertureService.CreateConnection",
|
|
153
|
-
};
|
|
102
|
+
const headers = sharedHeaders("CreateConnection");
|
|
154
103
|
let body;
|
|
155
104
|
body = JSON.stringify(se_CreateConnectionRequest(input, context));
|
|
156
105
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
157
106
|
};
|
|
158
107
|
export const se_CreateDirectConnectGatewayCommand = async (input, context) => {
|
|
159
|
-
const headers =
|
|
160
|
-
"content-type": "application/x-amz-json-1.1",
|
|
161
|
-
"x-amz-target": "OvertureService.CreateDirectConnectGateway",
|
|
162
|
-
};
|
|
108
|
+
const headers = sharedHeaders("CreateDirectConnectGateway");
|
|
163
109
|
let body;
|
|
164
110
|
body = JSON.stringify(se_CreateDirectConnectGatewayRequest(input, context));
|
|
165
111
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
166
112
|
};
|
|
167
113
|
export const se_CreateDirectConnectGatewayAssociationCommand = async (input, context) => {
|
|
168
|
-
const headers =
|
|
169
|
-
"content-type": "application/x-amz-json-1.1",
|
|
170
|
-
"x-amz-target": "OvertureService.CreateDirectConnectGatewayAssociation",
|
|
171
|
-
};
|
|
114
|
+
const headers = sharedHeaders("CreateDirectConnectGatewayAssociation");
|
|
172
115
|
let body;
|
|
173
116
|
body = JSON.stringify(se_CreateDirectConnectGatewayAssociationRequest(input, context));
|
|
174
117
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
175
118
|
};
|
|
176
119
|
export const se_CreateDirectConnectGatewayAssociationProposalCommand = async (input, context) => {
|
|
177
|
-
const headers =
|
|
178
|
-
"content-type": "application/x-amz-json-1.1",
|
|
179
|
-
"x-amz-target": "OvertureService.CreateDirectConnectGatewayAssociationProposal",
|
|
180
|
-
};
|
|
120
|
+
const headers = sharedHeaders("CreateDirectConnectGatewayAssociationProposal");
|
|
181
121
|
let body;
|
|
182
122
|
body = JSON.stringify(se_CreateDirectConnectGatewayAssociationProposalRequest(input, context));
|
|
183
123
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
184
124
|
};
|
|
185
125
|
export const se_CreateInterconnectCommand = async (input, context) => {
|
|
186
|
-
const headers =
|
|
187
|
-
"content-type": "application/x-amz-json-1.1",
|
|
188
|
-
"x-amz-target": "OvertureService.CreateInterconnect",
|
|
189
|
-
};
|
|
126
|
+
const headers = sharedHeaders("CreateInterconnect");
|
|
190
127
|
let body;
|
|
191
128
|
body = JSON.stringify(se_CreateInterconnectRequest(input, context));
|
|
192
129
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
193
130
|
};
|
|
194
131
|
export const se_CreateLagCommand = async (input, context) => {
|
|
195
|
-
const headers =
|
|
196
|
-
"content-type": "application/x-amz-json-1.1",
|
|
197
|
-
"x-amz-target": "OvertureService.CreateLag",
|
|
198
|
-
};
|
|
132
|
+
const headers = sharedHeaders("CreateLag");
|
|
199
133
|
let body;
|
|
200
134
|
body = JSON.stringify(se_CreateLagRequest(input, context));
|
|
201
135
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
202
136
|
};
|
|
203
137
|
export const se_CreatePrivateVirtualInterfaceCommand = async (input, context) => {
|
|
204
|
-
const headers =
|
|
205
|
-
"content-type": "application/x-amz-json-1.1",
|
|
206
|
-
"x-amz-target": "OvertureService.CreatePrivateVirtualInterface",
|
|
207
|
-
};
|
|
138
|
+
const headers = sharedHeaders("CreatePrivateVirtualInterface");
|
|
208
139
|
let body;
|
|
209
140
|
body = JSON.stringify(se_CreatePrivateVirtualInterfaceRequest(input, context));
|
|
210
141
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
211
142
|
};
|
|
212
143
|
export const se_CreatePublicVirtualInterfaceCommand = async (input, context) => {
|
|
213
|
-
const headers =
|
|
214
|
-
"content-type": "application/x-amz-json-1.1",
|
|
215
|
-
"x-amz-target": "OvertureService.CreatePublicVirtualInterface",
|
|
216
|
-
};
|
|
144
|
+
const headers = sharedHeaders("CreatePublicVirtualInterface");
|
|
217
145
|
let body;
|
|
218
146
|
body = JSON.stringify(se_CreatePublicVirtualInterfaceRequest(input, context));
|
|
219
147
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
220
148
|
};
|
|
221
149
|
export const se_CreateTransitVirtualInterfaceCommand = async (input, context) => {
|
|
222
|
-
const headers =
|
|
223
|
-
"content-type": "application/x-amz-json-1.1",
|
|
224
|
-
"x-amz-target": "OvertureService.CreateTransitVirtualInterface",
|
|
225
|
-
};
|
|
150
|
+
const headers = sharedHeaders("CreateTransitVirtualInterface");
|
|
226
151
|
let body;
|
|
227
152
|
body = JSON.stringify(se_CreateTransitVirtualInterfaceRequest(input, context));
|
|
228
153
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
229
154
|
};
|
|
230
155
|
export const se_DeleteBGPPeerCommand = async (input, context) => {
|
|
231
|
-
const headers =
|
|
232
|
-
"content-type": "application/x-amz-json-1.1",
|
|
233
|
-
"x-amz-target": "OvertureService.DeleteBGPPeer",
|
|
234
|
-
};
|
|
156
|
+
const headers = sharedHeaders("DeleteBGPPeer");
|
|
235
157
|
let body;
|
|
236
158
|
body = JSON.stringify(se_DeleteBGPPeerRequest(input, context));
|
|
237
159
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
238
160
|
};
|
|
239
161
|
export const se_DeleteConnectionCommand = async (input, context) => {
|
|
240
|
-
const headers =
|
|
241
|
-
"content-type": "application/x-amz-json-1.1",
|
|
242
|
-
"x-amz-target": "OvertureService.DeleteConnection",
|
|
243
|
-
};
|
|
162
|
+
const headers = sharedHeaders("DeleteConnection");
|
|
244
163
|
let body;
|
|
245
164
|
body = JSON.stringify(se_DeleteConnectionRequest(input, context));
|
|
246
165
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
247
166
|
};
|
|
248
167
|
export const se_DeleteDirectConnectGatewayCommand = async (input, context) => {
|
|
249
|
-
const headers =
|
|
250
|
-
"content-type": "application/x-amz-json-1.1",
|
|
251
|
-
"x-amz-target": "OvertureService.DeleteDirectConnectGateway",
|
|
252
|
-
};
|
|
168
|
+
const headers = sharedHeaders("DeleteDirectConnectGateway");
|
|
253
169
|
let body;
|
|
254
170
|
body = JSON.stringify(se_DeleteDirectConnectGatewayRequest(input, context));
|
|
255
171
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
256
172
|
};
|
|
257
173
|
export const se_DeleteDirectConnectGatewayAssociationCommand = async (input, context) => {
|
|
258
|
-
const headers =
|
|
259
|
-
"content-type": "application/x-amz-json-1.1",
|
|
260
|
-
"x-amz-target": "OvertureService.DeleteDirectConnectGatewayAssociation",
|
|
261
|
-
};
|
|
174
|
+
const headers = sharedHeaders("DeleteDirectConnectGatewayAssociation");
|
|
262
175
|
let body;
|
|
263
176
|
body = JSON.stringify(se_DeleteDirectConnectGatewayAssociationRequest(input, context));
|
|
264
177
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
265
178
|
};
|
|
266
179
|
export const se_DeleteDirectConnectGatewayAssociationProposalCommand = async (input, context) => {
|
|
267
|
-
const headers =
|
|
268
|
-
"content-type": "application/x-amz-json-1.1",
|
|
269
|
-
"x-amz-target": "OvertureService.DeleteDirectConnectGatewayAssociationProposal",
|
|
270
|
-
};
|
|
180
|
+
const headers = sharedHeaders("DeleteDirectConnectGatewayAssociationProposal");
|
|
271
181
|
let body;
|
|
272
182
|
body = JSON.stringify(se_DeleteDirectConnectGatewayAssociationProposalRequest(input, context));
|
|
273
183
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
274
184
|
};
|
|
275
185
|
export const se_DeleteInterconnectCommand = async (input, context) => {
|
|
276
|
-
const headers =
|
|
277
|
-
"content-type": "application/x-amz-json-1.1",
|
|
278
|
-
"x-amz-target": "OvertureService.DeleteInterconnect",
|
|
279
|
-
};
|
|
186
|
+
const headers = sharedHeaders("DeleteInterconnect");
|
|
280
187
|
let body;
|
|
281
188
|
body = JSON.stringify(se_DeleteInterconnectRequest(input, context));
|
|
282
189
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
283
190
|
};
|
|
284
191
|
export const se_DeleteLagCommand = async (input, context) => {
|
|
285
|
-
const headers =
|
|
286
|
-
"content-type": "application/x-amz-json-1.1",
|
|
287
|
-
"x-amz-target": "OvertureService.DeleteLag",
|
|
288
|
-
};
|
|
192
|
+
const headers = sharedHeaders("DeleteLag");
|
|
289
193
|
let body;
|
|
290
194
|
body = JSON.stringify(se_DeleteLagRequest(input, context));
|
|
291
195
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
292
196
|
};
|
|
293
197
|
export const se_DeleteVirtualInterfaceCommand = async (input, context) => {
|
|
294
|
-
const headers =
|
|
295
|
-
"content-type": "application/x-amz-json-1.1",
|
|
296
|
-
"x-amz-target": "OvertureService.DeleteVirtualInterface",
|
|
297
|
-
};
|
|
198
|
+
const headers = sharedHeaders("DeleteVirtualInterface");
|
|
298
199
|
let body;
|
|
299
200
|
body = JSON.stringify(se_DeleteVirtualInterfaceRequest(input, context));
|
|
300
201
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
301
202
|
};
|
|
302
203
|
export const se_DescribeConnectionLoaCommand = async (input, context) => {
|
|
303
|
-
const headers =
|
|
304
|
-
"content-type": "application/x-amz-json-1.1",
|
|
305
|
-
"x-amz-target": "OvertureService.DescribeConnectionLoa",
|
|
306
|
-
};
|
|
204
|
+
const headers = sharedHeaders("DescribeConnectionLoa");
|
|
307
205
|
let body;
|
|
308
206
|
body = JSON.stringify(se_DescribeConnectionLoaRequest(input, context));
|
|
309
207
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
310
208
|
};
|
|
311
209
|
export const se_DescribeConnectionsCommand = async (input, context) => {
|
|
312
|
-
const headers =
|
|
313
|
-
"content-type": "application/x-amz-json-1.1",
|
|
314
|
-
"x-amz-target": "OvertureService.DescribeConnections",
|
|
315
|
-
};
|
|
210
|
+
const headers = sharedHeaders("DescribeConnections");
|
|
316
211
|
let body;
|
|
317
212
|
body = JSON.stringify(se_DescribeConnectionsRequest(input, context));
|
|
318
213
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
319
214
|
};
|
|
320
215
|
export const se_DescribeConnectionsOnInterconnectCommand = async (input, context) => {
|
|
321
|
-
const headers =
|
|
322
|
-
"content-type": "application/x-amz-json-1.1",
|
|
323
|
-
"x-amz-target": "OvertureService.DescribeConnectionsOnInterconnect",
|
|
324
|
-
};
|
|
216
|
+
const headers = sharedHeaders("DescribeConnectionsOnInterconnect");
|
|
325
217
|
let body;
|
|
326
218
|
body = JSON.stringify(se_DescribeConnectionsOnInterconnectRequest(input, context));
|
|
327
219
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
328
220
|
};
|
|
329
221
|
export const se_DescribeCustomerMetadataCommand = async (input, context) => {
|
|
330
|
-
const headers =
|
|
331
|
-
"content-type": "application/x-amz-json-1.1",
|
|
332
|
-
"x-amz-target": "OvertureService.DescribeCustomerMetadata",
|
|
333
|
-
};
|
|
222
|
+
const headers = sharedHeaders("DescribeCustomerMetadata");
|
|
334
223
|
const body = "{}";
|
|
335
224
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
336
225
|
};
|
|
337
226
|
export const se_DescribeDirectConnectGatewayAssociationProposalsCommand = async (input, context) => {
|
|
338
|
-
const headers =
|
|
339
|
-
"content-type": "application/x-amz-json-1.1",
|
|
340
|
-
"x-amz-target": "OvertureService.DescribeDirectConnectGatewayAssociationProposals",
|
|
341
|
-
};
|
|
227
|
+
const headers = sharedHeaders("DescribeDirectConnectGatewayAssociationProposals");
|
|
342
228
|
let body;
|
|
343
229
|
body = JSON.stringify(se_DescribeDirectConnectGatewayAssociationProposalsRequest(input, context));
|
|
344
230
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
345
231
|
};
|
|
346
232
|
export const se_DescribeDirectConnectGatewayAssociationsCommand = async (input, context) => {
|
|
347
|
-
const headers =
|
|
348
|
-
"content-type": "application/x-amz-json-1.1",
|
|
349
|
-
"x-amz-target": "OvertureService.DescribeDirectConnectGatewayAssociations",
|
|
350
|
-
};
|
|
233
|
+
const headers = sharedHeaders("DescribeDirectConnectGatewayAssociations");
|
|
351
234
|
let body;
|
|
352
235
|
body = JSON.stringify(se_DescribeDirectConnectGatewayAssociationsRequest(input, context));
|
|
353
236
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
354
237
|
};
|
|
355
238
|
export const se_DescribeDirectConnectGatewayAttachmentsCommand = async (input, context) => {
|
|
356
|
-
const headers =
|
|
357
|
-
"content-type": "application/x-amz-json-1.1",
|
|
358
|
-
"x-amz-target": "OvertureService.DescribeDirectConnectGatewayAttachments",
|
|
359
|
-
};
|
|
239
|
+
const headers = sharedHeaders("DescribeDirectConnectGatewayAttachments");
|
|
360
240
|
let body;
|
|
361
241
|
body = JSON.stringify(se_DescribeDirectConnectGatewayAttachmentsRequest(input, context));
|
|
362
242
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
363
243
|
};
|
|
364
244
|
export const se_DescribeDirectConnectGatewaysCommand = async (input, context) => {
|
|
365
|
-
const headers =
|
|
366
|
-
"content-type": "application/x-amz-json-1.1",
|
|
367
|
-
"x-amz-target": "OvertureService.DescribeDirectConnectGateways",
|
|
368
|
-
};
|
|
245
|
+
const headers = sharedHeaders("DescribeDirectConnectGateways");
|
|
369
246
|
let body;
|
|
370
247
|
body = JSON.stringify(se_DescribeDirectConnectGatewaysRequest(input, context));
|
|
371
248
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
372
249
|
};
|
|
373
250
|
export const se_DescribeHostedConnectionsCommand = async (input, context) => {
|
|
374
|
-
const headers =
|
|
375
|
-
"content-type": "application/x-amz-json-1.1",
|
|
376
|
-
"x-amz-target": "OvertureService.DescribeHostedConnections",
|
|
377
|
-
};
|
|
251
|
+
const headers = sharedHeaders("DescribeHostedConnections");
|
|
378
252
|
let body;
|
|
379
253
|
body = JSON.stringify(se_DescribeHostedConnectionsRequest(input, context));
|
|
380
254
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
381
255
|
};
|
|
382
256
|
export const se_DescribeInterconnectLoaCommand = async (input, context) => {
|
|
383
|
-
const headers =
|
|
384
|
-
"content-type": "application/x-amz-json-1.1",
|
|
385
|
-
"x-amz-target": "OvertureService.DescribeInterconnectLoa",
|
|
386
|
-
};
|
|
257
|
+
const headers = sharedHeaders("DescribeInterconnectLoa");
|
|
387
258
|
let body;
|
|
388
259
|
body = JSON.stringify(se_DescribeInterconnectLoaRequest(input, context));
|
|
389
260
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
390
261
|
};
|
|
391
262
|
export const se_DescribeInterconnectsCommand = async (input, context) => {
|
|
392
|
-
const headers =
|
|
393
|
-
"content-type": "application/x-amz-json-1.1",
|
|
394
|
-
"x-amz-target": "OvertureService.DescribeInterconnects",
|
|
395
|
-
};
|
|
263
|
+
const headers = sharedHeaders("DescribeInterconnects");
|
|
396
264
|
let body;
|
|
397
265
|
body = JSON.stringify(se_DescribeInterconnectsRequest(input, context));
|
|
398
266
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
399
267
|
};
|
|
400
268
|
export const se_DescribeLagsCommand = async (input, context) => {
|
|
401
|
-
const headers =
|
|
402
|
-
"content-type": "application/x-amz-json-1.1",
|
|
403
|
-
"x-amz-target": "OvertureService.DescribeLags",
|
|
404
|
-
};
|
|
269
|
+
const headers = sharedHeaders("DescribeLags");
|
|
405
270
|
let body;
|
|
406
271
|
body = JSON.stringify(se_DescribeLagsRequest(input, context));
|
|
407
272
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
408
273
|
};
|
|
409
274
|
export const se_DescribeLoaCommand = async (input, context) => {
|
|
410
|
-
const headers =
|
|
411
|
-
"content-type": "application/x-amz-json-1.1",
|
|
412
|
-
"x-amz-target": "OvertureService.DescribeLoa",
|
|
413
|
-
};
|
|
275
|
+
const headers = sharedHeaders("DescribeLoa");
|
|
414
276
|
let body;
|
|
415
277
|
body = JSON.stringify(se_DescribeLoaRequest(input, context));
|
|
416
278
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
417
279
|
};
|
|
418
280
|
export const se_DescribeLocationsCommand = async (input, context) => {
|
|
419
|
-
const headers =
|
|
420
|
-
"content-type": "application/x-amz-json-1.1",
|
|
421
|
-
"x-amz-target": "OvertureService.DescribeLocations",
|
|
422
|
-
};
|
|
281
|
+
const headers = sharedHeaders("DescribeLocations");
|
|
423
282
|
const body = "{}";
|
|
424
283
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
425
284
|
};
|
|
426
285
|
export const se_DescribeRouterConfigurationCommand = async (input, context) => {
|
|
427
|
-
const headers =
|
|
428
|
-
"content-type": "application/x-amz-json-1.1",
|
|
429
|
-
"x-amz-target": "OvertureService.DescribeRouterConfiguration",
|
|
430
|
-
};
|
|
286
|
+
const headers = sharedHeaders("DescribeRouterConfiguration");
|
|
431
287
|
let body;
|
|
432
288
|
body = JSON.stringify(se_DescribeRouterConfigurationRequest(input, context));
|
|
433
289
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
434
290
|
};
|
|
435
291
|
export const se_DescribeTagsCommand = async (input, context) => {
|
|
436
|
-
const headers =
|
|
437
|
-
"content-type": "application/x-amz-json-1.1",
|
|
438
|
-
"x-amz-target": "OvertureService.DescribeTags",
|
|
439
|
-
};
|
|
292
|
+
const headers = sharedHeaders("DescribeTags");
|
|
440
293
|
let body;
|
|
441
294
|
body = JSON.stringify(se_DescribeTagsRequest(input, context));
|
|
442
295
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
443
296
|
};
|
|
444
297
|
export const se_DescribeVirtualGatewaysCommand = async (input, context) => {
|
|
445
|
-
const headers =
|
|
446
|
-
"content-type": "application/x-amz-json-1.1",
|
|
447
|
-
"x-amz-target": "OvertureService.DescribeVirtualGateways",
|
|
448
|
-
};
|
|
298
|
+
const headers = sharedHeaders("DescribeVirtualGateways");
|
|
449
299
|
const body = "{}";
|
|
450
300
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
451
301
|
};
|
|
452
302
|
export const se_DescribeVirtualInterfacesCommand = async (input, context) => {
|
|
453
|
-
const headers =
|
|
454
|
-
"content-type": "application/x-amz-json-1.1",
|
|
455
|
-
"x-amz-target": "OvertureService.DescribeVirtualInterfaces",
|
|
456
|
-
};
|
|
303
|
+
const headers = sharedHeaders("DescribeVirtualInterfaces");
|
|
457
304
|
let body;
|
|
458
305
|
body = JSON.stringify(se_DescribeVirtualInterfacesRequest(input, context));
|
|
459
306
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
460
307
|
};
|
|
461
308
|
export const se_DisassociateConnectionFromLagCommand = async (input, context) => {
|
|
462
|
-
const headers =
|
|
463
|
-
"content-type": "application/x-amz-json-1.1",
|
|
464
|
-
"x-amz-target": "OvertureService.DisassociateConnectionFromLag",
|
|
465
|
-
};
|
|
309
|
+
const headers = sharedHeaders("DisassociateConnectionFromLag");
|
|
466
310
|
let body;
|
|
467
311
|
body = JSON.stringify(se_DisassociateConnectionFromLagRequest(input, context));
|
|
468
312
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
469
313
|
};
|
|
470
314
|
export const se_DisassociateMacSecKeyCommand = async (input, context) => {
|
|
471
|
-
const headers =
|
|
472
|
-
"content-type": "application/x-amz-json-1.1",
|
|
473
|
-
"x-amz-target": "OvertureService.DisassociateMacSecKey",
|
|
474
|
-
};
|
|
315
|
+
const headers = sharedHeaders("DisassociateMacSecKey");
|
|
475
316
|
let body;
|
|
476
317
|
body = JSON.stringify(se_DisassociateMacSecKeyRequest(input, context));
|
|
477
318
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
478
319
|
};
|
|
479
320
|
export const se_ListVirtualInterfaceTestHistoryCommand = async (input, context) => {
|
|
480
|
-
const headers =
|
|
481
|
-
"content-type": "application/x-amz-json-1.1",
|
|
482
|
-
"x-amz-target": "OvertureService.ListVirtualInterfaceTestHistory",
|
|
483
|
-
};
|
|
321
|
+
const headers = sharedHeaders("ListVirtualInterfaceTestHistory");
|
|
484
322
|
let body;
|
|
485
323
|
body = JSON.stringify(se_ListVirtualInterfaceTestHistoryRequest(input, context));
|
|
486
324
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
487
325
|
};
|
|
488
326
|
export const se_StartBgpFailoverTestCommand = async (input, context) => {
|
|
489
|
-
const headers =
|
|
490
|
-
"content-type": "application/x-amz-json-1.1",
|
|
491
|
-
"x-amz-target": "OvertureService.StartBgpFailoverTest",
|
|
492
|
-
};
|
|
327
|
+
const headers = sharedHeaders("StartBgpFailoverTest");
|
|
493
328
|
let body;
|
|
494
329
|
body = JSON.stringify(se_StartBgpFailoverTestRequest(input, context));
|
|
495
330
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
496
331
|
};
|
|
497
332
|
export const se_StopBgpFailoverTestCommand = async (input, context) => {
|
|
498
|
-
const headers =
|
|
499
|
-
"content-type": "application/x-amz-json-1.1",
|
|
500
|
-
"x-amz-target": "OvertureService.StopBgpFailoverTest",
|
|
501
|
-
};
|
|
333
|
+
const headers = sharedHeaders("StopBgpFailoverTest");
|
|
502
334
|
let body;
|
|
503
335
|
body = JSON.stringify(se_StopBgpFailoverTestRequest(input, context));
|
|
504
336
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
505
337
|
};
|
|
506
338
|
export const se_TagResourceCommand = async (input, context) => {
|
|
507
|
-
const headers =
|
|
508
|
-
"content-type": "application/x-amz-json-1.1",
|
|
509
|
-
"x-amz-target": "OvertureService.TagResource",
|
|
510
|
-
};
|
|
339
|
+
const headers = sharedHeaders("TagResource");
|
|
511
340
|
let body;
|
|
512
341
|
body = JSON.stringify(se_TagResourceRequest(input, context));
|
|
513
342
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
514
343
|
};
|
|
515
344
|
export const se_UntagResourceCommand = async (input, context) => {
|
|
516
|
-
const headers =
|
|
517
|
-
"content-type": "application/x-amz-json-1.1",
|
|
518
|
-
"x-amz-target": "OvertureService.UntagResource",
|
|
519
|
-
};
|
|
345
|
+
const headers = sharedHeaders("UntagResource");
|
|
520
346
|
let body;
|
|
521
347
|
body = JSON.stringify(se_UntagResourceRequest(input, context));
|
|
522
348
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
523
349
|
};
|
|
524
350
|
export const se_UpdateConnectionCommand = async (input, context) => {
|
|
525
|
-
const headers =
|
|
526
|
-
"content-type": "application/x-amz-json-1.1",
|
|
527
|
-
"x-amz-target": "OvertureService.UpdateConnection",
|
|
528
|
-
};
|
|
351
|
+
const headers = sharedHeaders("UpdateConnection");
|
|
529
352
|
let body;
|
|
530
353
|
body = JSON.stringify(se_UpdateConnectionRequest(input, context));
|
|
531
354
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
532
355
|
};
|
|
533
356
|
export const se_UpdateDirectConnectGatewayCommand = async (input, context) => {
|
|
534
|
-
const headers =
|
|
535
|
-
"content-type": "application/x-amz-json-1.1",
|
|
536
|
-
"x-amz-target": "OvertureService.UpdateDirectConnectGateway",
|
|
537
|
-
};
|
|
357
|
+
const headers = sharedHeaders("UpdateDirectConnectGateway");
|
|
538
358
|
let body;
|
|
539
359
|
body = JSON.stringify(se_UpdateDirectConnectGatewayRequest(input, context));
|
|
540
360
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
541
361
|
};
|
|
542
362
|
export const se_UpdateDirectConnectGatewayAssociationCommand = async (input, context) => {
|
|
543
|
-
const headers =
|
|
544
|
-
"content-type": "application/x-amz-json-1.1",
|
|
545
|
-
"x-amz-target": "OvertureService.UpdateDirectConnectGatewayAssociation",
|
|
546
|
-
};
|
|
363
|
+
const headers = sharedHeaders("UpdateDirectConnectGatewayAssociation");
|
|
547
364
|
let body;
|
|
548
365
|
body = JSON.stringify(se_UpdateDirectConnectGatewayAssociationRequest(input, context));
|
|
549
366
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
550
367
|
};
|
|
551
368
|
export const se_UpdateLagCommand = async (input, context) => {
|
|
552
|
-
const headers =
|
|
553
|
-
"content-type": "application/x-amz-json-1.1",
|
|
554
|
-
"x-amz-target": "OvertureService.UpdateLag",
|
|
555
|
-
};
|
|
369
|
+
const headers = sharedHeaders("UpdateLag");
|
|
556
370
|
let body;
|
|
557
371
|
body = JSON.stringify(se_UpdateLagRequest(input, context));
|
|
558
372
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
559
373
|
};
|
|
560
374
|
export const se_UpdateVirtualInterfaceAttributesCommand = async (input, context) => {
|
|
561
|
-
const headers =
|
|
562
|
-
"content-type": "application/x-amz-json-1.1",
|
|
563
|
-
"x-amz-target": "OvertureService.UpdateVirtualInterfaceAttributes",
|
|
564
|
-
};
|
|
375
|
+
const headers = sharedHeaders("UpdateVirtualInterfaceAttributes");
|
|
565
376
|
let body;
|
|
566
377
|
body = JSON.stringify(se_UpdateVirtualInterfaceAttributesRequest(input, context));
|
|
567
378
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
@@ -4295,6 +4106,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
4295
4106
|
}
|
|
4296
4107
|
return new __HttpRequest(contents);
|
|
4297
4108
|
};
|
|
4109
|
+
function sharedHeaders(operation) {
|
|
4110
|
+
return {
|
|
4111
|
+
"content-type": "application/x-amz-json-1.1",
|
|
4112
|
+
"x-amz-target": `OvertureService.${operation}`,
|
|
4113
|
+
};
|
|
4114
|
+
}
|
|
4298
4115
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
4299
4116
|
if (encoded.length) {
|
|
4300
4117
|
return JSON.parse(encoded);
|