AWS Elastic Beanstalk

2015/05/07 - AWS Elastic Beanstalk - 30 new api methods

DeleteEnvironmentConfiguration (new) Link ¶

Deletes the draft configuration associated with the running environment.

Updating a running environment with any configuration changes creates a draft configuration set. You can get the draft configuration using DescribeConfigurationSettings while the update is in progress or if the update fails. The DeploymentStatus for the draft configuration indicates whether the deployment is in process or has failed. The draft configuration remains in existence until it is deleted with this action.

Request Syntax

client.delete_environment_configuration(
    ApplicationName='string',
    EnvironmentName='string'
)
type ApplicationName:

string

param ApplicationName:

[REQUIRED]

The name of the application the environment is associated with.

type EnvironmentName:

string

param EnvironmentName:

[REQUIRED]

The name of the environment to delete the draft configuration from.

returns:

None

UpdateConfigurationTemplate (new) Link ¶

Updates the specified configuration template to have the specified properties or configuration option values.

Related Topics

  • DescribeConfigurationOptions

Request Syntax

client.update_configuration_template(
    ApplicationName='string',
    TemplateName='string',
    Description='string',
    OptionSettings=[
        {
            'Namespace': 'string',
            'OptionName': 'string',
            'Value': 'string'
        },
    ],
    OptionsToRemove=[
        {
            'Namespace': 'string',
            'OptionName': 'string'
        },
    ]
)
type ApplicationName:

string

param ApplicationName:

[REQUIRED]

The name of the application associated with the configuration template to update.

If no application is found with this name, UpdateConfigurationTemplate returns an InvalidParameterValue error.

type TemplateName:

string

param TemplateName:

[REQUIRED]

The name of the configuration template to update.

If no configuration template is found with this name, UpdateConfigurationTemplate returns an InvalidParameterValue error.

type Description:

string

param Description:

A new description for the configuration.

type OptionSettings:

list

param OptionSettings:

A list of configuration option settings to update with the new specified option value.

  • (dict) --

    A specification identifying an individual configuration option along with its current value. For a list of possible option values, go to Option Values in the AWS Elastic Beanstalk Developer Guide.

    • Namespace (string) --

      A unique namespace identifying the option's associated AWS resource.

    • OptionName (string) --

      The name of the configuration option.

    • Value (string) --

      The current value for the configuration option.

type OptionsToRemove:

list

param OptionsToRemove:

A list of configuration options to remove from the configuration set.

Constraint: You can remove only UserDefined configuration options.

  • (dict) --

    A specification identifying an individual configuration option.

    • Namespace (string) --

      A unique namespace identifying the option's associated AWS resource.

    • OptionName (string) --

      The name of the configuration option.

rtype:

dict

returns:

Response Syntax

{
    'SolutionStackName': 'string',
    'ApplicationName': 'string',
    'TemplateName': 'string',
    'Description': 'string',
    'EnvironmentName': 'string',
    'DeploymentStatus': 'deployed'|'pending'|'failed',
    'DateCreated': datetime(2015, 1, 1),
    'DateUpdated': datetime(2015, 1, 1),
    'OptionSettings': [
        {
            'Namespace': 'string',
            'OptionName': 'string',
            'Value': 'string'
        },
    ]
}

Response Structure

  • (dict) --

    Describes the settings for a configuration set.

    • SolutionStackName (string) --

      The name of the solution stack this configuration set uses.

    • ApplicationName (string) --

      The name of the application associated with this configuration set.

    • TemplateName (string) --

      If not null, the name of the configuration template for this configuration set.

    • Description (string) --

      Describes this configuration set.

    • EnvironmentName (string) --

      If not null, the name of the environment for this configuration set.

    • DeploymentStatus (string) --

      If this configuration set is associated with an environment, the DeploymentStatus parameter indicates the deployment status of this configuration set:

      null: This configuration is not associated with a running environment.

      pending: This is a draft configuration that is not deployed to the associated environment but is in the process of deploying.

      deployed: This is the configuration that is currently deployed to the associated running environment.

      failed: This is a draft configuration, that failed to successfully deploy.

      • null: This configuration is not associated with a running environment.

      • pending: This is a draft configuration that is not deployed to the associated environment but is in the process of deploying.

      • deployed: This is the configuration that is currently deployed to the associated running environment.

      • failed: This is a draft configuration that failed to successfully deploy.

    • DateCreated (datetime) --

      The date (in UTC time) when this configuration set was created.

    • DateUpdated (datetime) --

      The date (in UTC time) when this configuration set was last modified.

    • OptionSettings (list) --

      A list of the configuration options and their values in this configuration set.

      • (dict) --

        A specification identifying an individual configuration option along with its current value. For a list of possible option values, go to Option Values in the AWS Elastic Beanstalk Developer Guide.

        • Namespace (string) --

          A unique namespace identifying the option's associated AWS resource.

        • OptionName (string) --

          The name of the configuration option.

        • Value (string) --

          The current value for the configuration option.

RequestEnvironmentInfo (new) Link ¶

Initiates a request to compile the specified type of information of the deployed environment.

Setting the InfoType to tail compiles the last lines from the application server log files of every Amazon EC2 instance in your environment.

Setting the InfoType to bundle compresses the application server log files for every Amazon EC2 instance into a .zip file. Legacy and .NET containers do not support bundle logs.

Use RetrieveEnvironmentInfo to obtain the set of logs.

Related Topics

  • RetrieveEnvironmentInfo

Request Syntax

client.request_environment_info(
    EnvironmentId='string',
    EnvironmentName='string',
    InfoType='tail'|'bundle'
)
type EnvironmentId:

string

param EnvironmentId:

The ID of the environment of the requested data.

If no such environment is found, RequestEnvironmentInfo returns an InvalidParameterValue error.

Condition: You must specify either this or an EnvironmentName, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error.

type EnvironmentName:

string

param EnvironmentName:

The name of the environment of the requested data.

If no such environment is found, RequestEnvironmentInfo returns an InvalidParameterValue error.

Condition: You must specify either this or an EnvironmentId, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error.

type InfoType:

string

param InfoType:

[REQUIRED]

The type of information to request.

returns:

None

CheckDNSAvailability (new) Link ¶

Checks if the specified CNAME is available.

Request Syntax

client.check_dns_availability(
    CNAMEPrefix='string'
)
type CNAMEPrefix:

string

param CNAMEPrefix:

[REQUIRED]

The prefix used when this CNAME is reserved.

rtype:

dict

returns:

Response Syntax

{
    'Available': True|False,
    'FullyQualifiedCNAME': 'string'
}

Response Structure

  • (dict) --

    Indicates if the specified CNAME is available.

    • Available (boolean) --

      Indicates if the specified CNAME is available:

      true : The CNAME is available.

      true : The CNAME is not available.

      • true : The CNAME is available.

      • false : The CNAME is not available.

    • FullyQualifiedCNAME (string) --

      The fully qualified CNAME to reserve when CreateEnvironment is called with the provided prefix.

TerminateEnvironment (new) Link ¶

Terminates the specified environment.

Request Syntax

client.terminate_environment(
    EnvironmentId='string',
    EnvironmentName='string',
    TerminateResources=True|False
)
type EnvironmentId:

string

param EnvironmentId:

The ID of the environment to terminate.

Condition: You must specify either this or an EnvironmentName, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error.

type EnvironmentName:

string

param EnvironmentName:

The name of the environment to terminate.

Condition: You must specify either this or an EnvironmentId, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error.

type TerminateResources:

boolean

param TerminateResources:

Indicates whether the associated AWS resources should shut down when the environment is terminated:

true: (default) The user AWS resources (for example, the Auto Scaling group, LoadBalancer, etc.) are terminated along with the environment.

false: The environment is removed from the AWS Elastic Beanstalk but the AWS resources continue to operate.

  • true: The specified environment as well as the associated AWS resources, such as Auto Scaling group and LoadBalancer, are terminated.

  • false: AWS Elastic Beanstalk resource management is removed from the environment, but the AWS resources continue to operate.

For more information, see the AWS Elastic Beanstalk User Guide.

Default: true

Valid Values: true | false

rtype:

dict

returns:

Response Syntax

{
    'EnvironmentName': 'string',
    'EnvironmentId': 'string',
    'ApplicationName': 'string',
    'VersionLabel': 'string',
    'SolutionStackName': 'string',
    'TemplateName': 'string',
    'Description': 'string',
    'EndpointURL': 'string',
    'CNAME': 'string',
    'DateCreated': datetime(2015, 1, 1),
    'DateUpdated': datetime(2015, 1, 1),
    'Status': 'Launching'|'Updating'|'Ready'|'Terminating'|'Terminated',
    'AbortableOperationInProgress': True|False,
    'Health': 'Green'|'Yellow'|'Red'|'Grey',
    'Resources': {
        'LoadBalancer': {
            'LoadBalancerName': 'string',
            'Domain': 'string',
            'Listeners': [
                {
                    'Protocol': 'string',
                    'Port': 123
                },
            ]
        }
    },
    'Tier': {
        'Name': 'string',
        'Type': 'string',
        'Version': 'string'
    }
}

