SageMaker / Paginator / ListClusterOperations

ListClusterOperations

class SageMaker.Paginator.ListClusterOperations
paginator = client.get_paginator('list_cluster_operations')
paginate(**kwargs)

Creates an iterator that will paginate through responses from SageMaker.Client.list_cluster_operations().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    ClusterName='string',
    Status='InProgress'|'Superseded'|'Done',
    Type='Scaling'|'DeepHealthCheck',
    CreationTimeAfter=datetime(2015, 1, 1),
    CreationTimeBefore=datetime(2015, 1, 1),
    SortBy='CreationTime',
    SortOrder='Ascending'|'Descending',
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters:
  • ClusterName (string) –

    [REQUIRED]

    The name or Amazon Resource Name (ARN) of the HyperPod cluster for which to list operations.

  • Status (string) – The operation status to filter by. If specified, only operations with this status are returned. Valid values are InProgress, Superseded, or Done.

  • Type (string) – The operation type to filter by. If specified, only operations of this type are returned. Valid values are Scaling or DeepHealthCheck.

  • CreationTimeAfter (datetime) – The start of the time range for filtering operations. Only operations created after this time are included in the results.

  • CreationTimeBefore (datetime) – The end of the time range for filtering operations. Only operations created before this time are included in the results.

  • SortBy (string) – The field to use for sorting the operation list. Currently, the only supported value is CreationTime.

  • SortOrder (string) – The order in which to sort the results. Valid values are Ascending or Descending (the default is Descending).

  • PaginationConfig (dict) –

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) –

      The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

    • PageSize (integer) –

      The size of each page.

    • StartingToken (string) –

      A token to specify where to start paginating. This is the NextToken from a previous response.

Return type:

dict

Returns:

Response Syntax

{
    'ClusterOperationSummaries': [
        {
            'OperationId': 'string',
            'ClusterArn': 'string',
            'Type': 'Scaling'|'DeepHealthCheck',
            'Status': 'InProgress'|'Superseded'|'Done',
            'CreationTime': datetime(2015, 1, 1)
        },
    ]
}

Response Structure

  • (dict) –

    • ClusterOperationSummaries (list) –

      A list of operation summaries matching the specified criteria.

      • (dict) –

        A summary of an operation performed on a HyperPod cluster.

        • OperationId (string) –

          The unique identifier (UUID) of the operation.

        • ClusterArn (string) –

          The Amazon Resource Name (ARN) of the HyperPod cluster associated with the operation.

        • Type (string) –

          The type of the operation. Valid values are Scaling or DeepHealthCheck.

        • Status (string) –

          The current status of the operation. Valid values are InProgress, Superseded, or Done.

        • CreationTime (datetime) –

          The timestamp when the operation was created.