Skip to content

Typed dictionaries

Index > CodeCommit > Typed dictionaries

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

ApprovalRuleEventMetadataTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import ApprovalRuleEventMetadataTypeDef

def get_value() -> ApprovalRuleEventMetadataTypeDef:
    return {
        "approvalRuleName": ...,
    }
Definition
class ApprovalRuleEventMetadataTypeDef(TypedDict):
    approvalRuleName: NotRequired[str],
    approvalRuleId: NotRequired[str],
    approvalRuleContent: NotRequired[str],

ApprovalRuleOverriddenEventMetadataTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import ApprovalRuleOverriddenEventMetadataTypeDef

def get_value() -> ApprovalRuleOverriddenEventMetadataTypeDef:
    return {
        "revisionId": ...,
    }
Definition
class ApprovalRuleOverriddenEventMetadataTypeDef(TypedDict):
    revisionId: NotRequired[str],
    overrideStatus: NotRequired[OverrideStatusType],  # (1)
  1. See OverrideStatusType

ApprovalRuleTemplateTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import ApprovalRuleTemplateTypeDef

def get_value() -> ApprovalRuleTemplateTypeDef:
    return {
        "approvalRuleTemplateId": ...,
    }
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

Usage Example
from mypy_boto3_codecommit.type_defs import OriginApprovalRuleTemplateTypeDef

def get_value() -> OriginApprovalRuleTemplateTypeDef:
    return {
        "approvalRuleTemplateId": ...,
    }
Definition
class OriginApprovalRuleTemplateTypeDef(TypedDict):
    approvalRuleTemplateId: NotRequired[str],
    approvalRuleTemplateName: NotRequired[str],

ApprovalStateChangedEventMetadataTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import ApprovalStateChangedEventMetadataTypeDef

def get_value() -> ApprovalStateChangedEventMetadataTypeDef:
    return {
        "revisionId": ...,
    }
Definition
class ApprovalStateChangedEventMetadataTypeDef(TypedDict):
    revisionId: NotRequired[str],
    approvalStatus: NotRequired[ApprovalStateType],  # (1)
  1. See ApprovalStateType

ApprovalTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import ApprovalTypeDef

def get_value() -> ApprovalTypeDef:
    return {
        "userArn": ...,
    }
Definition
class ApprovalTypeDef(TypedDict):
    userArn: NotRequired[str],
    approvalState: NotRequired[ApprovalStateType],  # (1)
  1. See ApprovalStateType

AssociateApprovalRuleTemplateWithRepositoryInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import AssociateApprovalRuleTemplateWithRepositoryInputRequestTypeDef

def get_value() -> AssociateApprovalRuleTemplateWithRepositoryInputRequestTypeDef:
    return {
        "approvalRuleTemplateName": ...,
        "repositoryName": ...,
    }
Definition
class AssociateApprovalRuleTemplateWithRepositoryInputRequestTypeDef(TypedDict):
    approvalRuleTemplateName: str,
    repositoryName: str,

BatchAssociateApprovalRuleTemplateWithRepositoriesErrorTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import BatchAssociateApprovalRuleTemplateWithRepositoriesErrorTypeDef

def get_value() -> BatchAssociateApprovalRuleTemplateWithRepositoriesErrorTypeDef:
    return {
        "repositoryName": ...,
    }
Definition
class BatchAssociateApprovalRuleTemplateWithRepositoriesErrorTypeDef(TypedDict):
    repositoryName: NotRequired[str],
    errorCode: NotRequired[str],
    errorMessage: NotRequired[str],

BatchAssociateApprovalRuleTemplateWithRepositoriesInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import BatchAssociateApprovalRuleTemplateWithRepositoriesInputRequestTypeDef

def get_value() -> BatchAssociateApprovalRuleTemplateWithRepositoriesInputRequestTypeDef:
    return {
        "approvalRuleTemplateName": ...,
        "repositoryNames": ...,
    }
Definition
class BatchAssociateApprovalRuleTemplateWithRepositoriesInputRequestTypeDef(TypedDict):
    approvalRuleTemplateName: str,
    repositoryNames: Sequence[str],

ResponseMetadataTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import ResponseMetadataTypeDef

def get_value() -> ResponseMetadataTypeDef:
    return {
        "RequestId": ...,
        "HostId": ...,
        "HTTPStatusCode": ...,
        "HTTPHeaders": ...,
        "RetryAttempts": ...,
    }
Definition
class ResponseMetadataTypeDef(TypedDict):
    RequestId: str,
    HostId: str,
    HTTPStatusCode: int,
    HTTPHeaders: Dict[str, str],
    RetryAttempts: int,

BatchDescribeMergeConflictsErrorTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import BatchDescribeMergeConflictsErrorTypeDef

def get_value() -> BatchDescribeMergeConflictsErrorTypeDef:
    return {
        "filePath": ...,
        "exceptionName": ...,
        "message": ...,
    }
Definition
class BatchDescribeMergeConflictsErrorTypeDef(TypedDict):
    filePath: str,
    exceptionName: str,
    message: str,

BatchDescribeMergeConflictsInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import BatchDescribeMergeConflictsInputRequestTypeDef

def get_value() -> BatchDescribeMergeConflictsInputRequestTypeDef:
    return {
        "repositoryName": ...,
        "destinationCommitSpecifier": ...,
        "sourceCommitSpecifier": ...,
        "mergeOption": ...,
    }
