@aws-sdk/client-budgets 3.569.0 → 3.572.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.
Files changed (32) hide show
  1. package/README.md +31 -7
  2. package/dist-cjs/index.js +152 -1
  3. package/dist-es/Budgets.js +6 -0
  4. package/dist-es/commands/ListTagsForResourceCommand.js +24 -0
  5. package/dist-es/commands/TagResourceCommand.js +24 -0
  6. package/dist-es/commands/UntagResourceCommand.js +24 -0
  7. package/dist-es/commands/index.js +3 -0
  8. package/dist-es/models/models_0.js +13 -0
  9. package/dist-es/protocols/Aws_json1_1.js +72 -1
  10. package/dist-types/Budgets.d.ts +21 -0
  11. package/dist-types/BudgetsClient.d.ts +5 -2
  12. package/dist-types/commands/CreateBudgetActionCommand.d.ts +9 -0
  13. package/dist-types/commands/CreateBudgetCommand.d.ts +9 -0
  14. package/dist-types/commands/DeleteBudgetActionCommand.d.ts +2 -2
  15. package/dist-types/commands/DescribeBudgetNotificationsForAccountCommand.d.ts +1 -3
  16. package/dist-types/commands/ExecuteBudgetActionCommand.d.ts +2 -2
  17. package/dist-types/commands/ListTagsForResourceCommand.d.ts +80 -0
  18. package/dist-types/commands/TagResourceCommand.d.ts +82 -0
  19. package/dist-types/commands/UntagResourceCommand.d.ts +76 -0
  20. package/dist-types/commands/UpdateBudgetActionCommand.d.ts +2 -2
  21. package/dist-types/commands/index.d.ts +3 -0
  22. package/dist-types/models/models_0.d.ts +285 -118
  23. package/dist-types/protocols/Aws_json1_1.d.ts +27 -0
  24. package/dist-types/ts3.4/Budgets.d.ts +51 -0
  25. package/dist-types/ts3.4/BudgetsClient.d.ts +18 -0
  26. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -0
  27. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +35 -0
  28. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +38 -0
  29. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  30. package/dist-types/ts3.4/models/models_0.d.ts +30 -0
  31. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +36 -0
  32. package/package.json +8 -8
package/README.md CHANGED
@@ -65,16 +65,16 @@ using your favorite package manager:
65
65
 
66
66
  The AWS SDK is modulized by clients and commands.
67
67
  To send a request, you only need to import the `BudgetsClient` and
68
- the commands you need, for example `DescribeBudgetsCommand`:
68
+ the commands you need, for example `ListTagsForResourceCommand`:
69
69
 
70
70
  ```js
71
71
  // ES5 example
72
- const { BudgetsClient, DescribeBudgetsCommand } = require("@aws-sdk/client-budgets");
72
+ const { BudgetsClient, ListTagsForResourceCommand } = require("@aws-sdk/client-budgets");
73
73
  ```
74
74
 
75
75
  ```ts
76
76
  // ES6+ example
77
- import { BudgetsClient, DescribeBudgetsCommand } from "@aws-sdk/client-budgets";
77
+ import { BudgetsClient, ListTagsForResourceCommand } from "@aws-sdk/client-budgets";
78
78
  ```
79
79
 
80
80
  ### Usage
@@ -93,7 +93,7 @@ const client = new BudgetsClient({ region: "REGION" });
93
93
  const params = {
94
94
  /** input parameters */
95
95
  };
96
- const command = new DescribeBudgetsCommand(params);
96
+ const command = new ListTagsForResourceCommand(params);
97
97
  ```
98
98
 
99
99
  #### Async/await
@@ -172,7 +172,7 @@ const client = new AWS.Budgets({ region: "REGION" });
172
172
 
173
173
  // async/await.
174
174
  try {
175
- const data = await client.describeBudgets(params);
175
+ const data = await client.listTagsForResource(params);
176
176
  // process data.
177
177
  } catch (error) {
178
178
  // error handling.
@@ -180,7 +180,7 @@ try {
180
180
 
181
181
  // Promises.
182
182
  client
183
- .describeBudgets(params)
183
+ .listTagsForResource(params)
184
184
  .then((data) => {
185
185
  // process data.
186
186
  })
@@ -189,7 +189,7 @@ client
189
189
  });
190
190
 
191
191
  // callbacks.
192
- client.describeBudgets(params, (err, data) => {
192
+ client.listTagsForResource(params, (err, data) => {
193
193
  // process err and data.
194
194
  });
195
195
  ```
