Skip to content

CodeCommit module

Index > CodeCommit

Auto-generated documentation for CodeCommit type annotations stubs module types-aiobotocore-codecommit.

How to install

From PyPI with pip

Install types-aioboto3 for CodeCommit service.

# install with aioboto3 type annotations
python -m pip install 'types-aioboto3[codecommit]'


# Lite version does not provide session.client/resource overloads
# it is more RAM-friendly, but requires explicit type annotations
python -m pip install 'types-aioboto3-lite[codecommit]'


# standalone installation
python -m pip install types-aiobotocore-codecommit

How to uninstall

python -m pip uninstall -y types-aiobotocore-codecommit

Usage

Code samples can be found in Examples.

CodeCommitClient

Type annotations and code completion for session.client("codecommit") as CodeCommitClient boto3 documentation

Usage example
from aioboto3.session import Session

from types_aiobotocore_codecommit.client import CodeCommitClient


session = Session()
async with session.client("codecommit") as client:
    client: CodeCommitClient

Paginators

Type annotations and code completion for paginators from session.client("codecommit").get_paginator("...").

Usage example
from types_aiobotocore_codecommit.paginator import DescribePullRequestEventsPaginator

def get_describe_pull_request_events_paginator() -> DescribePullRequestEventsPaginator:
    return client.get_paginator("describe_pull_request_events"))

Literals

Type annotations for literals used in methods and schema.

Usage example
from types_aiobotocore_codecommit.literals import ApprovalStateType

def get_value() -> ApprovalStateType:
    return "APPROVE"

Typed dictionaries

Type annotations for typed dictionaries used in methods and schema.

Usage example
from types_aiobotocore_codecommit.type_defs import ApprovalRuleEventMetadataTypeDef

def get_value() -> ApprovalRuleEventMetadataTypeDef:
    return {
        "approvalRuleName": ...,
    }