import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CodeCommitClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeCommitClient"; import type { PostCommentForComparedCommitInput, PostCommentForComparedCommitOutput } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link PostCommentForComparedCommitCommand}. */ export interface PostCommentForComparedCommitCommandInput extends PostCommentForComparedCommitInput { } /** * @public * * The output of {@link PostCommentForComparedCommitCommand}. */ export interface PostCommentForComparedCommitCommandOutput extends PostCommentForComparedCommitOutput, __MetadataBearer { } declare const PostCommentForComparedCommitCommand_base: { new (input: PostCommentForComparedCommitCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: PostCommentForComparedCommitCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Posts a comment on the comparison between two commits.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { CodeCommitClient, PostCommentForComparedCommitCommand } from "@aws-sdk/client-codecommit"; // ES Modules import * // const { CodeCommitClient, PostCommentForComparedCommitCommand } = require("@aws-sdk/client-codecommit"); // CommonJS import * // import type { CodeCommitClientConfig } from "@aws-sdk/client-codecommit"; * const config = {}; // type is CodeCommitClientConfig * const client = new CodeCommitClient(config); * const input = { // PostCommentForComparedCommitInput * repositoryName: "STRING_VALUE", // required * beforeCommitId: "STRING_VALUE", * afterCommitId: "STRING_VALUE", // required * location: { // Location * filePath: "STRING_VALUE", * filePosition: Number("long"), * relativeFileVersion: "BEFORE" || "AFTER", * }, * content: "STRING_VALUE", // required * clientRequestToken: "STRING_VALUE", * }; * const command = new PostCommentForComparedCommitCommand(input); * const response = await client.send(command); * // { // PostCommentForComparedCommitOutput * // repositoryName: "STRING_VALUE", * // beforeCommitId: "STRING_VALUE", * // afterCommitId: "STRING_VALUE", * // beforeBlobId: "STRING_VALUE", * // afterBlobId: "STRING_VALUE", * // location: { // Location * // filePath: "STRING_VALUE", * // filePosition: Number("long"), * // relativeFileVersion: "BEFORE" || "AFTER", * // }, * // comment: { // Comment * // commentId: "STRING_VALUE", * // content: "STRING_VALUE", * // inReplyTo: "STRING_VALUE", * // creationDate: new Date("TIMESTAMP"), * // lastModifiedDate: new Date("TIMESTAMP"), * // authorArn: "STRING_VALUE", * // deleted: true || false, * // clientRequestToken: "STRING_VALUE", * // callerReactions: [ // CallerReactions * // "STRING_VALUE", * // ], * // reactionCounts: { // ReactionCountsMap * // "": Number("int"), * // }, * // }, * // }; * * ``` * * @param PostCommentForComparedCommitCommandInput - {@link PostCommentForComparedCommitCommandInput} * @returns {@link PostCommentForComparedCommitCommandOutput} * @see {@link PostCommentForComparedCommitCommandInput} for command's `input` shape. * @see {@link PostCommentForComparedCommitCommandOutput} for command's `response` shape. * @see {@link CodeCommitClientResolvedConfig | config} for CodeCommitClient's `config` shape. * * @throws {@link BeforeCommitIdAndAfterCommitIdAreSameException} (client fault) *

The before commit ID and the after commit ID are the same, which is not valid. The before commit ID and the after commit ID must be different commit IDs.

* * @throws {@link ClientRequestTokenRequiredException} (client fault) *

A client request token is required. A client request token is an unique, * client-generated idempotency token that, when provided in a request, ensures the request * cannot be repeated with a changed parameter. If a request is received with the same * parameters and a token is included, the request returns information about the initial * request that used that token.

* * @throws {@link CommentContentRequiredException} (client fault) *

The comment is empty. You must provide some content for a comment. The content cannot be null.

* * @throws {@link CommentContentSizeLimitExceededException} (client fault) *

The comment is too large. Comments are limited to 10,240 characters.

* * @throws {@link CommitDoesNotExistException} (client fault) *

The specified commit does not exist or no commit was specified, and the specified repository has no default branch.

* * @throws {@link CommitIdRequiredException} (client fault) *

A commit ID was not specified.

* * @throws {@link EncryptionIntegrityChecksFailedException} (server fault) *

An encryption integrity check failed.

* * @throws {@link EncryptionKeyAccessDeniedException} (client fault) *

An encryption key could not be accessed.

* * @throws {@link EncryptionKeyDisabledException} (client fault) *

The encryption key is disabled.

* * @throws {@link EncryptionKeyNotFoundException} (client fault) *

No encryption key was found.

* * @throws {@link EncryptionKeyUnavailableException} (client fault) *

The encryption key is not available.

* * @throws {@link IdempotencyParameterMismatchException} (client fault) *

The client request token is not valid. Either the token is not in a valid format, or * the token has been used in a previous request and cannot be reused.

* * @throws {@link InvalidClientRequestTokenException} (client fault) *

The client request token is not valid.

* * @throws {@link InvalidCommitIdException} (client fault) *

The specified commit ID is not valid.

* * @throws {@link InvalidFileLocationException} (client fault) *

The location of the file is not valid. Make sure that you include the file name and * extension.

* * @throws {@link InvalidFilePositionException} (client fault) *

The position is not valid. Make sure that the line number exists in the version of the file you want to comment on.

* * @throws {@link InvalidPathException} (client fault) *

The specified path is not valid.

* * @throws {@link InvalidRelativeFileVersionEnumException} (client fault) *

Either the enum is not in a valid format, or the specified file version enum is not valid in respect to the current file version.

* * @throws {@link InvalidRepositoryNameException} (client fault) *

A specified repository name is not valid.

* *

This exception occurs only when a specified repository name is not valid. Other * exceptions occur when a required repository parameter is missing, or when a * specified repository does not exist.

*
* * @throws {@link PathDoesNotExistException} (client fault) *

The specified path does not exist.

* * @throws {@link PathRequiredException} (client fault) *

The folderPath for a location cannot be null.

* * @throws {@link RepositoryDoesNotExistException} (client fault) *

The specified repository does not exist.

* * @throws {@link RepositoryNameRequiredException} (client fault) *

A repository name is required, but was not specified.

* * @throws {@link CodeCommitServiceException} *

Base exception class for all service exceptions from CodeCommit service.

* * * @public */ export declare class PostCommentForComparedCommitCommand extends PostCommentForComparedCommitCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: PostCommentForComparedCommitInput; output: PostCommentForComparedCommitOutput; }; sdk: { input: PostCommentForComparedCommitCommandInput; output: PostCommentForComparedCommitCommandOutput; }; }; }