Skip to content

Paginators#

Index > SSMIncidents > Paginators

Auto-generated documentation for SSMIncidents type annotations stubs module mypy-boto3-ssm-incidents.

GetResourcePoliciesPaginator#

Type annotations and code completion for boto3.client("ssm-incidents").get_paginator("get_resource_policies"). boto3 documentation

# GetResourcePoliciesPaginator usage example

from boto3.session import Session

from mypy_boto3_ssm_incidents.paginator import GetResourcePoliciesPaginator

def get_get_resource_policies_paginator() -> GetResourcePoliciesPaginator:
    return Session().client("ssm-incidents").get_paginator("get_resource_policies")
# GetResourcePoliciesPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_ssm_incidents.paginator import GetResourcePoliciesPaginator

session = Session()

client = Session().client("ssm-incidents")  # (1)
paginator: GetResourcePoliciesPaginator = client.get_paginator("get_resource_policies")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: SSMIncidentsClient
  2. paginator: GetResourcePoliciesPaginator
  3. item: GetResourcePoliciesOutputTypeDef

paginate#

Type annotations and code completion for GetResourcePoliciesPaginator.paginate method.

# paginate method definition

def paginate(
    self,
    *,
    resourceArn: str,
    PaginationConfig: PaginatorConfigTypeDef = ...,  # (1)
) -> _PageIterator[GetResourcePoliciesOutputTypeDef]:  # (2)
    ...
  1. See PaginatorConfigTypeDef
  2. See