@aws-sdk/client-budgets 3.48.0 → 3.52.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/CHANGELOG.md +35 -0
- package/README.md +5 -5
- package/dist-cjs/Budgets.js +15 -0
- package/dist-cjs/commands/DescribeBudgetNotificationsForAccountCommand.js +36 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +37 -2
- package/dist-cjs/pagination/DescribeBudgetNotificationsForAccountPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_1.js +177 -1
- package/dist-es/Budgets.js +15 -0
- package/dist-es/commands/DescribeBudgetNotificationsForAccountCommand.js +39 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +25 -0
- package/dist-es/pagination/DescribeBudgetNotificationsForAccountPaginator.js +74 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_1.js +176 -2
- package/dist-types/Budgets.d.ts +15 -6
- package/dist-types/BudgetsClient.d.ts +8 -7
- package/dist-types/commands/DescribeBudgetNotificationsForAccountCommand.d.ts +37 -0
- package/dist-types/commands/UpdateBudgetCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +283 -177
- package/dist-types/pagination/DescribeBudgetNotificationsForAccountPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +3 -0
- package/dist-types/ts3.4/Budgets.d.ts +5 -0
- package/dist-types/ts3.4/BudgetsClient.d.ts +3 -2
- package/dist-types/ts3.4/commands/DescribeBudgetNotificationsForAccountCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +70 -7
- package/dist-types/ts3.4/pagination/DescribeBudgetNotificationsForAccountPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +3 -0
- package/package.json +40 -34
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,41 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** update clients as of 2022/02/18 ([#3335](https://github.com/aws/aws-sdk-js-v3/issues/3335)) ([717b06f](https://github.com/aws/aws-sdk-js-v3/commit/717b06fc43e9876a6f8040147b75ad5da38b1e0f))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.51.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.50.0...v3.51.0) (2022-02-12)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/client-budgets
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.50.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.49.0...v3.50.0) (2022-02-08)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @aws-sdk/client-budgets
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
# [3.49.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.48.0...v3.49.0) (2022-01-29)
|
|
34
|
+
|
|
35
|
+
**Note:** Version bump only for package @aws-sdk/client-budgets
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
6
41
|
# [3.48.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.2...v3.48.0) (2022-01-22)
|
|
7
42
|
|
|
8
43
|
**Note:** Version bump only for package @aws-sdk/client-budgets
|
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
AWS SDK for JavaScript Budgets Client for Node.js, Browser and React Native.
|
|
9
9
|
|
|
10
|
-
<p>The
|
|
10
|
+
<p>The Amazon Web Services Budgets API enables you to use Amazon Web Services Budgets to plan your service usage, service costs, and instance reservations. The API reference provides descriptions, syntax, and usage examples for each of the actions and data types for Amazon Web Services Budgets. </p>
|
|
11
11
|
<p>Budgets provide you with a way to see the following information:</p>
|
|
12
12
|
<ul>
|
|
13
13
|
<li>
|
|
@@ -17,13 +17,13 @@ AWS SDK for JavaScript Budgets Client for Node.js, Browser and React Native.
|
|
|
17
17
|
<p>Your usage-to-date, including how much you've used of your Reserved Instances (RIs)</p>
|
|
18
18
|
</li>
|
|
19
19
|
<li>
|
|
20
|
-
<p>Your current estimated charges from
|
|
20
|
+
<p>Your current estimated charges from Amazon Web Services, and how much your predicted usage will accrue in charges by the end of the month</p>
|
|
21
21
|
</li>
|
|
22
22
|
<li>
|
|
23
23
|
<p>How much of your budget has been used</p>
|
|
24
24
|
</li>
|
|
25
25
|
</ul>
|
|
26
|
-
<p>
|
|
26
|
+
<p>Amazon Web Services updates your budget status several times a day. Budgets track your unblended costs, subscriptions, refunds, and RIs. You can create the following types of budgets:</p>
|
|
27
27
|
<ul>
|
|
28
28
|
<li>
|
|
29
29
|
<p>
|
|
@@ -43,13 +43,13 @@ AWS SDK for JavaScript Budgets Client for Node.js, Browser and React Native.
|
|
|
43
43
|
</li>
|
|
44
44
|
</ul>
|
|
45
45
|
<p>Service Endpoint</p>
|
|
46
|
-
<p>The
|
|
46
|
+
<p>The Amazon Web Services Budgets API provides the following endpoint:</p>
|
|
47
47
|
<ul>
|
|
48
48
|
<li>
|
|
49
49
|
<p>https://budgets.amazonaws.com</p>
|
|
50
50
|
</li>
|
|
51
51
|
</ul>
|
|
52
|
-
<p>For information about costs that are associated with the
|
|
52
|
+
<p>For information about costs that are associated with the Amazon Web Services Budgets API, see <a href="https://aws.amazon.com/aws-cost-management/pricing/">Amazon Web Services Cost Management Pricing</a>.</p>
|
|
53
53
|
|
|
54
54
|
## Installing
|
|
55
55
|
|
package/dist-cjs/Budgets.js
CHANGED
|
@@ -15,6 +15,7 @@ const DescribeBudgetActionHistoriesCommand_1 = require("./commands/DescribeBudge
|
|
|
15
15
|
const DescribeBudgetActionsForAccountCommand_1 = require("./commands/DescribeBudgetActionsForAccountCommand");
|
|
16
16
|
const DescribeBudgetActionsForBudgetCommand_1 = require("./commands/DescribeBudgetActionsForBudgetCommand");
|
|
17
17
|
const DescribeBudgetCommand_1 = require("./commands/DescribeBudgetCommand");
|
|
18
|
+
const DescribeBudgetNotificationsForAccountCommand_1 = require("./commands/DescribeBudgetNotificationsForAccountCommand");
|
|
18
19
|
const DescribeBudgetPerformanceHistoryCommand_1 = require("./commands/DescribeBudgetPerformanceHistoryCommand");
|
|
19
20
|
const DescribeBudgetsCommand_1 = require("./commands/DescribeBudgetsCommand");
|
|
20
21
|
const DescribeNotificationsForBudgetCommand_1 = require("./commands/DescribeNotificationsForBudgetCommand");
|
|
@@ -207,6 +208,20 @@ class Budgets extends BudgetsClient_1.BudgetsClient {
|
|
|
207
208
|
return this.send(command, optionsOrCb);
|
|
208
209
|
}
|
|
209
210
|
}
|
|
211
|
+
describeBudgetNotificationsForAccount(args, optionsOrCb, cb) {
|
|
212
|
+
const command = new DescribeBudgetNotificationsForAccountCommand_1.DescribeBudgetNotificationsForAccountCommand(args);
|
|
213
|
+
if (typeof optionsOrCb === "function") {
|
|
214
|
+
this.send(command, optionsOrCb);
|
|
215
|
+
}
|
|
216
|
+
else if (typeof cb === "function") {
|
|
217
|
+
if (typeof optionsOrCb !== "object")
|
|
218
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
219
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
220
|
+
}
|
|
221
|
+
else {
|
|
222
|
+
return this.send(command, optionsOrCb);
|
|
223
|
+
}
|
|
224
|
+
}
|
|
210
225
|
describeBudgetPerformanceHistory(args, optionsOrCb, cb) {
|
|
211
226
|
const command = new DescribeBudgetPerformanceHistoryCommand_1.DescribeBudgetPerformanceHistoryCommand(args);
|
|
212
227
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DescribeBudgetNotificationsForAccountCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class DescribeBudgetNotificationsForAccountCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "BudgetsClient";
|
|
18
|
+
const commandName = "DescribeBudgetNotificationsForAccountCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.DescribeBudgetNotificationsForAccountRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.DescribeBudgetNotificationsForAccountResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_json1_1_1.serializeAws_json1_1DescribeBudgetNotificationsForAccountCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_json1_1_1.deserializeAws_json1_1DescribeBudgetNotificationsForAccountCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.DescribeBudgetNotificationsForAccountCommand = DescribeBudgetNotificationsForAccountCommand;
|
|
@@ -14,6 +14,7 @@ tslib_1.__exportStar(require("./DescribeBudgetActionHistoriesCommand"), exports)
|
|
|
14
14
|
tslib_1.__exportStar(require("./DescribeBudgetActionsForAccountCommand"), exports);
|
|
15
15
|
tslib_1.__exportStar(require("./DescribeBudgetActionsForBudgetCommand"), exports);
|
|
16
16
|
tslib_1.__exportStar(require("./DescribeBudgetCommand"), exports);
|
|
17
|
+
tslib_1.__exportStar(require("./DescribeBudgetNotificationsForAccountCommand"), exports);
|
|
17
18
|
tslib_1.__exportStar(require("./DescribeBudgetPerformanceHistoryCommand"), exports);
|
|
18
19
|
tslib_1.__exportStar(require("./DescribeBudgetsCommand"), exports);
|
|
19
20
|
tslib_1.__exportStar(require("./DescribeNotificationsForBudgetCommand"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.UpdateSubscriberResponse = exports.UpdateSubscriberRequest = exports.UpdateNotificationResponse = exports.UpdateNotificationRequest = exports.UpdateBudgetActionResponse = exports.UpdateBudgetActionRequest = exports.UpdateBudgetResponse = exports.UpdateBudgetRequest = exports.ExecuteBudgetActionResponse = exports.ExecuteBudgetActionRequest = exports.ExecutionType = exports.DescribeSubscribersForNotificationResponse = exports.DescribeSubscribersForNotificationRequest = exports.DescribeNotificationsForBudgetResponse = exports.DescribeNotificationsForBudgetRequest = exports.DescribeBudgetsResponse = exports.DescribeBudgetsRequest = exports.DescribeBudgetPerformanceHistoryResponse = exports.BudgetPerformanceHistory = exports.BudgetedAndActualAmounts = exports.DescribeBudgetPerformanceHistoryRequest = exports.DescribeBudgetActionsForBudgetResponse = exports.DescribeBudgetActionsForBudgetRequest = exports.DescribeBudgetActionsForAccountResponse = exports.DescribeBudgetActionsForAccountRequest = void 0;
|
|
3
|
+
exports.DescribeBudgetActionRequest = exports.DescribeBudgetResponse = exports.DescribeBudgetRequest = exports.DeleteSubscriberResponse = exports.DeleteSubscriberRequest = exports.DeleteNotificationResponse = exports.DeleteNotificationRequest = exports.DeleteBudgetActionResponse = exports.DeleteBudgetActionRequest = exports.DeleteBudgetResponse = exports.DeleteBudgetRequest = exports.CreateSubscriberResponse = exports.CreateSubscriberRequest = exports.CreateNotificationResponse = exports.CreateNotificationRequest = exports.CreateBudgetActionResponse = exports.CreateBudgetActionRequest = exports.CreateBudgetResponse = exports.CreateBudgetRequest = exports.NotificationWithSubscribers = exports.Notification = exports.NotificationState = exports.ComparisonOperator = exports.Budget = exports.TimeUnit = exports.TimePeriod = exports.CostTypes = exports.CalculatedSpend = exports.BudgetType = exports.Spend = exports.AutoAdjustData = exports.HistoricalOptions = exports.AutoAdjustType = exports.ActionHistory = exports.EventType = exports.ActionHistoryDetails = exports.Action = exports.Subscriber = exports.SubscriptionType = exports.ActionStatus = exports.NotificationType = exports.Definition = exports.SsmActionDefinition = exports.ActionSubType = exports.ScpActionDefinition = exports.IamActionDefinition = exports.ApprovalModel = exports.ActionType = exports.ActionThreshold = exports.ThresholdType = void 0;
|
|
4
|
+
exports.UpdateSubscriberResponse = exports.UpdateSubscriberRequest = exports.UpdateNotificationResponse = exports.UpdateNotificationRequest = exports.UpdateBudgetActionResponse = exports.UpdateBudgetActionRequest = exports.UpdateBudgetResponse = exports.UpdateBudgetRequest = exports.ExecuteBudgetActionResponse = exports.ExecuteBudgetActionRequest = exports.ExecutionType = exports.DescribeSubscribersForNotificationResponse = exports.DescribeSubscribersForNotificationRequest = exports.DescribeNotificationsForBudgetResponse = exports.DescribeNotificationsForBudgetRequest = exports.DescribeBudgetsResponse = exports.DescribeBudgetsRequest = exports.DescribeBudgetPerformanceHistoryResponse = exports.BudgetPerformanceHistory = exports.BudgetedAndActualAmounts = exports.DescribeBudgetPerformanceHistoryRequest = exports.DescribeBudgetNotificationsForAccountResponse = exports.BudgetNotificationsForAccount = exports.DescribeBudgetNotificationsForAccountRequest = exports.DescribeBudgetActionsForBudgetResponse = exports.DescribeBudgetActionsForBudgetRequest = exports.DescribeBudgetActionsForAccountResponse = exports.DescribeBudgetActionsForAccountRequest = exports.DescribeBudgetActionHistoriesResponse = exports.DescribeBudgetActionHistoriesRequest = exports.DescribeBudgetActionResponse = void 0;
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
var ThresholdType;
|
|
7
7
|
(function (ThresholdType) {
|
|
@@ -115,6 +115,23 @@ var ActionHistory;
|
|
|
115
115
|
}),
|
|
116
116
|
});
|
|
117
117
|
})(ActionHistory = exports.ActionHistory || (exports.ActionHistory = {}));
|
|
118
|
+
var AutoAdjustType;
|
|
119
|
+
(function (AutoAdjustType) {
|
|
120
|
+
AutoAdjustType["FORECAST"] = "FORECAST";
|
|
121
|
+
AutoAdjustType["HISTORICAL"] = "HISTORICAL";
|
|
122
|
+
})(AutoAdjustType = exports.AutoAdjustType || (exports.AutoAdjustType = {}));
|
|
123
|
+
var HistoricalOptions;
|
|
124
|
+
(function (HistoricalOptions) {
|
|
125
|
+
HistoricalOptions.filterSensitiveLog = (obj) => ({
|
|
126
|
+
...obj,
|
|
127
|
+
});
|
|
128
|
+
})(HistoricalOptions = exports.HistoricalOptions || (exports.HistoricalOptions = {}));
|
|
129
|
+
var AutoAdjustData;
|
|
130
|
+
(function (AutoAdjustData) {
|
|
131
|
+
AutoAdjustData.filterSensitiveLog = (obj) => ({
|
|
132
|
+
...obj,
|
|
133
|
+
});
|
|
134
|
+
})(AutoAdjustData = exports.AutoAdjustData || (exports.AutoAdjustData = {}));
|
|
118
135
|
var Spend;
|
|
119
136
|
(function (Spend) {
|
|
120
137
|
Spend.filterSensitiveLog = (obj) => ({
|
|
@@ -347,6 +364,24 @@ var DescribeBudgetActionsForBudgetResponse;
|
|
|
347
364
|
...obj,
|
|
348
365
|
});
|
|
349
366
|
})(DescribeBudgetActionsForBudgetResponse = exports.DescribeBudgetActionsForBudgetResponse || (exports.DescribeBudgetActionsForBudgetResponse = {}));
|
|
367
|
+
var DescribeBudgetNotificationsForAccountRequest;
|
|
368
|
+
(function (DescribeBudgetNotificationsForAccountRequest) {
|
|
369
|
+
DescribeBudgetNotificationsForAccountRequest.filterSensitiveLog = (obj) => ({
|
|
370
|
+
...obj,
|
|
371
|
+
});
|
|
372
|
+
})(DescribeBudgetNotificationsForAccountRequest = exports.DescribeBudgetNotificationsForAccountRequest || (exports.DescribeBudgetNotificationsForAccountRequest = {}));
|
|
373
|
+
var BudgetNotificationsForAccount;
|
|
374
|
+
(function (BudgetNotificationsForAccount) {
|
|
375
|
+
BudgetNotificationsForAccount.filterSensitiveLog = (obj) => ({
|
|
376
|
+
...obj,
|
|
377
|
+
});
|
|
378
|
+
})(BudgetNotificationsForAccount = exports.BudgetNotificationsForAccount || (exports.BudgetNotificationsForAccount = {}));
|
|
379
|
+
var DescribeBudgetNotificationsForAccountResponse;
|
|
380
|
+
(function (DescribeBudgetNotificationsForAccountResponse) {
|
|
381
|
+
DescribeBudgetNotificationsForAccountResponse.filterSensitiveLog = (obj) => ({
|
|
382
|
+
...obj,
|
|
383
|
+
});
|
|
384
|
+
})(DescribeBudgetNotificationsForAccountResponse = exports.DescribeBudgetNotificationsForAccountResponse || (exports.DescribeBudgetNotificationsForAccountResponse = {}));
|
|
350
385
|
var DescribeBudgetPerformanceHistoryRequest;
|
|
351
386
|
(function (DescribeBudgetPerformanceHistoryRequest) {
|
|
352
387
|
DescribeBudgetPerformanceHistoryRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateDescribeBudgetNotificationsForAccount = void 0;
|
|
4
|
+
const Budgets_1 = require("../Budgets");
|
|
5
|
+
const BudgetsClient_1 = require("../BudgetsClient");
|
|
6
|
+
const DescribeBudgetNotificationsForAccountCommand_1 = require("../commands/DescribeBudgetNotificationsForAccountCommand");
|
|
7
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.send(new DescribeBudgetNotificationsForAccountCommand_1.DescribeBudgetNotificationsForAccountCommand(input), ...args);
|
|
9
|
+
};
|
|
10
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
+
return await client.describeBudgetNotificationsForAccount(input, ...args);
|
|
12
|
+
};
|
|
13
|
+
async function* paginateDescribeBudgetNotificationsForAccount(config, input, ...additionalArguments) {
|
|
14
|
+
let token = config.startingToken || undefined;
|
|
15
|
+
let hasNext = true;
|
|
16
|
+
let page;
|
|
17
|
+
while (hasNext) {
|
|
18
|
+
input.NextToken = token;
|
|
19
|
+
input["MaxResults"] = config.pageSize;
|
|
20
|
+
if (config.client instanceof Budgets_1.Budgets) {
|
|
21
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else if (config.client instanceof BudgetsClient_1.BudgetsClient) {
|
|
24
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error("Invalid client, expected Budgets | BudgetsClient");
|
|
28
|
+
}
|
|
29
|
+
yield page;
|
|
30
|
+
token = page.NextToken;
|
|
31
|
+
hasNext = !!token;
|
|
32
|
+
}
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
exports.paginateDescribeBudgetNotificationsForAccount = paginateDescribeBudgetNotificationsForAccount;
|
|
@@ -4,6 +4,7 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
tslib_1.__exportStar(require("./DescribeBudgetActionHistoriesPaginator"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./DescribeBudgetActionsForAccountPaginator"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./DescribeBudgetActionsForBudgetPaginator"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./DescribeBudgetNotificationsForAccountPaginator"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./DescribeBudgetPerformanceHistoryPaginator"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./DescribeBudgetsPaginator"), exports);
|
|
9
10
|
tslib_1.__exportStar(require("./DescribeNotificationsForBudgetPaginator"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deserializeAws_json1_1UpdateSubscriberCommand = exports.deserializeAws_json1_1UpdateNotificationCommand = exports.deserializeAws_json1_1UpdateBudgetActionCommand = exports.deserializeAws_json1_1UpdateBudgetCommand = exports.deserializeAws_json1_1ExecuteBudgetActionCommand = exports.deserializeAws_json1_1DescribeSubscribersForNotificationCommand = exports.deserializeAws_json1_1DescribeNotificationsForBudgetCommand = exports.deserializeAws_json1_1DescribeBudgetsCommand = exports.deserializeAws_json1_1DescribeBudgetPerformanceHistoryCommand = exports.deserializeAws_json1_1DescribeBudgetActionsForBudgetCommand = exports.deserializeAws_json1_1DescribeBudgetActionsForAccountCommand = exports.deserializeAws_json1_1DescribeBudgetActionHistoriesCommand = exports.deserializeAws_json1_1DescribeBudgetActionCommand = exports.deserializeAws_json1_1DescribeBudgetCommand = exports.deserializeAws_json1_1DeleteSubscriberCommand = exports.deserializeAws_json1_1DeleteNotificationCommand = exports.deserializeAws_json1_1DeleteBudgetActionCommand = exports.deserializeAws_json1_1DeleteBudgetCommand = exports.deserializeAws_json1_1CreateSubscriberCommand = exports.deserializeAws_json1_1CreateNotificationCommand = exports.deserializeAws_json1_1CreateBudgetActionCommand = exports.deserializeAws_json1_1CreateBudgetCommand = exports.serializeAws_json1_1UpdateSubscriberCommand = exports.serializeAws_json1_1UpdateNotificationCommand = exports.serializeAws_json1_1UpdateBudgetActionCommand = exports.serializeAws_json1_1UpdateBudgetCommand = exports.serializeAws_json1_1ExecuteBudgetActionCommand = exports.serializeAws_json1_1DescribeSubscribersForNotificationCommand = exports.serializeAws_json1_1DescribeNotificationsForBudgetCommand = exports.serializeAws_json1_1DescribeBudgetsCommand = exports.serializeAws_json1_1DescribeBudgetPerformanceHistoryCommand = exports.serializeAws_json1_1DescribeBudgetActionsForBudgetCommand = exports.serializeAws_json1_1DescribeBudgetActionsForAccountCommand = exports.serializeAws_json1_1DescribeBudgetActionHistoriesCommand = exports.serializeAws_json1_1DescribeBudgetActionCommand = exports.serializeAws_json1_1DescribeBudgetCommand = exports.serializeAws_json1_1DeleteSubscriberCommand = exports.serializeAws_json1_1DeleteNotificationCommand = exports.serializeAws_json1_1DeleteBudgetActionCommand = exports.serializeAws_json1_1DeleteBudgetCommand = exports.serializeAws_json1_1CreateSubscriberCommand = exports.serializeAws_json1_1CreateNotificationCommand = exports.serializeAws_json1_1CreateBudgetActionCommand = exports.serializeAws_json1_1CreateBudgetCommand = void 0;
|
|
3
|
+
exports.deserializeAws_json1_1UpdateSubscriberCommand = exports.deserializeAws_json1_1UpdateNotificationCommand = exports.deserializeAws_json1_1UpdateBudgetActionCommand = exports.deserializeAws_json1_1UpdateBudgetCommand = exports.deserializeAws_json1_1ExecuteBudgetActionCommand = exports.deserializeAws_json1_1DescribeSubscribersForNotificationCommand = exports.deserializeAws_json1_1DescribeNotificationsForBudgetCommand = exports.deserializeAws_json1_1DescribeBudgetsCommand = exports.deserializeAws_json1_1DescribeBudgetPerformanceHistoryCommand = exports.deserializeAws_json1_1DescribeBudgetNotificationsForAccountCommand = exports.deserializeAws_json1_1DescribeBudgetActionsForBudgetCommand = exports.deserializeAws_json1_1DescribeBudgetActionsForAccountCommand = exports.deserializeAws_json1_1DescribeBudgetActionHistoriesCommand = exports.deserializeAws_json1_1DescribeBudgetActionCommand = exports.deserializeAws_json1_1DescribeBudgetCommand = exports.deserializeAws_json1_1DeleteSubscriberCommand = exports.deserializeAws_json1_1DeleteNotificationCommand = exports.deserializeAws_json1_1DeleteBudgetActionCommand = exports.deserializeAws_json1_1DeleteBudgetCommand = exports.deserializeAws_json1_1CreateSubscriberCommand = exports.deserializeAws_json1_1CreateNotificationCommand = exports.deserializeAws_json1_1CreateBudgetActionCommand = exports.deserializeAws_json1_1CreateBudgetCommand = exports.serializeAws_json1_1UpdateSubscriberCommand = exports.serializeAws_json1_1UpdateNotificationCommand = exports.serializeAws_json1_1UpdateBudgetActionCommand = exports.serializeAws_json1_1UpdateBudgetCommand = exports.serializeAws_json1_1ExecuteBudgetActionCommand = exports.serializeAws_json1_1DescribeSubscribersForNotificationCommand = exports.serializeAws_json1_1DescribeNotificationsForBudgetCommand = exports.serializeAws_json1_1DescribeBudgetsCommand = exports.serializeAws_json1_1DescribeBudgetPerformanceHistoryCommand = exports.serializeAws_json1_1DescribeBudgetNotificationsForAccountCommand = exports.serializeAws_json1_1DescribeBudgetActionsForBudgetCommand = exports.serializeAws_json1_1DescribeBudgetActionsForAccountCommand = exports.serializeAws_json1_1DescribeBudgetActionHistoriesCommand = exports.serializeAws_json1_1DescribeBudgetActionCommand = exports.serializeAws_json1_1DescribeBudgetCommand = exports.serializeAws_json1_1DeleteSubscriberCommand = exports.serializeAws_json1_1DeleteNotificationCommand = exports.serializeAws_json1_1DeleteBudgetActionCommand = exports.serializeAws_json1_1DeleteBudgetCommand = exports.serializeAws_json1_1CreateSubscriberCommand = exports.serializeAws_json1_1CreateNotificationCommand = exports.serializeAws_json1_1CreateBudgetActionCommand = exports.serializeAws_json1_1CreateBudgetCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const serializeAws_json1_1CreateBudgetCommand = async (input, context) => {
|
|
@@ -133,6 +133,16 @@ const serializeAws_json1_1DescribeBudgetActionsForBudgetCommand = async (input,
|
|
|
133
133
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
134
134
|
};
|
|
135
135
|
exports.serializeAws_json1_1DescribeBudgetActionsForBudgetCommand = serializeAws_json1_1DescribeBudgetActionsForBudgetCommand;
|
|
136
|
+
const serializeAws_json1_1DescribeBudgetNotificationsForAccountCommand = async (input, context) => {
|
|
137
|
+
const headers = {
|
|
138
|
+
"content-type": "application/x-amz-json-1.1",
|
|
139
|
+
"x-amz-target": "AWSBudgetServiceGateway.DescribeBudgetNotificationsForAccount",
|
|
140
|
+
};
|
|
141
|
+
let body;
|
|
142
|
+
body = JSON.stringify(serializeAws_json1_1DescribeBudgetNotificationsForAccountRequest(input, context));
|
|
143
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
144
|
+
};
|
|
145
|
+
exports.serializeAws_json1_1DescribeBudgetNotificationsForAccountCommand = serializeAws_json1_1DescribeBudgetNotificationsForAccountCommand;
|
|
136
146
|
const serializeAws_json1_1DescribeBudgetPerformanceHistoryCommand = async (input, context) => {
|
|
137
147
|
const headers = {
|
|
138
148
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -1226,6 +1236,93 @@ const deserializeAws_json1_1DescribeBudgetActionsForBudgetCommandError = async (
|
|
|
1226
1236
|
delete response.Message;
|
|
1227
1237
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1228
1238
|
};
|
|
1239
|
+
const deserializeAws_json1_1DescribeBudgetNotificationsForAccountCommand = async (output, context) => {
|
|
1240
|
+
if (output.statusCode >= 300) {
|
|
1241
|
+
return deserializeAws_json1_1DescribeBudgetNotificationsForAccountCommandError(output, context);
|
|
1242
|
+
}
|
|
1243
|
+
const data = await parseBody(output.body, context);
|
|
1244
|
+
let contents = {};
|
|
1245
|
+
contents = deserializeAws_json1_1DescribeBudgetNotificationsForAccountResponse(data, context);
|
|
1246
|
+
const response = {
|
|
1247
|
+
$metadata: deserializeMetadata(output),
|
|
1248
|
+
...contents,
|
|
1249
|
+
};
|
|
1250
|
+
return Promise.resolve(response);
|
|
1251
|
+
};
|
|
1252
|
+
exports.deserializeAws_json1_1DescribeBudgetNotificationsForAccountCommand = deserializeAws_json1_1DescribeBudgetNotificationsForAccountCommand;
|
|
1253
|
+
const deserializeAws_json1_1DescribeBudgetNotificationsForAccountCommandError = async (output, context) => {
|
|
1254
|
+
const parsedOutput = {
|
|
1255
|
+
...output,
|
|
1256
|
+
body: await parseBody(output.body, context),
|
|
1257
|
+
};
|
|
1258
|
+
let response;
|
|
1259
|
+
let errorCode = "UnknownError";
|
|
1260
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1261
|
+
switch (errorCode) {
|
|
1262
|
+
case "AccessDeniedException":
|
|
1263
|
+
case "com.amazonaws.budgets#AccessDeniedException":
|
|
1264
|
+
response = {
|
|
1265
|
+
...(await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
1266
|
+
name: errorCode,
|
|
1267
|
+
$metadata: deserializeMetadata(output),
|
|
1268
|
+
};
|
|
1269
|
+
break;
|
|
1270
|
+
case "ExpiredNextTokenException":
|
|
1271
|
+
case "com.amazonaws.budgets#ExpiredNextTokenException":
|
|
1272
|
+
response = {
|
|
1273
|
+
...(await deserializeAws_json1_1ExpiredNextTokenExceptionResponse(parsedOutput, context)),
|
|
1274
|
+
name: errorCode,
|
|
1275
|
+
$metadata: deserializeMetadata(output),
|
|
1276
|
+
};
|
|
1277
|
+
break;
|
|
1278
|
+
case "InternalErrorException":
|
|
1279
|
+
case "com.amazonaws.budgets#InternalErrorException":
|
|
1280
|
+
response = {
|
|
1281
|
+
...(await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context)),
|
|
1282
|
+
name: errorCode,
|
|
1283
|
+
$metadata: deserializeMetadata(output),
|
|
1284
|
+
};
|
|
1285
|
+
break;
|
|
1286
|
+
case "InvalidNextTokenException":
|
|
1287
|
+
case "com.amazonaws.budgets#InvalidNextTokenException":
|
|
1288
|
+
response = {
|
|
1289
|
+
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
1290
|
+
name: errorCode,
|
|
1291
|
+
$metadata: deserializeMetadata(output),
|
|
1292
|
+
};
|
|
1293
|
+
break;
|
|
1294
|
+
case "InvalidParameterException":
|
|
1295
|
+
case "com.amazonaws.budgets#InvalidParameterException":
|
|
1296
|
+
response = {
|
|
1297
|
+
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1298
|
+
name: errorCode,
|
|
1299
|
+
$metadata: deserializeMetadata(output),
|
|
1300
|
+
};
|
|
1301
|
+
break;
|
|
1302
|
+
case "NotFoundException":
|
|
1303
|
+
case "com.amazonaws.budgets#NotFoundException":
|
|
1304
|
+
response = {
|
|
1305
|
+
...(await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context)),
|
|
1306
|
+
name: errorCode,
|
|
1307
|
+
$metadata: deserializeMetadata(output),
|
|
1308
|
+
};
|
|
1309
|
+
break;
|
|
1310
|
+
default:
|
|
1311
|
+
const parsedBody = parsedOutput.body;
|
|
1312
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1313
|
+
response = {
|
|
1314
|
+
...parsedBody,
|
|
1315
|
+
name: `${errorCode}`,
|
|
1316
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1317
|
+
$fault: "client",
|
|
1318
|
+
$metadata: deserializeMetadata(output),
|
|
1319
|
+
};
|
|
1320
|
+
}
|
|
1321
|
+
const message = response.message || response.Message || errorCode;
|
|
1322
|
+
response.message = message;
|
|
1323
|
+
delete response.Message;
|
|
1324
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
1325
|
+
};
|
|
1229
1326
|
const deserializeAws_json1_1DescribeBudgetPerformanceHistoryCommand = async (output, context) => {
|
|
1230
1327
|
if (output.statusCode >= 300) {
|
|
1231
1328
|
return deserializeAws_json1_1DescribeBudgetPerformanceHistoryCommandError(output, context);
|
|
@@ -2068,8 +2165,26 @@ const serializeAws_json1_1ActionThreshold = (input, context) => {
|
|
|
2068
2165
|
input.ActionThresholdValue !== null && { ActionThresholdValue: smithy_client_1.serializeFloat(input.ActionThresholdValue) }),
|
|
2069
2166
|
};
|
|
2070
2167
|
};
|
|
2168
|
+
const serializeAws_json1_1AutoAdjustData = (input, context) => {
|
|
2169
|
+
return {
|
|
2170
|
+
...(input.AutoAdjustType !== undefined &&
|
|
2171
|
+
input.AutoAdjustType !== null && { AutoAdjustType: input.AutoAdjustType }),
|
|
2172
|
+
...(input.HistoricalOptions !== undefined &&
|
|
2173
|
+
input.HistoricalOptions !== null && {
|
|
2174
|
+
HistoricalOptions: serializeAws_json1_1HistoricalOptions(input.HistoricalOptions, context),
|
|
2175
|
+
}),
|
|
2176
|
+
...(input.LastAutoAdjustTime !== undefined &&
|
|
2177
|
+
input.LastAutoAdjustTime !== null && {
|
|
2178
|
+
LastAutoAdjustTime: Math.round(input.LastAutoAdjustTime.getTime() / 1000),
|
|
2179
|
+
}),
|
|
2180
|
+
};
|
|
2181
|
+
};
|
|
2071
2182
|
const serializeAws_json1_1Budget = (input, context) => {
|
|
2072
2183
|
return {
|
|
2184
|
+
...(input.AutoAdjustData !== undefined &&
|
|
2185
|
+
input.AutoAdjustData !== null && {
|
|
2186
|
+
AutoAdjustData: serializeAws_json1_1AutoAdjustData(input.AutoAdjustData, context),
|
|
2187
|
+
}),
|
|
2073
2188
|
...(input.BudgetLimit !== undefined &&
|
|
2074
2189
|
input.BudgetLimit !== null && { BudgetLimit: serializeAws_json1_1Spend(input.BudgetLimit, context) }),
|
|
2075
2190
|
...(input.BudgetName !== undefined && input.BudgetName !== null && { BudgetName: input.BudgetName }),
|
|
@@ -2264,6 +2379,13 @@ const serializeAws_json1_1DescribeBudgetActionsForBudgetRequest = (input, contex
|
|
|
2264
2379
|
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
2265
2380
|
};
|
|
2266
2381
|
};
|
|
2382
|
+
const serializeAws_json1_1DescribeBudgetNotificationsForAccountRequest = (input, context) => {
|
|
2383
|
+
return {
|
|
2384
|
+
...(input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId }),
|
|
2385
|
+
...(input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }),
|
|
2386
|
+
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
2387
|
+
};
|
|
2388
|
+
};
|
|
2267
2389
|
const serializeAws_json1_1DescribeBudgetPerformanceHistoryRequest = (input, context) => {
|
|
2268
2390
|
return {
|
|
2269
2391
|
...(input.AccountId !== undefined && input.AccountId !== null && { AccountId: input.AccountId }),
|
|
@@ -2333,6 +2455,14 @@ const serializeAws_json1_1Groups = (input, context) => {
|
|
|
2333
2455
|
return entry;
|
|
2334
2456
|
});
|
|
2335
2457
|
};
|
|
2458
|
+
const serializeAws_json1_1HistoricalOptions = (input, context) => {
|
|
2459
|
+
return {
|
|
2460
|
+
...(input.BudgetAdjustmentPeriod !== undefined &&
|
|
2461
|
+
input.BudgetAdjustmentPeriod !== null && { BudgetAdjustmentPeriod: input.BudgetAdjustmentPeriod }),
|
|
2462
|
+
...(input.LookBackAvailablePeriods !== undefined &&
|
|
2463
|
+
input.LookBackAvailablePeriods !== null && { LookBackAvailablePeriods: input.LookBackAvailablePeriods }),
|
|
2464
|
+
};
|
|
2465
|
+
};
|
|
2336
2466
|
const serializeAws_json1_1IamActionDefinition = (input, context) => {
|
|
2337
2467
|
return {
|
|
2338
2468
|
...(input.Groups !== undefined &&
|
|
@@ -2593,8 +2723,22 @@ const deserializeAws_json1_1ActionThreshold = (output, context) => {
|
|
|
2593
2723
|
ActionThresholdValue: smithy_client_1.limitedParseDouble(output.ActionThresholdValue),
|
|
2594
2724
|
};
|
|
2595
2725
|
};
|
|
2726
|
+
const deserializeAws_json1_1AutoAdjustData = (output, context) => {
|
|
2727
|
+
return {
|
|
2728
|
+
AutoAdjustType: smithy_client_1.expectString(output.AutoAdjustType),
|
|
2729
|
+
HistoricalOptions: output.HistoricalOptions !== undefined && output.HistoricalOptions !== null
|
|
2730
|
+
? deserializeAws_json1_1HistoricalOptions(output.HistoricalOptions, context)
|
|
2731
|
+
: undefined,
|
|
2732
|
+
LastAutoAdjustTime: output.LastAutoAdjustTime !== undefined && output.LastAutoAdjustTime !== null
|
|
2733
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastAutoAdjustTime)))
|
|
2734
|
+
: undefined,
|
|
2735
|
+
};
|
|
2736
|
+
};
|
|
2596
2737
|
const deserializeAws_json1_1Budget = (output, context) => {
|
|
2597
2738
|
return {
|
|
2739
|
+
AutoAdjustData: output.AutoAdjustData !== undefined && output.AutoAdjustData !== null
|
|
2740
|
+
? deserializeAws_json1_1AutoAdjustData(output.AutoAdjustData, context)
|
|
2741
|
+
: undefined,
|
|
2598
2742
|
BudgetLimit: output.BudgetLimit !== undefined && output.BudgetLimit !== null
|
|
2599
2743
|
? deserializeAws_json1_1Spend(output.BudgetLimit, context)
|
|
2600
2744
|
: undefined,
|
|
@@ -2644,6 +2788,24 @@ const deserializeAws_json1_1BudgetedAndActualAmountsList = (output, context) =>
|
|
|
2644
2788
|
return deserializeAws_json1_1BudgetedAndActualAmounts(entry, context);
|
|
2645
2789
|
});
|
|
2646
2790
|
};
|
|
2791
|
+
const deserializeAws_json1_1BudgetNotificationsForAccount = (output, context) => {
|
|
2792
|
+
return {
|
|
2793
|
+
BudgetName: smithy_client_1.expectString(output.BudgetName),
|
|
2794
|
+
Notifications: output.Notifications !== undefined && output.Notifications !== null
|
|
2795
|
+
? deserializeAws_json1_1Notifications(output.Notifications, context)
|
|
2796
|
+
: undefined,
|
|
2797
|
+
};
|
|
2798
|
+
};
|
|
2799
|
+
const deserializeAws_json1_1BudgetNotificationsForAccountList = (output, context) => {
|
|
2800
|
+
return (output || [])
|
|
2801
|
+
.filter((e) => e != null)
|
|
2802
|
+
.map((entry) => {
|
|
2803
|
+
if (entry === null) {
|
|
2804
|
+
return null;
|
|
2805
|
+
}
|
|
2806
|
+
return deserializeAws_json1_1BudgetNotificationsForAccount(entry, context);
|
|
2807
|
+
});
|
|
2808
|
+
};
|
|
2647
2809
|
const deserializeAws_json1_1BudgetPerformanceHistory = (output, context) => {
|
|
2648
2810
|
return {
|
|
2649
2811
|
BudgetName: smithy_client_1.expectString(output.BudgetName),
|
|
@@ -2791,6 +2953,14 @@ const deserializeAws_json1_1DescribeBudgetActionsForBudgetResponse = (output, co
|
|
|
2791
2953
|
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
2792
2954
|
};
|
|
2793
2955
|
};
|
|
2956
|
+
const deserializeAws_json1_1DescribeBudgetNotificationsForAccountResponse = (output, context) => {
|
|
2957
|
+
return {
|
|
2958
|
+
BudgetNotificationsForAccount: output.BudgetNotificationsForAccount !== undefined && output.BudgetNotificationsForAccount !== null
|
|
2959
|
+
? deserializeAws_json1_1BudgetNotificationsForAccountList(output.BudgetNotificationsForAccount, context)
|
|
2960
|
+
: undefined,
|
|
2961
|
+
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
2962
|
+
};
|
|
2963
|
+
};
|
|
2794
2964
|
const deserializeAws_json1_1DescribeBudgetPerformanceHistoryResponse = (output, context) => {
|
|
2795
2965
|
return {
|
|
2796
2966
|
BudgetPerformanceHistory: output.BudgetPerformanceHistory !== undefined && output.BudgetPerformanceHistory !== null
|
|
@@ -2868,6 +3038,12 @@ const deserializeAws_json1_1Groups = (output, context) => {
|
|
|
2868
3038
|
return smithy_client_1.expectString(entry);
|
|
2869
3039
|
});
|
|
2870
3040
|
};
|
|
3041
|
+
const deserializeAws_json1_1HistoricalOptions = (output, context) => {
|
|
3042
|
+
return {
|
|
3043
|
+
BudgetAdjustmentPeriod: smithy_client_1.expectInt32(output.BudgetAdjustmentPeriod),
|
|
3044
|
+
LookBackAvailablePeriods: smithy_client_1.expectInt32(output.LookBackAvailablePeriods),
|
|
3045
|
+
};
|
|
3046
|
+
};
|
|
2871
3047
|
const deserializeAws_json1_1IamActionDefinition = (output, context) => {
|
|
2872
3048
|
return {
|
|
2873
3049
|
Groups: output.Groups !== undefined && output.Groups !== null
|
package/dist-es/Budgets.js
CHANGED
|
@@ -13,6 +13,7 @@ import { DescribeBudgetActionHistoriesCommand, } from "./commands/DescribeBudget
|
|
|
13
13
|
import { DescribeBudgetActionsForAccountCommand, } from "./commands/DescribeBudgetActionsForAccountCommand";
|
|
14
14
|
import { DescribeBudgetActionsForBudgetCommand, } from "./commands/DescribeBudgetActionsForBudgetCommand";
|
|
15
15
|
import { DescribeBudgetCommand, } from "./commands/DescribeBudgetCommand";
|
|
16
|
+
import { DescribeBudgetNotificationsForAccountCommand, } from "./commands/DescribeBudgetNotificationsForAccountCommand";
|
|
16
17
|
import { DescribeBudgetPerformanceHistoryCommand, } from "./commands/DescribeBudgetPerformanceHistoryCommand";
|
|
17
18
|
import { DescribeBudgetsCommand, } from "./commands/DescribeBudgetsCommand";
|
|
18
19
|
import { DescribeNotificationsForBudgetCommand, } from "./commands/DescribeNotificationsForBudgetCommand";
|
|
@@ -209,6 +210,20 @@ var Budgets = (function (_super) {
|
|
|
209
210
|
return this.send(command, optionsOrCb);
|
|
210
211
|
}
|
|
211
212
|
};
|
|
213
|
+
Budgets.prototype.describeBudgetNotificationsForAccount = function (args, optionsOrCb, cb) {
|
|
214
|
+
var command = new DescribeBudgetNotificationsForAccountCommand(args);
|
|
215
|
+
if (typeof optionsOrCb === "function") {
|
|
216
|
+
this.send(command, optionsOrCb);
|
|
217
|
+
}
|
|
218
|
+
else if (typeof cb === "function") {
|
|
219
|
+
if (typeof optionsOrCb !== "object")
|
|
220
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
221
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
222
|
+
}
|
|
223
|
+
else {
|
|
224
|
+
return this.send(command, optionsOrCb);
|
|
225
|
+
}
|
|
226
|
+
};
|
|
212
227
|
Budgets.prototype.describeBudgetPerformanceHistory = function (args, optionsOrCb, cb) {
|
|
213
228
|
var command = new DescribeBudgetPerformanceHistoryCommand(args);
|
|
214
229
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { DescribeBudgetNotificationsForAccountRequest, DescribeBudgetNotificationsForAccountResponse, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1DescribeBudgetNotificationsForAccountCommand, serializeAws_json1_1DescribeBudgetNotificationsForAccountCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var DescribeBudgetNotificationsForAccountCommand = (function (_super) {
|
|
7
|
+
__extends(DescribeBudgetNotificationsForAccountCommand, _super);
|
|
8
|
+
function DescribeBudgetNotificationsForAccountCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
DescribeBudgetNotificationsForAccountCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "BudgetsClient";
|
|
18
|
+
var commandName = "DescribeBudgetNotificationsForAccountCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: DescribeBudgetNotificationsForAccountRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: DescribeBudgetNotificationsForAccountResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
DescribeBudgetNotificationsForAccountCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1DescribeBudgetNotificationsForAccountCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
DescribeBudgetNotificationsForAccountCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1DescribeBudgetNotificationsForAccountCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return DescribeBudgetNotificationsForAccountCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DescribeBudgetNotificationsForAccountCommand };
|
|
@@ -11,6 +11,7 @@ export * from "./DescribeBudgetActionHistoriesCommand";
|
|
|
11
11
|
export * from "./DescribeBudgetActionsForAccountCommand";
|
|
12
12
|
export * from "./DescribeBudgetActionsForBudgetCommand";
|
|
13
13
|
export * from "./DescribeBudgetCommand";
|
|
14
|
+
export * from "./DescribeBudgetNotificationsForAccountCommand";
|
|
14
15
|
export * from "./DescribeBudgetPerformanceHistoryCommand";
|
|
15
16
|
export * from "./DescribeBudgetsCommand";
|
|
16
17
|
export * from "./DescribeNotificationsForBudgetCommand";
|
|
@@ -90,6 +90,19 @@ export var ActionHistory;
|
|
|
90
90
|
ActionHistoryDetails: ActionHistoryDetails.filterSensitiveLog(obj.ActionHistoryDetails),
|
|
91
91
|
}))); };
|
|
92
92
|
})(ActionHistory || (ActionHistory = {}));
|
|
93
|
+
export var AutoAdjustType;
|
|
94
|
+
(function (AutoAdjustType) {
|
|
95
|
+
AutoAdjustType["FORECAST"] = "FORECAST";
|
|
96
|
+
AutoAdjustType["HISTORICAL"] = "HISTORICAL";
|
|
97
|
+
})(AutoAdjustType || (AutoAdjustType = {}));
|
|
98
|
+
export var HistoricalOptions;
|
|
99
|
+
(function (HistoricalOptions) {
|
|
100
|
+
HistoricalOptions.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
101
|
+
})(HistoricalOptions || (HistoricalOptions = {}));
|
|
102
|
+
export var AutoAdjustData;
|
|
103
|
+
(function (AutoAdjustData) {
|
|
104
|
+
AutoAdjustData.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
105
|
+
})(AutoAdjustData || (AutoAdjustData = {}));
|
|
93
106
|
export var Spend;
|
|
94
107
|
(function (Spend) {
|
|
95
108
|
Spend.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -249,6 +262,18 @@ export var DescribeBudgetActionsForBudgetResponse;
|
|
|
249
262
|
(function (DescribeBudgetActionsForBudgetResponse) {
|
|
250
263
|
DescribeBudgetActionsForBudgetResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
251
264
|
})(DescribeBudgetActionsForBudgetResponse || (DescribeBudgetActionsForBudgetResponse = {}));
|
|
265
|
+
export var DescribeBudgetNotificationsForAccountRequest;
|
|
266
|
+
(function (DescribeBudgetNotificationsForAccountRequest) {
|
|
267
|
+
DescribeBudgetNotificationsForAccountRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
268
|
+
})(DescribeBudgetNotificationsForAccountRequest || (DescribeBudgetNotificationsForAccountRequest = {}));
|
|
269
|
+
export var BudgetNotificationsForAccount;
|
|
270
|
+
(function (BudgetNotificationsForAccount) {
|
|
271
|
+
BudgetNotificationsForAccount.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
272
|
+
})(BudgetNotificationsForAccount || (BudgetNotificationsForAccount = {}));
|
|
273
|
+
export var DescribeBudgetNotificationsForAccountResponse;
|
|
274
|
+
(function (DescribeBudgetNotificationsForAccountResponse) {
|
|
275
|
+
DescribeBudgetNotificationsForAccountResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
276
|
+
})(DescribeBudgetNotificationsForAccountResponse || (DescribeBudgetNotificationsForAccountResponse = {}));
|
|
252
277
|
export var DescribeBudgetPerformanceHistoryRequest;
|
|
253
278
|
(function (DescribeBudgetPerformanceHistoryRequest) {
|
|
254
279
|
DescribeBudgetPerformanceHistoryRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|