SageMaker / Paginator / ListNotebookInstanceLifecycleConfigs

ListNotebookInstanceLifecycleConfigs#

class SageMaker.Paginator.ListNotebookInstanceLifecycleConfigs#
paginator = client.get_paginator('list_notebook_instance_lifecycle_configs')
paginate(**kwargs)#

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

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    SortBy='Name'|'CreationTime'|'LastModifiedTime',
    SortOrder='Ascending'|'Descending',
    NameContains='string',
    CreationTimeBefore=datetime(2015, 1, 1),
    CreationTimeAfter=datetime(2015, 1, 1),
    LastModifiedTimeBefore=datetime(2015, 1, 1),
    LastModifiedTimeAfter=datetime(2015, 1, 1),
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters:
  • SortBy (string) – Sorts the list of results. The default is CreationTime.

  • SortOrder (string) – The sort order for results.

  • NameContains (string) – A string in the lifecycle configuration name. This filter returns only lifecycle configurations whose name contains the specified string.

  • CreationTimeBefore (datetime) – A filter that returns only lifecycle configurations that were created before the specified time (timestamp).

  • CreationTimeAfter (datetime) – A filter that returns only lifecycle configurations that were created after the specified time (timestamp).

  • LastModifiedTimeBefore (datetime) – A filter that returns only lifecycle configurations that were modified before the specified time (timestamp).

  • LastModifiedTimeAfter (datetime) – A filter that returns only lifecycle configurations that were modified after the specified time (timestamp).

  • 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

{
    'NotebookInstanceLifecycleConfigs': [
        {
            'NotebookInstanceLifecycleConfigName': 'string',
            'NotebookInstanceLifecycleConfigArn': 'string',
            'CreationTime': datetime(2015, 1, 1),
            'LastModifiedTime': datetime(2015, 1, 1)
        },
    ]
}

Response Structure

  • (dict) –

    • NotebookInstanceLifecycleConfigs (list) –

      An array of NotebookInstanceLifecycleConfiguration objects, each listing a lifecycle configuration.

      • (dict) –

        Provides a summary of a notebook instance lifecycle configuration.

        • NotebookInstanceLifecycleConfigName (string) –

          The name of the lifecycle configuration.

        • NotebookInstanceLifecycleConfigArn (string) –

          The Amazon Resource Name (ARN) of the lifecycle configuration.

        • CreationTime (datetime) –

          A timestamp that tells when the lifecycle configuration was created.

        • LastModifiedTime (datetime) –

          A timestamp that tells when the lifecycle configuration was last modified.