Definition
class BatchDescribeMergeConflictsInputRequestTypeDef(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

Usage Example
from mypy_boto3_codecommit.type_defs import BatchDisassociateApprovalRuleTemplateFromRepositoriesErrorTypeDef

def get_value() -> BatchDisassociateApprovalRuleTemplateFromRepositoriesErrorTypeDef:
    return {
        "repositoryName": ...,
    }
Definition
class BatchDisassociateApprovalRuleTemplateFromRepositoriesErrorTypeDef(TypedDict):
    repositoryName: NotRequired[str],
    errorCode: NotRequired[str],
    errorMessage: NotRequired[str],

BatchDisassociateApprovalRuleTemplateFromRepositoriesInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import BatchDisassociateApprovalRuleTemplateFromRepositoriesInputRequestTypeDef

def get_value() -> BatchDisassociateApprovalRuleTemplateFromRepositoriesInputRequestTypeDef:
    return {
        "approvalRuleTemplateName": ...,
        "repositoryNames": ...,
    }
Definition
class BatchDisassociateApprovalRuleTemplateFromRepositoriesInputRequestTypeDef(TypedDict):
    approvalRuleTemplateName: str,
    repositoryNames: Sequence[str],

BatchGetCommitsErrorTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import BatchGetCommitsErrorTypeDef

def get_value() -> BatchGetCommitsErrorTypeDef:
    return {
        "commitId": ...,
    }
Definition
class BatchGetCommitsErrorTypeDef(TypedDict):
    commitId: NotRequired[str],
    errorCode: NotRequired[str],
    errorMessage: NotRequired[str],

BatchGetCommitsInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import BatchGetCommitsInputRequestTypeDef

def get_value() -> BatchGetCommitsInputRequestTypeDef:
    return {
        "commitIds": ...,
        "repositoryName": ...,
    }
Definition
class BatchGetCommitsInputRequestTypeDef(TypedDict):
    commitIds: Sequence[str],
    repositoryName: str,

BatchGetRepositoriesInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import BatchGetRepositoriesInputRequestTypeDef

def get_value() -> BatchGetRepositoriesInputRequestTypeDef:
    return {
        "repositoryNames": ...,
    }
Definition
class BatchGetRepositoriesInputRequestTypeDef(TypedDict):
    repositoryNames: Sequence[str],

RepositoryMetadataTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import RepositoryMetadataTypeDef

def get_value() -> RepositoryMetadataTypeDef:
    return {
        "accountId": ...,
    }
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],

BlobMetadataTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import BlobMetadataTypeDef

def get_value() -> BlobMetadataTypeDef:
    return {
        "blobId": ...,
    }
Definition
class BlobMetadataTypeDef(TypedDict):
    blobId: NotRequired[str],
    path: NotRequired[str],
    mode: NotRequired[str],

BranchInfoTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import BranchInfoTypeDef

def get_value() -> BranchInfoTypeDef:
    return {
        "branchName": ...,
    }
Definition
class BranchInfoTypeDef(TypedDict):
    branchName: NotRequired[str],
    commitId: NotRequired[str],

CommentTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import CommentTypeDef

def get_value() -> CommentTypeDef:
    return {
        "commentId": ...,
    }
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

Usage Example
from mypy_boto3_codecommit.type_defs import LocationTypeDef

def get_value() -> LocationTypeDef:
    return {
        "filePath": ...,
    }
Definition
class LocationTypeDef(TypedDict):
    filePath: NotRequired[str],
    filePosition: NotRequired[int],
    relativeFileVersion: NotRequired[RelativeFileVersionEnumType],  # (1)
  1. See RelativeFileVersionEnumType

UserInfoTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import UserInfoTypeDef

def get_value() -> UserInfoTypeDef:
    return {
        "name": ...,
    }
Definition
class UserInfoTypeDef(TypedDict):
    name: NotRequired[str],
    email: NotRequired[str],
    date: NotRequired[str],

FileModesTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import FileModesTypeDef

def get_value() -> FileModesTypeDef:
    return {
        "source": ...,
    }
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

Usage Example
from mypy_boto3_codecommit.type_defs import FileSizesTypeDef

def get_value() -> FileSizesTypeDef:
    return {
        "source": ...,
    }
Definition
class FileSizesTypeDef(TypedDict):
    source: NotRequired[int],
    destination: NotRequired[int],
    base: NotRequired[int],

IsBinaryFileTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import IsBinaryFileTypeDef

def get_value() -> IsBinaryFileTypeDef:
    return {
        "source": ...,
    }
Definition
class IsBinaryFileTypeDef(TypedDict):
    source: NotRequired[bool],
    destination: NotRequired[bool],
    base: NotRequired[bool],

MergeOperationsTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import MergeOperationsTypeDef

def get_value() -> MergeOperationsTypeDef:
    return {
        "source": ...,
    }
Definition
class MergeOperationsTypeDef(TypedDict):
    source: NotRequired[ChangeTypeEnumType],  # (1)
    destination: NotRequired[ChangeTypeEnumType],  # (1)
  1. See ChangeTypeEnumType
  2. See ChangeTypeEnumType

ObjectTypesTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import ObjectTypesTypeDef

def get_value() -> ObjectTypesTypeDef:
    return {
        "source": ...,
    }
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

Usage Example
from mypy_boto3_codecommit.type_defs import DeleteFileEntryTypeDef

def get_value() -> DeleteFileEntryTypeDef:
    return {
        "filePath": ...,
    }
Definition
class DeleteFileEntryTypeDef(TypedDict):
    filePath: str,

ReplaceContentEntryTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import ReplaceContentEntryTypeDef

def get_value() -> ReplaceContentEntryTypeDef:
    return {
        "filePath": ...,
        "replacementType": ...,
    }
Definition
class ReplaceContentEntryTypeDef(TypedDict):
    filePath: str,
    replacementType: ReplacementTypeEnumType,  # (1)
    content: NotRequired[Union[str, bytes, IO[Any], StreamingBody]],
    fileMode: NotRequired[FileModeTypeEnumType],  # (2)
  1. See ReplacementTypeEnumType
  2. See FileModeTypeEnumType

SetFileModeEntryTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import SetFileModeEntryTypeDef

def get_value() -> SetFileModeEntryTypeDef:
    return {
        "filePath": ...,
        "fileMode": ...,
    }
Definition
class SetFileModeEntryTypeDef(TypedDict):
    filePath: str,
    fileMode: FileModeTypeEnumType,  # (1)
  1. See FileModeTypeEnumType

CreateApprovalRuleTemplateInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import CreateApprovalRuleTemplateInputRequestTypeDef

def get_value() -> CreateApprovalRuleTemplateInputRequestTypeDef:
    return {
        "approvalRuleTemplateName": ...,
        "approvalRuleTemplateContent": ...,
    }
Definition
class CreateApprovalRuleTemplateInputRequestTypeDef(TypedDict):
    approvalRuleTemplateName: str,
    approvalRuleTemplateContent: str,
    approvalRuleTemplateDescription: NotRequired[str],

CreateBranchInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import CreateBranchInputRequestTypeDef

def get_value() -> CreateBranchInputRequestTypeDef:
    return {
        "repositoryName": ...,
        "branchName": ...,
        "commitId": ...,
    }
