@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
@@ -79,6 +79,12 @@ declare const CreateBudgetActionCommand_base: {
79
79
  * Address: "STRING_VALUE", // required
80
80
  * },
81
81
  * ],
82
+ * ResourceTags: [ // ResourceTagList
83
+ * { // ResourceTag
84
+ * Key: "STRING_VALUE", // required
85
+ * Value: "STRING_VALUE", // required
86
+ * },
87
+ * ],
82
88
  * };
83
89
  * const command = new CreateBudgetActionCommand(input);
84
90
  * const response = await client.send(command);
@@ -114,6 +120,9 @@ declare const CreateBudgetActionCommand_base: {
114
120
  * @throws {@link NotFoundException} (client fault)
115
121
  * <p>We can’t locate the resource that you specified.</p>
116
122
  *
123
+ * @throws {@link ServiceQuotaExceededException} (client fault)
124
+ * <p>You've reached the limit on the number of tags you can associate with a resource.</p>
125
+ *
117
126
  * @throws {@link ThrottlingException} (client fault)
118
127
  * <p>The number of API requests has exceeded the maximum allowed API request throttling limit
119
128
  * for the account.</p>
@@ -111,6 +111,12 @@ declare const CreateBudgetCommand_base: {
111
111
  * ],
112
112
  * },
113
113
  * ],
114
+ * ResourceTags: [ // ResourceTagList
115
+ * { // ResourceTag
116
+ * Key: "STRING_VALUE", // required
117
+ * Value: "STRING_VALUE", // required
118
+ * },
119
+ * ],
114
120
  * };
115
121
  * const command = new CreateBudgetCommand(input);
116
122
  * const response = await client.send(command);
