Skip to content

Paginators#

Index > Organizations > Paginators

Auto-generated documentation for Organizations type annotations stubs module mypy-boto3-organizations.

ListAWSServiceAccessForOrganizationPaginator#

Type annotations and code completion for boto3.client("organizations").get_paginator("list_aws_service_access_for_organization"). boto3 documentation

# ListAWSServiceAccessForOrganizationPaginator usage example

from boto3.session import Session

from mypy_boto3_organizations.paginator import ListAWSServiceAccessForOrganizationPaginator

def get_list_aws_service_access_for_organization_paginator() -> ListAWSServiceAccessForOrganizationPaginator:
    return Session().client("organizations").get_paginator("list_aws_service_access_for_organization")
# ListAWSServiceAccessForOrganizationPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_organizations.paginator import ListAWSServiceAccessForOrganizationPaginator

session = Session()

client = Session().client("organizations")  # (1)
paginator: ListAWSServiceAccessForOrganizationPaginator = client.get_paginator("list_aws_service_access_for_organization")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: OrganizationsClient
  2. paginator: ListAWSServiceAccessForOrganizationPaginator
  3. item: ListAWSServiceAccessForOrganizationResponseTypeDef

paginate#

Type annotations and code completion for ListAWSServiceAccessForOrganizationPaginator.paginate method.

# paginate method definition

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

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

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

ListAccountsForParentPaginator#

Type annotations and code completion for boto3.client("organizations").get_paginator("list_accounts_for_parent"). boto3 documentation

# ListAccountsForParentPaginator usage example

from boto3.session import Session

from mypy_boto3_organizations.paginator import ListAccountsForParentPaginator

def get_list_accounts_for_parent_paginator() -> ListAccountsForParentPaginator:
    return Session().client("organizations").get_paginator("list_accounts_for_parent")
# ListAccountsForParentPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_organizations.paginator import ListAccountsForParentPaginator

session = Session()

client = Session().client("organizations")  # (1)
paginator: ListAccountsForParentPaginator = client.get_paginator("list_accounts_for_parent")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: OrganizationsClient
  2. paginator: ListAccountsForParentPaginator
  3. item: ListAccountsForParentResponseTypeDef

paginate#

Type annotations and code completion for ListAccountsForParentPaginator.paginate method.

# paginate method definition

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

kwargs: ListAccountsForParentRequestPaginateTypeDef = {  # (1)
    "ParentId": ...,
}

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

ListAccountsPaginator#

Type annotations and code completion for boto3.client("organizations").get_paginator("list_accounts"). boto3 documentation

# ListAccountsPaginator usage example

from boto3.session import Session

from mypy_boto3_organizations.paginator import ListAccountsPaginator

def get_list_accounts_paginator() -> ListAccountsPaginator:
    return Session().client("organizations").get_paginator("list_accounts")
# ListAccountsPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_organizations.paginator import ListAccountsPaginator

session = Session()

client = Session().client("organizations")  # (1)
paginator: ListAccountsPaginator = client.get_paginator("list_accounts")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: OrganizationsClient
  2. paginator: ListAccountsPaginator
  3. item: ListAccountsResponseTypeDef

paginate#

Type annotations and code completion for ListAccountsPaginator.paginate method.

# paginate method definition

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

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

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

ListChildrenPaginator#

Type annotations and code completion for boto3.client("organizations").get_paginator("list_children"). boto3 documentation

# ListChildrenPaginator usage example

from boto3.session import Session

from mypy_boto3_organizations.paginator import ListChildrenPaginator

def get_list_children_paginator() -> ListChildrenPaginator:
    return Session().client("organizations").get_paginator("list_children")
# ListChildrenPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_organizations.paginator import ListChildrenPaginator

session = Session()

client = Session().client("organizations")  # (1)
paginator: ListChildrenPaginator = client.get_paginator("list_children")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: OrganizationsClient
  2. paginator: ListChildrenPaginator
  3. item: ListChildrenResponseTypeDef

paginate#

Type annotations and code completion for ListChildrenPaginator.paginate method.