Definition
class CreateBranchInputRequestTypeDef(TypedDict):
    repositoryName: str,
    branchName: str,
    commitId: str,

FileMetadataTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import FileMetadataTypeDef

def get_value() -> FileMetadataTypeDef:
    return {
        "absolutePath": ...,
    }
Definition
class FileMetadataTypeDef(TypedDict):
    absolutePath: NotRequired[str],
    blobId: NotRequired[str],
    fileMode: NotRequired[FileModeTypeEnumType],  # (1)
  1. See FileModeTypeEnumType

CreatePullRequestApprovalRuleInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import CreatePullRequestApprovalRuleInputRequestTypeDef

def get_value() -> CreatePullRequestApprovalRuleInputRequestTypeDef:
    return {
        "pullRequestId": ...,
        "approvalRuleName": ...,
        "approvalRuleContent": ...,
    }
Definition
class CreatePullRequestApprovalRuleInputRequestTypeDef(TypedDict):
    pullRequestId: str,
    approvalRuleName: str,
    approvalRuleContent: str,

TargetTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import TargetTypeDef

def get_value() -> TargetTypeDef:
    return {
        "repositoryName": ...,
        "sourceReference": ...,
    }
Definition
class TargetTypeDef(TypedDict):
    repositoryName: str,
    sourceReference: str,
    destinationReference: NotRequired[str],

CreateRepositoryInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import CreateRepositoryInputRequestTypeDef

def get_value() -> CreateRepositoryInputRequestTypeDef:
    return {
        "repositoryName": ...,
    }
Definition
class CreateRepositoryInputRequestTypeDef(TypedDict):
    repositoryName: str,
    repositoryDescription: NotRequired[str],
    tags: NotRequired[Mapping[str, str]],

DeleteApprovalRuleTemplateInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import DeleteApprovalRuleTemplateInputRequestTypeDef

def get_value() -> DeleteApprovalRuleTemplateInputRequestTypeDef:
    return {
        "approvalRuleTemplateName": ...,
    }
Definition
class DeleteApprovalRuleTemplateInputRequestTypeDef(TypedDict):
    approvalRuleTemplateName: str,

DeleteBranchInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import DeleteBranchInputRequestTypeDef

def get_value() -> DeleteBranchInputRequestTypeDef:
    return {
        "repositoryName": ...,
        "branchName": ...,
    }
Definition
class DeleteBranchInputRequestTypeDef(TypedDict):
    repositoryName: str,
    branchName: str,

DeleteCommentContentInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import DeleteCommentContentInputRequestTypeDef

def get_value() -> DeleteCommentContentInputRequestTypeDef:
    return {
        "commentId": ...,
    }
Definition
class DeleteCommentContentInputRequestTypeDef(TypedDict):
    commentId: str,

DeleteFileInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import DeleteFileInputRequestTypeDef

def get_value() -> DeleteFileInputRequestTypeDef:
    return {
        "repositoryName": ...,
        "branchName": ...,
        "filePath": ...,
        "parentCommitId": ...,
    }
Definition
class DeleteFileInputRequestTypeDef(TypedDict):
    repositoryName: str,
    branchName: str,
    filePath: str,
    parentCommitId: str,
    keepEmptyFolders: NotRequired[bool],
    commitMessage: NotRequired[str],
    name: NotRequired[str],
    email: NotRequired[str],

DeletePullRequestApprovalRuleInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import DeletePullRequestApprovalRuleInputRequestTypeDef

def get_value() -> DeletePullRequestApprovalRuleInputRequestTypeDef:
    return {
        "pullRequestId": ...,
        "approvalRuleName": ...,
    }
Definition
class DeletePullRequestApprovalRuleInputRequestTypeDef(TypedDict):
    pullRequestId: str,
    approvalRuleName: str,

DeleteRepositoryInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import DeleteRepositoryInputRequestTypeDef

def get_value() -> DeleteRepositoryInputRequestTypeDef:
    return {
        "repositoryName": ...,
    }
Definition
class DeleteRepositoryInputRequestTypeDef(TypedDict):
    repositoryName: str,

DescribeMergeConflictsInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import DescribeMergeConflictsInputRequestTypeDef

def get_value() -> DescribeMergeConflictsInputRequestTypeDef:
    return {
        "repositoryName": ...,
        "destinationCommitSpecifier": ...,
        "sourceCommitSpecifier": ...,
        "mergeOption": ...,
        "filePath": ...,
    }
