@aws-sdk/client-marketplace-catalog 3.138.0 → 3.145.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/CHANGELOG.md +30 -0
- package/README.md +1 -1
- package/dist-cjs/protocols/Aws_restJson1.js +99 -147
- package/dist-es/protocols/Aws_restJson1.js +118 -139
- package/package.json +11 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,36 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.145.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.144.0...v3.145.0) (2022-08-08)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-marketplace-catalog
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.142.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.141.0...v3.142.0) (2022-08-02)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **codegen:** general data mapping function ([#3830](https://github.com/aws/aws-sdk-js-v3/issues/3830)) ([9417eae](https://github.com/aws/aws-sdk-js-v3/commit/9417eae722806799fb4c15c07921574268c1165c))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.141.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.140.0...v3.141.0) (2022-08-01)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Features
|
|
29
|
+
|
|
30
|
+
* **clients:** update client endpoints as of 2022-08-01 ([aaf49f2](https://github.com/aws/aws-sdk-js-v3/commit/aaf49f21b371412e6ea7e00890b71a7b31991b66))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
6
36
|
# [3.138.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.137.0...v3.138.0) (2022-07-27)
|
|
7
37
|
|
|
8
38
|
|
package/README.md
CHANGED
|
@@ -171,7 +171,7 @@ try {
|
|
|
171
171
|
const data = await client.send(command);
|
|
172
172
|
// process data.
|
|
173
173
|
} catch (error) {
|
|
174
|
-
const { requestId, cfId, extendedRequestId } = error
|
|
174
|
+
const { requestId, cfId, extendedRequestId } = error.$$metadata;
|
|
175
175
|
console.log({ requestId, cfId, extendedRequestId });
|
|
176
176
|
/**
|
|
177
177
|
* The keys within exceptions are also parsed.
|
|
@@ -10,10 +10,10 @@ const serializeAws_restJson1CancelChangeSetCommand = async (input, context) => {
|
|
|
10
10
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
11
11
|
const headers = {};
|
|
12
12
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/CancelChangeSet";
|
|
13
|
-
const query = {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
};
|
|
13
|
+
const query = map({
|
|
14
|
+
catalog: [, input.Catalog],
|
|
15
|
+
changeSetId: [, input.ChangeSetId],
|
|
16
|
+
});
|
|
17
17
|
let body;
|
|
18
18
|
return new protocol_http_1.HttpRequest({
|
|
19
19
|
protocol,
|
|
@@ -31,10 +31,10 @@ const serializeAws_restJson1DescribeChangeSetCommand = async (input, context) =>
|
|
|
31
31
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
32
32
|
const headers = {};
|
|
33
33
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeChangeSet";
|
|
34
|
-
const query = {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
};
|
|
34
|
+
const query = map({
|
|
35
|
+
catalog: [, input.Catalog],
|
|
36
|
+
changeSetId: [, input.ChangeSetId],
|
|
37
|
+
});
|
|
38
38
|
let body;
|
|
39
39
|
return new protocol_http_1.HttpRequest({
|
|
40
40
|
protocol,
|
|
@@ -52,10 +52,10 @@ const serializeAws_restJson1DescribeEntityCommand = async (input, context) => {
|
|
|
52
52
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
53
53
|
const headers = {};
|
|
54
54
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/DescribeEntity";
|
|
55
|
-
const query = {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
};
|
|
55
|
+
const query = map({
|
|
56
|
+
catalog: [, input.Catalog],
|
|
57
|
+
entityId: [, input.EntityId],
|
|
58
|
+
});
|
|
59
59
|
let body;
|
|
60
60
|
return new protocol_http_1.HttpRequest({
|
|
61
61
|
protocol,
|
|
@@ -149,19 +149,17 @@ const deserializeAws_restJson1CancelChangeSetCommand = async (output, context) =
|
|
|
149
149
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
150
150
|
return deserializeAws_restJson1CancelChangeSetCommandError(output, context);
|
|
151
151
|
}
|
|
152
|
-
const contents = {
|
|
152
|
+
const contents = map({
|
|
153
153
|
$metadata: deserializeMetadata(output),
|
|
154
|
-
|
|
155
|
-
ChangeSetId: undefined,
|
|
156
|
-
};
|
|
154
|
+
});
|
|
157
155
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
158
|
-
if (data.ChangeSetArn
|
|
156
|
+
if (data.ChangeSetArn != null) {
|
|
159
157
|
contents.ChangeSetArn = (0, smithy_client_1.expectString)(data.ChangeSetArn);
|
|
160
158
|
}
|
|
161
|
-
if (data.ChangeSetId
|
|
159
|
+
if (data.ChangeSetId != null) {
|
|
162
160
|
contents.ChangeSetId = (0, smithy_client_1.expectString)(data.ChangeSetId);
|
|
163
161
|
}
|
|
164
|
-
return
|
|
162
|
+
return contents;
|
|
165
163
|
};
|
|
166
164
|
exports.deserializeAws_restJson1CancelChangeSetCommand = deserializeAws_restJson1CancelChangeSetCommand;
|
|
167
165
|
const deserializeAws_restJson1CancelChangeSetCommandError = async (output, context) => {
|
|
@@ -169,7 +167,6 @@ const deserializeAws_restJson1CancelChangeSetCommandError = async (output, conte
|
|
|
169
167
|
...output,
|
|
170
168
|
body: await parseBody(output.body, context),
|
|
171
169
|
};
|
|
172
|
-
let response;
|
|
173
170
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
174
171
|
switch (errorCode) {
|
|
175
172
|
case "AccessDeniedException":
|
|
@@ -192,61 +189,50 @@ const deserializeAws_restJson1CancelChangeSetCommandError = async (output, conte
|
|
|
192
189
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
193
190
|
default:
|
|
194
191
|
const parsedBody = parsedOutput.body;
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
$metadata,
|
|
192
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
193
|
+
output,
|
|
194
|
+
parsedBody,
|
|
195
|
+
exceptionCtor: MarketplaceCatalogServiceException_1.MarketplaceCatalogServiceException,
|
|
196
|
+
errorCode,
|
|
201
197
|
});
|
|
202
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
203
198
|
}
|
|
204
199
|
};
|
|
205
200
|
const deserializeAws_restJson1DescribeChangeSetCommand = async (output, context) => {
|
|
206
201
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
207
202
|
return deserializeAws_restJson1DescribeChangeSetCommandError(output, context);
|
|
208
203
|
}
|
|
209
|
-
const contents = {
|
|
204
|
+
const contents = map({
|
|
210
205
|
$metadata: deserializeMetadata(output),
|
|
211
|
-
|
|
212
|
-
ChangeSetArn: undefined,
|
|
213
|
-
ChangeSetId: undefined,
|
|
214
|
-
ChangeSetName: undefined,
|
|
215
|
-
EndTime: undefined,
|
|
216
|
-
FailureCode: undefined,
|
|
217
|
-
FailureDescription: undefined,
|
|
218
|
-
StartTime: undefined,
|
|
219
|
-
Status: undefined,
|
|
220
|
-
};
|
|
206
|
+
});
|
|
221
207
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
222
|
-
if (data.ChangeSet
|
|
208
|
+
if (data.ChangeSet != null) {
|
|
223
209
|
contents.ChangeSet = deserializeAws_restJson1ChangeSetDescription(data.ChangeSet, context);
|
|
224
210
|
}
|
|
225
|
-
if (data.ChangeSetArn
|
|
211
|
+
if (data.ChangeSetArn != null) {
|
|
226
212
|
contents.ChangeSetArn = (0, smithy_client_1.expectString)(data.ChangeSetArn);
|
|
227
213
|
}
|
|
228
|
-
if (data.ChangeSetId
|
|
214
|
+
if (data.ChangeSetId != null) {
|
|
229
215
|
contents.ChangeSetId = (0, smithy_client_1.expectString)(data.ChangeSetId);
|
|
230
216
|
}
|
|
231
|
-
if (data.ChangeSetName
|
|
217
|
+
if (data.ChangeSetName != null) {
|
|
232
218
|
contents.ChangeSetName = (0, smithy_client_1.expectString)(data.ChangeSetName);
|
|
233
219
|
}
|
|
234
|
-
if (data.EndTime
|
|
220
|
+
if (data.EndTime != null) {
|
|
235
221
|
contents.EndTime = (0, smithy_client_1.expectString)(data.EndTime);
|
|
236
222
|
}
|
|
237
|
-
if (data.FailureCode
|
|
223
|
+
if (data.FailureCode != null) {
|
|
238
224
|
contents.FailureCode = (0, smithy_client_1.expectString)(data.FailureCode);
|
|
239
225
|
}
|
|
240
|
-
if (data.FailureDescription
|
|
226
|
+
if (data.FailureDescription != null) {
|
|
241
227
|
contents.FailureDescription = (0, smithy_client_1.expectString)(data.FailureDescription);
|
|
242
228
|
}
|
|
243
|
-
if (data.StartTime
|
|
229
|
+
if (data.StartTime != null) {
|
|
244
230
|
contents.StartTime = (0, smithy_client_1.expectString)(data.StartTime);
|
|
245
231
|
}
|
|
246
|
-
if (data.Status
|
|
232
|
+
if (data.Status != null) {
|
|
247
233
|
contents.Status = (0, smithy_client_1.expectString)(data.Status);
|
|
248
234
|
}
|
|
249
|
-
return
|
|
235
|
+
return contents;
|
|
250
236
|
};
|
|
251
237
|
exports.deserializeAws_restJson1DescribeChangeSetCommand = deserializeAws_restJson1DescribeChangeSetCommand;
|
|
252
238
|
const deserializeAws_restJson1DescribeChangeSetCommandError = async (output, context) => {
|
|
@@ -254,7 +240,6 @@ const deserializeAws_restJson1DescribeChangeSetCommandError = async (output, con
|
|
|
254
240
|
...output,
|
|
255
241
|
body: await parseBody(output.body, context),
|
|
256
242
|
};
|
|
257
|
-
let response;
|
|
258
243
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
259
244
|
switch (errorCode) {
|
|
260
245
|
case "AccessDeniedException":
|
|
@@ -274,45 +259,38 @@ const deserializeAws_restJson1DescribeChangeSetCommandError = async (output, con
|
|
|
274
259
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
275
260
|
default:
|
|
276
261
|
const parsedBody = parsedOutput.body;
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
$metadata,
|
|
262
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
263
|
+
output,
|
|
264
|
+
parsedBody,
|
|
265
|
+
exceptionCtor: MarketplaceCatalogServiceException_1.MarketplaceCatalogServiceException,
|
|
266
|
+
errorCode,
|
|
283
267
|
});
|
|
284
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
285
268
|
}
|
|
286
269
|
};
|
|
287
270
|
const deserializeAws_restJson1DescribeEntityCommand = async (output, context) => {
|
|
288
271
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
289
272
|
return deserializeAws_restJson1DescribeEntityCommandError(output, context);
|
|
290
273
|
}
|
|
291
|
-
const contents = {
|
|
274
|
+
const contents = map({
|
|
292
275
|
$metadata: deserializeMetadata(output),
|
|
293
|
-
|
|
294
|
-
EntityArn: undefined,
|
|
295
|
-
EntityIdentifier: undefined,
|
|
296
|
-
EntityType: undefined,
|
|
297
|
-
LastModifiedDate: undefined,
|
|
298
|
-
};
|
|
276
|
+
});
|
|
299
277
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
300
|
-
if (data.Details
|
|
278
|
+
if (data.Details != null) {
|
|
301
279
|
contents.Details = (0, smithy_client_1.expectString)(data.Details);
|
|
302
280
|
}
|
|
303
|
-
if (data.EntityArn
|
|
281
|
+
if (data.EntityArn != null) {
|
|
304
282
|
contents.EntityArn = (0, smithy_client_1.expectString)(data.EntityArn);
|
|
305
283
|
}
|
|
306
|
-
if (data.EntityIdentifier
|
|
284
|
+
if (data.EntityIdentifier != null) {
|
|
307
285
|
contents.EntityIdentifier = (0, smithy_client_1.expectString)(data.EntityIdentifier);
|
|
308
286
|
}
|
|
309
|
-
if (data.EntityType
|
|
287
|
+
if (data.EntityType != null) {
|
|
310
288
|
contents.EntityType = (0, smithy_client_1.expectString)(data.EntityType);
|
|
311
289
|
}
|
|
312
|
-
if (data.LastModifiedDate
|
|
290
|
+
if (data.LastModifiedDate != null) {
|
|
313
291
|
contents.LastModifiedDate = (0, smithy_client_1.expectString)(data.LastModifiedDate);
|
|
314
292
|
}
|
|
315
|
-
return
|
|
293
|
+
return contents;
|
|
316
294
|
};
|
|
317
295
|
exports.deserializeAws_restJson1DescribeEntityCommand = deserializeAws_restJson1DescribeEntityCommand;
|
|
318
296
|
const deserializeAws_restJson1DescribeEntityCommandError = async (output, context) => {
|
|
@@ -320,7 +298,6 @@ const deserializeAws_restJson1DescribeEntityCommandError = async (output, contex
|
|
|
320
298
|
...output,
|
|
321
299
|
body: await parseBody(output.body, context),
|
|
322
300
|
};
|
|
323
|
-
let response;
|
|
324
301
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
325
302
|
switch (errorCode) {
|
|
326
303
|
case "AccessDeniedException":
|
|
@@ -343,33 +320,29 @@ const deserializeAws_restJson1DescribeEntityCommandError = async (output, contex
|
|
|
343
320
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
344
321
|
default:
|
|
345
322
|
const parsedBody = parsedOutput.body;
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
$metadata,
|
|
323
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
324
|
+
output,
|
|
325
|
+
parsedBody,
|
|
326
|
+
exceptionCtor: MarketplaceCatalogServiceException_1.MarketplaceCatalogServiceException,
|
|
327
|
+
errorCode,
|
|
352
328
|
});
|
|
353
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
354
329
|
}
|
|
355
330
|
};
|
|
356
331
|
const deserializeAws_restJson1ListChangeSetsCommand = async (output, context) => {
|
|
357
332
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
358
333
|
return deserializeAws_restJson1ListChangeSetsCommandError(output, context);
|
|
359
334
|
}
|
|
360
|
-
const contents = {
|
|
335
|
+
const contents = map({
|
|
361
336
|
$metadata: deserializeMetadata(output),
|
|
362
|
-
|
|
363
|
-
NextToken: undefined,
|
|
364
|
-
};
|
|
337
|
+
});
|
|
365
338
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
366
|
-
if (data.ChangeSetSummaryList
|
|
339
|
+
if (data.ChangeSetSummaryList != null) {
|
|
367
340
|
contents.ChangeSetSummaryList = deserializeAws_restJson1ChangeSetSummaryList(data.ChangeSetSummaryList, context);
|
|
368
341
|
}
|
|
369
|
-
if (data.NextToken
|
|
342
|
+
if (data.NextToken != null) {
|
|
370
343
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
371
344
|
}
|
|
372
|
-
return
|
|
345
|
+
return contents;
|
|
373
346
|
};
|
|
374
347
|
exports.deserializeAws_restJson1ListChangeSetsCommand = deserializeAws_restJson1ListChangeSetsCommand;
|
|
375
348
|
const deserializeAws_restJson1ListChangeSetsCommandError = async (output, context) => {
|
|
@@ -377,7 +350,6 @@ const deserializeAws_restJson1ListChangeSetsCommandError = async (output, contex
|
|
|
377
350
|
...output,
|
|
378
351
|
body: await parseBody(output.body, context),
|
|
379
352
|
};
|
|
380
|
-
let response;
|
|
381
353
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
382
354
|
switch (errorCode) {
|
|
383
355
|
case "AccessDeniedException":
|
|
@@ -394,33 +366,29 @@ const deserializeAws_restJson1ListChangeSetsCommandError = async (output, contex
|
|
|
394
366
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
395
367
|
default:
|
|
396
368
|
const parsedBody = parsedOutput.body;
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
$metadata,
|
|
369
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
370
|
+
output,
|
|
371
|
+
parsedBody,
|
|
372
|
+
exceptionCtor: MarketplaceCatalogServiceException_1.MarketplaceCatalogServiceException,
|
|
373
|
+
errorCode,
|
|
403
374
|
});
|
|
404
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
405
375
|
}
|
|
406
376
|
};
|
|
407
377
|
const deserializeAws_restJson1ListEntitiesCommand = async (output, context) => {
|
|
408
378
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
409
379
|
return deserializeAws_restJson1ListEntitiesCommandError(output, context);
|
|
410
380
|
}
|
|
411
|
-
const contents = {
|
|
381
|
+
const contents = map({
|
|
412
382
|
$metadata: deserializeMetadata(output),
|
|
413
|
-
|
|
414
|
-
NextToken: undefined,
|
|
415
|
-
};
|
|
383
|
+
});
|
|
416
384
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
417
|
-
if (data.EntitySummaryList
|
|
385
|
+
if (data.EntitySummaryList != null) {
|
|
418
386
|
contents.EntitySummaryList = deserializeAws_restJson1EntitySummaryList(data.EntitySummaryList, context);
|
|
419
387
|
}
|
|
420
|
-
if (data.NextToken
|
|
388
|
+
if (data.NextToken != null) {
|
|
421
389
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
422
390
|
}
|
|
423
|
-
return
|
|
391
|
+
return contents;
|
|
424
392
|
};
|
|
425
393
|
exports.deserializeAws_restJson1ListEntitiesCommand = deserializeAws_restJson1ListEntitiesCommand;
|
|
426
394
|
const deserializeAws_restJson1ListEntitiesCommandError = async (output, context) => {
|
|
@@ -428,7 +396,6 @@ const deserializeAws_restJson1ListEntitiesCommandError = async (output, context)
|
|
|
428
396
|
...output,
|
|
429
397
|
body: await parseBody(output.body, context),
|
|
430
398
|
};
|
|
431
|
-
let response;
|
|
432
399
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
433
400
|
switch (errorCode) {
|
|
434
401
|
case "AccessDeniedException":
|
|
@@ -448,33 +415,29 @@ const deserializeAws_restJson1ListEntitiesCommandError = async (output, context)
|
|
|
448
415
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
449
416
|
default:
|
|
450
417
|
const parsedBody = parsedOutput.body;
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
$metadata,
|
|
418
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
419
|
+
output,
|
|
420
|
+
parsedBody,
|
|
421
|
+
exceptionCtor: MarketplaceCatalogServiceException_1.MarketplaceCatalogServiceException,
|
|
422
|
+
errorCode,
|
|
457
423
|
});
|
|
458
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
459
424
|
}
|
|
460
425
|
};
|
|
461
426
|
const deserializeAws_restJson1StartChangeSetCommand = async (output, context) => {
|
|
462
427
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
463
428
|
return deserializeAws_restJson1StartChangeSetCommandError(output, context);
|
|
464
429
|
}
|
|
465
|
-
const contents = {
|
|
430
|
+
const contents = map({
|
|
466
431
|
$metadata: deserializeMetadata(output),
|
|
467
|
-
|
|
468
|
-
ChangeSetId: undefined,
|
|
469
|
-
};
|
|
432
|
+
});
|
|
470
433
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
471
|
-
if (data.ChangeSetArn
|
|
434
|
+
if (data.ChangeSetArn != null) {
|
|
472
435
|
contents.ChangeSetArn = (0, smithy_client_1.expectString)(data.ChangeSetArn);
|
|
473
436
|
}
|
|
474
|
-
if (data.ChangeSetId
|
|
437
|
+
if (data.ChangeSetId != null) {
|
|
475
438
|
contents.ChangeSetId = (0, smithy_client_1.expectString)(data.ChangeSetId);
|
|
476
439
|
}
|
|
477
|
-
return
|
|
440
|
+
return contents;
|
|
478
441
|
};
|
|
479
442
|
exports.deserializeAws_restJson1StartChangeSetCommand = deserializeAws_restJson1StartChangeSetCommand;
|
|
480
443
|
const deserializeAws_restJson1StartChangeSetCommandError = async (output, context) => {
|
|
@@ -482,7 +445,6 @@ const deserializeAws_restJson1StartChangeSetCommandError = async (output, contex
|
|
|
482
445
|
...output,
|
|
483
446
|
body: await parseBody(output.body, context),
|
|
484
447
|
};
|
|
485
|
-
let response;
|
|
486
448
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
487
449
|
switch (errorCode) {
|
|
488
450
|
case "AccessDeniedException":
|
|
@@ -508,20 +470,19 @@ const deserializeAws_restJson1StartChangeSetCommandError = async (output, contex
|
|
|
508
470
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
509
471
|
default:
|
|
510
472
|
const parsedBody = parsedOutput.body;
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
$metadata,
|
|
473
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
474
|
+
output,
|
|
475
|
+
parsedBody,
|
|
476
|
+
exceptionCtor: MarketplaceCatalogServiceException_1.MarketplaceCatalogServiceException,
|
|
477
|
+
errorCode,
|
|
517
478
|
});
|
|
518
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
519
479
|
}
|
|
520
480
|
};
|
|
481
|
+
const map = smithy_client_1.map;
|
|
521
482
|
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
522
|
-
const contents = {};
|
|
483
|
+
const contents = map({});
|
|
523
484
|
const data = parsedOutput.body;
|
|
524
|
-
if (data.Message
|
|
485
|
+
if (data.Message != null) {
|
|
525
486
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
526
487
|
}
|
|
527
488
|
const exception = new models_0_1.AccessDeniedException({
|
|
@@ -531,9 +492,9 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
531
492
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
532
493
|
};
|
|
533
494
|
const deserializeAws_restJson1InternalServiceExceptionResponse = async (parsedOutput, context) => {
|
|
534
|
-
const contents = {};
|
|
495
|
+
const contents = map({});
|
|
535
496
|
const data = parsedOutput.body;
|
|
536
|
-
if (data.Message
|
|
497
|
+
if (data.Message != null) {
|
|
537
498
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
538
499
|
}
|
|
539
500
|
const exception = new models_0_1.InternalServiceException({
|
|
@@ -543,9 +504,9 @@ const deserializeAws_restJson1InternalServiceExceptionResponse = async (parsedOu
|
|
|
543
504
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
544
505
|
};
|
|
545
506
|
const deserializeAws_restJson1ResourceInUseExceptionResponse = async (parsedOutput, context) => {
|
|
546
|
-
const contents = {};
|
|
507
|
+
const contents = map({});
|
|
547
508
|
const data = parsedOutput.body;
|
|
548
|
-
if (data.Message
|
|
509
|
+
if (data.Message != null) {
|
|
549
510
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
550
511
|
}
|
|
551
512
|
const exception = new models_0_1.ResourceInUseException({
|
|
@@ -555,9 +516,9 @@ const deserializeAws_restJson1ResourceInUseExceptionResponse = async (parsedOutp
|
|
|
555
516
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
556
517
|
};
|
|
557
518
|
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
558
|
-
const contents = {};
|
|
519
|
+
const contents = map({});
|
|
559
520
|
const data = parsedOutput.body;
|
|
560
|
-
if (data.Message
|
|
521
|
+
if (data.Message != null) {
|
|
561
522
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
562
523
|
}
|
|
563
524
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
@@ -567,9 +528,9 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
567
528
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
568
529
|
};
|
|
569
530
|
const deserializeAws_restJson1ResourceNotSupportedExceptionResponse = async (parsedOutput, context) => {
|
|
570
|
-
const contents = {};
|
|
531
|
+
const contents = map({});
|
|
571
532
|
const data = parsedOutput.body;
|
|
572
|
-
if (data.Message
|
|
533
|
+
if (data.Message != null) {
|
|
573
534
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
574
535
|
}
|
|
575
536
|
const exception = new models_0_1.ResourceNotSupportedException({
|
|
@@ -579,9 +540,9 @@ const deserializeAws_restJson1ResourceNotSupportedExceptionResponse = async (par
|
|
|
579
540
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
580
541
|
};
|
|
581
542
|
const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
|
|
582
|
-
const contents = {};
|
|
543
|
+
const contents = map({});
|
|
583
544
|
const data = parsedOutput.body;
|
|
584
|
-
if (data.Message
|
|
545
|
+
if (data.Message != null) {
|
|
585
546
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
586
547
|
}
|
|
587
548
|
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
@@ -591,9 +552,9 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
591
552
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
592
553
|
};
|
|
593
554
|
const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
594
|
-
const contents = {};
|
|
555
|
+
const contents = map({});
|
|
595
556
|
const data = parsedOutput.body;
|
|
596
|
-
if (data.Message
|
|
557
|
+
if (data.Message != null) {
|
|
597
558
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
598
559
|
}
|
|
599
560
|
const exception = new models_0_1.ThrottlingException({
|
|
@@ -603,9 +564,9 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
603
564
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
604
565
|
};
|
|
605
566
|
const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
606
|
-
const contents = {};
|
|
567
|
+
const contents = map({});
|
|
607
568
|
const data = parsedOutput.body;
|
|
608
|
-
if (data.Message
|
|
569
|
+
if (data.Message != null) {
|
|
609
570
|
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
610
571
|
}
|
|
611
572
|
const exception = new models_0_1.ValidationException({
|
|
@@ -638,9 +599,6 @@ const serializeAws_restJson1FilterList = (input, context) => {
|
|
|
638
599
|
return input
|
|
639
600
|
.filter((e) => e != null)
|
|
640
601
|
.map((entry) => {
|
|
641
|
-
if (entry === null) {
|
|
642
|
-
return null;
|
|
643
|
-
}
|
|
644
602
|
return serializeAws_restJson1Filter(entry, context);
|
|
645
603
|
});
|
|
646
604
|
};
|
|
@@ -648,9 +606,6 @@ const serializeAws_restJson1RequestedChangeList = (input, context) => {
|
|
|
648
606
|
return input
|
|
649
607
|
.filter((e) => e != null)
|
|
650
608
|
.map((entry) => {
|
|
651
|
-
if (entry === null) {
|
|
652
|
-
return null;
|
|
653
|
-
}
|
|
654
609
|
return serializeAws_restJson1Change(entry, context);
|
|
655
610
|
});
|
|
656
611
|
};
|
|
@@ -664,9 +619,6 @@ const serializeAws_restJson1ValueList = (input, context) => {
|
|
|
664
619
|
return input
|
|
665
620
|
.filter((e) => e != null)
|
|
666
621
|
.map((entry) => {
|
|
667
|
-
if (entry === null) {
|
|
668
|
-
return null;
|
|
669
|
-
}
|
|
670
622
|
return entry;
|
|
671
623
|
});
|
|
672
624
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map as __map, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
5
|
import { MarketplaceCatalogServiceException as __BaseException } from "../models/MarketplaceCatalogServiceException";
|
|
6
6
|
import { AccessDeniedException, InternalServiceException, ResourceInUseException, ResourceNotFoundException, ResourceNotSupportedException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
@@ -13,7 +13,10 @@ export var serializeAws_restJson1CancelChangeSetCommand = function (input, conte
|
|
|
13
13
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
14
14
|
headers = {};
|
|
15
15
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/CancelChangeSet";
|
|
16
|
-
query =
|
|
16
|
+
query = map({
|
|
17
|
+
catalog: [, input.Catalog],
|
|
18
|
+
changeSetId: [, input.ChangeSetId],
|
|
19
|
+
});
|
|
17
20
|
return [2, new __HttpRequest({
|
|
18
21
|
protocol: protocol,
|
|
19
22
|
hostname: hostname,
|
|
@@ -36,7 +39,10 @@ export var serializeAws_restJson1DescribeChangeSetCommand = function (input, con
|
|
|
36
39
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
37
40
|
headers = {};
|
|
38
41
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DescribeChangeSet";
|
|
39
|
-
query =
|
|
42
|
+
query = map({
|
|
43
|
+
catalog: [, input.Catalog],
|
|
44
|
+
changeSetId: [, input.ChangeSetId],
|
|
45
|
+
});
|
|
40
46
|
return [2, new __HttpRequest({
|
|
41
47
|
protocol: protocol,
|
|
42
48
|
hostname: hostname,
|
|
@@ -59,7 +65,10 @@ export var serializeAws_restJson1DescribeEntityCommand = function (input, contex
|
|
|
59
65
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
60
66
|
headers = {};
|
|
61
67
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DescribeEntity";
|
|
62
|
-
query =
|
|
68
|
+
query = map({
|
|
69
|
+
catalog: [, input.Catalog],
|
|
70
|
+
entityId: [, input.EntityId],
|
|
71
|
+
});
|
|
63
72
|
return [2, new __HttpRequest({
|
|
64
73
|
protocol: protocol,
|
|
65
74
|
hostname: hostname,
|
|
@@ -154,28 +163,26 @@ export var deserializeAws_restJson1CancelChangeSetCommand = function (output, co
|
|
|
154
163
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
155
164
|
return [2, deserializeAws_restJson1CancelChangeSetCommandError(output, context)];
|
|
156
165
|
}
|
|
157
|
-
contents = {
|
|
166
|
+
contents = map({
|
|
158
167
|
$metadata: deserializeMetadata(output),
|
|
159
|
-
|
|
160
|
-
ChangeSetId: undefined,
|
|
161
|
-
};
|
|
168
|
+
});
|
|
162
169
|
_a = __expectNonNull;
|
|
163
170
|
_b = __expectObject;
|
|
164
171
|
return [4, parseBody(output.body, context)];
|
|
165
172
|
case 1:
|
|
166
173
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
167
|
-
if (data.ChangeSetArn
|
|
174
|
+
if (data.ChangeSetArn != null) {
|
|
168
175
|
contents.ChangeSetArn = __expectString(data.ChangeSetArn);
|
|
169
176
|
}
|
|
170
|
-
if (data.ChangeSetId
|
|
177
|
+
if (data.ChangeSetId != null) {
|
|
171
178
|
contents.ChangeSetId = __expectString(data.ChangeSetId);
|
|
172
179
|
}
|
|
173
|
-
return [2,
|
|
180
|
+
return [2, contents];
|
|
174
181
|
}
|
|
175
182
|
});
|
|
176
183
|
}); };
|
|
177
184
|
var deserializeAws_restJson1CancelChangeSetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
178
|
-
var parsedOutput, _a,
|
|
185
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
179
186
|
var _c;
|
|
180
187
|
return __generator(this, function (_d) {
|
|
181
188
|
switch (_d.label) {
|
|
@@ -216,14 +223,14 @@ var deserializeAws_restJson1CancelChangeSetCommandError = function (output, cont
|
|
|
216
223
|
case 13: throw _d.sent();
|
|
217
224
|
case 14:
|
|
218
225
|
parsedBody = parsedOutput.body;
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
$metadata: $metadata,
|
|
226
|
+
throwDefaultError({
|
|
227
|
+
output: output,
|
|
228
|
+
parsedBody: parsedBody,
|
|
229
|
+
exceptionCtor: __BaseException,
|
|
230
|
+
errorCode: errorCode,
|
|
225
231
|
});
|
|
226
|
-
|
|
232
|
+
_d.label = 15;
|
|
233
|
+
case 15: return [2];
|
|
227
234
|
}
|
|
228
235
|
});
|
|
229
236
|
}); };
|
|
@@ -235,56 +242,47 @@ export var deserializeAws_restJson1DescribeChangeSetCommand = function (output,
|
|
|
235
242
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
236
243
|
return [2, deserializeAws_restJson1DescribeChangeSetCommandError(output, context)];
|
|
237
244
|
}
|
|
238
|
-
contents = {
|
|
245
|
+
contents = map({
|
|
239
246
|
$metadata: deserializeMetadata(output),
|
|
240
|
-
|
|
241
|
-
ChangeSetArn: undefined,
|
|
242
|
-
ChangeSetId: undefined,
|
|
243
|
-
ChangeSetName: undefined,
|
|
244
|
-
EndTime: undefined,
|
|
245
|
-
FailureCode: undefined,
|
|
246
|
-
FailureDescription: undefined,
|
|
247
|
-
StartTime: undefined,
|
|
248
|
-
Status: undefined,
|
|
249
|
-
};
|
|
247
|
+
});
|
|
250
248
|
_a = __expectNonNull;
|
|
251
249
|
_b = __expectObject;
|
|
252
250
|
return [4, parseBody(output.body, context)];
|
|
253
251
|
case 1:
|
|
254
252
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
255
|
-
if (data.ChangeSet
|
|
253
|
+
if (data.ChangeSet != null) {
|
|
256
254
|
contents.ChangeSet = deserializeAws_restJson1ChangeSetDescription(data.ChangeSet, context);
|
|
257
255
|
}
|
|
258
|
-
if (data.ChangeSetArn
|
|
256
|
+
if (data.ChangeSetArn != null) {
|
|
259
257
|
contents.ChangeSetArn = __expectString(data.ChangeSetArn);
|
|
260
258
|
}
|
|
261
|
-
if (data.ChangeSetId
|
|
259
|
+
if (data.ChangeSetId != null) {
|
|
262
260
|
contents.ChangeSetId = __expectString(data.ChangeSetId);
|
|
263
261
|
}
|
|
264
|
-
if (data.ChangeSetName
|
|
262
|
+
if (data.ChangeSetName != null) {
|
|
265
263
|
contents.ChangeSetName = __expectString(data.ChangeSetName);
|
|
266
264
|
}
|
|
267
|
-
if (data.EndTime
|
|
265
|
+
if (data.EndTime != null) {
|
|
268
266
|
contents.EndTime = __expectString(data.EndTime);
|
|
269
267
|
}
|
|
270
|
-
if (data.FailureCode
|
|
268
|
+
if (data.FailureCode != null) {
|
|
271
269
|
contents.FailureCode = __expectString(data.FailureCode);
|
|
272
270
|
}
|
|
273
|
-
if (data.FailureDescription
|
|
271
|
+
if (data.FailureDescription != null) {
|
|
274
272
|
contents.FailureDescription = __expectString(data.FailureDescription);
|
|
275
273
|
}
|
|
276
|
-
if (data.StartTime
|
|
274
|
+
if (data.StartTime != null) {
|
|
277
275
|
contents.StartTime = __expectString(data.StartTime);
|
|
278
276
|
}
|
|
279
|
-
if (data.Status
|
|
277
|
+
if (data.Status != null) {
|
|
280
278
|
contents.Status = __expectString(data.Status);
|
|
281
279
|
}
|
|
282
|
-
return [2,
|
|
280
|
+
return [2, contents];
|
|
283
281
|
}
|
|
284
282
|
});
|
|
285
283
|
}); };
|
|
286
284
|
var deserializeAws_restJson1DescribeChangeSetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
287
|
-
var parsedOutput, _a,
|
|
285
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
288
286
|
var _c;
|
|
289
287
|
return __generator(this, function (_d) {
|
|
290
288
|
switch (_d.label) {
|
|
@@ -321,14 +319,14 @@ var deserializeAws_restJson1DescribeChangeSetCommandError = function (output, co
|
|
|
321
319
|
case 11: throw _d.sent();
|
|
322
320
|
case 12:
|
|
323
321
|
parsedBody = parsedOutput.body;
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
$metadata: $metadata,
|
|
322
|
+
throwDefaultError({
|
|
323
|
+
output: output,
|
|
324
|
+
parsedBody: parsedBody,
|
|
325
|
+
exceptionCtor: __BaseException,
|
|
326
|
+
errorCode: errorCode,
|
|
330
327
|
});
|
|
331
|
-
|
|
328
|
+
_d.label = 13;
|
|
329
|
+
case 13: return [2];
|
|
332
330
|
}
|
|
333
331
|
});
|
|
334
332
|
}); };
|
|
@@ -340,40 +338,35 @@ export var deserializeAws_restJson1DescribeEntityCommand = function (output, con
|
|
|
340
338
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
341
339
|
return [2, deserializeAws_restJson1DescribeEntityCommandError(output, context)];
|
|
342
340
|
}
|
|
343
|
-
contents = {
|
|
341
|
+
contents = map({
|
|
344
342
|
$metadata: deserializeMetadata(output),
|
|
345
|
-
|
|
346
|
-
EntityArn: undefined,
|
|
347
|
-
EntityIdentifier: undefined,
|
|
348
|
-
EntityType: undefined,
|
|
349
|
-
LastModifiedDate: undefined,
|
|
350
|
-
};
|
|
343
|
+
});
|
|
351
344
|
_a = __expectNonNull;
|
|
352
345
|
_b = __expectObject;
|
|
353
346
|
return [4, parseBody(output.body, context)];
|
|
354
347
|
case 1:
|
|
355
348
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
356
|
-
if (data.Details
|
|
349
|
+
if (data.Details != null) {
|
|
357
350
|
contents.Details = __expectString(data.Details);
|
|
358
351
|
}
|
|
359
|
-
if (data.EntityArn
|
|
352
|
+
if (data.EntityArn != null) {
|
|
360
353
|
contents.EntityArn = __expectString(data.EntityArn);
|
|
361
354
|
}
|
|
362
|
-
if (data.EntityIdentifier
|
|
355
|
+
if (data.EntityIdentifier != null) {
|
|
363
356
|
contents.EntityIdentifier = __expectString(data.EntityIdentifier);
|
|
364
357
|
}
|
|
365
|
-
if (data.EntityType
|
|
358
|
+
if (data.EntityType != null) {
|
|
366
359
|
contents.EntityType = __expectString(data.EntityType);
|
|
367
360
|
}
|
|
368
|
-
if (data.LastModifiedDate
|
|
361
|
+
if (data.LastModifiedDate != null) {
|
|
369
362
|
contents.LastModifiedDate = __expectString(data.LastModifiedDate);
|
|
370
363
|
}
|
|
371
|
-
return [2,
|
|
364
|
+
return [2, contents];
|
|
372
365
|
}
|
|
373
366
|
});
|
|
374
367
|
}); };
|
|
375
368
|
var deserializeAws_restJson1DescribeEntityCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
376
|
-
var parsedOutput, _a,
|
|
369
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
377
370
|
var _c;
|
|
378
371
|
return __generator(this, function (_d) {
|
|
379
372
|
switch (_d.label) {
|
|
@@ -414,14 +407,14 @@ var deserializeAws_restJson1DescribeEntityCommandError = function (output, conte
|
|
|
414
407
|
case 13: throw _d.sent();
|
|
415
408
|
case 14:
|
|
416
409
|
parsedBody = parsedOutput.body;
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
$metadata: $metadata,
|
|
410
|
+
throwDefaultError({
|
|
411
|
+
output: output,
|
|
412
|
+
parsedBody: parsedBody,
|
|
413
|
+
exceptionCtor: __BaseException,
|
|
414
|
+
errorCode: errorCode,
|
|
423
415
|
});
|
|
424
|
-
|
|
416
|
+
_d.label = 15;
|
|
417
|
+
case 15: return [2];
|
|
425
418
|
}
|
|
426
419
|
});
|
|
427
420
|
}); };
|
|
@@ -433,28 +426,26 @@ export var deserializeAws_restJson1ListChangeSetsCommand = function (output, con
|
|
|
433
426
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
434
427
|
return [2, deserializeAws_restJson1ListChangeSetsCommandError(output, context)];
|
|
435
428
|
}
|
|
436
|
-
contents = {
|
|
429
|
+
contents = map({
|
|
437
430
|
$metadata: deserializeMetadata(output),
|
|
438
|
-
|
|
439
|
-
NextToken: undefined,
|
|
440
|
-
};
|
|
431
|
+
});
|
|
441
432
|
_a = __expectNonNull;
|
|
442
433
|
_b = __expectObject;
|
|
443
434
|
return [4, parseBody(output.body, context)];
|
|
444
435
|
case 1:
|
|
445
436
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
446
|
-
if (data.ChangeSetSummaryList
|
|
437
|
+
if (data.ChangeSetSummaryList != null) {
|
|
447
438
|
contents.ChangeSetSummaryList = deserializeAws_restJson1ChangeSetSummaryList(data.ChangeSetSummaryList, context);
|
|
448
439
|
}
|
|
449
|
-
if (data.NextToken
|
|
440
|
+
if (data.NextToken != null) {
|
|
450
441
|
contents.NextToken = __expectString(data.NextToken);
|
|
451
442
|
}
|
|
452
|
-
return [2,
|
|
443
|
+
return [2, contents];
|
|
453
444
|
}
|
|
454
445
|
});
|
|
455
446
|
}); };
|
|
456
447
|
var deserializeAws_restJson1ListChangeSetsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
457
|
-
var parsedOutput, _a,
|
|
448
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
458
449
|
var _c;
|
|
459
450
|
return __generator(this, function (_d) {
|
|
460
451
|
switch (_d.label) {
|
|
@@ -487,14 +478,14 @@ var deserializeAws_restJson1ListChangeSetsCommandError = function (output, conte
|
|
|
487
478
|
case 9: throw _d.sent();
|
|
488
479
|
case 10:
|
|
489
480
|
parsedBody = parsedOutput.body;
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
$metadata: $metadata,
|
|
481
|
+
throwDefaultError({
|
|
482
|
+
output: output,
|
|
483
|
+
parsedBody: parsedBody,
|
|
484
|
+
exceptionCtor: __BaseException,
|
|
485
|
+
errorCode: errorCode,
|
|
496
486
|
});
|
|
497
|
-
|
|
487
|
+
_d.label = 11;
|
|
488
|
+
case 11: return [2];
|
|
498
489
|
}
|
|
499
490
|
});
|
|
500
491
|
}); };
|
|
@@ -506,28 +497,26 @@ export var deserializeAws_restJson1ListEntitiesCommand = function (output, conte
|
|
|
506
497
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
507
498
|
return [2, deserializeAws_restJson1ListEntitiesCommandError(output, context)];
|
|
508
499
|
}
|
|
509
|
-
contents = {
|
|
500
|
+
contents = map({
|
|
510
501
|
$metadata: deserializeMetadata(output),
|
|
511
|
-
|
|
512
|
-
NextToken: undefined,
|
|
513
|
-
};
|
|
502
|
+
});
|
|
514
503
|
_a = __expectNonNull;
|
|
515
504
|
_b = __expectObject;
|
|
516
505
|
return [4, parseBody(output.body, context)];
|
|
517
506
|
case 1:
|
|
518
507
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
519
|
-
if (data.EntitySummaryList
|
|
508
|
+
if (data.EntitySummaryList != null) {
|
|
520
509
|
contents.EntitySummaryList = deserializeAws_restJson1EntitySummaryList(data.EntitySummaryList, context);
|
|
521
510
|
}
|
|
522
|
-
if (data.NextToken
|
|
511
|
+
if (data.NextToken != null) {
|
|
523
512
|
contents.NextToken = __expectString(data.NextToken);
|
|
524
513
|
}
|
|
525
|
-
return [2,
|
|
514
|
+
return [2, contents];
|
|
526
515
|
}
|
|
527
516
|
});
|
|
528
517
|
}); };
|
|
529
518
|
var deserializeAws_restJson1ListEntitiesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
530
|
-
var parsedOutput, _a,
|
|
519
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
531
520
|
var _c;
|
|
532
521
|
return __generator(this, function (_d) {
|
|
533
522
|
switch (_d.label) {
|
|
@@ -564,14 +553,14 @@ var deserializeAws_restJson1ListEntitiesCommandError = function (output, context
|
|
|
564
553
|
case 11: throw _d.sent();
|
|
565
554
|
case 12:
|
|
566
555
|
parsedBody = parsedOutput.body;
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
$metadata: $metadata,
|
|
556
|
+
throwDefaultError({
|
|
557
|
+
output: output,
|
|
558
|
+
parsedBody: parsedBody,
|
|
559
|
+
exceptionCtor: __BaseException,
|
|
560
|
+
errorCode: errorCode,
|
|
573
561
|
});
|
|
574
|
-
|
|
562
|
+
_d.label = 13;
|
|
563
|
+
case 13: return [2];
|
|
575
564
|
}
|
|
576
565
|
});
|
|
577
566
|
}); };
|
|
@@ -583,28 +572,26 @@ export var deserializeAws_restJson1StartChangeSetCommand = function (output, con
|
|
|
583
572
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
584
573
|
return [2, deserializeAws_restJson1StartChangeSetCommandError(output, context)];
|
|
585
574
|
}
|
|
586
|
-
contents = {
|
|
575
|
+
contents = map({
|
|
587
576
|
$metadata: deserializeMetadata(output),
|
|
588
|
-
|
|
589
|
-
ChangeSetId: undefined,
|
|
590
|
-
};
|
|
577
|
+
});
|
|
591
578
|
_a = __expectNonNull;
|
|
592
579
|
_b = __expectObject;
|
|
593
580
|
return [4, parseBody(output.body, context)];
|
|
594
581
|
case 1:
|
|
595
582
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
596
|
-
if (data.ChangeSetArn
|
|
583
|
+
if (data.ChangeSetArn != null) {
|
|
597
584
|
contents.ChangeSetArn = __expectString(data.ChangeSetArn);
|
|
598
585
|
}
|
|
599
|
-
if (data.ChangeSetId
|
|
586
|
+
if (data.ChangeSetId != null) {
|
|
600
587
|
contents.ChangeSetId = __expectString(data.ChangeSetId);
|
|
601
588
|
}
|
|
602
|
-
return [2,
|
|
589
|
+
return [2, contents];
|
|
603
590
|
}
|
|
604
591
|
});
|
|
605
592
|
}); };
|
|
606
593
|
var deserializeAws_restJson1StartChangeSetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
607
|
-
var parsedOutput, _a,
|
|
594
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
608
595
|
var _c;
|
|
609
596
|
return __generator(this, function (_d) {
|
|
610
597
|
switch (_d.label) {
|
|
@@ -649,23 +636,24 @@ var deserializeAws_restJson1StartChangeSetCommandError = function (output, conte
|
|
|
649
636
|
case 15: throw _d.sent();
|
|
650
637
|
case 16:
|
|
651
638
|
parsedBody = parsedOutput.body;
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
$metadata: $metadata,
|
|
639
|
+
throwDefaultError({
|
|
640
|
+
output: output,
|
|
641
|
+
parsedBody: parsedBody,
|
|
642
|
+
exceptionCtor: __BaseException,
|
|
643
|
+
errorCode: errorCode,
|
|
658
644
|
});
|
|
659
|
-
|
|
645
|
+
_d.label = 17;
|
|
646
|
+
case 17: return [2];
|
|
660
647
|
}
|
|
661
648
|
});
|
|
662
649
|
}); };
|
|
650
|
+
var map = __map;
|
|
663
651
|
var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
664
652
|
var contents, data, exception;
|
|
665
653
|
return __generator(this, function (_a) {
|
|
666
|
-
contents = {};
|
|
654
|
+
contents = map({});
|
|
667
655
|
data = parsedOutput.body;
|
|
668
|
-
if (data.Message
|
|
656
|
+
if (data.Message != null) {
|
|
669
657
|
contents.Message = __expectString(data.Message);
|
|
670
658
|
}
|
|
671
659
|
exception = new AccessDeniedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -675,9 +663,9 @@ var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutp
|
|
|
675
663
|
var deserializeAws_restJson1InternalServiceExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
676
664
|
var contents, data, exception;
|
|
677
665
|
return __generator(this, function (_a) {
|
|
678
|
-
contents = {};
|
|
666
|
+
contents = map({});
|
|
679
667
|
data = parsedOutput.body;
|
|
680
|
-
if (data.Message
|
|
668
|
+
if (data.Message != null) {
|
|
681
669
|
contents.Message = __expectString(data.Message);
|
|
682
670
|
}
|
|
683
671
|
exception = new InternalServiceException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -687,9 +675,9 @@ var deserializeAws_restJson1InternalServiceExceptionResponse = function (parsedO
|
|
|
687
675
|
var deserializeAws_restJson1ResourceInUseExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
688
676
|
var contents, data, exception;
|
|
689
677
|
return __generator(this, function (_a) {
|
|
690
|
-
contents = {};
|
|
678
|
+
contents = map({});
|
|
691
679
|
data = parsedOutput.body;
|
|
692
|
-
if (data.Message
|
|
680
|
+
if (data.Message != null) {
|
|
693
681
|
contents.Message = __expectString(data.Message);
|
|
694
682
|
}
|
|
695
683
|
exception = new ResourceInUseException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -699,9 +687,9 @@ var deserializeAws_restJson1ResourceInUseExceptionResponse = function (parsedOut
|
|
|
699
687
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
700
688
|
var contents, data, exception;
|
|
701
689
|
return __generator(this, function (_a) {
|
|
702
|
-
contents = {};
|
|
690
|
+
contents = map({});
|
|
703
691
|
data = parsedOutput.body;
|
|
704
|
-
if (data.Message
|
|
692
|
+
if (data.Message != null) {
|
|
705
693
|
contents.Message = __expectString(data.Message);
|
|
706
694
|
}
|
|
707
695
|
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -711,9 +699,9 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
|
|
|
711
699
|
var deserializeAws_restJson1ResourceNotSupportedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
712
700
|
var contents, data, exception;
|
|
713
701
|
return __generator(this, function (_a) {
|
|
714
|
-
contents = {};
|
|
702
|
+
contents = map({});
|
|
715
703
|
data = parsedOutput.body;
|
|
716
|
-
if (data.Message
|
|
704
|
+
if (data.Message != null) {
|
|
717
705
|
contents.Message = __expectString(data.Message);
|
|
718
706
|
}
|
|
719
707
|
exception = new ResourceNotSupportedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -723,9 +711,9 @@ var deserializeAws_restJson1ResourceNotSupportedExceptionResponse = function (pa
|
|
|
723
711
|
var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
724
712
|
var contents, data, exception;
|
|
725
713
|
return __generator(this, function (_a) {
|
|
726
|
-
contents = {};
|
|
714
|
+
contents = map({});
|
|
727
715
|
data = parsedOutput.body;
|
|
728
|
-
if (data.Message
|
|
716
|
+
if (data.Message != null) {
|
|
729
717
|
contents.Message = __expectString(data.Message);
|
|
730
718
|
}
|
|
731
719
|
exception = new ServiceQuotaExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -735,9 +723,9 @@ var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (pa
|
|
|
735
723
|
var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
736
724
|
var contents, data, exception;
|
|
737
725
|
return __generator(this, function (_a) {
|
|
738
|
-
contents = {};
|
|
726
|
+
contents = map({});
|
|
739
727
|
data = parsedOutput.body;
|
|
740
|
-
if (data.Message
|
|
728
|
+
if (data.Message != null) {
|
|
741
729
|
contents.Message = __expectString(data.Message);
|
|
742
730
|
}
|
|
743
731
|
exception = new ThrottlingException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -747,9 +735,9 @@ var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput
|
|
|
747
735
|
var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
748
736
|
var contents, data, exception;
|
|
749
737
|
return __generator(this, function (_a) {
|
|
750
|
-
contents = {};
|
|
738
|
+
contents = map({});
|
|
751
739
|
data = parsedOutput.body;
|
|
752
|
-
if (data.Message
|
|
740
|
+
if (data.Message != null) {
|
|
753
741
|
contents.Message = __expectString(data.Message);
|
|
754
742
|
}
|
|
755
743
|
exception = new ValidationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
@@ -769,9 +757,6 @@ var serializeAws_restJson1FilterList = function (input, context) {
|
|
|
769
757
|
return input
|
|
770
758
|
.filter(function (e) { return e != null; })
|
|
771
759
|
.map(function (entry) {
|
|
772
|
-
if (entry === null) {
|
|
773
|
-
return null;
|
|
774
|
-
}
|
|
775
760
|
return serializeAws_restJson1Filter(entry, context);
|
|
776
761
|
});
|
|
777
762
|
};
|
|
@@ -779,9 +764,6 @@ var serializeAws_restJson1RequestedChangeList = function (input, context) {
|
|
|
779
764
|
return input
|
|
780
765
|
.filter(function (e) { return e != null; })
|
|
781
766
|
.map(function (entry) {
|
|
782
|
-
if (entry === null) {
|
|
783
|
-
return null;
|
|
784
|
-
}
|
|
785
767
|
return serializeAws_restJson1Change(entry, context);
|
|
786
768
|
});
|
|
787
769
|
};
|
|
@@ -792,9 +774,6 @@ var serializeAws_restJson1ValueList = function (input, context) {
|
|
|
792
774
|
return input
|
|
793
775
|
.filter(function (e) { return e != null; })
|
|
794
776
|
.map(function (entry) {
|
|
795
|
-
if (entry === null) {
|
|
796
|
-
return null;
|
|
797
|
-
}
|
|
798
777
|
return entry;
|
|
799
778
|
});
|
|
800
779
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-marketplace-catalog",
|
|
3
3
|
"description": "AWS SDK for JavaScript Marketplace Catalog Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.145.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.145.0",
|
|
22
22
|
"@aws-sdk/config-resolver": "3.130.0",
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.145.0",
|
|
24
24
|
"@aws-sdk/fetch-http-handler": "3.131.0",
|
|
25
25
|
"@aws-sdk/hash-node": "3.127.0",
|
|
26
26
|
"@aws-sdk/invalid-dependency": "3.127.0",
|
|
@@ -36,15 +36,15 @@
|
|
|
36
36
|
"@aws-sdk/node-config-provider": "3.127.0",
|
|
37
37
|
"@aws-sdk/node-http-handler": "3.127.0",
|
|
38
38
|
"@aws-sdk/protocol-http": "3.127.0",
|
|
39
|
-
"@aws-sdk/smithy-client": "3.
|
|
39
|
+
"@aws-sdk/smithy-client": "3.142.0",
|
|
40
40
|
"@aws-sdk/types": "3.127.0",
|
|
41
41
|
"@aws-sdk/url-parser": "3.127.0",
|
|
42
42
|
"@aws-sdk/util-base64-browser": "3.109.0",
|
|
43
43
|
"@aws-sdk/util-base64-node": "3.55.0",
|
|
44
44
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
45
45
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
46
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.142.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.142.0",
|
|
48
48
|
"@aws-sdk/util-user-agent-browser": "3.127.0",
|
|
49
49
|
"@aws-sdk/util-user-agent-node": "3.127.0",
|
|
50
50
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|
|
@@ -63,6 +63,11 @@
|
|
|
63
63
|
"typedoc": "0.19.2",
|
|
64
64
|
"typescript": "~4.6.2"
|
|
65
65
|
},
|
|
66
|
+
"overrides": {
|
|
67
|
+
"typedoc": {
|
|
68
|
+
"typescript": "~4.6.2"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
66
71
|
"engines": {
|
|
67
72
|
"node": ">=12.0.0"
|
|
68
73
|
},
|