SecurityAgent / Paginator / ListMemberships
ListMemberships¶
- class SecurityAgent.Paginator.ListMemberships¶
paginator = client.get_paginator('list_memberships')
- paginate(**kwargs)¶
Creates an iterator that will paginate through responses from
SecurityAgent.Client.list_memberships().See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate( applicationId='string', agentSpaceId='string', memberType='USER'|'ALL', PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } )
- Parameters:
applicationId (string) –
[REQUIRED]
Application identifier
agentSpaceId (string) –
[REQUIRED]
Agent space identifier
memberType (string) – Filter by member type
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
{ 'membershipSummaries': [ { 'membershipId': 'string', 'applicationId': 'string', 'agentSpaceId': 'string', 'memberType': 'USER', 'config': { 'user': { 'role': 'MEMBER' } }, 'metadata': { 'user': { 'username': 'string', 'email': 'string' } }, 'createdAt': datetime(2015, 1, 1), 'updatedAt': datetime(2015, 1, 1), 'createdBy': 'string', 'updatedBy': 'string' }, ], 'NextToken': 'string' }
Response Structure
(dict) –
Response structure for listing members associated to an agent space
membershipSummaries (list) –
List of membership summaries
(dict) –
Membership summary for list operations
membershipId (string) –
Member identifier (userId or agentSpaceId)
applicationId (string) –
Application identifier
agentSpaceId (string) –
Agent space identifier
memberType (string) –
Type of member
config (dict) –
Configuration specific to the member type
Note
This is a Tagged Union structure. Only one of the following top level keys will be set:
user. 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'}
user (dict) –
Configuration for user members
role (string) –
Role of the user associated to the agent space
metadata (dict) –
Member-specific metadata
Note
This is a Tagged Union structure. Only one of the following top level keys will be set:
user. 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'}
user (dict) –
User metadata for USER members
username (string) –
User name/display name
email (string) –
User email address
createdAt (datetime) –
Timestamp when the membership was created (ISO 8601)
updatedAt (datetime) –
Timestamp when the membership was last updated (ISO 8601)
createdBy (string) –
User ID who created the membership
updatedBy (string) –
User ID who last updated the membership
NextToken (string) –
A token to resume pagination.