Skip to content

Paginators#

Index > KMS > 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)
  1. client: KMSClient
  2. paginator: DescribeCustomKeyStoresPaginator
  3. 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)
    ...
  1. See PaginatorConfigTypeDef
  2. See DescribeCustomKeyStoresResponseTypeDef
# paginate method usage example with argument unpacking

kwargs: DescribeCustomKeyStoresRequestDescribeCustomKeyStoresPaginateTypeDef = {  # (1)
    "CustomKeyStoreId": ...,
}

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

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)
  1. client: KMSClient
  2. paginator: ListAliasesPaginator
  3. 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)
    ...
  1. See PaginatorConfigTypeDef
  2. See ListAliasesResponseTypeDef
# paginate method usage example with argument unpacking

kwargs: ListAliasesRequestListAliasesPaginateTypeDef = {  # (1)
    "KeyId": ...,
}

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

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)
  1. client: KMSClient
  2. paginator: ListGrantsPaginator
  3. item: ListGrantsResponsePaginatorTypeDef

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[ListGrantsResponsePaginatorTypeDef]:  # (2)
    ...
  1. See PaginatorConfigTypeDef
  2. See ListGrantsResponsePaginatorTypeDef
# paginate method usage example with argument unpacking

kwargs: ListGrantsRequestListGrantsPaginateTypeDef = {  # (1)
    "KeyId": ...,
}

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

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)
  1. client: KMSClient
  2. paginator: ListKeyPoliciesPaginator
  3. 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)
    ...
  1. See PaginatorConfigTypeDef
  2. See ListKeyPoliciesResponseTypeDef
# paginate method usage example with argument unpacking

kwargs: ListKeyPoliciesRequestListKeyPoliciesPaginateTypeDef = {  # (1)
    "KeyId": ...,
}

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

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)
  1. client: KMSClient
  2. paginator: ListKeysPaginator
  3. item: ListKeysResponseTypeDef

paginate#

Type annotations and code completion for ListKeysPaginator.paginate method.

# paginate method definition

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

kwargs: ListKeysRequestListKeysPaginateTypeDef = {  # (1)
    "PaginationConfig": ...,
}

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

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)
  1. client: KMSClient
  2. paginator: ListResourceTagsPaginator
  3. 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)
    ...
  1. See PaginatorConfigTypeDef
  2. See ListResourceTagsResponseTypeDef
# paginate method usage example with argument unpacking

kwargs: ListResourceTagsRequestListResourceTagsPaginateTypeDef = {  # (1)
    "KeyId": ...,
}

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

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)
  1. client: KMSClient
  2. paginator: ListRetirableGrantsPaginator
  3. item: ListGrantsResponsePaginatorTypeDef

paginate#

Type annotations and code completion for ListRetirableGrantsPaginator.paginate method.

# paginate method definition

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

kwargs: ListRetirableGrantsRequestListRetirableGrantsPaginateTypeDef = {  # (1)
    "RetiringPrincipal": ...,
}

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