Skip to content

Type definitions#

Index > CodeCommit > Type definitions

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

BlobTypeDef#

# BlobTypeDef Union usage example

from types_boto3_codecommit.type_defs import BlobTypeDef


def get_value() -> BlobTypeDef:
    return ...


# BlobTypeDef definition

BlobTypeDef = Union[
    str,
    bytes,
    IO[Any],
    StreamingBody,
]

RepositoryTriggerUnionTypeDef#

# RepositoryTriggerUnionTypeDef Union usage example

from types_boto3_codecommit.type_defs import RepositoryTriggerUnionTypeDef


def get_value() -> RepositoryTriggerUnionTypeDef:
    return ...


# RepositoryTriggerUnionTypeDef definition

RepositoryTriggerUnionTypeDef = Union[
    RepositoryTriggerTypeDef,  # (1)
    RepositoryTriggerOutputTypeDef,  # (2)
]
  1. See RepositoryTriggerTypeDef
  2. See RepositoryTriggerOutputTypeDef

ApprovalRuleEventMetadataTypeDef#

# ApprovalRuleEventMetadataTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import ApprovalRuleEventMetadataTypeDef


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


# ApprovalRuleEventMetadataTypeDef definition

class ApprovalRuleEventMetadataTypeDef(TypedDict):
    approvalRuleName: NotRequired[str],
    approvalRuleId: NotRequired[str],
    approvalRuleContent: NotRequired[str],

ApprovalRuleOverriddenEventMetadataTypeDef#

# ApprovalRuleOverriddenEventMetadataTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import ApprovalRuleOverriddenEventMetadataTypeDef


def get_value() -> ApprovalRuleOverriddenEventMetadataTypeDef:
    return {
        "revisionId": ...,
    }


# ApprovalRuleOverriddenEventMetadataTypeDef definition

class ApprovalRuleOverriddenEventMetadataTypeDef(TypedDict):
    revisionId: NotRequired[str],
    overrideStatus: NotRequired[OverrideStatusType],  # (1)
  1. See OverrideStatusType

ApprovalRuleTemplateTypeDef#

# ApprovalRuleTemplateTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import ApprovalRuleTemplateTypeDef


def get_value() -> ApprovalRuleTemplateTypeDef:
    return {
        "approvalRuleTemplateId": ...,
    }


# ApprovalRuleTemplateTypeDef definition

class ApprovalRuleTemplateTypeDef(TypedDict):
    approvalRuleTemplateId: NotRequired[str],
    approvalRuleTemplateName: NotRequired[str],
    approvalRuleTemplateDescription: NotRequired[str],
    approvalRuleTemplateContent: NotRequired[str],
    ruleContentSha256: NotRequired[str],
    lastModifiedDate: NotRequired[datetime],
    creationDate: NotRequired[datetime],
    lastModifiedUser: NotRequired[str],

OriginApprovalRuleTemplateTypeDef#

# OriginApprovalRuleTemplateTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import OriginApprovalRuleTemplateTypeDef


def get_value() -> OriginApprovalRuleTemplateTypeDef:
    return {
        "approvalRuleTemplateId": ...,
    }


# OriginApprovalRuleTemplateTypeDef definition

class OriginApprovalRuleTemplateTypeDef(TypedDict):
    approvalRuleTemplateId: NotRequired[str],
    approvalRuleTemplateName: NotRequired[str],

ApprovalStateChangedEventMetadataTypeDef#

# ApprovalStateChangedEventMetadataTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import ApprovalStateChangedEventMetadataTypeDef


def get_value() -> ApprovalStateChangedEventMetadataTypeDef:
    return {
        "revisionId": ...,
    }


# ApprovalStateChangedEventMetadataTypeDef definition

class ApprovalStateChangedEventMetadataTypeDef(TypedDict):
    revisionId: NotRequired[str],
    approvalStatus: NotRequired[ApprovalStateType],  # (1)
  1. See ApprovalStateType

ApprovalTypeDef#

# ApprovalTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import ApprovalTypeDef


def get_value() -> ApprovalTypeDef:
    return {
        "userArn": ...,
    }


# ApprovalTypeDef definition

class ApprovalTypeDef(TypedDict):
    userArn: NotRequired[str],
    approvalState: NotRequired[ApprovalStateType],  # (1)
  1. See ApprovalStateType

AssociateApprovalRuleTemplateWithRepositoryInputTypeDef#

# AssociateApprovalRuleTemplateWithRepositoryInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import AssociateApprovalRuleTemplateWithRepositoryInputTypeDef


def get_value() -> AssociateApprovalRuleTemplateWithRepositoryInputTypeDef:
    return {
        "approvalRuleTemplateName": ...,
    }


# AssociateApprovalRuleTemplateWithRepositoryInputTypeDef definition

class AssociateApprovalRuleTemplateWithRepositoryInputTypeDef(TypedDict):
    approvalRuleTemplateName: str,
    repositoryName: str,

BatchAssociateApprovalRuleTemplateWithRepositoriesErrorTypeDef#

# BatchAssociateApprovalRuleTemplateWithRepositoriesErrorTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import BatchAssociateApprovalRuleTemplateWithRepositoriesErrorTypeDef


def get_value() -> BatchAssociateApprovalRuleTemplateWithRepositoriesErrorTypeDef:
    return {
        "repositoryName": ...,
    }


# BatchAssociateApprovalRuleTemplateWithRepositoriesErrorTypeDef definition

class BatchAssociateApprovalRuleTemplateWithRepositoriesErrorTypeDef(TypedDict):
    repositoryName: NotRequired[str],
    errorCode: NotRequired[str],
    errorMessage: NotRequired[str],

BatchAssociateApprovalRuleTemplateWithRepositoriesInputTypeDef#

# BatchAssociateApprovalRuleTemplateWithRepositoriesInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import BatchAssociateApprovalRuleTemplateWithRepositoriesInputTypeDef


def get_value() -> BatchAssociateApprovalRuleTemplateWithRepositoriesInputTypeDef:
    return {
        "approvalRuleTemplateName": ...,
    }


# BatchAssociateApprovalRuleTemplateWithRepositoriesInputTypeDef definition

class BatchAssociateApprovalRuleTemplateWithRepositoriesInputTypeDef(TypedDict):
    approvalRuleTemplateName: str,
    repositoryNames: Sequence[str],

ResponseMetadataTypeDef#

# ResponseMetadataTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import ResponseMetadataTypeDef


def get_value() -> ResponseMetadataTypeDef:
    return {
        "RequestId": ...,
    }


# ResponseMetadataTypeDef definition

class ResponseMetadataTypeDef(TypedDict):
    RequestId: str,
    HTTPStatusCode: int,
    HTTPHeaders: Dict[str, str],
    RetryAttempts: int,
    HostId: NotRequired[str],

BatchDescribeMergeConflictsErrorTypeDef#

# BatchDescribeMergeConflictsErrorTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import BatchDescribeMergeConflictsErrorTypeDef


def get_value() -> BatchDescribeMergeConflictsErrorTypeDef:
    return {
        "filePath": ...,
    }


# BatchDescribeMergeConflictsErrorTypeDef definition

class BatchDescribeMergeConflictsErrorTypeDef(TypedDict):
    filePath: str,
    exceptionName: str,
    message: str,

BatchDescribeMergeConflictsInputTypeDef#

# BatchDescribeMergeConflictsInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import BatchDescribeMergeConflictsInputTypeDef


def get_value() -> BatchDescribeMergeConflictsInputTypeDef:
    return {
        "repositoryName": ...,
    }


# BatchDescribeMergeConflictsInputTypeDef definition

class BatchDescribeMergeConflictsInputTypeDef(TypedDict):
    repositoryName: str,
    destinationCommitSpecifier: str,
    sourceCommitSpecifier: str,
    mergeOption: MergeOptionTypeEnumType,  # (1)
    maxMergeHunks: NotRequired[int],
    maxConflictFiles: NotRequired[int],
    filePaths: NotRequired[Sequence[str]],
    conflictDetailLevel: NotRequired[ConflictDetailLevelTypeEnumType],  # (2)
    conflictResolutionStrategy: NotRequired[ConflictResolutionStrategyTypeEnumType],  # (3)
    nextToken: NotRequired[str],
  1. See MergeOptionTypeEnumType
  2. See ConflictDetailLevelTypeEnumType
  3. See ConflictResolutionStrategyTypeEnumType

BatchDisassociateApprovalRuleTemplateFromRepositoriesErrorTypeDef#

# BatchDisassociateApprovalRuleTemplateFromRepositoriesErrorTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import BatchDisassociateApprovalRuleTemplateFromRepositoriesErrorTypeDef


def get_value() -> BatchDisassociateApprovalRuleTemplateFromRepositoriesErrorTypeDef:
    return {
        "repositoryName": ...,
    }


# BatchDisassociateApprovalRuleTemplateFromRepositoriesErrorTypeDef definition

class BatchDisassociateApprovalRuleTemplateFromRepositoriesErrorTypeDef(TypedDict):
    repositoryName: NotRequired[str],
    errorCode: NotRequired[str],
    errorMessage: NotRequired[str],

BatchDisassociateApprovalRuleTemplateFromRepositoriesInputTypeDef#

# BatchDisassociateApprovalRuleTemplateFromRepositoriesInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import BatchDisassociateApprovalRuleTemplateFromRepositoriesInputTypeDef


def get_value() -> BatchDisassociateApprovalRuleTemplateFromRepositoriesInputTypeDef:
    return {
        "approvalRuleTemplateName": ...,
    }


# BatchDisassociateApprovalRuleTemplateFromRepositoriesInputTypeDef definition

class BatchDisassociateApprovalRuleTemplateFromRepositoriesInputTypeDef(TypedDict):
    approvalRuleTemplateName: str,
    repositoryNames: Sequence[str],

BatchGetCommitsErrorTypeDef#

# BatchGetCommitsErrorTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import BatchGetCommitsErrorTypeDef


def get_value() -> BatchGetCommitsErrorTypeDef:
    return {
        "commitId": ...,
    }


# BatchGetCommitsErrorTypeDef definition

class BatchGetCommitsErrorTypeDef(TypedDict):
    commitId: NotRequired[str],
    errorCode: NotRequired[str],
    errorMessage: NotRequired[str],

BatchGetCommitsInputTypeDef#

# BatchGetCommitsInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import BatchGetCommitsInputTypeDef


def get_value() -> BatchGetCommitsInputTypeDef:
    return {
        "commitIds": ...,
    }


# BatchGetCommitsInputTypeDef definition

class BatchGetCommitsInputTypeDef(TypedDict):
    commitIds: Sequence[str],
    repositoryName: str,

BatchGetRepositoriesErrorTypeDef#

# BatchGetRepositoriesErrorTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import BatchGetRepositoriesErrorTypeDef


def get_value() -> BatchGetRepositoriesErrorTypeDef:
    return {
        "repositoryId": ...,
    }


# BatchGetRepositoriesErrorTypeDef definition

class BatchGetRepositoriesErrorTypeDef(TypedDict):
    repositoryId: NotRequired[str],
    repositoryName: NotRequired[str],
    errorCode: NotRequired[BatchGetRepositoriesErrorCodeEnumType],  # (1)
    errorMessage: NotRequired[str],
  1. See BatchGetRepositoriesErrorCodeEnumType

BatchGetRepositoriesInputTypeDef#

# BatchGetRepositoriesInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import BatchGetRepositoriesInputTypeDef


def get_value() -> BatchGetRepositoriesInputTypeDef:
    return {
        "repositoryNames": ...,
    }


# BatchGetRepositoriesInputTypeDef definition

class BatchGetRepositoriesInputTypeDef(TypedDict):
    repositoryNames: Sequence[str],

RepositoryMetadataTypeDef#

# RepositoryMetadataTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import RepositoryMetadataTypeDef


def get_value() -> RepositoryMetadataTypeDef:
    return {
        "accountId": ...,
    }


# RepositoryMetadataTypeDef definition

class RepositoryMetadataTypeDef(TypedDict):
    accountId: NotRequired[str],
    repositoryId: NotRequired[str],
    repositoryName: NotRequired[str],
    repositoryDescription: NotRequired[str],
    defaultBranch: NotRequired[str],
    lastModifiedDate: NotRequired[datetime],
    creationDate: NotRequired[datetime],
    cloneUrlHttp: NotRequired[str],
    cloneUrlSsh: NotRequired[str],
    Arn: NotRequired[str],
    kmsKeyId: NotRequired[str],

BlobMetadataTypeDef#

# BlobMetadataTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import BlobMetadataTypeDef


def get_value() -> BlobMetadataTypeDef:
    return {
        "blobId": ...,
    }


# BlobMetadataTypeDef definition

class BlobMetadataTypeDef(TypedDict):
    blobId: NotRequired[str],
    path: NotRequired[str],
    mode: NotRequired[str],

BranchInfoTypeDef#

# BranchInfoTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import BranchInfoTypeDef


def get_value() -> BranchInfoTypeDef:
    return {
        "branchName": ...,
    }


# BranchInfoTypeDef definition

class BranchInfoTypeDef(TypedDict):
    branchName: NotRequired[str],
    commitId: NotRequired[str],

CommentTypeDef#

# CommentTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import CommentTypeDef


def get_value() -> CommentTypeDef:
    return {
        "commentId": ...,
    }


# CommentTypeDef definition

class CommentTypeDef(TypedDict):
    commentId: NotRequired[str],
    content: NotRequired[str],
    inReplyTo: NotRequired[str],
    creationDate: NotRequired[datetime],
    lastModifiedDate: NotRequired[datetime],
    authorArn: NotRequired[str],
    deleted: NotRequired[bool],
    clientRequestToken: NotRequired[str],
    callerReactions: NotRequired[List[str]],
    reactionCounts: NotRequired[Dict[str, int]],

LocationTypeDef#

# LocationTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import LocationTypeDef


def get_value() -> LocationTypeDef:
    return {
        "filePath": ...,
    }


# LocationTypeDef definition

class LocationTypeDef(TypedDict):
    filePath: NotRequired[str],
    filePosition: NotRequired[int],
    relativeFileVersion: NotRequired[RelativeFileVersionEnumType],  # (1)
  1. See RelativeFileVersionEnumType

UserInfoTypeDef#

# UserInfoTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import UserInfoTypeDef


def get_value() -> UserInfoTypeDef:
    return {
        "name": ...,
    }


# UserInfoTypeDef definition

class UserInfoTypeDef(TypedDict):
    name: NotRequired[str],
    email: NotRequired[str],
    date: NotRequired[str],

FileModesTypeDef#

# FileModesTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import FileModesTypeDef


def get_value() -> FileModesTypeDef:
    return {
        "source": ...,
    }


# FileModesTypeDef definition

class FileModesTypeDef(TypedDict):
    source: NotRequired[FileModeTypeEnumType],  # (1)
    destination: NotRequired[FileModeTypeEnumType],  # (1)
    base: NotRequired[FileModeTypeEnumType],  # (1)
  1. See FileModeTypeEnumType
  2. See FileModeTypeEnumType
  3. See FileModeTypeEnumType

FileSizesTypeDef#

# FileSizesTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import FileSizesTypeDef