Definition
class DescribeMergeConflictsInputRequestTypeDef(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

Usage Example
from mypy_boto3_codecommit.type_defs import PaginatorConfigTypeDef

def get_value() -> PaginatorConfigTypeDef:
    return {
        "MaxItems": ...,
    }
Definition
class PaginatorConfigTypeDef(TypedDict):
    MaxItems: NotRequired[int],
    PageSize: NotRequired[int],
    StartingToken: NotRequired[str],

DescribePullRequestEventsInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import DescribePullRequestEventsInputRequestTypeDef

def get_value() -> DescribePullRequestEventsInputRequestTypeDef:
    return {
        "pullRequestId": ...,
    }
Definition
class DescribePullRequestEventsInputRequestTypeDef(TypedDict):
    pullRequestId: str,
    pullRequestEventType: NotRequired[PullRequestEventTypeType],  # (1)
    actorArn: NotRequired[str],
    nextToken: NotRequired[str],
    maxResults: NotRequired[int],
  1. See PullRequestEventTypeType

DisassociateApprovalRuleTemplateFromRepositoryInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import DisassociateApprovalRuleTemplateFromRepositoryInputRequestTypeDef

def get_value() -> DisassociateApprovalRuleTemplateFromRepositoryInputRequestTypeDef:
    return {
        "approvalRuleTemplateName": ...,
        "repositoryName": ...,
    }
Definition
class DisassociateApprovalRuleTemplateFromRepositoryInputRequestTypeDef(TypedDict):
    approvalRuleTemplateName: str,
    repositoryName: str,

EvaluatePullRequestApprovalRulesInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import EvaluatePullRequestApprovalRulesInputRequestTypeDef

def get_value() -> EvaluatePullRequestApprovalRulesInputRequestTypeDef:
    return {
        "pullRequestId": ...,
        "revisionId": ...,
    }
Definition
class EvaluatePullRequestApprovalRulesInputRequestTypeDef(TypedDict):
    pullRequestId: str,
    revisionId: str,

EvaluationTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import EvaluationTypeDef

def get_value() -> EvaluationTypeDef:
    return {
        "approved": ...,
    }
Definition
class EvaluationTypeDef(TypedDict):
    approved: NotRequired[bool],
    overridden: NotRequired[bool],
    approvalRulesSatisfied: NotRequired[List[str]],
    approvalRulesNotSatisfied: NotRequired[List[str]],

FileTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import FileTypeDef

def get_value() -> FileTypeDef:
    return {
        "blobId": ...,
    }
Definition
class FileTypeDef(TypedDict):
    blobId: NotRequired[str],
    absolutePath: NotRequired[str],
    relativePath: NotRequired[str],
    fileMode: NotRequired[FileModeTypeEnumType],  # (1)
  1. See FileModeTypeEnumType

FolderTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import FolderTypeDef

def get_value() -> FolderTypeDef:
    return {
        "treeId": ...,
    }
Definition
class FolderTypeDef(TypedDict):
    treeId: NotRequired[str],
    absolutePath: NotRequired[str],
    relativePath: NotRequired[str],

GetApprovalRuleTemplateInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import GetApprovalRuleTemplateInputRequestTypeDef

def get_value() -> GetApprovalRuleTemplateInputRequestTypeDef:
    return {
        "approvalRuleTemplateName": ...,
    }
Definition
class GetApprovalRuleTemplateInputRequestTypeDef(TypedDict):
    approvalRuleTemplateName: str,

GetBlobInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import GetBlobInputRequestTypeDef

def get_value() -> GetBlobInputRequestTypeDef:
    return {
        "repositoryName": ...,
        "blobId": ...,
    }
Definition
class GetBlobInputRequestTypeDef(TypedDict):
    repositoryName: str,
    blobId: str,

GetBranchInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import GetBranchInputRequestTypeDef

def get_value() -> GetBranchInputRequestTypeDef:
    return {
        "repositoryName": ...,
    }
Definition
class GetBranchInputRequestTypeDef(TypedDict):
    repositoryName: NotRequired[str],
    branchName: NotRequired[str],

GetCommentInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import GetCommentInputRequestTypeDef

def get_value() -> GetCommentInputRequestTypeDef:
    return {
        "commentId": ...,
    }
Definition
class GetCommentInputRequestTypeDef(TypedDict):
    commentId: str,

GetCommentReactionsInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import GetCommentReactionsInputRequestTypeDef

def get_value() -> GetCommentReactionsInputRequestTypeDef:
    return {
        "commentId": ...,
    }
Definition
class GetCommentReactionsInputRequestTypeDef(TypedDict):
    commentId: str,
    reactionUserArn: NotRequired[str],
    nextToken: NotRequired[str],
    maxResults: NotRequired[int],

GetCommentsForComparedCommitInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import GetCommentsForComparedCommitInputRequestTypeDef

def get_value() -> GetCommentsForComparedCommitInputRequestTypeDef:
    return {
        "repositoryName": ...,
        "afterCommitId": ...,
    }
Definition
class GetCommentsForComparedCommitInputRequestTypeDef(TypedDict):
    repositoryName: str,
    afterCommitId: str,
    beforeCommitId: NotRequired[str],
    nextToken: NotRequired[str],
    maxResults: NotRequired[int],

GetCommentsForPullRequestInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import GetCommentsForPullRequestInputRequestTypeDef

def get_value() -> GetCommentsForPullRequestInputRequestTypeDef:
    return {
        "pullRequestId": ...,
    }
Definition
class GetCommentsForPullRequestInputRequestTypeDef(TypedDict):
    pullRequestId: str,
    repositoryName: NotRequired[str],
    beforeCommitId: NotRequired[str],
    afterCommitId: NotRequired[str],
    nextToken: NotRequired[str],
    maxResults: NotRequired[int],

GetCommitInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import GetCommitInputRequestTypeDef

def get_value() -> GetCommitInputRequestTypeDef:
    return {
        "repositoryName": ...,
        "commitId": ...,
    }
Definition
class GetCommitInputRequestTypeDef(TypedDict):
    repositoryName: str,
    commitId: str,

GetDifferencesInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import GetDifferencesInputRequestTypeDef

def get_value() -> GetDifferencesInputRequestTypeDef:
    return {
        "repositoryName": ...,
        "afterCommitSpecifier": ...,
    }
Definition
class GetDifferencesInputRequestTypeDef(TypedDict):
    repositoryName: str,
    afterCommitSpecifier: str,
    beforeCommitSpecifier: NotRequired[str],
    beforePath: NotRequired[str],
    afterPath: NotRequired[str],
    MaxResults: NotRequired[int],
    NextToken: NotRequired[str],

GetFileInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import GetFileInputRequestTypeDef

def get_value() -> GetFileInputRequestTypeDef:
    return {
        "repositoryName": ...,
        "filePath": ...,
    }
Definition
class GetFileInputRequestTypeDef(TypedDict):
    repositoryName: str,
    filePath: str,
    commitSpecifier: NotRequired[str],

GetFolderInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import GetFolderInputRequestTypeDef

def get_value() -> GetFolderInputRequestTypeDef:
    return {
        "repositoryName": ...,
        "folderPath": ...,
    }
Definition
class GetFolderInputRequestTypeDef(TypedDict):
    repositoryName: str,
    folderPath: str,
    commitSpecifier: NotRequired[str],

SubModuleTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import SubModuleTypeDef

def get_value() -> SubModuleTypeDef:
    return {
        "commitId": ...,
    }
Definition
class SubModuleTypeDef(TypedDict):
    commitId: NotRequired[str],
    absolutePath: NotRequired[str],
    relativePath: NotRequired[str],

SymbolicLinkTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import SymbolicLinkTypeDef

def get_value() -> SymbolicLinkTypeDef:
    return {
        "blobId": ...,
    }
Definition
class SymbolicLinkTypeDef(TypedDict):
    blobId: NotRequired[str],
    absolutePath: NotRequired[str],
    relativePath: NotRequired[str],
    fileMode: NotRequired[FileModeTypeEnumType],  # (1)
  1. See FileModeTypeEnumType

GetMergeCommitInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import GetMergeCommitInputRequestTypeDef

def get_value() -> GetMergeCommitInputRequestTypeDef:
    return {
        "repositoryName": ...,
        "sourceCommitSpecifier": ...,
        "destinationCommitSpecifier": ...,
    }
Definition
class GetMergeCommitInputRequestTypeDef(TypedDict):
    repositoryName: str,
    sourceCommitSpecifier: str,
    destinationCommitSpecifier: str,
    conflictDetailLevel: NotRequired[ConflictDetailLevelTypeEnumType],  # (1)
    conflictResolutionStrategy: NotRequired[ConflictResolutionStrategyTypeEnumType],  # (2)
  1. See ConflictDetailLevelTypeEnumType
  2. See ConflictResolutionStrategyTypeEnumType

GetMergeConflictsInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import GetMergeConflictsInputRequestTypeDef

def get_value() -> GetMergeConflictsInputRequestTypeDef:
    return {
        "repositoryName": ...,
        "destinationCommitSpecifier": ...,
        "sourceCommitSpecifier": ...,
        "mergeOption": ...,
    }
Definition
class GetMergeConflictsInputRequestTypeDef(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

GetMergeOptionsInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import GetMergeOptionsInputRequestTypeDef

def get_value() -> GetMergeOptionsInputRequestTypeDef:
    return {
        "repositoryName": ...,
        "sourceCommitSpecifier": ...,
        "destinationCommitSpecifier": ...,
    }
Definition
class GetMergeOptionsInputRequestTypeDef(TypedDict):
    repositoryName: str,
    sourceCommitSpecifier: str,
    destinationCommitSpecifier: str,
    conflictDetailLevel: NotRequired[ConflictDetailLevelTypeEnumType],  # (1)
    conflictResolutionStrategy: NotRequired[ConflictResolutionStrategyTypeEnumType],  # (2)
  1. See ConflictDetailLevelTypeEnumType
  2. See ConflictResolutionStrategyTypeEnumType

GetPullRequestApprovalStatesInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import GetPullRequestApprovalStatesInputRequestTypeDef

def get_value() -> GetPullRequestApprovalStatesInputRequestTypeDef:
    return {
        "pullRequestId": ...,
        "revisionId": ...,
    }
Definition
class GetPullRequestApprovalStatesInputRequestTypeDef(TypedDict):
    pullRequestId: str,
    revisionId: str,

GetPullRequestInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import GetPullRequestInputRequestTypeDef

def get_value() -> GetPullRequestInputRequestTypeDef:
    return {
        "pullRequestId": ...,
    }
Definition
class GetPullRequestInputRequestTypeDef(TypedDict):
    pullRequestId: str,

GetPullRequestOverrideStateInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import GetPullRequestOverrideStateInputRequestTypeDef

def get_value() -> GetPullRequestOverrideStateInputRequestTypeDef:
    return {
        "pullRequestId": ...,
        "revisionId": ...,
    }
Definition
class GetPullRequestOverrideStateInputRequestTypeDef(TypedDict):
    pullRequestId: str,
    revisionId: str,

GetRepositoryInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import GetRepositoryInputRequestTypeDef

def get_value() -> GetRepositoryInputRequestTypeDef:
    return {
        "repositoryName": ...,
    }
Definition
class GetRepositoryInputRequestTypeDef(TypedDict):
    repositoryName: str,

GetRepositoryTriggersInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import GetRepositoryTriggersInputRequestTypeDef

def get_value() -> GetRepositoryTriggersInputRequestTypeDef:
    return {
        "repositoryName": ...,
    }
Definition
class GetRepositoryTriggersInputRequestTypeDef(TypedDict):
    repositoryName: str,

RepositoryTriggerTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import RepositoryTriggerTypeDef

def get_value() -> RepositoryTriggerTypeDef:
    return {
        "name": ...,
        "destinationArn": ...,
        "events": ...,
    }
Definition
class RepositoryTriggerTypeDef(TypedDict):
    name: str,
    destinationArn: str,
    events: List[RepositoryTriggerEventEnumType],  # (1)
    customData: NotRequired[str],
    branches: NotRequired[List[str]],
  1. See RepositoryTriggerEventEnumType

ListApprovalRuleTemplatesInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import ListApprovalRuleTemplatesInputRequestTypeDef

def get_value() -> ListApprovalRuleTemplatesInputRequestTypeDef:
    return {
        "nextToken": ...,
    }
Definition
class ListApprovalRuleTemplatesInputRequestTypeDef(TypedDict):
    nextToken: NotRequired[str],
    maxResults: NotRequired[int],

ListAssociatedApprovalRuleTemplatesForRepositoryInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import ListAssociatedApprovalRuleTemplatesForRepositoryInputRequestTypeDef

def get_value() -> ListAssociatedApprovalRuleTemplatesForRepositoryInputRequestTypeDef:
    return {
        "repositoryName": ...,
    }
Definition
class ListAssociatedApprovalRuleTemplatesForRepositoryInputRequestTypeDef(TypedDict):
    repositoryName: str,
    nextToken: NotRequired[str],
    maxResults: NotRequired[int],

ListBranchesInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import ListBranchesInputRequestTypeDef

def get_value() -> ListBranchesInputRequestTypeDef:
    return {
        "repositoryName": ...,
    }
Definition
class ListBranchesInputRequestTypeDef(TypedDict):
    repositoryName: str,
    nextToken: NotRequired[str],

ListPullRequestsInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import ListPullRequestsInputRequestTypeDef

def get_value() -> ListPullRequestsInputRequestTypeDef:
    return {
        "repositoryName": ...,
    }
Definition
class ListPullRequestsInputRequestTypeDef(TypedDict):
    repositoryName: str,
    authorArn: NotRequired[str],
    pullRequestStatus: NotRequired[PullRequestStatusEnumType],  # (1)
    nextToken: NotRequired[str],
    maxResults: NotRequired[int],
  1. See PullRequestStatusEnumType

ListRepositoriesForApprovalRuleTemplateInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import ListRepositoriesForApprovalRuleTemplateInputRequestTypeDef

def get_value() -> ListRepositoriesForApprovalRuleTemplateInputRequestTypeDef:
    return {
        "approvalRuleTemplateName": ...,
    }
Definition
class ListRepositoriesForApprovalRuleTemplateInputRequestTypeDef(TypedDict):
    approvalRuleTemplateName: str,
    nextToken: NotRequired[str],
    maxResults: NotRequired[int],

ListRepositoriesInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import ListRepositoriesInputRequestTypeDef

def get_value() -> ListRepositoriesInputRequestTypeDef:
    return {
        "nextToken": ...,
    }
Definition
class ListRepositoriesInputRequestTypeDef(TypedDict):
    nextToken: NotRequired[str],
    sortBy: NotRequired[SortByEnumType],  # (1)
    order: NotRequired[OrderEnumType],  # (2)
  1. See SortByEnumType
  2. See OrderEnumType

RepositoryNameIdPairTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import RepositoryNameIdPairTypeDef

def get_value() -> RepositoryNameIdPairTypeDef:
    return {
        "repositoryName": ...,
    }
Definition
class RepositoryNameIdPairTypeDef(TypedDict):
    repositoryName: NotRequired[str],
    repositoryId: NotRequired[str],

ListTagsForResourceInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import ListTagsForResourceInputRequestTypeDef

def get_value() -> ListTagsForResourceInputRequestTypeDef:
    return {
        "resourceArn": ...,
    }
Definition
class ListTagsForResourceInputRequestTypeDef(TypedDict):
    resourceArn: str,
    nextToken: NotRequired[str],

MergeBranchesByFastForwardInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import MergeBranchesByFastForwardInputRequestTypeDef

def get_value() -> MergeBranchesByFastForwardInputRequestTypeDef:
    return {
        "repositoryName": ...,
        "sourceCommitSpecifier": ...,
        "destinationCommitSpecifier": ...,
    }
Definition
class MergeBranchesByFastForwardInputRequestTypeDef(TypedDict):
    repositoryName: str,
    sourceCommitSpecifier: str,
    destinationCommitSpecifier: str,
    targetBranch: NotRequired[str],

MergeHunkDetailTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import MergeHunkDetailTypeDef

def get_value() -> MergeHunkDetailTypeDef:
    return {
        "startLine": ...,
    }
Definition
class MergeHunkDetailTypeDef(TypedDict):
    startLine: NotRequired[int],
    endLine: NotRequired[int],
    hunkContent: NotRequired[str],

MergeMetadataTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import MergeMetadataTypeDef

def get_value() -> MergeMetadataTypeDef:
    return {
        "isMerged": ...,
    }
Definition
class MergeMetadataTypeDef(TypedDict):
    isMerged: NotRequired[bool],
    mergedBy: NotRequired[str],
    mergeCommitId: NotRequired[str],
    mergeOption: NotRequired[MergeOptionTypeEnumType],  # (1)
  1. See MergeOptionTypeEnumType

MergePullRequestByFastForwardInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import MergePullRequestByFastForwardInputRequestTypeDef

def get_value() -> MergePullRequestByFastForwardInputRequestTypeDef:
    return {
        "pullRequestId": ...,
        "repositoryName": ...,
    }
Definition
class MergePullRequestByFastForwardInputRequestTypeDef(TypedDict):
    pullRequestId: str,
    repositoryName: str,
    sourceCommitId: NotRequired[str],

OverridePullRequestApprovalRulesInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import OverridePullRequestApprovalRulesInputRequestTypeDef

def get_value() -> OverridePullRequestApprovalRulesInputRequestTypeDef:
    return {
        "pullRequestId": ...,
        "revisionId": ...,
        "overrideStatus": ...,
    }
Definition
class OverridePullRequestApprovalRulesInputRequestTypeDef(TypedDict):
    pullRequestId: str,
    revisionId: str,
    overrideStatus: OverrideStatusType,  # (1)
  1. See OverrideStatusType

PostCommentReplyInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import PostCommentReplyInputRequestTypeDef

def get_value() -> PostCommentReplyInputRequestTypeDef:
    return {
        "inReplyTo": ...,
        "content": ...,
    }
Definition
class PostCommentReplyInputRequestTypeDef(TypedDict):
    inReplyTo: str,
    content: str,
    clientRequestToken: NotRequired[str],

PullRequestCreatedEventMetadataTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import PullRequestCreatedEventMetadataTypeDef

def get_value() -> PullRequestCreatedEventMetadataTypeDef:
    return {
        "repositoryName": ...,
    }
Definition
class PullRequestCreatedEventMetadataTypeDef(TypedDict):
    repositoryName: NotRequired[str],
    sourceCommitId: NotRequired[str],
    destinationCommitId: NotRequired[str],
    mergeBase: NotRequired[str],

PullRequestSourceReferenceUpdatedEventMetadataTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import PullRequestSourceReferenceUpdatedEventMetadataTypeDef

def get_value() -> PullRequestSourceReferenceUpdatedEventMetadataTypeDef:
    return {
        "repositoryName": ...,
    }
Definition
class PullRequestSourceReferenceUpdatedEventMetadataTypeDef(TypedDict):
    repositoryName: NotRequired[str],
    beforeCommitId: NotRequired[str],
    afterCommitId: NotRequired[str],
    mergeBase: NotRequired[str],

PullRequestStatusChangedEventMetadataTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import PullRequestStatusChangedEventMetadataTypeDef

def get_value() -> PullRequestStatusChangedEventMetadataTypeDef:
    return {
        "pullRequestStatus": ...,
    }
Definition
class PullRequestStatusChangedEventMetadataTypeDef(TypedDict):
    pullRequestStatus: NotRequired[PullRequestStatusEnumType],  # (1)
  1. See PullRequestStatusEnumType

PutCommentReactionInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import PutCommentReactionInputRequestTypeDef

def get_value() -> PutCommentReactionInputRequestTypeDef:
    return {
        "commentId": ...,
        "reactionValue": ...,
    }
Definition
class PutCommentReactionInputRequestTypeDef(TypedDict):
    commentId: str,
    reactionValue: str,

SourceFileSpecifierTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import SourceFileSpecifierTypeDef

def get_value() -> SourceFileSpecifierTypeDef:
    return {
        "filePath": ...,
    }
Definition
class SourceFileSpecifierTypeDef(TypedDict):
    filePath: str,
    isMove: NotRequired[bool],

PutFileInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import PutFileInputRequestTypeDef

def get_value() -> PutFileInputRequestTypeDef:
    return {
        "repositoryName": ...,
        "branchName": ...,
        "fileContent": ...,
        "filePath": ...,
    }
Definition
class PutFileInputRequestTypeDef(TypedDict):
    repositoryName: str,
    branchName: str,
    fileContent: Union[str, bytes, IO[Any], StreamingBody],
    filePath: str,
    fileMode: NotRequired[FileModeTypeEnumType],  # (1)
    parentCommitId: NotRequired[str],
    commitMessage: NotRequired[str],
    name: NotRequired[str],
    email: NotRequired[str],
  1. See FileModeTypeEnumType

ReactionValueFormatsTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import ReactionValueFormatsTypeDef

def get_value() -> ReactionValueFormatsTypeDef:
    return {
        "emoji": ...,
    }
Definition
class ReactionValueFormatsTypeDef(TypedDict):
    emoji: NotRequired[str],
    shortCode: NotRequired[str],
    unicode: NotRequired[str],

RepositoryTriggerExecutionFailureTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import RepositoryTriggerExecutionFailureTypeDef

def get_value() -> RepositoryTriggerExecutionFailureTypeDef:
    return {
        "trigger": ...,
    }
Definition
class RepositoryTriggerExecutionFailureTypeDef(TypedDict):
    trigger: NotRequired[str],
    failureMessage: NotRequired[str],

TagResourceInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import TagResourceInputRequestTypeDef

def get_value() -> TagResourceInputRequestTypeDef:
    return {
        "resourceArn": ...,
        "tags": ...,
    }
Definition
class TagResourceInputRequestTypeDef(TypedDict):
    resourceArn: str,
    tags: Mapping[str, str],

UntagResourceInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import UntagResourceInputRequestTypeDef

def get_value() -> UntagResourceInputRequestTypeDef:
    return {
        "resourceArn": ...,
        "tagKeys": ...,
    }
Definition
class UntagResourceInputRequestTypeDef(TypedDict):
    resourceArn: str,
    tagKeys: Sequence[str],

UpdateApprovalRuleTemplateContentInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import UpdateApprovalRuleTemplateContentInputRequestTypeDef

def get_value() -> UpdateApprovalRuleTemplateContentInputRequestTypeDef:
    return {
        "approvalRuleTemplateName": ...,
        "newRuleContent": ...,
    }
Definition
class UpdateApprovalRuleTemplateContentInputRequestTypeDef(TypedDict):
    approvalRuleTemplateName: str,
    newRuleContent: str,
    existingRuleContentSha256: NotRequired[str],

UpdateApprovalRuleTemplateDescriptionInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import UpdateApprovalRuleTemplateDescriptionInputRequestTypeDef

def get_value() -> UpdateApprovalRuleTemplateDescriptionInputRequestTypeDef:
    return {
        "approvalRuleTemplateName": ...,
        "approvalRuleTemplateDescription": ...,
    }
Definition
class UpdateApprovalRuleTemplateDescriptionInputRequestTypeDef(TypedDict):
    approvalRuleTemplateName: str,
    approvalRuleTemplateDescription: str,

UpdateApprovalRuleTemplateNameInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import UpdateApprovalRuleTemplateNameInputRequestTypeDef

def get_value() -> UpdateApprovalRuleTemplateNameInputRequestTypeDef:
    return {
        "oldApprovalRuleTemplateName": ...,
        "newApprovalRuleTemplateName": ...,
    }
Definition
class UpdateApprovalRuleTemplateNameInputRequestTypeDef(TypedDict):
    oldApprovalRuleTemplateName: str,
    newApprovalRuleTemplateName: str,

UpdateCommentInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import UpdateCommentInputRequestTypeDef

def get_value() -> UpdateCommentInputRequestTypeDef:
    return {
        "commentId": ...,
        "content": ...,
    }
Definition
class UpdateCommentInputRequestTypeDef(TypedDict):
    commentId: str,
    content: str,

UpdateDefaultBranchInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import UpdateDefaultBranchInputRequestTypeDef

def get_value() -> UpdateDefaultBranchInputRequestTypeDef:
    return {
        "repositoryName": ...,
        "defaultBranchName": ...,
    }
Definition
class UpdateDefaultBranchInputRequestTypeDef(TypedDict):
    repositoryName: str,
    defaultBranchName: str,

UpdatePullRequestApprovalRuleContentInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import UpdatePullRequestApprovalRuleContentInputRequestTypeDef

def get_value() -> UpdatePullRequestApprovalRuleContentInputRequestTypeDef:
    return {
        "pullRequestId": ...,
        "approvalRuleName": ...,
        "newRuleContent": ...,
    }
Definition
class UpdatePullRequestApprovalRuleContentInputRequestTypeDef(TypedDict):
    pullRequestId: str,
    approvalRuleName: str,
    newRuleContent: str,
    existingRuleContentSha256: NotRequired[str],

UpdatePullRequestApprovalStateInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import UpdatePullRequestApprovalStateInputRequestTypeDef

def get_value() -> UpdatePullRequestApprovalStateInputRequestTypeDef:
    return {
        "pullRequestId": ...,
        "revisionId": ...,
        "approvalState": ...,
    }
Definition
class UpdatePullRequestApprovalStateInputRequestTypeDef(TypedDict):
    pullRequestId: str,
    revisionId: str,
    approvalState: ApprovalStateType,  # (1)
  1. See ApprovalStateType

UpdatePullRequestDescriptionInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import UpdatePullRequestDescriptionInputRequestTypeDef

def get_value() -> UpdatePullRequestDescriptionInputRequestTypeDef:
    return {
        "pullRequestId": ...,
        "description": ...,
    }
Definition
class UpdatePullRequestDescriptionInputRequestTypeDef(TypedDict):
    pullRequestId: str,
    description: str,

UpdatePullRequestStatusInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import UpdatePullRequestStatusInputRequestTypeDef

def get_value() -> UpdatePullRequestStatusInputRequestTypeDef:
    return {
        "pullRequestId": ...,
        "pullRequestStatus": ...,
    }
Definition
class UpdatePullRequestStatusInputRequestTypeDef(TypedDict):
    pullRequestId: str,
    pullRequestStatus: PullRequestStatusEnumType,  # (1)
  1. See PullRequestStatusEnumType

UpdatePullRequestTitleInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import UpdatePullRequestTitleInputRequestTypeDef

def get_value() -> UpdatePullRequestTitleInputRequestTypeDef:
    return {
        "pullRequestId": ...,
        "title": ...,
    }
Definition
class UpdatePullRequestTitleInputRequestTypeDef(TypedDict):
    pullRequestId: str,
    title: str,

UpdateRepositoryDescriptionInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import UpdateRepositoryDescriptionInputRequestTypeDef

def get_value() -> UpdateRepositoryDescriptionInputRequestTypeDef:
    return {
        "repositoryName": ...,
    }
Definition
class UpdateRepositoryDescriptionInputRequestTypeDef(TypedDict):
    repositoryName: str,
    repositoryDescription: NotRequired[str],

UpdateRepositoryNameInputRequestTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import UpdateRepositoryNameInputRequestTypeDef

def get_value() -> UpdateRepositoryNameInputRequestTypeDef:
    return {
        "oldName": ...,
        "newName": ...,
    }
Definition
class UpdateRepositoryNameInputRequestTypeDef(TypedDict):
    oldName: str,
    newName: str,

ApprovalRuleTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import ApprovalRuleTypeDef

def get_value() -> ApprovalRuleTypeDef:
    return {
        "approvalRuleId": ...,
    }
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

Usage Example
from mypy_boto3_codecommit.type_defs import BatchAssociateApprovalRuleTemplateWithRepositoriesOutputTypeDef

def get_value() -> BatchAssociateApprovalRuleTemplateWithRepositoriesOutputTypeDef:
    return {
        "associatedRepositoryNames": ...,
        "errors": ...,
        "ResponseMetadata": ...,
    }
Definition
class BatchAssociateApprovalRuleTemplateWithRepositoriesOutputTypeDef(TypedDict):
    associatedRepositoryNames: List[str],
    errors: List[BatchAssociateApprovalRuleTemplateWithRepositoriesErrorTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See BatchAssociateApprovalRuleTemplateWithRepositoriesErrorTypeDef
  2. See ResponseMetadataTypeDef

CreateApprovalRuleTemplateOutputTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import CreateApprovalRuleTemplateOutputTypeDef

def get_value() -> CreateApprovalRuleTemplateOutputTypeDef:
    return {
        "approvalRuleTemplate": ...,
        "ResponseMetadata": ...,
    }
Definition
class CreateApprovalRuleTemplateOutputTypeDef(TypedDict):
    approvalRuleTemplate: ApprovalRuleTemplateTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See ApprovalRuleTemplateTypeDef
  2. See ResponseMetadataTypeDef

CreateUnreferencedMergeCommitOutputTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import CreateUnreferencedMergeCommitOutputTypeDef

def get_value() -> CreateUnreferencedMergeCommitOutputTypeDef:
    return {
        "commitId": ...,
        "treeId": ...,
        "ResponseMetadata": ...,
    }
Definition
class CreateUnreferencedMergeCommitOutputTypeDef(TypedDict):
    commitId: str,
    treeId: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

DeleteApprovalRuleTemplateOutputTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import DeleteApprovalRuleTemplateOutputTypeDef

def get_value() -> DeleteApprovalRuleTemplateOutputTypeDef:
    return {
        "approvalRuleTemplateId": ...,
        "ResponseMetadata": ...,
    }
Definition
class DeleteApprovalRuleTemplateOutputTypeDef(TypedDict):
    approvalRuleTemplateId: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

DeleteFileOutputTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import DeleteFileOutputTypeDef

def get_value() -> DeleteFileOutputTypeDef:
    return {
        "commitId": ...,
        "blobId": ...,
        "treeId": ...,
        "filePath": ...,
        "ResponseMetadata": ...,
    }
Definition
class DeleteFileOutputTypeDef(TypedDict):
    commitId: str,
    blobId: str,
    treeId: str,
    filePath: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

DeletePullRequestApprovalRuleOutputTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import DeletePullRequestApprovalRuleOutputTypeDef

def get_value() -> DeletePullRequestApprovalRuleOutputTypeDef:
    return {
        "approvalRuleId": ...,
        "ResponseMetadata": ...,
    }
Definition
class DeletePullRequestApprovalRuleOutputTypeDef(TypedDict):
    approvalRuleId: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

DeleteRepositoryOutputTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import DeleteRepositoryOutputTypeDef

def get_value() -> DeleteRepositoryOutputTypeDef:
    return {
        "repositoryId": ...,
        "ResponseMetadata": ...,
    }
Definition
class DeleteRepositoryOutputTypeDef(TypedDict):
    repositoryId: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

EmptyResponseMetadataTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import EmptyResponseMetadataTypeDef

def get_value() -> EmptyResponseMetadataTypeDef:
    return {
        "ResponseMetadata": ...,
    }
Definition
class EmptyResponseMetadataTypeDef(TypedDict):
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

GetApprovalRuleTemplateOutputTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import GetApprovalRuleTemplateOutputTypeDef

def get_value() -> GetApprovalRuleTemplateOutputTypeDef:
    return {
        "approvalRuleTemplate": ...,
        "ResponseMetadata": ...,
    }
Definition
class GetApprovalRuleTemplateOutputTypeDef(TypedDict):
    approvalRuleTemplate: ApprovalRuleTemplateTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See ApprovalRuleTemplateTypeDef
  2. See ResponseMetadataTypeDef

GetBlobOutputTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import GetBlobOutputTypeDef

def get_value() -> GetBlobOutputTypeDef:
    return {
        "content": ...,
        "ResponseMetadata": ...,
    }
Definition
class GetBlobOutputTypeDef(TypedDict):
    content: bytes,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

GetFileOutputTypeDef

Usage Example
from mypy_boto3_codecommit.type_defs import GetFileOutputTypeDef

def get_value() -> GetFileOutputTypeDef:
    return {
        "commitId": ...,
        "blobId": ...,
        "filePath": ...,
        "fileMode": ...,
        "fileSize": ...,
        "fileContent": ...,
        "ResponseMetadata": ...,
    }
Definition
class GetFileOutputTypeDef(TypedDict):
    commitId: str,
    blobId: str,
    filePath: str,
    fileMode