Skip to content

Type definitions#

Index > CodeCommit > Type definitions

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

BlobTypeDef#

# BlobTypeDef definition

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

RepositoryTriggerUnionTypeDef#

# RepositoryTriggerUnionTypeDef definition

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

ApprovalRuleEventMetadataTypeDef#

# ApprovalRuleEventMetadataTypeDef definition

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

ApprovalRuleOverriddenEventMetadataTypeDef#

# ApprovalRuleOverriddenEventMetadataTypeDef definition

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

ApprovalRuleTemplateTypeDef#

# 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 definition

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

ApprovalStateChangedEventMetadataTypeDef#

# ApprovalStateChangedEventMetadataTypeDef definition

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

ApprovalTypeDef#

# ApprovalTypeDef definition

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

AssociateApprovalRuleTemplateWithRepositoryInputRequestTypeDef#

# AssociateApprovalRuleTemplateWithRepositoryInputRequestTypeDef definition

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

BatchAssociateApprovalRuleTemplateWithRepositoriesErrorTypeDef#

# BatchAssociateApprovalRuleTemplateWithRepositoriesErrorTypeDef definition

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

BatchAssociateApprovalRuleTemplateWithRepositoriesInputRequestTypeDef#

# BatchAssociateApprovalRuleTemplateWithRepositoriesInputRequestTypeDef definition

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

ResponseMetadataTypeDef#

# ResponseMetadataTypeDef definition

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

BatchDescribeMergeConflictsErrorTypeDef#

# BatchDescribeMergeConflictsErrorTypeDef definition

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

BatchDescribeMergeConflictsInputRequestTypeDef#

# BatchDescribeMergeConflictsInputRequestTypeDef 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#

# BatchDisassociateApprovalRuleTemplateFromRepositoriesErrorTypeDef definition

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

BatchDisassociateApprovalRuleTemplateFromRepositoriesInputRequestTypeDef#

# BatchDisassociateApprovalRuleTemplateFromRepositoriesInputRequestTypeDef definition

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

BatchGetCommitsErrorTypeDef#

# BatchGetCommitsErrorTypeDef definition

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

BatchGetCommitsInputRequestTypeDef#

# BatchGetCommitsInputRequestTypeDef definition

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

BatchGetRepositoriesErrorTypeDef#

# BatchGetRepositoriesErrorTypeDef definition

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

BatchGetRepositoriesInputRequestTypeDef#

# BatchGetRepositoriesInputRequestTypeDef definition

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

RepositoryMetadataTypeDef#

# 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 definition

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

BranchInfoTypeDef#

# BranchInfoTypeDef definition

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

CommentTypeDef#

# 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 definition

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

UserInfoTypeDef#

# UserInfoTypeDef definition

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

FileModesTypeDef#

# 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 definition

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

IsBinaryFileTypeDef#

# IsBinaryFileTypeDef definition

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

MergeOperationsTypeDef#

# MergeOperationsTypeDef definition

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

ObjectTypesTypeDef#

# 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 definition

class DeleteFileEntryTypeDef(TypedDict):
    filePath: str,

SetFileModeEntryTypeDef#

# SetFileModeEntryTypeDef definition

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

CreateApprovalRuleTemplateInputRequestTypeDef#

# CreateApprovalRuleTemplateInputRequestTypeDef definition

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

CreateBranchInputRequestTypeDef#

# CreateBranchInputRequestTypeDef definition

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

FileMetadataTypeDef#

# FileMetadataTypeDef definition

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

CreatePullRequestApprovalRuleInputRequestTypeDef#

# CreatePullRequestApprovalRuleInputRequestTypeDef definition

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

TargetTypeDef#

# TargetTypeDef definition

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

CreateRepositoryInputRequestTypeDef#

# CreateRepositoryInputRequestTypeDef definition

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

DeleteApprovalRuleTemplateInputRequestTypeDef#

# DeleteApprovalRuleTemplateInputRequestTypeDef definition

class DeleteApprovalRuleTemplateInputRequestTypeDef(TypedDict):
    approvalRuleTemplateName: str,

DeleteBranchInputRequestTypeDef#

# DeleteBranchInputRequestTypeDef definition

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

DeleteCommentContentInputRequestTypeDef#

# DeleteCommentContentInputRequestTypeDef definition

class DeleteCommentContentInputRequestTypeDef(TypedDict):
    commentId: str,

DeleteFileInputRequestTypeDef#