Response Structure

  • (dict) --

    Describes the properties of an environment.

    • EnvironmentName (string) --

      The name of this environment.

    • EnvironmentId (string) --

      The ID of this environment.

    • ApplicationName (string) --

      The name of the application associated with this environment.

    • VersionLabel (string) --

      The application version deployed in this environment.

    • SolutionStackName (string) --

      The name of the SolutionStack deployed with this environment.

    • TemplateName (string) --

      The name of the configuration template used to originally launch this environment.

    • Description (string) --

      Describes this environment.

    • EndpointURL (string) --

      For load-balanced, autoscaling environments, the URL to the LoadBalancer. For single-instance environments, the IP address of the instance.

    • CNAME (string) --

      The URL to the CNAME for this environment.

    • DateCreated (datetime) --

      The creation date for this environment.

    • DateUpdated (datetime) --

      The last modified date for this environment.

    • Status (string) --

      The current operational status of the environment:

      • Launching: Environment is in the process of initial deployment.

      • Updating: Environment is in the process of updating its configuration settings or application version.

      • Ready: Environment is available to have an action performed on it, such as update or terminate.

      • Terminating: Environment is in the shut-down process.

      • Terminated: Environment is not running.

    • AbortableOperationInProgress (boolean) --

      Lists in-progress environment updates and application version deployments that you can cancel.

    • Health (string) --

      Describes the health status of the environment. AWS Elastic Beanstalk indicates the failure levels for a running environment:

      Red : Indicates the environment is not working.

      Yellow: Indicates that something is wrong, the application might not be available, but the instances appear running.

      Green: Indicates the environment is healthy and fully functional.

      • Red: Indicates the environment is not responsive. Occurs when three or more consecutive failures occur for an environment.

      • Yellow: Indicates that something is wrong. Occurs when two consecutive failures occur for an environment.

      • Green: Indicates the environment is healthy and fully functional.

      • Grey: Default health for a new environment. The environment is not fully launched and health checks have not started or health checks are suspended during an UpdateEnvironment or RestartEnvironement request.

      Default: Grey

    • Resources (dict) --

      The description of the AWS resources used by this environment.

      • LoadBalancer (dict) --

        Describes the LoadBalancer.

        • LoadBalancerName (string) --

          The name of the LoadBalancer.

        • Domain (string) --

          The domain name of the LoadBalancer.

        • Listeners (list) --

          A list of Listeners used by the LoadBalancer.

          • (dict) --

            Describes the properties of a Listener for the LoadBalancer.

            • Protocol (string) --

              The protocol that is used by the Listener.

            • Port (integer) --

              The port that is used by the Listener.

    • Tier (dict) --

      Describes the current tier of this environment.

      • Name (string) --

        The name of this environment tier.

      • Type (string) --

        The type of this environment tier.

      • Version (string) --

        The version of this environment tier.

DeleteConfigurationTemplate (new) Link ¶

Deletes the specified configuration template.

Request Syntax

client.delete_configuration_template(
    ApplicationName='string',
    TemplateName='string'
)
type ApplicationName:

string

param ApplicationName:

[REQUIRED]

The name of the application to delete the configuration template from.

type TemplateName:

string

param TemplateName:

[REQUIRED]

The name of the configuration template to delete.

returns:

None

CreateConfigurationTemplate (new) Link ¶

Creates a configuration template. Templates are associated with a specific application and are used to deploy different versions of the application with the same configuration settings.

Related Topics

  • DescribeConfigurationOptions

  • DescribeConfigurationSettings

  • ListAvailableSolutionStacks

Request Syntax

client.create_configuration_template(
    ApplicationName='string',
    TemplateName='string',
    SolutionStackName='string',
    SourceConfiguration={
        'ApplicationName': 'string',
        'TemplateName': 'string'
    },
    EnvironmentId='string',
    Description='string',
    OptionSettings=[
        {
            'Namespace': 'string',
            'OptionName': 'string',
            'Value': 'string'
        },
    ]
)
type ApplicationName:

string

param ApplicationName:

[REQUIRED]

The name of the application to associate with this configuration template. If no application is found with this name, AWS Elastic Beanstalk returns an InvalidParameterValue error.

type TemplateName:

string

param TemplateName:

[REQUIRED]

The name of the configuration template.

Constraint: This name must be unique per application.

Default: If a configuration template already exists with this name, AWS Elastic Beanstalk returns an InvalidParameterValue error.

type SolutionStackName:

string

param SolutionStackName:

The name of the solution stack used by this configuration. The solution stack specifies the operating system, architecture, and application server for a configuration template. It determines the set of configuration options as well as the possible and default values.

Use ListAvailableSolutionStacks to obtain a list of available solution stacks.

A solution stack name or a source configuration parameter must be specified, otherwise AWS Elastic Beanstalk returns an InvalidParameterValue error.

If a solution stack name is not specified and the source configuration parameter is specified, AWS Elastic Beanstalk uses the same solution stack as the source configuration template.

type SourceConfiguration:

dict

param SourceConfiguration:

If specified, AWS Elastic Beanstalk uses the configuration values from the specified configuration template to create a new configuration.

Values specified in the OptionSettings parameter of this call overrides any values obtained from the SourceConfiguration.

If no configuration template is found, returns an InvalidParameterValue error.

Constraint: If both the solution stack name parameter and the source configuration parameters are specified, the solution stack of the source configuration template must match the specified solution stack name or else AWS Elastic Beanstalk returns an InvalidParameterCombination error.

  • ApplicationName (string) --

    The name of the application associated with the configuration.

  • TemplateName (string) --

    The name of the configuration template.

type EnvironmentId:

string

param EnvironmentId:

The ID of the environment used with this configuration template.

type Description:

string

param Description:

Describes this configuration.

type OptionSettings:

list

param OptionSettings:

If specified, AWS Elastic Beanstalk sets the specified configuration option to the requested value. The new value overrides the value obtained from the solution stack or the source configuration template.

  • (dict) --

    A specification identifying an individual configuration option along with its current value. For a list of possible option values, go to Option Values in the AWS Elastic Beanstalk Developer Guide.

    • Namespace (string) --

      A unique namespace identifying the option's associated AWS resource.

    • OptionName (string) --

      The name of the configuration option.

    • Value (string) --

      The current value for the configuration option.

rtype:

dict

returns:

Response Syntax

{
    'SolutionStackName': 'string',
    'ApplicationName': 'string',
    'TemplateName': 'string',
    'Description': 'string',
    'EnvironmentName': 'string',
    'DeploymentStatus': 'deployed'|'pending'|'failed',
    'DateCreated': datetime(2015, 1, 1),
    'DateUpdated': datetime(2015, 1, 1),
    'OptionSettings': [
        {
            'Namespace': 'string',
            'OptionName': 'string',
            'Value': 'string'
        },
    ]
}

Response Structure

  • (dict) --

    Describes the settings for a configuration set.

    • SolutionStackName (string) --

      The name of the solution stack this configuration set uses.

    • ApplicationName (string) --

      The name of the application associated with this configuration set.

    • TemplateName (string) --

      If not null, the name of the configuration template for this configuration set.

    • Description (string) --

      Describes this configuration set.

    • EnvironmentName (string) --

      If not null, the name of the environment for this configuration set.

    • DeploymentStatus (string) --

      If this configuration set is associated with an environment, the DeploymentStatus parameter indicates the deployment status of this configuration set:

      null: This configuration is not associated with a running environment.

      pending: This is a draft configuration that is not deployed to the associated environment but is in the process of deploying.

      deployed: This is the configuration that is currently deployed to the associated running environment.

      failed: This is a draft configuration, that failed to successfully deploy.

      • null: This configuration is not associated with a running environment.

      • pending: This is a draft configuration that is not deployed to the associated environment but is in the process of deploying.

      • deployed: This is the configuration that is currently deployed to the associated running environment.

      • failed: This is a draft configuration that failed to successfully deploy.

    • DateCreated (datetime) --

      The date (in UTC time) when this configuration set was created.

    • DateUpdated (datetime) --

      The date (in UTC time) when this configuration set was last modified.

    • OptionSettings (list) --

      A list of the configuration options and their values in this configuration set.

      • (dict) --

        A specification identifying an individual configuration option along with its current value. For a list of possible option values, go to Option Values in the AWS Elastic Beanstalk Developer Guide.

        • Namespace (string) --

          A unique namespace identifying the option's associated AWS resource.

        • OptionName (string) --

          The name of the configuration option.

        • Value (string) --

          The current value for the configuration option.

DescribeEvents (new) Link ¶

Returns list of event descriptions matching criteria up to the last 6 weeks.

Request Syntax