@@ -396,6 +396,30 @@ ExecuteBudgetAction
396
396
 
397
397
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/budgets/command/ExecuteBudgetActionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-budgets/Interface/ExecuteBudgetActionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-budgets/Interface/ExecuteBudgetActionCommandOutput/)
398
398
 
399
+ </details>
400
+ <details>
401
+ <summary>
402
+ ListTagsForResource
403
+ </summary>
404
+
405
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/budgets/command/ListTagsForResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-budgets/Interface/ListTagsForResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-budgets/Interface/ListTagsForResourceCommandOutput/)
406
+
407
+ </details>
408
+ <details>
409
+ <summary>
410
+ TagResource
411
+ </summary>
412
+
413
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/budgets/command/TagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-budgets/Interface/TagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-budgets/Interface/TagResourceCommandOutput/)
414
+
415
+ </details>
416
+ <details>
417
+ <summary>
418
+ UntagResource
419
+ </summary>
420
+
421
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/budgets/command/UntagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-budgets/Interface/UntagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-budgets/Interface/UntagResourceCommandOutput/)
422
+
399
423
  </details>
400
424
  <details>
401
425
  <summary>
package/dist-cjs/index.js CHANGED
@@ -73,16 +73,20 @@ __export(src_exports, {
73
73
  InternalErrorException: () => InternalErrorException,
74
74
  InvalidNextTokenException: () => InvalidNextTokenException,
75
75
  InvalidParameterException: () => InvalidParameterException,
76
+ ListTagsForResourceCommand: () => ListTagsForResourceCommand,
76
77
  NotFoundException: () => NotFoundException,
77
78
  NotificationState: () => NotificationState,
78
79
  NotificationType: () => NotificationType,
79
80
  NotificationWithSubscribersFilterSensitiveLog: () => NotificationWithSubscribersFilterSensitiveLog,
80
81
  ResourceLockedException: () => ResourceLockedException,
82
+ ServiceQuotaExceededException: () => ServiceQuotaExceededException,
81
83
  SubscriberFilterSensitiveLog: () => SubscriberFilterSensitiveLog,
82
84
  SubscriptionType: () => SubscriptionType,
85
+ TagResourceCommand: () => TagResourceCommand,
83
86
  ThresholdType: () => ThresholdType,
84
87
  ThrottlingException: () => ThrottlingException,
85
88
  TimeUnit: () => TimeUnit,
89
+ UntagResourceCommand: () => UntagResourceCommand,
86
90
  UpdateBudgetActionCommand: () => UpdateBudgetActionCommand,
87
91
  UpdateBudgetActionRequestFilterSensitiveLog: () => UpdateBudgetActionRequestFilterSensitiveLog,
88
92
  UpdateBudgetActionResponseFilterSensitiveLog: () => UpdateBudgetActionResponseFilterSensitiveLog,
@@ -433,6 +437,24 @@ var _InvalidParameterException = class _InvalidParameterException extends Budget
433
437
  };
434
438
  __name(_InvalidParameterException, "InvalidParameterException");
435
439
  var InvalidParameterException = _InvalidParameterException;
440
+ var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends BudgetsServiceException {
441
+ /**
442
+ * @internal
443
+ */
444
+ constructor(opts) {
445
+ super({
446
+ name: "ServiceQuotaExceededException",
447
+ $fault: "client",
448
+ ...opts
449
+ });
450
+ this.name = "ServiceQuotaExceededException";
451
+ this.$fault = "client";
452
+ Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
453
+ this.Message = opts.Message;
454
+ }
455
+ };
456
+ __name(_ServiceQuotaExceededException, "ServiceQuotaExceededException");
457
+ var ServiceQuotaExceededException = _ServiceQuotaExceededException;
436
458
  var _ThrottlingException = class _ThrottlingException extends BudgetsServiceException {
437
459
  /**
438
460
  * @internal
@@ -724,6 +746,24 @@ var se_ExecuteBudgetActionCommand = /* @__PURE__ */ __name(async (input, context
724
746
  body = JSON.stringify((0, import_smithy_client._json)(input));
725
747
  return buildHttpRpcRequest(context, headers, "/", void 0, body);
726
748
  }, "se_ExecuteBudgetActionCommand");
749
+ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
750
+ const headers = sharedHeaders("ListTagsForResource");
751
+ let body;
752
+ body = JSON.stringify((0, import_smithy_client._json)(input));
753
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
754
+ }, "se_ListTagsForResourceCommand");
755
+ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
756
+ const headers = sharedHeaders("TagResource");
757
+ let body;
758
+ body = JSON.stringify((0, import_smithy_client._json)(input));
759
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
760
+ }, "se_TagResourceCommand");
761
+ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
762
+ const headers = sharedHeaders("UntagResource");
763
+ let body;
764
+ body = JSON.stringify((0, import_smithy_client._json)(input));
765
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
766
+ }, "se_UntagResourceCommand");
727
767
  var se_UpdateBudgetCommand = /* @__PURE__ */ __name(async (input, context) => {
728
768
  const headers = sharedHeaders("UpdateBudget");
729
769
  let body;
@@ -995,6 +1035,45 @@ var de_ExecuteBudgetActionCommand = /* @__PURE__ */ __name(async (output, contex
995
1035
  };
996
1036
  return response;
997
1037
  }, "de_ExecuteBudgetActionCommand");
1038
+ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1039
+ if (output.statusCode >= 300) {
1040
+ return de_CommandError(output, context);
1041
+ }
1042
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1043
+ let contents = {};
1044
+ contents = (0, import_smithy_client._json)(data);
1045
+ const response = {
1046
+ $metadata: deserializeMetadata(output),
1047
+ ...contents
1048
+ };
1049
+ return response;
1050
+ }, "de_ListTagsForResourceCommand");
1051
+ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1052
+ if (output.statusCode >= 300) {
1053
+ return de_CommandError(output, context);
1054
+ }
1055
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1056
+ let contents = {};
1057
+ contents = (0, import_smithy_client._json)(data);
1058
+ const response = {
1059
+ $metadata: deserializeMetadata(output),
1060
+ ...contents
1061
+ };
1062
+ return response;
1063
+ }, "de_TagResourceCommand");
1064
+ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1065
+ if (output.statusCode >= 300) {
1066
+ return de_CommandError(output, context);
1067
+ }
1068
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1069
+ let contents = {};
1070
+ contents = (0, import_smithy_client._json)(data);
1071
+ const response = {
1072
+ $metadata: deserializeMetadata(output),
1073
+ ...contents
1074
+ };
1075
+ return response;
1076
+ }, "de_UntagResourceCommand");
998
1077
  var de_UpdateBudgetCommand = /* @__PURE__ */ __name(async (output, context) => {
999
1078
  if (output.statusCode >= 300) {
1000
1079
  return de_CommandError(output, context);
@@ -1069,6 +1148,9 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1069
1148
  case "InvalidParameterException":
1070
1149
  case "com.amazonaws.budgets#InvalidParameterException":
1071
1150
  throw await de_InvalidParameterExceptionRes(parsedOutput, context);
1151
+ case "ServiceQuotaExceededException":
1152
+ case "com.amazonaws.budgets#ServiceQuotaExceededException":
1153
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1072
1154
  case "ThrottlingException":
1073
1155
  case "com.amazonaws.budgets#ThrottlingException":
1074
1156
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
@@ -1174,6 +1256,15 @@ var de_ResourceLockedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput,
1174
1256
  });
1175
1257
  return (0, import_smithy_client.decorateServiceException)(exception, body);
1176
1258
  }, "de_ResourceLockedExceptionRes");
