Menu
AWS Elastic Beanstalk
API Reference (API Version 2010-12-01)

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.

Constraint: This name must be unique within your account. If the specified name already exists, the action returns an InvalidParameterValue error.

Type: String

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

Required: Yes

Description

Describes the application.

Type: String

Length Constraints: Maximum length of 200.

Required: No

ResourceLifecycleConfig

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

Type: ApplicationResourceLifecycleConfig object

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

Example

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: