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 { DescribePullRequestEventsInput, DescribePullRequestEventsOutput } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DescribePullRequestEventsCommand}. */ export interface DescribePullRequestEventsCommandInput extends DescribePullRequestEventsInput { } /** * @public * * The output of {@link DescribePullRequestEventsCommand}. */ export interface DescribePullRequestEventsCommandOutput extends DescribePullRequestEventsOutput, __MetadataBearer { } declare const DescribePullRequestEventsCommand_base: { new (input: DescribePullRequestEventsCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: DescribePullRequestEventsCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Returns information about one or more pull request events.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { CodeCommitClient, DescribePullRequestEventsCommand } from "@aws-sdk/client-codecommit"; // ES Modules import * // const { CodeCommitClient, DescribePullRequestEventsCommand } = 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 = { // DescribePullRequestEventsInput * pullRequestId: "STRING_VALUE", // required * pullRequestEventType: "PULL_REQUEST_CREATED" || "PULL_REQUEST_STATUS_CHANGED" || "PULL_REQUEST_SOURCE_REFERENCE_UPDATED" || "PULL_REQUEST_MERGE_STATE_CHANGED" || "PULL_REQUEST_APPROVAL_RULE_CREATED" || "PULL_REQUEST_APPROVAL_RULE_UPDATED" || "PULL_REQUEST_APPROVAL_RULE_DELETED" || "PULL_REQUEST_APPROVAL_RULE_OVERRIDDEN" || "PULL_REQUEST_APPROVAL_STATE_CHANGED", * actorArn: "STRING_VALUE", * nextToken: "STRING_VALUE", * maxResults: Number("int"), * }; * const command = new DescribePullRequestEventsCommand(input); * const response = await client.send(command); * // { // DescribePullRequestEventsOutput * // pullRequestEvents: [ // PullRequestEventList // required * // { // PullRequestEvent * // pullRequestId: "STRING_VALUE", * // eventDate: new Date("TIMESTAMP"), * // pullRequestEventType: "PULL_REQUEST_CREATED" || "PULL_REQUEST_STATUS_CHANGED" || "PULL_REQUEST_SOURCE_REFERENCE_UPDATED" || "PULL_REQUEST_MERGE_STATE_CHANGED" || "PULL_REQUEST_APPROVAL_RULE_CREATED" || "PULL_REQUEST_APPROVAL_RULE_UPDATED" || "PULL_REQUEST_APPROVAL_RULE_DELETED" || "PULL_REQUEST_APPROVAL_RULE_OVERRIDDEN" || "PULL_REQUEST_APPROVAL_STATE_CHANGED", * // actorArn: "STRING_VALUE", * // pullRequestCreatedEventMetadata: { // PullRequestCreatedEventMetadata * // repositoryName: "STRING_VALUE", * // sourceCommitId: "STRING_VALUE", * // destinationCommitId: "STRING_VALUE", * // mergeBase: "STRING_VALUE", * // }, * // pullRequestStatusChangedEventMetadata: { // PullRequestStatusChangedEventMetadata * // pullRequestStatus: "OPEN" || "CLOSED", * // }, * // pullRequestSourceReferenceUpdatedEventMetadata: { // PullRequestSourceReferenceUpdatedEventMetadata * // repositoryName: "STRING_VALUE", * // beforeCommitId: "STRING_VALUE", * // afterCommitId: "STRING_VALUE", * // mergeBase: "STRING_VALUE", * // }, * // pullRequestMergedStateChangedEventMetadata: { // PullRequestMergedStateChangedEventMetadata * // repositoryName: "STRING_VALUE", * // destinationReference: "STRING_VALUE", * // mergeMetadata: { // MergeMetadata * // isMerged: true || false, * // mergedBy: "STRING_VALUE", * // mergeCommitId: "STRING_VALUE", * // mergeOption: "FAST_FORWARD_MERGE" || "SQUASH_MERGE" || "THREE_WAY_MERGE", * // }, * // }, * // approvalRuleEventMetadata: { // ApprovalRuleEventMetadata * // approvalRuleName: "STRING_VALUE", * // approvalRuleId: "STRING_VALUE", * // approvalRuleContent: "STRING_VALUE", * // }, * // approvalStateChangedEventMetadata: { // ApprovalStateChangedEventMetadata * // revisionId: "STRING_VALUE", * // approvalStatus: "APPROVE" || "REVOKE", * // }, * // approvalRuleOverriddenEventMetadata: { // ApprovalRuleOverriddenEventMetadata * // revisionId: "STRING_VALUE", * // overrideStatus: "OVERRIDE" || "REVOKE", * // }, * // }, * // ], * // nextToken: "STRING_VALUE", * // }; * * ``` * * @param DescribePullRequestEventsCommandInput - {@link DescribePullRequestEventsCommandInput} * @returns {@link DescribePullRequestEventsCommandOutput} * @see {@link DescribePullRequestEventsCommandInput} for command's `input` shape. * @see {@link DescribePullRequestEventsCommandOutput} for command's `response` shape. * @see {@link CodeCommitClientResolvedConfig | config} for CodeCommitClient's `config` shape. * * @throws {@link ActorDoesNotExistException} (client fault) *

The specified Amazon Resource Name (ARN) does not exist in the Amazon Web Services account.

* * @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 InvalidActorArnException} (client fault) *

The Amazon Resource Name (ARN) is not valid. Make sure that you have provided the full ARN for the user who initiated the change for the pull request, * and then try again.

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

The specified continuation token is not valid.

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

The specified number of maximum results is not valid.

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

The pull request event type is not valid.

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

The pull request ID is not valid. Make sure that you have provided the full ID and that the pull request is in the specified repository, and then try again.

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

The pull request ID could not be found. Make sure that you have specified the correct repository name and pull request ID, and then try again.

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

A pull request ID is required, but none was provided.

* * @throws {@link CodeCommitServiceException} *

Base exception class for all service exceptions from CodeCommit service.

* * * @public */ export declare class DescribePullRequestEventsCommand extends DescribePullRequestEventsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DescribePullRequestEventsInput; output: DescribePullRequestEventsOutput; }; sdk: { input: DescribePullRequestEventsCommandInput; output: DescribePullRequestEventsCommandOutput; }; }; }