@@ -139,6 +145,9 @@ declare const CreateBudgetCommand_base: {
139
145
  * @throws {@link InvalidParameterException} (client fault)
140
146
  * <p>An error on the client occurred. Typically, the cause is an invalid input value.</p>
141
147
  *
148
+ * @throws {@link ServiceQuotaExceededException} (client fault)
149
+ * <p>You've reached the limit on the number of tags you can associate with a resource.</p>
150
+ *
142
151
  * @throws {@link ThrottlingException} (client fault)
143
152
  * <p>The number of API requests has exceeded the maximum allowed API request throttling limit
144
153
  * for the account.</p>
@@ -114,8 +114,8 @@ declare const DeleteBudgetActionCommand_base: {
114
114
  * <p>We can’t locate the resource that you specified.</p>
115
115
  *
116
116
  * @throws {@link ResourceLockedException} (client fault)
117
- * <p> The request was received and recognized by the server, but the server rejected that
118
- * particular method for the requested resource. </p>
117
+ * <p>The request was received and recognized by the server, but the server rejected that
118
+ * particular method for the requested resource.</p>
119
119
  *
120
120
  * @throws {@link ThrottlingException} (client fault)
121
121
  * <p>The number of API requests has exceeded the maximum allowed API request throttling limit
@@ -26,9 +26,7 @@ declare const DescribeBudgetNotificationsForAccountCommand_base: {
26
26
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
27
  };
28
28
  /**
29
- * <p>
30
- * Lists the budget names and notifications that are associated with an account.
31
- * </p>
29
+ * <p> Lists the budget names and notifications that are associated with an account. </p>
32
30
  * @example
33
31
  * Use a bare-bones client and the command you need to make an API call.
34
32
  * ```javascript
@@ -71,8 +71,8 @@ declare const ExecuteBudgetActionCommand_base: {
71
71
  * <p>We can’t locate the resource that you specified.</p>
72
72
  *
73
73
  * @throws {@link ResourceLockedException} (client fault)
74
- * <p> The request was received and recognized by the server, but the server rejected that
75
- * particular method for the requested resource. </p>
74
+ * <p>The request was received and recognized by the server, but the server rejected that
75
+ * particular method for the requested resource.</p>
76
76
  *
77
77
  * @throws {@link ThrottlingException} (client fault)
78
78
  * <p>The number of API requests has exceeded the maximum allowed API request throttling limit
@@ -0,0 +1,80 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { BudgetsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BudgetsClient";
4
+ import { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link ListTagsForResourceCommand}.
13
+ */
14
+ export interface ListTagsForResourceCommandInput extends ListTagsForResourceRequest {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link ListTagsForResourceCommand}.
20
+ */
21
+ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceResponse, __MetadataBearer {
22
+ }
23
+ declare const ListTagsForResourceCommand_base: {
24
+ new (input: ListTagsForResourceCommandInput): import("@smithy/smithy-client").CommandImpl<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, BudgetsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: ListTagsForResourceCommandInput): import("@smithy/smithy-client").CommandImpl<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, BudgetsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
+ };
28
+ /**
29
+ * <p>Lists tags associated with a budget or budget action resource.</p>
30
+ * @example
31
+ * Use a bare-bones client and the command you need to make an API call.
32
+ * ```javascript
33
+ * import { BudgetsClient, ListTagsForResourceCommand } from "@aws-sdk/client-budgets"; // ES Modules import
34
+ * // const { BudgetsClient, ListTagsForResourceCommand } = require("@aws-sdk/client-budgets"); // CommonJS import
35
+ * const client = new BudgetsClient(config);
36
+ * const input = { // ListTagsForResourceRequest
37
+ * ResourceARN: "STRING_VALUE", // required
38
+ * };
39
+ * const command = new ListTagsForResourceCommand(input);
40
+ * const response = await client.send(command);
41
+ * // { // ListTagsForResourceResponse
42
+ * // ResourceTags: [ // ResourceTagList
43
+ * // { // ResourceTag
44
+ * // Key: "STRING_VALUE", // required
45
+ * // Value: "STRING_VALUE", // required
46
+ * // },
47
+ * // ],
48
+ * // };
49
+ *
50
+ * ```
51
+ *
52
+ * @param ListTagsForResourceCommandInput - {@link ListTagsForResourceCommandInput}
53
+ * @returns {@link ListTagsForResourceCommandOutput}
54
+ * @see {@link ListTagsForResourceCommandInput} for command's `input` shape.
55
+ * @see {@link ListTagsForResourceCommandOutput} for command's `response` shape.
56
+ * @see {@link BudgetsClientResolvedConfig | config} for BudgetsClient's `config` shape.
57
+ *
58
+ * @throws {@link AccessDeniedException} (client fault)
59
+ * <p>You are not authorized to use this operation with the given parameters.</p>
60
+ *
61
+ * @throws {@link InternalErrorException} (server fault)
62
+ * <p>An error on the server occurred during the processing of your request. Try again later.</p>
63
+ *
64
+ * @throws {@link InvalidParameterException} (client fault)
65
+ * <p>An error on the client occurred. Typically, the cause is an invalid input value.</p>
66
+ *
67
+ * @throws {@link NotFoundException} (client fault)
68
+ * <p>We can’t locate the resource that you specified.</p>
69
+ *
70
+ * @throws {@link ThrottlingException} (client fault)
71
+ * <p>The number of API requests has exceeded the maximum allowed API request throttling limit
72
+ * for the account.</p>
73
+ *
74
+ * @throws {@link BudgetsServiceException}
75
+ * <p>Base exception class for all service exceptions from Budgets service.</p>
76
+ *
77
+ * @public
78
+ */
79
+ export declare class ListTagsForResourceCommand extends ListTagsForResourceCommand_base {
80
+ }
@@ -0,0 +1,82 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { BudgetsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BudgetsClient";
4
+ import { TagResourceRequest, TagResourceResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link TagResourceCommand}.
13
+ */
14
+ export interface TagResourceCommandInput extends TagResourceRequest {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link TagResourceCommand}.
20
+ */
21
+ export interface TagResourceCommandOutput extends TagResourceResponse, __MetadataBearer {
22
+ }
23
+ declare const TagResourceCommand_base: {
24
+ new (input: TagResourceCommandInput): import("@smithy/smithy-client").CommandImpl<TagResourceCommandInput, TagResourceCommandOutput, BudgetsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: TagResourceCommandInput): import("@smithy/smithy-client").CommandImpl<TagResourceCommandInput, TagResourceCommandOutput, BudgetsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
+ };
28
+ /**
29
+ * <p>Creates tags for a budget or budget action resource.</p>
30
+ * @example
31
+ * Use a bare-bones client and the command you need to make an API call.
32
+ * ```javascript
33
+ * import { BudgetsClient, TagResourceCommand } from "@aws-sdk/client-budgets"; // ES Modules import
34
+ * // const { BudgetsClient, TagResourceCommand } = require("@aws-sdk/client-budgets"); // CommonJS import
35
+ * const client = new BudgetsClient(config);
36
+ * const input = { // TagResourceRequest
37
+ * ResourceARN: "STRING_VALUE", // required
38
+ * ResourceTags: [ // ResourceTagList // required
39
+ * { // ResourceTag
40
+ * Key: "STRING_VALUE", // required
41
+ * Value: "STRING_VALUE", // required
42
+ * },
43
+ * ],
44
+ * };
45
+ * const command = new TagResourceCommand(input);
46
+ * const response = await client.send(command);
47
+ * // {};
48
+ *
49
+ * ```
50
+ *
51
+ * @param TagResourceCommandInput - {@link TagResourceCommandInput}
52
+ * @returns {@link TagResourceCommandOutput}
53
+ * @see {@link TagResourceCommandInput} for command's `input` shape.
54
+ * @see {@link TagResourceCommandOutput} for command's `response` shape.
55
+ * @see {@link BudgetsClientResolvedConfig | config} for BudgetsClient's `config` shape.
56
+ *
57
+ * @throws {@link AccessDeniedException} (client fault)
58
+ * <p>You are not authorized to use this operation with the given parameters.</p>
59
+ *
60
+ * @throws {@link InternalErrorException} (server fault)
61
+ * <p>An error on the server occurred during the processing of your request. Try again later.</p>
62
+ *
63
+ * @throws {@link InvalidParameterException} (client fault)
64
+ * <p>An error on the client occurred. Typically, the cause is an invalid input value.</p>
65
+ *
66
+ * @throws {@link NotFoundException} (client fault)
67
+ * <p>We can’t locate the resource that you specified.</p>
68
+ *
69
+ * @throws {@link ServiceQuotaExceededException} (client fault)
70
+ * <p>You've reached the limit on the number of tags you can associate with a resource.</p>
71
+ *
72
+ * @throws {@link ThrottlingException} (client fault)
73
+ * <p>The number of API requests has exceeded the maximum allowed API request throttling limit
74
+ * for the account.</p>
75
+ *
76
+ * @throws {@link BudgetsServiceException}
77
+ * <p>Base exception class for all service exceptions from Budgets service.</p>
78
+ *
79
+ * @public
80
+ */
81
+ export declare class TagResourceCommand extends TagResourceCommand_base {
82
+ }
@@ -0,0 +1,76 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { BudgetsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BudgetsClient";
4
+ import { UntagResourceRequest, UntagResourceResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link UntagResourceCommand}.
13
+ */
14
+ export interface UntagResourceCommandInput extends UntagResourceRequest {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link UntagResourceCommand}.
20
+ */
21
+ export interface UntagResourceCommandOutput extends UntagResourceResponse, __MetadataBearer {
22
+ }
23
+ declare const UntagResourceCommand_base: {
24
+ new (input: UntagResourceCommandInput): import("@smithy/smithy-client").CommandImpl<UntagResourceCommandInput, UntagResourceCommandOutput, BudgetsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: UntagResourceCommandInput): import("@smithy/smithy-client").CommandImpl<UntagResourceCommandInput, UntagResourceCommandOutput, BudgetsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
+ };
28
+ /**
29
+ * <p>Deletes tags associated with a budget or budget action resource.</p>
30
+ * @example
31
+ * Use a bare-bones client and the command you need to make an API call.
32
+ * ```javascript
33
+ * import { BudgetsClient, UntagResourceCommand } from "@aws-sdk/client-budgets"; // ES Modules import
34
+ * // const { BudgetsClient, UntagResourceCommand } = require("@aws-sdk/client-budgets"); // CommonJS import
35
+ * const client = new BudgetsClient(config);
36
+ * const input = { // UntagResourceRequest
37
+ * ResourceARN: "STRING_VALUE", // required
38
+ * ResourceTagKeys: [ // ResourceTagKeyList // required
39
+ * "STRING_VALUE",
40
+ * ],
41
+ * };
42
+ * const command = new UntagResourceCommand(input);
43
+ * const response = await client.send(command);
44
+ * // {};
45
+ *
46
+ * ```
47
+ *
48
+ * @param UntagResourceCommandInput - {@link UntagResourceCommandInput}
49
+ * @returns {@link UntagResourceCommandOutput}
50
+ * @see {@link UntagResourceCommandInput} for command's `input` shape.
51
+ * @see {@link UntagResourceCommandOutput} for command's `response` shape.
52
+ * @see {@link BudgetsClientResolvedConfig | config} for BudgetsClient's `config` shape.
53
+ *
54
+ * @throws {@link AccessDeniedException} (client fault)
55
+ * <p>You are not authorized to use this operation with the given parameters.</p>
56
+ *
57
+ * @throws {@link InternalErrorException} (server fault)
58
+ * <p>An error on the server occurred during the processing of your request. Try again later.</p>
59
+ *
60
+ * @throws {@link InvalidParameterException} (client fault)
61
+ * <p>An error on the client occurred. Typically, the cause is an invalid input value.</p>
62
+ *
63
+ * @throws {@link NotFoundException} (client fault)
64
+ * <p>We can’t locate the resource that you specified.</p>
65
+ *
66
+ * @throws {@link ThrottlingException} (client fault)
67
+ * <p>The number of API requests has exceeded the maximum allowed API request throttling limit
68
+ * for the account.</p>
69
+ *
70
+ * @throws {@link BudgetsServiceException}
71
+ * <p>Base exception class for all service exceptions from Budgets service.</p>
72
+ *
73
+ * @public
74
+ */
75
+ export declare class UntagResourceCommand extends UntagResourceCommand_base {
76
+ }
@@ -200,8 +200,8 @@ declare const UpdateBudgetActionCommand_base: {
200
200
  * <p>We can’t locate the resource that you specified.</p>
201
201
  *
202
202
  * @throws {@link ResourceLockedException} (client fault)
203
- * <p> The request was received and recognized by the server, but the server rejected that
204
- * particular method for the requested resource. </p>
203
+ * <p>The request was received and recognized by the server, but the server rejected that
204
+ * particular method for the requested resource.</p>
205
205
  *
206
206
  * @throws {@link ThrottlingException} (client fault)
207
207
  * <p>The number of API requests has exceeded the maximum allowed API request throttling limit
@@ -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";