@aws-sdk/client-marketplace-deployment 3.503.1 → 3.507.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -356,7 +356,7 @@ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
356
356
  }, "se_UntagResourceCommand");
357
357
  var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
358
358
  if (output.statusCode !== 200 && output.statusCode >= 300) {
359
- return de_ListTagsForResourceCommandError(output, context);
359
+ return de_CommandError(output, context);
360
360
  }
361
361
  const contents = (0, import_smithy_client.map)({
362
362
  $metadata: deserializeMetadata(output)
@@ -368,40 +368,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
368
368
  Object.assign(contents, doc);
369
369
  return contents;
370
370
  }, "de_ListTagsForResourceCommand");
371
- var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
372
- const parsedOutput = {
373
- ...output,
374
- body: await parseErrorBody(output.body, context)
375
- };
376
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
377
- switch (errorCode) {
378
- case "AccessDeniedException":
379
- case "com.amazonaws.marketplacedeployment#AccessDeniedException":
380
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
381
- case "InternalServerException":
382
- case "com.amazonaws.marketplacedeployment#InternalServerException":
383
- throw await de_InternalServerExceptionRes(parsedOutput, context);
384
- case "ResourceNotFoundException":
385
- case "com.amazonaws.marketplacedeployment#ResourceNotFoundException":
386
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
387
- case "ThrottlingException":
388
- case "com.amazonaws.marketplacedeployment#ThrottlingException":
389
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
390
- case "ValidationException":
391
- case "com.amazonaws.marketplacedeployment#ValidationException":
392
- throw await de_ValidationExceptionRes(parsedOutput, context);
393
- default:
394
- const parsedBody = parsedOutput.body;
395
- return throwDefaultError({
396
- output,
397
- parsedBody,
398
- errorCode
399
- });
400
- }
401
- }, "de_ListTagsForResourceCommandError");
402
371
  var de_PutDeploymentParameterCommand = /* @__PURE__ */ __name(async (output, context) => {
403
372
  if (output.statusCode !== 200 && output.statusCode >= 300) {
404
- return de_PutDeploymentParameterCommandError(output, context);
373
+ return de_CommandError(output, context);
405
374
  }
406
375
  const contents = (0, import_smithy_client.map)({
407
376
  $metadata: deserializeMetadata(output)
@@ -416,46 +385,9 @@ var de_PutDeploymentParameterCommand = /* @__PURE__ */ __name(async (output, con
416
385
  Object.assign(contents, doc);
417
386
  return contents;
418
387
  }, "de_PutDeploymentParameterCommand");
419
- var de_PutDeploymentParameterCommandError = /* @__PURE__ */ __name(async (output, context) => {
420
- const parsedOutput = {
421
- ...output,
422
- body: await parseErrorBody(output.body, context)
423
- };
424
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
425
- switch (errorCode) {
426
- case "AccessDeniedException":
427
- case "com.amazonaws.marketplacedeployment#AccessDeniedException":
428
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
429
- case "ConflictException":
430
- case "com.amazonaws.marketplacedeployment#ConflictException":
431
- throw await de_ConflictExceptionRes(parsedOutput, context);
432
- case "InternalServerException":
433
- case "com.amazonaws.marketplacedeployment#InternalServerException":
434
- throw await de_InternalServerExceptionRes(parsedOutput, context);
435
- case "ResourceNotFoundException":
436
- case "com.amazonaws.marketplacedeployment#ResourceNotFoundException":
437
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
438
- case "ServiceQuotaExceededException":
439
- case "com.amazonaws.marketplacedeployment#ServiceQuotaExceededException":
440
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
441
- case "ThrottlingException":
442
- case "com.amazonaws.marketplacedeployment#ThrottlingException":
443
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
444
- case "ValidationException":
445
- case "com.amazonaws.marketplacedeployment#ValidationException":
446
- throw await de_ValidationExceptionRes(parsedOutput, context);
447
- default:
448
- const parsedBody = parsedOutput.body;
449
- return throwDefaultError({
450
- output,
451
- parsedBody,
452
- errorCode
453
- });
454
- }
455
- }, "de_PutDeploymentParameterCommandError");
456
388
  var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
457
389
  if (output.statusCode !== 204 && output.statusCode >= 300) {
458
- return de_TagResourceCommandError(output, context);
390
+ return de_CommandError(output, context);
459
391
  }
460
392
  const contents = (0, import_smithy_client.map)({
461
393
  $metadata: deserializeMetadata(output)
@@ -463,43 +395,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
463
395
  await (0, import_smithy_client.collectBody)(output.body, context);
464
396
  return contents;
465
397
  }, "de_TagResourceCommand");
466
- var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
467
- const parsedOutput = {
468
- ...output,
469
- body: await parseErrorBody(output.body, context)
470
- };
471
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
472
- switch (errorCode) {
473
- case "AccessDeniedException":
474
- case "com.amazonaws.marketplacedeployment#AccessDeniedException":
475
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
476
- case "ConflictException":
477
- case "com.amazonaws.marketplacedeployment#ConflictException":
478
- throw await de_ConflictExceptionRes(parsedOutput, context);
479
- case "InternalServerException":
480
- case "com.amazonaws.marketplacedeployment#InternalServerException":
481
- throw await de_InternalServerExceptionRes(parsedOutput, context);
482
- case "ResourceNotFoundException":
483
- case "com.amazonaws.marketplacedeployment#ResourceNotFoundException":
484
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
485
- case "ThrottlingException":
486
- case "com.amazonaws.marketplacedeployment#ThrottlingException":
487
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
488
- case "ValidationException":
489
- case "com.amazonaws.marketplacedeployment#ValidationException":
490
- throw await de_ValidationExceptionRes(parsedOutput, context);
491
- default:
492
- const parsedBody = parsedOutput.body;
493
- return throwDefaultError({
494
- output,
495
- parsedBody,
496
- errorCode
497
- });
498
- }
499
- }, "de_TagResourceCommandError");
500
398
  var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
501
399
  if (output.statusCode !== 204 && output.statusCode >= 300) {
502
- return de_UntagResourceCommandError(output, context);
400
+ return de_CommandError(output, context);
503
401
  }
504
402
  const contents = (0, import_smithy_client.map)({
505
403
  $metadata: deserializeMetadata(output)
@@ -507,7 +405,7 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
507
405
  await (0, import_smithy_client.collectBody)(output.body, context);
508
406
  return contents;
509
407
  }, "de_UntagResourceCommand");
510
- var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
408
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
511
409
  const parsedOutput = {
512
410
  ...output,
513
411
  body: await parseErrorBody(output.body, context)
@@ -517,9 +415,6 @@ var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context
517
415
  case "AccessDeniedException":
518
416
  case "com.amazonaws.marketplacedeployment#AccessDeniedException":
519
417
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
520
- case "ConflictException":
521
- case "com.amazonaws.marketplacedeployment#ConflictException":
522
- throw await de_ConflictExceptionRes(parsedOutput, context);
523
418
  case "InternalServerException":
524
419
  case "com.amazonaws.marketplacedeployment#InternalServerException":
525
420
  throw await de_InternalServerExceptionRes(parsedOutput, context);
@@ -532,6 +427,12 @@ var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context
532
427
  case "ValidationException":
533
428
  case "com.amazonaws.marketplacedeployment#ValidationException":
534
429
  throw await de_ValidationExceptionRes(parsedOutput, context);
430
+ case "ConflictException":
431
+ case "com.amazonaws.marketplacedeployment#ConflictException":
432
+ throw await de_ConflictExceptionRes(parsedOutput, context);
433
+ case "ServiceQuotaExceededException":
434
+ case "com.amazonaws.marketplacedeployment#ServiceQuotaExceededException":
435
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
535
436
  default:
536
437
  const parsedBody = parsedOutput.body;
537
438
  return throwDefaultError({
@@ -540,7 +441,7 @@ var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context
540
441
  errorCode
541
442
  });
542
443
  }
543
- }, "de_UntagResourceCommandError");
444
+ }, "de_CommandError");
544
445
  var throwDefaultError = (0, import_smithy_client.withBaseException)(MarketplaceDeploymentServiceException);