# paginate method definition

def paginate(
    self,
    *,
    ParentId: str,
    ChildType: ChildTypeType,  # (1)
    PaginationConfig: PaginatorConfigTypeDef = ...,  # (2)
) -> PageIterator[ListChildrenResponseTypeDef]:  # (3)
    ...
  1. See ChildTypeType
  2. See PaginatorConfigTypeDef
  3. See ListChildrenResponseTypeDef
# paginate method usage example with argument unpacking

kwargs: ListChildrenRequestPaginateTypeDef = {  # (1)
    "ParentId": ...,
    "ChildType": ...,
}

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

ListCreateAccountStatusPaginator#

Type annotations and code completion for boto3.client("organizations").get_paginator("list_create_account_status"). boto3 documentation

# ListCreateAccountStatusPaginator usage example

from boto3.session import Session

from mypy_boto3_organizations.paginator import ListCreateAccountStatusPaginator

def get_list_create_account_status_paginator() -> ListCreateAccountStatusPaginator:
    return Session().client("organizations").get_paginator("list_create_account_status")
# ListCreateAccountStatusPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_organizations.paginator import ListCreateAccountStatusPaginator

session = Session()

client = Session().client("organizations")  # (1)
paginator: ListCreateAccountStatusPaginator = client.get_paginator("list_create_account_status")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: OrganizationsClient
  2. paginator: ListCreateAccountStatusPaginator
  3. item: ListCreateAccountStatusResponseTypeDef

paginate#

Type annotations and code completion for ListCreateAccountStatusPaginator.paginate method.

# paginate method definition

def paginate(
    self,
    *,
    States: Sequence[CreateAccountStateType] = ...,  # (1)
    PaginationConfig: PaginatorConfigTypeDef = ...,  # (2)
) -> PageIterator[ListCreateAccountStatusResponseTypeDef]:  # (3)
    ...
  1. See CreateAccountStateType
  2. See PaginatorConfigTypeDef
  3. See ListCreateAccountStatusResponseTypeDef
# paginate method usage example with argument unpacking

kwargs: ListCreateAccountStatusRequestPaginateTypeDef = {  # (1)
    "States": ...,
}

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

ListDelegatedAdministratorsPaginator#

Type annotations and code completion for boto3.client("organizations").get_paginator("list_delegated_administrators"). boto3 documentation

# ListDelegatedAdministratorsPaginator usage example

from boto3.session import Session

from mypy_boto3_organizations.paginator import ListDelegatedAdministratorsPaginator

def get_list_delegated_administrators_paginator() -> ListDelegatedAdministratorsPaginator:
    return Session().client("organizations").get_paginator("list_delegated_administrators")
# ListDelegatedAdministratorsPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_organizations.paginator import ListDelegatedAdministratorsPaginator

session = Session()

client = Session().client("organizations")  # (1)
paginator: ListDelegatedAdministratorsPaginator = client.get_paginator("list_delegated_administrators")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: OrganizationsClient
  2. paginator: ListDelegatedAdministratorsPaginator
  3. item: ListDelegatedAdministratorsResponseTypeDef

paginate#

Type annotations and code completion for ListDelegatedAdministratorsPaginator.paginate method.

# paginate method definition

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

kwargs: ListDelegatedAdministratorsRequestPaginateTypeDef = {  # (1)
    "ServicePrincipal": ...,
}

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

ListDelegatedServicesForAccountPaginator#

Type annotations and code completion for boto3.client("organizations").get_paginator("list_delegated_services_for_account"). boto3 documentation

# ListDelegatedServicesForAccountPaginator usage example

from boto3.session import Session

from mypy_boto3_organizations.paginator import ListDelegatedServicesForAccountPaginator

def get_list_delegated_services_for_account_paginator() -> ListDelegatedServicesForAccountPaginator:
    return Session().client("organizations").get_paginator("list_delegated_services_for_account")
# ListDelegatedServicesForAccountPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_organizations.paginator import ListDelegatedServicesForAccountPaginator

session = Session()

