SecurityIncidentResponse / Client / list_memberships
list_memberships#
- SecurityIncidentResponse.Client.list_memberships(**kwargs)#
Grants permission to query the memberships a principal has access to.
See also: AWS API Documentation
Request Syntax
response = client.list_memberships( nextToken='string', maxResults=123 )
- Parameters:
nextToken (string) – Optional element.
maxResults (integer) – Request element for ListMemberships to limit the number of responses.
- Return type:
dict
- Returns:
Response Syntax
{ 'nextToken': 'string', 'items': [ { 'membershipId': 'string', 'accountId': 'string', 'region': 'af-south-1'|'ap-east-1'|'ap-northeast-1'|'ap-northeast-2'|'ap-northeast-3'|'ap-south-1'|'ap-south-2'|'ap-southeast-1'|'ap-southeast-2'|'ap-southeast-3'|'ap-southeast-4'|'ap-southeast-5'|'ca-central-1'|'ca-west-1'|'cn-north-1'|'cn-northwest-1'|'eu-central-1'|'eu-central-2'|'eu-north-1'|'eu-south-1'|'eu-south-2'|'eu-west-1'|'eu-west-2'|'eu-west-3'|'il-central-1'|'me-central-1'|'me-south-1'|'sa-east-1'|'us-east-1'|'us-east-2'|'us-west-1'|'us-west-2', 'membershipArn': 'string', 'membershipStatus': 'Active'|'Cancelled'|'Terminated' }, ] }
Response Structure
(dict) –
nextToken (string) –
Optional element.
items (list) –
Request element for ListMemberships including the accountID, membershipARN, membershipID, membershipStatus, and region for each response.
(dict) –
membershipId (string) –
accountId (string) –
region (string) –
membershipArn (string) –
membershipStatus (string) –
Exceptions
SecurityIncidentResponse.Client.exceptions.ServiceQuotaExceededException
SecurityIncidentResponse.Client.exceptions.AccessDeniedException
SecurityIncidentResponse.Client.exceptions.ValidationException
SecurityIncidentResponse.Client.exceptions.SecurityIncidentResponseNotActiveException
SecurityIncidentResponse.Client.exceptions.InternalServerException
SecurityIncidentResponse.Client.exceptions.ConflictException
SecurityIncidentResponse.Client.exceptions.ResourceNotFoundException
SecurityIncidentResponse.Client.exceptions.ThrottlingException
SecurityIncidentResponse.Client.exceptions.InvalidTokenException