import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { DescribeCodeReviewRequest, DescribeCodeReviewResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link DescribeCodeReviewCommand}. */ export interface DescribeCodeReviewCommandInput extends DescribeCodeReviewRequest { } /** * @public * * The output of {@link DescribeCodeReviewCommand}. */ export interface DescribeCodeReviewCommandOutput extends DescribeCodeReviewResponse, __MetadataBearer { } declare const DescribeCodeReviewCommand_base: { new (input: DescribeCodeReviewCommandInput): import("@smithy/core/client").CommandImpl; new (input: DescribeCodeReviewCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Returns the metadata associated with the code review along with its status.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { CodeGuruReviewerClient, DescribeCodeReviewCommand } from "@aws-sdk/client-codeguru-reviewer"; // ES Modules import * // const { CodeGuruReviewerClient, DescribeCodeReviewCommand } = 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 = { // DescribeCodeReviewRequest * CodeReviewArn: "STRING_VALUE", // required * }; * const command = new DescribeCodeReviewCommand(input); * const response = await client.send(command); * // { // DescribeCodeReviewResponse * // CodeReview: { // CodeReview * // Name: "STRING_VALUE", * // CodeReviewArn: "STRING_VALUE", * // RepositoryName: "STRING_VALUE", * // Owner: "STRING_VALUE", * // ProviderType: "CodeCommit" || "GitHub" || "Bitbucket" || "GitHubEnterpriseServer" || "S3Bucket", * // State: "Completed" || "Pending" || "Failed" || "Deleting", * // StateReason: "STRING_VALUE", * // CreatedTimeStamp: new Date("TIMESTAMP"), * // LastUpdatedTimeStamp: new Date("TIMESTAMP"), * // Type: "PullRequest" || "RepositoryAnalysis", * // PullRequestId: "STRING_VALUE", * // 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", * // }, * // }, * // AssociationArn: "STRING_VALUE", * // Metrics: { // Metrics * // MeteredLinesOfCodeCount: Number("long"), * // SuppressedLinesOfCodeCount: Number("long"), * // FindingsCount: Number("long"), * // }, * // AnalysisTypes: [ // AnalysisTypes * // "Security" || "CodeQuality", * // ], * // ConfigFileState: "Present" || "Absent" || "PresentWithErrors", * // }, * // }; * * ``` * * @param DescribeCodeReviewCommandInput - {@link DescribeCodeReviewCommandInput} * @returns {@link DescribeCodeReviewCommandOutput} * @see {@link DescribeCodeReviewCommandInput} for command's `input` shape. * @see {@link DescribeCodeReviewCommandOutput} 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 ResourceNotFoundException} (client fault) *

The resource specified in the request was not found.

* * @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 DescribeCodeReviewCommand extends DescribeCodeReviewCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DescribeCodeReviewRequest; output: DescribeCodeReviewResponse; }; sdk: { input: DescribeCodeReviewCommandInput; output: DescribeCodeReviewCommandOutput; }; }; }