Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

list_groups

list_groups(**kwargs)

Retrieves a list of groups.

See also: AWS API Documentation

Request Syntax

response = client.list_groups(
    MaxResults='string',
    NextToken='string'
)
Parameters
  • MaxResults (string) -- The maximum number of results to be returned per request.
  • NextToken (string) -- The token for the next set of results, or ''null'' if there are no additional results.
Return type

dict

Returns

Response Syntax

{
    'Groups': [
        {
            'Arn': 'string',
            'CreationTimestamp': 'string',
            'Id': 'string',
            'LastUpdatedTimestamp': 'string',
            'LatestVersion': 'string',
            'LatestVersionArn': 'string',
            'Name': 'string'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --
    • Groups (list) -- Information about a group.
      • (dict) -- Information about a group.
        • Arn (string) -- The ARN of the group.
        • CreationTimestamp (string) -- The time, in milliseconds since the epoch, when the group was created.
        • Id (string) -- The ID of the group.
        • LastUpdatedTimestamp (string) -- The time, in milliseconds since the epoch, when the group was last updated.
        • LatestVersion (string) -- The ID of the latest version associated with the group.
        • LatestVersionArn (string) -- The ARN of the latest version associated with the group.
        • Name (string) -- The name of the group.
    • NextToken (string) -- The token for the next set of results, or ''null'' if there are no additional results.