Skip to content

Commit 3f98cfc

Browse files
author
awstools
committed
feat(client-budgets): Add a budgets ThrottlingException. Update the CostFilters value pattern.
1 parent 9536104 commit 3f98cfc

File tree

6 files changed

+216
-9
lines changed

6 files changed

+216
-9
lines changed

clients/client-budgets/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
AWS SDK for JavaScript Budgets Client for Node.js, Browser and React Native.
1111

12-
<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>
12+
<p>Use the Amazon Web Services Budgets API to plan your service usage, service costs, and instance reservations. This API reference provides descriptions, syntax, and usage examples for each of the actions and data types for the Amazon Web Services Budgets feature. </p>
1313
<p>Budgets provide you with a way to see the following information:</p>
1414
<ul>
1515
<li>

clients/client-budgets/src/Budgets.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ import {
119119
} from "./commands/UpdateSubscriberCommand";
120120

121121
/**
122-
* <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>
122+
* <p>Use the Amazon Web Services Budgets API to plan your service usage, service costs, and instance reservations. This API reference provides descriptions, syntax, and usage examples for each of the actions and data types for the Amazon Web Services Budgets feature. </p>
123123
* <p>Budgets provide you with a way to see the following information:</p>
124124
* <ul>
125125
* <li>
@@ -155,13 +155,13 @@ import {
155155
* </li>
156156
* </ul>
157157
* <p>Service Endpoint</p>
158-
* <p>The Amazon Web Services Budgets API provides the following endpoint:</p>
158+
* <p>The Amazon Web Services Budgets API provides the following endpoint:</p>
159159
* <ul>
160160
* <li>
161161
* <p>https://budgets.amazonaws.com</p>
162162
* </li>
163163
* </ul>
164-
* <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>
164+
* <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>
165165
*/
166166
export class Budgets extends BudgetsClient {
167167
/**

clients/client-budgets/src/BudgetsClient.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ type BudgetsClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandl
309309
export interface BudgetsClientResolvedConfig extends BudgetsClientResolvedConfigType {}
310310

311311
/**
312-
* <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>
312+
* <p>Use the Amazon Web Services Budgets API to plan your service usage, service costs, and instance reservations. This API reference provides descriptions, syntax, and usage examples for each of the actions and data types for the Amazon Web Services Budgets feature. </p>
313313
* <p>Budgets provide you with a way to see the following information:</p>
314314
* <ul>
315315
* <li>
@@ -345,13 +345,13 @@ export interface BudgetsClientResolvedConfig extends BudgetsClientResolvedConfig
345345
* </li>
346346
* </ul>
347347
* <p>Service Endpoint</p>
348-
* <p>The Amazon Web Services Budgets API provides the following endpoint:</p>
348+
* <p>The Amazon Web Services Budgets API provides the following endpoint:</p>
349349
* <ul>
350350
* <li>
351351
* <p>https://budgets.amazonaws.com</p>
352352
* </li>
353353
* </ul>
354-
* <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>
354+
* <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>
355355
*/
356356
export class BudgetsClient extends __Client<
357357
__HttpHandlerOptions,

clients/client-budgets/src/models/models_0.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1031,6 +1031,32 @@ export class InvalidParameterException extends __BaseException {
10311031
}
10321032
}
10331033