client = Session().client("organizations")  # (1)
paginator: ListDelegatedServicesForAccountPaginator = client.get_paginator("list_delegated_services_for_account")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: OrganizationsClient
  2. paginator: ListDelegatedServicesForAccountPaginator
  3. item: ListDelegatedServicesForAccountResponseTypeDef

paginate#

Type annotations and code completion for ListDelegatedServicesForAccountPaginator.paginate method.

# paginate method definition

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

kwargs: ListDelegatedServicesForAccountRequestPaginateTypeDef = {  # (1)
    "AccountId": ...,
}

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

ListHandshakesForAccountPaginator#

Type annotations and code completion for boto3.client("organizations").get_paginator("list_handshakes_for_account"). boto3 documentation

# ListHandshakesForAccountPaginator usage example

from boto3.session import Session

from mypy_boto3_organizations.paginator import ListHandshakesForAccountPaginator

def get_list_handshakes_for_account_paginator() -> ListHandshakesForAccountPaginator:
    return Session().client("organizations").get_paginator("list_handshakes_for_account")
# ListHandshakesForAccountPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_organizations.paginator import ListHandshakesForAccountPaginator

session = Session()

client = Session().client("organizations")  # (1)
paginator: ListHandshakesForAccountPaginator = client.get_paginator("list_handshakes_for_account")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: OrganizationsClient
  2. paginator: ListHandshakesForAccountPaginator
  3. item: ListHandshakesForAccountResponsePaginatorTypeDef

paginate#

Type annotations and code completion for ListHandshakesForAccountPaginator.paginate method.

# paginate method definition

def paginate(
    self,
    *,
    Filter: HandshakeFilterTypeDef = ...,  # (1)
    PaginationConfig: PaginatorConfigTypeDef = ...,  # (2)
) -> PageIterator[ListHandshakesForAccountResponsePaginatorTypeDef]:  # (3)
    ...
  1. See HandshakeFilterTypeDef
  2. See PaginatorConfigTypeDef
  3. See ListHandshakesForAccountResponsePaginatorTypeDef
# paginate method usage example with argument unpacking

kwargs: ListHandshakesForAccountRequestPaginateTypeDef = {  # (1)
    "Filter": ...,
}

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

ListHandshakesForOrganizationPaginator#

Type annotations and code completion for boto3.client("organizations").get_paginator("list_handshakes_for_organization"). boto3 documentation

# ListHandshakesForOrganizationPaginator usage example

from boto3.session import Session

from mypy_boto3_organizations.paginator import ListHandshakesForOrganizationPaginator

def get_list_handshakes_for_organization_paginator() -> ListHandshakesForOrganizationPaginator:
    return Session().client("organizations").get_paginator("list_handshakes_for_organization")
# ListHandshakesForOrganizationPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_organizations.paginator import ListHandshakesForOrganizationPaginator

session = Session()

client = Session().client("organizations")  # (1)
paginator: ListHandshakesForOrganizationPaginator = client.get_paginator("list_handshakes_for_organization")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: OrganizationsClient
  2. paginator: ListHandshakesForOrganizationPaginator
  3. item: ListHandshakesForOrganizationResponsePaginatorTypeDef

paginate#

Type annotations and code completion for ListHandshakesForOrganizationPaginator.paginate method.

# paginate method definition

def paginate(
    self,
    *,
    Filter: HandshakeFilterTypeDef = ...,  # (1)
    PaginationConfig: PaginatorConfigTypeDef = ...,  # (2)
) -> PageIterator[ListHandshakesForOrganizationResponsePaginatorTypeDef]:  # (3)
    ...
  1. See HandshakeFilterTypeDef
  2. See PaginatorConfigTypeDef
  3. See ListHandshakesForOrganizationResponsePaginatorTypeDef
# paginate method usage example with argument unpacking

kwargs: ListHandshakesForOrganizationRequestPaginateTypeDef = {  # (1)
    "Filter": ...,
}

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

ListOrganizationalUnitsForParentPaginator#