def get_value() -> FileSizesTypeDef:
    return {
        "source": ...,
    }


# FileSizesTypeDef definition

class FileSizesTypeDef(TypedDict):
    source: NotRequired[int],
    destination: NotRequired[int],
    base: NotRequired[int],

IsBinaryFileTypeDef#

# IsBinaryFileTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import IsBinaryFileTypeDef


def get_value() -> IsBinaryFileTypeDef:
    return {
        "source": ...,
    }


# IsBinaryFileTypeDef definition

class IsBinaryFileTypeDef(TypedDict):
    source: NotRequired[bool],
    destination: NotRequired[bool],
    base: NotRequired[bool],

MergeOperationsTypeDef#

# MergeOperationsTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import MergeOperationsTypeDef


def get_value() -> MergeOperationsTypeDef:
    return {
        "source": ...,
    }


# MergeOperationsTypeDef definition

class MergeOperationsTypeDef(TypedDict):
    source: NotRequired[ChangeTypeEnumType],  # (1)
    destination: NotRequired[ChangeTypeEnumType],  # (1)
  1. See ChangeTypeEnumType
  2. See ChangeTypeEnumType

ObjectTypesTypeDef#

# ObjectTypesTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import ObjectTypesTypeDef


def get_value() -> ObjectTypesTypeDef:
    return {
        "source": ...,
    }


# ObjectTypesTypeDef definition

class ObjectTypesTypeDef(TypedDict):
    source: NotRequired[ObjectTypeEnumType],  # (1)
    destination: NotRequired[ObjectTypeEnumType],  # (1)
    base: NotRequired[ObjectTypeEnumType],  # (1)
  1. See ObjectTypeEnumType
  2. See ObjectTypeEnumType
  3. See ObjectTypeEnumType

DeleteFileEntryTypeDef#

# DeleteFileEntryTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import DeleteFileEntryTypeDef


def get_value() -> DeleteFileEntryTypeDef:
    return {
        "filePath": ...,
    }


# DeleteFileEntryTypeDef definition

class DeleteFileEntryTypeDef(TypedDict):
    filePath: str,

SetFileModeEntryTypeDef#

# SetFileModeEntryTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import SetFileModeEntryTypeDef


def get_value() -> SetFileModeEntryTypeDef:
    return {
        "filePath": ...,
    }


# SetFileModeEntryTypeDef definition

class SetFileModeEntryTypeDef(TypedDict):
    filePath: str,
    fileMode: FileModeTypeEnumType,  # (1)
  1. See FileModeTypeEnumType

CreateApprovalRuleTemplateInputTypeDef#

# CreateApprovalRuleTemplateInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import CreateApprovalRuleTemplateInputTypeDef


def get_value() -> CreateApprovalRuleTemplateInputTypeDef:
    return {
        "approvalRuleTemplateName": ...,
    }


# CreateApprovalRuleTemplateInputTypeDef definition

class CreateApprovalRuleTemplateInputTypeDef(TypedDict):
    approvalRuleTemplateName: str,
    approvalRuleTemplateContent: str,
    approvalRuleTemplateDescription: NotRequired[str],

CreateBranchInputTypeDef#

# CreateBranchInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import CreateBranchInputTypeDef


def get_value() -> CreateBranchInputTypeDef:
    return {
        "repositoryName": ...,
    }


# CreateBranchInputTypeDef definition

class CreateBranchInputTypeDef(TypedDict):
    repositoryName: str,
    branchName: str,
    commitId: str,

FileMetadataTypeDef#

# FileMetadataTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import FileMetadataTypeDef


def get_value() -> FileMetadataTypeDef:
    return {
        "absolutePath": ...,
    }


# FileMetadataTypeDef definition

class FileMetadataTypeDef(TypedDict):
    absolutePath: NotRequired[str],
    blobId: NotRequired[str],
    fileMode: NotRequired[FileModeTypeEnumType],  # (1)
  1. See FileModeTypeEnumType

CreatePullRequestApprovalRuleInputTypeDef#

# CreatePullRequestApprovalRuleInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import CreatePullRequestApprovalRuleInputTypeDef


def get_value() -> CreatePullRequestApprovalRuleInputTypeDef:
    return {
        "pullRequestId": ...,
    }


# CreatePullRequestApprovalRuleInputTypeDef definition

class CreatePullRequestApprovalRuleInputTypeDef(TypedDict):
    pullRequestId: str,
    approvalRuleName: str,
    approvalRuleContent: str,

TargetTypeDef#

# TargetTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import TargetTypeDef


def get_value() -> TargetTypeDef:
    return {
        "repositoryName": ...,
    }


# TargetTypeDef definition

class TargetTypeDef(TypedDict):
    repositoryName: str,
    sourceReference: str,
    destinationReference: NotRequired[str],

CreateRepositoryInputTypeDef#

# CreateRepositoryInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import CreateRepositoryInputTypeDef


def get_value() -> CreateRepositoryInputTypeDef:
    return {
        "repositoryName": ...,
    }


# CreateRepositoryInputTypeDef definition

class CreateRepositoryInputTypeDef(TypedDict):
    repositoryName: str,
    repositoryDescription: NotRequired[str],
    tags: NotRequired[Mapping[str, str]],
    kmsKeyId: NotRequired[str],

DeleteApprovalRuleTemplateInputTypeDef#

# DeleteApprovalRuleTemplateInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import DeleteApprovalRuleTemplateInputTypeDef


def get_value() -> DeleteApprovalRuleTemplateInputTypeDef:
    return {
        "approvalRuleTemplateName": ...,
    }


# DeleteApprovalRuleTemplateInputTypeDef definition

class DeleteApprovalRuleTemplateInputTypeDef(TypedDict):
    approvalRuleTemplateName: str,

DeleteBranchInputTypeDef#

# DeleteBranchInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import DeleteBranchInputTypeDef


def get_value() -> DeleteBranchInputTypeDef:
    return {
        "repositoryName": ...,
    }


# DeleteBranchInputTypeDef definition

class DeleteBranchInputTypeDef(TypedDict):
    repositoryName: str,
    branchName: str,

DeleteCommentContentInputTypeDef#

# DeleteCommentContentInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import DeleteCommentContentInputTypeDef


def get_value() -> DeleteCommentContentInputTypeDef:
    return {
        "commentId": ...,
    }


# DeleteCommentContentInputTypeDef definition

class DeleteCommentContentInputTypeDef(TypedDict):
    commentId: str,

DeleteFileInputTypeDef#

# DeleteFileInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import DeleteFileInputTypeDef


def get_value() -> DeleteFileInputTypeDef:
    return {
        "repositoryName": ...,
    }


# DeleteFileInputTypeDef definition

class DeleteFileInputTypeDef(TypedDict):
    repositoryName: str,
    branchName: str,
    filePath: str,
    parentCommitId: str,
    keepEmptyFolders: NotRequired[bool],
    commitMessage: NotRequired[str],
    name: NotRequired[str],
    email: NotRequired[str],

DeletePullRequestApprovalRuleInputTypeDef#

# DeletePullRequestApprovalRuleInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import DeletePullRequestApprovalRuleInputTypeDef


def get_value() -> DeletePullRequestApprovalRuleInputTypeDef:
    return {
        "pullRequestId": ...,
    }


# DeletePullRequestApprovalRuleInputTypeDef definition

class DeletePullRequestApprovalRuleInputTypeDef(TypedDict):
    pullRequestId: str,
    approvalRuleName: str,

DeleteRepositoryInputTypeDef#

# DeleteRepositoryInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import DeleteRepositoryInputTypeDef


def get_value() -> DeleteRepositoryInputTypeDef:
    return {
        "repositoryName": ...,
    }


# DeleteRepositoryInputTypeDef definition

class DeleteRepositoryInputTypeDef(TypedDict):
    repositoryName: str,

DescribeMergeConflictsInputTypeDef#

# DescribeMergeConflictsInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import DescribeMergeConflictsInputTypeDef


def get_value() -> DescribeMergeConflictsInputTypeDef:
    return {
        "repositoryName": ...,
    }


# DescribeMergeConflictsInputTypeDef definition

class DescribeMergeConflictsInputTypeDef(TypedDict):
    repositoryName: str,
    destinationCommitSpecifier: str,
    sourceCommitSpecifier: str,
    mergeOption: MergeOptionTypeEnumType,  # (1)
    filePath: str,
    maxMergeHunks: NotRequired[int],
    conflictDetailLevel: NotRequired[ConflictDetailLevelTypeEnumType],  # (2)
    conflictResolutionStrategy: NotRequired[ConflictResolutionStrategyTypeEnumType],  # (3)
    nextToken: NotRequired[str],
  1. See MergeOptionTypeEnumType
  2. See ConflictDetailLevelTypeEnumType
  3. See ConflictResolutionStrategyTypeEnumType

PaginatorConfigTypeDef#

# PaginatorConfigTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import PaginatorConfigTypeDef


def get_value() -> PaginatorConfigTypeDef:
    return {
        "MaxItems": ...,
    }


# PaginatorConfigTypeDef definition

class PaginatorConfigTypeDef(TypedDict):
    MaxItems: NotRequired[int],
    PageSize: NotRequired[int],
    StartingToken: NotRequired[str],

DescribePullRequestEventsInputTypeDef#

# DescribePullRequestEventsInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import DescribePullRequestEventsInputTypeDef


def get_value() -> DescribePullRequestEventsInputTypeDef:
    return {
        "pullRequestId": ...,
    }


# DescribePullRequestEventsInputTypeDef definition

class DescribePullRequestEventsInputTypeDef(TypedDict):
    pullRequestId: str,
    pullRequestEventType: NotRequired[PullRequestEventTypeType],  # (1)
    actorArn: NotRequired[str],
    nextToken: NotRequired[str],
    maxResults: NotRequired[int],
  1. See PullRequestEventTypeType

DisassociateApprovalRuleTemplateFromRepositoryInputTypeDef#

# DisassociateApprovalRuleTemplateFromRepositoryInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import DisassociateApprovalRuleTemplateFromRepositoryInputTypeDef


def get_value() -> DisassociateApprovalRuleTemplateFromRepositoryInputTypeDef:
    return {
        "approvalRuleTemplateName": ...,
    }


# DisassociateApprovalRuleTemplateFromRepositoryInputTypeDef definition

class DisassociateApprovalRuleTemplateFromRepositoryInputTypeDef(TypedDict):
    approvalRuleTemplateName: str,
    repositoryName: str,

EvaluatePullRequestApprovalRulesInputTypeDef#

# EvaluatePullRequestApprovalRulesInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import EvaluatePullRequestApprovalRulesInputTypeDef


def get_value() -> EvaluatePullRequestApprovalRulesInputTypeDef:
    return {
        "pullRequestId": ...,
    }


# EvaluatePullRequestApprovalRulesInputTypeDef definition

class EvaluatePullRequestApprovalRulesInputTypeDef(TypedDict):
    pullRequestId: str,
    revisionId: str,

EvaluationTypeDef#

# EvaluationTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import EvaluationTypeDef


def get_value() -> EvaluationTypeDef:
    return {
        "approved": ...,
    }


# EvaluationTypeDef definition

class EvaluationTypeDef(TypedDict):
    approved: NotRequired[bool],
    overridden: NotRequired[bool],
    approvalRulesSatisfied: NotRequired[List[str]],
    approvalRulesNotSatisfied: NotRequired[List[str]],

FileTypeDef#

# FileTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import FileTypeDef


def get_value() -> FileTypeDef:
    return {
        "blobId": ...,
    }


# FileTypeDef definition

class FileTypeDef(TypedDict):
    blobId: NotRequired[str],
    absolutePath: NotRequired[str],
    relativePath: NotRequired[str],
    fileMode: NotRequired[FileModeTypeEnumType],  # (1)
  1. See FileModeTypeEnumType

FolderTypeDef#

# FolderTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import FolderTypeDef


def get_value() -> FolderTypeDef:
    return {
        "treeId": ...,
    }


# FolderTypeDef definition

class FolderTypeDef(TypedDict):
    treeId: NotRequired[str],
    absolutePath: NotRequired[str],
    relativePath: NotRequired[str],

GetApprovalRuleTemplateInputTypeDef#

# GetApprovalRuleTemplateInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import GetApprovalRuleTemplateInputTypeDef


def get_value() -> GetApprovalRuleTemplateInputTypeDef:
    return {
        "approvalRuleTemplateName": ...,
    }


# GetApprovalRuleTemplateInputTypeDef definition

class GetApprovalRuleTemplateInputTypeDef(TypedDict):
    approvalRuleTemplateName: str,

GetBlobInputTypeDef#

# GetBlobInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import GetBlobInputTypeDef


def get_value() -> GetBlobInputTypeDef:
    return {
        "repositoryName": ...,
    }


# GetBlobInputTypeDef definition

class GetBlobInputTypeDef(TypedDict):
    repositoryName: str,
    blobId: str,

GetBranchInputTypeDef#

# GetBranchInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import GetBranchInputTypeDef


def get_value() -> GetBranchInputTypeDef:
    return {
        "repositoryName": ...,
    }


# GetBranchInputTypeDef definition

class GetBranchInputTypeDef(TypedDict):
    repositoryName: NotRequired[str],
    branchName: NotRequired[str],

GetCommentInputTypeDef#

# GetCommentInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import GetCommentInputTypeDef


def get_value() -> GetCommentInputTypeDef:
    return {
        "commentId": ...,
    }


# GetCommentInputTypeDef definition

class GetCommentInputTypeDef(TypedDict):
    commentId: str,

GetCommentReactionsInputTypeDef#

# GetCommentReactionsInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import GetCommentReactionsInputTypeDef


def get_value() -> GetCommentReactionsInputTypeDef:
    return {
        "commentId": ...,
    }


# GetCommentReactionsInputTypeDef definition

class GetCommentReactionsInputTypeDef(TypedDict):
    commentId: str,
    reactionUserArn: NotRequired[str],
    nextToken: NotRequired[str],
    maxResults: NotRequired[int],

GetCommentsForComparedCommitInputTypeDef#

# GetCommentsForComparedCommitInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import GetCommentsForComparedCommitInputTypeDef


def get_value() -> GetCommentsForComparedCommitInputTypeDef:
    return {
        "repositoryName": ...,
    }


# GetCommentsForComparedCommitInputTypeDef definition

class GetCommentsForComparedCommitInputTypeDef(TypedDict):
    repositoryName: str,
    afterCommitId: str,
    beforeCommitId: NotRequired[str],
    nextToken: NotRequired[str],
    maxResults: NotRequired[int],

GetCommentsForPullRequestInputTypeDef#

# GetCommentsForPullRequestInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import GetCommentsForPullRequestInputTypeDef


def get_value() -> GetCommentsForPullRequestInputTypeDef:
    return {
        "pullRequestId": ...,
    }


# GetCommentsForPullRequestInputTypeDef definition

class GetCommentsForPullRequestInputTypeDef(TypedDict):
    pullRequestId: str,
    repositoryName: NotRequired[str],
    beforeCommitId: NotRequired[str],
    afterCommitId: NotRequired[str],
    nextToken: NotRequired[str],
    maxResults: NotRequired[int],