1034+
/**
1035+
* <p>
1036+
* The number of API requests has exceeded the maximum allowed API request throttling limit for the account.
1037+
* </p>
1038+
*/
1039+
export class ThrottlingException extends __BaseException {
1040+
readonly name: "ThrottlingException" = "ThrottlingException";
1041+
readonly $fault: "client" = "client";
1042+
/**
1043+
* <p>The error message the exception carries.</p>
1044+
*/
1045+
Message?: string;
1046+
/**
1047+
* @internal
1048+
*/
1049+
constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>) {
1050+
super({
1051+
name: "ThrottlingException",
1052+
$fault: "client",
1053+
...opts,
1054+
});
1055+
Object.setPrototypeOf(this, ThrottlingException.prototype);
1056+
this.Message = opts.Message;
1057+
}
1058+
}
1059+
10341060
export interface CreateBudgetActionRequest {
10351061
/**
10361062
* <p>The account ID of the user. It's a 12-digit number.</p>

clients/client-budgets/src/protocols/Aws_json1_1.ts

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ import {
137137
Spend,
138138
SsmActionDefinition,
139139
Subscriber,
140+
ThrottlingException,
140141
TimePeriod,
141142
UpdateBudgetActionRequest,
142143
UpdateBudgetActionResponse,
@@ -491,6 +492,9 @@ const deserializeAws_json1_1CreateBudgetCommandError = async (
491492
case "InvalidParameterException":
492493
case "com.amazonaws.budgets#InvalidParameterException":
493494
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
495+
case "ThrottlingException":
496+
case "com.amazonaws.budgets#ThrottlingException":
497+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
494498
default:
495499
const parsedBody = parsedOutput.body;
496500
response = new __BaseException({
@@ -549,6 +553,9 @@ const deserializeAws_json1_1CreateBudgetActionCommandError = async (
549553
case "NotFoundException":
550554
case "com.amazonaws.budgets#NotFoundException":
551555
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
556+
case "ThrottlingException":
557+
case "com.amazonaws.budgets#ThrottlingException":
558+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
552559
default:
553560
const parsedBody = parsedOutput.body;
554561
response = new __BaseException({
@@ -607,6 +614,9 @@ const deserializeAws_json1_1CreateNotificationCommandError = async (
607614
case "NotFoundException":
608615
case "com.amazonaws.budgets#NotFoundException":
609616
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
617+
case "ThrottlingException":
618+
case "com.amazonaws.budgets#ThrottlingException":
619+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
610620
default:
611621
const parsedBody = parsedOutput.body;
612622
response = new __BaseException({
@@ -665,6 +675,9 @@ const deserializeAws_json1_1CreateSubscriberCommandError = async (
665675
case "NotFoundException":
666676
case "com.amazonaws.budgets#NotFoundException":
667677
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
678+
case "ThrottlingException":
679+
case "com.amazonaws.budgets#ThrottlingException":
680+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
668681
default:
669682
const parsedBody = parsedOutput.body;
670683
response = new __BaseException({
@@ -717,6 +730,9 @@ const deserializeAws_json1_1DeleteBudgetCommandError = async (
717730
case "NotFoundException":
718731
case "com.amazonaws.budgets#NotFoundException":
719732
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
733+
case "ThrottlingException":
734+
case "com.amazonaws.budgets#ThrottlingException":
735+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
720736
default:
721737
const parsedBody = parsedOutput.body;
722738
response = new __BaseException({
@@ -772,6 +788,9 @@ const deserializeAws_json1_1DeleteBudgetActionCommandError = async (
772788
case "ResourceLockedException":
773789
case "com.amazonaws.budgets#ResourceLockedException":
774790
throw await deserializeAws_json1_1ResourceLockedExceptionResponse(parsedOutput, context);
791+
case "ThrottlingException":
792+
case "com.amazonaws.budgets#ThrottlingException":
793+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
775794
default:
776795
const parsedBody = parsedOutput.body;
777796
response = new __BaseException({
@@ -824,6 +843,9 @@ const deserializeAws_json1_1DeleteNotificationCommandError = async (
824843
case "NotFoundException":
825844
case "com.amazonaws.budgets#NotFoundException":
826845
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
846+
case "ThrottlingException":
847+
case "com.amazonaws.budgets#ThrottlingException":
848+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
827849
default:
828850
const parsedBody = parsedOutput.body;
829851
response = new __BaseException({
@@ -876,6 +898,9 @@ const deserializeAws_json1_1DeleteSubscriberCommandError = async (
876898
case "NotFoundException":
877899
case "com.amazonaws.budgets#NotFoundException":
878900
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
901+
case "ThrottlingException":
902+
case "com.amazonaws.budgets#ThrottlingException":
903+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
879904
default:
880905
const parsedBody = parsedOutput.body;
881906
response = new __BaseException({
@@ -928,6 +953,9 @@ const deserializeAws_json1_1DescribeBudgetCommandError = async (
928953
case "NotFoundException":
929954
case "com.amazonaws.budgets#NotFoundException":
930955
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
956+
case "ThrottlingException":
957+
case "com.amazonaws.budgets#ThrottlingException":
958+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
931959
default:
932960
const parsedBody = parsedOutput.body;
933961
response = new __BaseException({
@@ -980,6 +1008,9 @@ const deserializeAws_json1_1DescribeBudgetActionCommandError = async (
9801008
case "NotFoundException":
9811009
case "com.amazonaws.budgets#NotFoundException":
9821010
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
1011+
case "ThrottlingException":
1012+
case "com.amazonaws.budgets#ThrottlingException":
1013+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
9831014
default:
9841015
const parsedBody = parsedOutput.body;
9851016
response = new __BaseException({
@@ -1035,6 +1066,9 @@ const deserializeAws_json1_1DescribeBudgetActionHistoriesCommandError = async (
10351066
case "NotFoundException":
10361067
case "com.amazonaws.budgets#NotFoundException":
10371068
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
1069+
case "ThrottlingException":
1070+
case "com.amazonaws.budgets#ThrottlingException":
1071+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
10381072
default:
10391073
const parsedBody = parsedOutput.body;
10401074
response = new __BaseException({
@@ -1087,6 +1121,9 @@ const deserializeAws_json1_1DescribeBudgetActionsForAccountCommandError = async
10871121
case "InvalidParameterException":
10881122
case "com.amazonaws.budgets#InvalidParameterException":
10891123
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
1124+
case "ThrottlingException":
1125+
case "com.amazonaws.budgets#ThrottlingException":
1126+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
10901127
default:
10911128
const parsedBody = parsedOutput.body;
10921129
response = new __BaseException({
@@ -1142,6 +1179,9 @@ const deserializeAws_json1_1DescribeBudgetActionsForBudgetCommandError = async (
11421179
case "NotFoundException":
11431180
case "com.amazonaws.budgets#NotFoundException":
11441181
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
1182+
case "ThrottlingException":
1183+
case "com.amazonaws.budgets#ThrottlingException":
1184+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
11451185
default:
11461186
const parsedBody = parsedOutput.body;
11471187
response = new __BaseException({
@@ -1200,6 +1240,9 @@ const deserializeAws_json1_1DescribeBudgetNotificationsForAccountCommandError =
12001240
case "NotFoundException":
12011241
case "com.amazonaws.budgets#NotFoundException":
12021242
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
1243+
case "ThrottlingException":
1244+
case "com.amazonaws.budgets#ThrottlingException":
1245+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
12031246
default:
12041247
const parsedBody = parsedOutput.body;
12051248
response = new __BaseException({
@@ -1258,6 +1301,9 @@ const deserializeAws_json1_1DescribeBudgetPerformanceHistoryCommandError = async
12581301
case "NotFoundException":
12591302
case "com.amazonaws.budgets#NotFoundException":
12601303
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
1304+
case "ThrottlingException":
1305+
case "com.amazonaws.budgets#ThrottlingException":
1306+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
12611307
default:
12621308
const parsedBody = parsedOutput.body;
12631309
response = new __BaseException({
@@ -1316,6 +1362,9 @@ const deserializeAws_json1_1DescribeBudgetsCommandError = async (
13161362
case "NotFoundException":
13171363
case "com.amazonaws.budgets#NotFoundException":
13181364
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
1365+
case "ThrottlingException":
1366+
case "com.amazonaws.budgets#ThrottlingException":
1367+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
13191368
default:
13201369
const parsedBody = parsedOutput.body;
13211370
response = new __BaseException({
@@ -1374,6 +1423,9 @@ const deserializeAws_json1_1DescribeNotificationsForBudgetCommandError = async (
13741423
case "NotFoundException":
13751424
case "com.amazonaws.budgets#NotFoundException":
13761425
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
1426+
case "ThrottlingException":
1427+
case "com.amazonaws.budgets#ThrottlingException":
1428+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
13771429
default:
13781430
const parsedBody = parsedOutput.body;
13791431
response = new __BaseException({
@@ -1432,6 +1484,9 @@ const deserializeAws_json1_1DescribeSubscribersForNotificationCommandError = asy
14321484
case "NotFoundException":
14331485
case "com.amazonaws.budgets#NotFoundException":
14341486
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
1487+
case "ThrottlingException":
1488+
case "com.amazonaws.budgets#ThrottlingException":
1489+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
14351490
default:
14361491
const parsedBody = parsedOutput.body;
14371492
response = new __BaseException({
@@ -1487,6 +1542,9 @@ const deserializeAws_json1_1ExecuteBudgetActionCommandError = async (
14871542
case "ResourceLockedException":
14881543
case "com.amazonaws.budgets#ResourceLockedException":
14891544
throw await deserializeAws_json1_1ResourceLockedExceptionResponse(parsedOutput, context);
1545+
case "ThrottlingException":
1546+
case "com.amazonaws.budgets#ThrottlingException":
1547+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
14901548
default:
14911549
const parsedBody = parsedOutput.body;
14921550
response = new __BaseException({
@@ -1539,6 +1597,9 @@ const deserializeAws_json1_1UpdateBudgetCommandError = async (
15391597
case "NotFoundException":
15401598
case "com.amazonaws.budgets#NotFoundException":
15411599
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
1600+
case "ThrottlingException":
1601+
case "com.amazonaws.budgets#ThrottlingException":
1602+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
15421603
default:
15431604
const parsedBody = parsedOutput.body;
15441605
response = new __BaseException({
@@ -1594,6 +1655,9 @@ const deserializeAws_json1_1UpdateBudgetActionCommandError = async (
15941655
case "ResourceLockedException":
15951656
case "com.amazonaws.budgets#ResourceLockedException":
15961657
throw await deserializeAws_json1_1ResourceLockedExceptionResponse(parsedOutput, context);
1658+
case "ThrottlingException":
1659+
case "com.amazonaws.budgets#ThrottlingException":
1660+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
15971661
default:
15981662
const parsedBody = parsedOutput.body;
15991663
response = new __BaseException({
@@ -1649,6 +1713,9 @@ const deserializeAws_json1_1UpdateNotificationCommandError = async (
16491713
case "NotFoundException":
16501714
case "com.amazonaws.budgets#NotFoundException":
16511715
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
1716+
case "ThrottlingException":
1717+
case "com.amazonaws.budgets#ThrottlingException":
1718+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
16521719
default:
16531720
const parsedBody = parsedOutput.body;
16541721
response = new __BaseException({
@@ -1704,6 +1771,9 @@ const deserializeAws_json1_1UpdateSubscriberCommandError = async (
17041771
case "NotFoundException":
17051772
case "com.amazonaws.budgets#NotFoundException":
17061773
throw await deserializeAws_json1_1NotFoundExceptionResponse(parsedOutput, context);
1774+
case "ThrottlingException":
1775+
case "com.amazonaws.budgets#ThrottlingException":
1776+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
17071777
default:
17081778
const parsedBody = parsedOutput.body;
17091779
response = new __BaseException({
@@ -1832,6 +1902,19 @@ const deserializeAws_json1_1ResourceLockedExceptionResponse = async (
18321902
return __decorateServiceException(exception, body);
18331903
};
18341904

1905+
const deserializeAws_json1_1ThrottlingExceptionResponse = async (
1906+
parsedOutput: any,
1907+
context: __SerdeContext
1908+
): Promise<ThrottlingException> => {
1909+
const body = parsedOutput.body;
1910+
const deserialized: any = deserializeAws_json1_1ThrottlingException(body, context);
1911+
const exception = new ThrottlingException({
1912+
$metadata: deserializeMetadata(parsedOutput),
1913+
...deserialized,
1914+
});
1915+
return __decorateServiceException(exception, body);
1916+
};
1917+
18351918
const serializeAws_json1_1ActionThreshold = (input: ActionThreshold, context: __SerdeContext): any => {
18361919
return {
18371920
...(input.ActionThresholdType !== undefined &&
@@ -3157,6 +3240,12 @@ const deserializeAws_json1_1TargetIds = (output: any, context: __SerdeContext):
31573240
return retVal;
31583241
};
31593242

3243+
const deserializeAws_json1_1ThrottlingException = (output: any, context: __SerdeContext): ThrottlingException => {
3244+
return {
3245+
Message: __expectString(output.Message),
3246+
} as any;
3247+
};
3248+
31603249
const deserializeAws_json1_1TimePeriod = (output: any, context: __SerdeContext): TimePeriod => {
31613250
return {
31623251
End:

0 commit comments

Comments
 (0)