list_entitlements
async
¶
list_entitlements(
application_arn: ApplicationArn,
filter: EntitlementFilter,
*,
config_overrides: Optional[AsyncAccountAccessClientConfig] = None,
next_token: Optional[str] = None,
max_results: Optional[int] = None,
) -> ListEntitlementsResponse
Lists the entitlements for a specified account access manager application. You can filter results by principal, IAM role, or account. Use pagination to ensure that the operation returns quickly and successfully.
Parameters:
-
application_arn(ApplicationArn) –Specifies the ARN of the application to list entitlements for.
-
filter(EntitlementFilter) –Specifies filter criteria to narrow the entitlements returned. You can filter by principal, IAM role, or account.
-
next_token(Optional[str], default:None) –Specifies the pagination token from a previous call to retrieve the next set of results.
-
max_results(Optional[int], default:None) –Specifies the maximum number of results to return in a single call.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this operation.
-
InternalServerException–An internal service error occurred. Try your request again later.
-
ResourceNotFoundException–The specified resource does not exist. Verify that the resource identifier is correct and that the resource exists in the current Region.
-
ThrottlingException–The request was denied due to request throttling. Try your request again later.
-
ValidationException–The input does not satisfy the constraints specified by the service. Check your request parameters and retry the request.
-
UnknownServiceError–The service returned an error code this client does not model.