GetCommitInputTypeDef#

# GetCommitInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import GetCommitInputTypeDef


def get_value() -> GetCommitInputTypeDef:
    return {
        "repositoryName": ...,
    }


# GetCommitInputTypeDef definition

class GetCommitInputTypeDef(TypedDict):
    repositoryName: str,
    commitId: str,

GetDifferencesInputTypeDef#

# GetDifferencesInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import GetDifferencesInputTypeDef


def get_value() -> GetDifferencesInputTypeDef:
    return {
        "repositoryName": ...,
    }


# GetDifferencesInputTypeDef definition

class GetDifferencesInputTypeDef(TypedDict):
    repositoryName: str,
    afterCommitSpecifier: str,
    beforeCommitSpecifier: NotRequired[str],
    beforePath: NotRequired[str],
    afterPath: NotRequired[str],
    MaxResults: NotRequired[int],
    NextToken: NotRequired[str],

GetFileInputTypeDef#

# GetFileInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import GetFileInputTypeDef


def get_value() -> GetFileInputTypeDef:
    return {
        "repositoryName": ...,
    }


# GetFileInputTypeDef definition

class GetFileInputTypeDef(TypedDict):
    repositoryName: str,
    filePath: str,
    commitSpecifier: NotRequired[str],

GetFolderInputTypeDef#

# GetFolderInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import GetFolderInputTypeDef


def get_value() -> GetFolderInputTypeDef:
    return {
        "repositoryName": ...,
    }


# GetFolderInputTypeDef definition

class GetFolderInputTypeDef(TypedDict):
    repositoryName: str,
    folderPath: str,
    commitSpecifier: NotRequired[str],

SubModuleTypeDef#

# SubModuleTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import SubModuleTypeDef


def get_value() -> SubModuleTypeDef:
    return {
        "commitId": ...,
    }


# SubModuleTypeDef definition

class SubModuleTypeDef(TypedDict):
    commitId: NotRequired[str],
    absolutePath: NotRequired[str],
    relativePath: NotRequired[str],

SymbolicLinkTypeDef#

# SymbolicLinkTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import SymbolicLinkTypeDef


def get_value() -> SymbolicLinkTypeDef:
    return {
        "blobId": ...,
    }


# SymbolicLinkTypeDef definition

class SymbolicLinkTypeDef(TypedDict):
    blobId: NotRequired[str],
    absolutePath: NotRequired[str],
    relativePath: NotRequired[str],
    fileMode: NotRequired[FileModeTypeEnumType],  # (1)
  1. See FileModeTypeEnumType

GetMergeCommitInputTypeDef#

# GetMergeCommitInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import GetMergeCommitInputTypeDef


def get_value() -> GetMergeCommitInputTypeDef:
    return {
        "repositoryName": ...,
    }


# GetMergeCommitInputTypeDef definition

class GetMergeCommitInputTypeDef(TypedDict):
    repositoryName: str,
    sourceCommitSpecifier: str,
    destinationCommitSpecifier: str,
    conflictDetailLevel: NotRequired[ConflictDetailLevelTypeEnumType],  # (1)
    conflictResolutionStrategy: NotRequired[ConflictResolutionStrategyTypeEnumType],  # (2)
  1. See ConflictDetailLevelTypeEnumType
  2. See ConflictResolutionStrategyTypeEnumType

GetMergeConflictsInputTypeDef#

# GetMergeConflictsInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import GetMergeConflictsInputTypeDef


def get_value() -> GetMergeConflictsInputTypeDef:
    return {
        "repositoryName": ...,
    }


# GetMergeConflictsInputTypeDef definition

class GetMergeConflictsInputTypeDef(TypedDict):
    repositoryName: str,
    destinationCommitSpecifier: str,
    sourceCommitSpecifier: str,
    mergeOption: MergeOptionTypeEnumType,  # (1)
    conflictDetailLevel: NotRequired[ConflictDetailLevelTypeEnumType],  # (2)
    maxConflictFiles: NotRequired[int],
    conflictResolutionStrategy: NotRequired[ConflictResolutionStrategyTypeEnumType],  # (3)
    nextToken: NotRequired[str],
  1. See MergeOptionTypeEnumType
  2. See ConflictDetailLevelTypeEnumType
  3. See ConflictResolutionStrategyTypeEnumType

GetMergeOptionsInputTypeDef#

# GetMergeOptionsInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import GetMergeOptionsInputTypeDef


def get_value() -> GetMergeOptionsInputTypeDef:
    return {
        "repositoryName": ...,
    }


# GetMergeOptionsInputTypeDef definition

class GetMergeOptionsInputTypeDef(TypedDict):
    repositoryName: str,
    sourceCommitSpecifier: str,
    destinationCommitSpecifier: str,
    conflictDetailLevel: NotRequired[ConflictDetailLevelTypeEnumType],  # (1)
    conflictResolutionStrategy: NotRequired[ConflictResolutionStrategyTypeEnumType],  # (2)
  1. See ConflictDetailLevelTypeEnumType
  2. See ConflictResolutionStrategyTypeEnumType

GetPullRequestApprovalStatesInputTypeDef#

# GetPullRequestApprovalStatesInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import GetPullRequestApprovalStatesInputTypeDef


def get_value() -> GetPullRequestApprovalStatesInputTypeDef:
    return {
        "pullRequestId": ...,
    }


# GetPullRequestApprovalStatesInputTypeDef definition

class GetPullRequestApprovalStatesInputTypeDef(TypedDict):
    pullRequestId: str,
    revisionId: str,

GetPullRequestInputTypeDef#

# GetPullRequestInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import GetPullRequestInputTypeDef


def get_value() -> GetPullRequestInputTypeDef:
    return {
        "pullRequestId": ...,
    }


# GetPullRequestInputTypeDef definition

class GetPullRequestInputTypeDef(TypedDict):
    pullRequestId: str,

GetPullRequestOverrideStateInputTypeDef#

# GetPullRequestOverrideStateInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import GetPullRequestOverrideStateInputTypeDef


def get_value() -> GetPullRequestOverrideStateInputTypeDef:
    return {
        "pullRequestId": ...,
    }


# GetPullRequestOverrideStateInputTypeDef definition

class GetPullRequestOverrideStateInputTypeDef(TypedDict):
    pullRequestId: str,
    revisionId: str,

GetRepositoryInputTypeDef#

# GetRepositoryInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import GetRepositoryInputTypeDef


def get_value() -> GetRepositoryInputTypeDef:
    return {
        "repositoryName": ...,
    }


# GetRepositoryInputTypeDef definition

class GetRepositoryInputTypeDef(TypedDict):
    repositoryName: str,

GetRepositoryTriggersInputTypeDef#

# GetRepositoryTriggersInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import GetRepositoryTriggersInputTypeDef


def get_value() -> GetRepositoryTriggersInputTypeDef:
    return {
        "repositoryName": ...,
    }


# GetRepositoryTriggersInputTypeDef definition

class GetRepositoryTriggersInputTypeDef(TypedDict):
    repositoryName: str,

RepositoryTriggerOutputTypeDef#

# RepositoryTriggerOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import RepositoryTriggerOutputTypeDef


def get_value() -> RepositoryTriggerOutputTypeDef:
    return {
        "name": ...,
    }


# RepositoryTriggerOutputTypeDef definition

class RepositoryTriggerOutputTypeDef(TypedDict):
    name: str,
    destinationArn: str,
    events: List[RepositoryTriggerEventEnumType],  # (1)
    customData: NotRequired[str],
    branches: NotRequired[List[str]],
  1. See RepositoryTriggerEventEnumType

ListApprovalRuleTemplatesInputTypeDef#

# ListApprovalRuleTemplatesInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import ListApprovalRuleTemplatesInputTypeDef


def get_value() -> ListApprovalRuleTemplatesInputTypeDef:
    return {
        "nextToken": ...,
    }


# ListApprovalRuleTemplatesInputTypeDef definition

class ListApprovalRuleTemplatesInputTypeDef(TypedDict):
    nextToken: NotRequired[str],
    maxResults: NotRequired[int],

ListAssociatedApprovalRuleTemplatesForRepositoryInputTypeDef#

# ListAssociatedApprovalRuleTemplatesForRepositoryInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import ListAssociatedApprovalRuleTemplatesForRepositoryInputTypeDef


def get_value() -> ListAssociatedApprovalRuleTemplatesForRepositoryInputTypeDef:
    return {
        "repositoryName": ...,
    }


# ListAssociatedApprovalRuleTemplatesForRepositoryInputTypeDef definition

class ListAssociatedApprovalRuleTemplatesForRepositoryInputTypeDef(TypedDict):
    repositoryName: str,
    nextToken: NotRequired[str],
    maxResults: NotRequired[int],

ListBranchesInputTypeDef#

# ListBranchesInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import ListBranchesInputTypeDef


def get_value() -> ListBranchesInputTypeDef:
    return {
        "repositoryName": ...,
    }


# ListBranchesInputTypeDef definition

class ListBranchesInputTypeDef(TypedDict):
    repositoryName: str,
    nextToken: NotRequired[str],

ListFileCommitHistoryRequestTypeDef#

# ListFileCommitHistoryRequestTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import ListFileCommitHistoryRequestTypeDef


def get_value() -> ListFileCommitHistoryRequestTypeDef:
    return {
        "repositoryName": ...,
    }


# ListFileCommitHistoryRequestTypeDef definition

class ListFileCommitHistoryRequestTypeDef(TypedDict):
    repositoryName: str,
    filePath: str,
    commitSpecifier: NotRequired[str],
    maxResults: NotRequired[int],
    nextToken: NotRequired[str],

ListPullRequestsInputTypeDef#

# ListPullRequestsInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import ListPullRequestsInputTypeDef


def get_value() -> ListPullRequestsInputTypeDef:
    return {
        "repositoryName": ...,
    }


# ListPullRequestsInputTypeDef definition

class ListPullRequestsInputTypeDef(TypedDict):
    repositoryName: str,
    authorArn: NotRequired[str],
    pullRequestStatus: NotRequired[PullRequestStatusEnumType],  # (1)
    nextToken: NotRequired[str],
    maxResults: NotRequired[int],
  1. See PullRequestStatusEnumType

ListRepositoriesForApprovalRuleTemplateInputTypeDef#

# ListRepositoriesForApprovalRuleTemplateInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import ListRepositoriesForApprovalRuleTemplateInputTypeDef


def get_value() -> ListRepositoriesForApprovalRuleTemplateInputTypeDef:
    return {
        "approvalRuleTemplateName": ...,
    }


# ListRepositoriesForApprovalRuleTemplateInputTypeDef definition

class ListRepositoriesForApprovalRuleTemplateInputTypeDef(TypedDict):
    approvalRuleTemplateName: str,
    nextToken: NotRequired[str],
    maxResults: NotRequired[int],

ListRepositoriesInputTypeDef#

# ListRepositoriesInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import ListRepositoriesInputTypeDef


def get_value() -> ListRepositoriesInputTypeDef:
    return {
        "nextToken": ...,
    }


# ListRepositoriesInputTypeDef definition

class ListRepositoriesInputTypeDef(TypedDict):
    nextToken: NotRequired[str],
    sortBy: NotRequired[SortByEnumType],  # (1)
    order: NotRequired[OrderEnumType],  # (2)
  1. See SortByEnumType
  2. See OrderEnumType

RepositoryNameIdPairTypeDef#

# RepositoryNameIdPairTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import RepositoryNameIdPairTypeDef


def get_value() -> RepositoryNameIdPairTypeDef:
    return {
        "repositoryName": ...,
    }


# RepositoryNameIdPairTypeDef definition

class RepositoryNameIdPairTypeDef(TypedDict):
    repositoryName: NotRequired[str],
    repositoryId: NotRequired[str],

ListTagsForResourceInputTypeDef#

# ListTagsForResourceInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import ListTagsForResourceInputTypeDef


def get_value() -> ListTagsForResourceInputTypeDef:
    return {
        "resourceArn": ...,
    }


# ListTagsForResourceInputTypeDef definition

class ListTagsForResourceInputTypeDef(TypedDict):
    resourceArn: str,
    nextToken: NotRequired[str],

MergeBranchesByFastForwardInputTypeDef#

# MergeBranchesByFastForwardInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import MergeBranchesByFastForwardInputTypeDef


def get_value() -> MergeBranchesByFastForwardInputTypeDef:
    return {
        "repositoryName": ...,
    }


# MergeBranchesByFastForwardInputTypeDef definition

class MergeBranchesByFastForwardInputTypeDef(TypedDict):
    repositoryName: str,
    sourceCommitSpecifier: str,
    destinationCommitSpecifier: str,
    targetBranch: NotRequired[str],

MergeHunkDetailTypeDef#

# MergeHunkDetailTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import MergeHunkDetailTypeDef


def get_value() -> MergeHunkDetailTypeDef:
    return {
        "startLine": ...,
    }


# MergeHunkDetailTypeDef definition

class MergeHunkDetailTypeDef(TypedDict):
    startLine: NotRequired[int],
    endLine: NotRequired[int],
    hunkContent: NotRequired[str],

MergeMetadataTypeDef#

# MergeMetadataTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import MergeMetadataTypeDef


def get_value() -> MergeMetadataTypeDef:
    return {
        "isMerged": ...,
    }


# MergeMetadataTypeDef definition

class MergeMetadataTypeDef(TypedDict):
    isMerged: NotRequired[bool],
    mergedBy: NotRequired[str],
    mergeCommitId: NotRequired[str],
    mergeOption: NotRequired[MergeOptionTypeEnumType],  # (1)
  1. See MergeOptionTypeEnumType

MergePullRequestByFastForwardInputTypeDef#

# MergePullRequestByFastForwardInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import MergePullRequestByFastForwardInputTypeDef


def get_value() -> MergePullRequestByFastForwardInputTypeDef:
    return {
        "pullRequestId": ...,
    }


# MergePullRequestByFastForwardInputTypeDef definition

class MergePullRequestByFastForwardInputTypeDef(TypedDict):
    pullRequestId: str,
    repositoryName: str,
    sourceCommitId: NotRequired[str],

OverridePullRequestApprovalRulesInputTypeDef#

# OverridePullRequestApprovalRulesInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import OverridePullRequestApprovalRulesInputTypeDef


def get_value() -> OverridePullRequestApprovalRulesInputTypeDef:
    return {
        "pullRequestId": ...,
    }


# OverridePullRequestApprovalRulesInputTypeDef definition

class OverridePullRequestApprovalRulesInputTypeDef(TypedDict):
    pullRequestId: str,
    revisionId: str,
    overrideStatus: OverrideStatusType,  # (1)
  1. See OverrideStatusType

PostCommentReplyInputTypeDef#

# PostCommentReplyInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import PostCommentReplyInputTypeDef


def get_value() -> PostCommentReplyInputTypeDef:
    return {
        "inReplyTo": ...,
    }


# PostCommentReplyInputTypeDef definition

class PostCommentReplyInputTypeDef(TypedDict):
    inReplyTo: str,
    content: str,
    clientRequestToken: NotRequired[str],

