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)
- client: OpsWorksCMClient
- paginator: DescribeBackupsPaginator
- 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)
...
# paginate method usage example with argument unpacking
kwargs: DescribeBackupsRequestDescribeBackupsPaginateTypeDef = { # (1)
"BackupId": ...,
}
parent.paginate(**kwargs)
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)
- client: OpsWorksCMClient
- paginator: DescribeEventsPaginator
- 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)
...
# paginate method usage example with argument unpacking
kwargs: DescribeEventsRequestDescribeEventsPaginateTypeDef = { # (1)
"ServerName": ...,
}
parent.paginate(**kwargs)
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)
- client: OpsWorksCMClient
- paginator: DescribeServersPaginator
- 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)
...
# paginate method usage example with argument unpacking
kwargs: DescribeServersRequestDescribeServersPaginateTypeDef = { # (1)
"ServerName": ...,
}
parent.paginate(**kwargs)
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)
- client: OpsWorksCMClient
- paginator: ListTagsForResourcePaginator
- 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)
...
# paginate method usage example with argument unpacking
kwargs: ListTagsForResourceRequestListTagsForResourcePaginateTypeDef = { # (1)
"ResourceArn": ...,
}
parent.paginate(**kwargs)