AccountAccess / Paginator / ListEntitlements
ListEntitlements¶
- class AccountAccess.Paginator.ListEntitlements¶
paginator = client.get_paginator('list_entitlements')
- paginate(**kwargs)¶
Creates an iterator that will paginate through responses from
AccountAccess.Client.list_entitlements().See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate( applicationArn='string', filter={ 'principalRole': { 'principal': { 'identityCenter': { 'userId': 'string', 'groupId': 'string' } }, 'roleArn': 'string', 'account': 'string' } }, PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } )
- Parameters:
applicationArn (string) –
[REQUIRED]
Specifies the ARN of the application to list entitlements for.
filter (dict) –
[REQUIRED]
Specifies filter criteria to narrow the entitlements returned. You can filter by principal, IAM role, or account.
principalRole (dict) –
The principal-to-role filter criteria for narrowing entitlement results.
principal (dict) –
The principal to filter entitlements by.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:
identityCenter.identityCenter (dict) –
The IAM Identity Center principal filter criteria.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:
userId,groupId.userId (string) –
The unique identifier of a user in IAM Identity Center to filter by.
groupId (string) –
The unique identifier of a group in IAM Identity Center to filter by.
roleArn (string) –
The IAM role ARN to filter entitlements by.
account (string) –
The 12-digit Amazon Web Services account ID to filter entitlements by.
PaginationConfig (dict) –
A dictionary that provides parameters to control pagination.
MaxItems (integer) –
The total number of items to return. If the total number of items available is more than the value specified in max-items then a
NextTokenwill be provided in the output that you can use to resume pagination.PageSize (integer) –
The size of each page.
StartingToken (string) –
A token to specify where to start paginating. This is the
NextTokenfrom a previous response.
- Return type:
dict
- Returns:
Response Syntax
{ 'entitlements': [ { 'entitlementId': 'string', 'entitlement': { 'principalRole': { 'principal': { 'identityCenter': { 'userId': 'string', 'groupId': 'string' } }, 'roleArn': 'string', 'account': 'string', 'accountName': 'string' } }, 'createdAt': datetime(2015, 1, 1) }, ], 'NextToken': 'string' }
Response Structure
(dict) –
entitlements (list) –
The list of entitlements for the specified application.
(dict) –
Contains information about an entitlement in a list result.
entitlementId (string) –
The unique identifier of the entitlement.
entitlement (dict) –
The summary information for the entitlement.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set:
principalRole. If a client receives an unknown member it will setSDK_UNKNOWN_MEMBERas the top level key, which maps to the name or tag of the unknown member. The structure ofSDK_UNKNOWN_MEMBERis as follows:'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
principalRole (dict) –
The principal-to-role mapping summary for the entitlement.
principal (dict) –
The principal (user or group) that is granted access to assume the IAM role.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set:
identityCenter. If a client receives an unknown member it will setSDK_UNKNOWN_MEMBERas the top level key, which maps to the name or tag of the unknown member. The structure ofSDK_UNKNOWN_MEMBERis as follows:'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
identityCenter (dict) –
The IAM Identity Center principal (user or group).
Note
This is a Tagged Union structure. Only one of the following top level keys will be set:
userId,groupId. If a client receives an unknown member it will setSDK_UNKNOWN_MEMBERas the top level key, which maps to the name or tag of the unknown member. The structure ofSDK_UNKNOWN_MEMBERis as follows:'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
userId (string) –
The unique identifier of a user in IAM Identity Center.
groupId (string) –
The unique identifier of a group in IAM Identity Center.
roleArn (string) –
The ARN of the IAM role that the principal can assume.
account (string) –
The 12-digit Amazon Web Services account ID where the IAM role resides.
accountName (string) –
The friendly name of the Amazon Web Services account where the IAM role resides.
createdAt (datetime) –
The date and time when the entitlement was created.
NextToken (string) –
A token to resume pagination.