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]
The unique identifier of the application that contains the agent space.
agentSpaceId (string) –
[REQUIRED]
The unique identifier of the agent space to list memberships for.
memberType (string) – Filter memberships 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) –
The list of membership summaries.
(dict) –
Contains summary information about a membership.
membershipId (string) –
The unique identifier of the membership.
applicationId (string) –
The unique identifier of the application.
agentSpaceId (string) –
The unique identifier of the agent space.
memberType (string) –
The type of member.
config (dict) –
The configuration for the membership.
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) –
The user configuration for the membership.
role (string) –
The role assigned to the user. Currently, only MEMBER is supported.
metadata (dict) –
The metadata for the member.
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) –
The user metadata for the member.
username (string) –
The username of the user.
email (string) –
The email address of the user.
createdAt (datetime) –
The date and time the membership was created, in UTC format.
updatedAt (datetime) –
The date and time the membership was last updated, in UTC format.
createdBy (string) –
The identifier of the entity that created the membership.
updatedBy (string) –
The identifier of the entity that last updated the membership.
NextToken (string) –
A token to resume pagination.