545
446
  var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
546
447
  const contents = (0, import_smithy_client.map)({});
@@ -62,7 +62,7 @@ export const se_UntagResourceCommand = async (input, context) => {
62
62
  };
63
63
  export const de_ListTagsForResourceCommand = async (output, context) => {
64
64
  if (output.statusCode !== 200 && output.statusCode >= 300) {
65
- return de_ListTagsForResourceCommandError(output, context);
65
+ return de_CommandError(output, context);
66
66
  }
67
67
  const contents = map({
68
68
  $metadata: deserializeMetadata(output),
@@ -74,40 +74,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
74
74
  Object.assign(contents, doc);
75
75
  return contents;
76
76
  };
77
- const de_ListTagsForResourceCommandError = async (output, context) => {
78
- const parsedOutput = {
79
- ...output,
80
- body: await parseErrorBody(output.body, context),
81
- };
82
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
83
- switch (errorCode) {
84
- case "AccessDeniedException":
85
- case "com.amazonaws.marketplacedeployment#AccessDeniedException":
86
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
87
- case "InternalServerException":
88
- case "com.amazonaws.marketplacedeployment#InternalServerException":
89
- throw await de_InternalServerExceptionRes(parsedOutput, context);
90
- case "ResourceNotFoundException":
91
- case "com.amazonaws.marketplacedeployment#ResourceNotFoundException":
92
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
93
- case "ThrottlingException":
94
- case "com.amazonaws.marketplacedeployment#ThrottlingException":
95
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
96
- case "ValidationException":
97
- case "com.amazonaws.marketplacedeployment#ValidationException":
98
- throw await de_ValidationExceptionRes(parsedOutput, context);
99
- default:
100
- const parsedBody = parsedOutput.body;
101
- return throwDefaultError({
102
- output,
103
- parsedBody,
104
- errorCode,
105
- });
106
- }
107
- };
108
77
  export const de_PutDeploymentParameterCommand = async (output, context) => {
109
78
  if (output.statusCode !== 200 && output.statusCode >= 300) {
110
- return de_PutDeploymentParameterCommandError(output, context);
79
+ return de_CommandError(output, context);
111
80
  }
112
81
  const contents = map({
113
82
  $metadata: deserializeMetadata(output),
@@ -122,46 +91,9 @@ export const de_PutDeploymentParameterCommand = async (output, context) => {
122
91
  Object.assign(contents, doc);
123
92
  return contents;
124
93
  };
125
- const de_PutDeploymentParameterCommandError = async (output, context) => {
126
- const parsedOutput = {
127
- ...output,
128
- body: await parseErrorBody(output.body, context),
129
- };
130
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
131
- switch (errorCode) {
132
- case "AccessDeniedException":
133
- case "com.amazonaws.marketplacedeployment#AccessDeniedException":
134
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
135
- case "ConflictException":
136
- case "com.amazonaws.marketplacedeployment#ConflictException":
137
- throw await de_ConflictExceptionRes(parsedOutput, context);
138
- case "InternalServerException":
139
- case "com.amazonaws.marketplacedeployment#InternalServerException":
140
- throw await de_InternalServerExceptionRes(parsedOutput, context);
141
- case "ResourceNotFoundException":
142
- case "com.amazonaws.marketplacedeployment#ResourceNotFoundException":
143
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
144
- case "ServiceQuotaExceededException":
145
- case "com.amazonaws.marketplacedeployment#ServiceQuotaExceededException":
146
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
147
- case "ThrottlingException":
148
- case "com.amazonaws.marketplacedeployment#ThrottlingException":
149
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
150
- case "ValidationException":
151
- case "com.amazonaws.marketplacedeployment#ValidationException":
152
- throw await de_ValidationExceptionRes(parsedOutput, context);
153
- default:
154
- const parsedBody = parsedOutput.body;
155
- return throwDefaultError({
156
- output,
157
- parsedBody,
158
- errorCode,
159
- });
160
- }
161
- };
162
94
  export const de_TagResourceCommand = async (output, context) => {
163
95
  if (output.statusCode !== 204 && output.statusCode >= 300) {
164
- return de_TagResourceCommandError(output, context);
96
+ return de_CommandError(output, context);
165
97
  }
166
98
  const contents = map({
167
99
  $metadata: deserializeMetadata(output),
@@ -169,43 +101,9 @@ export const de_TagResourceCommand = async (output, context) => {
169
101
  await collectBody(output.body, context);
170
102
  return contents;
171
103
  };
172
- const de_TagResourceCommandError = async (output, context) => {
173
- const parsedOutput = {
174
- ...output,
175
- body: await parseErrorBody(output.body, context),
176
- };
177
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
178
- switch (errorCode) {
179
- case "AccessDeniedException":
180
- case "com.amazonaws.marketplacedeployment#AccessDeniedException":
181
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
182
- case "ConflictException":
183
- case "com.amazonaws.marketplacedeployment#ConflictException":
184
- throw await de_ConflictExceptionRes(parsedOutput, context);
185
- case "InternalServerException":
186
- case "com.amazonaws.marketplacedeployment#InternalServerException":
187
- throw await de_InternalServerExceptionRes(parsedOutput, context);
188
- case "ResourceNotFoundException":
189
- case "com.amazonaws.marketplacedeployment#ResourceNotFoundException":
190
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
191
- case "ThrottlingException":
192
- case "com.amazonaws.marketplacedeployment#ThrottlingException":
193
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
194
- case "ValidationException":
195
- case "com.amazonaws.marketplacedeployment#ValidationException":
196
- throw await de_ValidationExceptionRes(parsedOutput, context);
197
- default:
198
- const parsedBody = parsedOutput.body;
199
- return throwDefaultError({
200
- output,
201
- parsedBody,
202
- errorCode,
203
- });
204
- }
205
- };
206
104
  export const de_UntagResourceCommand = async (output, context) => {
207
105
  if (output.statusCode !== 204 && output.statusCode >= 300) {
208
- return de_UntagResourceCommandError(output, context);
106
+ return de_CommandError(output, context);
209
107
  }
210
108
  const contents = map({
211
109
  $metadata: deserializeMetadata(output),
@@ -213,7 +111,7 @@ export const de_UntagResourceCommand = async (output, context) => {
213
111
  await collectBody(output.body, context);
214
112
  return contents;
215
113
  };
216
- const de_UntagResourceCommandError = async (output, context) => {
114
+ const de_CommandError = async (output, context) => {
217
115
  const parsedOutput = {
218
116
  ...output,
219
117
  body: await parseErrorBody(output.body, context),
@@ -223,9 +121,6 @@ const de_UntagResourceCommandError = async (output, context) => {
223
121
  case "AccessDeniedException":
224
122
  case "com.amazonaws.marketplacedeployment#AccessDeniedException":
225
123
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
226
- case "ConflictException":
227
- case "com.amazonaws.marketplacedeployment#ConflictException":
228
- throw await de_ConflictExceptionRes(parsedOutput, context);
229
124
  case "InternalServerException":
230
125
  case "com.amazonaws.marketplacedeployment#InternalServerException":
231
126
  throw await de_InternalServerExceptionRes(parsedOutput, context);
@@ -238,6 +133,12 @@ const de_UntagResourceCommandError = async (output, context) => {
238
133
  case "ValidationException":
239
134
  case "com.amazonaws.marketplacedeployment#ValidationException":
240
135
  throw await de_ValidationExceptionRes(parsedOutput, context);
136
+ case "ConflictException":
137
+ case "com.amazonaws.marketplacedeployment#ConflictException":
138
+ throw await de_ConflictExceptionRes(parsedOutput, context);
139
+ case "ServiceQuotaExceededException":
140
+ case "com.amazonaws.marketplacedeployment#ServiceQuotaExceededException":
141
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
241
142
  default:
242
143
  const parsedBody = parsedOutput.body;
243
144
  return throwDefaultError({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-marketplace-deployment",
3
3
  "description": "AWS SDK for JavaScript Marketplace Deployment Client for Node.js, Browser and React Native",
4
- "version": "3.503.1",
4
+ "version": "3.507.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-marketplace-deployment",
@@ -20,9 +20,9 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.502.0",
23
+ "@aws-sdk/client-sts": "3.507.0",
24
24
  "@aws-sdk/core": "3.496.0",
25
- "@aws-sdk/credential-provider-node": "3.503.1",
25
+ "@aws-sdk/credential-provider-node": "3.507.0",
26
26
  "@aws-sdk/middleware-host-header": "3.502.0",
27
27
  "@aws-sdk/middleware-logger": "3.502.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.502.0",