PullRequestCreatedEventMetadataTypeDef#

# PullRequestCreatedEventMetadataTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import PullRequestCreatedEventMetadataTypeDef


def get_value() -> PullRequestCreatedEventMetadataTypeDef:
    return {
        "repositoryName": ...,
    }


# PullRequestCreatedEventMetadataTypeDef definition

class PullRequestCreatedEventMetadataTypeDef(TypedDict):
    repositoryName: NotRequired[str],
    sourceCommitId: NotRequired[str],
    destinationCommitId: NotRequired[str],
    mergeBase: NotRequired[str],

PullRequestSourceReferenceUpdatedEventMetadataTypeDef#

# PullRequestSourceReferenceUpdatedEventMetadataTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import PullRequestSourceReferenceUpdatedEventMetadataTypeDef


def get_value() -> PullRequestSourceReferenceUpdatedEventMetadataTypeDef:
    return {
        "repositoryName": ...,
    }


# PullRequestSourceReferenceUpdatedEventMetadataTypeDef definition

class PullRequestSourceReferenceUpdatedEventMetadataTypeDef(TypedDict):
    repositoryName: NotRequired[str],
    beforeCommitId: NotRequired[str],
    afterCommitId: NotRequired[str],
    mergeBase: NotRequired[str],

PullRequestStatusChangedEventMetadataTypeDef#

# PullRequestStatusChangedEventMetadataTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import PullRequestStatusChangedEventMetadataTypeDef


def get_value() -> PullRequestStatusChangedEventMetadataTypeDef:
    return {
        "pullRequestStatus": ...,
    }


# PullRequestStatusChangedEventMetadataTypeDef definition

class PullRequestStatusChangedEventMetadataTypeDef(TypedDict):
    pullRequestStatus: NotRequired[PullRequestStatusEnumType],  # (1)
  1. See PullRequestStatusEnumType

PutCommentReactionInputTypeDef#

# PutCommentReactionInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import PutCommentReactionInputTypeDef


def get_value() -> PutCommentReactionInputTypeDef:
    return {
        "commentId": ...,
    }


# PutCommentReactionInputTypeDef definition

class PutCommentReactionInputTypeDef(TypedDict):
    commentId: str,
    reactionValue: str,

SourceFileSpecifierTypeDef#

# SourceFileSpecifierTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import SourceFileSpecifierTypeDef


def get_value() -> SourceFileSpecifierTypeDef:
    return {
        "filePath": ...,
    }


# SourceFileSpecifierTypeDef definition

class SourceFileSpecifierTypeDef(TypedDict):
    filePath: str,
    isMove: NotRequired[bool],

ReactionValueFormatsTypeDef#

# ReactionValueFormatsTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import ReactionValueFormatsTypeDef


def get_value() -> ReactionValueFormatsTypeDef:
    return {
        "emoji": ...,
    }


# ReactionValueFormatsTypeDef definition

class ReactionValueFormatsTypeDef(TypedDict):
    emoji: NotRequired[str],
    shortCode: NotRequired[str],
    unicode: NotRequired[str],

RepositoryTriggerExecutionFailureTypeDef#

# RepositoryTriggerExecutionFailureTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import RepositoryTriggerExecutionFailureTypeDef


def get_value() -> RepositoryTriggerExecutionFailureTypeDef:
    return {
        "trigger": ...,
    }


# RepositoryTriggerExecutionFailureTypeDef definition

class RepositoryTriggerExecutionFailureTypeDef(TypedDict):
    trigger: NotRequired[str],
    failureMessage: NotRequired[str],

RepositoryTriggerTypeDef#

# RepositoryTriggerTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import RepositoryTriggerTypeDef


def get_value() -> RepositoryTriggerTypeDef:
    return {
        "name": ...,
    }


# RepositoryTriggerTypeDef definition

class RepositoryTriggerTypeDef(TypedDict):
    name: str,
    destinationArn: str,
    events: Sequence[RepositoryTriggerEventEnumType],  # (1)
    customData: NotRequired[str],
    branches: NotRequired[Sequence[str]],
  1. See RepositoryTriggerEventEnumType

TagResourceInputTypeDef#

# TagResourceInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import TagResourceInputTypeDef


def get_value() -> TagResourceInputTypeDef:
    return {
        "resourceArn": ...,
    }


# TagResourceInputTypeDef definition

class TagResourceInputTypeDef(TypedDict):
    resourceArn: str,
    tags: Mapping[str, str],

UntagResourceInputTypeDef#

# UntagResourceInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import UntagResourceInputTypeDef


def get_value() -> UntagResourceInputTypeDef:
    return {
        "resourceArn": ...,
    }


# UntagResourceInputTypeDef definition

class UntagResourceInputTypeDef(TypedDict):
    resourceArn: str,
    tagKeys: Sequence[str],

UpdateApprovalRuleTemplateContentInputTypeDef#

# UpdateApprovalRuleTemplateContentInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import UpdateApprovalRuleTemplateContentInputTypeDef


def get_value() -> UpdateApprovalRuleTemplateContentInputTypeDef:
    return {
        "approvalRuleTemplateName": ...,
    }


# UpdateApprovalRuleTemplateContentInputTypeDef definition

class UpdateApprovalRuleTemplateContentInputTypeDef(TypedDict):
    approvalRuleTemplateName: str,
    newRuleContent: str,
    existingRuleContentSha256: NotRequired[str],

UpdateApprovalRuleTemplateDescriptionInputTypeDef#

# UpdateApprovalRuleTemplateDescriptionInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import UpdateApprovalRuleTemplateDescriptionInputTypeDef


def get_value() -> UpdateApprovalRuleTemplateDescriptionInputTypeDef:
    return {
        "approvalRuleTemplateName": ...,
    }


# UpdateApprovalRuleTemplateDescriptionInputTypeDef definition

class UpdateApprovalRuleTemplateDescriptionInputTypeDef(TypedDict):
    approvalRuleTemplateName: str,
    approvalRuleTemplateDescription: str,

UpdateApprovalRuleTemplateNameInputTypeDef#

# UpdateApprovalRuleTemplateNameInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import UpdateApprovalRuleTemplateNameInputTypeDef


def get_value() -> UpdateApprovalRuleTemplateNameInputTypeDef:
    return {
        "oldApprovalRuleTemplateName": ...,
    }


# UpdateApprovalRuleTemplateNameInputTypeDef definition

class UpdateApprovalRuleTemplateNameInputTypeDef(TypedDict):
    oldApprovalRuleTemplateName: str,
    newApprovalRuleTemplateName: str,

UpdateCommentInputTypeDef#

# UpdateCommentInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import UpdateCommentInputTypeDef


def get_value() -> UpdateCommentInputTypeDef:
    return {
        "commentId": ...,
    }


# UpdateCommentInputTypeDef definition

class UpdateCommentInputTypeDef(TypedDict):
    commentId: str,
    content: str,

UpdateDefaultBranchInputTypeDef#

# UpdateDefaultBranchInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import UpdateDefaultBranchInputTypeDef


def get_value() -> UpdateDefaultBranchInputTypeDef:
    return {
        "repositoryName": ...,
    }


# UpdateDefaultBranchInputTypeDef definition

class UpdateDefaultBranchInputTypeDef(TypedDict):
    repositoryName: str,
    defaultBranchName: str,

UpdatePullRequestApprovalRuleContentInputTypeDef#

# UpdatePullRequestApprovalRuleContentInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import UpdatePullRequestApprovalRuleContentInputTypeDef


def get_value() -> UpdatePullRequestApprovalRuleContentInputTypeDef:
    return {
        "pullRequestId": ...,
    }


# UpdatePullRequestApprovalRuleContentInputTypeDef definition

class UpdatePullRequestApprovalRuleContentInputTypeDef(TypedDict):
    pullRequestId: str,
    approvalRuleName: str,
    newRuleContent: str,
    existingRuleContentSha256: NotRequired[str],

UpdatePullRequestApprovalStateInputTypeDef#

# UpdatePullRequestApprovalStateInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import UpdatePullRequestApprovalStateInputTypeDef


def get_value() -> UpdatePullRequestApprovalStateInputTypeDef:
    return {
        "pullRequestId": ...,
    }


# UpdatePullRequestApprovalStateInputTypeDef definition

class UpdatePullRequestApprovalStateInputTypeDef(TypedDict):
    pullRequestId: str,
    revisionId: str,
    approvalState: ApprovalStateType,  # (1)
  1. See ApprovalStateType

UpdatePullRequestDescriptionInputTypeDef#

# UpdatePullRequestDescriptionInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import UpdatePullRequestDescriptionInputTypeDef


def get_value() -> UpdatePullRequestDescriptionInputTypeDef:
    return {
        "pullRequestId": ...,
    }


# UpdatePullRequestDescriptionInputTypeDef definition

class UpdatePullRequestDescriptionInputTypeDef(TypedDict):
    pullRequestId: str,
    description: str,

UpdatePullRequestStatusInputTypeDef#

# UpdatePullRequestStatusInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import UpdatePullRequestStatusInputTypeDef


def get_value() -> UpdatePullRequestStatusInputTypeDef:
    return {
        "pullRequestId": ...,
    }


# UpdatePullRequestStatusInputTypeDef definition

class UpdatePullRequestStatusInputTypeDef(TypedDict):
    pullRequestId: str,
    pullRequestStatus: PullRequestStatusEnumType,  # (1)
  1. See PullRequestStatusEnumType

UpdatePullRequestTitleInputTypeDef#

# UpdatePullRequestTitleInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import UpdatePullRequestTitleInputTypeDef


def get_value() -> UpdatePullRequestTitleInputTypeDef:
    return {
        "pullRequestId": ...,
    }


# UpdatePullRequestTitleInputTypeDef definition

class UpdatePullRequestTitleInputTypeDef(TypedDict):
    pullRequestId: str,
    title: str,

UpdateRepositoryDescriptionInputTypeDef#

# UpdateRepositoryDescriptionInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import UpdateRepositoryDescriptionInputTypeDef


def get_value() -> UpdateRepositoryDescriptionInputTypeDef:
    return {
        "repositoryName": ...,
    }


# UpdateRepositoryDescriptionInputTypeDef definition

class UpdateRepositoryDescriptionInputTypeDef(TypedDict):
    repositoryName: str,
    repositoryDescription: NotRequired[str],

UpdateRepositoryEncryptionKeyInputTypeDef#

# UpdateRepositoryEncryptionKeyInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import UpdateRepositoryEncryptionKeyInputTypeDef


def get_value() -> UpdateRepositoryEncryptionKeyInputTypeDef:
    return {
        "repositoryName": ...,
    }


# UpdateRepositoryEncryptionKeyInputTypeDef definition

class UpdateRepositoryEncryptionKeyInputTypeDef(TypedDict):
    repositoryName: str,
    kmsKeyId: str,

UpdateRepositoryNameInputTypeDef#

# UpdateRepositoryNameInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import UpdateRepositoryNameInputTypeDef


def get_value() -> UpdateRepositoryNameInputTypeDef:
    return {
        "oldName": ...,
    }


# UpdateRepositoryNameInputTypeDef definition

class UpdateRepositoryNameInputTypeDef(TypedDict):
    oldName: str,
    newName: str,

ApprovalRuleTypeDef#

# ApprovalRuleTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import ApprovalRuleTypeDef


def get_value() -> ApprovalRuleTypeDef:
    return {
        "approvalRuleId": ...,
    }


# ApprovalRuleTypeDef definition

class ApprovalRuleTypeDef(TypedDict):
    approvalRuleId: NotRequired[str],
    approvalRuleName: NotRequired[str],
    approvalRuleContent: NotRequired[str],
    ruleContentSha256: NotRequired[str],
    lastModifiedDate: NotRequired[datetime],
    creationDate: NotRequired[datetime],
    lastModifiedUser: NotRequired[str],
    originApprovalRuleTemplate: NotRequired[OriginApprovalRuleTemplateTypeDef],  # (1)
  1. See OriginApprovalRuleTemplateTypeDef

BatchAssociateApprovalRuleTemplateWithRepositoriesOutputTypeDef#

# BatchAssociateApprovalRuleTemplateWithRepositoriesOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import BatchAssociateApprovalRuleTemplateWithRepositoriesOutputTypeDef


def get_value() -> BatchAssociateApprovalRuleTemplateWithRepositoriesOutputTypeDef:
    return {
        "associatedRepositoryNames": ...,
    }


# BatchAssociateApprovalRuleTemplateWithRepositoriesOutputTypeDef definition