Type annotations and code completion for boto3.client("organizations").get_paginator("list_organizational_units_for_parent"). boto3 documentation

# ListOrganizationalUnitsForParentPaginator usage example

from boto3.session import Session

from mypy_boto3_organizations.paginator import ListOrganizationalUnitsForParentPaginator

def get_list_organizational_units_for_parent_paginator() -> ListOrganizationalUnitsForParentPaginator:
    return Session().client("organizations").get_paginator("list_organizational_units_for_parent")
# ListOrganizationalUnitsForParentPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_organizations.paginator import ListOrganizationalUnitsForParentPaginator

session = Session()

client = Session().client("organizations")  # (1)
paginator: ListOrganizationalUnitsForParentPaginator = client.get_paginator("list_organizational_units_for_parent")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: OrganizationsClient
  2. paginator: ListOrganizationalUnitsForParentPaginator
  3. item: ListOrganizationalUnitsForParentResponseTypeDef

paginate#

Type annotations and code completion for ListOrganizationalUnitsForParentPaginator.paginate method.

# paginate method definition

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

kwargs: ListOrganizationalUnitsForParentRequestPaginateTypeDef = {  # (1)
    "ParentId": ...,
}

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

ListParentsPaginator#

Type annotations and code completion for boto3.client("organizations").get_paginator("list_parents"). boto3 documentation

# ListParentsPaginator usage example

from boto3.session import Session

from mypy_boto3_organizations.paginator import ListParentsPaginator

def get_list_parents_paginator() -> ListParentsPaginator:
    return Session().client("organizations").get_paginator("list_parents")
# ListParentsPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_organizations.paginator import ListParentsPaginator

session = Session()

client = Session().client("organizations")  # (1)
paginator: ListParentsPaginator = client.get_paginator("list_parents")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: OrganizationsClient
  2. paginator: ListParentsPaginator
  3. item: ListParentsResponseTypeDef

paginate#

Type annotations and code completion for ListParentsPaginator.paginate method.

# paginate method definition

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

kwargs: ListParentsRequestPaginateTypeDef = {  # (1)
    "ChildId": ...,
}

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

ListPoliciesForTargetPaginator#

Type annotations and code completion for boto3.client("organizations").get_paginator("list_policies_for_target"). boto3 documentation

# ListPoliciesForTargetPaginator usage example

from boto3.session import Session

from mypy_boto3_organizations.paginator import ListPoliciesForTargetPaginator

def get_list_policies_for_target_paginator() -> ListPoliciesForTargetPaginator:
    return Session().client("organizations").get_paginator("list_policies_for_target")
# ListPoliciesForTargetPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_organizations.paginator import ListPoliciesForTargetPaginator

session = Session()

client = Session().client("organizations")  # (1)
paginator: ListPoliciesForTargetPaginator = client.get_paginator("list_policies_for_target")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: OrganizationsClient
  2. paginator: ListPoliciesForTargetPaginator
  3. item: ListPoliciesForTargetResponseTypeDef

paginate#

Type annotations and code completion for ListPoliciesForTargetPaginator.paginate method.

# paginate method definition

def paginate(
    self,
    *,
    TargetId: str,
    Filter: PolicyTypeType,  # (1)
    PaginationConfig: PaginatorConfigTypeDef = ...,  # (2)
) -> PageIterator[ListPoliciesForTargetResponseTypeDef]:  # (3)
    ...
  1. See PolicyTypeType
  2. See PaginatorConfigTypeDef
  3. See ListPoliciesForTargetResponseTypeDef
# paginate method usage example with argument unpacking

kwargs: ListPoliciesForTargetRequestPaginateTypeDef = {  # (1)
    "TargetId": ...,
    "Filter": ...,
}

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

ListPoliciesPaginator#

Type annotations and code completion for boto3.client("organizations").get_paginator("list_policies"). boto3 documentation

# ListPoliciesPaginator usage example

from boto3.session import Session

from mypy_boto3_organizations.paginator import ListPoliciesPaginator

def get_list_policies_paginator() -> ListPoliciesPaginator:
    return Session().client("organizations").get_paginator("list_policies")
# ListPoliciesPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_organizations.paginator import ListPoliciesPaginator

session = Session()

client = Session().client("organizations")  # (1)
paginator: ListPoliciesPaginator = client.get_paginator("list_policies")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: OrganizationsClient
  2. paginator: ListPoliciesPaginator
  3. item: ListPoliciesResponseTypeDef

paginate#

Type annotations and code completion for ListPoliciesPaginator.paginate method.

# paginate method definition

def paginate(
    self,
    *,
    Filter: PolicyTypeType,  # (1)
    PaginationConfig: PaginatorConfigTypeDef = ...,  # (2)
) -> PageIterator[ListPoliciesResponseTypeDef]:  # (3)
    ...
  1. See PolicyTypeType
  2. See PaginatorConfigTypeDef
  3. See ListPoliciesResponseTypeDef
# paginate method usage example with argument unpacking

kwargs: ListPoliciesRequestPaginateTypeDef = {  # (1)
    "Filter": ...,
}

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

ListRootsPaginator#

Type annotations and code completion for boto3.client("organizations").get_paginator("list_roots"). boto3 documentation

# ListRootsPaginator usage example

from boto3.session import Session

from mypy_boto3_organizations.paginator import ListRootsPaginator

def get_list_roots_paginator() -> ListRootsPaginator:
    return Session().client("organizations").get_paginator("list_roots")
# ListRootsPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_organizations.paginator import ListRootsPaginator

session = Session()

client = Session().client("organizations")  # (1)
paginator: ListRootsPaginator = client.get_paginator("list_roots")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: OrganizationsClient
  2. paginator: ListRootsPaginator
  3. item: ListRootsResponseTypeDef

paginate#

Type annotations and code completion for ListRootsPaginator.paginate method.

# paginate method definition

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

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

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

ListTagsForResourcePaginator#

Type annotations and code completion for boto3.client("organizations").get_paginator("list_tags_for_resource"). boto3 documentation

# ListTagsForResourcePaginator usage example

from boto3.session import Session

from mypy_boto3_organizations.paginator import ListTagsForResourcePaginator

def get_list_tags_for_resource_paginator() -> ListTagsForResourcePaginator:
    return Session().client("organizations").get_paginator("list_tags_for_resource")
# ListTagsForResourcePaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_organizations.paginator import ListTagsForResourcePaginator

session = Session()

client = Session().client("organizations")  # (1)
paginator: ListTagsForResourcePaginator = client.get_paginator("list_tags_for_resource")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: OrganizationsClient
  2. paginator: ListTagsForResourcePaginator
  3. item: ListTagsForResourceResponseTypeDef

paginate#

Type annotations and code completion for ListTagsForResourcePaginator.paginate method.

# paginate method definition

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

kwargs: ListTagsForResourceRequestPaginateTypeDef = {  # (1)
    "ResourceId": ...,
}

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

ListTargetsForPolicyPaginator#

Type annotations and code completion for boto3.client("organizations").get_paginator("list_targets_for_policy"). boto3 documentation

# ListTargetsForPolicyPaginator usage example

from boto3.session import Session

from mypy_boto3_organizations.paginator import ListTargetsForPolicyPaginator

def get_list_targets_for_policy_paginator() -> ListTargetsForPolicyPaginator:
    return Session().client("organizations").get_paginator("list_targets_for_policy")
# ListTargetsForPolicyPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_organizations.paginator import ListTargetsForPolicyPaginator

session = Session()

client = Session().client("organizations")  # (1)
paginator: ListTargetsForPolicyPaginator = client.get_paginator("list_targets_for_policy")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: OrganizationsClient
  2. paginator: ListTargetsForPolicyPaginator
  3. item: ListTargetsForPolicyResponseTypeDef

paginate#

Type annotations and code completion for ListTargetsForPolicyPaginator.paginate method.

# paginate method definition

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

kwargs: ListTargetsForPolicyRequestPaginateTypeDef = {  # (1)
    "PolicyId": ...,
}

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