import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateCodeReviewInput, CreateCodeReviewOutput } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreateCodeReviewCommand}. */ export interface CreateCodeReviewCommandInput extends CreateCodeReviewInput { } /** * @public * * The output of {@link CreateCodeReviewCommand}. */ export interface CreateCodeReviewCommandOutput extends CreateCodeReviewOutput, __MetadataBearer { } declare const CreateCodeReviewCommand_base: { new (input: CreateCodeReviewCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateCodeReviewCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Creates a new code review configuration in an agent space. A code review defines the parameters for automated security-focused code analysis.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { SecurityAgentClient, CreateCodeReviewCommand } from "@aws-sdk/client-securityagent"; // ES Modules import * // const { SecurityAgentClient, CreateCodeReviewCommand } = require("@aws-sdk/client-securityagent"); // CommonJS import * // import type { SecurityAgentClientConfig } from "@aws-sdk/client-securityagent"; * const config = {}; // type is SecurityAgentClientConfig * const client = new SecurityAgentClient(config); * const input = { // CreateCodeReviewInput * title: "STRING_VALUE", // required * agentSpaceId: "STRING_VALUE", // required * assets: { // Assets * endpoints: [ // EndpointList * { // Endpoint * uri: "STRING_VALUE", * }, * ], * actors: [ // ActorList * { // Actor * identifier: "STRING_VALUE", * uris: [ // UriList * "STRING_VALUE", * ], * authentication: { // Authentication * providerType: "SECRETS_MANAGER" || "AWS_LAMBDA" || "AWS_IAM_ROLE" || "AWS_INTERNAL", * value: "STRING_VALUE", * }, * description: "STRING_VALUE", * enableEmailMfa: true || false, * mfaForwardingAddress: "STRING_VALUE", * }, * ], * documents: [ // DocumentList * { // DocumentInfo * s3Location: "STRING_VALUE", * artifactId: "STRING_VALUE", * integratedDocument: { // IntegratedDocument * integrationId: "STRING_VALUE", // required * resourceId: "STRING_VALUE", // required * }, * }, * ], * sourceCode: [ // SourceCodeRepositoryList * { // SourceCodeRepository * s3Location: "STRING_VALUE", * }, * ], * integratedRepositories: [ // IntegratedRepositoryList * { // IntegratedRepository * integrationId: "STRING_VALUE", // required * providerResourceId: "STRING_VALUE", // required * branch: "STRING_VALUE", * }, * ], * trustedCaCertificates: [ // TrustedCaCertificateList * { // TrustedCaCertificate * source: { // CaCertificateSource Union: only one key present * inlinePem: "STRING_VALUE", * artifactId: "STRING_VALUE", * s3Location: "STRING_VALUE", * }, * }, * ], * }, * serviceRole: "STRING_VALUE", * logConfig: { // CloudWatchLog * logGroup: "STRING_VALUE", * logStream: "STRING_VALUE", * }, * codeRemediationStrategy: "AUTOMATIC" || "DISABLED", * validationMode: "DISABLED" || "SIMULATED", * maxTaskHours: Number("double"), * }; * const command = new CreateCodeReviewCommand(input); * const response = await client.send(command); * // { // CreateCodeReviewOutput * // codeReviewId: "STRING_VALUE", // required * // title: "STRING_VALUE", * // createdAt: new Date("TIMESTAMP"), * // updatedAt: new Date("TIMESTAMP"), * // assets: { // Assets * // endpoints: [ // EndpointList * // { // Endpoint * // uri: "STRING_VALUE", * // }, * // ], * // actors: [ // ActorList * // { // Actor * // identifier: "STRING_VALUE", * // uris: [ // UriList * // "STRING_VALUE", * // ], * // authentication: { // Authentication * // providerType: "SECRETS_MANAGER" || "AWS_LAMBDA" || "AWS_IAM_ROLE" || "AWS_INTERNAL", * // value: "STRING_VALUE", * // }, * // description: "STRING_VALUE", * // enableEmailMfa: true || false, * // mfaForwardingAddress: "STRING_VALUE", * // }, * // ], * // documents: [ // DocumentList * // { // DocumentInfo * // s3Location: "STRING_VALUE", * // artifactId: "STRING_VALUE", * // integratedDocument: { // IntegratedDocument * // integrationId: "STRING_VALUE", // required * // resourceId: "STRING_VALUE", // required * // }, * // }, * // ], * // sourceCode: [ // SourceCodeRepositoryList * // { // SourceCodeRepository * // s3Location: "STRING_VALUE", * // }, * // ], * // integratedRepositories: [ // IntegratedRepositoryList * // { // IntegratedRepository * // integrationId: "STRING_VALUE", // required * // providerResourceId: "STRING_VALUE", // required * // branch: "STRING_VALUE", * // }, * // ], * // trustedCaCertificates: [ // TrustedCaCertificateList * // { // TrustedCaCertificate * // source: { // CaCertificateSource Union: only one key present * // inlinePem: "STRING_VALUE", * // artifactId: "STRING_VALUE", * // s3Location: "STRING_VALUE", * // }, * // }, * // ], * // }, * // serviceRole: "STRING_VALUE", * // logConfig: { // CloudWatchLog * // logGroup: "STRING_VALUE", * // logStream: "STRING_VALUE", * // }, * // agentSpaceId: "STRING_VALUE", * // codeRemediationStrategy: "AUTOMATIC" || "DISABLED", * // validationMode: "DISABLED" || "SIMULATED", * // maxTaskHours: Number("double"), * // }; * * ``` * * @param CreateCodeReviewCommandInput - {@link CreateCodeReviewCommandInput} * @returns {@link CreateCodeReviewCommandOutput} * @see {@link CreateCodeReviewCommandInput} for command's `input` shape. * @see {@link CreateCodeReviewCommandOutput} for command's `response` shape. * @see {@link SecurityAgentClientResolvedConfig | config} for SecurityAgentClient's `config` shape. * * @throws {@link SecurityAgentServiceException} *

Base exception class for all service exceptions from SecurityAgent service.

* * * @public */ export declare class CreateCodeReviewCommand extends CreateCodeReviewCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateCodeReviewInput; output: CreateCodeReviewOutput; }; sdk: { input: CreateCodeReviewCommandInput; output: CreateCodeReviewCommandOutput; }; }; }