@aws-sdk/client-budgets 3.890.0 → 3.892.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 +38 -0
- package/dist-es/models/models_0.js +14 -0
- package/dist-es/protocols/Aws_json1_1.js +13 -1
- package/dist-types/commands/CreateBudgetActionCommand.d.ts +2 -0
- package/dist-types/commands/CreateBudgetCommand.d.ts +7 -0
- package/dist-types/commands/CreateNotificationCommand.d.ts +2 -0
- package/dist-types/commands/CreateSubscriberCommand.d.ts +2 -0
- package/dist-types/commands/DeleteBudgetActionCommand.d.ts +2 -0
- package/dist-types/commands/DeleteBudgetCommand.d.ts +2 -0
- package/dist-types/commands/DeleteNotificationCommand.d.ts +2 -0
- package/dist-types/commands/DeleteSubscriberCommand.d.ts +2 -0
- package/dist-types/commands/DescribeBudgetActionCommand.d.ts +2 -0
- package/dist-types/commands/DescribeBudgetActionHistoriesCommand.d.ts +2 -0
- package/dist-types/commands/DescribeBudgetActionsForAccountCommand.d.ts +2 -0
- package/dist-types/commands/DescribeBudgetActionsForBudgetCommand.d.ts +2 -0
- package/dist-types/commands/DescribeBudgetCommand.d.ts +2 -0
- package/dist-types/commands/DescribeBudgetNotificationsForAccountCommand.d.ts +2 -0
- package/dist-types/commands/DescribeBudgetPerformanceHistoryCommand.d.ts +2 -0
- package/dist-types/commands/DescribeBudgetsCommand.d.ts +2 -0
- package/dist-types/commands/DescribeNotificationsForBudgetCommand.d.ts +2 -0
- package/dist-types/commands/DescribeSubscribersForNotificationCommand.d.ts +2 -0
- package/dist-types/commands/ExecuteBudgetActionCommand.d.ts +2 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -0
- package/dist-types/commands/TagResourceCommand.d.ts +2 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +2 -0
- package/dist-types/commands/UpdateBudgetActionCommand.d.ts +2 -0
- package/dist-types/commands/UpdateBudgetCommand.d.ts +7 -0
- package/dist-types/commands/UpdateNotificationCommand.d.ts +2 -0
- package/dist-types/commands/UpdateSubscriberCommand.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +19 -0
- package/dist-types/ts3.4/models/models_0.d.ts +11 -0
- package/package.json +10 -10
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);
|
|
@@ -35,6 +35,8 @@ declare const CreateBudgetActionCommand_base: {
|
|
|
35
35
|
* ```javascript
|
|
36
36
|
* import { BudgetsClient, CreateBudgetActionCommand } from "@aws-sdk/client-budgets"; // ES Modules import
|
|
37
37
|
* // const { BudgetsClient, CreateBudgetActionCommand } = require("@aws-sdk/client-budgets"); // CommonJS import
|
|
38
|
+
* // import type { BudgetsClientConfig } from "@aws-sdk/client-budgets";
|
|
39
|
+
* const config = {}; // type is BudgetsClientConfig
|
|
38
40
|
* const client = new BudgetsClient(config);
|
|
39
41
|
* const input = { // CreateBudgetActionRequest
|
|
40
42
|
* AccountId: "STRING_VALUE", // required
|
|
@@ -45,6 +45,8 @@ declare const CreateBudgetCommand_base: {
|
|
|
45
45
|
* ```javascript
|
|
46
46
|
* import { BudgetsClient, CreateBudgetCommand } from "@aws-sdk/client-budgets"; // ES Modules import
|
|
47
47
|
* // const { BudgetsClient, CreateBudgetCommand } = require("@aws-sdk/client-budgets"); // CommonJS import
|
|
48
|
+
* // import type { BudgetsClientConfig } from "@aws-sdk/client-budgets";
|
|
49
|
+
* const config = {}; // type is BudgetsClientConfig
|
|
48
50
|
* const client = new BudgetsClient(config);
|
|
49
51
|
* const input = { // CreateBudgetRequest
|
|
50
52
|
* AccountId: "STRING_VALUE", // required
|
|
@@ -219,6 +221,11 @@ declare const CreateBudgetCommand_base: {
|
|
|
219
221
|
* @throws {@link AccessDeniedException} (client fault)
|
|
220
222
|
* <p>You are not authorized to use this operation with the given parameters.</p>
|
|
221
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
|
+
*
|
|
222
229
|
* @throws {@link CreationLimitExceededException} (client fault)
|
|
223
230
|
* <p>You've exceeded the notification or subscriber limit.</p>
|
|
224
231
|
*
|
|
@@ -33,6 +33,8 @@ declare const CreateNotificationCommand_base: {
|
|
|
33
33
|
* ```javascript
|
|
34
34
|
* import { BudgetsClient, CreateNotificationCommand } from "@aws-sdk/client-budgets"; // ES Modules import
|
|
35
35
|
* // const { BudgetsClient, CreateNotificationCommand } = require("@aws-sdk/client-budgets"); // CommonJS import
|
|
36
|
+
* // import type { BudgetsClientConfig } from "@aws-sdk/client-budgets";
|
|
37
|
+
* const config = {}; // type is BudgetsClientConfig
|
|
36
38
|
* const client = new BudgetsClient(config);
|
|
37
39
|
* const input = { // CreateNotificationRequest
|
|
38
40
|
* AccountId: "STRING_VALUE", // required
|
|
@@ -33,6 +33,8 @@ declare const CreateSubscriberCommand_base: {
|
|
|
33
33
|
* ```javascript
|
|
34
34
|
* import { BudgetsClient, CreateSubscriberCommand } from "@aws-sdk/client-budgets"; // ES Modules import
|
|
35
35
|
* // const { BudgetsClient, CreateSubscriberCommand } = require("@aws-sdk/client-budgets"); // CommonJS import
|
|
36
|
+
* // import type { BudgetsClientConfig } from "@aws-sdk/client-budgets";
|
|
37
|
+
* const config = {}; // type is BudgetsClientConfig
|
|
36
38
|
* const client = new BudgetsClient(config);
|
|
37
39
|
* const input = { // CreateSubscriberRequest
|
|
38
40
|
* AccountId: "STRING_VALUE", // required
|
|
@@ -35,6 +35,8 @@ declare const DeleteBudgetActionCommand_base: {
|
|
|
35
35
|
* ```javascript
|
|
36
36
|
* import { BudgetsClient, DeleteBudgetActionCommand } from "@aws-sdk/client-budgets"; // ES Modules import
|
|
37
37
|
* // const { BudgetsClient, DeleteBudgetActionCommand } = require("@aws-sdk/client-budgets"); // CommonJS import
|
|
38
|
+
* // import type { BudgetsClientConfig } from "@aws-sdk/client-budgets";
|
|
39
|
+
* const config = {}; // type is BudgetsClientConfig
|
|
38
40
|
* const client = new BudgetsClient(config);
|
|
39
41
|
* const input = { // DeleteBudgetActionRequest
|
|
40
42
|
* AccountId: "STRING_VALUE", // required
|
|
@@ -36,6 +36,8 @@ declare const DeleteBudgetCommand_base: {
|
|
|
36
36
|
* ```javascript
|
|
37
37
|
* import { BudgetsClient, DeleteBudgetCommand } from "@aws-sdk/client-budgets"; // ES Modules import
|
|
38
38
|
* // const { BudgetsClient, DeleteBudgetCommand } = require("@aws-sdk/client-budgets"); // CommonJS import
|
|
39
|
+
* // import type { BudgetsClientConfig } from "@aws-sdk/client-budgets";
|
|
40
|
+
* const config = {}; // type is BudgetsClientConfig
|
|
39
41
|
* const client = new BudgetsClient(config);
|
|
40
42
|
* const input = { // DeleteBudgetRequest
|
|
41
43
|
* AccountId: "STRING_VALUE", // required
|
|
@@ -36,6 +36,8 @@ declare const DeleteNotificationCommand_base: {
|
|
|
36
36
|
* ```javascript
|
|
37
37
|
* import { BudgetsClient, DeleteNotificationCommand } from "@aws-sdk/client-budgets"; // ES Modules import
|
|
38
38
|
* // const { BudgetsClient, DeleteNotificationCommand } = require("@aws-sdk/client-budgets"); // CommonJS import
|
|
39
|
+
* // import type { BudgetsClientConfig } from "@aws-sdk/client-budgets";
|
|
40
|
+
* const config = {}; // type is BudgetsClientConfig
|
|
39
41
|
* const client = new BudgetsClient(config);
|
|
40
42
|
* const input = { // DeleteNotificationRequest
|
|
41
43
|
* AccountId: "STRING_VALUE", // required
|
|
@@ -36,6 +36,8 @@ declare const DeleteSubscriberCommand_base: {
|
|
|
36
36
|
* ```javascript
|
|
37
37
|
* import { BudgetsClient, DeleteSubscriberCommand } from "@aws-sdk/client-budgets"; // ES Modules import
|
|
38
38
|
* // const { BudgetsClient, DeleteSubscriberCommand } = require("@aws-sdk/client-budgets"); // CommonJS import
|
|
39
|
+
* // import type { BudgetsClientConfig } from "@aws-sdk/client-budgets";
|
|
40
|
+
* const config = {}; // type is BudgetsClientConfig
|
|
39
41
|
* const client = new BudgetsClient(config);
|
|
40
42
|
* const input = { // DeleteSubscriberRequest
|
|
41
43
|
* AccountId: "STRING_VALUE", // required
|
|
@@ -35,6 +35,8 @@ declare const DescribeBudgetActionCommand_base: {
|
|
|
35
35
|
* ```javascript
|
|
36
36
|
* import { BudgetsClient, DescribeBudgetActionCommand } from "@aws-sdk/client-budgets"; // ES Modules import
|
|
37
37
|
* // const { BudgetsClient, DescribeBudgetActionCommand } = require("@aws-sdk/client-budgets"); // CommonJS import
|
|
38
|
+
* // import type { BudgetsClientConfig } from "@aws-sdk/client-budgets";
|
|
39
|
+
* const config = {}; // type is BudgetsClientConfig
|
|
38
40
|
* const client = new BudgetsClient(config);
|
|
39
41
|
* const input = { // DescribeBudgetActionRequest
|
|
40
42
|
* AccountId: "STRING_VALUE", // required
|
|
@@ -35,6 +35,8 @@ declare const DescribeBudgetActionHistoriesCommand_base: {
|
|
|
35
35
|
* ```javascript
|
|
36
36
|
* import { BudgetsClient, DescribeBudgetActionHistoriesCommand } from "@aws-sdk/client-budgets"; // ES Modules import
|
|
37
37
|
* // const { BudgetsClient, DescribeBudgetActionHistoriesCommand } = require("@aws-sdk/client-budgets"); // CommonJS import
|
|
38
|
+
* // import type { BudgetsClientConfig } from "@aws-sdk/client-budgets";
|
|
39
|
+
* const config = {}; // type is BudgetsClientConfig
|
|
38
40
|
* const client = new BudgetsClient(config);
|
|
39
41
|
* const input = { // DescribeBudgetActionHistoriesRequest
|
|
40
42
|
* AccountId: "STRING_VALUE", // required
|
|
@@ -35,6 +35,8 @@ declare const DescribeBudgetActionsForAccountCommand_base: {
|
|
|
35
35
|
* ```javascript
|
|
36
36
|
* import { BudgetsClient, DescribeBudgetActionsForAccountCommand } from "@aws-sdk/client-budgets"; // ES Modules import
|
|
37
37
|
* // const { BudgetsClient, DescribeBudgetActionsForAccountCommand } = require("@aws-sdk/client-budgets"); // CommonJS import
|
|
38
|
+
* // import type { BudgetsClientConfig } from "@aws-sdk/client-budgets";
|
|
39
|
+
* const config = {}; // type is BudgetsClientConfig
|
|
38
40
|
* const client = new BudgetsClient(config);
|
|
39
41
|
* const input = { // DescribeBudgetActionsForAccountRequest
|
|
40
42
|
* AccountId: "STRING_VALUE", // required
|
|
@@ -35,6 +35,8 @@ declare const DescribeBudgetActionsForBudgetCommand_base: {
|
|
|
35
35
|
* ```javascript
|
|
36
36
|
* import { BudgetsClient, DescribeBudgetActionsForBudgetCommand } from "@aws-sdk/client-budgets"; // ES Modules import
|
|
37
37
|
* // const { BudgetsClient, DescribeBudgetActionsForBudgetCommand } = require("@aws-sdk/client-budgets"); // CommonJS import
|
|
38
|
+
* // import type { BudgetsClientConfig } from "@aws-sdk/client-budgets";
|
|
39
|
+
* const config = {}; // type is BudgetsClientConfig
|
|
38
40
|
* const client = new BudgetsClient(config);
|
|
39
41
|
* const input = { // DescribeBudgetActionsForBudgetRequest
|
|
40
42
|
* AccountId: "STRING_VALUE", // required
|
|
@@ -37,6 +37,8 @@ declare const DescribeBudgetCommand_base: {
|
|
|
37
37
|
* ```javascript
|
|
38
38
|
* import { BudgetsClient, DescribeBudgetCommand } from "@aws-sdk/client-budgets"; // ES Modules import
|
|
39
39
|
* // const { BudgetsClient, DescribeBudgetCommand } = require("@aws-sdk/client-budgets"); // CommonJS import
|
|
40
|
+
* // import type { BudgetsClientConfig } from "@aws-sdk/client-budgets";
|
|
41
|
+
* const config = {}; // type is BudgetsClientConfig
|
|
40
42
|
* const client = new BudgetsClient(config);
|
|
41
43
|
* const input = { // DescribeBudgetRequest
|
|
42
44
|
* AccountId: "STRING_VALUE", // required
|
|
@@ -33,6 +33,8 @@ declare const DescribeBudgetNotificationsForAccountCommand_base: {
|
|
|
33
33
|
* ```javascript
|
|
34
34
|
* import { BudgetsClient, DescribeBudgetNotificationsForAccountCommand } from "@aws-sdk/client-budgets"; // ES Modules import
|
|
35
35
|
* // const { BudgetsClient, DescribeBudgetNotificationsForAccountCommand } = require("@aws-sdk/client-budgets"); // CommonJS import
|
|
36
|
+
* // import type { BudgetsClientConfig } from "@aws-sdk/client-budgets";
|
|
37
|
+
* const config = {}; // type is BudgetsClientConfig
|
|
36
38
|
* const client = new BudgetsClient(config);
|
|
37
39
|
* const input = { // DescribeBudgetNotificationsForAccountRequest
|
|
38
40
|
* AccountId: "STRING_VALUE", // required
|
|
@@ -33,6 +33,8 @@ declare const DescribeBudgetPerformanceHistoryCommand_base: {
|
|
|
33
33
|
* ```javascript
|
|
34
34
|
* import { BudgetsClient, DescribeBudgetPerformanceHistoryCommand } from "@aws-sdk/client-budgets"; // ES Modules import
|
|
35
35
|
* // const { BudgetsClient, DescribeBudgetPerformanceHistoryCommand } = require("@aws-sdk/client-budgets"); // CommonJS import
|
|
36
|
+
* // import type { BudgetsClientConfig } from "@aws-sdk/client-budgets";
|
|
37
|
+
* const config = {}; // type is BudgetsClientConfig
|
|
36
38
|
* const client = new BudgetsClient(config);
|
|
37
39
|
* const input = { // DescribeBudgetPerformanceHistoryRequest
|
|
38
40
|
* AccountId: "STRING_VALUE", // required
|
|
@@ -37,6 +37,8 @@ declare const DescribeBudgetsCommand_base: {
|
|
|
37
37
|
* ```javascript
|
|
38
38
|
* import { BudgetsClient, DescribeBudgetsCommand } from "@aws-sdk/client-budgets"; // ES Modules import
|
|
39
39
|
* // const { BudgetsClient, DescribeBudgetsCommand } = require("@aws-sdk/client-budgets"); // CommonJS import
|
|
40
|
+
* // import type { BudgetsClientConfig } from "@aws-sdk/client-budgets";
|
|
41
|
+
* const config = {}; // type is BudgetsClientConfig
|
|
40
42
|
* const client = new BudgetsClient(config);
|
|
41
43
|
* const input = { // DescribeBudgetsRequest
|
|
42
44
|
* AccountId: "STRING_VALUE", // required
|
|
@@ -33,6 +33,8 @@ declare const DescribeNotificationsForBudgetCommand_base: {
|
|
|
33
33
|
* ```javascript
|
|
34
34
|
* import { BudgetsClient, DescribeNotificationsForBudgetCommand } from "@aws-sdk/client-budgets"; // ES Modules import
|
|
35
35
|
* // const { BudgetsClient, DescribeNotificationsForBudgetCommand } = require("@aws-sdk/client-budgets"); // CommonJS import
|
|
36
|
+
* // import type { BudgetsClientConfig } from "@aws-sdk/client-budgets";
|
|
37
|
+
* const config = {}; // type is BudgetsClientConfig
|
|
36
38
|
* const client = new BudgetsClient(config);
|
|
37
39
|
* const input = { // DescribeNotificationsForBudgetRequest
|
|
38
40
|
* AccountId: "STRING_VALUE", // required
|
|
@@ -33,6 +33,8 @@ declare const DescribeSubscribersForNotificationCommand_base: {
|
|
|
33
33
|
* ```javascript
|
|
34
34
|
* import { BudgetsClient, DescribeSubscribersForNotificationCommand } from "@aws-sdk/client-budgets"; // ES Modules import
|
|
35
35
|
* // const { BudgetsClient, DescribeSubscribersForNotificationCommand } = require("@aws-sdk/client-budgets"); // CommonJS import
|
|
36
|
+
* // import type { BudgetsClientConfig } from "@aws-sdk/client-budgets";
|
|
37
|
+
* const config = {}; // type is BudgetsClientConfig
|
|
36
38
|
* const client = new BudgetsClient(config);
|
|
37
39
|
* const input = { // DescribeSubscribersForNotificationRequest
|
|
38
40
|
* AccountId: "STRING_VALUE", // required
|
|
@@ -35,6 +35,8 @@ declare const ExecuteBudgetActionCommand_base: {
|
|
|
35
35
|
* ```javascript
|
|
36
36
|
* import { BudgetsClient, ExecuteBudgetActionCommand } from "@aws-sdk/client-budgets"; // ES Modules import
|
|
37
37
|
* // const { BudgetsClient, ExecuteBudgetActionCommand } = require("@aws-sdk/client-budgets"); // CommonJS import
|
|
38
|
+
* // import type { BudgetsClientConfig } from "@aws-sdk/client-budgets";
|
|
39
|
+
* const config = {}; // type is BudgetsClientConfig
|
|
38
40
|
* const client = new BudgetsClient(config);
|
|
39
41
|
* const input = { // ExecuteBudgetActionRequest
|
|
40
42
|
* AccountId: "STRING_VALUE", // required
|
|
@@ -33,6 +33,8 @@ declare const ListTagsForResourceCommand_base: {
|
|
|
33
33
|
* ```javascript
|
|
34
34
|
* import { BudgetsClient, ListTagsForResourceCommand } from "@aws-sdk/client-budgets"; // ES Modules import
|
|
35
35
|
* // const { BudgetsClient, ListTagsForResourceCommand } = require("@aws-sdk/client-budgets"); // CommonJS import
|
|
36
|
+
* // import type { BudgetsClientConfig } from "@aws-sdk/client-budgets";
|
|
37
|
+
* const config = {}; // type is BudgetsClientConfig
|
|
36
38
|
* const client = new BudgetsClient(config);
|
|
37
39
|
* const input = { // ListTagsForResourceRequest
|
|
38
40
|
* ResourceARN: "STRING_VALUE", // required
|
|
@@ -33,6 +33,8 @@ declare const TagResourceCommand_base: {
|
|
|
33
33
|
* ```javascript
|
|
34
34
|
* import { BudgetsClient, TagResourceCommand } from "@aws-sdk/client-budgets"; // ES Modules import
|
|
35
35
|
* // const { BudgetsClient, TagResourceCommand } = require("@aws-sdk/client-budgets"); // CommonJS import
|
|
36
|
+
* // import type { BudgetsClientConfig } from "@aws-sdk/client-budgets";
|
|
37
|
+
* const config = {}; // type is BudgetsClientConfig
|
|
36
38
|
* const client = new BudgetsClient(config);
|
|
37
39
|
* const input = { // TagResourceRequest
|
|
38
40
|
* ResourceARN: "STRING_VALUE", // required
|
|
@@ -33,6 +33,8 @@ declare const UntagResourceCommand_base: {
|
|
|
33
33
|
* ```javascript
|
|
34
34
|
* import { BudgetsClient, UntagResourceCommand } from "@aws-sdk/client-budgets"; // ES Modules import
|
|
35
35
|
* // const { BudgetsClient, UntagResourceCommand } = require("@aws-sdk/client-budgets"); // CommonJS import
|
|
36
|
+
* // import type { BudgetsClientConfig } from "@aws-sdk/client-budgets";
|
|
37
|
+
* const config = {}; // type is BudgetsClientConfig
|
|
36
38
|
* const client = new BudgetsClient(config);
|
|
37
39
|
* const input = { // UntagResourceRequest
|
|
38
40
|
* ResourceARN: "STRING_VALUE", // required
|
|
@@ -35,6 +35,8 @@ declare const UpdateBudgetActionCommand_base: {
|
|
|
35
35
|
* ```javascript
|
|
36
36
|
* import { BudgetsClient, UpdateBudgetActionCommand } from "@aws-sdk/client-budgets"; // ES Modules import
|
|
37
37
|
* // const { BudgetsClient, UpdateBudgetActionCommand } = require("@aws-sdk/client-budgets"); // CommonJS import
|
|
38
|
+
* // import type { BudgetsClientConfig } from "@aws-sdk/client-budgets";
|
|
39
|
+
* const config = {}; // type is BudgetsClientConfig
|
|
38
40
|
* const client = new BudgetsClient(config);
|
|
39
41
|
* const input = { // UpdateBudgetActionRequest
|
|
40
42
|
* AccountId: "STRING_VALUE", // required
|
|
@@ -45,6 +45,8 @@ declare const UpdateBudgetCommand_base: {
|
|
|
45
45
|
* ```javascript
|
|
46
46
|
* import { BudgetsClient, UpdateBudgetCommand } from "@aws-sdk/client-budgets"; // ES Modules import
|
|
47
47
|
* // const { BudgetsClient, UpdateBudgetCommand } = require("@aws-sdk/client-budgets"); // CommonJS import
|
|
48
|
+
* // import type { BudgetsClientConfig } from "@aws-sdk/client-budgets";
|
|
49
|
+
* const config = {}; // type is BudgetsClientConfig
|
|
48
50
|
* const client = new BudgetsClient(config);
|
|
49
51
|
* const input = { // UpdateBudgetRequest
|
|
50
52
|
* AccountId: "STRING_VALUE", // required
|
|
@@ -196,6 +198,11 @@ declare const UpdateBudgetCommand_base: {
|
|
|
196
198
|
* @throws {@link AccessDeniedException} (client fault)
|
|
197
199
|
* <p>You are not authorized to use this operation with the given parameters.</p>
|
|
198
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
|
+
*
|
|
199
206
|
* @throws {@link InternalErrorException} (server fault)
|
|
200
207
|
* <p>An error on the server occurred during the processing of your request. Try again later.</p>
|
|
201
208
|
*
|
|
@@ -33,6 +33,8 @@ declare const UpdateNotificationCommand_base: {
|
|
|
33
33
|
* ```javascript
|
|
34
34
|
* import { BudgetsClient, UpdateNotificationCommand } from "@aws-sdk/client-budgets"; // ES Modules import
|
|
35
35
|
* // const { BudgetsClient, UpdateNotificationCommand } = require("@aws-sdk/client-budgets"); // CommonJS import
|
|
36
|
+
* // import type { BudgetsClientConfig } from "@aws-sdk/client-budgets";
|
|
37
|
+
* const config = {}; // type is BudgetsClientConfig
|
|
36
38
|
* const client = new BudgetsClient(config);
|
|
37
39
|
* const input = { // UpdateNotificationRequest
|
|
38
40
|
* AccountId: "STRING_VALUE", // required
|
|
@@ -33,6 +33,8 @@ declare const UpdateSubscriberCommand_base: {
|
|
|
33
33
|
* ```javascript
|
|
34
34
|
* import { BudgetsClient, UpdateSubscriberCommand } from "@aws-sdk/client-budgets"; // ES Modules import
|
|
35
35
|
* // const { BudgetsClient, UpdateSubscriberCommand } = require("@aws-sdk/client-budgets"); // CommonJS import
|
|
36
|
+
* // import type { BudgetsClientConfig } from "@aws-sdk/client-budgets";
|
|
37
|
+
* const config = {}; // type is BudgetsClientConfig
|
|
36
38
|
* const client = new BudgetsClient(config);
|
|
37
39
|
* const input = { // UpdateSubscriberRequest
|
|
38
40
|
* AccountId: "STRING_VALUE", // required
|
|
@@ -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.
|
|
4
|
+
"version": "3.892.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",
|
|
@@ -21,16 +21,16 @@
|
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
23
|
"@aws-sdk/core": "3.890.0",
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
26
|
-
"@aws-sdk/middleware-logger": "3.
|
|
27
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
28
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
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
29
|
"@aws-sdk/region-config-resolver": "3.890.0",
|
|
30
30
|
"@aws-sdk/types": "3.887.0",
|
|
31
|
-
"@aws-sdk/util-endpoints": "3.
|
|
31
|
+
"@aws-sdk/util-endpoints": "3.891.0",
|
|
32
32
|
"@aws-sdk/util-user-agent-browser": "3.887.0",
|
|
33
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
33
|
+
"@aws-sdk/util-user-agent-node": "3.891.0",
|
|
34
34
|
"@smithy/config-resolver": "^4.2.2",
|
|
35
35
|
"@smithy/core": "^3.11.0",
|
|
36
36
|
"@smithy/fetch-http-handler": "^5.2.1",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@smithy/invalid-dependency": "^4.1.1",
|
|
39
39
|
"@smithy/middleware-content-length": "^4.1.1",
|
|
40
40
|
"@smithy/middleware-endpoint": "^4.2.2",
|
|
41
|
-
"@smithy/middleware-retry": "^4.2.
|
|
41
|
+
"@smithy/middleware-retry": "^4.2.3",
|
|
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",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@smithy/util-defaults-mode-node": "^4.1.2",
|
|
55
55
|
"@smithy/util-endpoints": "^3.1.2",
|
|
56
56
|
"@smithy/util-middleware": "^4.1.1",
|
|
57
|
-
"@smithy/util-retry": "^4.1.
|
|
57
|
+
"@smithy/util-retry": "^4.1.2",
|
|
58
58
|
"@smithy/util-utf8": "^4.1.0",
|
|
59
59
|
"tslib": "^2.6.2"
|
|
60
60
|
},
|