import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CreateEnvironmentMessage, EnvironmentDescription } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link CreateEnvironmentCommand}. */ export interface CreateEnvironmentCommandInput extends CreateEnvironmentMessage { } /** * @public * * The output of {@link CreateEnvironmentCommand}. */ export interface CreateEnvironmentCommandOutput extends EnvironmentDescription, __MetadataBearer { } declare const CreateEnvironmentCommand_base: { new (input: CreateEnvironmentCommandInput): import("@smithy/core/client").CommandImpl; new (input: CreateEnvironmentCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Launches an Elastic Beanstalk environment for the specified application using the specified configuration.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ElasticBeanstalkClient, CreateEnvironmentCommand } from "@aws-sdk/client-elastic-beanstalk"; // ES Modules import * // const { ElasticBeanstalkClient, CreateEnvironmentCommand } = 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 = { // CreateEnvironmentMessage * ApplicationName: "STRING_VALUE", // required * EnvironmentName: "STRING_VALUE", * GroupName: "STRING_VALUE", * Description: "STRING_VALUE", * CNAMEPrefix: "STRING_VALUE", * Tier: { // EnvironmentTier * Name: "STRING_VALUE", * Type: "STRING_VALUE", * Version: "STRING_VALUE", * }, * Tags: [ // Tags * { // Tag * Key: "STRING_VALUE", * Value: "STRING_VALUE", * }, * ], * VersionLabel: "STRING_VALUE", * TemplateName: "STRING_VALUE", * SolutionStackName: "STRING_VALUE", * PlatformArn: "STRING_VALUE", * OptionSettings: [ // ConfigurationOptionSettingsList * { // ConfigurationOptionSetting * ResourceName: "STRING_VALUE", * Namespace: "STRING_VALUE", * OptionName: "STRING_VALUE", * Value: "STRING_VALUE", * }, * ], * OptionsToRemove: [ // OptionsSpecifierList * { // OptionSpecification * ResourceName: "STRING_VALUE", * Namespace: "STRING_VALUE", * OptionName: "STRING_VALUE", * }, * ], * OperationsRole: "STRING_VALUE", * }; * const command = new CreateEnvironmentCommand(input); * const response = await client.send(command); * // { // EnvironmentDescription * // EnvironmentName: "STRING_VALUE", * // EnvironmentId: "STRING_VALUE", * // ApplicationName: "STRING_VALUE", * // VersionLabel: "STRING_VALUE", * // SolutionStackName: "STRING_VALUE", * // PlatformArn: "STRING_VALUE", * // TemplateName: "STRING_VALUE", * // Description: "STRING_VALUE", * // EndpointURL: "STRING_VALUE", * // CNAME: "STRING_VALUE", * // DateCreated: new Date("TIMESTAMP"), * // DateUpdated: new Date("TIMESTAMP"), * // Status: "Aborting" || "Launching" || "Updating" || "LinkingFrom" || "LinkingTo" || "Ready" || "Terminating" || "Terminated", * // AbortableOperationInProgress: true || false, * // Health: "Green" || "Yellow" || "Red" || "Grey", * // HealthStatus: "NoData" || "Unknown" || "Pending" || "Ok" || "Info" || "Warning" || "Degraded" || "Severe" || "Suspended", * // Resources: { // EnvironmentResourcesDescription * // LoadBalancer: { // LoadBalancerDescription * // LoadBalancerName: "STRING_VALUE", * // Domain: "STRING_VALUE", * // Listeners: [ // LoadBalancerListenersDescription * // { // Listener * // Protocol: "STRING_VALUE", * // Port: Number("int"), * // }, * // ], * // }, * // }, * // Tier: { // EnvironmentTier * // Name: "STRING_VALUE", * // Type: "STRING_VALUE", * // Version: "STRING_VALUE", * // }, * // EnvironmentLinks: [ // EnvironmentLinks * // { // EnvironmentLink * // LinkName: "STRING_VALUE", * // EnvironmentName: "STRING_VALUE", * // }, * // ], * // EnvironmentArn: "STRING_VALUE", * // OperationsRole: "STRING_VALUE", * // }; * * ``` * * @param CreateEnvironmentCommandInput - {@link CreateEnvironmentCommandInput} * @returns {@link CreateEnvironmentCommandOutput} * @see {@link CreateEnvironmentCommandInput} for command's `input` shape. * @see {@link CreateEnvironmentCommandOutput} for command's `response` shape. * @see {@link ElasticBeanstalkClientResolvedConfig | config} for ElasticBeanstalkClient's `config` shape. * * @throws {@link InsufficientPrivilegesException} (client fault) *

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

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

The specified account has reached its limit of environments.

* * @throws {@link ElasticBeanstalkSyntheticServiceException} *

Base exception class for all service exceptions from ElasticBeanstalk service.

* * * @example To create a new environment for an application * ```javascript * // The following operation creates a new environment for version v1 of a java application named my-app: * const input = { * ApplicationName: "my-app", * CNAMEPrefix: "my-app", * EnvironmentName: "my-env", * SolutionStackName: "64bit Amazon Linux 2015.03 v2.0.0 running Tomcat 8 Java 8", * VersionLabel: "v1" * }; * const command = new CreateEnvironmentCommand(input); * const response = await client.send(command); * /* response is * { * ApplicationName: "my-app", * CNAME: "my-app.elasticbeanstalk.com", * DateCreated: "2015-02-03T23:04:54.479Z", * DateUpdated: "2015-02-03T23:04:54.479Z", * EnvironmentId: "e-izqpassy4h", * EnvironmentName: "my-env", * Health: "Grey", * SolutionStackName: "64bit Amazon Linux 2015.03 v2.0.0 running Tomcat 8 Java 8", * Status: "Launching", * Tier: { * Name: "WebServer", * Type: "Standard", * Version: " " * }, * VersionLabel: "v1" * } * *\/ * ``` * * @public */ export declare class CreateEnvironmentCommand extends CreateEnvironmentCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateEnvironmentMessage; output: EnvironmentDescription; }; sdk: { input: CreateEnvironmentCommandInput; output: CreateEnvironmentCommandOutput; }; }; }