@aws-sdk/client-budgets 3.891.0 → 3.893.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
@@ -30,6 +30,7 @@ __export(index_exports, {
30
30
  ActionType: () => ActionType,
31
31
  ApprovalModel: () => ApprovalModel,
32
32
  AutoAdjustType: () => AutoAdjustType,
33
+ BillingViewHealthStatusException: () => BillingViewHealthStatusException,
33
34
  BudgetType: () => BudgetType,
34
35
  Budgets: () => Budgets,
35
36
  BudgetsClient: () => BudgetsClient,
@@ -351,6 +352,30 @@ var AutoAdjustType = {
351
352
  FORECAST: "FORECAST",
352
353
  HISTORICAL: "HISTORICAL"
353
354
  };
355
+ var BillingViewHealthStatusException = class _BillingViewHealthStatusException extends BudgetsServiceException {
356
+ static {
357
+ __name(this, "BillingViewHealthStatusException");
358
+ }
359
+ name = "BillingViewHealthStatusException";
360
+ $fault = "client";
361
+ /**
362
+ * <p>The error message the exception carries.</p>
363
+ * @public
364
+ */
365
+ Message;
366
+ /**
367
+ * @internal
368
+ */
369
+ constructor(opts) {
370
+ super({
371
+ name: "BillingViewHealthStatusException",
372
+ $fault: "client",
373
+ ...opts
374
+ });
375
+ Object.setPrototypeOf(this, _BillingViewHealthStatusException.prototype);
376
+ this.Message = opts.Message;
377
+ }
378
+ };
354
379
  var BudgetType = {
355
380
  Cost: "COST",
356
381
  RICoverage: "RI_COVERAGE",
@@ -1271,6 +1296,9 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1271
1296
  case "AccessDeniedException":
1272
1297
  case "com.amazonaws.budgets#AccessDeniedException":
1273
1298
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1299
+ case "BillingViewHealthStatusException":
1300
+ case "com.amazonaws.budgets#BillingViewHealthStatusException":
1301
+ throw await de_BillingViewHealthStatusExceptionRes(parsedOutput, context);
1274
1302
  case "CreationLimitExceededException":
1275
1303
  case "com.amazonaws.budgets#CreationLimitExceededException":
1276
1304
  throw await de_CreationLimitExceededExceptionRes(parsedOutput, context);
@@ -1319,6 +1347,15 @@ var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, co
1319
1347
  });
1320
1348
  return (0, import_smithy_client.decorateServiceException)(exception, body);
1321
1349
  }, "de_AccessDeniedExceptionRes");
1350
+ var de_BillingViewHealthStatusExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1351
+ const body = parsedOutput.body;
1352
+ const deserialized = (0, import_smithy_client._json)(body);
1353
+ const exception = new BillingViewHealthStatusException({
1354
+ $metadata: deserializeMetadata(parsedOutput),
1355
+ ...deserialized
1356
+ });
1357
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1358
+ }, "de_BillingViewHealthStatusExceptionRes");
1322
1359
  var de_CreationLimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1323
1360
  const body = parsedOutput.body;
1324
1361
  const deserialized = (0, import_smithy_client._json)(body);
