AWS Elastic Beanstalk

2017/02/22 - AWS Elastic Beanstalk - 4 new 10 updated api methods

Changes  Elastic Beanstalk adds support for creating and managing custom platform.

ListPlatformVersions (new) Link ¶

Lists the available platforms.

See also: AWS API Documentation

Request Syntax

client.list_platform_versions(
    Filters=[
        {
            'Type': 'string',
            'Operator': 'string',
            'Values': [
                'string',
            ]
        },
    ],
    MaxRecords=123,
    NextToken='string'
)
type Filters

list

param Filters

List only the platforms where the platform member value relates to one of the supplied values.

  • (dict) --

    Specify criteria to restrict the results when listing custom platforms.

    The filter is evaluated as the expression:

    Type Operator Values[i]

    • Type (string) --

      The custom platform attribute to which the filter values are applied.

      Valid Values: PlatformName | PlatformVersion | PlatformStatus | PlatformOwner

    • Operator (string) --

      The operator to apply to the Type with each of the Values .

      Valid Values: = (equal to) | != (not equal to) | < (less than) | <= (less than or equal to) | > (greater than) | >= (greater than or equal to) | contains | begins_with | ends_with

    • Values (list) --

      The list of values applied to the custom platform attribute.

      • (string) --

type MaxRecords

integer

param MaxRecords

The maximum number of platform values returned in one call.

type NextToken

string

param NextToken

The starting index into the remaining list of platforms. Use the NextToken value from a previous ListPlatformVersion call.

rtype

dict

returns

Response Syntax

