BatchUpdateRecommendationResourceExclusionCommand

Update one or more exclusion status for a list of recommendation resources

Example Syntax

Use a bare-bones client and the command you need to make an API call.

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",
//     },
//   ],
// };

Example Usage

 There was an error loading the code editor. Retry

BatchUpdateRecommendationResourceExclusionCommand Input

Parameter
Type
Description
recommendationResourceExclusions
Required
RecommendationResourceExclusion[] | undefined

A list of recommendation resource ARNs and exclusion status to update

BatchUpdateRecommendationResourceExclusionCommand Output

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.
batchUpdateRecommendationResourceExclusionErrors
Required
UpdateRecommendationResourceExclusionError[] | undefined

A list of recommendation resource ARNs whose exclusion status failed to update, if any

Throws

Name
Fault
Details
AccessDeniedException
client

Exception that access has been denied due to insufficient access

ConflictException
client

Exception that the request was denied due to conflictions in state

InternalServerException
server

Exception to notify that an unexpected internal error occurred during processing of the request

ThrottlingException
client

Exception to notify that requests are being throttled

ValidationException
client

Exception that the request failed to satisfy service constraints

TrustedAdvisorServiceException
Base exception class for all service exceptions from TrustedAdvisor service.