@@ -2372,6 +2409,7 @@ var paginateDescribeSubscribersForNotification = (0, import_core.createPaginator
2372
2409
  SubscriptionType,
2373
2410
  EventType,
2374
2411
  AutoAdjustType,
2412
+ BillingViewHealthStatusException,
2375
2413
  BudgetType,
2376
2414
  MatchOption,
2377
2415
  Dimension,
@@ -62,6 +62,20 @@ export const AutoAdjustType = {
62
62
  FORECAST: "FORECAST",
63
63
  HISTORICAL: "HISTORICAL",
64
64
  };
65
+ export class BillingViewHealthStatusException extends __BaseException {
66
+ name = "BillingViewHealthStatusException";
67
+ $fault = "client";
68
+ Message;
69
+ constructor(opts) {
70
+ super({
71
+ name: "BillingViewHealthStatusException",
72
+ $fault: "client",
73
+ ...opts,
74
+ });
75
+ Object.setPrototypeOf(this, BillingViewHealthStatusException.prototype);
76
+ this.Message = opts.Message;
77
+ }
78
+ }
65
79
  export const BudgetType = {
66
80
  Cost: "COST",
67
81
  RICoverage: "RI_COVERAGE",
@@ -2,7 +2,7 @@ import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody a
2
2
  import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
3
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { BudgetsServiceException as __BaseException } from "../models/BudgetsServiceException";
5
- import { AccessDeniedException, CreationLimitExceededException, DuplicateRecordException, ExpiredNextTokenException, InternalErrorException, InvalidNextTokenException, InvalidParameterException, NotFoundException, ResourceLockedException, ServiceQuotaExceededException, ThrottlingException, } from "../models/models_0";
5
+ import { AccessDeniedException, BillingViewHealthStatusException, CreationLimitExceededException, DuplicateRecordException, ExpiredNextTokenException, InternalErrorException, InvalidNextTokenException, InvalidParameterException, NotFoundException, ResourceLockedException, ServiceQuotaExceededException, ThrottlingException, } from "../models/models_0";
6
6
  export const se_CreateBudgetCommand = async (input, context) => {
7
7
  const headers = sharedHeaders("CreateBudget");
8
8
  let body;
@@ -507,6 +507,9 @@ const de_CommandError = async (output, context) => {
507
507
  case "AccessDeniedException":
508
508
  case "com.amazonaws.budgets#AccessDeniedException":
509
509
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
510
+ case "BillingViewHealthStatusException":
511
+ case "com.amazonaws.budgets#BillingViewHealthStatusException":
512
+ throw await de_BillingViewHealthStatusExceptionRes(parsedOutput, context);
510
513
  case "CreationLimitExceededException":
511
514
  case "com.amazonaws.budgets#CreationLimitExceededException":
512
515
  throw await de_CreationLimitExceededExceptionRes(parsedOutput, context);
@@ -555,6 +558,15 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
555
558
  });
556
559
  return __decorateServiceException(exception, body);
557
560
  };
561
+ const de_BillingViewHealthStatusExceptionRes = async (parsedOutput, context) => {
562
+ const body = parsedOutput.body;
563
+ const deserialized = _json(body);
564
+ const exception = new BillingViewHealthStatusException({
565
+ $metadata: deserializeMetadata(parsedOutput),
566
+ ...deserialized,
567
+ });
568
+ return __decorateServiceException(exception, body);
569
+ };
558
570
  const de_CreationLimitExceededExceptionRes = async (parsedOutput, context) => {
559
571
  const body = parsedOutput.body;
560
572
  const deserialized = _json(body);
@@ -221,6 +221,11 @@ declare const CreateBudgetCommand_base: {
221
221
  * @throws {@link AccessDeniedException} (client fault)
222
222
  * <p>You are not authorized to use this operation with the given parameters.</p>
223
223
  *
224
+ * @throws {@link BillingViewHealthStatusException} (client fault)
225
+ * <p>
226
+ * The billing view status must be HEALTHY to perform this action. Try again when the status is HEALTHY.
227
+ * </p>
228
+ *
224
229
  * @throws {@link CreationLimitExceededException} (client fault)
225
230
  * <p>You've exceeded the notification or subscriber limit.</p>
226
231
  *
@@ -198,6 +198,11 @@ declare const UpdateBudgetCommand_base: {
198
198
  * @throws {@link AccessDeniedException} (client fault)
199
199
  * <p>You are not authorized to use this operation with the given parameters.</p>
200
200
  *
201
+ * @throws {@link BillingViewHealthStatusException} (client fault)
202
+ * <p>
203
+ * The billing view status must be HEALTHY to perform this action. Try again when the status is HEALTHY.
204
+ * </p>
205
+ *
201
206
  * @throws {@link InternalErrorException} (server fault)
202
207
  * <p>An error on the server occurred during the processing of your request. Try again later.</p>
203
208
  *
@@ -441,6 +441,25 @@ export interface AutoAdjustData {
441
441
  */
442
442
  LastAutoAdjustTime?: Date | undefined;
443
443
  }
444
+ /**
445
+ * <p>
446
+ * The billing view status must be HEALTHY to perform this action. Try again when the status is HEALTHY.
447
+ * </p>
448
+ * @public
449
+ */
450
+ export declare class BillingViewHealthStatusException extends __BaseException {
451
+ readonly name: "BillingViewHealthStatusException";
452
+ readonly $fault: "client";
453
+ /**
454
+ * <p>The error message the exception carries.</p>
455
+ * @public
456
+ */
457
+ Message?: string | undefined;
458
+ /**
459
+ * @internal
460
+ */
461
+ constructor(opts: __ExceptionOptionType<BillingViewHealthStatusException, __BaseException>);
462
+ }
444
463
  /**
445
464
  * <p>The amount of cost or usage that's measured for a budget.</p>
446
465
  * <p>
@@ -127,6 +127,17 @@ export interface AutoAdjustData {
127
127
  HistoricalOptions?: HistoricalOptions | undefined;
128
128
  LastAutoAdjustTime?: Date | undefined;
129
129
  }
130
+ export declare class BillingViewHealthStatusException extends __BaseException {
131
+ readonly name: "BillingViewHealthStatusException";
132
+ readonly $fault: "client";
133
+ Message?: string | undefined;
134
+ constructor(
135
+ opts: __ExceptionOptionType<
136
+ BillingViewHealthStatusException,
137
+ __BaseException
138
+ >
139
+ );
140
+ }
130
141
  export interface Spend {
131
142
  Amount: string | undefined;
132
143
  Unit: string | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-budgets",
3
3
  "description": "AWS SDK for JavaScript Budgets Client for Node.js, Browser and React Native",
4
- "version": "3.891.0",
4
+ "version": "3.893.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-budgets",
@@ -20,38 +20,38 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.890.0",
24
- "@aws-sdk/credential-provider-node": "3.891.0",
25
- "@aws-sdk/middleware-host-header": "3.891.0",
26
- "@aws-sdk/middleware-logger": "3.891.0",
27
- "@aws-sdk/middleware-recursion-detection": "3.891.0",
28
- "@aws-sdk/middleware-user-agent": "3.891.0",
29
- "@aws-sdk/region-config-resolver": "3.890.0",
30
- "@aws-sdk/types": "3.887.0",
31
- "@aws-sdk/util-endpoints": "3.891.0",
32
- "@aws-sdk/util-user-agent-browser": "3.887.0",
33
- "@aws-sdk/util-user-agent-node": "3.891.0",
23
+ "@aws-sdk/core": "3.893.0",
24
+ "@aws-sdk/credential-provider-node": "3.893.0",
25
+ "@aws-sdk/middleware-host-header": "3.893.0",
26
+ "@aws-sdk/middleware-logger": "3.893.0",
27
+ "@aws-sdk/middleware-recursion-detection": "3.893.0",
28
+ "@aws-sdk/middleware-user-agent": "3.893.0",
29
+ "@aws-sdk/region-config-resolver": "3.893.0",
30
+ "@aws-sdk/types": "3.893.0",
31
+ "@aws-sdk/util-endpoints": "3.893.0",
32
+ "@aws-sdk/util-user-agent-browser": "3.893.0",
33
+ "@aws-sdk/util-user-agent-node": "3.893.0",
34
34
  "@smithy/config-resolver": "^4.2.2",
35
- "@smithy/core": "^3.11.0",
35
+ "@smithy/core": "^3.11.1",
36
36
  "@smithy/fetch-http-handler": "^5.2.1",
37
37
  "@smithy/hash-node": "^4.1.1",
38
38
  "@smithy/invalid-dependency": "^4.1.1",
39
39
  "@smithy/middleware-content-length": "^4.1.1",
40
- "@smithy/middleware-endpoint": "^4.2.2",
41
- "@smithy/middleware-retry": "^4.2.3",
40
+ "@smithy/middleware-endpoint": "^4.2.3",
41
+ "@smithy/middleware-retry": "^4.2.4",
42
42
  "@smithy/middleware-serde": "^4.1.1",
43
43
  "@smithy/middleware-stack": "^4.1.1",
44
44
  "@smithy/node-config-provider": "^4.2.2",
45
45
  "@smithy/node-http-handler": "^4.2.1",
46
46
  "@smithy/protocol-http": "^5.2.1",
47
- "@smithy/smithy-client": "^4.6.2",
47
+ "@smithy/smithy-client": "^4.6.3",
48
48
  "@smithy/types": "^4.5.0",
49
49
  "@smithy/url-parser": "^4.1.1",
50
50
  "@smithy/util-base64": "^4.1.0",
51
51
  "@smithy/util-body-length-browser": "^4.1.0",
52
52
  "@smithy/util-body-length-node": "^4.1.0",
53
- "@smithy/util-defaults-mode-browser": "^4.1.2",
54
- "@smithy/util-defaults-mode-node": "^4.1.2",
53
+ "@smithy/util-defaults-mode-browser": "^4.1.3",
54
+ "@smithy/util-defaults-mode-node": "^4.1.3",
55
55
  "@smithy/util-endpoints": "^3.1.2",
56
56
  "@smithy/util-middleware": "^4.1.1",
57
57
  "@smithy/util-retry": "^4.1.2",