# DeleteFileInputRequestTypeDef 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#

# DeletePullRequestApprovalRuleInputRequestTypeDef definition

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

DeleteRepositoryInputRequestTypeDef#

# DeleteRepositoryInputRequestTypeDef definition

class DeleteRepositoryInputRequestTypeDef(TypedDict):
    repositoryName: str,

DescribeMergeConflictsInputRequestTypeDef#

# DescribeMergeConflictsInputRequestTypeDef 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#

# PaginatorConfigTypeDef definition

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

DescribePullRequestEventsInputRequestTypeDef#

# DescribePullRequestEventsInputRequestTypeDef definition

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

DisassociateApprovalRuleTemplateFromRepositoryInputRequestTypeDef#

# DisassociateApprovalRuleTemplateFromRepositoryInputRequestTypeDef definition

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

EvaluatePullRequestApprovalRulesInputRequestTypeDef#

# EvaluatePullRequestApprovalRulesInputRequestTypeDef definition

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

EvaluationTypeDef#

# EvaluationTypeDef definition

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

FileTypeDef#

# FileTypeDef definition

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

FolderTypeDef#

# FolderTypeDef definition

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

GetApprovalRuleTemplateInputRequestTypeDef#

# GetApprovalRuleTemplateInputRequestTypeDef definition

class GetApprovalRuleTemplateInputRequestTypeDef(TypedDict):
    approvalRuleTemplateName: str,

GetBlobInputRequestTypeDef#

# GetBlobInputRequestTypeDef definition

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

GetBranchInputRequestTypeDef#

# GetBranchInputRequestTypeDef definition

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

GetCommentInputRequestTypeDef#

# GetCommentInputRequestTypeDef definition

class GetCommentInputRequestTypeDef(TypedDict):
    commentId: str,

GetCommentReactionsInputRequestTypeDef#

# GetCommentReactionsInputRequestTypeDef definition

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

GetCommentsForComparedCommitInputRequestTypeDef#

# GetCommentsForComparedCommitInputRequestTypeDef definition

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

GetCommentsForPullRequestInputRequestTypeDef#

# GetCommentsForPullRequestInputRequestTypeDef definition

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

GetCommitInputRequestTypeDef#

# GetCommitInputRequestTypeDef definition

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

GetDifferencesInputRequestTypeDef#

# GetDifferencesInputRequestTypeDef definition

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

GetFileInputRequestTypeDef#

# GetFileInputRequestTypeDef definition

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

GetFolderInputRequestTypeDef#

# GetFolderInputRequestTypeDef definition

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

SubModuleTypeDef#

# SubModuleTypeDef definition

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

SymbolicLinkTypeDef#

# SymbolicLinkTypeDef definition

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

GetMergeCommitInputRequestTypeDef#

# GetMergeCommitInputRequestTypeDef 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#

# GetMergeConflictsInputRequestTypeDef 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#

# GetMergeOptionsInputRequestTypeDef 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#

# GetPullRequestApprovalStatesInputRequestTypeDef definition

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

GetPullRequestInputRequestTypeDef#

# GetPullRequestInputRequestTypeDef definition

class GetPullRequestInputRequestTypeDef(TypedDict):
    pullRequestId: str,

GetPullRequestOverrideStateInputRequestTypeDef#

# GetPullRequestOverrideStateInputRequestTypeDef definition

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

GetRepositoryInputRequestTypeDef#

# GetRepositoryInputRequestTypeDef definition

class GetRepositoryInputRequestTypeDef(TypedDict):
    repositoryName: str,

GetRepositoryTriggersInputRequestTypeDef#

# GetRepositoryTriggersInputRequestTypeDef definition

class GetRepositoryTriggersInputRequestTypeDef(TypedDict):
    repositoryName: str,

RepositoryTriggerOutputTypeDef#

# RepositoryTriggerOutputTypeDef definition

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

ListApprovalRuleTemplatesInputRequestTypeDef#

# ListApprovalRuleTemplatesInputRequestTypeDef definition

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

ListAssociatedApprovalRuleTemplatesForRepositoryInputRequestTypeDef#

# ListAssociatedApprovalRuleTemplatesForRepositoryInputRequestTypeDef definition

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

ListBranchesInputRequestTypeDef#

# ListBranchesInputRequestTypeDef definition

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

ListFileCommitHistoryRequestRequestTypeDef#

# ListFileCommitHistoryRequestRequestTypeDef definition

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

