Paginators#
Auto-generated documentation for Redshift type annotations stubs module mypy-boto3-redshift.
DescribeClusterDbRevisionsPaginator#
Type annotations and code completion for boto3.client("redshift").get_paginator("describe_cluster_db_revisions")
.
boto3 documentation
# DescribeClusterDbRevisionsPaginator usage example
from boto3.session import Session
from mypy_boto3_redshift.paginator import DescribeClusterDbRevisionsPaginator
def get_describe_cluster_db_revisions_paginator() -> DescribeClusterDbRevisionsPaginator:
return Session().client("redshift").get_paginator("describe_cluster_db_revisions")
# DescribeClusterDbRevisionsPaginator usage example with type annotations
from boto3.session import Session
from mypy_boto3_redshift.paginator import DescribeClusterDbRevisionsPaginator
session = Session()
client = Session().client("redshift") # (1)
paginator: DescribeClusterDbRevisionsPaginator = client.get_paginator("describe_cluster_db_revisions") # (2)
for item in paginator.paginate(...):
print(item) # (3)
- client: RedshiftClient
- paginator: DescribeClusterDbRevisionsPaginator
- item: ClusterDbRevisionsMessageTypeDef
paginate#
Type annotations and code completion for DescribeClusterDbRevisionsPaginator.paginate
method.
# paginate method definition
def paginate(
self,
*,
ClusterIdentifier: str = ...,
PaginationConfig: PaginatorConfigTypeDef = ..., # (1)
) -> _PageIterator[ClusterDbRevisionsMessageTypeDef]: # (2)
...
# paginate method usage example with argument unpacking
kwargs: DescribeClusterDbRevisionsMessageDescribeClusterDbRevisionsPaginateTypeDef = { # (1)
"ClusterIdentifier": ...,
}
parent.paginate(**kwargs)
DescribeClusterParameterGroupsPaginator#
Type annotations and code completion for boto3.client("redshift").get_paginator("describe_cluster_parameter_groups")
.
boto3 documentation
# DescribeClusterParameterGroupsPaginator usage example
from boto3.session import Session
from mypy_boto3_redshift.paginator import DescribeClusterParameterGroupsPaginator
def get_describe_cluster_parameter_groups_paginator() -> DescribeClusterParameterGroupsPaginator:
return Session().client("redshift").get_paginator("describe_cluster_parameter_groups")
# DescribeClusterParameterGroupsPaginator usage example with type annotations
from boto3.session import Session
from mypy_boto3_redshift.paginator import DescribeClusterParameterGroupsPaginator
session = Session()
client = Session().client("redshift") # (1)
paginator: DescribeClusterParameterGroupsPaginator = client.get_paginator("describe_cluster_parameter_groups") # (2)
for item in paginator.paginate(...):
print(item) # (3)
- client: RedshiftClient
- paginator: DescribeClusterParameterGroupsPaginator
- item: ClusterParameterGroupsMessageTypeDef
paginate#
Type annotations and code completion for DescribeClusterParameterGroupsPaginator.paginate
method.
# paginate method definition
def paginate(
self,
*,
ParameterGroupName: str = ...,
TagKeys: Sequence[str] = ...,
TagValues: Sequence[str] = ...,
PaginationConfig: PaginatorConfigTypeDef = ..., # (1)
) -> _PageIterator[ClusterParameterGroupsMessageTypeDef]: # (2)
...