list_group_versions

list_group_versions(**kwargs)

Lists the versions of a group.

See also: AWS API Documentation

Request Syntax

response = client.list_group_versions(
    GroupId='string',
    MaxResults='string',
    NextToken='string'
)
Parameters
  • GroupId (string) -- [REQUIRED] The ID of the Greengrass group.
  • 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

{
    'NextToken': 'string',
    'Versions': [
        {
            'Arn': 'string',
            'CreationTimestamp': 'string',
            'Id': 'string',
            'Version': 'string'
        },
    ]
}

Response Structure

  • (dict) -- Success. The response contains the list of versions and metadata for the given group.
    • NextToken (string) -- The token for the next set of results, or ''null'' if there are no additional results.
    • Versions (list) -- Information about a version.
      • (dict) -- Information about a version.
        • Arn (string) -- The ARN of the version.
        • CreationTimestamp (string) -- The time, in milliseconds since the epoch, when the version was created.
        • Id (string) -- The ID of the parent definition that the version is associated with.
        • Version (string) -- The ID of the version.

Exceptions

  • Greengrass.Client.exceptions.BadRequestException