TrustedAdvisorPublicAPI / Client / batch_update_recommendation_resource_exclusion
batch_update_recommendation_resource_exclusion#
- TrustedAdvisorPublicAPI.Client.batch_update_recommendation_resource_exclusion(**kwargs)#
Update one or more exclusion status for a list of recommendation resources
See also: AWS API Documentation
Request Syntax
response = client.batch_update_recommendation_resource_exclusion( recommendationResourceExclusions=[ { 'arn': 'string', 'isExcluded': True|False }, ] )
- Parameters:
recommendationResourceExclusions (list) –
[REQUIRED]
A list of recommendation resource ARNs and exclusion status to update
(dict) –
The request entry for Recommendation Resource exclusion. Each entry is a combination of Recommendation Resource ARN and corresponding exclusion status
arn (string) – [REQUIRED]
The ARN of the Recommendation Resource
isExcluded (boolean) – [REQUIRED]
The exclusion status
- Return type:
dict
- Returns:
Response Syntax
{ 'batchUpdateRecommendationResourceExclusionErrors': [ { 'arn': 'string', 'errorCode': 'string', 'errorMessage': 'string' }, ] }
Response Structure
(dict) –
batchUpdateRecommendationResourceExclusionErrors (list) –
A list of recommendation resource ARNs whose exclusion status failed to update, if any
(dict) –
The error entry for Recommendation Resource exclusion. Each entry is a combination of Recommendation Resource ARN, error code and error message
arn (string) –
The ARN of the Recommendation Resource
errorCode (string) –
The error code
errorMessage (string) –
The error message
Exceptions
TrustedAdvisorPublicAPI.Client.exceptions.AccessDeniedException
TrustedAdvisorPublicAPI.Client.exceptions.ConflictException
TrustedAdvisorPublicAPI.Client.exceptions.InternalServerException
TrustedAdvisorPublicAPI.Client.exceptions.ValidationException
TrustedAdvisorPublicAPI.Client.exceptions.ThrottlingException