class BatchAssociateApprovalRuleTemplateWithRepositoriesOutputTypeDef(TypedDict):
    associatedRepositoryNames: List[str],
    errors: List[BatchAssociateApprovalRuleTemplateWithRepositoriesErrorTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See BatchAssociateApprovalRuleTemplateWithRepositoriesErrorTypeDef
  2. See ResponseMetadataTypeDef

CreateApprovalRuleTemplateOutputTypeDef#

# CreateApprovalRuleTemplateOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import CreateApprovalRuleTemplateOutputTypeDef


def get_value() -> CreateApprovalRuleTemplateOutputTypeDef:
    return {
        "approvalRuleTemplate": ...,
    }


# CreateApprovalRuleTemplateOutputTypeDef definition

class CreateApprovalRuleTemplateOutputTypeDef(TypedDict):
    approvalRuleTemplate: ApprovalRuleTemplateTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See ApprovalRuleTemplateTypeDef
  2. See ResponseMetadataTypeDef

CreateUnreferencedMergeCommitOutputTypeDef#

# CreateUnreferencedMergeCommitOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import CreateUnreferencedMergeCommitOutputTypeDef


def get_value() -> CreateUnreferencedMergeCommitOutputTypeDef:
    return {
        "commitId": ...,
    }


# CreateUnreferencedMergeCommitOutputTypeDef definition

class CreateUnreferencedMergeCommitOutputTypeDef(TypedDict):
    commitId: str,
    treeId: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

DeleteApprovalRuleTemplateOutputTypeDef#

# DeleteApprovalRuleTemplateOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import DeleteApprovalRuleTemplateOutputTypeDef


def get_value() -> DeleteApprovalRuleTemplateOutputTypeDef:
    return {
        "approvalRuleTemplateId": ...,
    }


# DeleteApprovalRuleTemplateOutputTypeDef definition

class DeleteApprovalRuleTemplateOutputTypeDef(TypedDict):
    approvalRuleTemplateId: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

DeleteFileOutputTypeDef#

# DeleteFileOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import DeleteFileOutputTypeDef


def get_value() -> DeleteFileOutputTypeDef:
    return {
        "commitId": ...,
    }


# DeleteFileOutputTypeDef definition

class DeleteFileOutputTypeDef(TypedDict):
    commitId: str,
    blobId: str,
    treeId: str,
    filePath: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

DeletePullRequestApprovalRuleOutputTypeDef#

# DeletePullRequestApprovalRuleOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import DeletePullRequestApprovalRuleOutputTypeDef


def get_value() -> DeletePullRequestApprovalRuleOutputTypeDef:
    return {
        "approvalRuleId": ...,
    }


# DeletePullRequestApprovalRuleOutputTypeDef definition

class DeletePullRequestApprovalRuleOutputTypeDef(TypedDict):
    approvalRuleId: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

DeleteRepositoryOutputTypeDef#

# DeleteRepositoryOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import DeleteRepositoryOutputTypeDef


def get_value() -> DeleteRepositoryOutputTypeDef:
    return {
        "repositoryId": ...,
    }


# DeleteRepositoryOutputTypeDef definition

class DeleteRepositoryOutputTypeDef(TypedDict):
    repositoryId: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

EmptyResponseMetadataTypeDef#

# EmptyResponseMetadataTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import EmptyResponseMetadataTypeDef


def get_value() -> EmptyResponseMetadataTypeDef:
    return {
        "ResponseMetadata": ...,
    }


# EmptyResponseMetadataTypeDef definition

class EmptyResponseMetadataTypeDef(TypedDict):
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

GetApprovalRuleTemplateOutputTypeDef#

# GetApprovalRuleTemplateOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import GetApprovalRuleTemplateOutputTypeDef


def get_value() -> GetApprovalRuleTemplateOutputTypeDef:
    return {
        "approvalRuleTemplate": ...,
    }


# GetApprovalRuleTemplateOutputTypeDef definition

class GetApprovalRuleTemplateOutputTypeDef(TypedDict):
    approvalRuleTemplate: ApprovalRuleTemplateTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See ApprovalRuleTemplateTypeDef
  2. See ResponseMetadataTypeDef

GetBlobOutputTypeDef#

# GetBlobOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import GetBlobOutputTypeDef


def get_value() -> GetBlobOutputTypeDef:
    return {
        "content": ...,
    }


# GetBlobOutputTypeDef definition

class GetBlobOutputTypeDef(TypedDict):
    content: bytes,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

GetFileOutputTypeDef#

# GetFileOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import GetFileOutputTypeDef


def get_value() -> GetFileOutputTypeDef:
    return {
        "commitId": ...,
    }


# GetFileOutputTypeDef definition

class GetFileOutputTypeDef(TypedDict):
    commitId: str,
    blobId: str,
    filePath: str,
    fileMode: FileModeTypeEnumType,  # (1)
    fileSize: int,
    fileContent: bytes,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See FileModeTypeEnumType
  2. See ResponseMetadataTypeDef

GetMergeCommitOutputTypeDef#

# GetMergeCommitOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import GetMergeCommitOutputTypeDef


def get_value() -> GetMergeCommitOutputTypeDef:
    return {
        "sourceCommitId": ...,
    }


# GetMergeCommitOutputTypeDef definition

class GetMergeCommitOutputTypeDef(TypedDict):
    sourceCommitId: str,
    destinationCommitId: str,
    baseCommitId: str,
    mergedCommitId: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

GetMergeOptionsOutputTypeDef#

# GetMergeOptionsOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import GetMergeOptionsOutputTypeDef


def get_value() -> GetMergeOptionsOutputTypeDef:
    return {
        "mergeOptions": ...,
    }


# GetMergeOptionsOutputTypeDef definition

class GetMergeOptionsOutputTypeDef(TypedDict):
    mergeOptions: List[MergeOptionTypeEnumType],  # (1)
    sourceCommitId: str,
    destinationCommitId: str,
    baseCommitId: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See MergeOptionTypeEnumType
  2. See ResponseMetadataTypeDef

GetPullRequestApprovalStatesOutputTypeDef#

# GetPullRequestApprovalStatesOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import GetPullRequestApprovalStatesOutputTypeDef


def get_value() -> GetPullRequestApprovalStatesOutputTypeDef:
    return {
        "approvals": ...,
    }


# GetPullRequestApprovalStatesOutputTypeDef definition

class GetPullRequestApprovalStatesOutputTypeDef(TypedDict):
    approvals: List[ApprovalTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See ApprovalTypeDef
  2. See ResponseMetadataTypeDef

GetPullRequestOverrideStateOutputTypeDef#

# GetPullRequestOverrideStateOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import GetPullRequestOverrideStateOutputTypeDef


def get_value() -> GetPullRequestOverrideStateOutputTypeDef:
    return {
        "overridden": ...,
    }


# GetPullRequestOverrideStateOutputTypeDef definition

class GetPullRequestOverrideStateOutputTypeDef(TypedDict):
    overridden: bool,
    overrider: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

ListApprovalRuleTemplatesOutputTypeDef#

# ListApprovalRuleTemplatesOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import ListApprovalRuleTemplatesOutputTypeDef


def get_value() -> ListApprovalRuleTemplatesOutputTypeDef:
    return {
        "approvalRuleTemplateNames": ...,
    }


# ListApprovalRuleTemplatesOutputTypeDef definition

class ListApprovalRuleTemplatesOutputTypeDef(TypedDict):
    approvalRuleTemplateNames: List[str],
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
    nextToken: NotRequired[str],
  1. See ResponseMetadataTypeDef

ListAssociatedApprovalRuleTemplatesForRepositoryOutputTypeDef#

# ListAssociatedApprovalRuleTemplatesForRepositoryOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import ListAssociatedApprovalRuleTemplatesForRepositoryOutputTypeDef


def get_value() -> ListAssociatedApprovalRuleTemplatesForRepositoryOutputTypeDef:
    return {
        "approvalRuleTemplateNames": ...,
    }


# ListAssociatedApprovalRuleTemplatesForRepositoryOutputTypeDef definition

class ListAssociatedApprovalRuleTemplatesForRepositoryOutputTypeDef(TypedDict):
    approvalRuleTemplateNames: List[str],
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
    nextToken: NotRequired[str],
  1. See ResponseMetadataTypeDef

ListBranchesOutputTypeDef#

# ListBranchesOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import ListBranchesOutputTypeDef


def get_value() -> ListBranchesOutputTypeDef:
    return {
        "branches": ...,
    }


# ListBranchesOutputTypeDef definition

class ListBranchesOutputTypeDef(TypedDict):
    branches: List[str],
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
    nextToken: NotRequired[str],
  1. See ResponseMetadataTypeDef

ListPullRequestsOutputTypeDef#

# ListPullRequestsOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import ListPullRequestsOutputTypeDef


def get_value() -> ListPullRequestsOutputTypeDef:
    return {
        "pullRequestIds": ...,
    }


# ListPullRequestsOutputTypeDef definition

class ListPullRequestsOutputTypeDef(TypedDict):
    pullRequestIds: List[str],
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
    nextToken: NotRequired[str],
  1. See ResponseMetadataTypeDef

ListRepositoriesForApprovalRuleTemplateOutputTypeDef#

# ListRepositoriesForApprovalRuleTemplateOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import ListRepositoriesForApprovalRuleTemplateOutputTypeDef


def get_value() -> ListRepositoriesForApprovalRuleTemplateOutputTypeDef:
    return {
        "repositoryNames": ...,
    }


# ListRepositoriesForApprovalRuleTemplateOutputTypeDef definition

class ListRepositoriesForApprovalRuleTemplateOutputTypeDef(TypedDict):
    repositoryNames: List[str],
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
    nextToken: NotRequired[str],
  1. See ResponseMetadataTypeDef

ListTagsForResourceOutputTypeDef#

# ListTagsForResourceOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import ListTagsForResourceOutputTypeDef


def get_value() -> ListTagsForResourceOutputTypeDef:
    return {
        "tags": ...,
    }


# ListTagsForResourceOutputTypeDef definition

class ListTagsForResourceOutputTypeDef(TypedDict):
    tags: Dict[str, str],
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
    nextToken: NotRequired[str],
  1. See ResponseMetadataTypeDef

MergeBranchesByFastForwardOutputTypeDef#

# MergeBranchesByFastForwardOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import MergeBranchesByFastForwardOutputTypeDef


def get_value() -> MergeBranchesByFastForwardOutputTypeDef:
    return {
        "commitId": ...,
    }


# MergeBranchesByFastForwardOutputTypeDef definition

class MergeBranchesByFastForwardOutputTypeDef(TypedDict):
    commitId: str,
    treeId: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

MergeBranchesBySquashOutputTypeDef#

# MergeBranchesBySquashOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import MergeBranchesBySquashOutputTypeDef


def get_value() -> MergeBranchesBySquashOutputTypeDef:
    return {
        "commitId": ...,
    }


# MergeBranchesBySquashOutputTypeDef definition

class MergeBranchesBySquashOutputTypeDef(TypedDict):
    commitId: str,
    treeId: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

MergeBranchesByThreeWayOutputTypeDef#

# MergeBranchesByThreeWayOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import MergeBranchesByThreeWayOutputTypeDef


def get_value() -> MergeBranchesByThreeWayOutputTypeDef:
    return {
        "commitId": ...,
    }


# MergeBranchesByThreeWayOutputTypeDef definition

class MergeBranchesByThreeWayOutputTypeDef(TypedDict):
    commitId: str,
    treeId: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

PutFileOutputTypeDef#

# PutFileOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import PutFileOutputTypeDef


def get_value() -> PutFileOutputTypeDef:
    return {
        "commitId": ...,
    }


# PutFileOutputTypeDef definition

class PutFileOutputTypeDef(TypedDict):
    commitId: str,
    blobId: str,
    treeId: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

PutRepositoryTriggersOutputTypeDef#

# PutRepositoryTriggersOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import PutRepositoryTriggersOutputTypeDef


def get_value() -> PutRepositoryTriggersOutputTypeDef:
    return {
        "configurationId": ...,
    }


# PutRepositoryTriggersOutputTypeDef definition

class PutRepositoryTriggersOutputTypeDef(TypedDict):
    configurationId: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

UpdateApprovalRuleTemplateContentOutputTypeDef#

# UpdateApprovalRuleTemplateContentOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import UpdateApprovalRuleTemplateContentOutputTypeDef


def get_value() -> UpdateApprovalRuleTemplateContentOutputTypeDef:
    return {
        "approvalRuleTemplate": ...,
    }


# UpdateApprovalRuleTemplateContentOutputTypeDef definition

class UpdateApprovalRuleTemplateContentOutputTypeDef(TypedDict):
    approvalRuleTemplate: ApprovalRuleTemplateTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See ApprovalRuleTemplateTypeDef
  2. See ResponseMetadataTypeDef

UpdateApprovalRuleTemplateDescriptionOutputTypeDef#

# UpdateApprovalRuleTemplateDescriptionOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import UpdateApprovalRuleTemplateDescriptionOutputTypeDef


def get_value() -> UpdateApprovalRuleTemplateDescriptionOutputTypeDef:
    return {
        "approvalRuleTemplate": ...,
    }


# UpdateApprovalRuleTemplateDescriptionOutputTypeDef definition

class UpdateApprovalRuleTemplateDescriptionOutputTypeDef(TypedDict):
    approvalRuleTemplate: ApprovalRuleTemplateTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See ApprovalRuleTemplateTypeDef
  2. See ResponseMetadataTypeDef

UpdateApprovalRuleTemplateNameOutputTypeDef#

# UpdateApprovalRuleTemplateNameOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import UpdateApprovalRuleTemplateNameOutputTypeDef


def get_value() -> UpdateApprovalRuleTemplateNameOutputTypeDef:
    return {
        "approvalRuleTemplate": ...,
    }


# UpdateApprovalRuleTemplateNameOutputTypeDef definition

class UpdateApprovalRuleTemplateNameOutputTypeDef(TypedDict):
    approvalRuleTemplate: ApprovalRuleTemplateTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See ApprovalRuleTemplateTypeDef
  2. See ResponseMetadataTypeDef

UpdateRepositoryEncryptionKeyOutputTypeDef#

# UpdateRepositoryEncryptionKeyOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import UpdateRepositoryEncryptionKeyOutputTypeDef


def get_value() -> UpdateRepositoryEncryptionKeyOutputTypeDef:
    return {
        "repositoryId": ...,
    }


# UpdateRepositoryEncryptionKeyOutputTypeDef definition

class UpdateRepositoryEncryptionKeyOutputTypeDef(TypedDict):
    repositoryId: str,
    kmsKeyId: str,
    originalKmsKeyId: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

BatchDisassociateApprovalRuleTemplateFromRepositoriesOutputTypeDef#

# BatchDisassociateApprovalRuleTemplateFromRepositoriesOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import BatchDisassociateApprovalRuleTemplateFromRepositoriesOutputTypeDef


def get_value() -> BatchDisassociateApprovalRuleTemplateFromRepositoriesOutputTypeDef:
    return {
        "disassociatedRepositoryNames": ...,
    }


# BatchDisassociateApprovalRuleTemplateFromRepositoriesOutputTypeDef definition

class BatchDisassociateApprovalRuleTemplateFromRepositoriesOutputTypeDef(TypedDict):
    disassociatedRepositoryNames: List[str],
    errors: List[BatchDisassociateApprovalRuleTemplateFromRepositoriesErrorTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See BatchDisassociateApprovalRuleTemplateFromRepositoriesErrorTypeDef
  2. See ResponseMetadataTypeDef

BatchGetRepositoriesOutputTypeDef#

# BatchGetRepositoriesOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import BatchGetRepositoriesOutputTypeDef


def get_value() -> BatchGetRepositoriesOutputTypeDef:
    return {
        "repositories": ...,
    }


# BatchGetRepositoriesOutputTypeDef definition

class BatchGetRepositoriesOutputTypeDef(TypedDict):
    repositories: List[RepositoryMetadataTypeDef],  # (1)
    repositoriesNotFound: List[str],
    errors: List[BatchGetRepositoriesErrorTypeDef],  # (2)
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)
  1. See RepositoryMetadataTypeDef
  2. See BatchGetRepositoriesErrorTypeDef
  3. See ResponseMetadataTypeDef

CreateRepositoryOutputTypeDef#

# CreateRepositoryOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import CreateRepositoryOutputTypeDef


def get_value() -> CreateRepositoryOutputTypeDef:
    return {
        "repositoryMetadata": ...,
    }


# CreateRepositoryOutputTypeDef definition

class CreateRepositoryOutputTypeDef(TypedDict):
    repositoryMetadata: RepositoryMetadataTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See RepositoryMetadataTypeDef
  2. See ResponseMetadataTypeDef

GetRepositoryOutputTypeDef#

# GetRepositoryOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import GetRepositoryOutputTypeDef


def get_value() -> GetRepositoryOutputTypeDef:
    return {
        "repositoryMetadata": ...,
    }


# GetRepositoryOutputTypeDef definition

class GetRepositoryOutputTypeDef(TypedDict):
    repositoryMetadata: RepositoryMetadataTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See RepositoryMetadataTypeDef
  2. See ResponseMetadataTypeDef

DifferenceTypeDef#

# DifferenceTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import DifferenceTypeDef


def get_value() -> DifferenceTypeDef:
    return {
        "beforeBlob": ...,
    }


# DifferenceTypeDef definition

class DifferenceTypeDef(TypedDict):
    beforeBlob: NotRequired[BlobMetadataTypeDef],  # (1)
    afterBlob: NotRequired[BlobMetadataTypeDef],  # (1)
    changeType: NotRequired[ChangeTypeEnumType],  # (3)
  1. See BlobMetadataTypeDef
  2. See BlobMetadataTypeDef
  3. See ChangeTypeEnumType

PutFileInputTypeDef#

# PutFileInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import PutFileInputTypeDef


def get_value() -> PutFileInputTypeDef:
    return {
        "repositoryName": ...,
    }


# PutFileInputTypeDef definition

class PutFileInputTypeDef(TypedDict):
    repositoryName: str,
    branchName: str,
    fileContent: BlobTypeDef,
    filePath: str,
    fileMode: NotRequired[FileModeTypeEnumType],  # (1)
    parentCommitId: NotRequired[str],
    commitMessage: NotRequired[str],
    name: NotRequired[str],
    email: NotRequired[str],
  1. See FileModeTypeEnumType

ReplaceContentEntryTypeDef#

# ReplaceContentEntryTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import ReplaceContentEntryTypeDef


def get_value() -> ReplaceContentEntryTypeDef:
    return {
        "filePath": ...,
    }


# ReplaceContentEntryTypeDef definition

class ReplaceContentEntryTypeDef(TypedDict):
    filePath: str,
    replacementType: ReplacementTypeEnumType,  # (1)
    content: NotRequired[BlobTypeDef],
    fileMode: NotRequired[FileModeTypeEnumType],  # (2)
  1. See ReplacementTypeEnumType
  2. See FileModeTypeEnumType

DeleteBranchOutputTypeDef#

# DeleteBranchOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import DeleteBranchOutputTypeDef


def get_value() -> DeleteBranchOutputTypeDef:
    return {
        "deletedBranch": ...,
    }


# DeleteBranchOutputTypeDef definition

class DeleteBranchOutputTypeDef(TypedDict):
    deletedBranch: BranchInfoTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See BranchInfoTypeDef
  2. See ResponseMetadataTypeDef

GetBranchOutputTypeDef#

# GetBranchOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import GetBranchOutputTypeDef


def get_value() -> GetBranchOutputTypeDef:
    return {
        "branch": ...,
    }


# GetBranchOutputTypeDef definition

class GetBranchOutputTypeDef(TypedDict):
    branch: BranchInfoTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See BranchInfoTypeDef
  2. See ResponseMetadataTypeDef

DeleteCommentContentOutputTypeDef#

# DeleteCommentContentOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import DeleteCommentContentOutputTypeDef


def get_value() -> DeleteCommentContentOutputTypeDef:
    return {
        "comment": ...,
    }


# DeleteCommentContentOutputTypeDef definition

class DeleteCommentContentOutputTypeDef(TypedDict):
    comment: CommentTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See CommentTypeDef
  2. See ResponseMetadataTypeDef

GetCommentOutputTypeDef#

# GetCommentOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import GetCommentOutputTypeDef


def get_value() -> GetCommentOutputTypeDef:
    return {
        "comment": ...,
    }


# GetCommentOutputTypeDef definition

class GetCommentOutputTypeDef(TypedDict):
    comment: CommentTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See CommentTypeDef
  2. See ResponseMetadataTypeDef

PostCommentReplyOutputTypeDef#

# PostCommentReplyOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import PostCommentReplyOutputTypeDef


def get_value() -> PostCommentReplyOutputTypeDef:
    return {
        "comment": ...,
    }


# PostCommentReplyOutputTypeDef definition

class PostCommentReplyOutputTypeDef(TypedDict):
    comment: CommentTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See CommentTypeDef
  2. See ResponseMetadataTypeDef

UpdateCommentOutputTypeDef#

# UpdateCommentOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import UpdateCommentOutputTypeDef


def get_value() -> UpdateCommentOutputTypeDef:
    return {
        "comment": ...,
    }


# UpdateCommentOutputTypeDef definition

class UpdateCommentOutputTypeDef(TypedDict):
    comment: CommentTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See CommentTypeDef
  2. See ResponseMetadataTypeDef

CommentsForComparedCommitTypeDef#

# CommentsForComparedCommitTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import CommentsForComparedCommitTypeDef


def get_value() -> CommentsForComparedCommitTypeDef:
    return {
        "repositoryName": ...,
    }


# CommentsForComparedCommitTypeDef definition

class CommentsForComparedCommitTypeDef(TypedDict):
    repositoryName: NotRequired[str],
    beforeCommitId: NotRequired[str],
    afterCommitId: NotRequired[str],
    beforeBlobId: NotRequired[str],
    afterBlobId: NotRequired[str],
    location: NotRequired[LocationTypeDef],  # (1)
    comments: NotRequired[List[CommentTypeDef]],  # (2)
  1. See LocationTypeDef
  2. See CommentTypeDef

CommentsForPullRequestTypeDef#

# CommentsForPullRequestTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import CommentsForPullRequestTypeDef


def get_value() -> CommentsForPullRequestTypeDef:
    return {
        "pullRequestId": ...,
    }


# CommentsForPullRequestTypeDef definition

class CommentsForPullRequestTypeDef(TypedDict):
    pullRequestId: NotRequired[str],
    repositoryName: NotRequired[str],
    beforeCommitId: NotRequired[str],
    afterCommitId: NotRequired[str],
    beforeBlobId: NotRequired[str],
    afterBlobId: NotRequired[str],
    location: NotRequired[LocationTypeDef],  # (1)
    comments: NotRequired[List[CommentTypeDef]],  # (2)
  1. See LocationTypeDef
  2. See CommentTypeDef

PostCommentForComparedCommitInputTypeDef#

# PostCommentForComparedCommitInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import PostCommentForComparedCommitInputTypeDef


def get_value() -> PostCommentForComparedCommitInputTypeDef:
    return {
        "repositoryName": ...,
    }


# PostCommentForComparedCommitInputTypeDef definition

class PostCommentForComparedCommitInputTypeDef(TypedDict):
    repositoryName: str,
    afterCommitId: str,
    content: str,
    beforeCommitId: NotRequired[str],
    location: NotRequired[LocationTypeDef],  # (1)
    clientRequestToken: NotRequired[str],
  1. See LocationTypeDef

PostCommentForComparedCommitOutputTypeDef#

# PostCommentForComparedCommitOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import PostCommentForComparedCommitOutputTypeDef


def get_value() -> PostCommentForComparedCommitOutputTypeDef:
    return {
        "repositoryName": ...,
    }


# PostCommentForComparedCommitOutputTypeDef definition

class PostCommentForComparedCommitOutputTypeDef(TypedDict):
    repositoryName: str,
    beforeCommitId: str,
    afterCommitId: str,
    beforeBlobId: str,
    afterBlobId: str,
    location: LocationTypeDef,  # (1)
    comment: CommentTypeDef,  # (2)
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)
  1. See LocationTypeDef
  2. See CommentTypeDef
  3. See ResponseMetadataTypeDef

PostCommentForPullRequestInputTypeDef#

# PostCommentForPullRequestInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import PostCommentForPullRequestInputTypeDef


def get_value() -> PostCommentForPullRequestInputTypeDef:
    return {
        "pullRequestId": ...,
    }


# PostCommentForPullRequestInputTypeDef definition

class PostCommentForPullRequestInputTypeDef(TypedDict):
    pullRequestId: str,
    repositoryName: str,
    beforeCommitId: str,
    afterCommitId: str,
    content: str,
    location: NotRequired[LocationTypeDef],  # (1)
    clientRequestToken: NotRequired[str],
  1. See LocationTypeDef

PostCommentForPullRequestOutputTypeDef#

# PostCommentForPullRequestOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import PostCommentForPullRequestOutputTypeDef


def get_value() -> PostCommentForPullRequestOutputTypeDef:
    return {
        "repositoryName": ...,
    }


# PostCommentForPullRequestOutputTypeDef definition

class PostCommentForPullRequestOutputTypeDef(TypedDict):
    repositoryName: str,
    pullRequestId: str,
    beforeCommitId: str,
    afterCommitId: str,
    beforeBlobId: str,
    afterBlobId: str,
    location: LocationTypeDef,  # (1)
    comment: CommentTypeDef,  # (2)
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)
  1. See LocationTypeDef
  2. See CommentTypeDef
  3. See ResponseMetadataTypeDef