1259
+ var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1260
+ const body = parsedOutput.body;
1261
+ const deserialized = (0, import_smithy_client._json)(body);
1262
+ const exception = new ServiceQuotaExceededException({
1263
+ $metadata: deserializeMetadata(parsedOutput),
1264
+ ...deserialized
1265
+ });
1266
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1267
+ }, "de_ServiceQuotaExceededExceptionRes");
1177
1268
  var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1178
1269
  const body = parsedOutput.body;
1179
1270
  const deserialized = (0, import_smithy_client._json)(body);
@@ -1221,6 +1312,7 @@ var se_CreateBudgetActionRequest = /* @__PURE__ */ __name((input, context) => {
1221
1312
  Definition: import_smithy_client._json,
1222
1313
  ExecutionRoleArn: [],
1223
1314
  NotificationType: [],
1315
+ ResourceTags: import_smithy_client._json,
1224
1316
  Subscribers: import_smithy_client._json
1225
1317
  });
1226
1318
  }, "se_CreateBudgetActionRequest");
@@ -1228,7 +1320,8 @@ var se_CreateBudgetRequest = /* @__PURE__ */ __name((input, context) => {
1228
1320
  return (0, import_smithy_client.take)(input, {
1229
1321
  AccountId: [],
1230
1322
  Budget: (_) => se_Budget(_, context),
1231
- NotificationsWithSubscribers: (_) => se_NotificationWithSubscribersList(_, context)
1323
+ NotificationsWithSubscribers: (_) => se_NotificationWithSubscribersList(_, context),
1324
+ ResourceTags: import_smithy_client._json
1232
1325
  });
1233
1326
  }, "se_CreateBudgetRequest");
