Skip to content

Paginators#

Index > CodeCommit > Paginators

Auto-generated documentation for CodeCommit type annotations stubs module mypy-boto3-codecommit.

DescribePullRequestEventsPaginator#

Type annotations and code completion for boto3.client("codecommit").get_paginator("describe_pull_request_events"). boto3 documentation

# DescribePullRequestEventsPaginator usage example

from boto3.session import Session

from mypy_boto3_codecommit.paginator import DescribePullRequestEventsPaginator

def get_describe_pull_request_events_paginator() -> DescribePullRequestEventsPaginator:
    return Session().client("codecommit").get_paginator("describe_pull_request_events")
# DescribePullRequestEventsPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_codecommit.paginator import DescribePullRequestEventsPaginator

session = Session()

client = Session().client("codecommit")  # (1)
paginator: DescribePullRequestEventsPaginator = client.get_paginator("describe_pull_request_events")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: CodeCommitClient
  2. paginator: DescribePullRequestEventsPaginator
  3. item: DescribePullRequestEventsOutputTypeDef

paginate#

Type annotations and code completion for DescribePullRequestEventsPaginator.paginate method.

# paginate method definition

def paginate(
    self,
    *,
    pullRequestId: str,
    pullRequestEventType: PullRequestEventTypeType = ...,  # (1)
    actorArn: str = ...,
    PaginationConfig: PaginatorConfigTypeDef = ...,  # (2)
) -> _PageIterator[DescribePullRequestEventsOutputTypeDef]:  # (3)
    ...
  1. See PullRequestEventTypeType
  2. See PaginatorConfigTypeDef
  3. See DescribePullRequestEventsOutputTypeDef
# paginate method usage example with argument unpacking

kwargs: DescribePullRequestEventsInputDescribePullRequestEventsPaginateTypeDef = {  # (1)
    "pullRequestId": ...,
}

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

GetCommentsForComparedCommitPaginator#

Type annotations and code completion for boto3.client("codecommit").get_paginator("get_comments_for_compared_commit"). boto3 documentation

# GetCommentsForComparedCommitPaginator usage example

from boto3.session import Session

from mypy_boto3_codecommit.paginator import GetCommentsForComparedCommitPaginator

def get_get_comments_for_compared_commit_paginator() -> GetCommentsForComparedCommitPaginator:
    return Session().client("codecommit").get_paginator("get_comments_for_compared_commit")
# GetCommentsForComparedCommitPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_codecommit.paginator import GetCommentsForComparedCommitPaginator

session = Session()

client = Session().client("codecommit")  # (1)
paginator: GetCommentsForComparedCommitPaginator = client.get_paginator("get_comments_for_compared_commit")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: CodeCommitClient
  2. paginator: GetCommentsForComparedCommitPaginator
  3. item: GetCommentsForComparedCommitOutputTypeDef

paginate#

Type annotations and code completion for GetCommentsForComparedCommitPaginator.paginate method.

# paginate method definition

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

kwargs: GetCommentsForComparedCommitInputGetCommentsForComparedCommitPaginateTypeDef = {  # (1)
    "repositoryName": ...,
    "afterCommitId": ...,
}

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

GetCommentsForPullRequestPaginator#

Type annotations and code completion for boto3.client("codecommit").get_paginator("get_comments_for_pull_request"). boto3 documentation

# GetCommentsForPullRequestPaginator usage example

from boto3.session import Session

from mypy_boto3_codecommit.paginator import GetCommentsForPullRequestPaginator

def get_get_comments_for_pull_request_paginator() -> GetCommentsForPullRequestPaginator:
    return Session().client("codecommit").get_paginator("get_comments_for_pull_request")
# GetCommentsForPullRequestPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_codecommit.paginator import GetCommentsForPullRequestPaginator

session = Session()

client = Session().client("codecommit")  # (1)
paginator: GetCommentsForPullRequestPaginator = client.get_paginator("get_comments_for_pull_request")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: CodeCommitClient
  2. paginator: GetCommentsForPullRequestPaginator
  3. item: GetCommentsForPullRequestOutputTypeDef

paginate#

Type annotations and code completion for GetCommentsForPullRequestPaginator.paginate method.

# paginate method definition

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

kwargs: GetCommentsForPullRequestInputGetCommentsForPullRequestPaginateTypeDef = {  # (1)
    "pullRequestId": ...,
}

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

GetDifferencesPaginator#

Type annotations and code completion for boto3.client("codecommit").get_paginator("get_differences"). boto3 documentation

# GetDifferencesPaginator usage example

from boto3.session import Session

from mypy_boto3_codecommit.paginator import GetDifferencesPaginator

def get_get_differences_paginator() -> GetDifferencesPaginator:
    return Session().client("codecommit").get_paginator("get_differences")
# GetDifferencesPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_codecommit.paginator import GetDifferencesPaginator

session = Session()

client = Session().client("codecommit")  # (1)
paginator: GetDifferencesPaginator = client.get_paginator("get_differences")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: CodeCommitClient
  2. paginator: GetDifferencesPaginator
  3. item: GetDifferencesOutputTypeDef

paginate#

Type annotations and code completion for GetDifferencesPaginator.paginate method.

# paginate method definition

def paginate(
    self,
    *,
    repositoryName: str,
    afterCommitSpecifier: str,
    beforeCommitSpecifier: str = ...,
    beforePath: str = ...,
    afterPath: str = ...,
    PaginationConfig: PaginatorConfigTypeDef = ...,  # (1)
) -> _PageIterator[GetDifferencesOutputTypeDef]:  # (2)
    ...
  1. See PaginatorConfigTypeDef
  2. See GetDifferencesOutputTypeDef
# paginate method usage example with argument unpacking

kwargs: GetDifferencesInputGetDifferencesPaginateTypeDef = {  # (1)
    "repositoryName": ...,
    "afterCommitSpecifier": ...,
}

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

ListBranchesPaginator#

Type annotations and code completion for boto3.client("codecommit").get_paginator("list_branches"). boto3 documentation

# ListBranchesPaginator usage example

from boto3.session import Session

from mypy_boto3_codecommit.paginator import ListBranchesPaginator

def get_list_branches_paginator() -> ListBranchesPaginator:
    return Session().client("codecommit").get_paginator("list_branches")
# ListBranchesPaginator usage example with type annotations

from boto3.session import Session

from mypy_boto3_codecommit.paginator import ListBranchesPaginator

session = Session()

client = Session().client("codecommit")  # (1)
paginator: ListBranchesPaginator = client.get_paginator("list_branches")  # (2)
for item in paginator.paginate(...):
    print(item)  # (3)
  1. client: CodeCommitClient
  2. paginator: ListBranchesPaginator
  3. item: ListBranchesOutputTypeDef

paginate#

Type annotations and code