import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ListCodeReviewsRequest, ListCodeReviewsResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link ListCodeReviewsCommand}. */ export interface ListCodeReviewsCommandInput extends ListCodeReviewsRequest { } /** * @public * * The output of {@link ListCodeReviewsCommand}. */ export interface ListCodeReviewsCommandOutput extends ListCodeReviewsResponse, __MetadataBearer { } declare const ListCodeReviewsCommand_base: { new (input: ListCodeReviewsCommandInput): import("@smithy/core/client").CommandImpl; new (input: ListCodeReviewsCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Lists all the code reviews that the customer has created in the past 90 days.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { CodeGuruReviewerClient, ListCodeReviewsCommand } from "@aws-sdk/client-codeguru-reviewer"; // ES Modules import * // const { CodeGuruReviewerClient, ListCodeReviewsCommand } = require("@aws-sdk/client-codeguru-reviewer"); // CommonJS import * // import type { CodeGuruReviewerClientConfig } from "@aws-sdk/client-codeguru-reviewer"; * const config = {}; // type is CodeGuruReviewerClientConfig * const client = new CodeGuruReviewerClient(config); * const input = { // ListCodeReviewsRequest * ProviderTypes: [ // ProviderTypes * "CodeCommit" || "GitHub" || "Bitbucket" || "GitHubEnterpriseServer" || "S3Bucket", * ], * States: [ // JobStates * "Completed" || "Pending" || "Failed" || "Deleting", * ], * RepositoryNames: [ // RepositoryNames * "STRING_VALUE", * ], * Type: "PullRequest" || "RepositoryAnalysis", // required * MaxResults: Number("int"), * NextToken: "STRING_VALUE", * }; * const command = new ListCodeReviewsCommand(input); * const response = await client.send(command); * // { // ListCodeReviewsResponse * // CodeReviewSummaries: [ // CodeReviewSummaries * // { // CodeReviewSummary * // Name: "STRING_VALUE", * // CodeReviewArn: "STRING_VALUE", * // RepositoryName: "STRING_VALUE", * // Owner: "STRING_VALUE", * // ProviderType: "CodeCommit" || "GitHub" || "Bitbucket" || "GitHubEnterpriseServer" || "S3Bucket", * // State: "Completed" || "Pending" || "Failed" || "Deleting", * // CreatedTimeStamp: new Date("TIMESTAMP"), * // LastUpdatedTimeStamp: new Date("TIMESTAMP"), * // Type: "PullRequest" || "RepositoryAnalysis", * // PullRequestId: "STRING_VALUE", * // MetricsSummary: { // MetricsSummary * // MeteredLinesOfCodeCount: Number("long"), * // SuppressedLinesOfCodeCount: Number("long"), * // FindingsCount: Number("long"), * // }, * // SourceCodeType: { // SourceCodeType * // CommitDiff: { // CommitDiffSourceCodeType * // SourceCommit: "STRING_VALUE", * // DestinationCommit: "STRING_VALUE", * // MergeBaseCommit: "STRING_VALUE", * // }, * // RepositoryHead: { // RepositoryHeadSourceCodeType * // BranchName: "STRING_VALUE", // required * // }, * // BranchDiff: { // BranchDiffSourceCodeType * // SourceBranchName: "STRING_VALUE", // required * // DestinationBranchName: "STRING_VALUE", // required * // }, * // S3BucketRepository: { // S3BucketRepository * // Name: "STRING_VALUE", // required * // Details: { // S3RepositoryDetails * // BucketName: "STRING_VALUE", * // CodeArtifacts: { // CodeArtifacts * // SourceCodeArtifactsObjectKey: "STRING_VALUE", // required * // BuildArtifactsObjectKey: "STRING_VALUE", * // }, * // }, * // }, * // RequestMetadata: { // RequestMetadata * // RequestId: "STRING_VALUE", * // Requester: "STRING_VALUE", * // EventInfo: { // EventInfo * // Name: "STRING_VALUE", * // State: "STRING_VALUE", * // }, * // VendorName: "GitHub" || "GitLab" || "NativeS3", * // }, * // }, * // }, * // ], * // NextToken: "STRING_VALUE", * // }; * * ``` * * @param ListCodeReviewsCommandInput - {@link ListCodeReviewsCommandInput} * @returns {@link ListCodeReviewsCommandOutput} * @see {@link ListCodeReviewsCommandInput} for command's `input` shape. * @see {@link ListCodeReviewsCommandOutput} for command's `response` shape. * @see {@link CodeGuruReviewerClientResolvedConfig | config} for CodeGuruReviewerClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

You do not have sufficient access to perform this action.

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

The server encountered an internal error and is unable to complete the request.

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

The request was denied due to request throttling.

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

The input fails to satisfy the specified constraints.

* * @throws {@link CodeGuruReviewerServiceException} *

Base exception class for all service exceptions from CodeGuruReviewer service.

* * * @public */ export declare class ListCodeReviewsCommand extends ListCodeReviewsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ListCodeReviewsRequest; output: ListCodeReviewsResponse; }; sdk: { input: ListCodeReviewsCommandInput; output: ListCodeReviewsCommandOutput; }; }; }