ListPullRequestsInputRequestTypeDef#

# ListPullRequestsInputRequestTypeDef definition

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

ListRepositoriesForApprovalRuleTemplateInputRequestTypeDef#

# ListRepositoriesForApprovalRuleTemplateInputRequestTypeDef definition

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

ListRepositoriesInputRequestTypeDef#

# ListRepositoriesInputRequestTypeDef definition

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

RepositoryNameIdPairTypeDef#

# RepositoryNameIdPairTypeDef definition

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

ListTagsForResourceInputRequestTypeDef#

# ListTagsForResourceInputRequestTypeDef definition

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

MergeBranchesByFastForwardInputRequestTypeDef#

# MergeBranchesByFastForwardInputRequestTypeDef definition

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

MergeHunkDetailTypeDef#

# MergeHunkDetailTypeDef definition

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

MergeMetadataTypeDef#

# MergeMetadataTypeDef definition

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

MergePullRequestByFastForwardInputRequestTypeDef#

# MergePullRequestByFastForwardInputRequestTypeDef definition

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

OverridePullRequestApprovalRulesInputRequestTypeDef#

# OverridePullRequestApprovalRulesInputRequestTypeDef definition

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

PostCommentReplyInputRequestTypeDef#

# PostCommentReplyInputRequestTypeDef definition

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

PullRequestCreatedEventMetadataTypeDef#

# PullRequestCreatedEventMetadataTypeDef definition

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

PullRequestSourceReferenceUpdatedEventMetadataTypeDef#

# PullRequestSourceReferenceUpdatedEventMetadataTypeDef definition

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

PullRequestStatusChangedEventMetadataTypeDef#

# PullRequestStatusChangedEventMetadataTypeDef definition

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

PutCommentReactionInputRequestTypeDef#

# PutCommentReactionInputRequestTypeDef definition

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

SourceFileSpecifierTypeDef#

# SourceFileSpecifierTypeDef definition

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

ReactionValueFormatsTypeDef#

# ReactionValueFormatsTypeDef definition

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

RepositoryTriggerExecutionFailureTypeDef#

# RepositoryTriggerExecutionFailureTypeDef definition

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

RepositoryTriggerTypeDef#

# RepositoryTriggerTypeDef definition

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

TagResourceInputRequestTypeDef#

# TagResourceInputRequestTypeDef definition

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

UntagResourceInputRequestTypeDef#

# UntagResourceInputRequestTypeDef definition

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

UpdateApprovalRuleTemplateContentInputRequestTypeDef#

# UpdateApprovalRuleTemplateContentInputRequestTypeDef definition

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

UpdateApprovalRuleTemplateDescriptionInputRequestTypeDef#

# UpdateApprovalRuleTemplateDescriptionInputRequestTypeDef definition

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

UpdateApprovalRuleTemplateNameInputRequestTypeDef#

# UpdateApprovalRuleTemplateNameInputRequestTypeDef definition

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

UpdateCommentInputRequestTypeDef#

# UpdateCommentInputRequestTypeDef definition

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

UpdateDefaultBranchInputRequestTypeDef#

# UpdateDefaultBranchInputRequestTypeDef definition

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

UpdatePullRequestApprovalRuleContentInputRequestTypeDef#

# UpdatePullRequestApprovalRuleContentInputRequestTypeDef definition

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

UpdatePullRequestApprovalStateInputRequestTypeDef#

# UpdatePullRequestApprovalStateInputRequestTypeDef definition

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

UpdatePullRequestDescriptionInputRequestTypeDef#

# UpdatePullRequestDescriptionInputRequestTypeDef definition

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

UpdatePullRequestStatusInputRequestTypeDef#

# UpdatePullRequestStatusInputRequestTypeDef definition

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

UpdatePullRequestTitleInputRequestTypeDef#

# UpdatePullRequestTitleInputRequestTypeDef definition

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

UpdateRepositoryDescriptionInputRequestTypeDef#

# UpdateRepositoryDescriptionInputRequestTypeDef definition

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

UpdateRepositoryEncryptionKeyInputRequestTypeDef#

# UpdateRepositoryEncryptionKeyInputRequestTypeDef definition

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

UpdateRepositoryNameInputRequestTypeDef#

# UpdateRepositoryNameInputRequestTypeDef definition

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

ApprovalRuleTypeDef#

# 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 definition

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

CreateApprovalRuleTemplateOutputTypeDef#

