@aws-sdk/client-marketplace-catalog 3.118.1 → 3.128.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 CHANGED
@@ -3,6 +3,33 @@
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.128.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.127.0...v3.128.0) (2022-07-12)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-marketplace-catalog
9
+
10
+
11
+
12
+
13
+
14
+ # [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/client-marketplace-catalog
17
+
18
+
19
+
20
+
21
+
22
+ # [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
23
+
24
+
25
+ ### Features
26
+
27
+ * **clients:** fallback to status code for unmodeled errors ([#3752](https://github.com/aws/aws-sdk-js-v3/issues/3752)) ([49bcc4f](https://github.com/aws/aws-sdk-js-v3/commit/49bcc4f153e890e798a8e82fd5fc397b2dcc449f))
28
+
29
+
30
+
31
+
32
+
6
33
  ## [3.118.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.118.0...v3.118.1) (2022-06-27)
7
34
 
8
35
  **Note:** Version bump only for package @aws-sdk/client-marketplace-catalog
@@ -76,12 +76,11 @@ const serializeAws_restJson1ListChangeSetsCommand = async (input, context) => {
76
76
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/ListChangeSets";
77
77
  let body;
78
78
  body = JSON.stringify({
79
- ...(input.Catalog !== undefined && input.Catalog !== null && { Catalog: input.Catalog }),
80
- ...(input.FilterList !== undefined &&
81
- input.FilterList !== null && { FilterList: serializeAws_restJson1FilterList(input.FilterList, context) }),
82
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
83
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
84
- ...(input.Sort !== undefined && input.Sort !== null && { Sort: serializeAws_restJson1Sort(input.Sort, context) }),
79
+ ...(input.Catalog != null && { Catalog: input.Catalog }),
80
+ ...(input.FilterList != null && { FilterList: serializeAws_restJson1FilterList(input.FilterList, context) }),
81
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
82
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
83
+ ...(input.Sort != null && { Sort: serializeAws_restJson1Sort(input.Sort, context) }),
85
84
  });
86
85
  return new protocol_http_1.HttpRequest({
87
86
  protocol,
@@ -102,13 +101,12 @@ const serializeAws_restJson1ListEntitiesCommand = async (input, context) => {
102
101
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/ListEntities";
103
102
  let body;
104
103
  body = JSON.stringify({
105
- ...(input.Catalog !== undefined && input.Catalog !== null && { Catalog: input.Catalog }),
106
- ...(input.EntityType !== undefined && input.EntityType !== null && { EntityType: input.EntityType }),
107
- ...(input.FilterList !== undefined &&
108
- input.FilterList !== null && { FilterList: serializeAws_restJson1FilterList(input.FilterList, context) }),
109
- ...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
110
- ...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
111
- ...(input.Sort !== undefined && input.Sort !== null && { Sort: serializeAws_restJson1Sort(input.Sort, context) }),
104
+ ...(input.Catalog != null && { Catalog: input.Catalog }),
105
+ ...(input.EntityType != null && { EntityType: input.EntityType }),
106
+ ...(input.FilterList != null && { FilterList: serializeAws_restJson1FilterList(input.FilterList, context) }),
107
+ ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
108
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
109
+ ...(input.Sort != null && { Sort: serializeAws_restJson1Sort(input.Sort, context) }),
112
110
  });
113
111
  return new protocol_http_1.HttpRequest({
114
112
  protocol,
@@ -129,12 +127,10 @@ const serializeAws_restJson1StartChangeSetCommand = async (input, context) => {
129
127
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/StartChangeSet";
130
128
  let body;
131
129
  body = JSON.stringify({
132
- ...(input.Catalog !== undefined && input.Catalog !== null && { Catalog: input.Catalog }),
133
- ...(input.ChangeSet !== undefined &&
134
- input.ChangeSet !== null && { ChangeSet: serializeAws_restJson1RequestedChangeList(input.ChangeSet, context) }),
135
- ...(input.ChangeSetName !== undefined && input.ChangeSetName !== null && { ChangeSetName: input.ChangeSetName }),
136
- ...(input.ClientRequestToken !== undefined &&
137
- input.ClientRequestToken !== null && { ClientRequestToken: input.ClientRequestToken }),
130
+ ...(input.Catalog != null && { Catalog: input.Catalog }),
131
+ ...(input.ChangeSet != null && { ChangeSet: serializeAws_restJson1RequestedChangeList(input.ChangeSet, context) }),
132
+ ...(input.ChangeSetName != null && { ChangeSetName: input.ChangeSetName }),
133
+ ...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
138
134
  });
139
135
  return new protocol_http_1.HttpRequest({
140
136
  protocol,
@@ -172,8 +168,7 @@ const deserializeAws_restJson1CancelChangeSetCommandError = async (output, conte
172
168
  body: await parseBody(output.body, context),
173
169
  };
174
170
  let response;
175
- let errorCode = "UnknownError";
176
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
171
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
177
172
  switch (errorCode) {
178
173
  case "AccessDeniedException":
179
174
  case "com.amazonaws.marketplacecatalog#AccessDeniedException":
@@ -195,10 +190,12 @@ const deserializeAws_restJson1CancelChangeSetCommandError = async (output, conte
195
190
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
196
191
  default:
197
192
  const parsedBody = parsedOutput.body;
193
+ const $metadata = deserializeMetadata(output);
194
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
198
195
  response = new MarketplaceCatalogServiceException_1.MarketplaceCatalogServiceException({
199
- name: parsedBody.code || parsedBody.Code || errorCode,
196
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
200
197
  $fault: "client",
201
- $metadata: deserializeMetadata(output),
198
+ $metadata,
202
199
  });
203
200
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
204
201
  }
@@ -256,8 +253,7 @@ const deserializeAws_restJson1DescribeChangeSetCommandError = async (output, con
256
253
  body: await parseBody(output.body, context),
257
254
  };
258
255
  let response;
259
- let errorCode = "UnknownError";
260
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
256
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
261
257
  switch (errorCode) {
262
258
  case "AccessDeniedException":
263
259
  case "com.amazonaws.marketplacecatalog#AccessDeniedException":
@@ -276,10 +272,12 @@ const deserializeAws_restJson1DescribeChangeSetCommandError = async (output, con
276
272
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
277
273
  default:
278
274
  const parsedBody = parsedOutput.body;
275
+ const $metadata = deserializeMetadata(output);
276
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
279
277
  response = new MarketplaceCatalogServiceException_1.MarketplaceCatalogServiceException({
280
- name: parsedBody.code || parsedBody.Code || errorCode,
278
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
281
279
  $fault: "client",
282
- $metadata: deserializeMetadata(output),
280
+ $metadata,
283
281
  });
284
282
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
285
283
  }
@@ -321,8 +319,7 @@ const deserializeAws_restJson1DescribeEntityCommandError = async (output, contex
321
319
  body: await parseBody(output.body, context),
322
320
  };
323
321
  let response;
324
- let errorCode = "UnknownError";
325
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
322
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
326
323
  switch (errorCode) {
327
324
  case "AccessDeniedException":
328
325
  case "com.amazonaws.marketplacecatalog#AccessDeniedException":
@@ -344,10 +341,12 @@ const deserializeAws_restJson1DescribeEntityCommandError = async (output, contex
344
341
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
345
342
  default:
346
343
  const parsedBody = parsedOutput.body;
344
+ const $metadata = deserializeMetadata(output);
345
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
347
346
  response = new MarketplaceCatalogServiceException_1.MarketplaceCatalogServiceException({
348
- name: parsedBody.code || parsedBody.Code || errorCode,
347
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
349
348
  $fault: "client",
350
- $metadata: deserializeMetadata(output),
349
+ $metadata,
351
350
  });
352
351
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
353
352
  }
@@ -377,8 +376,7 @@ const deserializeAws_restJson1ListChangeSetsCommandError = async (output, contex
377
376
  body: await parseBody(output.body, context),
378
377
  };
379
378
  let response;
380
- let errorCode = "UnknownError";
381
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
379
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
382
380
  switch (errorCode) {
383
381
  case "AccessDeniedException":
384
382
  case "com.amazonaws.marketplacecatalog#AccessDeniedException":
@@ -394,10 +392,12 @@ const deserializeAws_restJson1ListChangeSetsCommandError = async (output, contex
394
392
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
395
393
  default:
396
394
  const parsedBody = parsedOutput.body;
395
+ const $metadata = deserializeMetadata(output);
396
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
397
397
  response = new MarketplaceCatalogServiceException_1.MarketplaceCatalogServiceException({
398
- name: parsedBody.code || parsedBody.Code || errorCode,
398
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
399
399
  $fault: "client",
400
- $metadata: deserializeMetadata(output),
400
+ $metadata,
401
401
  });
402
402
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
403
403
  }
@@ -427,8 +427,7 @@ const deserializeAws_restJson1ListEntitiesCommandError = async (output, context)
427
427
  body: await parseBody(output.body, context),
428
428
  };
429
429
  let response;
430
- let errorCode = "UnknownError";
431
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
430
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
432
431
  switch (errorCode) {
433
432
  case "AccessDeniedException":
434
433
  case "com.amazonaws.marketplacecatalog#AccessDeniedException":
@@ -447,10 +446,12 @@ const deserializeAws_restJson1ListEntitiesCommandError = async (output, context)
447
446
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
448
447
  default:
449
448
  const parsedBody = parsedOutput.body;
449
+ const $metadata = deserializeMetadata(output);
450
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
450
451
  response = new MarketplaceCatalogServiceException_1.MarketplaceCatalogServiceException({
451
- name: parsedBody.code || parsedBody.Code || errorCode,
452
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
452
453
  $fault: "client",
453
- $metadata: deserializeMetadata(output),
454
+ $metadata,
454
455
  });
455
456
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
456
457
  }
@@ -480,8 +481,7 @@ const deserializeAws_restJson1StartChangeSetCommandError = async (output, contex
480
481
  body: await parseBody(output.body, context),
481
482
  };
482
483
  let response;
483
- let errorCode = "UnknownError";
484
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
484
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
485
485
  switch (errorCode) {
486
486
  case "AccessDeniedException":
487
487
  case "com.amazonaws.marketplacecatalog#AccessDeniedException":
@@ -506,10 +506,12 @@ const deserializeAws_restJson1StartChangeSetCommandError = async (output, contex
506
506
  throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
507
507
  default:
508
508
  const parsedBody = parsedOutput.body;
509
+ const $metadata = deserializeMetadata(output);
510
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
509
511
  response = new MarketplaceCatalogServiceException_1.MarketplaceCatalogServiceException({
510
- name: parsedBody.code || parsedBody.Code || errorCode,
512
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
511
513
  $fault: "client",
512
- $metadata: deserializeMetadata(output),
514
+ $metadata,
513
515
  });
514
516
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
515
517
  }
@@ -612,24 +614,22 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
612
614
  };
613
615
  const serializeAws_restJson1Change = (input, context) => {
614
616
  return {
615
- ...(input.ChangeName !== undefined && input.ChangeName !== null && { ChangeName: input.ChangeName }),
616
- ...(input.ChangeType !== undefined && input.ChangeType !== null && { ChangeType: input.ChangeType }),
617
- ...(input.Details !== undefined && input.Details !== null && { Details: input.Details }),
618
- ...(input.Entity !== undefined &&
619
- input.Entity !== null && { Entity: serializeAws_restJson1Entity(input.Entity, context) }),
617
+ ...(input.ChangeName != null && { ChangeName: input.ChangeName }),
618
+ ...(input.ChangeType != null && { ChangeType: input.ChangeType }),
619
+ ...(input.Details != null && { Details: input.Details }),
620
+ ...(input.Entity != null && { Entity: serializeAws_restJson1Entity(input.Entity, context) }),
620
621
  };
621
622
  };
622
623
  const serializeAws_restJson1Entity = (input, context) => {
623
624
  return {
624
- ...(input.Identifier !== undefined && input.Identifier !== null && { Identifier: input.Identifier }),
625
- ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
625
+ ...(input.Identifier != null && { Identifier: input.Identifier }),
626
+ ...(input.Type != null && { Type: input.Type }),
626
627
  };
627
628
  };
628
629
  const serializeAws_restJson1Filter = (input, context) => {
629
630
  return {
630
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
631
- ...(input.ValueList !== undefined &&
632
- input.ValueList !== null && { ValueList: serializeAws_restJson1ValueList(input.ValueList, context) }),
631
+ ...(input.Name != null && { Name: input.Name }),
632
+ ...(input.ValueList != null && { ValueList: serializeAws_restJson1ValueList(input.ValueList, context) }),
633
633
  };
634
634
  };
635
635
  const serializeAws_restJson1FilterList = (input, context) => {
@@ -654,8 +654,8 @@ const serializeAws_restJson1RequestedChangeList = (input, context) => {
654
654
  };
655
655
  const serializeAws_restJson1Sort = (input, context) => {
656
656
  return {
657
- ...(input.SortBy !== undefined && input.SortBy !== null && { SortBy: input.SortBy }),
658
- ...(input.SortOrder !== undefined && input.SortOrder !== null && { SortOrder: input.SortOrder }),
657
+ ...(input.SortBy != null && { SortBy: input.SortBy }),
658
+ ...(input.SortOrder != null && { SortOrder: input.SortOrder }),
659
659
  };
660
660
  };
661
661
  const serializeAws_restJson1ValueList = (input, context) => {
@@ -696,9 +696,7 @@ const deserializeAws_restJson1ChangeSetSummaryListItem = (output, context) => {
696
696
  ChangeSetId: (0, smithy_client_1.expectString)(output.ChangeSetId),
697
697
  ChangeSetName: (0, smithy_client_1.expectString)(output.ChangeSetName),
698
698
  EndTime: (0, smithy_client_1.expectString)(output.EndTime),
699
- EntityIdList: output.EntityIdList !== undefined && output.EntityIdList !== null
700
- ? deserializeAws_restJson1ResourceIdList(output.EntityIdList, context)
701
- : undefined,
699
+ EntityIdList: output.EntityIdList != null ? deserializeAws_restJson1ResourceIdList(output.EntityIdList, context) : undefined,
702
700
  FailureCode: (0, smithy_client_1.expectString)(output.FailureCode),
703
701
  StartTime: (0, smithy_client_1.expectString)(output.StartTime),
704
702
  Status: (0, smithy_client_1.expectString)(output.Status),
@@ -709,10 +707,8 @@ const deserializeAws_restJson1ChangeSummary = (output, context) => {
709
707
  ChangeName: (0, smithy_client_1.expectString)(output.ChangeName),
710
708
  ChangeType: (0, smithy_client_1.expectString)(output.ChangeType),
711
709
  Details: (0, smithy_client_1.expectString)(output.Details),
712
- Entity: output.Entity !== undefined && output.Entity !== null
713
- ? deserializeAws_restJson1Entity(output.Entity, context)
714
- : undefined,
715
- ErrorDetailList: output.ErrorDetailList !== undefined && output.ErrorDetailList !== null
710
+ Entity: output.Entity != null ? deserializeAws_restJson1Entity(output.Entity, context) : undefined,
711
+ ErrorDetailList: output.ErrorDetailList != null
716
712
  ? deserializeAws_restJson1ErrorDetailList(output.ErrorDetailList, context)
717
713
  : undefined,
718
714
  };
@@ -821,5 +817,4 @@ const loadRestJsonErrorCode = (output, data) => {
821
817
  if (data["__type"] !== undefined) {
822
818
  return sanitizeErrorCode(data["__type"]);
823
819
  }
824
- return "";
825
820
  };
@@ -83,8 +83,7 @@ export var serializeAws_restJson1ListChangeSetsCommand = function (input, contex
83
83
  "content-type": "application/json",
84
84
  };
85
85
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListChangeSets";
86
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.Catalog !== undefined && input.Catalog !== null && { Catalog: input.Catalog })), (input.FilterList !== undefined &&
87
- input.FilterList !== null && { FilterList: serializeAws_restJson1FilterList(input.FilterList, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.Sort !== undefined && input.Sort !== null && { Sort: serializeAws_restJson1Sort(input.Sort, context) })));
86
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.Catalog != null && { Catalog: input.Catalog })), (input.FilterList != null && { FilterList: serializeAws_restJson1FilterList(input.FilterList, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.Sort != null && { Sort: serializeAws_restJson1Sort(input.Sort, context) })));
88
87
  return [2, new __HttpRequest({
89
88
  protocol: protocol,
90
89
  hostname: hostname,
@@ -108,8 +107,7 @@ export var serializeAws_restJson1ListEntitiesCommand = function (input, context)
108
107
  "content-type": "application/json",
109
108
  };
110
109
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListEntities";
111
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Catalog !== undefined && input.Catalog !== null && { Catalog: input.Catalog })), (input.EntityType !== undefined && input.EntityType !== null && { EntityType: input.EntityType })), (input.FilterList !== undefined &&
112
- input.FilterList !== null && { FilterList: serializeAws_restJson1FilterList(input.FilterList, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.Sort !== undefined && input.Sort !== null && { Sort: serializeAws_restJson1Sort(input.Sort, context) })));
110
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Catalog != null && { Catalog: input.Catalog })), (input.EntityType != null && { EntityType: input.EntityType })), (input.FilterList != null && { FilterList: serializeAws_restJson1FilterList(input.FilterList, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.Sort != null && { Sort: serializeAws_restJson1Sort(input.Sort, context) })));
113
111
  return [2, new __HttpRequest({
114
112
  protocol: protocol,
115
113
  hostname: hostname,
@@ -133,9 +131,7 @@ export var serializeAws_restJson1StartChangeSetCommand = function (input, contex
133
131
  "content-type": "application/json",
134
132
  };
135
133
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/StartChangeSet";
136
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Catalog !== undefined && input.Catalog !== null && { Catalog: input.Catalog })), (input.ChangeSet !== undefined &&
137
- input.ChangeSet !== null && { ChangeSet: serializeAws_restJson1RequestedChangeList(input.ChangeSet, context) })), (input.ChangeSetName !== undefined && input.ChangeSetName !== null && { ChangeSetName: input.ChangeSetName })), (input.ClientRequestToken !== undefined &&
138
- input.ClientRequestToken !== null && { ClientRequestToken: input.ClientRequestToken })));
134
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Catalog != null && { Catalog: input.Catalog })), (input.ChangeSet != null && { ChangeSet: serializeAws_restJson1RequestedChangeList(input.ChangeSet, context) })), (input.ChangeSetName != null && { ChangeSetName: input.ChangeSetName })), (input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken })));
139
135
  return [2, new __HttpRequest({
140
136
  protocol: protocol,
141
137
  hostname: hostname,
@@ -177,7 +173,7 @@ export var deserializeAws_restJson1CancelChangeSetCommand = function (output, co
177
173
  });
178
174
  }); };