1234
1327
  var se_CreateNotificationRequest = /* @__PURE__ */ __name((input, context) => {
@@ -1903,6 +1996,57 @@ var _ExecuteBudgetActionCommand = class _ExecuteBudgetActionCommand extends impo
1903
1996
  __name(_ExecuteBudgetActionCommand, "ExecuteBudgetActionCommand");
1904
1997
  var ExecuteBudgetActionCommand = _ExecuteBudgetActionCommand;
1905
1998
 
1999
+ // src/commands/ListTagsForResourceCommand.ts
2000
+
2001
+
2002
+
2003
+
2004
+ var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
2005
+ ...commonParams
2006
+ }).m(function(Command, cs, config, o) {
2007
+ return [
2008
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2009
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2010
+ ];
2011
+ }).s("AWSBudgetServiceGateway", "ListTagsForResource", {}).n("BudgetsClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
2012
+ };
2013
+ __name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
2014
+ var ListTagsForResourceCommand = _ListTagsForResourceCommand;
2015
+
2016
+ // src/commands/TagResourceCommand.ts
2017
+
2018
+
2019
+
2020
+
2021
+ var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
2022
+ ...commonParams
2023
+ }).m(function(Command, cs, config, o) {
2024
+ return [
2025
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2026
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2027
+ ];
2028
+ }).s("AWSBudgetServiceGateway", "TagResource", {}).n("BudgetsClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
2029
+ };
2030
+ __name(_TagResourceCommand, "TagResourceCommand");
2031
+ var TagResourceCommand = _TagResourceCommand;
2032
+
2033
+ // src/commands/UntagResourceCommand.ts
2034
+
2035
+
2036
+
2037
+
2038
+ var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
2039
+ ...commonParams
2040
+ }).m(function(Command, cs, config, o) {
2041
+ return [
2042
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2043
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2044
+ ];
2045
+ }).s("AWSBudgetServiceGateway", "UntagResource", {}).n("BudgetsClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
2046
+ };
2047
+ __name(_UntagResourceCommand, "UntagResourceCommand");
2048
+ var UntagResourceCommand = _UntagResourceCommand;
2049
+
1906
2050
  // src/commands/UpdateBudgetActionCommand.ts
1907
2051
 
1908
2052
 