# CreateApprovalRuleTemplateOutputTypeDef definition

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

CreateUnreferencedMergeCommitOutputTypeDef#

# CreateUnreferencedMergeCommitOutputTypeDef definition

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

DeleteApprovalRuleTemplateOutputTypeDef#

# DeleteApprovalRuleTemplateOutputTypeDef definition

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

DeleteFileOutputTypeDef#

# DeleteFileOutputTypeDef definition

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

DeletePullRequestApprovalRuleOutputTypeDef#

# DeletePullRequestApprovalRuleOutputTypeDef definition

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

DeleteRepositoryOutputTypeDef#

# DeleteRepositoryOutputTypeDef definition

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

EmptyResponseMetadataTypeDef#

# EmptyResponseMetadataTypeDef definition

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

GetApprovalRuleTemplateOutputTypeDef#

# GetApprovalRuleTemplateOutputTypeDef definition

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

GetBlobOutputTypeDef#

# GetBlobOutputTypeDef definition

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

GetFileOutputTypeDef#

# 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 definition

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

GetMergeOptionsOutputTypeDef#

# 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 definition

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

GetPullRequestOverrideStateOutputTypeDef#

# GetPullRequestOverrideStateOutputTypeDef definition

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

ListApprovalRuleTemplatesOutputTypeDef#

# ListApprovalRuleTemplatesOutputTypeDef definition

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

ListAssociatedApprovalRuleTemplatesForRepositoryOutputTypeDef#

# ListAssociatedApprovalRuleTemplatesForRepositoryOutputTypeDef definition

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

ListBranchesOutputTypeDef#

# ListBranchesOutputTypeDef definition

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

ListPullRequestsOutputTypeDef#

# ListPullRequestsOutputTypeDef definition

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

ListRepositoriesForApprovalRuleTemplateOutputTypeDef#

# ListRepositoriesForApprovalRuleTemplateOutputTypeDef definition

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

ListTagsForResourceOutputTypeDef#

# ListTagsForResourceOutputTypeDef definition

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

MergeBranchesByFastForwardOutputTypeDef#

# MergeBranchesByFastForwardOutputTypeDef definition

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

MergeBranchesBySquashOutputTypeDef#

# MergeBranchesBySquashOutputTypeDef definition

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

MergeBranchesByThreeWayOutputTypeDef#

# MergeBranchesByThreeWayOutputTypeDef definition

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

PutFileOutputTypeDef#

# PutFileOutputTypeDef definition

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

PutRepositoryTriggersOutputTypeDef#

# PutRepositoryTriggersOutputTypeDef definition

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

UpdateApprovalRuleTemplateContentOutputTypeDef#

# UpdateApprovalRuleTemplateContentOutputTypeDef definition

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

UpdateApprovalRuleTemplateDescriptionOutputTypeDef#

# UpdateApprovalRuleTemplateDescriptionOutputTypeDef definition

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

UpdateApprovalRuleTemplateNameOutputTypeDef#

# UpdateApprovalRuleTemplateNameOutputTypeDef definition

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

UpdateRepositoryEncryptionKeyOutputTypeDef#

# UpdateRepositoryEncryptionKeyOutputTypeDef definition

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

BatchDisassociateApprovalRuleTemplateFromRepositoriesOutputTypeDef#

# BatchDisassociateApprovalRuleTemplateFromRepositoriesOutputTypeDef definition

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

BatchGetRepositoriesOutputTypeDef#

# 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 definition

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

GetRepositoryOutputTypeDef#

# GetRepositoryOutputTypeDef definition

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

DifferenceTypeDef#

# 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

PutFileInputRequestTypeDef#

# PutFileInputRequestTypeDef definition

