Paginators#
Auto-generated documentation for KMS type annotations stubs module mypy-boto3-kms.
DescribeCustomKeyStoresPaginator#
Type annotations and code completion for boto3.client("kms").get_paginator("describe_custom_key_stores")
.
boto3 documentation
# DescribeCustomKeyStoresPaginator usage example
from boto3.session import Session
from mypy_boto3_kms.paginator import DescribeCustomKeyStoresPaginator
def get_describe_custom_key_stores_paginator() -> DescribeCustomKeyStoresPaginator:
return Session().client("kms").get_paginator("describe_custom_key_stores")
# DescribeCustomKeyStoresPaginator usage example with type annotations
from boto3.session import Session
from mypy_boto3_kms.paginator import DescribeCustomKeyStoresPaginator
session = Session()
client = Session().client("kms") # (1)
paginator: DescribeCustomKeyStoresPaginator = client.get_paginator("describe_custom_key_stores") # (2)
for item in paginator.paginate(...):
print(item) # (3)
- client: KMSClient
- paginator: DescribeCustomKeyStoresPaginator
- item: DescribeCustomKeyStoresResponseTypeDef
paginate#
Type annotations and code completion for DescribeCustomKeyStoresPaginator.paginate
method.
# paginate method definition
def paginate(
self,
*,
CustomKeyStoreId: str = ...,
CustomKeyStoreName: str = ...,
PaginationConfig: PaginatorConfigTypeDef = ..., # (1)
) -> _PageIterator[DescribeCustomKeyStoresResponseTypeDef]: # (2)
...
# paginate method usage example with argument unpacking
kwargs: DescribeCustomKeyStoresRequestDescribeCustomKeyStoresPaginateTypeDef = { # (1)
"CustomKeyStoreId": ...,
}
parent.paginate(**kwargs)
ListAliasesPaginator#
Type annotations and code completion for boto3.client("kms").get_paginator("list_aliases")
.
boto3 documentation
# ListAliasesPaginator usage example
from boto3.session import Session
from mypy_boto3_kms.paginator import ListAliasesPaginator
def get_list_aliases_paginator() -> ListAliasesPaginator:
return Session().client("kms").get_paginator("list_aliases")
# ListAliasesPaginator usage example with type annotations
from boto3.session import Session
from mypy_boto3_kms.paginator import ListAliasesPaginator
session = Session()
client = Session().client("kms") # (1)
paginator: ListAliasesPaginator = client.get_paginator("list_aliases") # (2)
for item in paginator.paginate(...):
print(item) # (3)
- client: KMSClient
- paginator: ListAliasesPaginator
- item: ListAliasesResponseTypeDef
paginate#
Type annotations and code completion for ListAliasesPaginator.paginate
method.
# paginate method definition
def paginate(
self,
*,
KeyId: str = ...,
PaginationConfig: PaginatorConfigTypeDef = ..., # (1)
) -> _PageIterator[ListAliasesResponseTypeDef]: # (2)
...
# paginate method usage example with argument unpacking
kwargs: ListAliasesRequestListAliasesPaginateTypeDef = { # (1)
"KeyId": ...,
}
parent.paginate(**kwargs)
ListGrantsPaginator#
Type annotations and code completion for boto3.client("kms").get_paginator("list_grants")
.
boto3 documentation
# ListGrantsPaginator usage example
from boto3.session import Session
from mypy_boto3_kms.paginator import ListGrantsPaginator
def get_list_grants_paginator() -> ListGrantsPaginator:
return Session().client("kms").get_paginator("list_grants")
# ListGrantsPaginator usage example with type annotations
from boto3.session import Session
from mypy_boto3_kms.paginator import ListGrantsPaginator
session = Session()
client = Session().client("kms") # (1)
paginator: ListGrantsPaginator = client.get_paginator("list_grants") # (2)
for item in paginator.paginate(...):
print(item) # (3)
- client: KMSClient
- paginator: ListGrantsPaginator
- item: ListGrantsResponseTypeDef
paginate#
Type annotations and code completion for ListGrantsPaginator.paginate
method.
# paginate method definition
def paginate(
self,
*,
KeyId: str,
GrantId: str = ...,
GranteePrincipal: str = ...,
PaginationConfig: PaginatorConfigTypeDef = ..., # (1)
) -> _PageIterator[ListGrantsResponseTypeDef]: # (2)
...
# paginate method usage example with argument unpacking
kwargs: ListGrantsRequestListGrantsPaginateTypeDef = { # (1)
"KeyId": ...,
}
parent.paginate(**kwargs)
ListKeyPoliciesPaginator#
Type annotations and code completion for boto3.client("kms").get_paginator("list_key_policies")
.
boto3 documentation
# ListKeyPoliciesPaginator usage example
from boto3.session import Session
from mypy_boto3_kms.paginator import ListKeyPoliciesPaginator
def get_list_key_policies_paginator() -> ListKeyPoliciesPaginator:
return Session().client("kms").get_paginator("list_key_policies")
# ListKeyPoliciesPaginator usage example with type annotations
from boto3.session import Session
from mypy_boto3_kms.paginator import ListKeyPoliciesPaginator
session = Session()
client = Session().client("kms") # (1)
paginator: ListKeyPoliciesPaginator = client.get_paginator("list_key_policies") # (2)
for item in paginator.paginate(...):
print(item) # (3)
- client: KMSClient
- paginator: ListKeyPoliciesPaginator
- item: ListKeyPoliciesResponseTypeDef
paginate#
Type annotations and code completion for ListKeyPoliciesPaginator.paginate
method.
# paginate method definition
def paginate(
self,
*,
KeyId: str,
PaginationConfig: PaginatorConfigTypeDef = ..., # (1)
) -> _PageIterator[ListKeyPoliciesResponseTypeDef]: # (2)
...
# paginate method usage example with argument unpacking
kwargs: ListKeyPoliciesRequestListKeyPoliciesPaginateTypeDef = { # (1)
"KeyId": ...,
}
parent.paginate(**kwargs)
ListKeyRotationsPaginator#
Type annotations and code completion for boto3.client("kms").get_paginator("list_key_rotations")
.
boto3 documentation
# ListKeyRotationsPaginator usage example
from boto3.session import Session
from mypy_boto3_kms.paginator import ListKeyRotationsPaginator
def get_list_key_rotations_paginator() -> ListKeyRotationsPaginator:
return Session().client("kms").get_paginator("list_key_rotations")
# ListKeyRotationsPaginator usage example with type annotations
from boto3.session import Session
from mypy_boto3_kms.paginator import ListKeyRotationsPaginator
session = Session()
client = Session().client("kms") # (1)
paginator: ListKeyRotationsPaginator = client.get_paginator("list_key_rotations") # (2)
for item in paginator.paginate(...):
print(item) # (3)
- client: KMSClient
- paginator: ListKeyRotationsPaginator
- item: ListKeyRotationsResponseTypeDef
paginate#
Type annotations and code completion for ListKeyRotationsPaginator.paginate
method.
# paginate method definition
def paginate(
self,
*,
KeyId: str,
PaginationConfig: PaginatorConfigTypeDef = ..., # (1)
) -> _PageIterator[ListKeyRotationsResponseTypeDef]: # (2)
...
# paginate method usage example with argument unpacking
kwargs: ListKeyRotationsRequestListKeyRotationsPaginateTypeDef = { # (1)
"KeyId": ...,
}
parent.paginate(**kwargs)
ListKeysPaginator#
Type annotations and code completion for boto3.client("kms").get_paginator("list_keys")
.
boto3 documentation
# ListKeysPaginator usage example
from boto3.session import Session
from mypy_boto3_kms.paginator import ListKeysPaginator
def get_list_keys_paginator() -> ListKeysPaginator:
return Session().client("kms").get_paginator("list_keys")
# ListKeysPaginator usage example with type annotations
from boto3.session import Session
from mypy_boto3_kms.paginator import ListKeysPaginator
session = Session()
client = Session().client("kms") # (1)
paginator: ListKeysPaginator = client.get_paginator("list_keys") # (2)
for item in paginator.paginate(...):
print(item) # (3)
- client: KMSClient
- paginator: ListKeysPaginator
- item: ListKeysResponseTypeDef
paginate#
Type annotations and code completion for ListKeysPaginator.paginate
method.
# paginate method definition
def paginate(
self,
*,
PaginationConfig: PaginatorConfigTypeDef = ..., # (1)
) -> _PageIterator[ListKeysResponseTypeDef]: # (2)
...
# paginate method usage example with argument unpacking
kwargs: ListKeysRequestListKeysPaginateTypeDef = { # (1)
"PaginationConfig": ...,
}
parent.paginate(**kwargs)
ListResourceTagsPaginator#
Type annotations and code completion for boto3.client("kms").get_paginator("list_resource_tags")
.
boto3 documentation
# ListResourceTagsPaginator usage example
from boto3.session import Session
from mypy_boto3_kms.paginator import ListResourceTagsPaginator
def get_list_resource_tags_paginator() -> ListResourceTagsPaginator:
return Session().client("kms").get_paginator("list_resource_tags")
# ListResourceTagsPaginator usage example with type annotations
from boto3.session import Session
from mypy_boto3_kms.paginator import ListResourceTagsPaginator
session = Session()
client = Session().client("kms") # (1)
paginator: ListResourceTagsPaginator = client.get_paginator("list_resource_tags") # (2)
for item in paginator.paginate(...):
print(item) # (3)
- client: KMSClient
- paginator: ListResourceTagsPaginator
- item: ListResourceTagsResponseTypeDef
paginate#
Type annotations and code completion for ListResourceTagsPaginator.paginate
method.
# paginate method definition
def paginate(
self,
*,
KeyId: str,
PaginationConfig: PaginatorConfigTypeDef = ..., # (1)
) -> _PageIterator[ListResourceTagsResponseTypeDef]: # (2)
...
# paginate method usage example with argument unpacking
kwargs: ListResourceTagsRequestListResourceTagsPaginateTypeDef = { # (1)
"KeyId": ...,
}
parent.paginate(**kwargs)
ListRetirableGrantsPaginator#
Type annotations and code completion for boto3.client("kms").get_paginator("list_retirable_grants")
.
boto3 documentation
# ListRetirableGrantsPaginator usage example
from boto3.session import Session
from mypy_boto3_kms.paginator import ListRetirableGrantsPaginator
def get_list_retirable_grants_paginator() -> ListRetirableGrantsPaginator:
return Session().client("kms").get_paginator("list_retirable_grants")
# ListRetirableGrantsPaginator usage example with type annotations
from boto3.session import Session
from mypy_boto3_kms.paginator import ListRetirableGrantsPaginator
session = Session()
client = Session().client("kms") # (1)
paginator: ListRetirableGrantsPaginator = client.get_paginator("list_retirable_grants") # (2)
for item in paginator.paginate(...):
print(item) # (3)
- client: KMSClient
- paginator: ListRetirableGrantsPaginator
- item: ListGrantsResponseTypeDef
paginate#
Type annotations and code completion for ListRetirableGrantsPaginator.paginate
method.
# paginate method definition
def paginate(
self,
*,
RetiringPrincipal: str,
PaginationConfig: PaginatorConfigTypeDef = ..., # (1)
) -> _PageIterator[ListGrantsResponseTypeDef]: # (2)
...
# paginate method usage example with argument unpacking
kwargs: ListRetirableGrantsRequestListRetirableGrantsPaginateTypeDef = { # (1)
"RetiringPrincipal": ...,
}
parent.paginate(**kwargs)