Skip to content

Paginators#

Index > CostOptimizationHub > Paginators

Auto-generated documentation for CostOptimizationHub type annotations stubs module mypy-boto3-cost-optimization-hub.

ListEnrollmentStatusesPaginator#

Type annotations and code completion for boto3.client("cost-optimization-hub").get_paginator("list_enrollment_statuses"). boto3 documentation

# ListEnrollmentStatusesPaginator usage example

from boto3.session import Session

from mypy_boto3_cost_optimization_hub.paginator import ListEnrollmentStatusesPaginator

def get_list_enrollment_statuses_paginator() -> ListEnrollmentStatusesPaginator:
    return Session().client("cost-optimization-hub").get_paginator("list_enrollment_statuses")
# ListEnrollmentStatusesPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_cost_optimization_hub.paginator import ListEnrollmentStatusesPaginator

session = Session()

client = Session().client("cost-optimization-hub")  # (1)
paginator: ListEnrollmentStatusesPaginator = client.get_paginator("list_enrollment_statuses")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: CostOptimizationHubClient
  2. paginator: ListEnrollmentStatusesPaginator
  3. item: ListEnrollmentStatusesResponseTypeDef

paginate#

Type annotations and code completion for ListEnrollmentStatusesPaginator.paginate method.

# paginate method definition

def paginate(
    self,
    *,
    includeOrganizationInfo: bool = ...,
    accountId: str = ...,
    PaginationConfig: PaginatorConfigTypeDef = ...,  # (1)
) -> PageIterator[ListEnrollmentStatusesResponseTypeDef]:  # (2)
    ...
  1. See PaginatorConfigTypeDef
  2. See ListEnrollmentStatusesResponseTypeDef
# paginate method usage example with argument unpacking

kwargs: ListEnrollmentStatusesRequestPaginateTypeDef = {  # (1)
    "includeOrganizationInfo": ...,
}

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

ListRecommendationSummariesPaginator#

Type annotations and code completion for boto3.client("cost-optimization-hub").get_paginator("list_recommendation_summaries"). boto3 documentation

# ListRecommendationSummariesPaginator usage example

from boto3.session import Session

from mypy_boto3_cost_optimization_hub.paginator import ListRecommendationSummariesPaginator

def get_list_recommendation_summaries_paginator() -> ListRecommendationSummariesPaginator:
    return Session().client("cost-optimization-hub").get_paginator("list_recommendation_summaries")
# ListRecommendationSummariesPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_cost_optimization_hub.paginator import ListRecommendationSummariesPaginator

session = Session()

client = Session().client("cost-optimization-hub")  # (1)
paginator: ListRecommendationSummariesPaginator = client.get_paginator("list_recommendation_summaries")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: CostOptimizationHubClient
  2. paginator: ListRecommendationSummariesPaginator
  3. item: ListRecommendationSummariesResponseTypeDef

paginate#

Type annotations and code completion for ListRecommendationSummariesPaginator.paginate method.

# paginate method definition

def paginate(
    self,
    *,
    groupBy: str,
    filter: FilterTypeDef = ...,  # (1)
    metrics: Sequence[SummaryMetricsType] = ...,  # (2)
    PaginationConfig: PaginatorConfigTypeDef = ...,  # (3)
) -> PageIterator[ListRecommendationSummariesResponseTypeDef]:  # (4)
    ...
  1. See FilterTypeDef
  2. See SummaryMetricsType
  3. See PaginatorConfigTypeDef
  4. See ListRecommendationSummariesResponseTypeDef
# paginate method usage example with argument unpacking

kwargs: ListRecommendationSummariesRequestPaginateTypeDef = {  # (1)
    "groupBy": ...,
}

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

ListRecommendationsPaginator#

Type annotations and code completion for boto3.client("cost-optimization-hub").get_paginator("list_recommendations"). boto3 documentation

# ListRecommendationsPaginator usage example

from boto3.session import Session

from mypy_boto3_cost_optimization_hub.paginator import ListRecommendationsPaginator

def get_list_recommendations_paginator() -> ListRecommendationsPaginator:
    return Session().client("cost-optimization-hub").get_paginator("list_recommendations")
# ListRecommendationsPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_cost_optimization_hub.paginator import ListRecommendationsPaginator

session = Session()

client = Session().client("cost-optimization-hub")  # (1)
paginator: ListRecommendationsPaginator = client.get_paginator("list_recommendations")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: CostOptimizationHubClient
  2. paginator: ListRecommendationsPaginator
  3. item: ListRecommendationsResponseTypeDef

paginate#

Type annotations and code completion for ListRecommendationsPaginator.paginate method.

# paginate method definition

def paginate(
    self,
    *,
    filter: FilterTypeDef = ...,  # (1)
    orderBy: OrderByTypeDef = ...,  # (2)
    includeAllRecommendations: bool = ...,
    PaginationConfig: PaginatorConfigTypeDef = ...,  # (3)
) -> PageIterator[ListRecommendationsResponseTypeDef]:  # (4)
    ...
  1. See FilterTypeDef
  2. See OrderByTypeDef
  3. See PaginatorConfigTypeDef
  4. See ListRecommendationsResponseTypeDef
# paginate method usage example with argument unpacking

kwargs: ListRecommendationsRequestPaginateTypeDef = {  # (1)
    "filter": ...,
}

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