class PutFileInputRequestTypeDef(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 definition

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

DeleteBranchOutputTypeDef#

# DeleteBranchOutputTypeDef definition

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

GetBranchOutputTypeDef#

# GetBranchOutputTypeDef definition

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

DeleteCommentContentOutputTypeDef#

# DeleteCommentContentOutputTypeDef definition

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

GetCommentOutputTypeDef#

# GetCommentOutputTypeDef definition

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

PostCommentReplyOutputTypeDef#

# PostCommentReplyOutputTypeDef definition

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

UpdateCommentOutputTypeDef#

# UpdateCommentOutputTypeDef definition

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

CommentsForComparedCommitTypeDef#

# 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 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

PostCommentForComparedCommitInputRequestTypeDef#

# PostCommentForComparedCommitInputRequestTypeDef definition

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

PostCommentForComparedCommitOutputTypeDef#

# 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

PostCommentForPullRequestInputRequestTypeDef#

# PostCommentForPullRequestInputRequestTypeDef definition

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

PostCommentForPullRequestOutputTypeDef#

# 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 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 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 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

CreatePullRequestInputRequestTypeDef#

# CreatePullRequestInputRequestTypeDef definition

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

DescribePullRequestEventsInputPaginateTypeDef#

# 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 definition

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

GetCommentsForPullRequestInputPaginateTypeDef#

# 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 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 definition

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

ListPullRequestsInputPaginateTypeDef#

# 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 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 definition

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

GetFolderOutputTypeDef#

# 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 definition

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

ListRepositoriesOutputTypeDef#

# ListRepositoriesOutputTypeDef definition

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

MergeHunkTypeDef#

# 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 definition

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

PullRequestTargetTypeDef#

# 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 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 definition

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

TestRepositoryTriggersOutputTypeDef#

# TestRepositoryTriggersOutputTypeDef definition

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

TestRepositoryTriggersInputRequestTypeDef#

# TestRepositoryTriggersInputRequestTypeDef definition

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

CreatePullRequestApprovalRuleOutputTypeDef#

# CreatePullRequestApprovalRuleOutputTypeDef definition

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

UpdatePullRequestApprovalRuleContentOutputTypeDef#

# UpdatePullRequestApprovalRuleContentOutputTypeDef definition

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

GetDifferencesOutputTypeDef#

# GetDifferencesOutputTypeDef definition

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

ConflictResolutionTypeDef#

# 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 definition

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

GetCommentsForPullRequestOutputTypeDef#

# GetCommentsForPullRequestOutputTypeDef definition

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

BatchGetCommitsOutputTypeDef#

# 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 definition

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

GetCommitOutputTypeDef#

# GetCommitOutputTypeDef definition

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

GetMergeConflictsOutputTypeDef#

# 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 definition

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

DescribeMergeConflictsOutputTypeDef#

# 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 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 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

CreateCommitInputRequestTypeDef#

# CreateCommitInputRequestTypeDef definition

class CreateCommitInputRequestTypeDef(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 definition

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

PutRepositoryTriggersInputRequestTypeDef#

# PutRepositoryTriggersInputRequestTypeDef definition

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

CreateUnreferencedMergeCommitInputRequestTypeDef#

# CreateUnreferencedMergeCommitInputRequestTypeDef definition

class CreateUnreferencedMergeCommitInputRequestTypeDef(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

MergeBranchesBySquashInputRequestTypeDef#

# MergeBranchesBySquashInputRequestTypeDef definition

class MergeBranchesBySquashInputRequestTypeDef(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

MergeBranchesByThreeWayInputRequestTypeDef#

# MergeBranchesByThreeWayInputRequestTypeDef definition

class MergeBranchesByThreeWayInputRequestTypeDef(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

MergePullRequestBySquashInputRequestTypeDef#

# MergePullRequestBySquashInputRequestTypeDef definition

class MergePullRequestBySquashInputRequestTypeDef(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

MergePullRequestByThreeWayInputRequestTypeDef#

# MergePullRequestByThreeWayInputRequestTypeDef definition

class MergePullRequestByThreeWayInputRequestTypeDef(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 definition

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

BatchDescribeMergeConflictsOutputTypeDef#

# 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 definition

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

CreatePullRequestOutputTypeDef#

# CreatePullRequestOutputTypeDef definition

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

GetPullRequestOutputTypeDef#

# GetPullRequestOutputTypeDef definition

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

MergePullRequestByFastForwardOutputTypeDef#

# MergePullRequestByFastForwardOutputTypeDef definition

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

MergePullRequestBySquashOutputTypeDef#

# MergePullRequestBySquashOutputTypeDef definition

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

MergePullRequestByThreeWayOutputTypeDef#

# MergePullRequestByThreeWayOutputTypeDef definition

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

UpdatePullRequestDescriptionOutputTypeDef#

# UpdatePullRequestDescriptionOutputTypeDef definition

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

UpdatePullRequestStatusOutputTypeDef#

# UpdatePullRequestStatusOutputTypeDef definition

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

UpdatePullRequestTitleOutputTypeDef#

# UpdatePullRequestTitleOutputTypeDef definition

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