@aws-sdk/client-license-manager-linux-subscriptions 3.504.0 → 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
@@ -323,7 +323,7 @@ var se_UpdateServiceSettingsCommand = /* @__PURE__ */ __name(async (input, conte
323
323
  }, "se_UpdateServiceSettingsCommand");
324
324
  var de_GetServiceSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
325
325
  if (output.statusCode !== 200 && output.statusCode >= 300) {
326
- return de_GetServiceSettingsCommandError(output, context);
326
+ return de_CommandError(output, context);
327
327
  }
328
328
  const contents = (0, import_smithy_client.map)({
329
329
  $metadata: deserializeMetadata(output)
@@ -339,34 +339,9 @@ var de_GetServiceSettingsCommand = /* @__PURE__ */ __name(async (output, context
339
339
  Object.assign(contents, doc);
340
340
  return contents;
341
341
  }, "de_GetServiceSettingsCommand");
342
- var de_GetServiceSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
343
- const parsedOutput = {
344
- ...output,
345
- body: await parseErrorBody(output.body, context)
346
- };
347
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
348
- switch (errorCode) {
349
- case "InternalServerException":
350
- case "com.amazonaws.licensemanagerlinuxsubscriptions#InternalServerException":
351
- throw await de_InternalServerExceptionRes(parsedOutput, context);
352
- case "ThrottlingException":
353
- case "com.amazonaws.licensemanagerlinuxsubscriptions#ThrottlingException":
354
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
355
- case "ValidationException":
356
- case "com.amazonaws.licensemanagerlinuxsubscriptions#ValidationException":
357
- throw await de_ValidationExceptionRes(parsedOutput, context);
358
- default:
359
- const parsedBody = parsedOutput.body;
360
- return throwDefaultError({
361
- output,
362
- parsedBody,
363
- errorCode
364
- });
365
- }
366
- }, "de_GetServiceSettingsCommandError");
367
342
  var de_ListLinuxSubscriptionInstancesCommand = /* @__PURE__ */ __name(async (output, context) => {
368
343
  if (output.statusCode !== 200 && output.statusCode >= 300) {
369
- return de_ListLinuxSubscriptionInstancesCommandError(output, context);
344
+ return de_CommandError(output, context);
370
345
  }
371
346
  const contents = (0, import_smithy_client.map)({
372
347
  $metadata: deserializeMetadata(output)
@@ -379,34 +354,9 @@ var de_ListLinuxSubscriptionInstancesCommand = /* @__PURE__ */ __name(async (out
379
354
  Object.assign(contents, doc);
380
355
  return contents;
381
356
  }, "de_ListLinuxSubscriptionInstancesCommand");
382
- var de_ListLinuxSubscriptionInstancesCommandError = /* @__PURE__ */ __name(async (output, context) => {
383
- const parsedOutput = {
384
- ...output,
385
- body: await parseErrorBody(output.body, context)
386
- };
387
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
388
- switch (errorCode) {
389
- case "InternalServerException":
390
- case "com.amazonaws.licensemanagerlinuxsubscriptions#InternalServerException":
391
- throw await de_InternalServerExceptionRes(parsedOutput, context);
392
- case "ThrottlingException":
393
- case "com.amazonaws.licensemanagerlinuxsubscriptions#ThrottlingException":
394
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
395
- case "ValidationException":
396
- case "com.amazonaws.licensemanagerlinuxsubscriptions#ValidationException":
397
- throw await de_ValidationExceptionRes(parsedOutput, context);
398
- default:
399
- const parsedBody = parsedOutput.body;
400
- return throwDefaultError({
401
- output,
402
- parsedBody,
403
- errorCode
404
- });
405
- }
406
- }, "de_ListLinuxSubscriptionInstancesCommandError");
407
357
  var de_ListLinuxSubscriptionsCommand = /* @__PURE__ */ __name(async (output, context) => {
408
358
  if (output.statusCode !== 200 && output.statusCode >= 300) {
409
- return de_ListLinuxSubscriptionsCommandError(output, context);
359
+ return de_CommandError(output, context);
410
360
  }
411
361
  const contents = (0, import_smithy_client.map)({
412
362
  $metadata: deserializeMetadata(output)
@@ -419,34 +369,9 @@ var de_ListLinuxSubscriptionsCommand = /* @__PURE__ */ __name(async (output, con
419
369
  Object.assign(contents, doc);
420
370
  return contents;
421
371
  }, "de_ListLinuxSubscriptionsCommand");
422
- var de_ListLinuxSubscriptionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
423
- const parsedOutput = {
424
- ...output,
425
- body: await parseErrorBody(output.body, context)
426
- };
427
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
428
- switch (errorCode) {
429
- case "InternalServerException":
430
- case "com.amazonaws.licensemanagerlinuxsubscriptions#InternalServerException":
431
- throw await de_InternalServerExceptionRes(parsedOutput, context);
432
- case "ThrottlingException":
433
- case "com.amazonaws.licensemanagerlinuxsubscriptions#ThrottlingException":
434
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
435
- case "ValidationException":
436
- case "com.amazonaws.licensemanagerlinuxsubscriptions#ValidationException":
437
- throw await de_ValidationExceptionRes(parsedOutput, context);
438
- default:
439
- const parsedBody = parsedOutput.body;
440
- return throwDefaultError({
441
- output,
442
- parsedBody,
443
- errorCode
444
- });
445
- }
446
- }, "de_ListLinuxSubscriptionsCommandError");
447
372
  var de_UpdateServiceSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
448
373
  if (output.statusCode !== 200 && output.statusCode >= 300) {
449
- return de_UpdateServiceSettingsCommandError(output, context);
374
+ return de_CommandError(output, context);
450
375
  }
451
376
  const contents = (0, import_smithy_client.map)({
452
377
  $metadata: deserializeMetadata(output)
@@ -462,7 +387,7 @@ var de_UpdateServiceSettingsCommand = /* @__PURE__ */ __name(async (output, cont
462
387
  Object.assign(contents, doc);
463
388
  return contents;
464
389
  }, "de_UpdateServiceSettingsCommand");
465
- var de_UpdateServiceSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
390
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
466
391
  const parsedOutput = {
467
392
  ...output,
468
393
  body: await parseErrorBody(output.body, context)
@@ -486,7 +411,7 @@ var de_UpdateServiceSettingsCommandError = /* @__PURE__ */ __name(async (output,
486
411
  errorCode
487
412
  });
488
413
  }
489
- }, "de_UpdateServiceSettingsCommandError");
414
+ }, "de_CommandError");
490
415
  var throwDefaultError = (0, import_smithy_client.withBaseException)(LicenseManagerLinuxSubscriptionsServiceException);
491
416
  var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
492
417
  const contents = (0, import_smithy_client.map)({});
@@ -60,7 +60,7 @@ export const se_UpdateServiceSettingsCommand = async (input, context) => {
60
60
  };
61
61
  export const de_GetServiceSettingsCommand = async (output, context) => {
62
62
  if (output.statusCode !== 200 && output.statusCode >= 300) {
63
- return de_GetServiceSettingsCommandError(output, context);
63
+ return de_CommandError(output, context);
64
64
  }
65
65
  const contents = map({
66
66
  $metadata: deserializeMetadata(output),
@@ -76,34 +76,9 @@ export const de_GetServiceSettingsCommand = async (output, context) => {
76
76
  Object.assign(contents, doc);
77
77
  return contents;
78
78
  };
79
- const de_GetServiceSettingsCommandError = async (output, context) => {
80
- const parsedOutput = {
81
- ...output,
82
- body: await parseErrorBody(output.body, context),
83
- };
84
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
85
- switch (errorCode) {
86
- case "InternalServerException":
87
- case "com.amazonaws.licensemanagerlinuxsubscriptions#InternalServerException":
88
- throw await de_InternalServerExceptionRes(parsedOutput, context);
89
- case "ThrottlingException":
90
- case "com.amazonaws.licensemanagerlinuxsubscriptions#ThrottlingException":
91
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
92
- case "ValidationException":
93
- case "com.amazonaws.licensemanagerlinuxsubscriptions#ValidationException":
94
- throw await de_ValidationExceptionRes(parsedOutput, context);
95
- default:
96
- const parsedBody = parsedOutput.body;
97
- return throwDefaultError({
98
- output,
99
- parsedBody,
100
- errorCode,
101
- });
102
- }
103
- };
104
79
  export const de_ListLinuxSubscriptionInstancesCommand = async (output, context) => {
105
80
  if (output.statusCode !== 200 && output.statusCode >= 300) {
106
- return de_ListLinuxSubscriptionInstancesCommandError(output, context);
81
+ return de_CommandError(output, context);
107
82
  }
108
83
  const contents = map({
109
84
  $metadata: deserializeMetadata(output),
@@ -116,34 +91,9 @@ export const de_ListLinuxSubscriptionInstancesCommand = async (output, context)
116
91
  Object.assign(contents, doc);
117
92
  return contents;
118
93
  };
119
- const de_ListLinuxSubscriptionInstancesCommandError = async (output, context) => {
120
- const parsedOutput = {
121
- ...output,
122
- body: await parseErrorBody(output.body, context),
123
- };
124
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
125
- switch (errorCode) {
126
- case "InternalServerException":
127
- case "com.amazonaws.licensemanagerlinuxsubscriptions#InternalServerException":
128
- throw await de_InternalServerExceptionRes(parsedOutput, context);
129
- case "ThrottlingException":
130
- case "com.amazonaws.licensemanagerlinuxsubscriptions#ThrottlingException":
131
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
132
- case "ValidationException":
133
- case "com.amazonaws.licensemanagerlinuxsubscriptions#ValidationException":
134
- throw await de_ValidationExceptionRes(parsedOutput, context);
135
- default:
136
- const parsedBody = parsedOutput.body;
137
- return throwDefaultError({
138
- output,
139
- parsedBody,
140
- errorCode,
141
- });
142
- }
143
- };
144
94
  export const de_ListLinuxSubscriptionsCommand = async (output, context) => {
145
95
  if (output.statusCode !== 200 && output.statusCode >= 300) {
146
- return de_ListLinuxSubscriptionsCommandError(output, context);
96
+ return de_CommandError(output, context);
147
97
  }
148
98
  const contents = map({
149
99
  $metadata: deserializeMetadata(output),
@@ -156,34 +106,9 @@ export const de_ListLinuxSubscriptionsCommand = async (output, context) => {
156
106
  Object.assign(contents, doc);
157
107
  return contents;
158
108
  };
159
- const de_ListLinuxSubscriptionsCommandError = async (output, context) => {
160
- const parsedOutput = {
161
- ...output,
162
- body: await parseErrorBody(output.body, context),
163
- };
164
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
165
- switch (errorCode) {
166
- case "InternalServerException":
167
- case "com.amazonaws.licensemanagerlinuxsubscriptions#InternalServerException":
168
- throw await de_InternalServerExceptionRes(parsedOutput, context);
169
- case "ThrottlingException":
170
- case "com.amazonaws.licensemanagerlinuxsubscriptions#ThrottlingException":
171
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
172
- case "ValidationException":
173
- case "com.amazonaws.licensemanagerlinuxsubscriptions#ValidationException":
174
- throw await de_ValidationExceptionRes(parsedOutput, context);
175
- default:
176
- const parsedBody = parsedOutput.body;
177
- return throwDefaultError({
178
- output,
179
- parsedBody,
180
- errorCode,
181
- });
182
- }
183
- };
184
109
  export const de_UpdateServiceSettingsCommand = async (output, context) => {
185
110
  if (output.statusCode !== 200 && output.statusCode >= 300) {
186
- return de_UpdateServiceSettingsCommandError(output, context);
111
+ return de_CommandError(output, context);
187
112
  }
188
113
  const contents = map({
189
114
  $metadata: deserializeMetadata(output),
@@ -199,7 +124,7 @@ export const de_UpdateServiceSettingsCommand = async (output, context) => {
199
124
  Object.assign(contents, doc);
200
125
  return contents;
201
126
  };
202
- const de_UpdateServiceSettingsCommandError = async (output, context) => {
127
+ const de_CommandError = async (output, context) => {
203
128
  const parsedOutput = {
204
129
  ...output,
205
130
  body: await parseErrorBody(output.body, context),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-license-manager-linux-subscriptions",
3
3
  "description": "AWS SDK for JavaScript License Manager Linux Subscriptions Client for Node.js, Browser and React Native",
4
- "version": "3.504.0",
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-license-manager-linux-subscriptions",
@@ -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.504.0",
23
+ "@aws-sdk/client-sts": "3.507.0",
24
24
  "@aws-sdk/core": "3.496.0",
25
- "@aws-sdk/credential-provider-node": "3.504.0",
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",