@@ -1992,6 +2136,9 @@ var commands = {
1992
2136
  DescribeNotificationsForBudgetCommand,
1993
2137
  DescribeSubscribersForNotificationCommand,
1994
2138
  ExecuteBudgetActionCommand,
2139
+ ListTagsForResourceCommand,
2140
+ TagResourceCommand,
2141
+ UntagResourceCommand,
1995
2142
  UpdateBudgetCommand,
1996
2143
  UpdateBudgetActionCommand,
1997
2144
  UpdateNotificationCommand,
@@ -2061,6 +2208,9 @@ var paginateDescribeSubscribersForNotification = (0, import_core.createPaginator
2061
2208
  DescribeNotificationsForBudgetCommand,
2062
2209
  DescribeSubscribersForNotificationCommand,
2063
2210
  ExecuteBudgetActionCommand,
2211
+ ListTagsForResourceCommand,
2212
+ TagResourceCommand,
2213
+ UntagResourceCommand,
2064
2214
  UpdateBudgetActionCommand,
2065
2215
  UpdateBudgetCommand,
2066
2216
  UpdateNotificationCommand,
@@ -2091,6 +2241,7 @@ var paginateDescribeSubscribersForNotification = (0, import_core.createPaginator
2091
2241
  DuplicateRecordException,
2092
2242
  InternalErrorException,
2093
2243
  InvalidParameterException,
2244
+ ServiceQuotaExceededException,
2094
2245
  ThrottlingException,
2095
2246
  NotFoundException,
2096
2247
  ResourceLockedException,
@@ -19,6 +19,9 @@ import { DescribeBudgetsCommand, } from "./commands/DescribeBudgetsCommand";
19
19
  import { DescribeNotificationsForBudgetCommand, } from "./commands/DescribeNotificationsForBudgetCommand";
20
20
  import { DescribeSubscribersForNotificationCommand, } from "./commands/DescribeSubscribersForNotificationCommand";
21
21
  import { ExecuteBudgetActionCommand, } from "./commands/ExecuteBudgetActionCommand";
22
+ import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
23
+ import { TagResourceCommand } from "./commands/TagResourceCommand";
24
+ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
22
25
  import { UpdateBudgetActionCommand, } from "./commands/UpdateBudgetActionCommand";
23
26
  import { UpdateBudgetCommand, } from "./commands/UpdateBudgetCommand";
24
27
  import { UpdateNotificationCommand, } from "./commands/UpdateNotificationCommand";
@@ -43,6 +46,9 @@ const commands = {
43
46
  DescribeNotificationsForBudgetCommand,
44
47
  DescribeSubscribersForNotificationCommand,
45
48
  ExecuteBudgetActionCommand,
49
+ ListTagsForResourceCommand,
50
+ TagResourceCommand,
51
+ UntagResourceCommand,
46
52
  UpdateBudgetCommand,
47
53
  UpdateBudgetActionCommand,
48
54
  UpdateNotificationCommand,
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_ListTagsForResourceCommand, se_ListTagsForResourceCommand } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class ListTagsForResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSBudgetServiceGateway", "ListTagsForResource", {})
19
+ .n("BudgetsClient", "ListTagsForResourceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListTagsForResourceCommand)
22
+ .de(de_ListTagsForResourceCommand)
23
+ .build() {
24
+ }
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class TagResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSBudgetServiceGateway", "TagResource", {})
19
+ .n("BudgetsClient", "TagResourceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_TagResourceCommand)
22
+ .de(de_TagResourceCommand)
23
+ .build() {
24
+ }
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class UntagResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSBudgetServiceGateway", "UntagResource", {})
19
+ .n("BudgetsClient", "UntagResourceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UntagResourceCommand)
22
+ .de(de_UntagResourceCommand)
23
+ .build() {
24
+ }
@@ -17,6 +17,9 @@ export * from "./DescribeBudgetsCommand";
17
17
  export * from "./DescribeNotificationsForBudgetCommand";
18
18
  export * from "./DescribeSubscribersForNotificationCommand";
19
19
  export * from "./ExecuteBudgetActionCommand";
20
+ export * from "./ListTagsForResourceCommand";
21
+ export * from "./TagResourceCommand";
22
+ export * from "./UntagResourceCommand";
20
23
  export * from "./UpdateBudgetActionCommand";
21
24
  export * from "./UpdateBudgetCommand";
22
25
  export * from "./UpdateNotificationCommand";
@@ -136,6 +136,19 @@ export class InvalidParameterException extends __BaseException {
136
136
  this.Message = opts.Message;
137
137
  }
138
138
  }
139
+ export class ServiceQuotaExceededException extends __BaseException {
140
+ constructor(opts) {
141
+ super({
142
+ name: "ServiceQuotaExceededException",
143
+ $fault: "client",
144
+ ...opts,
145
+ });
146
+ this.name = "ServiceQuotaExceededException";
147
+ this.$fault = "client";
148
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
149
+ this.Message = opts.Message;
150
+ }
151
+ }
139
152
  export class ThrottlingException extends __BaseException {
140
153
  constructor(opts) {
141
154
  super({
@@ -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, ThrottlingException, } from "../models/models_0";
5
+ import { AccessDeniedException, 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;
@@ -117,6 +117,24 @@ export const se_ExecuteBudgetActionCommand = async (input, context) => {
117
117
  body = JSON.stringify(_json(input));
118
118
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
119
119
  };
120
+ export const se_ListTagsForResourceCommand = async (input, context) => {
121
+ const headers = sharedHeaders("ListTagsForResource");
122
+ let body;
123
+ body = JSON.stringify(_json(input));
124
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
125
+ };
126
+ export const se_TagResourceCommand = async (input, context) => {
127
+ const headers = sharedHeaders("TagResource");
128
+ let body;
129
+ body = JSON.stringify(_json(input));
130
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
131
+ };
132
+ export const se_UntagResourceCommand = async (input, context) => {
133
+ const headers = sharedHeaders("UntagResource");
134
+ let body;
135
+ body = JSON.stringify(_json(input));
136
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
137
+ };
120
138
  export const se_UpdateBudgetCommand = async (input, context) => {
121
139
  const headers = sharedHeaders("UpdateBudget");
122
140
  let body;
@@ -388,6 +406,45 @@ export const de_ExecuteBudgetActionCommand = async (output, context) => {
388
406
  };
389
407
  return response;
390
408
  };
409
+ export const de_ListTagsForResourceCommand = async (output, context) => {
410
+ if (output.statusCode >= 300) {
411
+ return de_CommandError(output, context);
412
+ }
413
+ const data = await parseBody(output.body, context);
414
+ let contents = {};
415
+ contents = _json(data);
416
+ const response = {
417
+ $metadata: deserializeMetadata(output),
418
+ ...contents,
419
+ };
420
+ return response;
421
+ };
422
+ export const de_TagResourceCommand = async (output, context) => {
423
+ if (output.statusCode >= 300) {
424
+ return de_CommandError(output, context);
425
+ }
426
+ const data = await parseBody(output.body, context);
427
+ let contents = {};
428
+ contents = _json(data);
429
+ const response = {
430
+ $metadata: deserializeMetadata(output),
431
+ ...contents,
432
+ };
433
+ return response;
434
+ };
435
+ export const de_UntagResourceCommand = async (output, context) => {
436
+ if (output.statusCode >= 300) {
437
+ return de_CommandError(output, context);
438
+ }
439
+ const data = await parseBody(output.body, context);
440
+ let contents = {};
441
+ contents = _json(data);
442
+ const response = {
443
+ $metadata: deserializeMetadata(output),
444
+ ...contents,
445
+ };
446
+ return response;
447
+ };
391
448
  export const de_UpdateBudgetCommand = async (output, context) => {
392
449
  if (output.statusCode >= 300) {
393
450
  return de_CommandError(output, context);
@@ -462,6 +519,9 @@ const de_CommandError = async (output, context) => {
462
519
  case "InvalidParameterException":
463
520
  case "com.amazonaws.budgets#InvalidParameterException":
464
521
  throw await de_InvalidParameterExceptionRes(parsedOutput, context);
522
+ case "ServiceQuotaExceededException":
523
+ case "com.amazonaws.budgets#ServiceQuotaExceededException":
524
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
465
525
  case "ThrottlingException":
466
526
  case "com.amazonaws.budgets#ThrottlingException":
467
527
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
@@ -567,6 +627,15 @@ const de_ResourceLockedExceptionRes = async (parsedOutput, context) => {
567
627
  });
568
628
  return __decorateServiceException(exception, body);
569
629
  };
630
+ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
631
+ const body = parsedOutput.body;
632
+ const deserialized = _json(body);
633
+ const exception = new ServiceQuotaExceededException({
634
+ $metadata: deserializeMetadata(parsedOutput),
635
+ ...deserialized,
636
+ });
637
+ return __decorateServiceException(exception, body);
638
+ };
570
639
  const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
571
640
  const body = parsedOutput.body;
572
641
  const deserialized = _json(body);
@@ -614,6 +683,7 @@ const se_CreateBudgetActionRequest = (input, context) => {
614
683
  Definition: _json,
615
684
  ExecutionRoleArn: [],
616
685
  NotificationType: [],
686
+ ResourceTags: _json,
617
687
  Subscribers: _json,
618
688
  });
619
689
  };
@@ -622,6 +692,7 @@ const se_CreateBudgetRequest = (input, context) => {
622
692
  AccountId: [],
623
693
  Budget: (_) => se_Budget(_, context),
624
694
  NotificationsWithSubscribers: (_) => se_NotificationWithSubscribersList(_, context),
695
+ ResourceTags: _json,
625
696
  });
626
697
  };
627
698
  const se_CreateNotificationRequest = (input, context) => {
@@ -19,6 +19,9 @@ import { DescribeBudgetsCommandInput, DescribeBudgetsCommandOutput } from "./com
19
19
  import { DescribeNotificationsForBudgetCommandInput, DescribeNotificationsForBudgetCommandOutput } from "./commands/DescribeNotificationsForBudgetCommand";
20
20
  import { DescribeSubscribersForNotificationCommandInput, DescribeSubscribersForNotificationCommandOutput } from "./commands/DescribeSubscribersForNotificationCommand";
21
21
  import { ExecuteBudgetActionCommandInput, ExecuteBudgetActionCommandOutput } from "./commands/ExecuteBudgetActionCommand";
22
+ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
23
+ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
24
+ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
22
25
  import { UpdateBudgetActionCommandInput, UpdateBudgetActionCommandOutput } from "./commands/UpdateBudgetActionCommand";
23
26
  import { UpdateBudgetCommandInput, UpdateBudgetCommandOutput } from "./commands/UpdateBudgetCommand";
24
27
  import { UpdateNotificationCommandInput, UpdateNotificationCommandOutput } from "./commands/UpdateNotificationCommand";
@@ -138,6 +141,24 @@ export interface Budgets {
138
141
  executeBudgetAction(args: ExecuteBudgetActionCommandInput, options?: __HttpHandlerOptions): Promise<ExecuteBudgetActionCommandOutput>;
139
142
  executeBudgetAction(args: ExecuteBudgetActionCommandInput, cb: (err: any, data?: ExecuteBudgetActionCommandOutput) => void): void;
140
143
  executeBudgetAction(args: ExecuteBudgetActionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ExecuteBudgetActionCommandOutput) => void): void;
144
+ /**
145
+ * @see {@link ListTagsForResourceCommand}
146
+ */
147
+ listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
148
+ listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
149
+ listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
150
+ /**
151
+ * @see {@link TagResourceCommand}
152
+ */
153
+ tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
154
+ tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
155
+ tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
156
+ /**
157
+ * @see {@link UntagResourceCommand}
158
+ */
159
+ untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
160
+ untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
161
+ untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
141
162
  /**
142
163
  * @see {@link UpdateBudgetCommand}
143
164
  */
@@ -26,6 +26,9 @@ import { DescribeBudgetsCommandInput, DescribeBudgetsCommandOutput } from "./com
26
26
  import { DescribeNotificationsForBudgetCommandInput, DescribeNotificationsForBudgetCommandOutput } from "./commands/DescribeNotificationsForBudgetCommand";
27
27
  import { DescribeSubscribersForNotificationCommandInput, DescribeSubscribersForNotificationCommandOutput } from "./commands/DescribeSubscribersForNotificationCommand";
28
28
  import { ExecuteBudgetActionCommandInput, ExecuteBudgetActionCommandOutput } from "./commands/ExecuteBudgetActionCommand";
29
+ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
30
+ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
31
+ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
29
32
  import { UpdateBudgetActionCommandInput, UpdateBudgetActionCommandOutput } from "./commands/UpdateBudgetActionCommand";
30
33
  import { UpdateBudgetCommandInput, UpdateBudgetCommandOutput } from "./commands/UpdateBudgetCommand";
31
34
  import { UpdateNotificationCommandInput, UpdateNotificationCommandOutput } from "./commands/UpdateNotificationCommand";
@@ -36,11 +39,11 @@ export { __Client };
36
39
  /**
37
40
  * @public
38
41
  */
39
- export type ServiceInputTypes = CreateBudgetActionCommandInput | CreateBudgetCommandInput | CreateNotificationCommandInput | CreateSubscriberCommandInput | DeleteBudgetActionCommandInput | DeleteBudgetCommandInput | DeleteNotificationCommandInput | DeleteSubscriberCommandInput | DescribeBudgetActionCommandInput | DescribeBudgetActionHistoriesCommandInput | DescribeBudgetActionsForAccountCommandInput | DescribeBudgetActionsForBudgetCommandInput | DescribeBudgetCommandInput | DescribeBudgetNotificationsForAccountCommandInput | DescribeBudgetPerformanceHistoryCommandInput | DescribeBudgetsCommandInput | DescribeNotificationsForBudgetCommandInput | DescribeSubscribersForNotificationCommandInput | ExecuteBudgetActionCommandInput | UpdateBudgetActionCommandInput | UpdateBudgetCommandInput | UpdateNotificationCommandInput | UpdateSubscriberCommandInput;
42
+ export type ServiceInputTypes = CreateBudgetActionCommandInput | CreateBudgetCommandInput | CreateNotificationCommandInput | CreateSubscriberCommandInput | DeleteBudgetActionCommandInput | DeleteBudgetCommandInput | DeleteNotificationCommandInput | DeleteSubscriberCommandInput | DescribeBudgetActionCommandInput | DescribeBudgetActionHistoriesCommandInput | DescribeBudgetActionsForAccountCommandInput | DescribeBudgetActionsForBudgetCommandInput | DescribeBudgetCommandInput | DescribeBudgetNotificationsForAccountCommandInput | DescribeBudgetPerformanceHistoryCommandInput | DescribeBudgetsCommandInput | DescribeNotificationsForBudgetCommandInput | DescribeSubscribersForNotificationCommandInput | ExecuteBudgetActionCommandInput | ListTagsForResourceCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateBudgetActionCommandInput | UpdateBudgetCommandInput | UpdateNotificationCommandInput | UpdateSubscriberCommandInput;
40
43
  /**
41
44
  * @public
42
45
  */
43
- export type ServiceOutputTypes = CreateBudgetActionCommandOutput | CreateBudgetCommandOutput | CreateNotificationCommandOutput | CreateSubscriberCommandOutput | DeleteBudgetActionCommandOutput | DeleteBudgetCommandOutput | DeleteNotificationCommandOutput | DeleteSubscriberCommandOutput | DescribeBudgetActionCommandOutput | DescribeBudgetActionHistoriesCommandOutput | DescribeBudgetActionsForAccountCommandOutput | DescribeBudgetActionsForBudgetCommandOutput | DescribeBudgetCommandOutput | DescribeBudgetNotificationsForAccountCommandOutput | DescribeBudgetPerformanceHistoryCommandOutput | DescribeBudgetsCommandOutput | DescribeNotificationsForBudgetCommandOutput | DescribeSubscribersForNotificationCommandOutput | ExecuteBudgetActionCommandOutput | UpdateBudgetActionCommandOutput | UpdateBudgetCommandOutput | UpdateNotificationCommandOutput | UpdateSubscriberCommandOutput;
46
+ export type ServiceOutputTypes = CreateBudgetActionCommandOutput | CreateBudgetCommandOutput | CreateNotificationCommandOutput | CreateSubscriberCommandOutput | DeleteBudgetActionCommandOutput | DeleteBudgetCommandOutput | DeleteNotificationCommandOutput | DeleteSubscriberCommandOutput | DescribeBudgetActionCommandOutput | DescribeBudgetActionHistoriesCommandOutput | DescribeBudgetActionsForAccountCommandOutput | DescribeBudgetActionsForBudgetCommandOutput | DescribeBudgetCommandOutput | DescribeBudgetNotificationsForAccountCommandOutput | DescribeBudgetPerformanceHistoryCommandOutput | DescribeBudgetsCommandOutput | DescribeNotificationsForBudgetCommandOutput | DescribeSubscribersForNotificationCommandOutput | ExecuteBudgetActionCommandOutput | ListTagsForResourceCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateBudgetActionCommandOutput | UpdateBudgetCommandOutput | UpdateNotificationCommandOutput | UpdateSubscriberCommandOutput;
44
47
  /**
45
48
  * @public
46
49
  */