{
    'PlatformSummaryList': [
        {
            'PlatformArn': 'string',
            'PlatformOwner': 'string',
            'PlatformStatus': 'Creating'|'Failed'|'Ready'|'Deleting'|'Deleted',
            'PlatformCategory': 'string',
            'OperatingSystemName': 'string',
            'OperatingSystemVersion': 'string',
            'SupportedTierList': [
                'string',
            ],
            'SupportedAddonList': [
                'string',
            ]
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • PlatformSummaryList (list) --

      Detailed information about the platforms.

      • (dict) --

        Detailed information about a platform.

        • PlatformArn (string) --

          The ARN of the platform.

        • PlatformOwner (string) --

          The AWS account ID of the person who created the platform.

        • PlatformStatus (string) --

          The status of the platform. You can create an environment from the platform once it is ready.

        • PlatformCategory (string) --

          The category of platform.

        • OperatingSystemName (string) --

          The operating system used by the platform.

        • OperatingSystemVersion (string) --

          The version of the operating system used by the platform.

        • SupportedTierList (list) --

          The tiers in which the platform runs.

          • (string) --

        • SupportedAddonList (list) --

          The additions associated with the platform.

          • (string) --

    • NextToken (string) --

      The starting index into the remaining list of platforms. if this value is not null , you can use it in a subsequent ListPlatformVersion call.

DeletePlatformVersion (new) Link ¶

Deletes the specified version of a custom platform.

See also: AWS API Documentation

Request Syntax

client.delete_platform_version(
    PlatformArn='string'
)
type PlatformArn

string

param PlatformArn

The ARN of the version of the custom platform.

rtype

dict

returns

Response Syntax

{
    'PlatformSummary': {
        'PlatformArn': 'string',
        'PlatformOwner': 'string',
        'PlatformStatus': 'Creating'|'Failed'|'Ready'|'Deleting'|'Deleted',
        'PlatformCategory': 'string',
        'OperatingSystemName': 'string',
        'OperatingSystemVersion': 'string',
        'SupportedTierList': [
            'string',
        ],
        'SupportedAddonList': [
            'string',
        ]
    }
}

Response Structure

  • (dict) --

    • PlatformSummary (dict) --

      Detailed information about the version of the custom platform.

      • PlatformArn (string) --

        The ARN of the platform.

      • PlatformOwner (string) --

        The AWS account ID of the person who created the platform.

      • PlatformStatus (string) --

        The status of the platform. You can create an environment from the platform once it is ready.

      • PlatformCategory (string) --

        The category of platform.

      • OperatingSystemName (string) --

        The operating system used by the platform.

      • OperatingSystemVersion (string) --

        The version of the operating system used by the platform.

      • SupportedTierList (list) --

        The tiers in which the platform runs.

        • (string) --

      • SupportedAddonList (list) --

        The additions associated with the platform.

        • (string) --

CreatePlatformVersion (new) Link ¶

Create a new version of your custom platform.

See also: AWS API Documentation

Request Syntax

client.create_platform_version(
    PlatformName='string',
    PlatformVersion='string',
    PlatformDefinitionBundle={
        'S3Bucket': 'string',
        'S3Key': 'string'
    },
    EnvironmentName='string',
    OptionSettings=[
        {
            'ResourceName': 'string',
            'Namespace': 'string',
            'OptionName': 'string',
            'Value': 'string'
        },
    ]
)
type PlatformName

string

param PlatformName

[REQUIRED]

The name of your custom platform.

type PlatformVersion

string

param PlatformVersion

[REQUIRED]

The number, such as 1.0.2, for the new platform version.

type PlatformDefinitionBundle

dict

param PlatformDefinitionBundle

[REQUIRED]

The location of the platform definition archive in Amazon S3.

  • S3Bucket (string) --

    The Amazon S3 bucket where the data is located.

  • S3Key (string) --

    The Amazon S3 key where the data is located.

type EnvironmentName

string

param EnvironmentName

The name of the builder environment.

type OptionSettings

list

param OptionSettings

The configuration option settings to apply to the builder environment.

  • (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 .

    • ResourceName (string) --

      A unique resource name for a time-based scaling configuration option.

    • 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

{
    'PlatformSummary': {
        'PlatformArn': 'string',
        'PlatformOwner': 'string',
        'PlatformStatus': 'Creating'|'Failed'|'Ready'|'Deleting'|'Deleted',
        'PlatformCategory': 'string',
        'OperatingSystemName': 'string',
        'OperatingSystemVersion': 'string',
        'SupportedTierList': [
            'string',
        ],
        'SupportedAddonList': [
            'string',
        ]
    },
    'Builder': {
        'ARN': 'string'
    }
}

Response Structure

  • (dict) --

    • PlatformSummary (dict) --

      Detailed information about the new version of the custom platform.

      • PlatformArn (string) --

        The ARN of the platform.

      • PlatformOwner (string) --

        The AWS account ID of the person who created the platform.

      • PlatformStatus (string) --

        The status of the platform. You can create an environment from the platform once it is ready.

      • PlatformCategory (string) --

        The category of platform.

      • OperatingSystemName (string) --

        The operating system used by the platform.

      • OperatingSystemVersion (string) --

        The version of the operating system used by the platform.

      • SupportedTierList (list) --

        The tiers in which the platform runs.

        • (string) --

      • SupportedAddonList (list) --

        The additions associated with the platform.

        • (string) --

    • Builder (dict) --

      The builder used to create the custom platform.

      • ARN (string) --

        The ARN of the builder.

DescribePlatformVersion (new) Link ¶

Describes the version of the platform.

See also: AWS API Documentation

Request Syntax

client.describe_platform_version(
    PlatformArn='string'
)
type PlatformArn

string

param PlatformArn

The ARN of the version of the platform.

rtype

dict

returns

Response Syntax

{
    'PlatformDescription': {
        'PlatformArn': 'string',
        'PlatformOwner': 'string',
        'PlatformName': 'string',
        'PlatformVersion': 'string',
        'SolutionStackName': 'string',
        'PlatformStatus': 'Creating'|'Failed'|'Ready'|'Deleting'|'Deleted',
        'DateCreated': datetime(2015, 1, 1),
        'DateUpdated': datetime(2015, 1, 1),
        'PlatformCategory': 'string',
        'Description': 'string',
        'Maintainer': 'string',
        'OperatingSystemName': 'string',
        'OperatingSystemVersion': 'string',
        'ProgrammingLanguages': [
            {
                'Name': 'string',
                'Version': 'string'
            },
        ],
        'Frameworks': [
            {
                'Name': 'string',
                'Version': 'string'
            },
        ],
        'CustomAmiList': [
            {
                'VirtualizationType': 'string',
                'ImageId': 'string'
            },
        ],
        'SupportedTierList': [
            'string',
        ],
        'SupportedAddonList': [
            'string',
        ]
    }
}

Response Structure

  • (dict) --

    • PlatformDescription (dict) --

      Detailed information about the version of the platform.

      • PlatformArn (string) --

        The ARN of the platform.

      • PlatformOwner (string) --

        The AWS account ID of the person who created the platform.

      • PlatformName (string) --

        The name of the platform.

      • PlatformVersion (string) --

        The version of the platform.

      • SolutionStackName (string) --

        The name of the solution stack used by the platform.

      • PlatformStatus (string) --

        The status of the platform.

      • DateCreated (datetime) --

        The date when the platform was created.

      • DateUpdated (datetime) --

        The date when the platform was last updated.

      • PlatformCategory (string) --

        The category of the platform.

      • Description (string) --

        The description of the platform.

      • Maintainer (string) --

        Information about the maintainer of the platform.

      • OperatingSystemName (string) --

        The operating system used by the platform.

      • OperatingSystemVersion (string) --

        The version of the operating system used by the platform.

      • ProgrammingLanguages (list) --

        The programming languages supported by the platform.

        • (dict) --

          A programming language supported by the platform.

          • Name (string) --

            The name of the programming language.

          • Version (string) --

            The version of the programming language.

      • Frameworks (list) --

        The frameworks supported by the platform.

        • (dict) --

          A framework supported by the custom platform.

          • Name (string) --

            The name of the framework.

          • Version (string) --

            The version of the framework.

      • CustomAmiList (list) --

        The custom AMIs supported by the platform.

        • (dict) --

          A custom AMI available to platforms.

          • VirtualizationType (string) --

            The type of virtualization used to create the custom AMI.

          • ImageId (string) --

            THe ID of the image used to create the custom AMI.

      • SupportedTierList (list) --

        The tiers supported by the platform.

        • (string) --

      • SupportedAddonList (list) --

        The additions supported by the platform.

        • (string) --

ComposeEnvironments (updated) Link ¶
Changes (response)
{'Environments': {'PlatformArn': 'string'}}

Create or update a group of environments that each run a separate component of a single application. Takes a list of version labels that specify application source bundles for each of the environments to create or update. The name of each environment and other required information must be included in the source bundles in an environment manifest named env.yaml . See Compose Environments for details.

See also: AWS API Documentation

Request Syntax

client.compose_environments(
    ApplicationName='string',
    GroupName='string',
    VersionLabels=[
        'string',
    ]
)
type ApplicationName

string

param ApplicationName

The name of the application to which the specified source bundles belong.

type GroupName

string

param GroupName

The name of the group to which the target environments belong. Specify a group name only if the environment name defined in each target environment's manifest ends with a + (plus) character. See Environment Manifest (env.yaml) for details.

type VersionLabels

list

param VersionLabels

A list of version labels, specifying one or more application source bundles that belong to the target application. Each source bundle must include an environment manifest that specifies the name of the environment and the name of the solution stack to use, and optionally can specify environment links to create.

  • (string) --

rtype

dict

returns

Response Syntax

{
    'Environments': [
        {
            'EnvironmentName': 'string',
            'EnvironmentId': 'string',
            'ApplicationName': 'string',
            'VersionLabel': 'string',
            'SolutionStackName': 'string',
            'PlatformArn': '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',
            'HealthStatus': 'NoData'|'Unknown'|'Pending'|'Ok'|'Info'|'Warning'|'Degraded'|'Severe',
            'Resources': {
                'LoadBalancer': {
                    'LoadBalancerName': 'string',
                    'Domain': 'string',
                    'Listeners': [
                        {
                            'Protocol': 'string',
                            'Port': 123
                        },
                    ]
                }
            },
            'Tier': {
                'Name': 'string',
                'Type': 'string',
                'Version': 'string'
            },
            'EnvironmentLinks': [
                {
                    'LinkName': 'string',
                    'EnvironmentName': '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.

        • PlatformArn (string) --

          The ARN of the custom platform.

        • 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) --

          Indicates if there is an in-progress environment configuration update or application version deployment that you can cancel.

          true: There is an update in progress.

          false: There are no updates currently in progress.

        • 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 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

        • HealthStatus (string) --

          Returns the health status of the application running in your environment. For more information, see Health Colors and Statuses .

        • 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.

        • EnvironmentLinks (list) --

          A list of links to other environments in the same group.

          • (dict) --

            A link to another environment, defined in the environment's manifest. Links provide connection information in system properties that can be used to connect to another environment in the same group. See Environment Manifest (env.yaml) for details.

            • LinkName (string) --

              The name of the link.

            • EnvironmentName (string) --

              The name of the linked environment (the dependency).

CreateConfigurationTemplate (updated) Link ¶
Changes (both)
{'PlatformArn': 'string'}

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

See also: AWS API Documentation

Request Syntax

client.create_configuration_template(
    ApplicationName='string',
    TemplateName='string',
    SolutionStackName='string',
    PlatformArn='string',
    SourceConfiguration={
        'ApplicationName': 'string',
        'TemplateName': 'string'
    },
    EnvironmentId='string',
    Description='string',
    OptionSettings=[
        {
            'ResourceName': 'string',
            '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 PlatformArn

string

param PlatformArn

The ARN of the custome platform.

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 .

    • ResourceName (string) --

      A unique resource name for a time-based scaling configuration option.

    • 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',
    'PlatformArn': 'string',
    'ApplicationName': 'string',
    'TemplateName': 'string',
    'Description': 'string',
    'EnvironmentName': 'string',
    'DeploymentStatus': 'deployed'|'pending'|'failed',
    'DateCreated': datetime(2015, 1, 1),
    'DateUpdated': datetime(2015, 1, 1),
    'OptionSettings': [
        {
            'ResourceName': 'string',
            '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.

    • PlatformArn (string) --

      The ARN of the custom platform.

    • 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.

    • 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 .

        • ResourceName (string) --

          A unique resource name for a time-based scaling configuration option.

        • 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.

CreateEnvironment (updated) Link ¶
Changes (both)
{'PlatformArn': 'string'}

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

See also: AWS API Documentation

Request Syntax

client.create_environment(
    ApplicationName='string',
    EnvironmentName='string',
    GroupName='string',
    Description='string',
    CNAMEPrefix='string',
    Tier={
        'Name': 'string',
        'Type': 'string',
        'Version': 'string'
    },
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ],
    VersionLabel='string',
    TemplateName='string',
    SolutionStackName='string',
    PlatformArn='string',
    OptionSettings=[
        {
            'ResourceName': 'string',
            'Namespace': 'string',
            'OptionName': 'string',
            'Value': 'string'
        },
    ],
    OptionsToRemove=[
        {
            'ResourceName': 'string',
            '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

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

Constraint: Must be from 4 to 40 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 GroupName

string

param GroupName

The name of the group to which the target environment belongs. Specify a group name only if the environment's name is specified in an environment manifest and not with the environment name parameter. See Environment Manifest (env.yaml) for details.

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.

type SolutionStackName

string

param SolutionStackName

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

type PlatformArn

string

param PlatformArn

The ARN of the custom platform.

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 .

    • ResourceName (string) --

      A unique resource name for a time-based scaling configuration option.

    • 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.

    • ResourceName (string) --

      A unique resource name for a time-based scaling 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',
    'PlatformArn': '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',
    'HealthStatus': 'NoData'|'Unknown'|'Pending'|'Ok'|'Info'|'Warning'|'Degraded'|'Severe',
    'Resources': {
        'LoadBalancer': {
            'LoadBalancerName': 'string',
            'Domain': 'string',
            'Listeners': [
                {
                    'Protocol': 'string',
                    'Port': 123
                },
            ]
        }
    },
    'Tier': {
        'Name': 'string',
        'Type': 'string',
        'Version': 'string'
    },
    'EnvironmentLinks': [
        {
            'LinkName': 'string',
            'EnvironmentName': '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.

    • PlatformArn (string) --

      The ARN of the custom platform.

    • 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) --

      Indicates if there is an in-progress environment configuration update or application version deployment that you can cancel.

      true: There is an update in progress.

      false: There are no updates currently in progress.

    • 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 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

    • HealthStatus (string) --

      Returns the health status of the application running in your environment. For more information, see Health Colors and Statuses .

    • 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.

    • EnvironmentLinks (list) --

      A list of links to other environments in the same group.

      • (dict) --

        A link to another environment, defined in the environment's manifest. Links provide connection information in system properties that can be used to connect to another environment in the same group. See Environment Manifest (env.yaml) for details.

        • LinkName (string) --

          The name of the link.

        • EnvironmentName (string) --

          The name of the linked environment (the dependency).

DescribeConfigurationOptions (updated) Link ¶
Changes (both)
{'PlatformArn': 'string'}

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.

See also: AWS API Documentation

Request Syntax

client.describe_configuration_options(
    ApplicationName='string',
    TemplateName='string',
    EnvironmentName='string',
    SolutionStackName='string',
    PlatformArn='string',
    Options=[
        {
            'ResourceName': 'string',
            '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 PlatformArn

string

param PlatformArn

The ARN of the custom platform.

type Options

list

param Options

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

  • (dict) --

    A specification identifying an individual configuration option.

    • ResourceName (string) --

      A unique resource name for a time-based scaling 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',
    'PlatformArn': '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.

    • PlatformArn (string) --

      The ARN of the custom platform.

    • 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 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 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 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 .

          • Json : Values for this option are a JSON representation of a ConfigDocument .

        • 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.

DescribeConfigurationSettings (updated) Link ¶
Changes (response)
{'ConfigurationSettings': {'PlatformArn': 'string'}}

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

See also: AWS API Documentation

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',
            'PlatformArn': 'string',
            'ApplicationName': 'string',
            'TemplateName': 'string',
            'Description': 'string',
            'EnvironmentName': 'string',
            'DeploymentStatus': 'deployed'|'pending'|'failed',
            'DateCreated': datetime(2015, 1, 1),
            'DateUpdated': datetime(2015, 1, 1),
            'OptionSettings': [
                {
                    'ResourceName': 'string',
                    '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.

        • PlatformArn (string) --

          The ARN of the custom platform.

        • 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.

        • 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 .

            • ResourceName (string) --

              A unique resource name for a time-based scaling configuration option.

            • 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.

DescribeEnvironments (updated) Link ¶
Changes (response)
{'Environments': {'PlatformArn': 'string'}}

Returns descriptions for existing environments.

See also: AWS API Documentation

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',
            'PlatformArn': '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',
            'HealthStatus': 'NoData'|'Unknown'|'Pending'|'Ok'|'Info'|'Warning'|'Degraded'|'Severe',
            'Resources': {
                'LoadBalancer': {
                    'LoadBalancerName': 'string',
                    'Domain': 'string',
                    'Listeners': [
                        {
                            'Protocol': 'string',
                            'Port': 123
                        },
                    ]
                }
            },
            'Tier': {
                'Name': 'string',
                'Type': 'string',
                'Version': 'string'
            },
            'EnvironmentLinks': [
                {
                    'LinkName': 'string',
                    'EnvironmentName': '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.

        • PlatformArn (string) --

          The ARN of the custom platform.

        • 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) --

          Indicates if there is an in-progress environment configuration update or application version deployment that you can cancel.

          true: There is an update in progress.

          false: There are no updates currently in progress.

        • 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 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

        • HealthStatus (string) --

          Returns the health status of the application running in your environment. For more information, see Health Colors and Statuses .

        • 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.

        • EnvironmentLinks (list) --

          A list of links to other environments in the same group.

          • (dict) --

            A link to another environment, defined in the environment's manifest. Links provide connection information in system properties that can be used to connect to another environment in the same group. See Environment Manifest (env.yaml) for details.

            • LinkName (string) --

              The name of the link.

            • EnvironmentName (string) --

              The name of the linked environment (the dependency).

DescribeEvents (updated) Link ¶
Changes (request, response)
Request
{'PlatformArn': 'string'}
Response
{'Events': {'PlatformArn': 'string'}}

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

Note

This action returns the most recent 1,000 events from the specified NextToken .

See also: AWS API Documentation

Request Syntax

client.describe_events(
    ApplicationName='string',
    VersionLabel='string',
    TemplateName='string',
    EnvironmentId='string',
    EnvironmentName='string',
    PlatformArn='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 PlatformArn

string

param PlatformArn

The ARN of the version of the custom platform.

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',
            'PlatformArn': '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.

        • PlatformArn (string) --

          The ARN of the custom platform.

        • 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.

TerminateEnvironment (updated) Link ¶
Changes (response)
{'PlatformArn': 'string'}

Terminates the specified environment.

See also: AWS API Documentation

Request Syntax

client.terminate_environment(
    EnvironmentId='string',
    EnvironmentName='string',
    TerminateResources=True|False,
    ForceTerminate=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 : 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

type ForceTerminate

boolean

param ForceTerminate

Terminates the target environment even if another environment in the same group is dependent on it.

rtype

dict

returns

Response Syntax

{
    'EnvironmentName': 'string',
    'EnvironmentId': 'string',
    'ApplicationName': 'string',
    'VersionLabel': 'string',
    'SolutionStackName': 'string',
    'PlatformArn': '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',
    'HealthStatus': 'NoData'|'Unknown'|'Pending'|'Ok'|'Info'|'Warning'|'Degraded'|'Severe',
    'Resources': {
        'LoadBalancer': {
            'LoadBalancerName': 'string',
            'Domain': 'string',
            'Listeners': [
                {
                    'Protocol': 'string',
                    'Port': 123
                },
            ]
        }
    },
    'Tier': {
        'Name': 'string',
        'Type': 'string',
        'Version': 'string'
    },
    'EnvironmentLinks': [
        {
            'LinkName': 'string',
            'EnvironmentName': '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.

    • PlatformArn (string) --

      The ARN of the custom platform.

    • 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) --

      Indicates if there is an in-progress environment configuration update or application version deployment that you can cancel.

      true: There is an update in progress.

      false: There are no updates currently in progress.

    • 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 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

    • HealthStatus (string) --

      Returns the health status of the application running in your environment. For more information, see Health Colors and Statuses .

    • 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.

    • EnvironmentLinks (list) --

      A list of links to other environments in the same group.

      • (dict) --

        A link to another environment, defined in the environment's manifest. Links provide connection information in system properties that can be used to connect to another environment in the same group. See Environment Manifest (env.yaml) for details.

        • LinkName (string) --

          The name of the link.

        • EnvironmentName (string) --

          The name of the linked environment (the dependency).

UpdateConfigurationTemplate (updated) Link ¶
Changes (response)
{'PlatformArn': 'string'}

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

Note

If a property (for example, ApplicationName ) is not provided, its value remains unchanged. To clear such properties, specify an empty string.

Related Topics

  • DescribeConfigurationOptions

See also: AWS API Documentation

Request Syntax

client.update_configuration_template(
    ApplicationName='string',
    TemplateName='string',
    Description='string',
    OptionSettings=[
        {
            'ResourceName': 'string',
            'Namespace': 'string',
            'OptionName': 'string',
            'Value': 'string'
        },
    ],
    OptionsToRemove=[
        {
            'ResourceName': 'string',
            '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 .

    • ResourceName (string) --

      A unique resource name for a time-based scaling configuration option.

    • 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.

    • ResourceName (string) --

      A unique resource name for a time-based scaling 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',
    'PlatformArn': 'string',
    'ApplicationName': 'string',
    'TemplateName': 'string',
    'Description': 'string',
    'EnvironmentName': 'string',
    'DeploymentStatus': 'deployed'|'pending'|'failed',
    'DateCreated': datetime(2015, 1, 1),
    'DateUpdated': datetime(2015, 1, 1),
    'OptionSettings': [
        {
            'ResourceName': 'string',
            '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.

    • PlatformArn (string) --

      The ARN of the custom platform.

    • 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.

    • 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 .

        • ResourceName (string) --

          A unique resource name for a time-based scaling configuration option.

        • 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.

UpdateEnvironment (updated) Link ¶
Changes (both)
{'PlatformArn': 'string'}

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.

See also: AWS API Documentation

Request Syntax

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

string

param ApplicationName

The name of the application with which the environment is associated.

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 GroupName

string

param GroupName

The name of the group to which the target environment belongs. Specify a group name only if the environment's name is specified in an environment manifest and not with the environment name or environment ID parameters. See Environment Manifest (env.yaml) for details.

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: At this time, if you change the tier version, name, or 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 PlatformArn

string

param PlatformArn

The ARN of the platform, if used.

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 .

    • ResourceName (string) --

      A unique resource name for a time-based scaling configuration option.

    • 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.

    • ResourceName (string) --

      A unique resource name for a time-based scaling 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',
    'PlatformArn': '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',
    'HealthStatus': 'NoData'|'Unknown'|'Pending'|'Ok'|'Info'|'Warning'|'Degraded'|'Severe',
    'Resources': {
        'LoadBalancer': {
            'LoadBalancerName': 'string',
            'Domain': 'string',
            'Listeners': [
                {
                    'Protocol': 'string',
                    'Port': 123
                },
            ]
        }
    },
    'Tier': {
        'Name': 'string',
        'Type': 'string',
        'Version': 'string'
    },
    'EnvironmentLinks': [
        {
            'LinkName': 'string',
            'EnvironmentName': '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.

    • PlatformArn (string) --

      The ARN of the custom platform.

    • 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) --

      Indicates if there is an in-progress environment configuration update or application version deployment that you can cancel.

      true: There is an update in progress.

      false: There are no updates currently in progress.

    • 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 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

    • HealthStatus (string) --

      Returns the health status of the application running in your environment. For more information, see Health Colors and Statuses .

    • 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.

    • EnvironmentLinks (list) --

      A list of links to other environments in the same group.

      • (dict) --

        A link to another environment, defined in the environment's manifest. Links provide connection information in system properties that can be used to connect to another environment in the same group. See Environment Manifest (env.yaml) for details.

        • LinkName (string) --

          The name of the link.

        • EnvironmentName (string) --

          The name of the linked environment (the dependency).