Skip to content

Paginators#

Index > OpsWorksCM > Paginators

Auto-generated documentation for OpsWorksCM type annotations stubs module mypy-boto3-opsworkscm.

DescribeBackupsPaginator#

Type annotations and code completion for boto3.client("opsworkscm").get_paginator("describe_backups"). boto3 documentation

# DescribeBackupsPaginator usage example

from boto3.session import Session

from mypy_boto3_opsworkscm.paginator import DescribeBackupsPaginator

def get_describe_backups_paginator() -> DescribeBackupsPaginator:
    return Session().client("opsworkscm").get_paginator("describe_backups")
# DescribeBackupsPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_opsworkscm.paginator import DescribeBackupsPaginator

session = Session()

client = Session().client("opsworkscm")  # (1)
paginator: DescribeBackupsPaginator = client.get_paginator("describe_backups")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: OpsWorksCMClient
  2. paginator: DescribeBackupsPaginator
  3. item: DescribeBackupsResponseTypeDef

paginate#

Type annotations and code completion for DescribeBackupsPaginator.paginate method.

# paginate method definition

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

kwargs: DescribeBackupsRequestPaginateTypeDef = {  # (1)
    "BackupId": ...,
}

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

DescribeEventsPaginator#

Type annotations and code completion for boto3.client("opsworkscm").get_paginator("describe_events"). boto3 documentation

# DescribeEventsPaginator usage example

from boto3.session import Session

from mypy_boto3_opsworkscm.paginator import DescribeEventsPaginator

def get_describe_events_paginator() -> DescribeEventsPaginator:
    return Session().client("opsworkscm").get_paginator("describe_events")
# DescribeEventsPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_opsworkscm.paginator import DescribeEventsPaginator

session = Session()

client = Session().client("opsworkscm")  # (1)
paginator: DescribeEventsPaginator = client.get_paginator("describe_events")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: OpsWorksCMClient
  2. paginator: DescribeEventsPaginator
  3. item: DescribeEventsResponseTypeDef

paginate#

Type annotations and code completion for DescribeEventsPaginator.paginate method.

# paginate method definition

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

kwargs: DescribeEventsRequestPaginateTypeDef = {  # (1)
    "ServerName": ...,
}

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

DescribeServersPaginator#

Type annotations and code completion for boto3.client("opsworkscm").get_paginator("describe_servers"). boto3 documentation

# DescribeServersPaginator usage example

from boto3.session import Session

from mypy_boto3_opsworkscm.paginator import DescribeServersPaginator

def get_describe_servers_paginator() -> DescribeServersPaginator:
    return Session().client("opsworkscm").get_paginator("describe_servers")
# DescribeServersPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_opsworkscm.paginator import DescribeServersPaginator

session = Session()

client = Session().client("opsworkscm")  # (1)
paginator: DescribeServersPaginator = client.get_paginator("describe_servers")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: OpsWorksCMClient
  2. paginator: DescribeServersPaginator
  3. item: DescribeServersResponseTypeDef

paginate#

Type annotations and code completion for DescribeServersPaginator.paginate method.

# paginate method definition

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

kwargs: DescribeServersRequestPaginateTypeDef = {  # (1)
    "ServerName": ...,
}

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

ListTagsForResourcePaginator#

Type annotations and code completion for boto3.client("opsworkscm").get_paginator("list_tags_for_resource"). boto3 documentation

# ListTagsForResourcePaginator usage example

from boto3.session import Session

from mypy_boto3_opsworkscm.paginator import ListTagsForResourcePaginator

def get_list_tags_for_resource_paginator() -> ListTagsForResourcePaginator:
    return Session().client("opsworkscm").get_paginator("list_tags_for_resource")
# ListTagsForResourcePaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_opsworkscm.paginator import ListTagsForResourcePaginator

session = Session()

client = Session().client("opsworkscm")  # (1)
paginator: ListTagsForResourcePaginator = client.get_paginator("list_tags_for_resource")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: OpsWorksCMClient
  2. paginator: ListTagsForResourcePaginator
  3. item: ListTagsForResourceResponseTypeDef

paginate#

Type annotations and code completion for ListTagsForResourcePaginator.paginate method.

# paginate method definition

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

kwargs: ListTagsForResourceRequestPaginateTypeDef = {  # (1)
    "ResourceArn": ...,
}

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