list_organization_recommendation_accounts
async
¶
list_organization_recommendation_accounts(
organization_recommendation_identifier: OrganizationRecommendationIdentifier,
*,
config_overrides: Optional[AsyncTrustedAdvisorClientConfig] = None,
next_token: Optional[str] = None,
max_results: Optional[int] = None,
affected_account_id: Optional[AccountId] = None,
) -> ListOrganizationRecommendationAccountsResponse
Lists the accounts that own the resources for an organization aggregate recommendation. This API only supports prioritized recommendations and provides global priority recommendations, eliminating the need to call the API in each AWS Region.
Parameters:
-
next_token(Optional[str], default:None) –The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
-
max_results(Optional[int], default:None) –The maximum number of results to return per page.
-
organization_recommendation_identifier(OrganizationRecommendationIdentifier) –The Recommendation identifier
-
affected_account_id(Optional[AccountId], default:None) –An account affected by this organization recommendation
Raises:
-
AccessDeniedException–Exception that access has been denied due to insufficient access
-
InternalServerException–Exception to notify that an unexpected internal error occurred during processing of the request
-
ResourceNotFoundException–Exception that the requested resource has not been found
-
ThrottlingException–Exception to notify that requests are being throttled
-
ValidationException–Exception that the request failed to satisfy service constraints
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
List all Accounts for an AWS Organization's Recommendation
>>> await client.list_organization_recommendation_accounts(organization_recommendation_identifier='arn:aws:trustedadvisor:::organization-recommendation/9534ec9b-bf3a-44e8-8213-2ed68b39d9d5')
Source code in docs_src/capo_trustedadvisor/_services/async_trusted_advisor.py
508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 | |