list_account_assignments_for_principal
async
¶
list_account_assignments_for_principal(
instance_arn: InstanceArn,
principal_id: PrincipalId,
principal_type: PrincipalType,
*,
config_overrides: Optional[AsyncSSOAdminClientConfig] = None,
filter: Optional[ListAccountAssignmentsFilter] = None,
next_token: Optional[Token] = None,
max_results: Optional[MaxResults] = None,
) -> ListAccountAssignmentsForPrincipalResponse
Retrieves a list of the IAM Identity Center associated Amazon Web Services accounts that the principal has access to. This action must be called from the management account containing your organization instance of IAM Identity Center. This action is not valid for account instances of IAM Identity Center.
Parameters:
-
instance_arn(InstanceArn) –Specifies the ARN of the instance of IAM Identity Center that contains the principal.
-
principal_id(PrincipalId) –Specifies the principal for which you want to retrieve the list of account assignments.
-
principal_type(PrincipalType) –Specifies the type of the principal.
-
filter(Optional[ListAccountAssignmentsFilter], default:None) –Specifies an Amazon Web Services account ID number. Results are filtered to only those that match this ID number.
-
next_token(Optional[Token], default:None) –Specifies that you want to receive the next page of results. Valid only if you received a
NextTokenresponse in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call'sNextTokenresponse to request the next page of results. -
max_results(Optional[MaxResults], default:None) –Specifies the total number of results that you want included in each response. If additional items exist beyond the number you specify, the
NextTokenresponse element is returned with a value (not null). Include the specified value as theNextTokenrequest parameter in the next call to the operation to get the next set of results. Note that the service might return fewer results than the maximum even when there are more results available. You should checkNextTokenafter every operation to ensure that you receive all of the results.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
InternalServerException–The request processing has failed because of an unknown error, exception, or failure with an internal server.
-
ResourceNotFoundException–Indicates that a requested resource is not found.
-
ThrottlingException–Indicates that the principal has crossed the throttling limits of the API operations.
-
ValidationException–The request failed because it contains a syntax error.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sso_admin/_services/async_sso_admin.py
2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 | |