list_service_versions

list_service_versions(**kwargs)

Lists all supported versions for Snow on-device services. Returns an array of ServiceVersion object containing the supported versions for a particular service.

See also: AWS API Documentation

Request Syntax

response = client.list_service_versions(
    ServiceName='KUBERNETES'|'EKS_ANYWHERE',
    DependentServices=[
        {
            'ServiceName': 'KUBERNETES'|'EKS_ANYWHERE',
            'ServiceVersion': {
                'Version': 'string'
            }
        },
    ],
    MaxResults=123,
    NextToken='string'
)
Parameters
  • ServiceName (string) --

    [REQUIRED]

    The name of the service for which you're requesting supported versions.

  • DependentServices (list) --

    A list of names and versions of dependant services of the requested service.

    • (dict) --

      The name and version of the service dependant on the requested service.

      • ServiceName (string) --

        The name of the dependent service.

      • ServiceVersion (dict) --

        The version of the dependent service.

        • Version (string) --

          The version number of the requested service.

  • MaxResults (integer) -- The maximum number of ListServiceVersions objects to return.
  • NextToken (string) -- Because HTTP requests are stateless, this is the starting point for the next list of returned ListServiceVersionsRequest versions.
Return type

dict

Returns

Response Syntax

{
    'ServiceVersions': [
        {
            'Version': 'string'
        },
    ],
    'ServiceName': 'KUBERNETES'|'EKS_ANYWHERE',
    'DependentServices': [
        {
            'ServiceName': 'KUBERNETES'|'EKS_ANYWHERE',
            'ServiceVersion': {
                'Version': 'string'
            }
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • ServiceVersions (list) --

      A list of supported versions.

      • (dict) --

        The version of the requested service.

        • Version (string) --

          The version number of the requested service.

    • ServiceName (string) --

      The name of the service for which the system provided supported versions.

    • DependentServices (list) --

      A list of names and versions of dependant services of the service for which the system provided supported versions.

      • (dict) --

        The name and version of the service dependant on the requested service.

        • ServiceName (string) --

          The name of the dependent service.

        • ServiceVersion (dict) --

          The version of the dependent service.

          • Version (string) --

            The version number of the requested service.

    • NextToken (string) --

      Because HTTP requests are stateless, this is the starting point of the next list of returned ListServiceVersionsResult results.

Exceptions

  • Snowball.Client.exceptions.InvalidNextTokenException
  • Snowball.Client.exceptions.InvalidResourceException