client.describe_events(
    ApplicationName='string',
    VersionLabel='string',
    TemplateName='string',
    EnvironmentId='string',
    EnvironmentName='string',
    RequestId='string',
    Severity='TRACE'|'DEBUG'|'INFO'|'WARN'|'ERROR'|'FATAL',
    StartTime=datetime(2015, 1, 1),
    EndTime=datetime(2015, 1, 1),
    MaxRecords=123,
    NextToken='string'
)
type ApplicationName:

string

param ApplicationName:

If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those associated with this application.

type VersionLabel:

string

param VersionLabel:

If specified, AWS Elastic Beanstalk restricts the returned descriptions to those associated with this application version.

type TemplateName:

string

param TemplateName:

If specified, AWS Elastic Beanstalk restricts the returned descriptions to those that are associated with this environment configuration.

type EnvironmentId:

string

param EnvironmentId:

If specified, AWS Elastic Beanstalk restricts the returned descriptions to those associated with this environment.

type EnvironmentName:

string

param EnvironmentName:

If specified, AWS Elastic Beanstalk restricts the returned descriptions to those associated with this environment.

type RequestId:

string

param RequestId:

If specified, AWS Elastic Beanstalk restricts the described events to include only those associated with this request ID.

type Severity:

string

param Severity:

If specified, limits the events returned from this call to include only those with the specified severity or higher.

type StartTime:

datetime

param StartTime:

If specified, AWS Elastic Beanstalk restricts the returned descriptions to those that occur on or after this time.

type EndTime:

datetime

param EndTime:

If specified, AWS Elastic Beanstalk restricts the returned descriptions to those that occur up to, but not including, the EndTime.

type MaxRecords:

integer

param MaxRecords:

Specifies the maximum number of events that can be returned, beginning with the most recent event.

type NextToken:

string

param NextToken:

Pagination token. If specified, the events return the next batch of results.

rtype:

dict

returns:

Response Syntax

