import { type HostHeaderInputConfig, type HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header"; import { type UserAgentInputConfig, type UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent"; import { type RegionInputConfig, type RegionResolvedConfig } from "@smithy/config-resolver"; import { type EndpointInputConfig, type EndpointResolvedConfig } from "@smithy/middleware-endpoint"; import { type RetryInputConfig, type RetryResolvedConfig } from "@smithy/middleware-retry"; import type { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http"; import { type DefaultsMode as __DefaultsMode, type SmithyConfiguration as __SmithyConfiguration, type SmithyResolvedConfiguration as __SmithyResolvedConfiguration, Client as __Client } from "@smithy/smithy-client"; import type { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types"; import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider"; import type { AssociateApprovalRuleTemplateWithRepositoryCommandInput, AssociateApprovalRuleTemplateWithRepositoryCommandOutput } from "./commands/AssociateApprovalRuleTemplateWithRepositoryCommand"; import type { BatchAssociateApprovalRuleTemplateWithRepositoriesCommandInput, BatchAssociateApprovalRuleTemplateWithRepositoriesCommandOutput } from "./commands/BatchAssociateApprovalRuleTemplateWithRepositoriesCommand"; import type { BatchDescribeMergeConflictsCommandInput, BatchDescribeMergeConflictsCommandOutput } from "./commands/BatchDescribeMergeConflictsCommand"; import type { BatchDisassociateApprovalRuleTemplateFromRepositoriesCommandInput, BatchDisassociateApprovalRuleTemplateFromRepositoriesCommandOutput } from "./commands/BatchDisassociateApprovalRuleTemplateFromRepositoriesCommand"; import type { BatchGetCommitsCommandInput, BatchGetCommitsCommandOutput } from "./commands/BatchGetCommitsCommand"; import type { BatchGetRepositoriesCommandInput, BatchGetRepositoriesCommandOutput } from "./commands/BatchGetRepositoriesCommand"; import type { CreateApprovalRuleTemplateCommandInput, CreateApprovalRuleTemplateCommandOutput } from "./commands/CreateApprovalRuleTemplateCommand"; import type { CreateBranchCommandInput, CreateBranchCommandOutput } from "./commands/CreateBranchCommand"; import type { CreateCommitCommandInput, CreateCommitCommandOutput } from "./commands/CreateCommitCommand"; import type { CreatePullRequestApprovalRuleCommandInput, CreatePullRequestApprovalRuleCommandOutput } from "./commands/CreatePullRequestApprovalRuleCommand"; import type { CreatePullRequestCommandInput, CreatePullRequestCommandOutput } from "./commands/CreatePullRequestCommand"; import type { CreateRepositoryCommandInput, CreateRepositoryCommandOutput } from "./commands/CreateRepositoryCommand"; import type { CreateUnreferencedMergeCommitCommandInput, CreateUnreferencedMergeCommitCommandOutput } from "./commands/CreateUnreferencedMergeCommitCommand"; import type { DeleteApprovalRuleTemplateCommandInput, DeleteApprovalRuleTemplateCommandOutput } from "./commands/DeleteApprovalRuleTemplateCommand"; import type { DeleteBranchCommandInput, DeleteBranchCommandOutput } from "./commands/DeleteBranchCommand"; import type { DeleteCommentContentCommandInput, DeleteCommentContentCommandOutput } from "./commands/DeleteCommentContentCommand"; import type { DeleteFileCommandInput, DeleteFileCommandOutput } from "./commands/DeleteFileCommand"; import type { DeletePullRequestApprovalRuleCommandInput, DeletePullRequestApprovalRuleCommandOutput } from "./commands/DeletePullRequestApprovalRuleCommand"; import type { DeleteRepositoryCommandInput, DeleteRepositoryCommandOutput } from "./commands/DeleteRepositoryCommand"; import type { DescribeMergeConflictsCommandInput, DescribeMergeConflictsCommandOutput } from "./commands/DescribeMergeConflictsCommand"; import type { DescribePullRequestEventsCommandInput, DescribePullRequestEventsCommandOutput } from "./commands/DescribePullRequestEventsCommand"; import type { DisassociateApprovalRuleTemplateFromRepositoryCommandInput, DisassociateApprovalRuleTemplateFromRepositoryCommandOutput } from "./commands/DisassociateApprovalRuleTemplateFromRepositoryCommand"; import type { EvaluatePullRequestApprovalRulesCommandInput, EvaluatePullRequestApprovalRulesCommandOutput } from "./commands/EvaluatePullRequestApprovalRulesCommand"; import type { GetApprovalRuleTemplateCommandInput, GetApprovalRuleTemplateCommandOutput } from "./commands/GetApprovalRuleTemplateCommand"; import type { GetBlobCommandInput, GetBlobCommandOutput } from "./commands/GetBlobCommand"; import type { GetBranchCommandInput, GetBranchCommandOutput } from "./commands/GetBranchCommand"; import type { GetCommentCommandInput, GetCommentCommandOutput } from "./commands/GetCommentCommand"; import type { GetCommentReactionsCommandInput, GetCommentReactionsCommandOutput } from "./commands/GetCommentReactionsCommand"; import type { GetCommentsForComparedCommitCommandInput, GetCommentsForComparedCommitCommandOutput } from "./commands/GetCommentsForComparedCommitCommand"; import type { GetCommentsForPullRequestCommandInput, GetCommentsForPullRequestCommandOutput } from "./commands/GetCommentsForPullRequestCommand"; import type { GetCommitCommandInput, GetCommitCommandOutput } from "./commands/GetCommitCommand"; import type { GetDifferencesCommandInput, GetDifferencesCommandOutput } from "./commands/GetDifferencesCommand"; import type { GetFileCommandInput, GetFileCommandOutput } from "./commands/GetFileCommand"; import type { GetFolderCommandInput, GetFolderCommandOutput } from "./commands/GetFolderCommand"; import type { GetMergeCommitCommandInput, GetMergeCommitCommandOutput } from "./commands/GetMergeCommitCommand"; import type { GetMergeConflictsCommandInput, GetMergeConflictsCommandOutput } from "./commands/GetMergeConflictsCommand"; import type { GetMergeOptionsCommandInput, GetMergeOptionsCommandOutput } from "./commands/GetMergeOptionsCommand"; import type { GetPullRequestApprovalStatesCommandInput, GetPullRequestApprovalStatesCommandOutput } from "./commands/GetPullRequestApprovalStatesCommand"; import type { GetPullRequestCommandInput, GetPullRequestCommandOutput } from "./commands/GetPullRequestCommand"; import type { GetPullRequestOverrideStateCommandInput, GetPullRequestOverrideStateCommandOutput } from "./commands/GetPullRequestOverrideStateCommand"; import type { GetRepositoryCommandInput, GetRepositoryCommandOutput } from "./commands/GetRepositoryCommand"; import type { GetRepositoryTriggersCommandInput, GetRepositoryTriggersCommandOutput } from "./commands/GetRepositoryTriggersCommand"; import type { ListApprovalRuleTemplatesCommandInput, ListApprovalRuleTemplatesCommandOutput } from "./commands/ListApprovalRuleTemplatesCommand"; import type { ListAssociatedApprovalRuleTemplatesForRepositoryCommandInput, ListAssociatedApprovalRuleTemplatesForRepositoryCommandOutput } from "./commands/ListAssociatedApprovalRuleTemplatesForRepositoryCommand"; import type { ListBranchesCommandInput, ListBranchesCommandOutput } from "./commands/ListBranchesCommand"; import type { ListFileCommitHistoryCommandInput, ListFileCommitHistoryCommandOutput } from "./commands/ListFileCommitHistoryCommand"; import type { ListPullRequestsCommandInput, ListPullRequestsCommandOutput } from "./commands/ListPullRequestsCommand"; import type { ListRepositoriesCommandInput, ListRepositoriesCommandOutput } from "./commands/ListRepositoriesCommand"; import type { ListRepositoriesForApprovalRuleTemplateCommandInput, ListRepositoriesForApprovalRuleTemplateCommandOutput } from "./commands/ListRepositoriesForApprovalRuleTemplateCommand"; import type { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand"; import type { MergeBranchesByFastForwardCommandInput, MergeBranchesByFastForwardCommandOutput } from "./commands/MergeBranchesByFastForwardCommand"; import type { MergeBranchesBySquashCommandInput, MergeBranchesBySquashCommandOutput } from "./commands/MergeBranchesBySquashCommand"; import type { MergeBranchesByThreeWayCommandInput, MergeBranchesByThreeWayCommandOutput } from "./commands/MergeBranchesByThreeWayCommand"; import type { MergePullRequestByFastForwardCommandInput, MergePullRequestByFastForwardCommandOutput } from "./commands/MergePullRequestByFastForwardCommand"; import type { MergePullRequestBySquashCommandInput, MergePullRequestBySquashCommandOutput } from "./commands/MergePullRequestBySquashCommand"; import type { MergePullRequestByThreeWayCommandInput, MergePullRequestByThreeWayCommandOutput } from "./commands/MergePullRequestByThreeWayCommand"; import type { OverridePullRequestApprovalRulesCommandInput, OverridePullRequestApprovalRulesCommandOutput } from "./commands/OverridePullRequestApprovalRulesCommand"; import type { PostCommentForComparedCommitCommandInput, PostCommentForComparedCommitCommandOutput } from "./commands/PostCommentForComparedCommitCommand"; import type { PostCommentForPullRequestCommandInput, PostCommentForPullRequestCommandOutput } from "./commands/PostCommentForPullRequestCommand"; import type { PostCommentReplyCommandInput, PostCommentReplyCommandOutput } from "./commands/PostCommentReplyCommand"; import type { PutCommentReactionCommandInput, PutCommentReactionCommandOutput } from "./commands/PutCommentReactionCommand"; import type { PutFileCommandInput, PutFileCommandOutput } from "./commands/PutFileCommand"; import type { PutRepositoryTriggersCommandInput, PutRepositoryTriggersCommandOutput } from "./commands/PutRepositoryTriggersCommand"; import type { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand"; import type { TestRepositoryTriggersCommandInput, TestRepositoryTriggersCommandOutput } from "./commands/TestRepositoryTriggersCommand"; import type { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand"; import type { UpdateApprovalRuleTemplateContentCommandInput, UpdateApprovalRuleTemplateContentCommandOutput } from "./commands/UpdateApprovalRuleTemplateContentCommand"; import type { UpdateApprovalRuleTemplateDescriptionCommandInput, UpdateApprovalRuleTemplateDescriptionCommandOutput } from "./commands/UpdateApprovalRuleTemplateDescriptionCommand"; import type { UpdateApprovalRuleTemplateNameCommandInput, UpdateApprovalRuleTemplateNameCommandOutput } from "./commands/UpdateApprovalRuleTemplateNameCommand"; import type { UpdateCommentCommandInput, UpdateCommentCommandOutput } from "./commands/UpdateCommentCommand"; import type { UpdateDefaultBranchCommandInput, UpdateDefaultBranchCommandOutput } from "./commands/UpdateDefaultBranchCommand"; import type { UpdatePullRequestApprovalRuleContentCommandInput, UpdatePullRequestApprovalRuleContentCommandOutput } from "./commands/UpdatePullRequestApprovalRuleContentCommand"; import type { UpdatePullRequestApprovalStateCommandInput, UpdatePullRequestApprovalStateCommandOutput } from "./commands/UpdatePullRequestApprovalStateCommand"; import type { UpdatePullRequestDescriptionCommandInput, UpdatePullRequestDescriptionCommandOutput } from "./commands/UpdatePullRequestDescriptionCommand"; import type { UpdatePullRequestStatusCommandInput, UpdatePullRequestStatusCommandOutput } from "./commands/UpdatePullRequestStatusCommand"; import type { UpdatePullRequestTitleCommandInput, UpdatePullRequestTitleCommandOutput } from "./commands/UpdatePullRequestTitleCommand"; import type { UpdateRepositoryDescriptionCommandInput, UpdateRepositoryDescriptionCommandOutput } from "./commands/UpdateRepositoryDescriptionCommand"; import type { UpdateRepositoryEncryptionKeyCommandInput, UpdateRepositoryEncryptionKeyCommandOutput } from "./commands/UpdateRepositoryEncryptionKeyCommand"; import type { UpdateRepositoryNameCommandInput, UpdateRepositoryNameCommandOutput } from "./commands/UpdateRepositoryNameCommand"; import { type ClientInputEndpointParameters, type ClientResolvedEndpointParameters, type EndpointParameters } from "./endpoint/EndpointParameters"; import { type RuntimeExtension, type RuntimeExtensionsConfig } from "./runtimeExtensions"; export { __Client }; /** * @public */ export type ServiceInputTypes = AssociateApprovalRuleTemplateWithRepositoryCommandInput | BatchAssociateApprovalRuleTemplateWithRepositoriesCommandInput | BatchDescribeMergeConflictsCommandInput | BatchDisassociateApprovalRuleTemplateFromRepositoriesCommandInput | BatchGetCommitsCommandInput | BatchGetRepositoriesCommandInput | CreateApprovalRuleTemplateCommandInput | CreateBranchCommandInput | CreateCommitCommandInput | CreatePullRequestApprovalRuleCommandInput | CreatePullRequestCommandInput | CreateRepositoryCommandInput | CreateUnreferencedMergeCommitCommandInput | DeleteApprovalRuleTemplateCommandInput | DeleteBranchCommandInput | DeleteCommentContentCommandInput | DeleteFileCommandInput | DeletePullRequestApprovalRuleCommandInput | DeleteRepositoryCommandInput | DescribeMergeConflictsCommandInput | DescribePullRequestEventsCommandInput | DisassociateApprovalRuleTemplateFromRepositoryCommandInput | EvaluatePullRequestApprovalRulesCommandInput | GetApprovalRuleTemplateCommandInput | GetBlobCommandInput | GetBranchCommandInput | GetCommentCommandInput | GetCommentReactionsCommandInput | GetCommentsForComparedCommitCommandInput | GetCommentsForPullRequestCommandInput | GetCommitCommandInput | GetDifferencesCommandInput | GetFileCommandInput | GetFolderCommandInput | GetMergeCommitCommandInput | GetMergeConflictsCommandInput | GetMergeOptionsCommandInput | GetPullRequestApprovalStatesCommandInput | GetPullRequestCommandInput | GetPullRequestOverrideStateCommandInput | GetRepositoryCommandInput | GetRepositoryTriggersCommandInput | ListApprovalRuleTemplatesCommandInput | ListAssociatedApprovalRuleTemplatesForRepositoryCommandInput | ListBranchesCommandInput | ListFileCommitHistoryCommandInput | ListPullRequestsCommandInput | ListRepositoriesCommandInput | ListRepositoriesForApprovalRuleTemplateCommandInput | ListTagsForResourceCommandInput | MergeBranchesByFastForwardCommandInput | MergeBranchesBySquashCommandInput | MergeBranchesByThreeWayCommandInput | MergePullRequestByFastForwardCommandInput | MergePullRequestBySquashCommandInput | MergePullRequestByThreeWayCommandInput | OverridePullRequestApprovalRulesCommandInput | PostCommentForComparedCommitCommandInput | PostCommentForPullRequestCommandInput | PostCommentReplyCommandInput | PutCommentReactionCommandInput | PutFileCommandInput | PutRepositoryTriggersCommandInput | TagResourceCommandInput | TestRepositoryTriggersCommandInput | UntagResourceCommandInput | UpdateApprovalRuleTemplateContentCommandInput | UpdateApprovalRuleTemplateDescriptionCommandInput | UpdateApprovalRuleTemplateNameCommandInput | UpdateCommentCommandInput | UpdateDefaultBranchCommandInput | UpdatePullRequestApprovalRuleContentCommandInput | UpdatePullRequestApprovalStateCommandInput | UpdatePullRequestDescriptionCommandInput | UpdatePullRequestStatusCommandInput | UpdatePullRequestTitleCommandInput | UpdateRepositoryDescriptionCommandInput | UpdateRepositoryEncryptionKeyCommandInput | UpdateRepositoryNameCommandInput; /** * @public */ export type ServiceOutputTypes = AssociateApprovalRuleTemplateWithRepositoryCommandOutput | BatchAssociateApprovalRuleTemplateWithRepositoriesCommandOutput | BatchDescribeMergeConflictsCommandOutput | BatchDisassociateApprovalRuleTemplateFromRepositoriesCommandOutput | BatchGetCommitsCommandOutput | BatchGetRepositoriesCommandOutput | CreateApprovalRuleTemplateCommandOutput | CreateBranchCommandOutput | CreateCommitCommandOutput | CreatePullRequestApprovalRuleCommandOutput | CreatePullRequestCommandOutput | CreateRepositoryCommandOutput | CreateUnreferencedMergeCommitCommandOutput | DeleteApprovalRuleTemplateCommandOutput | DeleteBranchCommandOutput | DeleteCommentContentCommandOutput | DeleteFileCommandOutput | DeletePullRequestApprovalRuleCommandOutput | DeleteRepositoryCommandOutput | DescribeMergeConflictsCommandOutput | DescribePullRequestEventsCommandOutput | DisassociateApprovalRuleTemplateFromRepositoryCommandOutput | EvaluatePullRequestApprovalRulesCommandOutput | GetApprovalRuleTemplateCommandOutput | GetBlobCommandOutput | GetBranchCommandOutput | GetCommentCommandOutput | GetCommentReactionsCommandOutput | GetCommentsForComparedCommitCommandOutput | GetCommentsForPullRequestCommandOutput | GetCommitCommandOutput | GetDifferencesCommandOutput | GetFileCommandOutput | GetFolderCommandOutput | GetMergeCommitCommandOutput | GetMergeConflictsCommandOutput | GetMergeOptionsCommandOutput | GetPullRequestApprovalStatesCommandOutput | GetPullRequestCommandOutput | GetPullRequestOverrideStateCommandOutput | GetRepositoryCommandOutput | GetRepositoryTriggersCommandOutput | ListApprovalRuleTemplatesCommandOutput | ListAssociatedApprovalRuleTemplatesForRepositoryCommandOutput | ListBranchesCommandOutput | ListFileCommitHistoryCommandOutput | ListPullRequestsCommandOutput | ListRepositoriesCommandOutput | ListRepositoriesForApprovalRuleTemplateCommandOutput | ListTagsForResourceCommandOutput | MergeBranchesByFastForwardCommandOutput | MergeBranchesBySquashCommandOutput | MergeBranchesByThreeWayCommandOutput | MergePullRequestByFastForwardCommandOutput | MergePullRequestBySquashCommandOutput | MergePullRequestByThreeWayCommandOutput | OverridePullRequestApprovalRulesCommandOutput | PostCommentForComparedCommitCommandOutput | PostCommentForPullRequestCommandOutput | PostCommentReplyCommandOutput | PutCommentReactionCommandOutput | PutFileCommandOutput | PutRepositoryTriggersCommandOutput | TagResourceCommandOutput | TestRepositoryTriggersCommandOutput | UntagResourceCommandOutput | UpdateApprovalRuleTemplateContentCommandOutput | UpdateApprovalRuleTemplateDescriptionCommandOutput | UpdateApprovalRuleTemplateNameCommandOutput | UpdateCommentCommandOutput | UpdateDefaultBranchCommandOutput | UpdatePullRequestApprovalRuleContentCommandOutput | UpdatePullRequestApprovalStateCommandOutput | UpdatePullRequestDescriptionCommandOutput | UpdatePullRequestStatusCommandOutput | UpdatePullRequestTitleCommandOutput | UpdateRepositoryDescriptionCommandOutput | UpdateRepositoryEncryptionKeyCommandOutput | UpdateRepositoryNameCommandOutput; /** * @public */ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> { /** * The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs. */ requestHandler?: __HttpHandlerUserInput; /** * A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface * that computes the SHA-256 HMAC or checksum of a string or binary buffer. * @internal */ sha256?: __ChecksumConstructor | __HashConstructor; /** * The function that will be used to convert strings into HTTP endpoints. * @internal */ urlParser?: __UrlParser; /** * A function that can calculate the length of a request body. * @internal */ bodyLengthChecker?: __BodyLengthCalculator; /** * A function that converts a stream into an array of bytes. * @internal */ streamCollector?: __StreamCollector; /** * The function that will be used to convert a base64-encoded string to a byte array. * @internal */ base64Decoder?: __Decoder; /** * The function that will be used to convert binary data to a base64-encoded string. * @internal */ base64Encoder?: __Encoder; /** * The function that will be used to convert a UTF8-encoded string to a byte array. * @internal */ utf8Decoder?: __Decoder; /** * The function that will be used to convert binary data to a UTF-8 encoded string. * @internal */ utf8Encoder?: __Encoder; /** * The runtime environment. * @internal */ runtime?: string; /** * Disable dynamically changing the endpoint of the client based on the hostPrefix * trait of an operation. */ disableHostPrefix?: boolean; /** * Unique service identifier. * @internal */ serviceId?: string; /** * Enables IPv6/IPv4 dualstack endpoint. */ useDualstackEndpoint?: boolean | __Provider; /** * Enables FIPS compatible endpoints. */ useFipsEndpoint?: boolean | __Provider; /** * The AWS region to which this client will send requests */ region?: string | __Provider; /** * Setting a client profile is similar to setting a value for the * AWS_PROFILE environment variable. Setting a profile on a client * in code only affects the single client instance, unlike AWS_PROFILE. * * When set, and only for environments where an AWS configuration * file exists, fields configurable by this file will be retrieved * from the specified profile within that file. * Conflicting code configuration and environment variables will * still have higher priority. * * For client credential resolution that involves checking the AWS * configuration file, the client's profile (this value) will be * used unless a different profile is set in the credential * provider options. * */ profile?: string; /** * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header * @internal */ defaultUserAgentProvider?: __Provider<__UserAgent>; /** * Default credentials provider; Not available in browser runtime. * @deprecated * @internal */ credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider; /** * Value for how many times a request will be made at most in case of retry. */ maxAttempts?: number | __Provider; /** * Specifies which retry algorithm to use. * @see https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-util-retry/Enum/RETRY_MODES/ * */ retryMode?: string | __Provider; /** * Optional logger for logging debug/info/warn/error. */ logger?: __Logger; /** * Optional extensions */ extensions?: RuntimeExtension[]; /** * The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK. */ defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>; } /** * @public */ export type CodeCommitClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & UserAgentInputConfig & RetryInputConfig & RegionInputConfig & HostHeaderInputConfig & EndpointInputConfig & HttpAuthSchemeInputConfig & ClientInputEndpointParameters; /** * @public * * The configuration interface of CodeCommitClient class constructor that set the region, credentials and other options. */ export interface CodeCommitClientConfig extends CodeCommitClientConfigType { } /** * @public */ export type CodeCommitClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required & RuntimeExtensionsConfig & UserAgentResolvedConfig & RetryResolvedConfig & RegionResolvedConfig & HostHeaderResolvedConfig & EndpointResolvedConfig & HttpAuthSchemeResolvedConfig & ClientResolvedEndpointParameters; /** * @public * * The resolved configuration interface of CodeCommitClient class. This is resolved and normalized from the {@link CodeCommitClientConfig | constructor configuration interface}. */ export interface CodeCommitClientResolvedConfig extends CodeCommitClientResolvedConfigType { } /** * CodeCommit *

This is the CodeCommit API Reference. This reference provides descriptions of the operations and data types for * CodeCommit API along with usage examples.

*

You can use the CodeCommit API to work with the following objects:

*

Repositories, by calling the following:

*
    *
  • *

    * BatchGetRepositories, which returns information about one or more repositories associated with your Amazon Web Services account.

    *
  • *
  • *

    * CreateRepository, which creates an CodeCommit repository.

    *
  • *
  • *

    * DeleteRepository, which deletes an CodeCommit repository.

    *
  • *
  • *

    * GetRepository, which returns information about a specified repository.

    *
  • *
  • *

    * ListRepositories, which lists all CodeCommit repositories associated with your Amazon Web Services account.

    *
  • *
  • *

    * UpdateRepositoryDescription, which sets or updates the description of the repository.

    *
  • *
  • *

    * UpdateRepositoryEncryptionKey, which updates the Key Management Service encryption key used * to encrypt and decrypt a repository.

    *
  • *
  • *

    * UpdateRepositoryName, which changes the name of the * repository. If you change the name of a repository, no other users of that * repository can access it until you send them the new HTTPS or SSH URL to * use.

    *
  • *
*

Branches, by calling the following:

*
    *
  • *

    * CreateBranch, which creates a branch in a specified * repository.

    *
  • *
  • *

    * DeleteBranch, which deletes the specified branch in a repository unless it is the default branch.

    *
  • *
  • *

    * GetBranch, which returns information about a specified branch.

    *
  • *
  • *

    * ListBranches, which lists all branches for a specified repository.

    *
  • *
  • *

    * UpdateDefaultBranch, which changes the default branch for a repository.

    *
  • *
*

Files, by calling the following:

*
    *
  • *

    * DeleteFile, which deletes the content of a specified file from a specified branch.

    *
  • *
  • *

    * GetBlob, which returns the base-64 encoded content of an * individual Git blob object in a repository.

    *
  • *
  • *

    * GetFile, which returns the base-64 encoded content of a specified file.

    *
  • *
  • *

    * GetFolder, which returns the contents of a specified folder or directory.

    *
  • *
  • *

    * ListFileCommitHistory, which retrieves a list of commits and changes to a specified file.

    *
  • *
  • *

    * PutFile, which adds or modifies a single file in a specified repository and branch.

    *
  • *
*

Commits, by calling the following:

*
    *
  • *

    * BatchGetCommits, which returns information about one or more commits in a repository.

    *
  • *
  • *

    * CreateCommit, which creates a commit for changes to a repository.

    *
  • *
  • *

    * GetCommit, which returns information about a commit, including commit * messages and author and committer information.

    *
  • *
  • *

    * GetDifferences, which returns information about the * differences in a valid commit specifier (such as a branch, tag, HEAD, commit ID, * or other fully qualified reference).

    *
  • *
*

Merges, by calling the following:

*
    *
  • *

    * BatchDescribeMergeConflicts, which returns information about conflicts in a merge between commits in a repository.

    *
  • *
  • *

    * CreateUnreferencedMergeCommit, which creates an unreferenced commit between two branches or commits for the * purpose of comparing them and identifying any potential conflicts.

    *
  • *
  • *

    * DescribeMergeConflicts, which returns information about merge conflicts between the base, source, and destination versions * of a file in a potential merge.

    *
  • *
  • *

    * GetMergeCommit, which returns information about the merge between a source and destination commit.

    *
  • *
  • *

    * GetMergeConflicts, which returns information about merge conflicts * between the source and destination branch in a pull request.

    *
  • *
  • *

    * GetMergeOptions, which returns information about the available merge options between two branches or commit specifiers.

    *
  • *
  • *

    * MergeBranchesByFastForward, which merges two branches using the fast-forward merge option.

    *
  • *
  • *

    * MergeBranchesBySquash, which merges two branches using the squash merge option.

    *
  • *
  • *

    * MergeBranchesByThreeWay, which merges two branches using the three-way merge option.

    *
  • *
*

Pull requests, by calling the following:

* *

Approval rule templates, by calling the following:

* *

Comments in a repository, by calling the following:

*
    *
  • *

    * DeleteCommentContent, which deletes the content of a comment on a commit in a repository.

    *
  • *
  • *

    * GetComment, which returns information about a comment on a commit.

    *
  • *
  • *

    * GetCommentReactions, which returns information about emoji reactions to comments.

    *
  • *
  • *

    * GetCommentsForComparedCommit, which returns information about comments on the comparison between two commit specifiers * in a repository.

    *
  • *
  • *

    * PostCommentForComparedCommit, which creates a comment on the comparison between two commit specifiers in a repository.

    *
  • *
  • *

    * PostCommentReply, which creates a reply to a comment.

    *
  • *
  • *

    * PutCommentReaction, which creates or updates an emoji reaction to a comment.

    *
  • *
  • *

    * UpdateComment, which updates the content of a comment on a commit in a repository.

    *
  • *
*

Tags used to tag resources in CodeCommit (not Git tags), by calling the following:

*
    *
  • *

    * ListTagsForResource, which gets information about Amazon Web Servicestags for a specified Amazon Resource Name (ARN) in CodeCommit.

    *
  • *
  • *

    * TagResource, which adds or updates tags for a resource in CodeCommit.

    *
  • *
  • *

    * UntagResource, which removes tags for a resource in CodeCommit.

    *
  • *
*

Triggers, by calling the following:

*
    *
  • *

    * GetRepositoryTriggers, which returns information about triggers configured * for a repository.

    *
  • *
  • *

    * PutRepositoryTriggers, which replaces all triggers for a repository and can * be used to create or delete triggers.

    *
  • *
  • *

    * TestRepositoryTriggers, which tests the functionality of a repository trigger * by sending data to the trigger target.

    *
  • *
*

For information about how to use CodeCommit, see the CodeCommit User Guide.

* @public */ export declare class CodeCommitClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, CodeCommitClientResolvedConfig> { /** * The resolved configuration of CodeCommitClient class. This is resolved and normalized from the {@link CodeCommitClientConfig | constructor configuration interface}. */ readonly config: CodeCommitClientResolvedConfig; constructor(...[configuration]: __CheckOptionalClientConfig); /** * Destroy underlying resources, like sockets. It's usually not necessary to do this. * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed. * Otherwise, sockets might stay open for quite a long time before the server terminates them. */ destroy(): void; }