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

Returns a list of pull requests for a specified repository. The return list can be refined by pull request * status or pull request author ARN.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { CodeCommitClient, ListPullRequestsCommand } from "@aws-sdk/client-codecommit"; // ES Modules import * // const { CodeCommitClient, ListPullRequestsCommand } = 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 = { // ListPullRequestsInput * repositoryName: "STRING_VALUE", // required * authorArn: "STRING_VALUE", * pullRequestStatus: "OPEN" || "CLOSED", * nextToken: "STRING_VALUE", * maxResults: Number("int"), * }; * const command = new ListPullRequestsCommand(input); * const response = await client.send(command); * // { // ListPullRequestsOutput * // pullRequestIds: [ // PullRequestIdList // required * // "STRING_VALUE", * // ], * // nextToken: "STRING_VALUE", * // }; * * ``` * * @param ListPullRequestsCommandInput - {@link ListPullRequestsCommandInput} * @returns {@link ListPullRequestsCommandOutput} * @see {@link ListPullRequestsCommandInput} for command's `input` shape. * @see {@link ListPullRequestsCommandOutput} for command's `response` shape. * @see {@link CodeCommitClientResolvedConfig | config} for CodeCommitClient's `config` shape. * * @throws {@link AuthorDoesNotExistException} (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 InvalidAuthorArnException} (client fault) *

The Amazon Resource Name (ARN) is not valid. Make sure that you have provided the full ARN for the author of 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 InvalidPullRequestStatusException} (client fault) *

The pull request status is not valid. The only valid values are OPEN and CLOSED.

* * @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 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 ListPullRequestsCommand extends ListPullRequestsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ListPullRequestsInput; output: ListPullRequestsOutput; }; sdk: { input: ListPullRequestsCommandInput; output: ListPullRequestsCommandOutput; }; }; }