@aws-sdk/client-evs 3.891.0 → 3.894.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +1260 -10
- package/package.json +19 -19
- package/dist-cjs/Evs.js +0 -37
- package/dist-cjs/EvsClient.js +0 -52
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -43
- package/dist-cjs/commands/AssociateEipToVlanCommand.js +0 -26
- package/dist-cjs/commands/CreateEnvironmentCommand.js +0 -26
- package/dist-cjs/commands/CreateEnvironmentHostCommand.js +0 -26
- package/dist-cjs/commands/DeleteEnvironmentCommand.js +0 -26
- package/dist-cjs/commands/DeleteEnvironmentHostCommand.js +0 -26
- package/dist-cjs/commands/DisassociateEipFromVlanCommand.js +0 -26
- package/dist-cjs/commands/GetEnvironmentCommand.js +0 -26
- package/dist-cjs/commands/ListEnvironmentHostsCommand.js +0 -26
- package/dist-cjs/commands/ListEnvironmentVlansCommand.js +0 -26
- package/dist-cjs/commands/ListEnvironmentsCommand.js +0 -26
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -26
- package/dist-cjs/commands/TagResourceCommand.js +0 -26
- package/dist-cjs/commands/UntagResourceCommand.js +0 -26
- package/dist-cjs/commands/index.js +0 -16
- package/dist-cjs/endpoint/EndpointParameters.js +0 -17
- package/dist-cjs/extensionConfiguration.js +0 -2
- package/dist-cjs/models/EvsServiceException.js +0 -12
- package/dist-cjs/models/index.js +0 -4
- package/dist-cjs/models/models_0.js +0 -139
- package/dist-cjs/pagination/Interfaces.js +0 -2
- package/dist-cjs/pagination/ListEnvironmentHostsPaginator.js +0 -7
- package/dist-cjs/pagination/ListEnvironmentVlansPaginator.js +0 -7
- package/dist-cjs/pagination/ListEnvironmentsPaginator.js +0 -7
- package/dist-cjs/pagination/index.js +0 -7
- package/dist-cjs/protocols/Aws_json1_0.js +0 -619
- package/dist-cjs/runtimeExtensions.js +0 -13
|
@@ -1,619 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListTagsForResourceCommand = exports.de_ListEnvironmentVlansCommand = exports.de_ListEnvironmentsCommand = exports.de_ListEnvironmentHostsCommand = exports.de_GetEnvironmentCommand = exports.de_DisassociateEipFromVlanCommand = exports.de_DeleteEnvironmentHostCommand = exports.de_DeleteEnvironmentCommand = exports.de_CreateEnvironmentHostCommand = exports.de_CreateEnvironmentCommand = exports.de_AssociateEipToVlanCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListTagsForResourceCommand = exports.se_ListEnvironmentVlansCommand = exports.se_ListEnvironmentsCommand = exports.se_ListEnvironmentHostsCommand = exports.se_GetEnvironmentCommand = exports.se_DisassociateEipFromVlanCommand = exports.se_DeleteEnvironmentHostCommand = exports.se_DeleteEnvironmentCommand = exports.se_CreateEnvironmentHostCommand = exports.se_CreateEnvironmentCommand = exports.se_AssociateEipToVlanCommand = void 0;
|
|
4
|
-
const core_1 = require("@aws-sdk/core");
|
|
5
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const uuid_1 = require("uuid");
|
|
8
|
-
const EvsServiceException_1 = require("../models/EvsServiceException");
|
|
9
|
-
const models_0_1 = require("../models/models_0");
|
|
10
|
-
const se_AssociateEipToVlanCommand = async (input, context) => {
|
|
11
|
-
const headers = sharedHeaders("AssociateEipToVlan");
|
|
12
|
-
let body;
|
|
13
|
-
body = JSON.stringify(se_AssociateEipToVlanRequest(input, context));
|
|
14
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
15
|
-
};
|
|
16
|
-
exports.se_AssociateEipToVlanCommand = se_AssociateEipToVlanCommand;
|
|
17
|
-
const se_CreateEnvironmentCommand = async (input, context) => {
|
|
18
|
-
const headers = sharedHeaders("CreateEnvironment");
|
|
19
|
-
let body;
|
|
20
|
-
body = JSON.stringify(se_CreateEnvironmentRequest(input, context));
|
|
21
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
|
-
};
|
|
23
|
-
exports.se_CreateEnvironmentCommand = se_CreateEnvironmentCommand;
|
|
24
|
-
const se_CreateEnvironmentHostCommand = async (input, context) => {
|
|
25
|
-
const headers = sharedHeaders("CreateEnvironmentHost");
|
|
26
|
-
let body;
|
|
27
|
-
body = JSON.stringify(se_CreateEnvironmentHostRequest(input, context));
|
|
28
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
29
|
-
};
|
|
30
|
-
exports.se_CreateEnvironmentHostCommand = se_CreateEnvironmentHostCommand;
|
|
31
|
-
const se_DeleteEnvironmentCommand = async (input, context) => {
|
|
32
|
-
const headers = sharedHeaders("DeleteEnvironment");
|
|
33
|
-
let body;
|
|
34
|
-
body = JSON.stringify(se_DeleteEnvironmentRequest(input, context));
|
|
35
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
36
|
-
};
|
|
37
|
-
exports.se_DeleteEnvironmentCommand = se_DeleteEnvironmentCommand;
|
|
38
|
-
const se_DeleteEnvironmentHostCommand = async (input, context) => {
|
|
39
|
-
const headers = sharedHeaders("DeleteEnvironmentHost");
|
|
40
|
-
let body;
|
|
41
|
-
body = JSON.stringify(se_DeleteEnvironmentHostRequest(input, context));
|
|
42
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
43
|
-
};
|
|
44
|
-
exports.se_DeleteEnvironmentHostCommand = se_DeleteEnvironmentHostCommand;
|
|
45
|
-
const se_DisassociateEipFromVlanCommand = async (input, context) => {
|
|
46
|
-
const headers = sharedHeaders("DisassociateEipFromVlan");
|
|
47
|
-
let body;
|
|
48
|
-
body = JSON.stringify(se_DisassociateEipFromVlanRequest(input, context));
|
|
49
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
50
|
-
};
|
|
51
|
-
exports.se_DisassociateEipFromVlanCommand = se_DisassociateEipFromVlanCommand;
|
|
52
|
-
const se_GetEnvironmentCommand = async (input, context) => {
|
|
53
|
-
const headers = sharedHeaders("GetEnvironment");
|
|
54
|
-
let body;
|
|
55
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
56
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
57
|
-
};
|
|
58
|
-
exports.se_GetEnvironmentCommand = se_GetEnvironmentCommand;
|
|
59
|
-
const se_ListEnvironmentHostsCommand = async (input, context) => {
|
|
60
|
-
const headers = sharedHeaders("ListEnvironmentHosts");
|
|
61
|
-
let body;
|
|
62
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
63
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
64
|
-
};
|
|
65
|
-
exports.se_ListEnvironmentHostsCommand = se_ListEnvironmentHostsCommand;
|
|
66
|
-
const se_ListEnvironmentsCommand = async (input, context) => {
|
|
67
|
-
const headers = sharedHeaders("ListEnvironments");
|
|
68
|
-
let body;
|
|
69
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
70
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
71
|
-
};
|
|
72
|
-
exports.se_ListEnvironmentsCommand = se_ListEnvironmentsCommand;
|
|
73
|
-
const se_ListEnvironmentVlansCommand = async (input, context) => {
|
|
74
|
-
const headers = sharedHeaders("ListEnvironmentVlans");
|
|
75
|
-
let body;
|
|
76
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
77
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
78
|
-
};
|
|
79
|
-
exports.se_ListEnvironmentVlansCommand = se_ListEnvironmentVlansCommand;
|
|
80
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
81
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
82
|
-
let body;
|
|
83
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
84
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
|
-
};
|
|
86
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
87
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
88
|
-
const headers = sharedHeaders("TagResource");
|
|
89
|
-
let body;
|
|
90
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
91
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
92
|
-
};
|
|
93
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
94
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
95
|
-
const headers = sharedHeaders("UntagResource");
|
|
96
|
-
let body;
|
|
97
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
98
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
99
|
-
};
|
|
100
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
101
|
-
const de_AssociateEipToVlanCommand = async (output, context) => {
|
|
102
|
-
if (output.statusCode >= 300) {
|
|
103
|
-
return de_CommandError(output, context);
|
|
104
|
-
}
|
|
105
|
-
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
106
|
-
let contents = {};
|
|
107
|
-
contents = de_AssociateEipToVlanResponse(data, context);
|
|
108
|
-
const response = {
|
|
109
|
-
$metadata: deserializeMetadata(output),
|
|
110
|
-
...contents,
|
|
111
|
-
};
|
|
112
|
-
return response;
|
|
113
|
-
};
|
|
114
|
-
exports.de_AssociateEipToVlanCommand = de_AssociateEipToVlanCommand;
|
|
115
|
-
const de_CreateEnvironmentCommand = async (output, context) => {
|
|
116
|
-
if (output.statusCode >= 300) {
|
|
117
|
-
return de_CommandError(output, context);
|
|
118
|
-
}
|
|
119
|
-
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
120
|
-
let contents = {};
|
|
121
|
-
contents = de_CreateEnvironmentResponse(data, context);
|
|
122
|
-
const response = {
|
|
123
|
-
$metadata: deserializeMetadata(output),
|
|
124
|
-
...contents,
|
|
125
|
-
};
|
|
126
|
-
return response;
|
|
127
|
-
};
|
|
128
|
-
exports.de_CreateEnvironmentCommand = de_CreateEnvironmentCommand;
|
|
129
|
-
const de_CreateEnvironmentHostCommand = async (output, context) => {
|
|
130
|
-
if (output.statusCode >= 300) {
|
|
131
|
-
return de_CommandError(output, context);
|
|
132
|
-
}
|
|
133
|
-
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
134
|
-
let contents = {};
|
|
135
|
-
contents = de_CreateEnvironmentHostResponse(data, context);
|
|
136
|
-
const response = {
|
|
137
|
-
$metadata: deserializeMetadata(output),
|
|
138
|
-
...contents,
|
|
139
|
-
};
|
|
140
|
-
return response;
|
|
141
|
-
};
|
|
142
|
-
exports.de_CreateEnvironmentHostCommand = de_CreateEnvironmentHostCommand;
|
|
143
|
-
const de_DeleteEnvironmentCommand = async (output, context) => {
|
|
144
|
-
if (output.statusCode >= 300) {
|
|
145
|
-
return de_CommandError(output, context);
|
|
146
|
-
}
|
|
147
|
-
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
148
|
-
let contents = {};
|
|
149
|
-
contents = de_DeleteEnvironmentResponse(data, context);
|
|
150
|
-
const response = {
|
|
151
|
-
$metadata: deserializeMetadata(output),
|
|
152
|
-
...contents,
|
|
153
|
-
};
|
|
154
|
-
return response;
|
|
155
|
-
};
|
|
156
|
-
exports.de_DeleteEnvironmentCommand = de_DeleteEnvironmentCommand;
|
|
157
|
-
const de_DeleteEnvironmentHostCommand = async (output, context) => {
|
|
158
|
-
if (output.statusCode >= 300) {
|
|
159
|
-
return de_CommandError(output, context);
|
|
160
|
-
}
|
|
161
|
-
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
162
|
-
let contents = {};
|
|
163
|
-
contents = de_DeleteEnvironmentHostResponse(data, context);
|
|
164
|
-
const response = {
|
|
165
|
-
$metadata: deserializeMetadata(output),
|
|
166
|
-
...contents,
|
|
167
|
-
};
|
|
168
|
-
return response;
|
|
169
|
-
};
|
|
170
|
-
exports.de_DeleteEnvironmentHostCommand = de_DeleteEnvironmentHostCommand;
|
|
171
|
-
const de_DisassociateEipFromVlanCommand = async (output, context) => {
|
|
172
|
-
if (output.statusCode >= 300) {
|
|
173
|
-
return de_CommandError(output, context);
|
|
174
|
-
}
|
|
175
|
-
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
176
|
-
let contents = {};
|
|
177
|
-
contents = de_DisassociateEipFromVlanResponse(data, context);
|
|
178
|
-
const response = {
|
|
179
|
-
$metadata: deserializeMetadata(output),
|
|
180
|
-
...contents,
|
|
181
|
-
};
|
|
182
|
-
return response;
|
|
183
|
-
};
|
|
184
|
-
exports.de_DisassociateEipFromVlanCommand = de_DisassociateEipFromVlanCommand;
|
|
185
|
-
const de_GetEnvironmentCommand = async (output, context) => {
|
|
186
|
-
if (output.statusCode >= 300) {
|
|
187
|
-
return de_CommandError(output, context);
|
|
188
|
-
}
|
|
189
|
-
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
190
|
-
let contents = {};
|
|
191
|
-
contents = de_GetEnvironmentResponse(data, context);
|
|
192
|
-
const response = {
|
|
193
|
-
$metadata: deserializeMetadata(output),
|
|
194
|
-
...contents,
|
|
195
|
-
};
|
|
196
|
-
return response;
|
|
197
|
-
};
|
|
198
|
-
exports.de_GetEnvironmentCommand = de_GetEnvironmentCommand;
|
|
199
|
-
const de_ListEnvironmentHostsCommand = async (output, context) => {
|
|
200
|
-
if (output.statusCode >= 300) {
|
|
201
|
-
return de_CommandError(output, context);
|
|
202
|
-
}
|
|
203
|
-
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
204
|
-
let contents = {};
|
|
205
|
-
contents = de_ListEnvironmentHostsResponse(data, context);
|
|
206
|
-
const response = {
|
|
207
|
-
$metadata: deserializeMetadata(output),
|
|
208
|
-
...contents,
|
|
209
|
-
};
|
|
210
|
-
return response;
|
|
211
|
-
};
|
|
212
|
-
exports.de_ListEnvironmentHostsCommand = de_ListEnvironmentHostsCommand;
|
|
213
|
-
const de_ListEnvironmentsCommand = async (output, context) => {
|
|
214
|
-
if (output.statusCode >= 300) {
|
|
215
|
-
return de_CommandError(output, context);
|
|
216
|
-
}
|
|
217
|
-
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
218
|
-
let contents = {};
|
|
219
|
-
contents = de_ListEnvironmentsResponse(data, context);
|
|
220
|
-
const response = {
|
|
221
|
-
$metadata: deserializeMetadata(output),
|
|
222
|
-
...contents,
|
|
223
|
-
};
|
|
224
|
-
return response;
|
|
225
|
-
};
|
|
226
|
-
exports.de_ListEnvironmentsCommand = de_ListEnvironmentsCommand;
|
|
227
|
-
const de_ListEnvironmentVlansCommand = async (output, context) => {
|
|
228
|
-
if (output.statusCode >= 300) {
|
|
229
|
-
return de_CommandError(output, context);
|
|
230
|
-
}
|
|
231
|
-
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
232
|
-
let contents = {};
|
|
233
|
-
contents = de_ListEnvironmentVlansResponse(data, context);
|
|
234
|
-
const response = {
|
|
235
|
-
$metadata: deserializeMetadata(output),
|
|
236
|
-
...contents,
|
|
237
|
-
};
|
|
238
|
-
return response;
|
|
239
|
-
};
|
|
240
|
-
exports.de_ListEnvironmentVlansCommand = de_ListEnvironmentVlansCommand;
|
|
241
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
242
|
-
if (output.statusCode >= 300) {
|
|
243
|
-
return de_CommandError(output, context);
|
|
244
|
-
}
|
|
245
|
-
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
246
|
-
let contents = {};
|
|
247
|
-
contents = (0, smithy_client_1._json)(data);
|
|
248
|
-
const response = {
|
|
249
|
-
$metadata: deserializeMetadata(output),
|
|
250
|
-
...contents,
|
|
251
|
-
};
|
|
252
|
-
return response;
|
|
253
|
-
};
|
|
254
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
255
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
256
|
-
if (output.statusCode >= 300) {
|
|
257
|
-
return de_CommandError(output, context);
|
|
258
|
-
}
|
|
259
|
-
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
260
|
-
let contents = {};
|
|
261
|
-
contents = (0, smithy_client_1._json)(data);
|
|
262
|
-
const response = {
|
|
263
|
-
$metadata: deserializeMetadata(output),
|
|
264
|
-
...contents,
|
|
265
|
-
};
|
|
266
|
-
return response;
|
|
267
|
-
};
|
|
268
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
269
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
270
|
-
if (output.statusCode >= 300) {
|
|
271
|
-
return de_CommandError(output, context);
|
|
272
|
-
}
|
|
273
|
-
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
274
|
-
let contents = {};
|
|
275
|
-
contents = (0, smithy_client_1._json)(data);
|
|
276
|
-
const response = {
|
|
277
|
-
$metadata: deserializeMetadata(output),
|
|
278
|
-
...contents,
|
|
279
|
-
};
|
|
280
|
-
return response;
|
|
281
|
-
};
|
|
282
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
283
|
-
const de_CommandError = async (output, context) => {
|
|
284
|
-
const parsedOutput = {
|
|
285
|
-
...output,
|
|
286
|
-
body: await (0, core_1.parseJsonErrorBody)(output.body, context),
|
|
287
|
-
};
|
|
288
|
-
const errorCode = (0, core_1.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
289
|
-
switch (errorCode) {
|
|
290
|
-
case "ResourceNotFoundException":
|
|
291
|
-
case "com.amazonaws.evs#ResourceNotFoundException":
|
|
292
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
293
|
-
case "ThrottlingException":
|
|
294
|
-
case "com.amazonaws.evs#ThrottlingException":
|
|
295
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
296
|
-
case "ValidationException":
|
|
297
|
-
case "com.amazonaws.evs#ValidationException":
|
|
298
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
299
|
-
case "ServiceQuotaExceededException":
|
|
300
|
-
case "com.amazonaws.evs#ServiceQuotaExceededException":
|
|
301
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
302
|
-
case "TagPolicyException":
|
|
303
|
-
case "com.amazonaws.evs#TagPolicyException":
|
|
304
|
-
throw await de_TagPolicyExceptionRes(parsedOutput, context);
|
|
305
|
-
case "TooManyTagsException":
|
|
306
|
-
case "com.amazonaws.evs#TooManyTagsException":
|
|
307
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
308
|
-
default:
|
|
309
|
-
const parsedBody = parsedOutput.body;
|
|
310
|
-
return throwDefaultError({
|
|
311
|
-
output,
|
|
312
|
-
parsedBody,
|
|
313
|
-
errorCode,
|
|
314
|
-
});
|
|
315
|
-
}
|
|
316
|
-
};
|
|
317
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
318
|
-
const body = parsedOutput.body;
|
|
319
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
320
|
-
const exception = new models_0_1.ResourceNotFoundException({
|
|
321
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
322
|
-
...deserialized,
|
|
323
|
-
});
|
|
324
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
325
|
-
};
|
|
326
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
327
|
-
const body = parsedOutput.body;
|
|
328
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
329
|
-
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
330
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
331
|
-
...deserialized,
|
|
332
|
-
});
|
|
333
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
334
|
-
};
|
|
335
|
-
const de_TagPolicyExceptionRes = async (parsedOutput, context) => {
|
|
336
|
-
const body = parsedOutput.body;
|
|
337
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
338
|
-
const exception = new models_0_1.TagPolicyException({
|
|
339
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
340
|
-
...deserialized,
|
|
341
|
-
});
|
|
342
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
343
|
-
};
|
|
344
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
345
|
-
const body = parsedOutput.body;
|
|
346
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
347
|
-
const exception = new models_0_1.ThrottlingException({
|
|
348
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
349
|
-
...deserialized,
|
|
350
|
-
});
|
|
351
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
352
|
-
};
|
|
353
|
-
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
354
|
-
const body = parsedOutput.body;
|
|
355
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
356
|
-
const exception = new models_0_1.TooManyTagsException({
|
|
357
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
358
|
-
...deserialized,
|
|
359
|
-
});
|
|
360
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
361
|
-
};
|
|
362
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
363
|
-
const body = parsedOutput.body;
|
|
364
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
365
|
-
const exception = new models_0_1.ValidationException({
|
|
366
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
367
|
-
...deserialized,
|
|
368
|
-
});
|
|
369
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
370
|
-
};
|
|
371
|
-
const se_AssociateEipToVlanRequest = (input, context) => {
|
|
372
|
-
return (0, smithy_client_1.take)(input, {
|
|
373
|
-
allocationId: [],
|
|
374
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
375
|
-
environmentId: [],
|
|
376
|
-
vlanName: [],
|
|
377
|
-
});
|
|
378
|
-
};
|
|
379
|
-
const se_CreateEnvironmentHostRequest = (input, context) => {
|
|
380
|
-
return (0, smithy_client_1.take)(input, {
|
|
381
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
382
|
-
environmentId: [],
|
|
383
|
-
host: smithy_client_1._json,
|
|
384
|
-
});
|
|
385
|
-
};
|
|
386
|
-
const se_CreateEnvironmentRequest = (input, context) => {
|
|
387
|
-
return (0, smithy_client_1.take)(input, {
|
|
388
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
389
|
-
connectivityInfo: smithy_client_1._json,
|
|
390
|
-
environmentName: [],
|
|
391
|
-
hosts: smithy_client_1._json,
|
|
392
|
-
initialVlans: smithy_client_1._json,
|
|
393
|
-
kmsKeyId: [],
|
|
394
|
-
licenseInfo: smithy_client_1._json,
|
|
395
|
-
serviceAccessSecurityGroups: smithy_client_1._json,
|
|
396
|
-
serviceAccessSubnetId: [],
|
|
397
|
-
siteId: [],
|
|
398
|
-
tags: smithy_client_1._json,
|
|
399
|
-
termsAccepted: [],
|
|
400
|
-
vcfHostnames: smithy_client_1._json,
|
|
401
|
-
vcfVersion: [],
|
|
402
|
-
vpcId: [],
|
|
403
|
-
});
|
|
404
|
-
};
|
|
405
|
-
const se_DeleteEnvironmentHostRequest = (input, context) => {
|
|
406
|
-
return (0, smithy_client_1.take)(input, {
|
|
407
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
408
|
-
environmentId: [],
|
|
409
|
-
hostName: [],
|
|
410
|
-
});
|
|
411
|
-
};
|
|
412
|
-
const se_DeleteEnvironmentRequest = (input, context) => {
|
|
413
|
-
return (0, smithy_client_1.take)(input, {
|
|
414
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
415
|
-
environmentId: [],
|
|
416
|
-
});
|
|
417
|
-
};
|
|
418
|
-
const se_DisassociateEipFromVlanRequest = (input, context) => {
|
|
419
|
-
return (0, smithy_client_1.take)(input, {
|
|
420
|
-
associationId: [],
|
|
421
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
422
|
-
environmentId: [],
|
|
423
|
-
vlanName: [],
|
|
424
|
-
});
|
|
425
|
-
};
|
|
426
|
-
const de_AssociateEipToVlanResponse = (output, context) => {
|
|
427
|
-
return (0, smithy_client_1.take)(output, {
|
|
428
|
-
vlan: (_) => de_Vlan(_, context),
|
|
429
|
-
});
|
|
430
|
-
};
|
|
431
|
-
const de_Check = (output, context) => {
|
|
432
|
-
return (0, smithy_client_1.take)(output, {
|
|
433
|
-
impairedSince: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
434
|
-
result: smithy_client_1.expectString,
|
|
435
|
-
type: smithy_client_1.expectString,
|
|
436
|
-
});
|
|
437
|
-
};
|
|
438
|
-
const de_ChecksList = (output, context) => {
|
|
439
|
-
const retVal = (output || [])
|
|
440
|
-
.filter((e) => e != null)
|
|
441
|
-
.map((entry) => {
|
|
442
|
-
return de_Check(entry, context);
|
|
443
|
-
});
|
|
444
|
-
return retVal;
|
|
445
|
-
};
|
|
446
|
-
const de_CreateEnvironmentHostResponse = (output, context) => {
|
|
447
|
-
return (0, smithy_client_1.take)(output, {
|
|
448
|
-
environmentSummary: (_) => de_EnvironmentSummary(_, context),
|
|
449
|
-
host: (_) => de_Host(_, context),
|
|
450
|
-
});
|
|
451
|
-
};
|
|
452
|
-
const de_CreateEnvironmentResponse = (output, context) => {
|
|
453
|
-
return (0, smithy_client_1.take)(output, {
|
|
454
|
-
environment: (_) => de_Environment(_, context),
|
|
455
|
-
});
|
|
456
|
-
};
|
|
457
|
-
const de_DeleteEnvironmentHostResponse = (output, context) => {
|
|
458
|
-
return (0, smithy_client_1.take)(output, {
|
|
459
|
-
environmentSummary: (_) => de_EnvironmentSummary(_, context),
|
|
460
|
-
host: (_) => de_Host(_, context),
|
|
461
|
-
});
|
|
462
|
-
};
|
|
463
|
-
const de_DeleteEnvironmentResponse = (output, context) => {
|
|
464
|
-
return (0, smithy_client_1.take)(output, {
|
|
465
|
-
environment: (_) => de_Environment(_, context),
|
|
466
|
-
});
|
|
467
|
-
};
|
|
468
|
-
const de_DisassociateEipFromVlanResponse = (output, context) => {
|
|
469
|
-
return (0, smithy_client_1.take)(output, {
|
|
470
|
-
vlan: (_) => de_Vlan(_, context),
|
|
471
|
-
});
|
|
472
|
-
};
|
|
473
|
-
const de_Environment = (output, context) => {
|
|
474
|
-
return (0, smithy_client_1.take)(output, {
|
|
475
|
-
checks: (_) => de_ChecksList(_, context),
|
|
476
|
-
connectivityInfo: smithy_client_1._json,
|
|
477
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
478
|
-
credentials: smithy_client_1._json,
|
|
479
|
-
environmentArn: smithy_client_1.expectString,
|
|
480
|
-
environmentId: smithy_client_1.expectString,
|
|
481
|
-
environmentName: smithy_client_1.expectString,
|
|
482
|
-
environmentState: smithy_client_1.expectString,
|
|
483
|
-
environmentStatus: smithy_client_1.expectString,
|
|
484
|
-
kmsKeyId: smithy_client_1.expectString,
|
|
485
|
-
licenseInfo: smithy_client_1._json,
|
|
486
|
-
modifiedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
487
|
-
serviceAccessSecurityGroups: smithy_client_1._json,
|
|
488
|
-
serviceAccessSubnetId: smithy_client_1.expectString,
|
|
489
|
-
siteId: smithy_client_1.expectString,
|
|
490
|
-
stateDetails: smithy_client_1.expectString,
|
|
491
|
-
termsAccepted: smithy_client_1.expectBoolean,
|
|
492
|
-
vcfHostnames: smithy_client_1._json,
|
|
493
|
-
vcfVersion: smithy_client_1.expectString,
|
|
494
|
-
vpcId: smithy_client_1.expectString,
|
|
495
|
-
});
|
|
496
|
-
};
|
|
497
|
-
const de_EnvironmentSummary = (output, context) => {
|
|
498
|
-
return (0, smithy_client_1.take)(output, {
|
|
499
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
500
|
-
environmentArn: smithy_client_1.expectString,
|
|
501
|
-
environmentId: smithy_client_1.expectString,
|
|
502
|
-
environmentName: smithy_client_1.expectString,
|
|
503
|
-
environmentState: smithy_client_1.expectString,
|
|
504
|
-
environmentStatus: smithy_client_1.expectString,
|
|
505
|
-
modifiedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
506
|
-
vcfVersion: smithy_client_1.expectString,
|
|
507
|
-
});
|
|
508
|
-
};
|
|
509
|
-
const de_EnvironmentSummaryList = (output, context) => {
|
|
510
|
-
const retVal = (output || [])
|
|
511
|
-
.filter((e) => e != null)
|
|
512
|
-
.map((entry) => {
|
|
513
|
-
return de_EnvironmentSummary(entry, context);
|
|
514
|
-
});
|
|
515
|
-
return retVal;
|
|
516
|
-
};
|
|
517
|
-
const de_GetEnvironmentResponse = (output, context) => {
|
|
518
|
-
return (0, smithy_client_1.take)(output, {
|
|
519
|
-
environment: (_) => de_Environment(_, context),
|
|
520
|
-
});
|
|
521
|
-
};
|
|
522
|
-
const de_Host = (output, context) => {
|
|
523
|
-
return (0, smithy_client_1.take)(output, {
|
|
524
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
525
|
-
dedicatedHostId: smithy_client_1.expectString,
|
|
526
|
-
ec2InstanceId: smithy_client_1.expectString,
|
|
527
|
-
hostName: smithy_client_1.expectString,
|
|
528
|
-
hostState: smithy_client_1.expectString,
|
|
529
|
-
instanceType: smithy_client_1.expectString,
|
|
530
|
-
ipAddress: smithy_client_1.expectString,
|
|
531
|
-
keyName: smithy_client_1.expectString,
|
|
532
|
-
modifiedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
533
|
-
networkInterfaces: smithy_client_1._json,
|
|
534
|
-
placementGroupId: smithy_client_1.expectString,
|
|
535
|
-
stateDetails: smithy_client_1.expectString,
|
|
536
|
-
});
|
|
537
|
-
};
|
|
538
|
-
const de_HostList = (output, context) => {
|
|
539
|
-
const retVal = (output || [])
|
|
540
|
-
.filter((e) => e != null)
|
|
541
|
-
.map((entry) => {
|
|
542
|
-
return de_Host(entry, context);
|
|
543
|
-
});
|
|
544
|
-
return retVal;
|
|
545
|
-
};
|
|
546
|
-
const de_ListEnvironmentHostsResponse = (output, context) => {
|
|
547
|
-
return (0, smithy_client_1.take)(output, {
|
|
548
|
-
environmentHosts: (_) => de_HostList(_, context),
|
|
549
|
-
nextToken: smithy_client_1.expectString,
|
|
550
|
-
});
|
|
551
|
-
};
|
|
552
|
-
const de_ListEnvironmentsResponse = (output, context) => {
|
|
553
|
-
return (0, smithy_client_1.take)(output, {
|
|
554
|
-
environmentSummaries: (_) => de_EnvironmentSummaryList(_, context),
|
|
555
|
-
nextToken: smithy_client_1.expectString,
|
|
556
|
-
});
|
|
557
|
-
};
|
|
558
|
-
const de_ListEnvironmentVlansResponse = (output, context) => {
|
|
559
|
-
return (0, smithy_client_1.take)(output, {
|
|
560
|
-
environmentVlans: (_) => de_VlanList(_, context),
|
|
561
|
-
nextToken: smithy_client_1.expectString,
|
|
562
|
-
});
|
|
563
|
-
};
|
|
564
|
-
const de_Vlan = (output, context) => {
|
|
565
|
-
return (0, smithy_client_1.take)(output, {
|
|
566
|
-
availabilityZone: smithy_client_1.expectString,
|
|
567
|
-
cidr: smithy_client_1.expectString,
|
|
568
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
569
|
-
eipAssociations: smithy_client_1._json,
|
|
570
|
-
functionName: smithy_client_1.expectString,
|
|
571
|
-
isPublic: smithy_client_1.expectBoolean,
|
|
572
|
-
modifiedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
573
|
-
networkAclId: smithy_client_1.expectString,
|
|
574
|
-
stateDetails: smithy_client_1.expectString,
|
|
575
|
-
subnetId: smithy_client_1.expectString,
|
|
576
|
-
vlanId: smithy_client_1.expectInt32,
|
|
577
|
-
vlanState: smithy_client_1.expectString,
|
|
578
|
-
});
|
|
579
|
-
};
|
|
580
|
-
const de_VlanList = (output, context) => {
|
|
581
|
-
const retVal = (output || [])
|
|
582
|
-
.filter((e) => e != null)
|
|
583
|
-
.map((entry) => {
|
|
584
|
-
return de_Vlan(entry, context);
|
|
585
|
-
});
|
|
586
|
-
return retVal;
|
|
587
|
-
};
|
|
588
|
-
const deserializeMetadata = (output) => ({
|
|
589
|
-
httpStatusCode: output.statusCode,
|
|
590
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
591
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
592
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
593
|
-
});
|
|
594
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
595
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(EvsServiceException_1.EvsServiceException);
|
|
596
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
597
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
598
|
-
const contents = {
|
|
599
|
-
protocol,
|
|
600
|
-
hostname,
|
|
601
|
-
port,
|
|
602
|
-
method: "POST",
|
|
603
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
604
|
-
headers,
|
|
605
|
-
};
|
|
606
|
-
if (resolvedHostname !== undefined) {
|
|
607
|
-
contents.hostname = resolvedHostname;
|
|
608
|
-
}
|
|
609
|
-
if (body !== undefined) {
|
|
610
|
-
contents.body = body;
|
|
611
|
-
}
|
|
612
|
-
return new protocol_http_1.HttpRequest(contents);
|
|
613
|
-
};
|
|
614
|
-
function sharedHeaders(operation) {
|
|
615
|
-
return {
|
|
616
|
-
"content-type": "application/x-amz-json-1.0",
|
|
617
|
-
"x-amz-target": `AmazonElasticVMwareService.${operation}`,
|
|
618
|
-
};
|
|
619
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolveRuntimeExtensions = void 0;
|
|
4
|
-
const region_config_resolver_1 = require("@aws-sdk/region-config-resolver");
|
|
5
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const httpAuthExtensionConfiguration_1 = require("./auth/httpAuthExtensionConfiguration");
|
|
8
|
-
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
9
|
-
const extensionConfiguration = Object.assign((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig), (0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig), (0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig), (0, httpAuthExtensionConfiguration_1.getHttpAuthExtensionConfiguration)(runtimeConfig));
|
|
10
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
11
|
-
return Object.assign(runtimeConfig, (0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), (0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration), (0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), (0, httpAuthExtensionConfiguration_1.resolveHttpAuthRuntimeConfig)(extensionConfiguration));
|
|
12
|
-
};
|
|
13
|
-
exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
|