179
175
  var deserializeAws_restJson1CancelChangeSetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
180
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
176
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
181
177
  var _c;
182
178
  return __generator(this, function (_d) {
183
179
  switch (_d.label) {
@@ -187,7 +183,6 @@ var deserializeAws_restJson1CancelChangeSetCommandError = function (output, cont
187
183
  return [4, parseBody(output.body, context)];
188
184
  case 1:
189
185
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
190
- errorCode = "UnknownError";
191
186
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
192
187
  _b = errorCode;
193
188
  switch (_b) {
@@ -219,10 +214,12 @@ var deserializeAws_restJson1CancelChangeSetCommandError = function (output, cont
219
214
  case 13: throw _d.sent();
220
215
  case 14:
221
216
  parsedBody = parsedOutput.body;
217
+ $metadata = deserializeMetadata(output);
218
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
222
219
  response = new __BaseException({
223
- name: parsedBody.code || parsedBody.Code || errorCode,
220
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
224
221
  $fault: "client",
225
- $metadata: deserializeMetadata(output),
222
+ $metadata: $metadata,
226
223
  });
227
224
  throw __decorateServiceException(response, parsedBody);
228
225
  }
@@ -285,7 +282,7 @@ export var deserializeAws_restJson1DescribeChangeSetCommand = function (output,
285
282
  });
286
283
  }); };
287
284
  var deserializeAws_restJson1DescribeChangeSetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
288
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
285
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
289
286
  var _c;
290
287
  return __generator(this, function (_d) {
291
288
  switch (_d.label) {
@@ -295,7 +292,6 @@ var deserializeAws_restJson1DescribeChangeSetCommandError = function (output, co
295
292
  return [4, parseBody(output.body, context)];
296
293
  case 1:
297
294
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
298
- errorCode = "UnknownError";
299
295
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
300
296
  _b = errorCode;
301
297
  switch (_b) {
@@ -323,10 +319,12 @@ var deserializeAws_restJson1DescribeChangeSetCommandError = function (output, co
323
319
  case 11: throw _d.sent();
324
320
  case 12:
325
321
  parsedBody = parsedOutput.body;
322
+ $metadata = deserializeMetadata(output);
323
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
326
324
  response = new __BaseException({
327
- name: parsedBody.code || parsedBody.Code || errorCode,
325
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
328
326
  $fault: "client",
329
- $metadata: deserializeMetadata(output),
327
+ $metadata: $metadata,
330
328
  });
331
329
  throw __decorateServiceException(response, parsedBody);
332
330
  }
@@ -373,7 +371,7 @@ export var deserializeAws_restJson1DescribeEntityCommand = function (output, con
373
371
  });
374
372
  }); };
375
373
  var deserializeAws_restJson1DescribeEntityCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
376
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
374
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
377
375
  var _c;
378
376
  return __generator(this, function (_d) {
379
377
  switch (_d.label) {
@@ -383,7 +381,6 @@ var deserializeAws_restJson1DescribeEntityCommandError = function (output, conte
383
381
  return [4, parseBody(output.body, context)];
384
382
  case 1:
385
383
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
386
- errorCode = "UnknownError";
387
384
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
388
385
  _b = errorCode;
389
386
  switch (_b) {
@@ -415,10 +412,12 @@ var deserializeAws_restJson1DescribeEntityCommandError = function (output, conte
415
412
  case 13: throw _d.sent();
416
413
  case 14:
417
414
  parsedBody = parsedOutput.body;
415
+ $metadata = deserializeMetadata(output);
416
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
418
417
  response = new __BaseException({
419
- name: parsedBody.code || parsedBody.Code || errorCode,
418
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
420
419
  $fault: "client",
421
- $metadata: deserializeMetadata(output),
420
+ $metadata: $metadata,
422
421
  });
423
422
  throw __decorateServiceException(response, parsedBody);
424
423
  }
@@ -453,7 +452,7 @@ export var deserializeAws_restJson1ListChangeSetsCommand = function (output, con
453
452
  });
454
453
  }); };
455
454
  var deserializeAws_restJson1ListChangeSetsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
456
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
455
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
457
456
  var _c;
458
457
  return __generator(this, function (_d) {
459
458
  switch (_d.label) {
@@ -463,7 +462,6 @@ var deserializeAws_restJson1ListChangeSetsCommandError = function (output, conte
463
462
  return [4, parseBody(output.body, context)];
464
463
  case 1:
465
464
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
466
- errorCode = "UnknownError";
467
465
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
468
466
  _b = errorCode;
469
467
  switch (_b) {
@@ -487,10 +485,12 @@ var deserializeAws_restJson1ListChangeSetsCommandError = function (output, conte
487
485
  case 9: throw _d.sent();
488
486
  case 10:
489
487
  parsedBody = parsedOutput.body;
488
+ $metadata = deserializeMetadata(output);
489
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
490
490
  response = new __BaseException({
491
- name: parsedBody.code || parsedBody.Code || errorCode,
491
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
492
492
  $fault: "client",
493
- $metadata: deserializeMetadata(output),
493
+ $metadata: $metadata,
494
494
  });
495
495
  throw __decorateServiceException(response, parsedBody);
496
496
  }
@@ -525,7 +525,7 @@ export var deserializeAws_restJson1ListEntitiesCommand = function (output, conte
525
525
  });
526
526
  }); };
527
527
  var deserializeAws_restJson1ListEntitiesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
528
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
528
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
529
529
  var _c;
530
530
  return __generator(this, function (_d) {
531
531
  switch (_d.label) {
@@ -535,7 +535,6 @@ var deserializeAws_restJson1ListEntitiesCommandError = function (output, context
535
535
  return [4, parseBody(output.body, context)];
536
536
  case 1:
537
537
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
538
- errorCode = "UnknownError";
539
538
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
540
539
  _b = errorCode;
541
540
  switch (_b) {
@@ -563,10 +562,12 @@ var deserializeAws_restJson1ListEntitiesCommandError = function (output, context
563
562
  case 11: throw _d.sent();
564
563
  case 12:
565
564
  parsedBody = parsedOutput.body;
565
+ $metadata = deserializeMetadata(output);
566
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
566
567
  response = new __BaseException({
567
- name: parsedBody.code || parsedBody.Code || errorCode,
568
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
568
569
  $fault: "client",
569
- $metadata: deserializeMetadata(output),
570
+ $metadata: $metadata,
570
571
  });
571
572
  throw __decorateServiceException(response, parsedBody);
572
573
  }
@@ -601,7 +602,7 @@ export var deserializeAws_restJson1StartChangeSetCommand = function (output, con
601
602
  });
602
603
  }); };
603
604
  var deserializeAws_restJson1StartChangeSetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
604
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
605
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
605
606
  var _c;
606
607
  return __generator(this, function (_d) {
607
608
  switch (_d.label) {
@@ -611,7 +612,6 @@ var deserializeAws_restJson1StartChangeSetCommandError = function (output, conte
611
612
  return [4, parseBody(output.body, context)];
612
613
  case 1:
613
614
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
614
- errorCode = "UnknownError";
615
615
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
616
616
  _b = errorCode;
617
617
  switch (_b) {
@@ -647,10 +647,12 @@ var deserializeAws_restJson1StartChangeSetCommandError = function (output, conte
647
647
  case 15: throw _d.sent();
648
648
  case 16:
649
649
  parsedBody = parsedOutput.body;
650
+ $metadata = deserializeMetadata(output);
651
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
650
652
  response = new __BaseException({
651
- name: parsedBody.code || parsedBody.Code || errorCode,
653
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
652
654
  $fault: "client",
653
- $metadata: deserializeMetadata(output),
655
+ $metadata: $metadata,
654
656
  });
655
657
  throw __decorateServiceException(response, parsedBody);
656
658
  }
@@ -753,15 +755,13 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
753
755
  });
754
756
  }); };
755
757
  var serializeAws_restJson1Change = function (input, context) {
756
- return __assign(__assign(__assign(__assign({}, (input.ChangeName !== undefined && input.ChangeName !== null && { ChangeName: input.ChangeName })), (input.ChangeType !== undefined && input.ChangeType !== null && { ChangeType: input.ChangeType })), (input.Details !== undefined && input.Details !== null && { Details: input.Details })), (input.Entity !== undefined &&
757
- input.Entity !== null && { Entity: serializeAws_restJson1Entity(input.Entity, context) }));
758
+ return __assign(__assign(__assign(__assign({}, (input.ChangeName != null && { ChangeName: input.ChangeName })), (input.ChangeType != null && { ChangeType: input.ChangeType })), (input.Details != null && { Details: input.Details })), (input.Entity != null && { Entity: serializeAws_restJson1Entity(input.Entity, context) }));
758
759
  };
759
760
  var serializeAws_restJson1Entity = function (input, context) {
760
- return __assign(__assign({}, (input.Identifier !== undefined && input.Identifier !== null && { Identifier: input.Identifier })), (input.Type !== undefined && input.Type !== null && { Type: input.Type }));
761
+ return __assign(__assign({}, (input.Identifier != null && { Identifier: input.Identifier })), (input.Type != null && { Type: input.Type }));
761
762
  };
762
763
  var serializeAws_restJson1Filter = function (input, context) {
763
- return __assign(__assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.ValueList !== undefined &&
764
- input.ValueList !== null && { ValueList: serializeAws_restJson1ValueList(input.ValueList, context) }));
764
+ return __assign(__assign({}, (input.Name != null && { Name: input.Name })), (input.ValueList != null && { ValueList: serializeAws_restJson1ValueList(input.ValueList, context) }));
765
765
  };
766
766
  var serializeAws_restJson1FilterList = function (input, context) {
767
767
  return input
@@ -784,7 +784,7 @@ var serializeAws_restJson1RequestedChangeList = function (input, context) {
784
784
  });
785
785
  };
786
786
  var serializeAws_restJson1Sort = function (input, context) {
787
- return __assign(__assign({}, (input.SortBy !== undefined && input.SortBy !== null && { SortBy: input.SortBy })), (input.SortOrder !== undefined && input.SortOrder !== null && { SortOrder: input.SortOrder }));
787
+ return __assign(__assign({}, (input.SortBy != null && { SortBy: input.SortBy })), (input.SortOrder != null && { SortOrder: input.SortOrder }));
788
788
  };
789
789
  var serializeAws_restJson1ValueList = function (input, context) {
790
790
  return input
@@ -824,9 +824,7 @@ var deserializeAws_restJson1ChangeSetSummaryListItem = function (output, context
824
824
  ChangeSetId: __expectString(output.ChangeSetId),
825
825
  ChangeSetName: __expectString(output.ChangeSetName),
826
826
  EndTime: __expectString(output.EndTime),
827
- EntityIdList: output.EntityIdList !== undefined && output.EntityIdList !== null
828
- ? deserializeAws_restJson1ResourceIdList(output.EntityIdList, context)
829
- : undefined,
827
+ EntityIdList: output.EntityIdList != null ? deserializeAws_restJson1ResourceIdList(output.EntityIdList, context) : undefined,
830
828
  FailureCode: __expectString(output.FailureCode),
831
829
  StartTime: __expectString(output.StartTime),
832
830
  Status: __expectString(output.Status),
@@ -837,10 +835,8 @@ var deserializeAws_restJson1ChangeSummary = function (output, context) {
837
835
  ChangeName: __expectString(output.ChangeName),
838
836
  ChangeType: __expectString(output.ChangeType),
839
837
  Details: __expectString(output.Details),
840
- Entity: output.Entity !== undefined && output.Entity !== null
841
- ? deserializeAws_restJson1Entity(output.Entity, context)
842
- : undefined,
843
- ErrorDetailList: output.ErrorDetailList !== undefined && output.ErrorDetailList !== null
838
+ Entity: output.Entity != null ? deserializeAws_restJson1Entity(output.Entity, context) : undefined,
839
+ ErrorDetailList: output.ErrorDetailList != null
844
840
  ? deserializeAws_restJson1ErrorDetailList(output.ErrorDetailList, context)
845
841
  : undefined,
846
842
  };
@@ -956,5 +952,4 @@ var loadRestJsonErrorCode = function (output, data) {
956
952
  if (data["__type"] !== undefined) {
957
953
  return sanitizeErrorCode(data["__type"]);
958
954
  }
959
- return "";
960
955
  };
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.118.1",
4
+ "version": "3.128.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,35 +18,35 @@
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.118.1",
22
- "@aws-sdk/config-resolver": "3.110.0",
23
- "@aws-sdk/credential-provider-node": "3.118.1",
24
- "@aws-sdk/fetch-http-handler": "3.110.0",
25
- "@aws-sdk/hash-node": "3.110.0",
26
- "@aws-sdk/invalid-dependency": "3.110.0",
27
- "@aws-sdk/middleware-content-length": "3.110.0",
28
- "@aws-sdk/middleware-host-header": "3.110.0",
29
- "@aws-sdk/middleware-logger": "3.110.0",
30
- "@aws-sdk/middleware-recursion-detection": "3.110.0",
31
- "@aws-sdk/middleware-retry": "3.118.1",
32
- "@aws-sdk/middleware-serde": "3.110.0",
33
- "@aws-sdk/middleware-signing": "3.110.0",
34
- "@aws-sdk/middleware-stack": "3.110.0",
35
- "@aws-sdk/middleware-user-agent": "3.110.0",
36
- "@aws-sdk/node-config-provider": "3.110.0",
37
- "@aws-sdk/node-http-handler": "3.118.1",
38
- "@aws-sdk/protocol-http": "3.110.0",
39
- "@aws-sdk/smithy-client": "3.110.0",
40
- "@aws-sdk/types": "3.110.0",
41
- "@aws-sdk/url-parser": "3.110.0",
21
+ "@aws-sdk/client-sts": "3.128.0",
22
+ "@aws-sdk/config-resolver": "3.128.0",
23
+ "@aws-sdk/credential-provider-node": "3.128.0",
24
+ "@aws-sdk/fetch-http-handler": "3.127.0",
25
+ "@aws-sdk/hash-node": "3.127.0",
26
+ "@aws-sdk/invalid-dependency": "3.127.0",
27
+ "@aws-sdk/middleware-content-length": "3.127.0",
28
+ "@aws-sdk/middleware-host-header": "3.127.0",
29
+ "@aws-sdk/middleware-logger": "3.127.0",
30
+ "@aws-sdk/middleware-recursion-detection": "3.127.0",
31
+ "@aws-sdk/middleware-retry": "3.127.0",
32
+ "@aws-sdk/middleware-serde": "3.127.0",
33
+ "@aws-sdk/middleware-signing": "3.128.0",
34
+ "@aws-sdk/middleware-stack": "3.127.0",
35
+ "@aws-sdk/middleware-user-agent": "3.127.0",
36
+ "@aws-sdk/node-config-provider": "3.127.0",
37
+ "@aws-sdk/node-http-handler": "3.127.0",
38
+ "@aws-sdk/protocol-http": "3.127.0",
39
+ "@aws-sdk/smithy-client": "3.127.0",
40
+ "@aws-sdk/types": "3.127.0",
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.110.0",
47
- "@aws-sdk/util-defaults-mode-node": "3.110.0",
48
- "@aws-sdk/util-user-agent-browser": "3.110.0",
49
- "@aws-sdk/util-user-agent-node": "3.118.0",
46
+ "@aws-sdk/util-defaults-mode-browser": "3.127.0",
47
+ "@aws-sdk/util-defaults-mode-node": "3.128.0",
48
+ "@aws-sdk/util-user-agent-browser": "3.127.0",
49
+ "@aws-sdk/util-user-agent-node": "3.127.0",
50
50
  "@aws-sdk/util-utf8-browser": "3.109.0",
51
51
  "@aws-sdk/util-utf8-node": "3.109.0",
52
52
  "tslib": "^2.3.1"