-
Notifications
You must be signed in to change notification settings - Fork 589
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(client-trustedadvisor): This release adds the BatchUpdateRecomme…
…ndationResourceExclusion API to support batch updates of Recommendation Resource exclusion statuses and introduces a new exclusion status filter to the ListRecommendationResources and ListOrganizationRecommendationResources APIs.
- Loading branch information
awstools
committed
Apr 29, 2024
1 parent
4f7a643
commit 5fb127b
Showing
11 changed files
with
763 additions
and
222 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
116 changes: 116 additions & 0 deletions
116
...s/client-trustedadvisor/src/commands/BatchUpdateRecommendationResourceExclusionCommand.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,116 @@ | ||
// 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 { commonParams } from "../endpoint/EndpointParameters"; | ||
import { | ||
BatchUpdateRecommendationResourceExclusionRequest, | ||
BatchUpdateRecommendationResourceExclusionResponse, | ||
} from "../models/models_0"; | ||
import { | ||
de_BatchUpdateRecommendationResourceExclusionCommand, | ||
se_BatchUpdateRecommendationResourceExclusionCommand, | ||
} from "../protocols/Aws_restJson1"; | ||
import { ServiceInputTypes, ServiceOutputTypes, TrustedAdvisorClientResolvedConfig } from "../TrustedAdvisorClient"; | ||
|
||
/** | ||
* @public | ||
*/ | ||
export { __MetadataBearer, $Command }; | ||
/** | ||
* @public | ||
* | ||
* The input for {@link BatchUpdateRecommendationResourceExclusionCommand}. | ||
*/ | ||
export interface BatchUpdateRecommendationResourceExclusionCommandInput | ||
extends BatchUpdateRecommendationResourceExclusionRequest {} | ||
/** | ||
* @public | ||
* | ||
* The output of {@link BatchUpdateRecommendationResourceExclusionCommand}. | ||
*/ | ||
export interface BatchUpdateRecommendationResourceExclusionCommandOutput | ||
extends BatchUpdateRecommendationResourceExclusionResponse, | ||
__MetadataBearer {} | ||
|
||
/** | ||
* <p>Update one or more exclusion status for a list of recommendation resources</p> | ||
* @example | ||
* Use a bare-bones client and the command you need to make an API call. | ||
* ```javascript | ||
* import { TrustedAdvisorClient, BatchUpdateRecommendationResourceExclusionCommand } from "@aws-sdk/client-trustedadvisor"; // ES Modules import | ||
* // const { TrustedAdvisorClient, BatchUpdateRecommendationResourceExclusionCommand } = require("@aws-sdk/client-trustedadvisor"); // CommonJS import | ||
* const client = new TrustedAdvisorClient(config); | ||
* const input = { // BatchUpdateRecommendationResourceExclusionRequest | ||
* recommendationResourceExclusions: [ // RecommendationResourceExclusionList // required | ||
* { // RecommendationResourceExclusion | ||
* arn: "STRING_VALUE", // required | ||
* isExcluded: true || false, // required | ||
* }, | ||
* ], | ||
* }; | ||
* const command = new BatchUpdateRecommendationResourceExclusionCommand(input); | ||
* const response = await client.send(command); | ||
* // { // BatchUpdateRecommendationResourceExclusionResponse | ||
* // batchUpdateRecommendationResourceExclusionErrors: [ // UpdateRecommendationResourceExclusionErrorList // required | ||
* // { // UpdateRecommendationResourceExclusionError | ||
* // arn: "STRING_VALUE", | ||
* // errorCode: "STRING_VALUE", | ||
* // errorMessage: "STRING_VALUE", | ||
* // }, | ||
* // ], | ||
* // }; | ||
* | ||
* ``` | ||
* | ||
* @param BatchUpdateRecommendationResourceExclusionCommandInput - {@link BatchUpdateRecommendationResourceExclusionCommandInput} | ||
* @returns {@link BatchUpdateRecommendationResourceExclusionCommandOutput} | ||
* @see {@link BatchUpdateRecommendationResourceExclusionCommandInput} for command's `input` shape. | ||
* @see {@link BatchUpdateRecommendationResourceExclusionCommandOutput} for command's `response` shape. | ||
* @see {@link TrustedAdvisorClientResolvedConfig | config} for TrustedAdvisorClient's `config` shape. | ||
* | ||
* @throws {@link AccessDeniedException} (client fault) | ||
* <p>Exception that access has been denied due to insufficient access</p> | ||
* | ||
* @throws {@link ConflictException} (client fault) | ||
* <p>Exception that the request was denied due to conflictions in state</p> | ||
* | ||
* @throws {@link InternalServerException} (server fault) | ||
* <p>Exception to notify that an unexpected internal error occurred during processing of the request</p> | ||
* | ||
* @throws {@link ThrottlingException} (client fault) | ||
* <p>Exception to notify that requests are being throttled</p> | ||
* | ||
* @throws {@link ValidationException} (client fault) | ||
* <p>Exception that the request failed to satisfy service constraints</p> | ||
* | ||
* @throws {@link TrustedAdvisorServiceException} | ||
* <p>Base exception class for all service exceptions from TrustedAdvisor service.</p> | ||
* | ||
* @public | ||
*/ | ||
export class BatchUpdateRecommendationResourceExclusionCommand extends $Command | ||
.classBuilder< | ||
BatchUpdateRecommendationResourceExclusionCommandInput, | ||
BatchUpdateRecommendationResourceExclusionCommandOutput, | ||
TrustedAdvisorClientResolvedConfig, | ||
ServiceInputTypes, | ||
ServiceOutputTypes | ||
>() | ||
.ep({ | ||
...commonParams, | ||
}) | ||
.m(function (this: any, Command: any, cs: any, config: TrustedAdvisorClientResolvedConfig, o: any) { | ||
return [ | ||
getSerdePlugin(config, this.serialize, this.deserialize), | ||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()), | ||
]; | ||
}) | ||
.s("TrustedAdvisor", "BatchUpdateRecommendationResourceExclusion", {}) | ||
.n("TrustedAdvisorClient", "BatchUpdateRecommendationResourceExclusionCommand") | ||
.f(void 0, void 0) | ||
.ser(se_BatchUpdateRecommendationResourceExclusionCommand) | ||
.de(de_BatchUpdateRecommendationResourceExclusionCommand) | ||
.build() {} |
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
Oops, something went wrong.