list_component_versions

list_component_versions(**kwargs)

Retrieves a paginated list of all versions for a component. Greater versions are listed first.

See also: AWS API Documentation

Request Syntax

response = client.list_component_versions(
    arn='string',
    maxResults=123,
    nextToken='string'
)
Parameters
  • arn (string) --

    [REQUIRED]

    The ARN of the component.

  • maxResults (integer) -- The maximum number of results to be returned per paginated request.
  • nextToken (string) -- The token to be used for the next set of paginated results.
Return type

dict

Returns

Response Syntax

{
    'componentVersions': [
        {
            'componentName': 'string',
            'componentVersion': 'string',
            'arn': 'string'
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) --

    • componentVersions (list) --

      A list of versions that exist for the component.

      • (dict) --

        Contains information about a component version in a list.

        • componentName (string) --

          The name of the component.

        • componentVersion (string) --

          The version of the component.

        • arn (string) --

          The ARN of the component version.

    • nextToken (string) --

      The token for the next set of results, or null if there are no additional results.

Exceptions

  • GreengrassV2.Client.exceptions.ValidationException
  • GreengrassV2.Client.exceptions.AccessDeniedException
  • GreengrassV2.Client.exceptions.ResourceNotFoundException
  • GreengrassV2.Client.exceptions.ThrottlingException
  • GreengrassV2.Client.exceptions.InternalServerException