import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ApplicationVersionDescriptionMessage, CreateApplicationVersionMessage } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreateApplicationVersionCommand}. */ export interface CreateApplicationVersionCommandInput extends CreateApplicationVersionMessage { } /** * @public * * The output of {@link CreateApplicationVersionCommand}. */ export interface CreateApplicationVersionCommandOutput extends ApplicationVersionDescriptionMessage, __MetadataBearer { } declare const CreateApplicationVersionCommand_base: { new (input: CreateApplicationVersionCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateApplicationVersionCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Creates an application version for the specified application. You can create an application version from a source bundle in Amazon S3, a commit in * CodeCommit, or the output of an CodeBuild build as follows:

*

Specify a commit in an CodeCommit repository with SourceBuildInformation.

*

Specify a build in an CodeBuild with SourceBuildInformation and BuildConfiguration.

*

Specify a source bundle in Amazon S3 with SourceBundle *

*

Omit both SourceBuildInformation and SourceBundle to use the default sample application.

* *

After you create an application version with a specified Amazon S3 bucket and key location, you can't change that Amazon S3 location. If you change the Amazon S3 * location, you receive an exception when you attempt to launch an environment from the application version.

*
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ElasticBeanstalkClient, CreateApplicationVersionCommand } from "@aws-sdk/client-elastic-beanstalk"; // ES Modules import * // const { ElasticBeanstalkClient, CreateApplicationVersionCommand } = require("@aws-sdk/client-elastic-beanstalk"); // CommonJS import * // import type { ElasticBeanstalkClientConfig } from "@aws-sdk/client-elastic-beanstalk"; * const config = {}; // type is ElasticBeanstalkClientConfig * const client = new ElasticBeanstalkClient(config); * const input = { // CreateApplicationVersionMessage * ApplicationName: "STRING_VALUE", // required * VersionLabel: "STRING_VALUE", // required * Description: "STRING_VALUE", * SourceBuildInformation: { // SourceBuildInformation * SourceType: "Git" || "Zip", // required * SourceRepository: "CodeCommit" || "S3", // required * SourceLocation: "STRING_VALUE", // required * }, * SourceBundle: { // S3Location * S3Bucket: "STRING_VALUE", * S3Key: "STRING_VALUE", * }, * BuildConfiguration: { // BuildConfiguration * ArtifactName: "STRING_VALUE", * CodeBuildServiceRole: "STRING_VALUE", // required * ComputeType: "BUILD_GENERAL1_SMALL" || "BUILD_GENERAL1_MEDIUM" || "BUILD_GENERAL1_LARGE", * Image: "STRING_VALUE", // required * TimeoutInMinutes: Number("int"), * }, * AutoCreateApplication: true || false, * Process: true || false, * Tags: [ // Tags * { // Tag * Key: "STRING_VALUE", * Value: "STRING_VALUE", * }, * ], * ImageConfiguration: { // ImageConfiguration * Source: { // ImageSource * Uri: "STRING_VALUE", * }, * Build: { // ImageBuildConfiguration * Type: "docker" || "buildpack", * DockerfileLocation: "STRING_VALUE", * Buildpack: "STRING_VALUE", * Architecture: "amd64" || "arm64", * CodeBuildServiceRole: "STRING_VALUE", * ComputeType: "BUILD_GENERAL1_SMALL" || "BUILD_GENERAL1_MEDIUM" || "BUILD_GENERAL1_LARGE", * TimeoutInMinutes: Number("int"), * }, * }, * }; * const command = new CreateApplicationVersionCommand(input); * const response = await client.send(command); * // { // ApplicationVersionDescriptionMessage * // ApplicationVersion: { // ApplicationVersionDescription * // ApplicationVersionArn: "STRING_VALUE", * // ApplicationName: "STRING_VALUE", * // Description: "STRING_VALUE", * // VersionLabel: "STRING_VALUE", * // SourceBuildInformation: { // SourceBuildInformation * // SourceType: "Git" || "Zip", // required * // SourceRepository: "CodeCommit" || "S3", // required * // SourceLocation: "STRING_VALUE", // required * // }, * // BuildArn: "STRING_VALUE", * // SourceBundle: { // S3Location * // S3Bucket: "STRING_VALUE", * // S3Key: "STRING_VALUE", * // }, * // ImageSource: { // ImageSource * // Uri: "STRING_VALUE", * // }, * // ImageBuildConfiguration: { // ImageBuildConfiguration * // Type: "docker" || "buildpack", * // DockerfileLocation: "STRING_VALUE", * // Buildpack: "STRING_VALUE", * // Architecture: "amd64" || "arm64", * // CodeBuildServiceRole: "STRING_VALUE", * // ComputeType: "BUILD_GENERAL1_SMALL" || "BUILD_GENERAL1_MEDIUM" || "BUILD_GENERAL1_LARGE", * // TimeoutInMinutes: Number("int"), * // }, * // Process: true || false, * // DateCreated: new Date("TIMESTAMP"), * // DateUpdated: new Date("TIMESTAMP"), * // Status: "Processed" || "Unprocessed" || "Failed" || "Processing" || "Building", * // }, * // }; * * ``` * * @param CreateApplicationVersionCommandInput - {@link CreateApplicationVersionCommandInput} * @returns {@link CreateApplicationVersionCommandOutput} * @see {@link CreateApplicationVersionCommandInput} for command's `input` shape. * @see {@link CreateApplicationVersionCommandOutput} for command's `response` shape. * @see {@link ElasticBeanstalkClientResolvedConfig | config} for ElasticBeanstalkClient's `config` shape. * * @throws {@link CodeBuildNotInServiceRegionException} (client fault) *

CodeBuild is not available in the specified region.

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

The specified account does not have sufficient privileges for one or more Amazon Web Services services.

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

The specified S3 bucket does not belong to the S3 region in which the service is * running. The following regions are supported:

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

The specified account has reached its limit of applications.

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

The specified account has reached its limit of application versions.

* * @throws {@link ElasticBeanstalkSyntheticServiceException} *

Base exception class for all service exceptions from ElasticBeanstalk service.

* * * @example To create a new application * ```javascript * // The following operation creates a new version (v1) of an application named my-app: * const input = { * ApplicationName: "my-app", * AutoCreateApplication: true, * Description: "my-app-v1", * Process: true, * SourceBundle: { * S3Bucket: "my-bucket", * S3Key: "sample.war" * }, * VersionLabel: "v1" * }; * const command = new CreateApplicationVersionCommand(input); * const response = await client.send(command); * /* response is * { * ApplicationVersion: { * ApplicationName: "my-app", * DateCreated: "2015-02-03T23:01:25.412Z", * DateUpdated: "2015-02-03T23:01:25.412Z", * Description: "my-app-v1", * SourceBundle: { * S3Bucket: "my-bucket", * S3Key: "sample.war" * }, * VersionLabel: "v1" * } * } * *\/ * ``` * * @public */ export declare class CreateApplicationVersionCommand extends CreateApplicationVersionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateApplicationVersionMessage; output: ApplicationVersionDescriptionMessage; }; sdk: { input: CreateApplicationVersionCommandInput; output: CreateApplicationVersionCommandOutput; }; }; }