{
    'Events': [
        {
            'EventDate': datetime(2015, 1, 1),
            'Message': 'string',
            'ApplicationName': 'string',
            'VersionLabel': 'string',
            'TemplateName': 'string',
            'EnvironmentName': 'string',
            'RequestId': 'string',
            'Severity': 'TRACE'|'DEBUG'|'INFO'|'WARN'|'ERROR'|'FATAL'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    Result message wrapping a list of event descriptions.

    • Events (list) --

      A list of EventDescription.

      • (dict) --

        Describes an event.

        • EventDate (datetime) --

          The date when the event occurred.

        • Message (string) --

          The event message.

        • ApplicationName (string) --

          The application associated with the event.

        • VersionLabel (string) --

          The release label for the application version associated with this event.

        • TemplateName (string) --

          The name of the configuration associated with this event.

        • EnvironmentName (string) --

          The name of the environment associated with this event.

        • RequestId (string) --

          The web service request ID for the activity of this event.

        • Severity (string) --

          The severity level of this event.

    • NextToken (string) --

      If returned, this indicates that there are more results to obtain. Use this token in the next DescribeEvents call to get the next batch of events.

DescribeApplications (new) Link ¶

Returns the descriptions of existing applications.

Request Syntax

client.describe_applications(
    ApplicationNames=[
        'string',
    ]
)
type ApplicationNames:

list

param ApplicationNames:

If specified, AWS Elastic Beanstalk restricts the returned descriptions to only include those with the specified names.

  • (string) --

rtype:

dict

returns:

Response Syntax

{
    'Applications': [
        {
            'ApplicationName': 'string',
            'Description': 'string',
            'DateCreated': datetime(2015, 1, 1),
            'DateUpdated': datetime(2015, 1, 1),
            'Versions': [
                'string',
            ],
            'ConfigurationTemplates': [
                'string',
            ]
        },
    ]
}

Response Structure

  • (dict) --

    Result message containing a list of application descriptions.

    • Applications (list) --

      This parameter contains a list of ApplicationDescription.

      • (dict) --

        Describes the properties of an application.

        • ApplicationName (string) --

          The name of the application.

        • Description (string) --

          User-defined description of the application.

        • DateCreated (datetime) --

          The date when the application was created.

        • DateUpdated (datetime) --

          The date when the application was last modified.

        • Versions (list) --

          The names of the versions for this application.

          • (string) --

        • ConfigurationTemplates (list) --

          The names of the configuration templates associated with this application.

          • (string) --

ValidateConfigurationSettings (new) Link ¶

Takes a set of configuration settings and either a configuration template or environment, and determines whether those values are valid.

This action returns a list of messages indicating any errors or warnings associated with the selection of option values.

Request Syntax

client.validate_configuration_settings(
    ApplicationName='string',
    TemplateName='string',
    EnvironmentName='string',
    OptionSettings=[
        {
            'Namespace': 'string',
            'OptionName': 'string',
            'Value': 'string'
        },
    ]
)
type ApplicationName:

string

param ApplicationName:

[REQUIRED]

The name of the application that the configuration template or environment belongs to.

type TemplateName:

string

param TemplateName:

The name of the configuration template to validate the settings against.

Condition: You cannot specify both this and an environment name.

type EnvironmentName:

string

param EnvironmentName:

The name of the environment to validate the settings against.

Condition: You cannot specify both this and a configuration template name.

type OptionSettings:

list

param OptionSettings:

[REQUIRED]

A list of the options and desired values to evaluate.

  • (dict) --

    A specification identifying an individual configuration option along with its current value. For a list of possible option values, go to Option Values in the AWS Elastic Beanstalk Developer Guide.

    • Namespace (string) --

      A unique namespace identifying the option's associated AWS resource.

    • OptionName (string) --

      The name of the configuration option.

    • Value (string) --

      The current value for the configuration option.

rtype:

dict

returns:

Response Syntax

{
    'Messages': [
        {
            'Message': 'string',
            'Severity': 'error'|'warning',
            'Namespace': 'string',
            'OptionName': 'string'
        },
    ]
}

Response Structure

  • (dict) --

    Provides a list of validation messages.

    • Messages (list) --

      A list of ValidationMessage.

      • (dict) --

        An error or warning for a desired configuration option value.

        • Message (string) --

          A message describing the error or warning.

        • Severity (string) --

          An indication of the severity of this message:

          error: This message indicates that this is not a valid setting for an option.

          warning: This message is providing information you should take into account.

          • error: This message indicates that this is not a valid setting for an option.

          • warning: This message is providing information you should take into account.

        • Namespace (string) --

        • OptionName (string) --

UpdateApplication (new) Link ¶

Updates the specified application to have the specified properties.

Request Syntax

client.update_application(
    ApplicationName='string',
    Description='string'
)
type ApplicationName:

string

param ApplicationName:

[REQUIRED]

The name of the application to update. If no such application is found, UpdateApplication returns an InvalidParameterValue error.

type Description:

string

param Description:

A new description for the application.

Default: If not specified, AWS Elastic Beanstalk does not update the description.

rtype:

dict

returns:

Response Syntax

{
    'Application': {
        'ApplicationName': 'string',
        'Description': 'string',
        'DateCreated': datetime(2015, 1, 1),
        'DateUpdated': datetime(2015, 1, 1),
        'Versions': [
            'string',
        ],
        'ConfigurationTemplates': [
            'string',
        ]
    }
}

Response Structure

  • (dict) --

    Result message containing a single description of an application.

    • Application (dict) --

      The ApplicationDescription of the application.

      • ApplicationName (string) --

        The name of the application.

      • Description (string) --

        User-defined description of the application.

      • DateCreated (datetime) --

        The date when the application was created.

      • DateUpdated (datetime) --

        The date when the application was last modified.

      • Versions (list) --

        The names of the versions for this application.

        • (string) --

      • ConfigurationTemplates (list) --

        The names of the configuration templates associated with this application.

        • (string) --

DescribeApplicationVersions (new) Link ¶

Returns descriptions for existing application versions.

Request Syntax

client.describe_application_versions(
    ApplicationName='string',
    VersionLabels=[
        'string',
    ]
)
type ApplicationName:

string

param ApplicationName:

If specified, AWS Elastic Beanstalk restricts the returned descriptions to only include ones that are associated with the specified application.

type VersionLabels:

list

param VersionLabels:

If specified, restricts the returned descriptions to only include ones that have the specified version labels.

  • (string) --

rtype:

dict

returns:

Response Syntax

{
    'ApplicationVersions': [
        {
            'ApplicationName': 'string',
            'Description': 'string',
            'VersionLabel': 'string',
            'SourceBundle': {
                'S3Bucket': 'string',
                'S3Key': 'string'
            },
            'DateCreated': datetime(2015, 1, 1),
            'DateUpdated': datetime(2015, 1, 1)
        },
    ]
}

Response Structure

  • (dict) --

    Result message wrapping a list of application version descriptions.

    • ApplicationVersions (list) --

      A list of ApplicationVersionDescription .

      • (dict) --

        Describes the properties of an application version.

        • ApplicationName (string) --

          The name of the application associated with this release.

        • Description (string) --

          The description of this application version.

        • VersionLabel (string) --

          A label uniquely identifying the version for the associated application.

        • SourceBundle (dict) --

          The location where the source bundle is located for this version.

          • S3Bucket (string) --

            The Amazon S3 bucket where the data is located.

          • S3Key (string) --

            The Amazon S3 key where the data is located.

        • DateCreated (datetime) --

          The creation date of the application version.

        • DateUpdated (datetime) --

          The last modified date of the application version.

DeleteApplication (new) Link ¶

Deletes the specified application along with all associated versions and configurations. The application versions will not be deleted from your Amazon S3 bucket.

Request Syntax

client.delete_application(
    ApplicationName='string',
    TerminateEnvByForce=True|False
)
type ApplicationName:

string

param ApplicationName:

[REQUIRED]

The name of the application to delete.

type TerminateEnvByForce:

boolean

param TerminateEnvByForce:

When set to true, running environments will be terminated before deleting the application.

returns:

None

RetrieveEnvironmentInfo (new) Link ¶

Retrieves the compiled information from a RequestEnvironmentInfo request.

Related Topics

  • RequestEnvironmentInfo

Request Syntax

client.retrieve_environment_info(
    EnvironmentId='string',
    EnvironmentName='string',
    InfoType='tail'|'bundle'
)
type EnvironmentId:

string

param EnvironmentId:

The ID of the data's environment.

If no such environment is found, returns an InvalidParameterValue error.

Condition: You must specify either this or an EnvironmentName, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error.

type EnvironmentName:

string

param EnvironmentName:

The name of the data's environment.

If no such environment is found, returns an InvalidParameterValue error.

Condition: You must specify either this or an EnvironmentId, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error.

type InfoType:

string

param InfoType:

[REQUIRED]

The type of information to retrieve.

rtype:

dict

returns:

Response Syntax

{
    'EnvironmentInfo': [
        {
            'InfoType': 'tail'|'bundle',
            'Ec2InstanceId': 'string',
            'SampleTimestamp': datetime(2015, 1, 1),
            'Message': 'string'
        },
    ]
}

Response Structure

  • (dict) --

    Result message containing a description of the requested environment info.

    • EnvironmentInfo (list) --

      The EnvironmentInfoDescription of the environment.

      • (dict) --

        The information retrieved from the Amazon EC2 instances.

        • InfoType (string) --

          The type of information retrieved.

        • Ec2InstanceId (string) --

          The Amazon EC2 Instance ID for this information.

        • SampleTimestamp (datetime) --

          The time stamp when this information was retrieved.

        • Message (string) --

          The retrieved information.

SwapEnvironmentCNAMEs (new) Link ¶

Swaps the CNAMEs of two environments.

Request Syntax

client.swap_environment_cnames(
    SourceEnvironmentId='string',
    SourceEnvironmentName='string',
    DestinationEnvironmentId='string',
    DestinationEnvironmentName='string'
)
type SourceEnvironmentId:

string

param SourceEnvironmentId:

The ID of the source environment.

Condition: You must specify at least the SourceEnvironmentID or the SourceEnvironmentName. You may also specify both. If you specify the SourceEnvironmentId, you must specify the DestinationEnvironmentId.

type SourceEnvironmentName:

string

param SourceEnvironmentName:

The name of the source environment.

Condition: You must specify at least the SourceEnvironmentID or the SourceEnvironmentName. You may also specify both. If you specify the SourceEnvironmentName, you must specify the DestinationEnvironmentName.

type DestinationEnvironmentId:

string

param DestinationEnvironmentId:

The ID of the destination environment.

Condition: You must specify at least the DestinationEnvironmentID or the DestinationEnvironmentName. You may also specify both. You must specify the SourceEnvironmentId with the DestinationEnvironmentId.

type DestinationEnvironmentName:

string

param DestinationEnvironmentName:

The name of the destination environment.

Condition: You must specify at least the DestinationEnvironmentID or the DestinationEnvironmentName. You may also specify both. You must specify the SourceEnvironmentName with the DestinationEnvironmentName.

returns:

None

CreateApplicationVersion (new) Link ¶

Creates an application version for the specified application.

Request Syntax

client.create_application_version(
    ApplicationName='string',
    VersionLabel='string',
    Description='string',
    SourceBundle={
        'S3Bucket': 'string',
        'S3Key': 'string'
    },
    AutoCreateApplication=True|False
)
type ApplicationName:

string

param ApplicationName:

[REQUIRED]

The name of the application. If no application is found with this name, and AutoCreateApplication is false, returns an InvalidParameterValue error.

type VersionLabel:

string

param VersionLabel:

[REQUIRED]

A label identifying this version.

Constraint: Must be unique per application. If an application version already exists with this label for the specified application, AWS Elastic Beanstalk returns an InvalidParameterValue error.

type Description:

string

param Description:

Describes this version.

type SourceBundle:

dict

param SourceBundle:

The Amazon S3 bucket and key that identify the location of the source bundle for this version.

If data found at the Amazon S3 location exceeds the maximum allowed source bundle size, AWS Elastic Beanstalk returns an InvalidParameterValue error. The maximum size allowed is 512 MB.

Default: If not specified, AWS Elastic Beanstalk uses a sample application. If only partially specified (for example, a bucket is provided but not the key) or if no data is found at the Amazon S3 location, AWS Elastic Beanstalk returns an InvalidParameterCombination error.

  • S3Bucket (string) --

    The Amazon S3 bucket where the data is located.

  • S3Key (string) --

    The Amazon S3 key where the data is located.

type AutoCreateApplication:

boolean

param AutoCreateApplication:

Determines how the system behaves if the specified application for this version does not already exist:

true: Automatically creates the specified application for this version if it does not already exist.

false: Returns an InvalidParameterValue if the specified application for this version does not already exist.

  • true : Automatically creates the specified application for this release if it does not already exist.

  • false : Throws an InvalidParameterValue if the specified application for this release does not already exist.

Default: false

Valid Values: true | false

rtype:

dict

returns:

Response Syntax

{
    'ApplicationVersion': {
        'ApplicationName': 'string',
        'Description': 'string',
        'VersionLabel': 'string',
        'SourceBundle': {
            'S3Bucket': 'string',
            'S3Key': 'string'
        },
        'DateCreated': datetime(2015, 1, 1),
        'DateUpdated': datetime(2015, 1, 1)
    }
}

Response Structure

  • (dict) --

    Result message wrapping a single description of an application version.

    • ApplicationVersion (dict) --

      The ApplicationVersionDescription of the application version.

      • ApplicationName (string) --

        The name of the application associated with this release.

      • Description (string) --

        The description of this application version.

      • VersionLabel (string) --

        A label uniquely identifying the version for the associated application.

      • SourceBundle (dict) --

        The location where the source bundle is located for this version.

        • S3Bucket (string) --

          The Amazon S3 bucket where the data is located.

        • S3Key (string) --

          The Amazon S3 key where the data is located.

      • DateCreated (datetime) --

        The creation date of the application version.

      • DateUpdated (datetime) --

        The last modified date of the application version.

ListAvailableSolutionStacks (new) Link ¶

Returns a list of the available solution stack names.

Request Syntax

client.list_available_solution_stacks()
rtype:

dict

returns:

Response Syntax

{
    'SolutionStacks': [
        'string',
    ],
    'SolutionStackDetails': [
        {
            'SolutionStackName': 'string',
            'PermittedFileTypes': [
                'string',
            ]
        },
    ]
}

Response Structure

  • (dict) --

    A list of available AWS Elastic Beanstalk solution stacks.

    • SolutionStacks (list) --

      A list of available solution stacks.

      • (string) --

    • SolutionStackDetails (list) --

      A list of available solution stacks and their SolutionStackDescription.

      • (dict) --

        Describes the solution stack.

        • SolutionStackName (string) --

          The name of the solution stack.

        • PermittedFileTypes (list) --

          The permitted file types allowed for a solution stack.

          • (string) --

UpdateEnvironment (new) Link ¶

Updates the environment description, deploys a new application version, updates the configuration settings to an entirely new configuration template, or updates select configuration option values in the running environment.

Attempting to update both the release and configuration is not allowed and AWS Elastic Beanstalk returns an InvalidParameterCombination error.

When updating the configuration settings to a new template or individual settings, a draft configuration is created and DescribeConfigurationSettings for this environment returns two setting descriptions with different DeploymentStatus values.

Request Syntax

client.update_environment(
    EnvironmentId='string',
    EnvironmentName='string',
    Description='string',
    Tier={
        'Name': 'string',
        'Type': 'string',
        'Version': 'string'
    },
    VersionLabel='string',
    TemplateName='string',
    SolutionStackName='string',
    OptionSettings=[
        {
            'Namespace': 'string',
            'OptionName': 'string',
            'Value': 'string'
        },
    ],
    OptionsToRemove=[
        {
            'Namespace': 'string',
            'OptionName': 'string'
        },
    ]
)
type EnvironmentId:

string

param EnvironmentId:

The ID of the environment to update.

If no environment with this ID exists, AWS Elastic Beanstalk returns an InvalidParameterValue error.

Condition: You must specify either this or an EnvironmentName, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error.

type EnvironmentName:

string

param EnvironmentName:

The name of the environment to update. If no environment with this name exists, AWS Elastic Beanstalk returns an InvalidParameterValue error.

Condition: You must specify either this or an EnvironmentId, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error.

type Description:

string

param Description:

If this parameter is specified, AWS Elastic Beanstalk updates the description of this environment.

type Tier:

dict

param Tier:

This specifies the tier to use to update the environment.

Condition: You can only update the tier version for an environment. If you change the name of the type, AWS Elastic Beanstalk returns InvalidParameterValue error.

  • Name (string) --

    The name of this environment tier.

  • Type (string) --

    The type of this environment tier.

  • Version (string) --

    The version of this environment tier.

type VersionLabel:

string

param VersionLabel:

If this parameter is specified, AWS Elastic Beanstalk deploys the named application version to the environment. If no such application version is found, returns an InvalidParameterValue error.

type TemplateName:

string

param TemplateName:

If this parameter is specified, AWS Elastic Beanstalk deploys this configuration template to the environment. If no such configuration template is found, AWS Elastic Beanstalk returns an InvalidParameterValue error.

type SolutionStackName:

string

param SolutionStackName:

This specifies the platform version that the environment will run after the environment is updated.

type OptionSettings:

list

param OptionSettings:

If specified, AWS Elastic Beanstalk updates the configuration set associated with the running environment and sets the specified configuration options to the requested value.

  • (dict) --

    A specification identifying an individual configuration option along with its current value. For a list of possible option values, go to Option Values in the AWS Elastic Beanstalk Developer Guide.

    • Namespace (string) --

      A unique namespace identifying the option's associated AWS resource.

    • OptionName (string) --

      The name of the configuration option.

    • Value (string) --

      The current value for the configuration option.

type OptionsToRemove:

list

param OptionsToRemove:

A list of custom user-defined configuration options to remove from the configuration set for this environment.

  • (dict) --

    A specification identifying an individual configuration option.

    • Namespace (string) --

      A unique namespace identifying the option's associated AWS resource.

    • OptionName (string) --

      The name of the configuration option.

rtype:

dict

returns:

Response Syntax

{
    'EnvironmentName': 'string',
    'EnvironmentId': 'string',
    'ApplicationName': 'string',
    'VersionLabel': 'string',
    'SolutionStackName': 'string',
    'TemplateName': 'string',
    'Description': 'string',
    'EndpointURL': 'string',
    'CNAME': 'string',
    'DateCreated': datetime(2015, 1, 1),
    'DateUpdated': datetime(2015, 1, 1),
    'Status': 'Launching'|'Updating'|'Ready'|'Terminating'|'Terminated',
    'AbortableOperationInProgress': True|False,
    'Health': 'Green'|'Yellow'|'Red'|'Grey',
    'Resources': {
        'LoadBalancer': {
            'LoadBalancerName': 'string',
            'Domain': 'string',
            'Listeners': [
                {
                    'Protocol': 'string',
                    'Port': 123
                },
            ]
        }
    },
    'Tier': {
        'Name': 'string',
        'Type': 'string',
        'Version': 'string'
    }
}

Response Structure

  • (dict) --

    Describes the properties of an environment.

    • EnvironmentName (string) --

      The name of this environment.

    • EnvironmentId (string) --

      The ID of this environment.

    • ApplicationName (string) --

      The name of the application associated with this environment.

    • VersionLabel (string) --

      The application version deployed in this environment.

    • SolutionStackName (string) --

      The name of the SolutionStack deployed with this environment.

    • TemplateName (string) --

      The name of the configuration template used to originally launch this environment.

    • Description (string) --

      Describes this environment.

    • EndpointURL (string) --

      For load-balanced, autoscaling environments, the URL to the LoadBalancer. For single-instance environments, the IP address of the instance.

    • CNAME (string) --

      The URL to the CNAME for this environment.

    • DateCreated (datetime) --

      The creation date for this environment.

    • DateUpdated (datetime) --

      The last modified date for this environment.

    • Status (string) --

      The current operational status of the environment:

      • Launching: Environment is in the process of initial deployment.

      • Updating: Environment is in the process of updating its configuration settings or application version.

      • Ready: Environment is available to have an action performed on it, such as update or terminate.

      • Terminating: Environment is in the shut-down process.

      • Terminated: Environment is not running.

    • AbortableOperationInProgress (boolean) --

      Lists in-progress environment updates and application version deployments that you can cancel.

    • Health (string) --

      Describes the health status of the environment. AWS Elastic Beanstalk indicates the failure levels for a running environment:

      Red : Indicates the environment is not working.

      Yellow: Indicates that something is wrong, the application might not be available, but the instances appear running.

      Green: Indicates the environment is healthy and fully functional.

      • Red: Indicates the environment is not responsive. Occurs when three or more consecutive failures occur for an environment.

      • Yellow: Indicates that something is wrong. Occurs when two consecutive failures occur for an environment.

      • Green: Indicates the environment is healthy and fully functional.

      • Grey: Default health for a new environment. The environment is not fully launched and health checks have not started or health checks are suspended during an UpdateEnvironment or RestartEnvironement request.

      Default: Grey

    • Resources (dict) --

      The description of the AWS resources used by this environment.

      • LoadBalancer (dict) --

        Describes the LoadBalancer.

        • LoadBalancerName (string) --

          The name of the LoadBalancer.

        • Domain (string) --

          The domain name of the LoadBalancer.

        • Listeners (list) --

          A list of Listeners used by the LoadBalancer.

          • (dict) --

            Describes the properties of a Listener for the LoadBalancer.

            • Protocol (string) --

              The protocol that is used by the Listener.

            • Port (integer) --

              The port that is used by the Listener.

    • Tier (dict) --

      Describes the current tier of this environment.

      • Name (string) --

        The name of this environment tier.

      • Type (string) --

        The type of this environment tier.

      • Version (string) --

        The version of this environment tier.

DescribeConfigurationOptions (new) Link ¶

Describes the configuration options that are used in a particular configuration template or environment, or that a specified solution stack defines. The description includes the values the options, their default values, and an indication of the required action on a running environment if an option value is changed.

Request Syntax

client.describe_configuration_options(
    ApplicationName='string',
    TemplateName='string',
    EnvironmentName='string',
    SolutionStackName='string',
    Options=[
        {
            'Namespace': 'string',
            'OptionName': 'string'
        },
    ]
)
type ApplicationName:

string

param ApplicationName:

The name of the application associated with the configuration template or environment. Only needed if you want to describe the configuration options associated with either the configuration template or environment.

type TemplateName:

string

param TemplateName:

The name of the configuration template whose configuration options you want to describe.

type EnvironmentName:

string

param EnvironmentName:

The name of the environment whose configuration options you want to describe.

type SolutionStackName:

string

param SolutionStackName:

The name of the solution stack whose configuration options you want to describe.

type Options:

list

param Options:

If specified, restricts the descriptions to only the specified options.

  • (dict) --

    A specification identifying an individual configuration option.

    • Namespace (string) --

      A unique namespace identifying the option's associated AWS resource.

    • OptionName (string) --

      The name of the configuration option.

rtype:

dict

returns:

Response Syntax

{
    'SolutionStackName': 'string',
    'Options': [
        {
            'Namespace': 'string',
            'Name': 'string',
            'DefaultValue': 'string',
            'ChangeSeverity': 'string',
            'UserDefined': True|False,
            'ValueType': 'Scalar'|'List',
            'ValueOptions': [
                'string',
            ],
            'MinValue': 123,
            'MaxValue': 123,
            'MaxLength': 123,
            'Regex': {
                'Pattern': 'string',
                'Label': 'string'
            }
        },
    ]
}

Response Structure

  • (dict) --

    Describes the settings for a specified configuration set.

    • SolutionStackName (string) --

      The name of the solution stack these configuration options belong to.

    • Options (list) --

      A list of ConfigurationOptionDescription.

      • (dict) --

        Describes the possible values for a configuration option.

        • Namespace (string) --

          A unique namespace identifying the option's associated AWS resource.

        • Name (string) --

          The name of the configuration option.

        • DefaultValue (string) --

          The default value for this configuration option.

        • ChangeSeverity (string) --

          An indication of which action is required if the value for this configuration option changes:

          NoInterruption - There is no interruption to the environment or application availability.

          RestartEnvironment - The environment is restarted, all AWS resources are deleted and recreated, and the environment is unavailable during the process.

          RestartApplicationServer - The environment is available the entire time. However, a short application outage occurs when the application servers on the running Amazon EC2 instances are restarted.

          • NoInterruption : There is no interruption to the environment or application availability.

          • RestartEnvironment : The environment is entirely restarted, all AWS resources are deleted and recreated, and the environment is unavailable during the process.

          • RestartApplicationServer : The environment is available the entire time. However, a short application outage occurs when the application servers on the running Amazon EC2 instances are restarted.

        • UserDefined (boolean) --

          An indication of whether the user defined this configuration option:

          true : This configuration option was defined by the user. It is a valid choice for specifying this as an Option to Remove when updating configuration settings.

          false : This configuration was not defined by the user.

          • true : This configuration option was defined by the user. It is a valid choice for specifying if this as an Option to Remove when updating configuration settings.

          • false : This configuration was not defined by the user.

          Constraint: You can remove only UserDefined options from a configuration.

          Valid Values: true | false

        • ValueType (string) --

          An indication of which type of values this option has and whether it is allowable to select one or more than one of the possible values:

          Scalar : Values for this option are a single selection from the possible values, or a unformatted string or numeric value governed by the MIN/MAX/Regex constraints:

          List : Values for this option are multiple selections of the possible values.

          Boolean : Values for this option are either true or false .

          • Scalar : Values for this option are a single selection from the possible values, or an unformatted string, or numeric value governed by the MIN/MAX/Regex constraints.

          • List : Values for this option are multiple selections from the possible values.

          • Boolean : Values for this option are either true or false .

        • ValueOptions (list) --

          If specified, values for the configuration option are selected from this list.

          • (string) --

        • MinValue (integer) --

          If specified, the configuration option must be a numeric value greater than this value.

        • MaxValue (integer) --

          If specified, the configuration option must be a numeric value less than this value.

        • MaxLength (integer) --

          If specified, the configuration option must be a string value no longer than this value.

        • Regex (dict) --

          If specified, the configuration option must be a string value that satisfies this regular expression.

          • Pattern (string) --

            The regular expression pattern that a string configuration option value with this restriction must match.

          • Label (string) --

            A unique name representing this regular expression.

CreateEnvironment (new) Link ¶

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

Request Syntax

client.create_environment(
    ApplicationName='string',
    EnvironmentName='string',
    Description='string',
    CNAMEPrefix='string',
    Tier={
        'Name': 'string',
        'Type': 'string',
        'Version': 'string'
    },
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ],
    VersionLabel='string',
    TemplateName='string',
    SolutionStackName='string',
    OptionSettings=[
        {
            'Namespace': 'string',
            'OptionName': 'string',
            'Value': 'string'
        },
    ],
    OptionsToRemove=[
        {
            'Namespace': 'string',
            'OptionName': 'string'
        },
    ]
)
type ApplicationName:

string

param ApplicationName:

[REQUIRED]

The name of the application that contains the version to be deployed.

If no application is found with this name, CreateEnvironment returns an InvalidParameterValue error.

type EnvironmentName:

string

param EnvironmentName:

[REQUIRED]

A unique name for the deployment environment. Used in the application URL.

Constraint: Must be from 4 to 23 characters in length. The name can contain only letters, numbers, and hyphens. It cannot start or end with a hyphen. This name must be unique in your account. If the specified name already exists, AWS Elastic Beanstalk returns an InvalidParameterValue error.

Default: If the CNAME parameter is not specified, the environment name becomes part of the CNAME, and therefore part of the visible URL for your application.

type Description:

string

param Description:

Describes this environment.

type CNAMEPrefix:

string

param CNAMEPrefix:

If specified, the environment attempts to use this value as the prefix for the CNAME. If not specified, the CNAME is generated automatically by appending a random alphanumeric string to the environment name.

type Tier:

dict

param Tier:

This specifies the tier to use for creating this environment.

  • Name (string) --

    The name of this environment tier.

  • Type (string) --

    The type of this environment tier.

  • Version (string) --

    The version of this environment tier.

type Tags:

list

param Tags:

This specifies the tags applied to resources in the environment.

  • (dict) --

    Describes a tag applied to a resource in an environment.

    • Key (string) --

      The key of the tag.

    • Value (string) --

      The value of the tag.

type VersionLabel:

string

param VersionLabel:

The name of the application version to deploy.

If the specified application has no associated application versions, AWS Elastic Beanstalk UpdateEnvironment returns an InvalidParameterValue error.

Default: If not specified, AWS Elastic Beanstalk attempts to launch the sample application in the container.

type TemplateName:

string

param TemplateName:

The name of the configuration template to use in deployment. If no configuration template is found with this name, AWS Elastic Beanstalk returns an InvalidParameterValue error.

Condition: You must specify either this parameter or a SolutionStackName, but not both. If you specify both, AWS Elastic Beanstalk returns an InvalidParameterCombination error. If you do not specify either, AWS Elastic Beanstalk returns a MissingRequiredParameter error.

type SolutionStackName:

string

param SolutionStackName:

This is an alternative to specifying a configuration name. If specified, AWS Elastic Beanstalk sets the configuration values to the default values associated with the specified solution stack.

Condition: You must specify either this or a TemplateName, but not both. If you specify both, AWS Elastic Beanstalk returns an InvalidParameterCombination error. If you do not specify either, AWS Elastic Beanstalk returns a MissingRequiredParameter error.

type OptionSettings:

list

param OptionSettings:

If specified, AWS Elastic Beanstalk sets the specified configuration options to the requested value in the configuration set for the new environment. These override the values obtained from the solution stack or the configuration template.

  • (dict) --

    A specification identifying an individual configuration option along with its current value. For a list of possible option values, go to Option Values in the AWS Elastic Beanstalk Developer Guide.

    • Namespace (string) --

      A unique namespace identifying the option's associated AWS resource.

    • OptionName (string) --

      The name of the configuration option.

    • Value (string) --

      The current value for the configuration option.

type OptionsToRemove:

list

param OptionsToRemove:

A list of custom user-defined configuration options to remove from the configuration set for this new environment.

  • (dict) --

    A specification identifying an individual configuration option.

    • Namespace (string) --

      A unique namespace identifying the option's associated AWS resource.

    • OptionName (string) --

      The name of the configuration option.

rtype:

dict

returns:

Response Syntax

{
    'EnvironmentName': 'string',
    'EnvironmentId': 'string',
    'ApplicationName': 'string',
    'VersionLabel': 'string',
    'SolutionStackName': 'string',
    'TemplateName': 'string',
    'Description': 'string',
    'EndpointURL': 'string',
    'CNAME': 'string',
    'DateCreated': datetime(2015, 1, 1),
    'DateUpdated': datetime(2015, 1, 1),
    'Status': 'Launching'|'Updating'|'Ready'|'Terminating'|'Terminated',
    'AbortableOperationInProgress': True|False,
    'Health': 'Green'|'Yellow'|'Red'|'Grey',
    'Resources': {
        'LoadBalancer': {
            'LoadBalancerName': 'string',
            'Domain': 'string',
            'Listeners': [
                {
                    'Protocol': 'string',
                    'Port': 123
                },
            ]
        }
    },
    'Tier': {
        'Name': 'string',
        'Type': 'string',
        'Version': 'string'
    }
}

Response Structure

  • (dict) --

    Describes the properties of an environment.

    • EnvironmentName (string) --

      The name of this environment.

    • EnvironmentId (string) --

      The ID of this environment.

    • ApplicationName (string) --

      The name of the application associated with this environment.

    • VersionLabel (string) --

      The application version deployed in this environment.

    • SolutionStackName (string) --

      The name of the SolutionStack deployed with this environment.

    • TemplateName (string) --

      The name of the configuration template used to originally launch this environment.

    • Description (string) --

      Describes this environment.

    • EndpointURL (string) --

      For load-balanced, autoscaling environments, the URL to the LoadBalancer. For single-instance environments, the IP address of the instance.

    • CNAME (string) --

      The URL to the CNAME for this environment.

    • DateCreated (datetime) --

      The creation date for this environment.

    • DateUpdated (datetime) --

      The last modified date for this environment.

    • Status (string) --

      The current operational status of the environment:

      • Launching: Environment is in the process of initial deployment.

      • Updating: Environment is in the process of updating its configuration settings or application version.

      • Ready: Environment is available to have an action performed on it, such as update or terminate.

      • Terminating: Environment is in the shut-down process.

      • Terminated: Environment is not running.

    • AbortableOperationInProgress (boolean) --

      Lists in-progress environment updates and application version deployments that you can cancel.

    • Health (string) --

      Describes the health status of the environment. AWS Elastic Beanstalk indicates the failure levels for a running environment:

      Red : Indicates the environment is not working.

      Yellow: Indicates that something is wrong, the application might not be available, but the instances appear running.

      Green: Indicates the environment is healthy and fully functional.

      • Red: Indicates the environment is not responsive. Occurs when three or more consecutive failures occur for an environment.

      • Yellow: Indicates that something is wrong. Occurs when two consecutive failures occur for an environment.

      • Green: Indicates the environment is healthy and fully functional.

      • Grey: Default health for a new environment. The environment is not fully launched and health checks have not started or health checks are suspended during an UpdateEnvironment or RestartEnvironement request.

      Default: Grey

    • Resources (dict) --

      The description of the AWS resources used by this environment.

      • LoadBalancer (dict) --

        Describes the LoadBalancer.

        • LoadBalancerName (string) --

          The name of the LoadBalancer.

        • Domain (string) --

          The domain name of the LoadBalancer.

        • Listeners (list) --

          A list of Listeners used by the LoadBalancer.

          • (dict) --

            Describes the properties of a Listener for the LoadBalancer.

            • Protocol (string) --

              The protocol that is used by the Listener.

            • Port (integer) --

              The port that is used by the Listener.

    • Tier (dict) --

      Describes the current tier of this environment.

      • Name (string) --

        The name of this environment tier.

      • Type (string) --

        The type of this environment tier.

      • Version (string) --

        The version of this environment tier.

CreateApplication (new) Link ¶

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

Request Syntax

client.create_application(
    ApplicationName='string',
    Description='string'
)
type ApplicationName:

string

param ApplicationName:

[REQUIRED]

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 Description:

string

param Description:

Describes the application.

rtype:

dict

returns:

Response Syntax

{
    'Application': {
        'ApplicationName': 'string',
        'Description': 'string',
        'DateCreated': datetime(2015, 1, 1),
        'DateUpdated': datetime(2015, 1, 1),
        'Versions': [
            'string',
        ],
        'ConfigurationTemplates': [
            'string',
        ]
    }
}

Response Structure

  • (dict) --

    Result message containing a single description of an application.

    • Application (dict) --

      The ApplicationDescription of the application.

      • ApplicationName (string) --

        The name of the application.

      • Description (string) --

        User-defined description of the application.

      • DateCreated (datetime) --

        The date when the application was created.

      • DateUpdated (datetime) --

        The date when the application was last modified.

      • Versions (list) --

        The names of the versions for this application.

        • (string) --

      • ConfigurationTemplates (list) --

        The names of the configuration templates associated with this application.

        • (string) --

CreateStorageLocation (new) Link ¶

Creates the Amazon S3 storage location for the account.

This location is used to store user log files.

Request Syntax

client.create_storage_location()
rtype:

dict

returns:

Response Syntax

{
    'S3Bucket': 'string'
}

Response Structure

  • (dict) --

    Results of a CreateStorageLocationResult call.

    • S3Bucket (string) --

      The name of the Amazon S3 bucket created.

DescribeEnvironments (new) Link ¶

Returns descriptions for existing environments.

Request Syntax

client.describe_environments(
    ApplicationName='string',
    VersionLabel='string',
    EnvironmentIds=[
        'string',
    ],
    EnvironmentNames=[
        'string',
    ],
    IncludeDeleted=True|False,
    IncludedDeletedBackTo=datetime(2015, 1, 1)
)
type ApplicationName:

string

param ApplicationName:

If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that are associated with this application.

type VersionLabel:

string

param VersionLabel:

If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that are associated with this application version.

type EnvironmentIds:

list

param EnvironmentIds:

If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that have the specified IDs.

  • (string) --

type EnvironmentNames:

list

param EnvironmentNames:

If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that have the specified names.

  • (string) --

type IncludeDeleted:

boolean

param IncludeDeleted:

Indicates whether to include deleted environments:

true: Environments that have been deleted after IncludedDeletedBackTo are displayed.

false: Do not include deleted environments.

type IncludedDeletedBackTo:

datetime

param IncludedDeletedBackTo:

If specified when IncludeDeleted is set to true, then environments deleted after this date are displayed.

rtype:

dict

returns:

Response Syntax

{
    'Environments': [
        {
            'EnvironmentName': 'string',
            'EnvironmentId': 'string',
            'ApplicationName': 'string',
            'VersionLabel': 'string',
            'SolutionStackName': 'string',
            'TemplateName': 'string',
            'Description': 'string',
            'EndpointURL': 'string',
            'CNAME': 'string',
            'DateCreated': datetime(2015, 1, 1),
            'DateUpdated': datetime(2015, 1, 1),
            'Status': 'Launching'|'Updating'|'Ready'|'Terminating'|'Terminated',
            'AbortableOperationInProgress': True|False,
            'Health': 'Green'|'Yellow'|'Red'|'Grey',
            'Resources': {
                'LoadBalancer': {
                    'LoadBalancerName': 'string',
                    'Domain': 'string',
                    'Listeners': [
                        {
                            'Protocol': 'string',
                            'Port': 123
                        },
                    ]
                }
            },
            'Tier': {
                'Name': 'string',
                'Type': 'string',
                'Version': 'string'
            }
        },
    ]
}

Response Structure

  • (dict) --

    Result message containing a list of environment descriptions.

    • Environments (list) --

      Returns an EnvironmentDescription list.

      • (dict) --

        Describes the properties of an environment.

        • EnvironmentName (string) --

          The name of this environment.

        • EnvironmentId (string) --

          The ID of this environment.

        • ApplicationName (string) --

          The name of the application associated with this environment.

        • VersionLabel (string) --

          The application version deployed in this environment.

        • SolutionStackName (string) --

          The name of the SolutionStack deployed with this environment.

        • TemplateName (string) --

          The name of the configuration template used to originally launch this environment.

        • Description (string) --

          Describes this environment.

        • EndpointURL (string) --

          For load-balanced, autoscaling environments, the URL to the LoadBalancer. For single-instance environments, the IP address of the instance.

        • CNAME (string) --

          The URL to the CNAME for this environment.

        • DateCreated (datetime) --

          The creation date for this environment.

        • DateUpdated (datetime) --

          The last modified date for this environment.

        • Status (string) --

          The current operational status of the environment:

          • Launching: Environment is in the process of initial deployment.

          • Updating: Environment is in the process of updating its configuration settings or application version.

          • Ready: Environment is available to have an action performed on it, such as update or terminate.

          • Terminating: Environment is in the shut-down process.

          • Terminated: Environment is not running.

        • AbortableOperationInProgress (boolean) --

          Lists in-progress environment updates and application version deployments that you can cancel.

        • Health (string) --

          Describes the health status of the environment. AWS Elastic Beanstalk indicates the failure levels for a running environment:

          Red : Indicates the environment is not working.

          Yellow: Indicates that something is wrong, the application might not be available, but the instances appear running.

          Green: Indicates the environment is healthy and fully functional.

          • Red: Indicates the environment is not responsive. Occurs when three or more consecutive failures occur for an environment.

          • Yellow: Indicates that something is wrong. Occurs when two consecutive failures occur for an environment.

          • Green: Indicates the environment is healthy and fully functional.

          • Grey: Default health for a new environment. The environment is not fully launched and health checks have not started or health checks are suspended during an UpdateEnvironment or RestartEnvironement request.

          Default: Grey

        • Resources (dict) --

          The description of the AWS resources used by this environment.

          • LoadBalancer (dict) --

            Describes the LoadBalancer.

            • LoadBalancerName (string) --

              The name of the LoadBalancer.

            • Domain (string) --

              The domain name of the LoadBalancer.

            • Listeners (list) --

              A list of Listeners used by the LoadBalancer.

              • (dict) --

                Describes the properties of a Listener for the LoadBalancer.

                • Protocol (string) --

                  The protocol that is used by the Listener.

                • Port (integer) --

                  The port that is used by the Listener.

        • Tier (dict) --

          Describes the current tier of this environment.

          • Name (string) --

            The name of this environment tier.

          • Type (string) --

            The type of this environment tier.

          • Version (string) --

            The version of this environment tier.

AbortEnvironmentUpdate (new) Link ¶

Cancels in-progress environment configuration update or application version deployment.

Request Syntax

client.abort_environment_update(
    EnvironmentId='string',
    EnvironmentName='string'
)
type EnvironmentId:

string

param EnvironmentId:

This specifies the ID of the environment with the in-progress update that you want to cancel.

type EnvironmentName:

string

param EnvironmentName:

This specifies the name of the environment with the in-progress update that you want to cancel.

returns:

None

RebuildEnvironment (new) Link ¶

Deletes and recreates all of the AWS resources (for example: the Auto Scaling group, load balancer, etc.) for a specified environment and forces a restart.

Request Syntax

client.rebuild_environment(
    EnvironmentId='string',
    EnvironmentName='string'
)
type EnvironmentId:

string

param EnvironmentId:

The ID of the environment to rebuild.

Condition: You must specify either this or an EnvironmentName, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error.

type EnvironmentName:

string

param EnvironmentName:

The name of the environment to rebuild.

Condition: You must specify either this or an EnvironmentId, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error.

returns:

None

DescribeConfigurationSettings (new) Link ¶

Returns a description of the settings for the specified configuration set, that is, either a configuration template or the configuration set associated with a running environment.

When describing the settings for the configuration set associated with a running environment, it is possible to receive two sets of setting descriptions. One is the deployed configuration set, and the other is a draft configuration of an environment that is either in the process of deployment or that failed to deploy.

Related Topics

  • DeleteEnvironmentConfiguration

Request Syntax

client.describe_configuration_settings(
    ApplicationName='string',
    TemplateName='string',
    EnvironmentName='string'
)
type ApplicationName:

string

param ApplicationName:

[REQUIRED]

The application for the environment or configuration template.

type TemplateName:

string

param TemplateName:

The name of the configuration template to describe.

Conditional: You must specify either this parameter or an EnvironmentName, but not both. If you specify both, AWS Elastic Beanstalk returns an InvalidParameterCombination error. If you do not specify either, AWS Elastic Beanstalk returns a MissingRequiredParameter error.

type EnvironmentName:

string

param EnvironmentName:

The name of the environment to describe.

Condition: You must specify either this or a TemplateName, but not both. If you specify both, AWS Elastic Beanstalk returns an InvalidParameterCombination error. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error.

rtype:

dict

returns:

Response Syntax

{
    'ConfigurationSettings': [
        {
            'SolutionStackName': 'string',
            'ApplicationName': 'string',
            'TemplateName': 'string',
            'Description': 'string',
            'EnvironmentName': 'string',
            'DeploymentStatus': 'deployed'|'pending'|'failed',
            'DateCreated': datetime(2015, 1, 1),
            'DateUpdated': datetime(2015, 1, 1),
            'OptionSettings': [
                {
                    'Namespace': 'string',
                    'OptionName': 'string',
                    'Value': 'string'
                },
            ]
        },
    ]
}

Response Structure

  • (dict) --

    The results from a request to change the configuration settings of an environment.

    • ConfigurationSettings (list) --

      A list of ConfigurationSettingsDescription.

      • (dict) --

        Describes the settings for a configuration set.

        • SolutionStackName (string) --

          The name of the solution stack this configuration set uses.

        • ApplicationName (string) --

          The name of the application associated with this configuration set.

        • TemplateName (string) --

          If not null, the name of the configuration template for this configuration set.

        • Description (string) --

          Describes this configuration set.

        • EnvironmentName (string) --

          If not null, the name of the environment for this configuration set.

        • DeploymentStatus (string) --

          If this configuration set is associated with an environment, the DeploymentStatus parameter indicates the deployment status of this configuration set:

          null: This configuration is not associated with a running environment.

          pending: This is a draft configuration that is not deployed to the associated environment but is in the process of deploying.

          deployed: This is the configuration that is currently deployed to the associated running environment.

          failed: This is a draft configuration, that failed to successfully deploy.

          • null: This configuration is not associated with a running environment.

          • pending: This is a draft configuration that is not deployed to the associated environment but is in the process of deploying.

          • deployed: This is the configuration that is currently deployed to the associated running environment.

          • failed: This is a draft configuration that failed to successfully deploy.

        • DateCreated (datetime) --

          The date (in UTC time) when this configuration set was created.

        • DateUpdated (datetime) --

          The date (in UTC time) when this configuration set was last modified.

        • OptionSettings (list) --

          A list of the configuration options and their values in this configuration set.

          • (dict) --

            A specification identifying an individual configuration option along with its current value. For a list of possible option values, go to Option Values in the AWS Elastic Beanstalk Developer Guide.

            • Namespace (string) --

              A unique namespace identifying the option's associated AWS resource.

            • OptionName (string) --

              The name of the configuration option.

            • Value (string) --

              The current value for the configuration option.

DeleteApplicationVersion (new) Link ¶

Deletes the specified version from the specified application.

Request Syntax

client.delete_application_version(
    ApplicationName='string',
    VersionLabel='string',
    DeleteSourceBundle=True|False
)
type ApplicationName:

string

param ApplicationName:

[REQUIRED]

The name of the application to delete releases from.

type VersionLabel:

string

param VersionLabel:

[REQUIRED]

The label of the version to delete.

type DeleteSourceBundle:

boolean

param DeleteSourceBundle:

Indicates whether to delete the associated source bundle from Amazon S3:

  • true: An attempt is made to delete the associated Amazon S3 source bundle specified at time of creation.

  • false: No action is taken on the Amazon S3 source bundle specified at time of creation.

Valid Values: true | false

returns:

None

RestartAppServer (new) Link ¶

Causes the environment to restart the application container server running on each Amazon EC2 instance.

Request Syntax

client.restart_app_server(
    EnvironmentId='string',
    EnvironmentName='string'
)
type EnvironmentId:

string

param EnvironmentId:

The ID of the environment to restart the server for.

Condition: You must specify either this or an EnvironmentName, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error.

type EnvironmentName:

string

param EnvironmentName:

The name of the environment to restart the server for.

Condition: You must specify either this or an EnvironmentId, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error.

returns:

None

UpdateApplicationVersion (new) Link ¶

Updates the specified application version to have the specified properties.

Request Syntax

client.update_application_version(
    ApplicationName='string',
    VersionLabel='string',
    Description='string'
)
type ApplicationName:

string

param ApplicationName:

[REQUIRED]

The name of the application associated with this version.

If no application is found with this name, UpdateApplication returns an InvalidParameterValue error.

type VersionLabel:

string

param VersionLabel:

[REQUIRED]

The name of the version to update.

If no application version is found with this label, UpdateApplication returns an InvalidParameterValue error.

type Description:

string

param Description:

A new description for this release.

rtype:

dict

returns:

Response Syntax

{
    'ApplicationVersion': {
        'ApplicationName': 'string',
        'Description': 'string',
        'VersionLabel': 'string',
        'SourceBundle': {
            'S3Bucket': 'string',
            'S3Key': 'string'
        },
        'DateCreated': datetime(2015, 1, 1),
        'DateUpdated': datetime(2015, 1, 1)
    }
}

Response Structure

  • (dict) --

    Result message wrapping a single description of an application version.

    • ApplicationVersion (dict) --

      The ApplicationVersionDescription of the application version.

      • ApplicationName (string) --

        The name of the application associated with this release.

      • Description (string) --

        The description of this application version.

      • VersionLabel (string) --

        A label uniquely identifying the version for the associated application.

      • SourceBundle (dict) --

        The location where the source bundle is located for this version.

        • S3Bucket (string) --

          The Amazon S3 bucket where the data is located.

        • S3Key (string) --

          The Amazon S3 key where the data is located.

      • DateCreated (datetime) --

        The creation date of the application version.

      • DateUpdated (datetime) --

        The last modified date of the application version.

DescribeEnvironmentResources (new) Link ¶

Returns AWS resources for this environment.

Request Syntax

client.describe_environment_resources(
    EnvironmentId='string',
    EnvironmentName='string'
)
type EnvironmentId:

string

param EnvironmentId:

The ID of the environment to retrieve AWS resource usage data.

Condition: You must specify either this or an EnvironmentName, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error.

type EnvironmentName:

string

param EnvironmentName:

The name of the environment to retrieve AWS resource usage data.

Condition: You must specify either this or an EnvironmentId, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error.

rtype:

dict

returns:

Response Syntax

{
    'EnvironmentResources': {
        'EnvironmentName': 'string',
        'AutoScalingGroups': [
            {
                'Name': 'string'
            },
        ],
        'Instances': [
            {
                'Id': 'string'
            },
        ],
        'LaunchConfigurations': [
            {
                'Name': 'string'
            },
        ],
        'LoadBalancers': [
            {
                'Name': 'string'
            },
        ],
        'Triggers': [
            {
                'Name': 'string'
            },
        ],
        'Queues': [
            {
                'Name': 'string',
                'URL': 'string'
            },
        ]
    }
}

Response Structure

  • (dict) --

    Result message containing a list of environment resource descriptions.

    • EnvironmentResources (dict) --

      A list of EnvironmentResourceDescription.

      • EnvironmentName (string) --

        The name of the environment.

      • AutoScalingGroups (list) --

        The AutoScalingGroups used by this environment.

        • (dict) --

          Describes an Auto Scaling launch configuration.

          • Name (string) --

            The name of the AutoScalingGroup .

      • Instances (list) --

        The Amazon EC2 instances used by this environment.

        • (dict) --

          The description of an Amazon EC2 instance.

          • Id (string) --

            The ID of the Amazon EC2 instance.

      • LaunchConfigurations (list) --

        The Auto Scaling launch configurations in use by this environment.

        • (dict) --

          Describes an Auto Scaling launch configuration.

          • Name (string) --

            The name of the launch configuration.

      • LoadBalancers (list) --

        The LoadBalancers in use by this environment.

        • (dict) --

          Describes a LoadBalancer.

          • Name (string) --

            The name of the LoadBalancer.

      • Triggers (list) --

        The AutoScaling triggers in use by this environment.

        • (dict) --

          Describes a trigger.

          • Name (string) --

            The name of the trigger.

      • Queues (list) --

        The queues used by this environment.

        • (dict) --

          Describes a queue.

          • Name (string) --

            The name of the queue.

          • URL (string) --

            The URL of the queue.