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