Skip to content

Paginators#

Index > SageMaker > Paginators

Auto-generated documentation for SageMaker type annotations stubs module mypy-boto3-sagemaker.

ListActionsPaginator#

Type annotations and code completion for boto3.client("sagemaker").get_paginator("list_actions"). boto3 documentation

# ListActionsPaginator usage example

from boto3.session import Session

from mypy_boto3_sagemaker.paginator import ListActionsPaginator

def get_list_actions_paginator() -> ListActionsPaginator:
    return Session().client("sagemaker").get_paginator("list_actions")
# ListActionsPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_sagemaker.paginator import ListActionsPaginator

session = Session()

client = Session().client("sagemaker")  # (1)
paginator: ListActionsPaginator = client.get_paginator("list_actions")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: SageMakerClient
  2. paginator: ListActionsPaginator
  3. item: ListActionsResponseTypeDef

paginate#

Type annotations and code completion for ListActionsPaginator.paginate method.

# paginate method definition

def paginate(
    self,
    *,
    SourceUri: str = ...,
    ActionType: str = ...,
    CreatedAfter: Union[datetime, str] = ...,
    CreatedBefore: Union[datetime, str] = ...,
    SortBy: SortActionsByType = ...,  # (1)
    SortOrder: SortOrderType = ...,  # (2)
    PaginationConfig: PaginatorConfigTypeDef = ...,  # (3)
) -> _PageIterator[ListActionsResponseTypeDef]:  # (4)
    ...
  1. See SortActionsByType
  2. See SortOrderType
  3. See PaginatorConfigTypeDef
  4. See ListActionsResponseTypeDef
# paginate method usage example with argument unpacking

kwargs: ListActionsRequestListActionsPaginateTypeDef = {  # (1)
    "SourceUri": ...,
}

parent.paginate(**kwargs)
  1. See ListActionsRequestListActionsPaginateTypeDef

ListAlgorithmsPaginator#

Type annotations and code completion for boto3.client("sagemaker").get_paginator("list_algorithms"). boto3 documentation

# ListAlgorithmsPaginator usage example

from boto3.session import Session

from mypy_boto3_sagemaker.paginator import ListAlgorithmsPaginator

def get_list_algorithms_paginator() -> ListAlgorithmsPaginator:
    return Session().client("sagemaker").get_paginator("list_algorithms")
# ListAlgorithmsPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_sagemaker.paginator import ListAlgorithmsPaginator

session = Session()

client = Session().client("sagemaker")  # (1)
paginator: ListAlgorithmsPaginator = client.get_paginator("list_algorithms")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: SageMakerClient
  2. paginator: ListAlgorithmsPaginator
  3. item: ListAlgorithmsOutputTypeDef

paginate#

Type annotations and code completion for ListAlgorithmsPaginator.paginate method.

# paginate method definition

def paginate(
    self,
    *,
    CreationTimeAfter: Union[datetime, str] = ...,
    CreationTimeBefore: Union[datetime, str] = ...,
    NameContains: str = ...,
    SortBy: AlgorithmSortByType = ...,  # (1)
    SortOrder: SortOrderType = ...,  # (2)
    PaginationConfig: PaginatorConfigTypeDef = ...,  # (3)
) -> _PageIterator[ListAlgorithmsOutputTypeDef]:  # (4)
    ...
  1. See AlgorithmSortByType
  2. See SortOrderType
  3. See PaginatorConfigTypeDef
  4. See