CommitTypeDef#

# CommitTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import CommitTypeDef


def get_value() -> CommitTypeDef:
    return {
        "commitId": ...,
    }


# CommitTypeDef definition

class CommitTypeDef(TypedDict):
    commitId: NotRequired[str],
    treeId: NotRequired[str],
    parents: NotRequired[List[str]],
    message: NotRequired[str],
    author: NotRequired[UserInfoTypeDef],  # (1)
    committer: NotRequired[UserInfoTypeDef],  # (1)
    additionalData: NotRequired[str],
  1. See UserInfoTypeDef
  2. See UserInfoTypeDef

ConflictMetadataTypeDef#

# ConflictMetadataTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import ConflictMetadataTypeDef


def get_value() -> ConflictMetadataTypeDef:
    return {
        "filePath": ...,
    }


# ConflictMetadataTypeDef definition

class ConflictMetadataTypeDef(TypedDict):
    filePath: NotRequired[str],
    fileSizes: NotRequired[FileSizesTypeDef],  # (1)
    fileModes: NotRequired[FileModesTypeDef],  # (2)
    objectTypes: NotRequired[ObjectTypesTypeDef],  # (3)
    numberOfConflicts: NotRequired[int],
    isBinaryFile: NotRequired[IsBinaryFileTypeDef],  # (4)
    contentConflict: NotRequired[bool],
    fileModeConflict: NotRequired[bool],
    objectTypeConflict: NotRequired[bool],
    mergeOperations: NotRequired[MergeOperationsTypeDef],  # (5)
  1. See FileSizesTypeDef
  2. See FileModesTypeDef
  3. See ObjectTypesTypeDef
  4. See IsBinaryFileTypeDef
  5. See MergeOperationsTypeDef

CreateCommitOutputTypeDef#

# CreateCommitOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import CreateCommitOutputTypeDef


def get_value() -> CreateCommitOutputTypeDef:
    return {
        "commitId": ...,
    }


# CreateCommitOutputTypeDef definition

