-
Notifications
You must be signed in to change notification settings - Fork 578
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(client-budgets): This release adds tag support for budgets and b…
…udget actions.
- Loading branch information
awstools
committed
May 7, 2024
1 parent
188916b
commit da0c974
Showing
16 changed files
with
1,220 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
102 changes: 102 additions & 0 deletions
102
clients/client-budgets/src/commands/ListTagsForResourceCommand.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
// smithy-typescript generated code | ||
import { getEndpointPlugin } from "@smithy/middleware-endpoint"; | ||
import { getSerdePlugin } from "@smithy/middleware-serde"; | ||
import { Command as $Command } from "@smithy/smithy-client"; | ||
import { MetadataBearer as __MetadataBearer } from "@smithy/types"; | ||
|
||
import { BudgetsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BudgetsClient"; | ||
import { commonParams } from "../endpoint/EndpointParameters"; | ||
import { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_0"; | ||
import { de_ListTagsForResourceCommand, se_ListTagsForResourceCommand } from "../protocols/Aws_json1_1"; | ||
|
||
/** | ||
* @public | ||
*/ | ||
export { __MetadataBearer, $Command }; | ||
/** | ||
* @public | ||
* | ||
* The input for {@link ListTagsForResourceCommand}. | ||
*/ | ||
export interface ListTagsForResourceCommandInput extends ListTagsForResourceRequest {} | ||
/** | ||
* @public | ||
* | ||
* The output of {@link ListTagsForResourceCommand}. | ||
*/ | ||
export interface ListTagsForResourceCommandOutput extends ListTagsForResourceResponse, __MetadataBearer {} | ||
|
||
/** | ||
* <p>Lists tags associated with a budget or budget action resource.</p> | ||
* @example | ||
* Use a bare-bones client and the command you need to make an API call. | ||
* ```javascript | ||
* import { BudgetsClient, ListTagsForResourceCommand } from "@aws-sdk/client-budgets"; // ES Modules import | ||
* // const { BudgetsClient, ListTagsForResourceCommand } = require("@aws-sdk/client-budgets"); // CommonJS import | ||
* const client = new BudgetsClient(config); | ||
* const input = { // ListTagsForResourceRequest | ||
* ResourceARN: "STRING_VALUE", // required | ||
* }; | ||
* const command = new ListTagsForResourceCommand(input); | ||
* const response = await client.send(command); | ||
* // { // ListTagsForResourceResponse | ||
* // ResourceTags: [ // ResourceTagList | ||
* // { // ResourceTag | ||
* // Key: "STRING_VALUE", // required | ||
* // Value: "STRING_VALUE", // required | ||
* // }, | ||
* // ], | ||
* // }; | ||
* | ||
* ``` | ||
* | ||
* @param ListTagsForResourceCommandInput - {@link ListTagsForResourceCommandInput} | ||
* @returns {@link ListTagsForResourceCommandOutput} | ||
* @see {@link ListTagsForResourceCommandInput} for command's `input` shape. | ||
* @see {@link ListTagsForResourceCommandOutput} for command's `response` shape. | ||
* @see {@link BudgetsClientResolvedConfig | config} for BudgetsClient's `config` shape. | ||
* | ||
* @throws {@link AccessDeniedException} (client fault) | ||
* <p>You are not authorized to use this operation with the given parameters.</p> | ||
* | ||
* @throws {@link InternalErrorException} (server fault) | ||
* <p>An error on the server occurred during the processing of your request. Try again later.</p> | ||
* | ||
* @throws {@link InvalidParameterException} (client fault) | ||
* <p>An error on the client occurred. Typically, the cause is an invalid input value.</p> | ||
* | ||
* @throws {@link NotFoundException} (client fault) | ||
* <p>We can’t locate the resource that you specified.</p> | ||
* | ||
* @throws {@link ThrottlingException} (client fault) | ||
* <p>The number of API requests has exceeded the maximum allowed API request throttling limit | ||
* for the account.</p> | ||
* | ||
* @throws {@link BudgetsServiceException} | ||
* <p>Base exception class for all service exceptions from Budgets service.</p> | ||
* | ||
* @public | ||
*/ | ||
export class ListTagsForResourceCommand extends $Command | ||
.classBuilder< | ||
ListTagsForResourceCommandInput, | ||
ListTagsForResourceCommandOutput, | ||
BudgetsClientResolvedConfig, | ||
ServiceInputTypes, | ||
ServiceOutputTypes | ||
>() | ||
.ep({ | ||
...commonParams, | ||
}) | ||
.m(function (this: any, Command: any, cs: any, config: BudgetsClientResolvedConfig, o: any) { | ||
return [ | ||
getSerdePlugin(config, this.serialize, this.deserialize), | ||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()), | ||
]; | ||
}) | ||
.s("AWSBudgetServiceGateway", "ListTagsForResource", {}) | ||
.n("BudgetsClient", "ListTagsForResourceCommand") | ||
.f(void 0, void 0) | ||
.ser(se_ListTagsForResourceCommand) | ||
.de(de_ListTagsForResourceCommand) | ||
.build() {} |
Oops, something went wrong.