@aws-sdk/client-appconfigdata 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
@@ -318,7 +318,7 @@ var se_StartConfigurationSessionCommand = /* @__PURE__ */ __name(async (input, c
318
318
  }, "se_StartConfigurationSessionCommand");
319
319
  var de_GetLatestConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
320
320
  if (output.statusCode !== 200 && output.statusCode >= 300) {
321
- return de_GetLatestConfigurationCommandError(output, context);
321
+ return de_CommandError(output, context);
322
322
  }
323
323
  const contents = (0, import_smithy_client.map)({
324
324
  $metadata: deserializeMetadata(output),
@@ -331,37 +331,9 @@ var de_GetLatestConfigurationCommand = /* @__PURE__ */ __name(async (output, con
331
331
  contents.Configuration = data;
332
332
  return contents;
333
333
  }, "de_GetLatestConfigurationCommand");
334
- var de_GetLatestConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
335
- const parsedOutput = {
336
- ...output,
337
- body: await parseErrorBody(output.body, context)
338
- };
339
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
340
- switch (errorCode) {
341
- case "BadRequestException":
342
- case "com.amazonaws.appconfigdata#BadRequestException":
343
- throw await de_BadRequestExceptionRes(parsedOutput, context);
344
- case "InternalServerException":
345
- case "com.amazonaws.appconfigdata#InternalServerException":
346
- throw await de_InternalServerExceptionRes(parsedOutput, context);
347
- case "ResourceNotFoundException":
348
- case "com.amazonaws.appconfigdata#ResourceNotFoundException":
349
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
350
- case "ThrottlingException":
351
- case "com.amazonaws.appconfigdata#ThrottlingException":
352
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
353
- default:
354
- const parsedBody = parsedOutput.body;
355
- return throwDefaultError({
356
- output,
357
- parsedBody,
358
- errorCode
359
- });
360
- }
361
- }, "de_GetLatestConfigurationCommandError");
362
334
  var de_StartConfigurationSessionCommand = /* @__PURE__ */ __name(async (output, context) => {
363
335
  if (output.statusCode !== 201 && output.statusCode >= 300) {
364
- return de_StartConfigurationSessionCommandError(output, context);
336
+ return de_CommandError(output, context);
365
337
  }
366
338
  const contents = (0, import_smithy_client.map)({
367
339
  $metadata: deserializeMetadata(output)
@@ -373,7 +345,7 @@ var de_StartConfigurationSessionCommand = /* @__PURE__ */ __name(async (output,
373
345
  Object.assign(contents, doc);
374
346
  return contents;
375
347
  }, "de_StartConfigurationSessionCommand");
376
- var de_StartConfigurationSessionCommandError = /* @__PURE__ */ __name(async (output, context) => {
348
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
377
349
  const parsedOutput = {
378
350
  ...output,
379
351
  body: await parseErrorBody(output.body, context)
@@ -400,7 +372,7 @@ var de_StartConfigurationSessionCommandError = /* @__PURE__ */ __name(async (out
400
372
  errorCode
401
373
  });
402
374
  }
403
- }, "de_StartConfigurationSessionCommandError");
375
+ }, "de_CommandError");
404
376
  var throwDefaultError = (0, import_smithy_client.withBaseException)(AppConfigDataServiceException);
405
377
  var de_BadRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
406
378
  const contents = (0, import_smithy_client.map)({});
@@ -32,7 +32,7 @@ export const se_StartConfigurationSessionCommand = async (input, context) => {
32
32
  };
33
33
  export const de_GetLatestConfigurationCommand = async (output, context) => {
34
34
  if (output.statusCode !== 200 && output.statusCode >= 300) {
35
- return de_GetLatestConfigurationCommandError(output, context);
35
+ return de_CommandError(output, context);
36
36
  }
37
37
  const contents = map({
38
38
  $metadata: deserializeMetadata(output),
@@ -45,37 +45,9 @@ export const de_GetLatestConfigurationCommand = async (output, context) => {
45
45
  contents.Configuration = data;
46
46
  return contents;
47
47
  };
48
- const de_GetLatestConfigurationCommandError = async (output, context) => {
49
- const parsedOutput = {
50
- ...output,
51
- body: await parseErrorBody(output.body, context),
52
- };
53
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
54
- switch (errorCode) {
55
- case "BadRequestException":
56
- case "com.amazonaws.appconfigdata#BadRequestException":
57
- throw await de_BadRequestExceptionRes(parsedOutput, context);
58
- case "InternalServerException":
59
- case "com.amazonaws.appconfigdata#InternalServerException":
60
- throw await de_InternalServerExceptionRes(parsedOutput, context);
61
- case "ResourceNotFoundException":
62
- case "com.amazonaws.appconfigdata#ResourceNotFoundException":
63
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
64
- case "ThrottlingException":
65
- case "com.amazonaws.appconfigdata#ThrottlingException":
66
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
67
- default:
68
- const parsedBody = parsedOutput.body;
69
- return throwDefaultError({
70
- output,
71
- parsedBody,
72
- errorCode,
73
- });
74
- }
75
- };
76
48
  export const de_StartConfigurationSessionCommand = async (output, context) => {
77
49
  if (output.statusCode !== 201 && output.statusCode >= 300) {
78
- return de_StartConfigurationSessionCommandError(output, context);
50
+ return de_CommandError(output, context);
79
51
  }
80
52
  const contents = map({
81
53
  $metadata: deserializeMetadata(output),
@@ -87,7 +59,7 @@ export const de_StartConfigurationSessionCommand = async (output, context) => {
87
59
  Object.assign(contents, doc);
88
60
  return contents;
89
61
  };
90
- const de_StartConfigurationSessionCommandError = async (output, context) => {
62
+ const de_CommandError = async (output, context) => {
91
63
  const parsedOutput = {
92
64
  ...output,
93
65
  body: await parseErrorBody(output.body, context),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-appconfigdata",
3
3
  "description": "AWS SDK for JavaScript Appconfigdata 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-appconfigdata",
@@ -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",