class CreateCommitOutputTypeDef(TypedDict):
    commitId: str,
    treeId: str,
    filesAdded: List[FileMetadataTypeDef],  # (1)
    filesUpdated: List[FileMetadataTypeDef],  # (1)
    filesDeleted: List[FileMetadataTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (4)
  1. See FileMetadataTypeDef
  2. See FileMetadataTypeDef
  3. See FileMetadataTypeDef
  4. See ResponseMetadataTypeDef

CreatePullRequestInputTypeDef#

# CreatePullRequestInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import CreatePullRequestInputTypeDef


def get_value() -> CreatePullRequestInputTypeDef:
    return {
        "title": ...,
    }


# CreatePullRequestInputTypeDef definition

class CreatePullRequestInputTypeDef(TypedDict):
    title: str,
    targets: Sequence[TargetTypeDef],  # (1)
    description: NotRequired[str],
    clientRequestToken: NotRequired[str],
  1. See TargetTypeDef

DescribePullRequestEventsInputPaginateTypeDef#

# DescribePullRequestEventsInputPaginateTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import DescribePullRequestEventsInputPaginateTypeDef


def get_value() -> DescribePullRequestEventsInputPaginateTypeDef:
    return {
        "pullRequestId": ...,
    }


# DescribePullRequestEventsInputPaginateTypeDef definition

class DescribePullRequestEventsInputPaginateTypeDef(TypedDict):
    pullRequestId: str,
    pullRequestEventType: NotRequired[PullRequestEventTypeType],  # (1)
    actorArn: NotRequired[str],
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (2)
  1. See PullRequestEventTypeType
  2. See PaginatorConfigTypeDef

GetCommentsForComparedCommitInputPaginateTypeDef#

# GetCommentsForComparedCommitInputPaginateTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import GetCommentsForComparedCommitInputPaginateTypeDef


def get_value() -> GetCommentsForComparedCommitInputPaginateTypeDef:
    return {
        "repositoryName": ...,
    }


# GetCommentsForComparedCommitInputPaginateTypeDef definition

class GetCommentsForComparedCommitInputPaginateTypeDef(TypedDict):
    repositoryName: str,
    afterCommitId: str,
    beforeCommitId: NotRequired[str],
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (1)
  1. See PaginatorConfigTypeDef

GetCommentsForPullRequestInputPaginateTypeDef#

# GetCommentsForPullRequestInputPaginateTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import GetCommentsForPullRequestInputPaginateTypeDef


def get_value() -> GetCommentsForPullRequestInputPaginateTypeDef:
    return {
        "pullRequestId": ...,
    }


# GetCommentsForPullRequestInputPaginateTypeDef definition

class GetCommentsForPullRequestInputPaginateTypeDef(TypedDict):
    pullRequestId: str,
    repositoryName: NotRequired[str],
    beforeCommitId: NotRequired[str],
    afterCommitId: NotRequired[str],
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (1)
  1. See PaginatorConfigTypeDef

GetDifferencesInputPaginateTypeDef#

# GetDifferencesInputPaginateTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import GetDifferencesInputPaginateTypeDef


def get_value() -> GetDifferencesInputPaginateTypeDef:
    return {
        "repositoryName": ...,
    }


# GetDifferencesInputPaginateTypeDef definition

class GetDifferencesInputPaginateTypeDef(TypedDict):
    repositoryName: str,
    afterCommitSpecifier: str,
    beforeCommitSpecifier: NotRequired[str],
    beforePath: NotRequired[str],
    afterPath: NotRequired[str],
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (1)
  1. See PaginatorConfigTypeDef

ListBranchesInputPaginateTypeDef#

# ListBranchesInputPaginateTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import ListBranchesInputPaginateTypeDef


def get_value() -> ListBranchesInputPaginateTypeDef:
    return {
        "repositoryName": ...,
    }


# ListBranchesInputPaginateTypeDef definition

class ListBranchesInputPaginateTypeDef(TypedDict):
    repositoryName: str,
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (1)
  1. See PaginatorConfigTypeDef

ListPullRequestsInputPaginateTypeDef#

# ListPullRequestsInputPaginateTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import ListPullRequestsInputPaginateTypeDef


def get_value() -> ListPullRequestsInputPaginateTypeDef:
    return {
        "repositoryName": ...,
    }


# ListPullRequestsInputPaginateTypeDef definition

class ListPullRequestsInputPaginateTypeDef(TypedDict):
    repositoryName: str,
    authorArn: NotRequired[str],
    pullRequestStatus: NotRequired[PullRequestStatusEnumType],  # (1)
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (2)
  1. See PullRequestStatusEnumType
  2. See PaginatorConfigTypeDef

ListRepositoriesInputPaginateTypeDef#

# ListRepositoriesInputPaginateTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import ListRepositoriesInputPaginateTypeDef


def get_value() -> ListRepositoriesInputPaginateTypeDef:
    return {
        "sortBy": ...,
    }


# ListRepositoriesInputPaginateTypeDef definition

class ListRepositoriesInputPaginateTypeDef(TypedDict):
    sortBy: NotRequired[SortByEnumType],  # (1)
    order: NotRequired[OrderEnumType],  # (2)
    PaginationConfig: NotRequired[PaginatorConfigTypeDef],  # (3)
  1. See SortByEnumType
  2. See OrderEnumType
  3. See PaginatorConfigTypeDef

EvaluatePullRequestApprovalRulesOutputTypeDef#

# EvaluatePullRequestApprovalRulesOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import EvaluatePullRequestApprovalRulesOutputTypeDef


def get_value() -> EvaluatePullRequestApprovalRulesOutputTypeDef:
    return {
        "evaluation": ...,
    }


# EvaluatePullRequestApprovalRulesOutputTypeDef definition

class EvaluatePullRequestApprovalRulesOutputTypeDef(TypedDict):
    evaluation: EvaluationTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See EvaluationTypeDef
  2. See ResponseMetadataTypeDef

GetFolderOutputTypeDef#

# GetFolderOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import GetFolderOutputTypeDef


def get_value() -> GetFolderOutputTypeDef:
    return {
        "commitId": ...,
    }


# GetFolderOutputTypeDef definition

class GetFolderOutputTypeDef(TypedDict):
    commitId: str,
    folderPath: str,
    treeId: str,
    subFolders: List[FolderTypeDef],  # (1)
    files: List[FileTypeDef],  # (2)
    symbolicLinks: List[SymbolicLinkTypeDef],  # (3)
    subModules: List[SubModuleTypeDef],  # (4)
    ResponseMetadata: ResponseMetadataTypeDef,  # (5)
  1. See FolderTypeDef
  2. See FileTypeDef
  3. See SymbolicLinkTypeDef
  4. See SubModuleTypeDef
  5. See ResponseMetadataTypeDef

GetRepositoryTriggersOutputTypeDef#

# GetRepositoryTriggersOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import GetRepositoryTriggersOutputTypeDef


def get_value() -> GetRepositoryTriggersOutputTypeDef:
    return {
        "configurationId": ...,
    }


# GetRepositoryTriggersOutputTypeDef definition

class GetRepositoryTriggersOutputTypeDef(TypedDict):
    configurationId: str,
    triggers: List[RepositoryTriggerOutputTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See RepositoryTriggerOutputTypeDef
  2. See ResponseMetadataTypeDef

ListRepositoriesOutputTypeDef#

# ListRepositoriesOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import ListRepositoriesOutputTypeDef


def get_value() -> ListRepositoriesOutputTypeDef:
    return {
        "repositories": ...,
    }


# ListRepositoriesOutputTypeDef definition

class ListRepositoriesOutputTypeDef(TypedDict):
    repositories: List[RepositoryNameIdPairTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
    nextToken: NotRequired[str],
  1. See RepositoryNameIdPairTypeDef
  2. See ResponseMetadataTypeDef

MergeHunkTypeDef#

# MergeHunkTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import MergeHunkTypeDef


def get_value() -> MergeHunkTypeDef:
    return {
        "isConflict": ...,
    }


# MergeHunkTypeDef definition

class MergeHunkTypeDef(TypedDict):
    isConflict: NotRequired[bool],
    source: NotRequired[MergeHunkDetailTypeDef],  # (1)
    destination: NotRequired[MergeHunkDetailTypeDef],  # (1)
    base: NotRequired[MergeHunkDetailTypeDef],  # (1)
  1. See MergeHunkDetailTypeDef
  2. See MergeHunkDetailTypeDef
  3. See MergeHunkDetailTypeDef

PullRequestMergedStateChangedEventMetadataTypeDef#

# PullRequestMergedStateChangedEventMetadataTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import PullRequestMergedStateChangedEventMetadataTypeDef


def get_value() -> PullRequestMergedStateChangedEventMetadataTypeDef:
    return {
        "repositoryName": ...,
    }


# PullRequestMergedStateChangedEventMetadataTypeDef definition

class PullRequestMergedStateChangedEventMetadataTypeDef(TypedDict):
    repositoryName: NotRequired[str],
    destinationReference: NotRequired[str],
    mergeMetadata: NotRequired[MergeMetadataTypeDef],  # (1)
  1. See MergeMetadataTypeDef

PullRequestTargetTypeDef#

# PullRequestTargetTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import PullRequestTargetTypeDef


def get_value() -> PullRequestTargetTypeDef:
    return {
        "repositoryName": ...,
    }


# PullRequestTargetTypeDef definition

class PullRequestTargetTypeDef(TypedDict):
    repositoryName: NotRequired[str],
    sourceReference: NotRequired[str],
    destinationReference: NotRequired[str],
    destinationCommit: NotRequired[str],
    sourceCommit: NotRequired[str],
    mergeBase: NotRequired[str],
    mergeMetadata: NotRequired[MergeMetadataTypeDef],  # (1)
  1. See MergeMetadataTypeDef

PutFileEntryTypeDef#

# PutFileEntryTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import PutFileEntryTypeDef


def get_value() -> PutFileEntryTypeDef:
    return {
        "filePath": ...,
    }


# PutFileEntryTypeDef definition

class PutFileEntryTypeDef(TypedDict):
    filePath: str,
    fileMode: NotRequired[FileModeTypeEnumType],  # (1)
    fileContent: NotRequired[BlobTypeDef],
    sourceFile: NotRequired[SourceFileSpecifierTypeDef],  # (2)
  1. See FileModeTypeEnumType
  2. See SourceFileSpecifierTypeDef

ReactionForCommentTypeDef#

# ReactionForCommentTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import ReactionForCommentTypeDef


def get_value() -> ReactionForCommentTypeDef:
    return {
        "reaction": ...,
    }


# ReactionForCommentTypeDef definition

class ReactionForCommentTypeDef(TypedDict):
    reaction: NotRequired[ReactionValueFormatsTypeDef],  # (1)
    reactionUsers: NotRequired[List[str]],
    reactionsFromDeletedUsersCount: NotRequired[int],
  1. See ReactionValueFormatsTypeDef

TestRepositoryTriggersOutputTypeDef#

# TestRepositoryTriggersOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import TestRepositoryTriggersOutputTypeDef


def get_value() -> TestRepositoryTriggersOutputTypeDef:
    return {
        "successfulExecutions": ...,
    }


# TestRepositoryTriggersOutputTypeDef definition

class TestRepositoryTriggersOutputTypeDef(TypedDict):
    successfulExecutions: List[str],
    failedExecutions: List[RepositoryTriggerExecutionFailureTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See RepositoryTriggerExecutionFailureTypeDef
  2. See ResponseMetadataTypeDef

CreatePullRequestApprovalRuleOutputTypeDef#

# CreatePullRequestApprovalRuleOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import CreatePullRequestApprovalRuleOutputTypeDef


def get_value() -> CreatePullRequestApprovalRuleOutputTypeDef:
    return {
        "approvalRule": ...,
    }


# CreatePullRequestApprovalRuleOutputTypeDef definition

class CreatePullRequestApprovalRuleOutputTypeDef(TypedDict):
    approvalRule: ApprovalRuleTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See ApprovalRuleTypeDef
  2. See ResponseMetadataTypeDef

UpdatePullRequestApprovalRuleContentOutputTypeDef#

# UpdatePullRequestApprovalRuleContentOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import UpdatePullRequestApprovalRuleContentOutputTypeDef


def get_value() -> UpdatePullRequestApprovalRuleContentOutputTypeDef:
    return {
        "approvalRule": ...,
    }


# UpdatePullRequestApprovalRuleContentOutputTypeDef definition

class UpdatePullRequestApprovalRuleContentOutputTypeDef(TypedDict):
    approvalRule: ApprovalRuleTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See ApprovalRuleTypeDef
  2. See ResponseMetadataTypeDef

GetDifferencesOutputTypeDef#

# GetDifferencesOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import GetDifferencesOutputTypeDef


def get_value() -> GetDifferencesOutputTypeDef:
    return {
        "differences": ...,
    }


# GetDifferencesOutputTypeDef definition

class GetDifferencesOutputTypeDef(TypedDict):
    differences: List[DifferenceTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
    NextToken: NotRequired[str],
  1. See DifferenceTypeDef
  2. See ResponseMetadataTypeDef

ConflictResolutionTypeDef#

# ConflictResolutionTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import ConflictResolutionTypeDef


def get_value() -> ConflictResolutionTypeDef:
    return {
        "replaceContents": ...,
    }


# ConflictResolutionTypeDef definition

class ConflictResolutionTypeDef(TypedDict):
    replaceContents: NotRequired[Sequence[ReplaceContentEntryTypeDef]],  # (1)
    deleteFiles: NotRequired[Sequence[DeleteFileEntryTypeDef]],  # (2)
    setFileModes: NotRequired[Sequence[SetFileModeEntryTypeDef]],  # (3)
  1. See ReplaceContentEntryTypeDef
  2. See DeleteFileEntryTypeDef
  3. See SetFileModeEntryTypeDef

GetCommentsForComparedCommitOutputTypeDef#

# GetCommentsForComparedCommitOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import GetCommentsForComparedCommitOutputTypeDef


def get_value() -> GetCommentsForComparedCommitOutputTypeDef:
    return {
        "commentsForComparedCommitData": ...,
    }


# GetCommentsForComparedCommitOutputTypeDef definition

class GetCommentsForComparedCommitOutputTypeDef(TypedDict):
    commentsForComparedCommitData: List[CommentsForComparedCommitTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
    nextToken: NotRequired[str],
  1. See CommentsForComparedCommitTypeDef
  2. See ResponseMetadataTypeDef

GetCommentsForPullRequestOutputTypeDef#

# GetCommentsForPullRequestOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import GetCommentsForPullRequestOutputTypeDef


def get_value() -> GetCommentsForPullRequestOutputTypeDef:
    return {
        "commentsForPullRequestData": ...,
    }


# GetCommentsForPullRequestOutputTypeDef definition

class GetCommentsForPullRequestOutputTypeDef(TypedDict):
    commentsForPullRequestData: List[CommentsForPullRequestTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
    nextToken: NotRequired[str],
  1. See CommentsForPullRequestTypeDef
  2. See ResponseMetadataTypeDef

BatchGetCommitsOutputTypeDef#

# BatchGetCommitsOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import BatchGetCommitsOutputTypeDef


def get_value() -> BatchGetCommitsOutputTypeDef:
    return {
        "commits": ...,
    }


# BatchGetCommitsOutputTypeDef definition

class BatchGetCommitsOutputTypeDef(TypedDict):
    commits: List[CommitTypeDef],  # (1)
    errors: List[BatchGetCommitsErrorTypeDef],  # (2)
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)
  1. See CommitTypeDef
  2. See BatchGetCommitsErrorTypeDef
  3. See ResponseMetadataTypeDef

FileVersionTypeDef#

# FileVersionTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import FileVersionTypeDef


def get_value() -> FileVersionTypeDef:
    return {
        "commit": ...,
    }


# FileVersionTypeDef definition

class FileVersionTypeDef(TypedDict):
    commit: NotRequired[CommitTypeDef],  # (1)
    blobId: NotRequired[str],
    path: NotRequired[str],
    revisionChildren: NotRequired[List[str]],
  1. See CommitTypeDef

GetCommitOutputTypeDef#

# GetCommitOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import GetCommitOutputTypeDef


def get_value() -> GetCommitOutputTypeDef:
    return {
        "commit": ...,
    }


# GetCommitOutputTypeDef definition

class GetCommitOutputTypeDef(TypedDict):
    commit: CommitTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See CommitTypeDef
  2. See ResponseMetadataTypeDef

GetMergeConflictsOutputTypeDef#

# GetMergeConflictsOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import GetMergeConflictsOutputTypeDef


def get_value() -> GetMergeConflictsOutputTypeDef:
    return {
        "mergeable": ...,
    }


# GetMergeConflictsOutputTypeDef definition

class GetMergeConflictsOutputTypeDef(TypedDict):
    mergeable: bool,
    destinationCommitId: str,
    sourceCommitId: str,
    baseCommitId: str,
    conflictMetadataList: List[ConflictMetadataTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
    nextToken: NotRequired[str],
  1. See ConflictMetadataTypeDef
  2. See ResponseMetadataTypeDef

ConflictTypeDef#

# ConflictTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import ConflictTypeDef


def get_value() -> ConflictTypeDef:
    return {
        "conflictMetadata": ...,
    }


# ConflictTypeDef definition

class ConflictTypeDef(TypedDict):
    conflictMetadata: NotRequired[ConflictMetadataTypeDef],  # (1)
    mergeHunks: NotRequired[List[MergeHunkTypeDef]],  # (2)
  1. See ConflictMetadataTypeDef
  2. See MergeHunkTypeDef

DescribeMergeConflictsOutputTypeDef#

# DescribeMergeConflictsOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import DescribeMergeConflictsOutputTypeDef


def get_value() -> DescribeMergeConflictsOutputTypeDef:
    return {
        "conflictMetadata": ...,
    }


# DescribeMergeConflictsOutputTypeDef definition

class DescribeMergeConflictsOutputTypeDef(TypedDict):
    conflictMetadata: ConflictMetadataTypeDef,  # (1)
    mergeHunks: List[MergeHunkTypeDef],  # (2)
    destinationCommitId: str,
    sourceCommitId: str,
    baseCommitId: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)
    nextToken: NotRequired[str],
  1. See ConflictMetadataTypeDef
  2. See MergeHunkTypeDef
  3. See ResponseMetadataTypeDef

PullRequestEventTypeDef#

# PullRequestEventTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import PullRequestEventTypeDef


def get_value() -> PullRequestEventTypeDef:
    return {
        "pullRequestId": ...,
    }


# PullRequestEventTypeDef definition

class PullRequestEventTypeDef(TypedDict):
    pullRequestId: NotRequired[str],
    eventDate: NotRequired[datetime],
    pullRequestEventType: NotRequired[PullRequestEventTypeType],  # (1)
    actorArn: NotRequired[str],
    pullRequestCreatedEventMetadata: NotRequired[PullRequestCreatedEventMetadataTypeDef],  # (2)
    pullRequestStatusChangedEventMetadata: NotRequired[PullRequestStatusChangedEventMetadataTypeDef],  # (3)
    pullRequestSourceReferenceUpdatedEventMetadata: NotRequired[PullRequestSourceReferenceUpdatedEventMetadataTypeDef],  # (4)
    pullRequestMergedStateChangedEventMetadata: NotRequired[PullRequestMergedStateChangedEventMetadataTypeDef],  # (5)
    approvalRuleEventMetadata: NotRequired[ApprovalRuleEventMetadataTypeDef],  # (6)
    approvalStateChangedEventMetadata: NotRequired[ApprovalStateChangedEventMetadataTypeDef],  # (7)
    approvalRuleOverriddenEventMetadata: NotRequired[ApprovalRuleOverriddenEventMetadataTypeDef],  # (8)
  1. See PullRequestEventTypeType
  2. See PullRequestCreatedEventMetadataTypeDef
  3. See PullRequestStatusChangedEventMetadataTypeDef
  4. See PullRequestSourceReferenceUpdatedEventMetadataTypeDef
  5. See PullRequestMergedStateChangedEventMetadataTypeDef
  6. See ApprovalRuleEventMetadataTypeDef
  7. See ApprovalStateChangedEventMetadataTypeDef
  8. See ApprovalRuleOverriddenEventMetadataTypeDef

PullRequestTypeDef#

# PullRequestTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import PullRequestTypeDef


def get_value() -> PullRequestTypeDef:
    return {
        "pullRequestId": ...,
    }


# PullRequestTypeDef definition

class PullRequestTypeDef(TypedDict):
    pullRequestId: NotRequired[str],
    title: NotRequired[str],
    description: NotRequired[str],
    lastActivityDate: NotRequired[datetime],
    creationDate: NotRequired[datetime],
    pullRequestStatus: NotRequired[PullRequestStatusEnumType],  # (1)
    authorArn: NotRequired[str],
    pullRequestTargets: NotRequired[List[PullRequestTargetTypeDef]],  # (2)
    clientRequestToken: NotRequired[str],
    revisionId: NotRequired[str],
    approvalRules: NotRequired[List[ApprovalRuleTypeDef]],  # (3)
  1. See PullRequestStatusEnumType
  2. See PullRequestTargetTypeDef
  3. See ApprovalRuleTypeDef

CreateCommitInputTypeDef#

# CreateCommitInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import CreateCommitInputTypeDef


def get_value() -> CreateCommitInputTypeDef:
    return {
        "repositoryName": ...,
    }


# CreateCommitInputTypeDef definition

class CreateCommitInputTypeDef(TypedDict):
    repositoryName: str,
    branchName: str,
    parentCommitId: NotRequired[str],
    authorName: NotRequired[str],
    email: NotRequired[str],
    commitMessage: NotRequired[str],
    keepEmptyFolders: NotRequired[bool],
    putFiles: NotRequired[Sequence[PutFileEntryTypeDef]],  # (1)
    deleteFiles: NotRequired[Sequence[DeleteFileEntryTypeDef]],  # (2)
    setFileModes: NotRequired[Sequence[SetFileModeEntryTypeDef]],  # (3)
  1. See PutFileEntryTypeDef
  2. See DeleteFileEntryTypeDef
  3. See SetFileModeEntryTypeDef

GetCommentReactionsOutputTypeDef#

# GetCommentReactionsOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import GetCommentReactionsOutputTypeDef


def get_value() -> GetCommentReactionsOutputTypeDef:
    return {
        "reactionsForComment": ...,
    }


# GetCommentReactionsOutputTypeDef definition

class GetCommentReactionsOutputTypeDef(TypedDict):
    reactionsForComment: List[ReactionForCommentTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
    nextToken: NotRequired[str],
  1. See ReactionForCommentTypeDef
  2. See ResponseMetadataTypeDef

PutRepositoryTriggersInputTypeDef#

# PutRepositoryTriggersInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import PutRepositoryTriggersInputTypeDef


def get_value() -> PutRepositoryTriggersInputTypeDef:
    return {
        "repositoryName": ...,
    }


# PutRepositoryTriggersInputTypeDef definition

class PutRepositoryTriggersInputTypeDef(TypedDict):
    repositoryName: str,
    triggers: Sequence[RepositoryTriggerUnionTypeDef],  # (1)
  1. See RepositoryTriggerTypeDef RepositoryTriggerOutputTypeDef

TestRepositoryTriggersInputTypeDef#

# TestRepositoryTriggersInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import TestRepositoryTriggersInputTypeDef


def get_value() -> TestRepositoryTriggersInputTypeDef:
    return {
        "repositoryName": ...,
    }


# TestRepositoryTriggersInputTypeDef definition

class TestRepositoryTriggersInputTypeDef(TypedDict):
    repositoryName: str,
    triggers: Sequence[RepositoryTriggerUnionTypeDef],  # (1)
  1. See RepositoryTriggerTypeDef RepositoryTriggerOutputTypeDef

CreateUnreferencedMergeCommitInputTypeDef#

# CreateUnreferencedMergeCommitInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import CreateUnreferencedMergeCommitInputTypeDef


def get_value() -> CreateUnreferencedMergeCommitInputTypeDef:
    return {
        "repositoryName": ...,
    }


# CreateUnreferencedMergeCommitInputTypeDef definition

class CreateUnreferencedMergeCommitInputTypeDef(TypedDict):
    repositoryName: str,
    sourceCommitSpecifier: str,
    destinationCommitSpecifier: str,
    mergeOption: MergeOptionTypeEnumType,  # (1)
    conflictDetailLevel: NotRequired[ConflictDetailLevelTypeEnumType],  # (2)
    conflictResolutionStrategy: NotRequired[ConflictResolutionStrategyTypeEnumType],  # (3)
    authorName: NotRequired[str],
    email: NotRequired[str],
    commitMessage: NotRequired[str],
    keepEmptyFolders: NotRequired[bool],
    conflictResolution: NotRequired[ConflictResolutionTypeDef],  # (4)
  1. See MergeOptionTypeEnumType
  2. See ConflictDetailLevelTypeEnumType
  3. See ConflictResolutionStrategyTypeEnumType
  4. See ConflictResolutionTypeDef

MergeBranchesBySquashInputTypeDef#

# MergeBranchesBySquashInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import MergeBranchesBySquashInputTypeDef


def get_value() -> MergeBranchesBySquashInputTypeDef:
    return {
        "repositoryName": ...,
    }


# MergeBranchesBySquashInputTypeDef definition

class MergeBranchesBySquashInputTypeDef(TypedDict):
    repositoryName: str,
    sourceCommitSpecifier: str,
    destinationCommitSpecifier: str,
    targetBranch: NotRequired[str],
    conflictDetailLevel: NotRequired[ConflictDetailLevelTypeEnumType],  # (1)
    conflictResolutionStrategy: NotRequired[ConflictResolutionStrategyTypeEnumType],  # (2)
    authorName: NotRequired[str],
    email: NotRequired[str],
    commitMessage: NotRequired[str],
    keepEmptyFolders: NotRequired[bool],
    conflictResolution: NotRequired[ConflictResolutionTypeDef],  # (3)
  1. See ConflictDetailLevelTypeEnumType
  2. See ConflictResolutionStrategyTypeEnumType
  3. See ConflictResolutionTypeDef

MergeBranchesByThreeWayInputTypeDef#

# MergeBranchesByThreeWayInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import MergeBranchesByThreeWayInputTypeDef


def get_value() -> MergeBranchesByThreeWayInputTypeDef:
    return {
        "repositoryName": ...,
    }


# MergeBranchesByThreeWayInputTypeDef definition

class MergeBranchesByThreeWayInputTypeDef(TypedDict):
    repositoryName: str,
    sourceCommitSpecifier: str,
    destinationCommitSpecifier: str,
    targetBranch: NotRequired[str],
    conflictDetailLevel: NotRequired[ConflictDetailLevelTypeEnumType],  # (1)
    conflictResolutionStrategy: NotRequired[ConflictResolutionStrategyTypeEnumType],  # (2)
    authorName: NotRequired[str],
    email: NotRequired[str],
    commitMessage: NotRequired[str],
    keepEmptyFolders: NotRequired[bool],
    conflictResolution: NotRequired[ConflictResolutionTypeDef],  # (3)
  1. See ConflictDetailLevelTypeEnumType
  2. See ConflictResolutionStrategyTypeEnumType
  3. See ConflictResolutionTypeDef

MergePullRequestBySquashInputTypeDef#

# MergePullRequestBySquashInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import MergePullRequestBySquashInputTypeDef


def get_value() -> MergePullRequestBySquashInputTypeDef:
    return {
        "pullRequestId": ...,
    }


# MergePullRequestBySquashInputTypeDef definition

class MergePullRequestBySquashInputTypeDef(TypedDict):
    pullRequestId: str,
    repositoryName: str,
    sourceCommitId: NotRequired[str],
    conflictDetailLevel: NotRequired[ConflictDetailLevelTypeEnumType],  # (1)
    conflictResolutionStrategy: NotRequired[ConflictResolutionStrategyTypeEnumType],  # (2)
    commitMessage: NotRequired[str],
    authorName: NotRequired[str],
    email: NotRequired[str],
    keepEmptyFolders: NotRequired[bool],
    conflictResolution: NotRequired[ConflictResolutionTypeDef],  # (3)
  1. See ConflictDetailLevelTypeEnumType
  2. See ConflictResolutionStrategyTypeEnumType
  3. See ConflictResolutionTypeDef

MergePullRequestByThreeWayInputTypeDef#

# MergePullRequestByThreeWayInputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import MergePullRequestByThreeWayInputTypeDef


def get_value() -> MergePullRequestByThreeWayInputTypeDef:
    return {
        "pullRequestId": ...,
    }


# MergePullRequestByThreeWayInputTypeDef definition

class MergePullRequestByThreeWayInputTypeDef(TypedDict):
    pullRequestId: str,
    repositoryName: str,
    sourceCommitId: NotRequired[str],
    conflictDetailLevel: NotRequired[ConflictDetailLevelTypeEnumType],  # (1)
    conflictResolutionStrategy: NotRequired[ConflictResolutionStrategyTypeEnumType],  # (2)
    commitMessage: NotRequired[str],
    authorName: NotRequired[str],
    email: NotRequired[str],
    keepEmptyFolders: NotRequired[bool],
    conflictResolution: NotRequired[ConflictResolutionTypeDef],  # (3)
  1. See ConflictDetailLevelTypeEnumType
  2. See ConflictResolutionStrategyTypeEnumType
  3. See ConflictResolutionTypeDef

ListFileCommitHistoryResponseTypeDef#

# ListFileCommitHistoryResponseTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import ListFileCommitHistoryResponseTypeDef


def get_value() -> ListFileCommitHistoryResponseTypeDef:
    return {
        "revisionDag": ...,
    }


# ListFileCommitHistoryResponseTypeDef definition

class ListFileCommitHistoryResponseTypeDef(TypedDict):
    revisionDag: List[FileVersionTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
    nextToken: NotRequired[str],
  1. See FileVersionTypeDef
  2. See ResponseMetadataTypeDef

BatchDescribeMergeConflictsOutputTypeDef#

# BatchDescribeMergeConflictsOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import BatchDescribeMergeConflictsOutputTypeDef


def get_value() -> BatchDescribeMergeConflictsOutputTypeDef:
    return {
        "conflicts": ...,
    }


# BatchDescribeMergeConflictsOutputTypeDef definition

class BatchDescribeMergeConflictsOutputTypeDef(TypedDict):
    conflicts: List[ConflictTypeDef],  # (1)
    errors: List[BatchDescribeMergeConflictsErrorTypeDef],  # (2)
    destinationCommitId: str,
    sourceCommitId: str,
    baseCommitId: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)
    nextToken: NotRequired[str],
  1. See ConflictTypeDef
  2. See BatchDescribeMergeConflictsErrorTypeDef
  3. See ResponseMetadataTypeDef

DescribePullRequestEventsOutputTypeDef#

# DescribePullRequestEventsOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import DescribePullRequestEventsOutputTypeDef


def get_value() -> DescribePullRequestEventsOutputTypeDef:
    return {
        "pullRequestEvents": ...,
    }


# DescribePullRequestEventsOutputTypeDef definition

class DescribePullRequestEventsOutputTypeDef(TypedDict):
    pullRequestEvents: List[PullRequestEventTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
    nextToken: NotRequired[str],
  1. See PullRequestEventTypeDef
  2. See ResponseMetadataTypeDef

CreatePullRequestOutputTypeDef#

# CreatePullRequestOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import CreatePullRequestOutputTypeDef


def get_value() -> CreatePullRequestOutputTypeDef:
    return {
        "pullRequest": ...,
    }


# CreatePullRequestOutputTypeDef definition

class CreatePullRequestOutputTypeDef(TypedDict):
    pullRequest: PullRequestTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See PullRequestTypeDef
  2. See ResponseMetadataTypeDef

GetPullRequestOutputTypeDef#

# GetPullRequestOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import GetPullRequestOutputTypeDef


def get_value() -> GetPullRequestOutputTypeDef:
    return {
        "pullRequest": ...,
    }


# GetPullRequestOutputTypeDef definition

class GetPullRequestOutputTypeDef(TypedDict):
    pullRequest: PullRequestTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See PullRequestTypeDef
  2. See ResponseMetadataTypeDef

MergePullRequestByFastForwardOutputTypeDef#

# MergePullRequestByFastForwardOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import MergePullRequestByFastForwardOutputTypeDef


def get_value() -> MergePullRequestByFastForwardOutputTypeDef:
    return {
        "pullRequest": ...,
    }


# MergePullRequestByFastForwardOutputTypeDef definition

class MergePullRequestByFastForwardOutputTypeDef(TypedDict):
    pullRequest: PullRequestTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See PullRequestTypeDef
  2. See ResponseMetadataTypeDef

MergePullRequestBySquashOutputTypeDef#

# MergePullRequestBySquashOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import MergePullRequestBySquashOutputTypeDef


def get_value() -> MergePullRequestBySquashOutputTypeDef:
    return {
        "pullRequest": ...,
    }


# MergePullRequestBySquashOutputTypeDef definition

class MergePullRequestBySquashOutputTypeDef(TypedDict):
    pullRequest: PullRequestTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See PullRequestTypeDef
  2. See ResponseMetadataTypeDef

MergePullRequestByThreeWayOutputTypeDef#

# MergePullRequestByThreeWayOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import MergePullRequestByThreeWayOutputTypeDef


def get_value() -> MergePullRequestByThreeWayOutputTypeDef:
    return {
        "pullRequest": ...,
    }


# MergePullRequestByThreeWayOutputTypeDef definition

class MergePullRequestByThreeWayOutputTypeDef(TypedDict):
    pullRequest: PullRequestTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See PullRequestTypeDef
  2. See ResponseMetadataTypeDef

UpdatePullRequestDescriptionOutputTypeDef#

# UpdatePullRequestDescriptionOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import UpdatePullRequestDescriptionOutputTypeDef


def get_value() -> UpdatePullRequestDescriptionOutputTypeDef:
    return {
        "pullRequest": ...,
    }


# UpdatePullRequestDescriptionOutputTypeDef definition

class UpdatePullRequestDescriptionOutputTypeDef(TypedDict):
    pullRequest: PullRequestTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See PullRequestTypeDef
  2. See ResponseMetadataTypeDef

UpdatePullRequestStatusOutputTypeDef#

# UpdatePullRequestStatusOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import UpdatePullRequestStatusOutputTypeDef


def get_value() -> UpdatePullRequestStatusOutputTypeDef:
    return {
        "pullRequest": ...,
    }


# UpdatePullRequestStatusOutputTypeDef definition

class UpdatePullRequestStatusOutputTypeDef(TypedDict):
    pullRequest: PullRequestTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See PullRequestTypeDef
  2. See ResponseMetadataTypeDef

UpdatePullRequestTitleOutputTypeDef#

# UpdatePullRequestTitleOutputTypeDef TypedDict usage example

from types_boto3_codecommit.type_defs import UpdatePullRequestTitleOutputTypeDef


def get_value() -> UpdatePullRequestTitleOutputTypeDef:
    return {
        "pullRequest": ...,
    }


# UpdatePullRequestTitleOutputTypeDef definition

class UpdatePullRequestTitleOutputTypeDef(TypedDict):
    pullRequest: PullRequestTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See PullRequestTypeDef
  2. See ResponseMetadataTypeDef