CreateApplication - AWS Elastic Beanstalk

CreateApplication

Creates an application that has one configuration template named default and no application versions.

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

ApplicationName

The name of the application. Must be unique within your account.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 100.

Required: Yes

Description

Your description of the application.

Type: String

Length Constraints: Maximum length of 200.

Required: No

ResourceLifecycleConfig

Specifies an application resource lifecycle configuration to prevent your application from accumulating too many versions.

Type: ApplicationResourceLifecycleConfig object

Required: No

Tags.member.N

Specifies the tags applied to the application.

Elastic Beanstalk applies these tags only to the application. Environments that you create in the application don't inherit the tags.

Type: Array of Tag objects

Required: No

Response Elements

The following element is returned by the service.

Application

The ApplicationDescription of the application.

Type: ApplicationDescription object

Errors

For information about the errors that are common to all actions, see Common Errors.

TooManyApplications

The specified account has reached its limit of applications.

HTTP Status Code: 400

Examples

Example

This example illustrates one usage of CreateApplication.

Sample Request

https://elasticbeanstalk.us-west-2.amazonaws.com/?ApplicationName=SampleApp &Description=Sample%20Description &Operation=CreateApplication &AuthParams

Sample Response

<CreateApplicationResponse xmlns="https://elasticbeanstalk.amazonaws.com/docs/2010-12-01/"> <CreateApplicationResult> <Application> <Versions/> <Description>Sample Description</Description> <ApplicationName>SampleApp</ApplicationName> <DateCreated>2010-11-16T23:09:20.256Z</DateCreated> <DateUpdated>2010-11-16T23:09:20.256Z</DateUpdated> <ConfigurationTemplates> <member>Default</member> </ConfigurationTemplates> </Application> </CreateApplicationResult> <ResponseMetadata> <RequestId>8b00e053-f1d6-11df-8a78-9f77047e0d0c</RequestId> </ResponseMetadata> </CreateApplicationResponse>

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: