delete_account_assignment
¶
delete_account_assignment(
instance_arn: InstanceArn,
target_id: TargetId,
target_type: TargetType,
permission_set_arn: PermissionSetArn,
principal_type: PrincipalType,
principal_id: PrincipalId,
*,
config_overrides: Optional[SSOAdminClientConfig] = None,
) -> DeleteAccountAssignmentResponse
Deletes a principal's access from a specified Amazon Web Services account using a specified permission set.
After a successful response, call DescribeAccountAssignmentDeletionStatus to describe the status of an assignment deletion request.
Parameters:
-
instance_arn(InstanceArn) –The ARN of the IAM Identity Center instance under which the operation will be executed. For more information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.
-
target_id(TargetId) –TargetID is an Amazon Web Services account identifier, (For example, 123456789012).
-
target_type(TargetType) –The entity type for which the assignment will be deleted.
-
permission_set_arn(PermissionSetArn) –The ARN of the permission set that will be used to remove access.
-
principal_type(PrincipalType) –The entity type for which the assignment will be deleted.
-
principal_id(PrincipalId) –An identifier for an object in IAM Identity Center, such as a user or group. PrincipalIds are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6). For more information about PrincipalIds in IAM Identity Center, see the IAM Identity Center Identity Store API Reference.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ConflictException–Occurs when a conflict with a previous successful write is detected. This generally occurs when the previous write did not have time to propagate to the host serving the current request. A retry (with appropriate backoff logic) is the recommended response to this exception.
-
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/sso_admin.py
1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 | |