Table of Contents
A low-level client representing AWS Elastic Beanstalk:
import boto3
client = boto3.client('elasticbeanstalk')
These are the available methods:
Cancels in-progress environment configuration update or application version deployment.
See also: AWS API Documentation
Request Syntax
response = client.abort_environment_update(
EnvironmentId='string',
EnvironmentName='string'
)
None
Exceptions
Examples
The following code aborts a running application version deployment for an environment named my-env:
response = client.abort_environment_update(
EnvironmentName='my-env',
)
print(response)
Expected Output:
{
'ResponseMetadata': {
'...': '...',
},
}
Applies a scheduled managed action immediately. A managed action can be applied only if its status is Scheduled . Get the status and action ID of a managed action with DescribeEnvironmentManagedActions .
See also: AWS API Documentation
Request Syntax
response = client.apply_environment_managed_action(
EnvironmentName='string',
EnvironmentId='string',
ActionId='string'
)
[REQUIRED]
The action ID of the scheduled managed action to execute.
dict
Response Syntax
{
'ActionId': 'string',
'ActionDescription': 'string',
'ActionType': 'InstanceRefresh'|'PlatformUpdate'|'Unknown',
'Status': 'string'
}
Response Structure
(dict) --
The result message containing information about the managed action.
ActionId (string) --
The action ID of the managed action.
ActionDescription (string) --
A description of the managed action.
ActionType (string) --
The type of managed action.
Status (string) --
The status of the managed action.
Exceptions
Add or change the operations role used by an environment. After this call is made, Elastic Beanstalk uses the associated operations role for permissions to downstream services during subsequent calls acting on this environment. For more information, see Operations roles in the AWS Elastic Beanstalk Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.associate_environment_operations_role(
EnvironmentName='string',
OperationsRole='string'
)
[REQUIRED]
The name of the environment to which to set the operations role.
[REQUIRED]
The Amazon Resource Name (ARN) of an existing IAM role to be used as the environment's operations role.
None
Exceptions
Check if an operation can be paginated.
Checks if the specified CNAME is available.
See also: AWS API Documentation
Request Syntax
response = client.check_dns_availability(
CNAMEPrefix='string'
)
[REQUIRED]
The prefix used when this CNAME is reserved.
{
'Available': True|False,
'FullyQualifiedCNAME': 'string'
}
Response Structure
Indicates if the specified CNAME is available.
Indicates if the specified CNAME is available:
The fully qualified CNAME to reserve when CreateEnvironment is called with the provided prefix.
Examples
The following operation checks the availability of the subdomain my-cname:
response = client.check_dns_availability(
CNAMEPrefix='my-cname',
)
print(response)
Expected Output:
{
'Available': True,
'FullyQualifiedCNAME': 'my-cname.us-west-2.elasticbeanstalk.com',
'ResponseMetadata': {
'...': '...',
},
}
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
response = client.compose_environments(
ApplicationName='string',
GroupName='string',
VersionLabels=[
'string',
]
)
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.
dict
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'|'Suspended',
'Resources': {
'LoadBalancer': {
'LoadBalancerName': 'string',
'Domain': 'string',
'Listeners': [
{
'Protocol': 'string',
'Port': 123
},
]
}
},
'Tier': {
'Name': 'string',
'Type': 'string',
'Version': 'string'
},
'EnvironmentLinks': [
{
'LinkName': 'string',
'EnvironmentName': 'string'
},
],
'EnvironmentArn': 'string',
'OperationsRole': 'string'
},
],
'NextToken': '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 platform version.
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:
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:
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.
Valid values:
Type (string) --
The type of this environment tier.
Valid values:
Version (string) --
The version of this environment tier. When you don't set a value to it, Elastic Beanstalk uses the latest compatible worker tier version.
Note
This member is deprecated. Any specific version that you set may become out of date. We recommend leaving it unspecified.
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).
EnvironmentArn (string) --
The environment's Amazon Resource Name (ARN), which can be used in other API requests that require an ARN.
OperationsRole (string) --
The Amazon Resource Name (ARN) of the environment's operations role. For more information, see Operations roles in the AWS Elastic Beanstalk Developer Guide .
NextToken (string) --
In a paginated request, the token that you can pass in a subsequent request to get the next response page.
Exceptions
Creates an application that has one configuration template named default and no application versions.
See also: AWS API Documentation
Request Syntax
response = client.create_application(
ApplicationName='string',
Description='string',
ResourceLifecycleConfig={
'ServiceRole': 'string',
'VersionLifecycleConfig': {
'MaxCountRule': {
'Enabled': True|False,
'MaxCount': 123,
'DeleteSourceFromS3': True|False
},
'MaxAgeRule': {
'Enabled': True|False,
'MaxAgeInDays': 123,
'DeleteSourceFromS3': True|False
}
}
},
Tags=[
{
'Key': 'string',
'Value': 'string'
},
]
)
[REQUIRED]
The name of the application. Must be unique within your account.
Specifies an application resource lifecycle configuration to prevent your application from accumulating too many versions.
The ARN of an IAM service role that Elastic Beanstalk has permission to assume.
The ServiceRole property is required the first time that you provide a VersionLifecycleConfig for the application in one of the supporting calls (CreateApplication or UpdateApplicationResourceLifecycle ). After you provide it once, in either one of the calls, Elastic Beanstalk persists the Service Role with the application, and you don't need to specify it again in subsequent UpdateApplicationResourceLifecycle calls. You can, however, specify it in subsequent calls to change the Service Role to another value.
Defines lifecycle settings for application versions.
Specify a max count rule to restrict the number of application versions that are retained for an application.
Specify true to apply the rule, or false to disable it.
Specify the maximum number of application versions to retain.
Set to true to delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes the application version.
Specify a max age rule to restrict the length of time that application versions are retained for an application.
Specify true to apply the rule, or false to disable it.
Specify the number of days to retain an application versions.
Set to true to delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes the application version.
Specifies the tags applied to the application.
Elastic Beanstalk applies these tags only to the application. Environments that you create in the application don't inherit the tags.
Describes a tag applied to a resource in an environment.
The key of the tag.
The value of the tag.
dict
Response Syntax
{
'Application': {
'ApplicationArn': 'string',
'ApplicationName': 'string',
'Description': 'string',
'DateCreated': datetime(2015, 1, 1),
'DateUpdated': datetime(2015, 1, 1),
'Versions': [
'string',
],
'ConfigurationTemplates': [
'string',
],
'ResourceLifecycleConfig': {
'ServiceRole': 'string',
'VersionLifecycleConfig': {
'MaxCountRule': {
'Enabled': True|False,
'MaxCount': 123,
'DeleteSourceFromS3': True|False
},
'MaxAgeRule': {
'Enabled': True|False,
'MaxAgeInDays': 123,
'DeleteSourceFromS3': True|False
}
}
}
}
}
Response Structure
(dict) --
Result message containing a single description of an application.
Application (dict) --
The ApplicationDescription of the application.
ApplicationArn (string) --
The Amazon Resource Name (ARN) 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.
ConfigurationTemplates (list) --
The names of the configuration templates associated with this application.
ResourceLifecycleConfig (dict) --
The lifecycle settings for the application.
ServiceRole (string) --
The ARN of an IAM service role that Elastic Beanstalk has permission to assume.
The ServiceRole property is required the first time that you provide a VersionLifecycleConfig for the application in one of the supporting calls (CreateApplication or UpdateApplicationResourceLifecycle ). After you provide it once, in either one of the calls, Elastic Beanstalk persists the Service Role with the application, and you don't need to specify it again in subsequent UpdateApplicationResourceLifecycle calls. You can, however, specify it in subsequent calls to change the Service Role to another value.
VersionLifecycleConfig (dict) --
Defines lifecycle settings for application versions.
MaxCountRule (dict) --
Specify a max count rule to restrict the number of application versions that are retained for an application.
Enabled (boolean) --
Specify true to apply the rule, or false to disable it.
MaxCount (integer) --
Specify the maximum number of application versions to retain.
DeleteSourceFromS3 (boolean) --
Set to true to delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes the application version.
MaxAgeRule (dict) --
Specify a max age rule to restrict the length of time that application versions are retained for an application.
Enabled (boolean) --
Specify true to apply the rule, or false to disable it.
MaxAgeInDays (integer) --
Specify the number of days to retain an application versions.
DeleteSourceFromS3 (boolean) --
Set to true to delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes the application version.
Exceptions
Examples
The following operation creates a new application named my-app:
response = client.create_application(
ApplicationName='my-app',
Description='my application',
)
print(response)
Expected Output:
{
'Application': {
'ApplicationName': 'my-app',
'ConfigurationTemplates': [
],
'DateCreated': datetime(2015, 2, 12, 18, 32, 21, 3, 43, 0),
'DateUpdated': datetime(2015, 2, 12, 18, 32, 21, 3, 43, 0),
'Description': 'my application',
},
'ResponseMetadata': {
'...': '...',
},
}
Creates an application version for the specified application. You can create an application version from a source bundle in Amazon S3, a commit in AWS CodeCommit, or the output of an AWS CodeBuild build as follows:
Specify a commit in an AWS CodeCommit repository with SourceBuildInformation .
Specify a build in an AWS CodeBuild with SourceBuildInformation and BuildConfiguration .
Specify a source bundle in S3 with SourceBundle
Omit both SourceBuildInformation and SourceBundle to use the default sample application.
Note
After you create an application version with a specified Amazon S3 bucket and key location, you can't change that Amazon S3 location. If you change the Amazon S3 location, you receive an exception when you attempt to launch an environment from the application version.
See also: AWS API Documentation
Request Syntax
response = client.create_application_version(
ApplicationName='string',
VersionLabel='string',
Description='string',
SourceBuildInformation={
'SourceType': 'Git'|'Zip',
'SourceRepository': 'CodeCommit'|'S3',
'SourceLocation': 'string'
},
SourceBundle={
'S3Bucket': 'string',
'S3Key': 'string'
},
BuildConfiguration={
'ArtifactName': 'string',
'CodeBuildServiceRole': 'string',
'ComputeType': 'BUILD_GENERAL1_SMALL'|'BUILD_GENERAL1_MEDIUM'|'BUILD_GENERAL1_LARGE',
'Image': 'string',
'TimeoutInMinutes': 123
},
AutoCreateApplication=True|False,
Process=True|False,
Tags=[
{
'Key': 'string',
'Value': 'string'
},
]
)
[REQUIRED]
The name of the application. If no application is found with this name, and AutoCreateApplication is false , returns an InvalidParameterValue error.
[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.
Specify a commit in an AWS CodeCommit Git repository to use as the source code for the application version.
The type of repository.
Location where the repository is stored.
The location of the source code, as a formatted string, depending on the value of SourceRepository
The Amazon S3 bucket and key that identify the location of the source bundle for this version.
Note
The Amazon S3 bucket must be in the same region as the environment.
Specify a source bundle in S3 or a commit in an AWS CodeCommit repository (with SourceBuildInformation ), but not both. If neither SourceBundle nor SourceBuildInformation are provided, Elastic Beanstalk uses a sample application.
The Amazon S3 bucket where the data is located.
The Amazon S3 key where the data is located.
Settings for an AWS CodeBuild build.
The name of the artifact of the CodeBuild build. If provided, Elastic Beanstalk stores the build artifact in the S3 location S3-bucket /resources/application-name /codebuild/codebuild-version-label -artifact-name .zip. If not provided, Elastic Beanstalk stores the build artifact in the S3 location S3-bucket /resources/application-name /codebuild/codebuild-version-label .zip.
The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) role that enables AWS CodeBuild to interact with dependent AWS services on behalf of the AWS account.
Information about the compute resources the build project will use.
The ID of the Docker image to use for this build project.
How long in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait until timing out any related build that does not get marked as completed. The default is 60 minutes.
Pre-processes and validates the environment manifest (env.yaml ) and configuration files (*.config files in the .ebextensions folder) in the source bundle. Validating configuration files can identify issues prior to deploying the application version to an environment.
You must turn processing on for application versions that you create using AWS CodeBuild or AWS CodeCommit. For application versions built from a source bundle in Amazon S3, processing is optional.
Note
The Process option validates Elastic Beanstalk configuration files. It doesn't validate your application's configuration files, like proxy server or Docker configuration.
Specifies the tags applied to the application version.
Elastic Beanstalk applies these tags only to the application version. Environments that use the application version don't inherit the tags.
Describes a tag applied to a resource in an environment.
The key of the tag.
The value of the tag.
dict
Response Syntax
{
'ApplicationVersion': {
'ApplicationVersionArn': 'string',
'ApplicationName': 'string',
'Description': 'string',
'VersionLabel': 'string',
'SourceBuildInformation': {
'SourceType': 'Git'|'Zip',
'SourceRepository': 'CodeCommit'|'S3',
'SourceLocation': 'string'
},
'BuildArn': 'string',
'SourceBundle': {
'S3Bucket': 'string',
'S3Key': 'string'
},
'DateCreated': datetime(2015, 1, 1),
'DateUpdated': datetime(2015, 1, 1),
'Status': 'Processed'|'Unprocessed'|'Failed'|'Processing'|'Building'
}
}
Response Structure
(dict) --
Result message wrapping a single description of an application version.
ApplicationVersion (dict) --
The ApplicationVersionDescription of the application version.
ApplicationVersionArn (string) --
The Amazon Resource Name (ARN) of the application version.
ApplicationName (string) --
The name of the application to which the application version belongs.
Description (string) --
The description of the application version.
VersionLabel (string) --
A unique identifier for the application version.
SourceBuildInformation (dict) --
If the version's source code was retrieved from AWS CodeCommit, the location of the source code for the application version.
SourceType (string) --
The type of repository.
SourceRepository (string) --
Location where the repository is stored.
SourceLocation (string) --
The location of the source code, as a formatted string, depending on the value of SourceRepository
BuildArn (string) --
Reference to the artifact from the AWS CodeBuild build.
SourceBundle (dict) --
The storage location of the application version's source bundle 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.
DateCreated (datetime) --
The creation date of the application version.
DateUpdated (datetime) --
The last modified date of the application version.
Status (string) --
The processing status of the application version. Reflects the state of the application version during its creation. Many of the values are only applicable if you specified True for the Process parameter of the CreateApplicationVersion action. The following list describes the possible values.
Exceptions
Examples
The following operation creates a new version (v1) of an application named my-app:
response = client.create_application_version(
ApplicationName='my-app',
AutoCreateApplication=True,
Description='my-app-v1',
Process=True,
SourceBundle={
'S3Bucket': 'my-bucket',
'S3Key': 'sample.war',
},
VersionLabel='v1',
)
print(response)
Expected Output:
{
'ApplicationVersion': {
'ApplicationName': 'my-app',
'DateCreated': datetime(2015, 2, 3, 23, 1, 25, 1, 34, 0),
'DateUpdated': datetime(2015, 2, 3, 23, 1, 25, 1, 34, 0),
'Description': 'my-app-v1',
'SourceBundle': {
'S3Bucket': 'my-bucket',
'S3Key': 'sample.war',
},
'VersionLabel': 'v1',
},
'ResponseMetadata': {
'...': '...',
},
}
Creates an AWS Elastic Beanstalk configuration template, associated with a specific Elastic Beanstalk application. You define application configuration settings in a configuration template. You can then use the configuration template to deploy different versions of the application with the same configuration settings.
Templates aren't associated with any environment. The EnvironmentName response element is always null .
Related Topics
See also: AWS API Documentation
Request Syntax
response = 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'
},
],
Tags=[
{
'Key': 'string',
'Value': 'string'
},
]
)
[REQUIRED]
The name of the Elastic Beanstalk application to associate with this configuration template.
[REQUIRED]
The name of the configuration template.
Constraint: This name must be unique per application.
The name of an Elastic Beanstalk solution stack (platform version) that this configuration uses. For example, 64bit Amazon Linux 2013.09 running Tomcat 7 Java 7 . A solution stack specifies the operating system, runtime, and application server for a configuration template. It also determines the set of configuration options as well as the possible and default values. For more information, see Supported Platforms in the AWS Elastic Beanstalk Developer Guide .
You must specify SolutionStackName if you don't specify PlatformArn , EnvironmentId , or SourceConfiguration .
Use the ` ListAvailableSolutionStacks https://docs.aws.amazon.com/elasticbeanstalk/latest/api/API_ListAvailableSolutionStacks.html`__ API to obtain a list of available solution stacks.
The Amazon Resource Name (ARN) of the custom platform. For more information, see Custom Platforms in the AWS Elastic Beanstalk Developer Guide .
Note
If you specify PlatformArn , then don't specify SolutionStackName .
An Elastic Beanstalk configuration template to base this one on. If specified, Elastic Beanstalk uses the configuration values from the specified configuration template to create a new configuration.
Values specified in OptionSettings override any values obtained from the SourceConfiguration .
You must specify SourceConfiguration if you don't specify PlatformArn , EnvironmentId , or SolutionStackName .
Constraint: If both solution stack name and source configuration are specified, the solution stack of the source configuration template must match the specified solution stack name.
The name of the application associated with the configuration.
The name of the configuration template.
Option values for the Elastic Beanstalk configuration, such as the instance type. If specified, these values override the values obtained from the solution stack or the source configuration template. For a complete list of Elastic Beanstalk configuration options, see Option Values in the AWS Elastic Beanstalk Developer Guide .
A specification identifying an individual configuration option along with its current value. For a list of possible namespaces and option values, see Option Values in the AWS Elastic Beanstalk Developer Guide .
A unique resource name for the option setting. Use it for a time–based scaling configuration option.
A unique namespace that identifies the option's associated AWS resource.
The name of the configuration option.
The current value for the configuration option.
Specifies the tags applied to the configuration template.
Describes a tag applied to a resource in an environment.
The key of the tag.
The value of the tag.
dict
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 platform version.
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:
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 namespaces and option values, see Option Values in the AWS Elastic Beanstalk Developer Guide .
ResourceName (string) --
A unique resource name for the option setting. Use it for a time–based scaling configuration option.
Namespace (string) --
A unique namespace that identifies the option's associated AWS resource.
OptionName (string) --
The name of the configuration option.
Value (string) --
The current value for the configuration option.
Exceptions
Examples
The following operation creates a configuration template named my-app-v1 from the settings applied to an environment with the id e-rpqsewtp2j:
response = client.create_configuration_template(
ApplicationName='my-app',
EnvironmentId='e-rpqsewtp2j',
TemplateName='my-app-v1',
)
print(response)
Expected Output:
{
'ApplicationName': 'my-app',
'DateCreated': datetime(2015, 8, 12, 18, 40, 39, 2, 224, 0),
'DateUpdated': datetime(2015, 8, 12, 18, 40, 39, 2, 224, 0),
'SolutionStackName': '64bit Amazon Linux 2015.03 v2.0.0 running Tomcat 8 Java 8',
'TemplateName': 'my-app-v1',
'ResponseMetadata': {
'...': '...',
},
}
Launches an AWS Elastic Beanstalk environment for the specified application using the specified configuration.
See also: AWS API Documentation
Request Syntax
response = 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'
},
],
OperationsRole='string'
)
[REQUIRED]
The name of the application that is associated with this environment.
A unique name for the environment.
Constraint: Must be from 4 to 40 characters in length. The name can contain only letters, numbers, and hyphens. It can't start or end with a hyphen. This name must be unique within a region in your account. If the specified name already exists in the region, Elastic Beanstalk returns an InvalidParameterValue error.
If you don't specify the CNAMEPrefix parameter, the environment name becomes part of the CNAME, and therefore part of the visible URL for your application.
Specifies the tier to use in creating this environment. The environment tier that you choose determines whether Elastic Beanstalk provisions resources to support a web application that handles HTTP(S) requests or a web application that handles background-processing tasks.
The name of this environment tier.
Valid values:
The type of this environment tier.
Valid values:
The version of this environment tier. When you don't set a value to it, Elastic Beanstalk uses the latest compatible worker tier version.
Note
This member is deprecated. Any specific version that you set may become out of date. We recommend leaving it unspecified.
Specifies the tags applied to resources in the environment.
Describes a tag applied to a resource in an environment.
The key of the tag.
The value of the tag.
The name of the application version to deploy.
Default: If not specified, Elastic Beanstalk attempts to deploy the sample application.
The name of the Elastic Beanstalk configuration template to use with the environment.
Note
If you specify TemplateName , then don't specify SolutionStackName .
The name of an Elastic Beanstalk solution stack (platform version) to use with the environment. If specified, Elastic Beanstalk sets the configuration values to the default values associated with the specified solution stack. For a list of current solution stacks, see Elastic Beanstalk Supported Platforms in the AWS Elastic Beanstalk Platforms guide.
Note
If you specify SolutionStackName , don't specify PlatformArn or TemplateName .
The Amazon Resource Name (ARN) of the custom platform to use with the environment. For more information, see Custom Platforms in the AWS Elastic Beanstalk Developer Guide .
Note
If you specify PlatformArn , don't specify SolutionStackName .
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.
A specification identifying an individual configuration option along with its current value. For a list of possible namespaces and option values, see Option Values in the AWS Elastic Beanstalk Developer Guide .
A unique resource name for the option setting. Use it for a time–based scaling configuration option.
A unique namespace that identifies the option's associated AWS resource.
The name of the configuration option.
The current value for the configuration option.
A list of custom user-defined configuration options to remove from the configuration set for this new environment.
A specification identifying an individual configuration option.
A unique resource name for a time-based scaling configuration option.
A unique namespace identifying the option's associated AWS resource.
The name of the configuration option.
dict
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'|'Suspended',
'Resources': {
'LoadBalancer': {
'LoadBalancerName': 'string',
'Domain': 'string',
'Listeners': [
{
'Protocol': 'string',
'Port': 123
},
]
}
},
'Tier': {
'Name': 'string',
'Type': 'string',
'Version': 'string'
},
'EnvironmentLinks': [
{
'LinkName': 'string',
'EnvironmentName': 'string'
},
],
'EnvironmentArn': 'string',
'OperationsRole': '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 platform version.
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:
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:
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.
Valid values:
Type (string) --
The type of this environment tier.
Valid values:
Version (string) --
The version of this environment tier. When you don't set a value to it, Elastic Beanstalk uses the latest compatible worker tier version.
Note
This member is deprecated. Any specific version that you set may become out of date. We recommend leaving it unspecified.
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).
EnvironmentArn (string) --
The environment's Amazon Resource Name (ARN), which can be used in other API requests that require an ARN.
OperationsRole (string) --
The Amazon Resource Name (ARN) of the environment's operations role. For more information, see Operations roles in the AWS Elastic Beanstalk Developer Guide .
Exceptions
Examples
The following operation creates a new environment for version v1 of a java application named my-app:
response = client.create_environment(
ApplicationName='my-app',
CNAMEPrefix='my-app',
EnvironmentName='my-env',
SolutionStackName='64bit Amazon Linux 2015.03 v2.0.0 running Tomcat 8 Java 8',
VersionLabel='v1',
)
print(response)
Expected Output:
{
'ApplicationName': 'my-app',
'CNAME': 'my-app.elasticbeanstalk.com',
'DateCreated': datetime(2015, 2, 3, 23, 4, 54, 1, 34, 0),
'DateUpdated': datetime(2015, 2, 3, 23, 4, 54, 1, 34, 0),
'EnvironmentId': 'e-izqpassy4h',
'EnvironmentName': 'my-env',
'Health': 'Grey',
'SolutionStackName': '64bit Amazon Linux 2015.03 v2.0.0 running Tomcat 8 Java 8',
'Status': 'Launching',
'Tier': {
'Name': 'WebServer',
'Type': 'Standard',
'Version': ' ',
},
'VersionLabel': 'v1',
'ResponseMetadata': {
'...': '...',
},
}
Create a new version of your custom platform.
See also: AWS API Documentation
Request Syntax
response = client.create_platform_version(
PlatformName='string',
PlatformVersion='string',
PlatformDefinitionBundle={
'S3Bucket': 'string',
'S3Key': 'string'
},
EnvironmentName='string',
OptionSettings=[
{
'ResourceName': 'string',
'Namespace': 'string',
'OptionName': 'string',
'Value': 'string'
},
],
Tags=[
{
'Key': 'string',
'Value': 'string'
},
]
)
[REQUIRED]
The name of your custom platform.
[REQUIRED]
The number, such as 1.0.2, for the new platform version.
[REQUIRED]
The location of the platform definition archive in Amazon S3.
The Amazon S3 bucket where the data is located.
The Amazon S3 key where the data is located.
The configuration option settings to apply to the builder environment.
A specification identifying an individual configuration option along with its current value. For a list of possible namespaces and option values, see Option Values in the AWS Elastic Beanstalk Developer Guide .
A unique resource name for the option setting. Use it for a time–based scaling configuration option.
A unique namespace that identifies the option's associated AWS resource.
The name of the configuration option.
The current value for the configuration option.
Specifies the tags applied to the new platform version.
Elastic Beanstalk applies these tags only to the platform version. Environments that you create using the platform version don't inherit the tags.
Describes a tag applied to a resource in an environment.
The key of the tag.
The value of the tag.
dict
Response Syntax
{
'PlatformSummary': {
'PlatformArn': 'string',
'PlatformOwner': 'string',
'PlatformStatus': 'Creating'|'Failed'|'Ready'|'Deleting'|'Deleted',
'PlatformCategory': 'string',
'OperatingSystemName': 'string',
'OperatingSystemVersion': 'string',
'SupportedTierList': [
'string',
],
'SupportedAddonList': [
'string',
],
'PlatformLifecycleState': 'string',
'PlatformVersion': 'string',
'PlatformBranchName': 'string',
'PlatformBranchLifecycleState': '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 version.
PlatformOwner (string) --
The AWS account ID of the person who created the platform version.
PlatformStatus (string) --
The status of the platform version. You can create an environment from the platform version once it is ready.
PlatformCategory (string) --
The category of platform version.
OperatingSystemName (string) --
The operating system used by the platform version.
OperatingSystemVersion (string) --
The version of the operating system used by the platform version.
SupportedTierList (list) --
The tiers in which the platform version runs.
SupportedAddonList (list) --
The additions associated with the platform version.
PlatformLifecycleState (string) --
The state of the platform version in its lifecycle.
Possible values: recommended | empty
If an empty value is returned, the platform version is supported but isn't the recommended one for its branch.
PlatformVersion (string) --
The version string of the platform version.
PlatformBranchName (string) --
The platform branch to which the platform version belongs.
PlatformBranchLifecycleState (string) --
The state of the platform version's branch in its lifecycle.
Possible values: beta | supported | deprecated | retired
Builder (dict) --
The builder used to create the custom platform.
ARN (string) --
The ARN of the builder.
Exceptions
Creates a bucket in Amazon S3 to store application versions, logs, and other files used by Elastic Beanstalk environments. The Elastic Beanstalk console and EB CLI call this API the first time you create an environment in a region. If the storage location already exists, CreateStorageLocation still returns the bucket name but does not create a new bucket.
See also: AWS API Documentation
Request Syntax
response = client.create_storage_location()
{
'S3Bucket': 'string'
}
Response Structure
Results of a CreateStorageLocationResult call.
The name of the Amazon S3 bucket created.
Exceptions
Examples
The following operation creates a new environment for version v1 of a java application named my-app:
response = client.create_storage_location(
)
print(response)
Expected Output:
{
'S3Bucket': 'elasticbeanstalk-us-west-2-0123456789012',
'ResponseMetadata': {
'...': '...',
},
}
Deletes the specified application along with all associated versions and configurations. The application versions will not be deleted from your Amazon S3 bucket.
Note
You cannot delete an application that has a running environment.
See also: AWS API Documentation
Request Syntax
response = client.delete_application(
ApplicationName='string',
TerminateEnvByForce=True|False
)
[REQUIRED]
The name of the application to delete.
None
Exceptions
Examples
The following operation deletes an application named my-app:
response = client.delete_application(
ApplicationName='my-app',
)
print(response)
Expected Output:
{
'ResponseMetadata': {
'...': '...',
},
}
Deletes the specified version from the specified application.
Note
You cannot delete an application version that is associated with a running environment.
See also: AWS API Documentation
Request Syntax
response = client.delete_application_version(
ApplicationName='string',
VersionLabel='string',
DeleteSourceBundle=True|False
)
[REQUIRED]
The name of the application to which the version belongs.
[REQUIRED]
The label of the version to delete.
None
Exceptions
Examples
The following operation deletes an application version named 22a0-stage-150819_182129 for an application named my-app:
response = client.delete_application_version(
ApplicationName='my-app',
DeleteSourceBundle=True,
VersionLabel='22a0-stage-150819_182129',
)
print(response)
Expected Output:
{
'ResponseMetadata': {
'...': '...',
},
}
Deletes the specified configuration template.
Note
When you launch an environment using a configuration template, the environment gets a copy of the template. You can delete or modify the environment's copy of the template without affecting the running environment.
See also: AWS API Documentation
Request Syntax
response = client.delete_configuration_template(
ApplicationName='string',
TemplateName='string'
)
[REQUIRED]
The name of the application to delete the configuration template from.
[REQUIRED]
The name of the configuration template to delete.
None
Exceptions
Examples
The following operation deletes a configuration template named my-template for an application named my-app:
response = client.delete_configuration_template(
ApplicationName='my-app',
TemplateName='my-template',
)
print(response)
Expected Output:
{
'ResponseMetadata': {
'...': '...',
},
}
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.
See also: AWS API Documentation
Request Syntax
response = client.delete_environment_configuration(
ApplicationName='string',
EnvironmentName='string'
)
[REQUIRED]
The name of the application the environment is associated with.
[REQUIRED]
The name of the environment to delete the draft configuration from.
None
Examples
The following operation deletes a draft configuration for an environment named my-env:
response = client.delete_environment_configuration(
ApplicationName='my-app',
EnvironmentName='my-env',
)
print(response)
Expected Output:
{
'ResponseMetadata': {
'...': '...',
},
}
Deletes the specified version of a custom platform.
See also: AWS API Documentation
Request Syntax
response = client.delete_platform_version(
PlatformArn='string'
)
{
'PlatformSummary': {
'PlatformArn': 'string',
'PlatformOwner': 'string',
'PlatformStatus': 'Creating'|'Failed'|'Ready'|'Deleting'|'Deleted',
'PlatformCategory': 'string',
'OperatingSystemName': 'string',
'OperatingSystemVersion': 'string',
'SupportedTierList': [
'string',
],
'SupportedAddonList': [
'string',
],
'PlatformLifecycleState': 'string',
'PlatformVersion': 'string',
'PlatformBranchName': 'string',
'PlatformBranchLifecycleState': 'string'
}
}
Response Structure
Detailed information about the version of the custom platform.
The ARN of the platform version.
The AWS account ID of the person who created the platform version.
The status of the platform version. You can create an environment from the platform version once it is ready.
The category of platform version.
The operating system used by the platform version.
The version of the operating system used by the platform version.
The tiers in which the platform version runs.
The additions associated with the platform version.
The state of the platform version in its lifecycle.
Possible values: recommended | empty
If an empty value is returned, the platform version is supported but isn't the recommended one for its branch.
The version string of the platform version.
The platform branch to which the platform version belongs.
The state of the platform version's branch in its lifecycle.
Possible values: beta | supported | deprecated | retired
Exceptions
Returns attributes related to AWS Elastic Beanstalk that are associated with the calling AWS account.
The result currently has one set of attributes—resource quotas.
See also: AWS API Documentation
Request Syntax
response = client.describe_account_attributes()
{
'ResourceQuotas': {
'ApplicationQuota': {
'Maximum': 123
},
'ApplicationVersionQuota': {
'Maximum': 123
},
'EnvironmentQuota': {
'Maximum': 123
},
'ConfigurationTemplateQuota': {
'Maximum': 123
},
'CustomPlatformQuota': {
'Maximum': 123
}
}
}
Response Structure
The Elastic Beanstalk resource quotas associated with the calling AWS account.
The quota for applications in the AWS account.
The maximum number of instances of this Elastic Beanstalk resource type that an AWS account can use.
The quota for application versions in the AWS account.
The maximum number of instances of this Elastic Beanstalk resource type that an AWS account can use.
The quota for environments in the AWS account.
The maximum number of instances of this Elastic Beanstalk resource type that an AWS account can use.
The quota for configuration templates in the AWS account.
The maximum number of instances of this Elastic Beanstalk resource type that an AWS account can use.
The quota for custom platforms in the AWS account.
The maximum number of instances of this Elastic Beanstalk resource type that an AWS account can use.
Exceptions
Retrieve a list of application versions.
See also: AWS API Documentation
Request Syntax
response = client.describe_application_versions(
ApplicationName='string',
VersionLabels=[
'string',
],
MaxRecords=123,
NextToken='string'
)
Specify a version label to show a specific application version.
For a paginated request. Specify a maximum number of application versions to include in each response.
If no MaxRecords is specified, all available application versions are retrieved in a single response.
For a paginated request. Specify a token from a previous response page to retrieve the next response page. All other parameter values must be identical to the ones specified in the initial request.
If no NextToken is specified, the first page is retrieved.
dict
Response Syntax
{
'ApplicationVersions': [
{
'ApplicationVersionArn': 'string',
'ApplicationName': 'string',
'Description': 'string',
'VersionLabel': 'string',
'SourceBuildInformation': {
'SourceType': 'Git'|'Zip',
'SourceRepository': 'CodeCommit'|'S3',
'SourceLocation': 'string'
},
'BuildArn': 'string',
'SourceBundle': {
'S3Bucket': 'string',
'S3Key': 'string'
},
'DateCreated': datetime(2015, 1, 1),
'DateUpdated': datetime(2015, 1, 1),
'Status': 'Processed'|'Unprocessed'|'Failed'|'Processing'|'Building'
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
Result message wrapping a list of application version descriptions.
ApplicationVersions (list) --
List of ApplicationVersionDescription objects sorted in order of creation.
(dict) --
Describes the properties of an application version.
ApplicationVersionArn (string) --
The Amazon Resource Name (ARN) of the application version.
ApplicationName (string) --
The name of the application to which the application version belongs.
Description (string) --
The description of the application version.
VersionLabel (string) --
A unique identifier for the application version.
SourceBuildInformation (dict) --
If the version's source code was retrieved from AWS CodeCommit, the location of the source code for the application version.
SourceType (string) --
The type of repository.
SourceRepository (string) --
Location where the repository is stored.
SourceLocation (string) --
The location of the source code, as a formatted string, depending on the value of SourceRepository
BuildArn (string) --
Reference to the artifact from the AWS CodeBuild build.
SourceBundle (dict) --
The storage location of the application version's source bundle 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.
DateCreated (datetime) --
The creation date of the application version.
DateUpdated (datetime) --
The last modified date of the application version.
Status (string) --
The processing status of the application version. Reflects the state of the application version during its creation. Many of the values are only applicable if you specified True for the Process parameter of the CreateApplicationVersion action. The following list describes the possible values.
NextToken (string) --
In a paginated request, the token that you can pass in a subsequent request to get the next response page.
Examples
The following operation retrieves information about an application version labeled v2:
response = client.describe_application_versions(
ApplicationName='my-app',
VersionLabels=[
'v2',
],
)
print(response)
Expected Output:
{
'ApplicationVersions': [
{
'ApplicationName': 'my-app',
'DateCreated': datetime(2015, 7, 23, 1, 32, 26, 3, 204, 0),
'DateUpdated': datetime(2015, 7, 23, 1, 32, 26, 3, 204, 0),
'Description': 'update cover page',
'SourceBundle': {
'S3Bucket': 'elasticbeanstalk-us-west-2-015321684451',
'S3Key': 'my-app/5026-stage-150723_224258.war',
},
'VersionLabel': 'v2',
},
{
'ApplicationName': 'my-app',
'DateCreated': datetime(2015, 7, 23, 22, 26, 10, 3, 204, 0),
'DateUpdated': datetime(2015, 7, 23, 22, 26, 10, 3, 204, 0),
'Description': 'initial version',
'SourceBundle': {
'S3Bucket': 'elasticbeanstalk-us-west-2-015321684451',
'S3Key': 'my-app/5026-stage-150723_222618.war',
},
'VersionLabel': 'v1',
},
],
'ResponseMetadata': {
'...': '...',
},
}
Returns the descriptions of existing applications.
See also: AWS API Documentation
Request Syntax
response = client.describe_applications(
ApplicationNames=[
'string',
]
)
If specified, AWS Elastic Beanstalk restricts the returned descriptions to only include those with the specified names.
{
'Applications': [
{
'ApplicationArn': 'string',
'ApplicationName': 'string',
'Description': 'string',
'DateCreated': datetime(2015, 1, 1),
'DateUpdated': datetime(2015, 1, 1),
'Versions': [
'string',
],
'ConfigurationTemplates': [
'string',
],
'ResourceLifecycleConfig': {
'ServiceRole': 'string',
'VersionLifecycleConfig': {
'MaxCountRule': {
'Enabled': True|False,
'MaxCount': 123,
'DeleteSourceFromS3': True|False
},
'MaxAgeRule': {
'Enabled': True|False,
'MaxAgeInDays': 123,
'DeleteSourceFromS3': True|False
}
}
}
},
]
}
Response Structure
Result message containing a list of application descriptions.
This parameter contains a list of ApplicationDescription .
Describes the properties of an application.
The Amazon Resource Name (ARN) of the application.
The name of the application.
User-defined description of the application.
The date when the application was created.
The date when the application was last modified.
The names of the versions for this application.
The names of the configuration templates associated with this application.
The lifecycle settings for the application.
The ARN of an IAM service role that Elastic Beanstalk has permission to assume.
The ServiceRole property is required the first time that you provide a VersionLifecycleConfig for the application in one of the supporting calls (CreateApplication or UpdateApplicationResourceLifecycle ). After you provide it once, in either one of the calls, Elastic Beanstalk persists the Service Role with the application, and you don't need to specify it again in subsequent UpdateApplicationResourceLifecycle calls. You can, however, specify it in subsequent calls to change the Service Role to another value.
Defines lifecycle settings for application versions.
Specify a max count rule to restrict the number of application versions that are retained for an application.
Specify true to apply the rule, or false to disable it.
Specify the maximum number of application versions to retain.
Set to true to delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes the application version.
Specify a max age rule to restrict the length of time that application versions are retained for an application.
Specify true to apply the rule, or false to disable it.
Specify the number of days to retain an application versions.
Set to true to delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes the application version.
Examples
The following operation retrieves information about applications in the current region:
response = client.describe_applications(
)
print(response)
Expected Output:
{
'Applications': [
{
'ApplicationName': 'ruby',
'ConfigurationTemplates': [
],
'DateCreated': datetime(2015, 8, 13, 21, 5, 44, 3, 225, 0),
'DateUpdated': datetime(2015, 8, 13, 21, 5, 44, 3, 225, 0),
'Versions': [
'Sample Application',
],
},
{
'ApplicationName': 'pythonsample',
'ConfigurationTemplates': [
],
'DateCreated': datetime(2015, 8, 13, 19, 5, 43, 3, 225, 0),
'DateUpdated': datetime(2015, 8, 13, 19, 5, 43, 3, 225, 0),
'Description': 'Application created from the EB CLI using "eb init"',
'Versions': [
'Sample Application',
],
},
{
'ApplicationName': 'nodejs-example',
'ConfigurationTemplates': [
],
'DateCreated': datetime(2015, 8, 6, 17, 50, 2, 3, 218, 0),
'DateUpdated': datetime(2015, 8, 6, 17, 50, 2, 3, 218, 0),
'Versions': [
'add elasticache',
'First Release',
],
},
],
'ResponseMetadata': {
'...': '...',
},
}
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
response = client.describe_configuration_options(
ApplicationName='string',
TemplateName='string',
EnvironmentName='string',
SolutionStackName='string',
PlatformArn='string',
Options=[
{
'ResourceName': 'string',
'Namespace': 'string',
'OptionName': 'string'
},
]
)
If specified, restricts the descriptions to only the specified options.
A specification identifying an individual configuration option.
A unique resource name for a time-based scaling configuration option.
A unique namespace identifying the option's associated AWS resource.
The name of the configuration option.
dict
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 platform version.
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:
UserDefined (boolean) --
An indication of whether the user defined this configuration option:
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:
ValueOptions (list) --
If specified, values for the configuration option are selected from this list.
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.
Exceptions
Examples
The following operation retrieves descriptions of all available configuration options for an environment named my-env:
response = client.describe_configuration_options(
ApplicationName='my-app',
EnvironmentName='my-env',
)
print(response)
Expected Output:
{
'Options': [
{
'ChangeSeverity': 'NoInterruption',
'DefaultValue': '30',
'MaxValue': 300,
'MinValue': 5,
'Name': 'Interval',
'Namespace': 'aws:elb:healthcheck',
'UserDefined': False,
'ValueType': 'Scalar',
},
{
'ChangeSeverity': 'NoInterruption',
'DefaultValue': '2000000',
'MinValue': 0,
'Name': 'LowerThreshold',
'Namespace': 'aws:autoscaling:trigger',
'UserDefined': False,
'ValueType': 'Scalar',
},
],
'ResponseMetadata': {
'...': '...',
},
}
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
See also: AWS API Documentation
Request Syntax
response = client.describe_configuration_settings(
ApplicationName='string',
TemplateName='string',
EnvironmentName='string'
)
[REQUIRED]
The application for the environment or configuration template.
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.
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.
dict
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 platform version.
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:
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 namespaces and option values, see Option Values in the AWS Elastic Beanstalk Developer Guide .
ResourceName (string) --
A unique resource name for the option setting. Use it for a time–based scaling configuration option.
Namespace (string) --
A unique namespace that identifies the option's associated AWS resource.
OptionName (string) --
The name of the configuration option.
Value (string) --
The current value for the configuration option.
Exceptions
Examples
The following operation retrieves configuration settings for an environment named my-env:
response = client.describe_configuration_settings(
ApplicationName='my-app',
EnvironmentName='my-env',
)
print(response)
Expected Output:
{
'ConfigurationSettings': [
{
'ApplicationName': 'my-app',
'DateCreated': datetime(2015, 8, 13, 19, 16, 25, 3, 225, 0),
'DateUpdated': datetime(2015, 8, 13, 23, 30, 7, 3, 225, 0),
'DeploymentStatus': 'deployed',
'Description': 'Environment created from the EB CLI using "eb create"',
'EnvironmentName': 'my-env',
'OptionSettings': [
{
'Namespace': 'aws:autoscaling:asg',
'OptionName': 'Availability Zones',
'ResourceName': 'AWSEBAutoScalingGroup',
'Value': 'Any',
},
{
'Namespace': 'aws:autoscaling:asg',
'OptionName': 'Cooldown',
'ResourceName': 'AWSEBAutoScalingGroup',
'Value': '360',
},
{
'Namespace': 'aws:elb:policies',
'OptionName': 'ConnectionDrainingTimeout',
'ResourceName': 'AWSEBLoadBalancer',
'Value': '20',
},
{
'Namespace': 'aws:elb:policies',
'OptionName': 'ConnectionSettingIdleTimeout',
'ResourceName': 'AWSEBLoadBalancer',
'Value': '60',
},
],
'SolutionStackName': '64bit Amazon Linux 2015.03 v2.0.0 running Tomcat 8 Java 8',
},
],
'ResponseMetadata': {
'...': '...',
},
}
Returns information about the overall health of the specified environment. The DescribeEnvironmentHealth operation is only available with AWS Elastic Beanstalk Enhanced Health.
See also: AWS API Documentation
Request Syntax
response = client.describe_environment_health(
EnvironmentName='string',
EnvironmentId='string',
AttributeNames=[
'Status'|'Color'|'Causes'|'ApplicationMetrics'|'InstancesHealth'|'All'|'HealthStatus'|'RefreshedAt',
]
)
Specify the environment by name.
You must specify either this or an EnvironmentName, or both.
Specify the environment by ID.
You must specify either this or an EnvironmentName, or both.
Specify the response elements to return. To retrieve all attributes, set to All . If no attribute names are specified, returns the name of the environment.
dict
Response Syntax
{
'EnvironmentName': 'string',
'HealthStatus': 'string',
'Status': 'Green'|'Yellow'|'Red'|'Grey',
'Color': 'string',
'Causes': [
'string',
],
'ApplicationMetrics': {
'Duration': 123,
'RequestCount': 123,
'StatusCodes': {
'Status2xx': 123,
'Status3xx': 123,
'Status4xx': 123,
'Status5xx': 123
},
'Latency': {
'P999': 123.0,
'P99': 123.0,
'P95': 123.0,
'P90': 123.0,
'P85': 123.0,
'P75': 123.0,
'P50': 123.0,
'P10': 123.0
}
},
'InstancesHealth': {
'NoData': 123,
'Unknown': 123,
'Pending': 123,
'Ok': 123,
'Info': 123,
'Warning': 123,
'Degraded': 123,
'Severe': 123
},
'RefreshedAt': datetime(2015, 1, 1)
}
Response Structure
(dict) --
Health details for an AWS Elastic Beanstalk environment.
EnvironmentName (string) --
The environment's name.
HealthStatus (string) --
The health status of the environment. For example, Ok .
Status (string) --
The environment's operational status. Ready , Launching , Updating , Terminating , or Terminated .
Color (string) --
The health color of the environment.
Causes (list) --
Descriptions of the data that contributed to the environment's current health status.
ApplicationMetrics (dict) --
Application request metrics for the environment.
Duration (integer) --
The amount of time that the metrics cover (usually 10 seconds). For example, you might have 5 requests (request_count ) within the most recent time slice of 10 seconds (duration ).
RequestCount (integer) --
Average number of requests handled by the web server per second over the last 10 seconds.
StatusCodes (dict) --
Represents the percentage of requests over the last 10 seconds that resulted in each type of status code response.
Status2xx (integer) --
The percentage of requests over the last 10 seconds that resulted in a 2xx (200, 201, etc.) status code.
Status3xx (integer) --
The percentage of requests over the last 10 seconds that resulted in a 3xx (300, 301, etc.) status code.
Status4xx (integer) --
The percentage of requests over the last 10 seconds that resulted in a 4xx (400, 401, etc.) status code.
Status5xx (integer) --
The percentage of requests over the last 10 seconds that resulted in a 5xx (500, 501, etc.) status code.
Latency (dict) --
Represents the average latency for the slowest X percent of requests over the last 10 seconds. Latencies are in seconds with one millisecond resolution.
P999 (float) --
The average latency for the slowest 0.1 percent of requests over the last 10 seconds.
P99 (float) --
The average latency for the slowest 1 percent of requests over the last 10 seconds.
P95 (float) --
The average latency for the slowest 5 percent of requests over the last 10 seconds.
P90 (float) --
The average latency for the slowest 10 percent of requests over the last 10 seconds.
P85 (float) --
The average latency for the slowest 15 percent of requests over the last 10 seconds.
P75 (float) --
The average latency for the slowest 25 percent of requests over the last 10 seconds.
P50 (float) --
The average latency for the slowest 50 percent of requests over the last 10 seconds.
P10 (float) --
The average latency for the slowest 90 percent of requests over the last 10 seconds.
InstancesHealth (dict) --
Summary health information for the instances in the environment.
NoData (integer) --
Grey. AWS Elastic Beanstalk and the health agent are reporting no data on an instance.
Unknown (integer) --
Grey. AWS Elastic Beanstalk and the health agent are reporting an insufficient amount of data on an instance.
Pending (integer) --
Grey. An operation is in progress on an instance within the command timeout.
Ok (integer) --
Green. An instance is passing health checks and the health agent is not reporting any problems.
Info (integer) --
Green. An operation is in progress on an instance.
Warning (integer) --
Yellow. The health agent is reporting a moderate number of request failures or other issues for an instance or environment.
Degraded (integer) --
Red. The health agent is reporting a high number of request failures or other issues for an instance or environment.
Severe (integer) --
Red. The health agent is reporting a very high number of request failures or other issues for an instance or environment.
RefreshedAt (datetime) --
The date and time that the health information was retrieved.
Exceptions
Examples
The following operation retrieves overall health information for an environment named my-env:
response = client.describe_environment_health(
AttributeNames=[
'All',
],
EnvironmentName='my-env',
)
print(response)
Expected Output:
{
'ApplicationMetrics': {
'Duration': 10,
'Latency': {
'P10': 0.001,
'P50': 0.001,
'P75': 0.002,
'P85': 0.003,
'P90': 0.003,
'P95': 0.004,
'P99': 0.004,
'P999': 0.004,
},
'RequestCount': 45,
'StatusCodes': {
'Status2xx': 45,
'Status3xx': 0,
'Status4xx': 0,
'Status5xx': 0,
},
},
'Causes': [
],
'Color': 'Green',
'EnvironmentName': 'my-env',
'HealthStatus': 'Ok',
'InstancesHealth': {
'Degraded': 0,
'Info': 0,
'NoData': 0,
'Ok': 1,
'Pending': 0,
'Severe': 0,
'Unknown': 0,
'Warning': 0,
},
'RefreshedAt': datetime(2015, 8, 20, 21, 9, 18, 3, 232, 0),
'ResponseMetadata': {
'...': '...',
},
}
Lists an environment's completed and failed managed actions.
See also: AWS API Documentation
Request Syntax
response = client.describe_environment_managed_action_history(
EnvironmentId='string',
EnvironmentName='string',
NextToken='string',
MaxItems=123
)
dict
Response Syntax
{
'ManagedActionHistoryItems': [
{
'ActionId': 'string',
'ActionType': 'InstanceRefresh'|'PlatformUpdate'|'Unknown',
'ActionDescription': 'string',
'FailureType': 'UpdateCancelled'|'CancellationFailed'|'RollbackFailed'|'RollbackSuccessful'|'InternalFailure'|'InvalidEnvironmentState'|'PermissionsError',
'Status': 'Completed'|'Failed'|'Unknown',
'FailureDescription': 'string',
'ExecutedTime': datetime(2015, 1, 1),
'FinishedTime': datetime(2015, 1, 1)
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
A result message containing a list of completed and failed managed actions.
ManagedActionHistoryItems (list) --
A list of completed and failed managed actions.
(dict) --
The record of a completed or failed managed action.
ActionId (string) --
A unique identifier for the managed action.
ActionType (string) --
The type of the managed action.
ActionDescription (string) --
A description of the managed action.
FailureType (string) --
If the action failed, the type of failure.
Status (string) --
The status of the action.
FailureDescription (string) --
If the action failed, a description of the failure.
ExecutedTime (datetime) --
The date and time that the action started executing.
FinishedTime (datetime) --
The date and time that the action finished executing.
NextToken (string) --
A pagination token that you pass to DescribeEnvironmentManagedActionHistory to get the next page of results.
Exceptions
Lists an environment's upcoming and in-progress managed actions.
See also: AWS API Documentation
Request Syntax
response = client.describe_environment_managed_actions(
EnvironmentName='string',
EnvironmentId='string',
Status='Scheduled'|'Pending'|'Running'|'Unknown'
)
dict
Response Syntax
{
'ManagedActions': [
{
'ActionId': 'string',
'ActionDescription': 'string',
'ActionType': 'InstanceRefresh'|'PlatformUpdate'|'Unknown',
'Status': 'Scheduled'|'Pending'|'Running'|'Unknown',
'WindowStartTime': datetime(2015, 1, 1)
},
]
}
Response Structure
(dict) --
The result message containing a list of managed actions.
ManagedActions (list) --
A list of upcoming and in-progress managed actions.
(dict) --
The record of an upcoming or in-progress managed action.
ActionId (string) --
A unique identifier for the managed action.
ActionDescription (string) --
A description of the managed action.
ActionType (string) --
The type of managed action.
Status (string) --
The status of the managed action. If the action is Scheduled , you can apply it immediately with ApplyEnvironmentManagedAction .
WindowStartTime (datetime) --
The start time of the maintenance window in which the managed action will execute.
Exceptions
Returns AWS resources for this environment.
See also: AWS API Documentation
Request Syntax
response = client.describe_environment_resources(
EnvironmentId='string',
EnvironmentName='string'
)
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.
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.
dict
Response Syntax
{
'EnvironmentResources': {
'EnvironmentName': 'string',
'AutoScalingGroups': [
{
'Name': 'string'
},
],
'Instances': [
{
'Id': 'string'
},
],
'LaunchConfigurations': [
{
'Name': 'string'
},
],
'LaunchTemplates': [
{
'Id': '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.
LaunchTemplates (list) --
The Amazon EC2 launch templates in use by this environment.
(dict) --
Describes an Amazon EC2 launch template.
Id (string) --
The ID of the launch template.
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.
Exceptions
Examples
The following operation retrieves information about resources in an environment named my-env:
response = client.describe_environment_resources(
EnvironmentName='my-env',
)
print(response)
Expected Output:
{
'EnvironmentResources': {
'AutoScalingGroups': [
{
'Name': 'awseb-e-qu3fyyjyjs-stack-AWSEBAutoScalingGroup-QSB2ZO88SXZT',
},
],
'EnvironmentName': 'my-env',
'Instances': [
{
'Id': 'i-0c91c786',
},
],
'LaunchConfigurations': [
{
'Name': 'awseb-e-qu3fyyjyjs-stack-AWSEBAutoScalingLaunchConfiguration-1UUVQIBC96TQ2',
},
],
'LoadBalancers': [
{
'Name': 'awseb-e-q-AWSEBLoa-1EEPZ0K98BIF0',
},
],
'Queues': [
],
'Triggers': [
],
},
'ResponseMetadata': {
'...': '...',
},
}
Returns descriptions for existing environments.
See also: AWS API Documentation
Request Syntax
response = client.describe_environments(
ApplicationName='string',
VersionLabel='string',
EnvironmentIds=[
'string',
],
EnvironmentNames=[
'string',
],
IncludeDeleted=True|False,
IncludedDeletedBackTo=datetime(2015, 1, 1),
MaxRecords=123,
NextToken='string'
)
If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that have the specified IDs.
If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that have the specified names.
Indicates whether to include deleted environments:
true : Environments that have been deleted after IncludedDeletedBackTo are displayed.false : Do not include deleted environments.
For a paginated request. Specify a maximum number of environments to include in each response.
If no MaxRecords is specified, all available environments are retrieved in a single response.
For a paginated request. Specify a token from a previous response page to retrieve the next response page. All other parameter values must be identical to the ones specified in the initial request.
If no NextToken is specified, the first page is retrieved.
dict
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'|'Suspended',
'Resources': {
'LoadBalancer': {
'LoadBalancerName': 'string',
'Domain': 'string',
'Listeners': [
{
'Protocol': 'string',
'Port': 123
},
]
}
},
'Tier': {
'Name': 'string',
'Type': 'string',
'Version': 'string'
},
'EnvironmentLinks': [
{
'LinkName': 'string',
'EnvironmentName': 'string'
},
],
'EnvironmentArn': 'string',
'OperationsRole': 'string'
},
],
'NextToken': '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 platform version.
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:
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:
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.
Valid values:
Type (string) --
The type of this environment tier.
Valid values:
Version (string) --
The version of this environment tier. When you don't set a value to it, Elastic Beanstalk uses the latest compatible worker tier version.
Note
This member is deprecated. Any specific version that you set may become out of date. We recommend leaving it unspecified.
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).
EnvironmentArn (string) --
The environment's Amazon Resource Name (ARN), which can be used in other API requests that require an ARN.
OperationsRole (string) --
The Amazon Resource Name (ARN) of the environment's operations role. For more information, see Operations roles in the AWS Elastic Beanstalk Developer Guide .
NextToken (string) --
In a paginated request, the token that you can pass in a subsequent request to get the next response page.
Examples
The following operation retrieves information about an environment named my-env:
response = client.describe_environments(
EnvironmentNames=[
'my-env',
],
)
print(response)
Expected Output:
{
'Environments': [
{
'AbortableOperationInProgress': False,
'ApplicationName': 'my-app',
'CNAME': 'my-env.elasticbeanstalk.com',
'DateCreated': datetime(2015, 8, 7, 20, 48, 49, 4, 219, 0),
'DateUpdated': datetime(2015, 8, 12, 18, 16, 55, 2, 224, 0),
'EndpointURL': 'awseb-e-w-AWSEBLoa-1483140XB0Q4L-109QXY8121.us-west-2.elb.amazonaws.com',
'EnvironmentId': 'e-rpqsewtp2j',
'EnvironmentName': 'my-env',
'Health': 'Green',
'SolutionStackName': '64bit Amazon Linux 2015.03 v2.0.0 running Tomcat 8 Java 8',
'Status': 'Ready',
'Tier': {
'Name': 'WebServer',
'Type': 'Standard',
'Version': ' ',
},
'VersionLabel': '7f58-stage-150812_025409',
},
],
'ResponseMetadata': {
'...': '...',
},
}
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
response = 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'
)
dict
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 platform version.
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.
Examples
The following operation retrieves events for an environment named my-env:
response = client.describe_events(
EnvironmentName='my-env',
)
print(response)
Expected Output:
{
'Events': [
{
'ApplicationName': 'my-app',
'EnvironmentName': 'my-env',
'EventDate': datetime(2015, 8, 20, 7, 6, 53, 3, 232, 0),
'Message': 'Environment health has transitioned from Info to Ok.',
'Severity': 'INFO',
},
{
'ApplicationName': 'my-app',
'EnvironmentName': 'my-env',
'EventDate': datetime(2015, 8, 20, 7, 6, 2, 3, 232, 0),
'Message': 'Environment update completed successfully.',
'RequestId': 'b7f3960b-4709-11e5-ba1e-07e16200da41',
'Severity': 'INFO',
},
{
'ApplicationName': 'my-app',
'EnvironmentName': 'my-env',
'EventDate': datetime(2015, 8, 13, 19, 16, 27, 3, 225, 0),
'Message': 'Using elasticbeanstalk-us-west-2-012445113685 as Amazon S3 storage bucket for environment data.',
'RequestId': 'ca8dfbf6-41ef-11e5-988b-651aa638f46b',
'Severity': 'INFO',
},
{
'ApplicationName': 'my-app',
'EnvironmentName': 'my-env',
'EventDate': datetime(2015, 8, 13, 19, 16, 26, 3, 225, 0),
'Message': 'createEnvironment is starting.',
'RequestId': 'cdfba8f6-41ef-11e5-988b-65638f41aa6b',
'Severity': 'INFO',
},
],
'ResponseMetadata': {
'...': '...',
},
}
Retrieves detailed information about the health of instances in your AWS Elastic Beanstalk. This operation requires enhanced health reporting .
See also: AWS API Documentation
Request Syntax
response = client.describe_instances_health(
EnvironmentName='string',
EnvironmentId='string',
AttributeNames=[
'HealthStatus'|'Color'|'Causes'|'ApplicationMetrics'|'RefreshedAt'|'LaunchedAt'|'System'|'Deployment'|'AvailabilityZone'|'InstanceType'|'All',
],
NextToken='string'
)
Specifies the response elements you wish to receive. To retrieve all attributes, set to All . If no attribute names are specified, returns a list of instances.
dict
Response Syntax
{
'InstanceHealthList': [
{
'InstanceId': 'string',
'HealthStatus': 'string',
'Color': 'string',
'Causes': [
'string',
],
'LaunchedAt': datetime(2015, 1, 1),
'ApplicationMetrics': {
'Duration': 123,
'RequestCount': 123,
'StatusCodes': {
'Status2xx': 123,
'Status3xx': 123,
'Status4xx': 123,
'Status5xx': 123
},
'Latency': {
'P999': 123.0,
'P99': 123.0,
'P95': 123.0,
'P90': 123.0,
'P85': 123.0,
'P75': 123.0,
'P50': 123.0,
'P10': 123.0
}
},
'System': {
'CPUUtilization': {
'User': 123.0,
'Nice': 123.0,
'System': 123.0,
'Idle': 123.0,
'IOWait': 123.0,
'IRQ': 123.0,
'SoftIRQ': 123.0,
'Privileged': 123.0
},
'LoadAverage': [
123.0,
]
},
'Deployment': {
'VersionLabel': 'string',
'DeploymentId': 123,
'Status': 'string',
'DeploymentTime': datetime(2015, 1, 1)
},
'AvailabilityZone': 'string',
'InstanceType': 'string'
},
],
'RefreshedAt': datetime(2015, 1, 1),
'NextToken': 'string'
}
Response Structure
(dict) --
Detailed health information about the Amazon EC2 instances in an AWS Elastic Beanstalk environment.
InstanceHealthList (list) --
Detailed health information about each instance.
The output differs slightly between Linux and Windows environments. There is a difference in the members that are supported under the <CPUUtilization> type.
(dict) --
Detailed health information about an Amazon EC2 instance in your Elastic Beanstalk environment.
InstanceId (string) --
The ID of the Amazon EC2 instance.
HealthStatus (string) --
Returns the health status of the specified instance. For more information, see Health Colors and Statuses .
Color (string) --
Represents the color indicator that gives you information about the health of the EC2 instance. For more information, see Health Colors and Statuses .
Causes (list) --
Represents the causes, which provide more information about the current health status.
LaunchedAt (datetime) --
The time at which the EC2 instance was launched.
ApplicationMetrics (dict) --
Request metrics from your application.
Duration (integer) --
The amount of time that the metrics cover (usually 10 seconds). For example, you might have 5 requests (request_count ) within the most recent time slice of 10 seconds (duration ).
RequestCount (integer) --
Average number of requests handled by the web server per second over the last 10 seconds.
StatusCodes (dict) --
Represents the percentage of requests over the last 10 seconds that resulted in each type of status code response.
Status2xx (integer) --
The percentage of requests over the last 10 seconds that resulted in a 2xx (200, 201, etc.) status code.
Status3xx (integer) --
The percentage of requests over the last 10 seconds that resulted in a 3xx (300, 301, etc.) status code.
Status4xx (integer) --
The percentage of requests over the last 10 seconds that resulted in a 4xx (400, 401, etc.) status code.
Status5xx (integer) --
The percentage of requests over the last 10 seconds that resulted in a 5xx (500, 501, etc.) status code.
Latency (dict) --
Represents the average latency for the slowest X percent of requests over the last 10 seconds. Latencies are in seconds with one millisecond resolution.
P999 (float) --
The average latency for the slowest 0.1 percent of requests over the last 10 seconds.
P99 (float) --
The average latency for the slowest 1 percent of requests over the last 10 seconds.
P95 (float) --
The average latency for the slowest 5 percent of requests over the last 10 seconds.
P90 (float) --
The average latency for the slowest 10 percent of requests over the last 10 seconds.
P85 (float) --
The average latency for the slowest 15 percent of requests over the last 10 seconds.
P75 (float) --
The average latency for the slowest 25 percent of requests over the last 10 seconds.
P50 (float) --
The average latency for the slowest 50 percent of requests over the last 10 seconds.
P10 (float) --
The average latency for the slowest 90 percent of requests over the last 10 seconds.
System (dict) --
Operating system metrics from the instance.
CPUUtilization (dict) --
CPU utilization metrics for the instance.
User (float) --
Percentage of time that the CPU has spent in the User state over the last 10 seconds.
Nice (float) --
Available on Linux environments only.
Percentage of time that the CPU has spent in the Nice state over the last 10 seconds.
System (float) --
Available on Linux environments only.
Percentage of time that the CPU has spent in the System state over the last 10 seconds.
Idle (float) --
Percentage of time that the CPU has spent in the Idle state over the last 10 seconds.
IOWait (float) --
Available on Linux environments only.
Percentage of time that the CPU has spent in the I/O Wait state over the last 10 seconds.
IRQ (float) --
Available on Linux environments only.
Percentage of time that the CPU has spent in the IRQ state over the last 10 seconds.
SoftIRQ (float) --
Available on Linux environments only.
Percentage of time that the CPU has spent in the SoftIRQ state over the last 10 seconds.
Privileged (float) --
Available on Windows environments only.
Percentage of time that the CPU has spent in the Privileged state over the last 10 seconds.
LoadAverage (list) --
Load average in the last 1-minute, 5-minute, and 15-minute periods. For more information, see Operating System Metrics .
Deployment (dict) --
Information about the most recent deployment to an instance.
VersionLabel (string) --
The version label of the application version in the deployment.
DeploymentId (integer) --
The ID of the deployment. This number increases by one each time that you deploy source code or change instance configuration settings.
Status (string) --
The status of the deployment:
DeploymentTime (datetime) --
For in-progress deployments, the time that the deployment started.
For completed deployments, the time that the deployment ended.
AvailabilityZone (string) --
The availability zone in which the instance runs.
InstanceType (string) --
The instance's type.
RefreshedAt (datetime) --
The date and time that the health information was retrieved.
NextToken (string) --
Pagination token for the next page of results, if available.
Exceptions
Examples
The following operation retrieves health information for instances in an environment named my-env:
response = client.describe_instances_health(
AttributeNames=[
'All',
],
EnvironmentName='my-env',
)
print(response)
Expected Output:
{
'InstanceHealthList': [
{
'ApplicationMetrics': {
'Duration': 10,
'Latency': {
'P10': 0,
'P50': 0.001,
'P75': 0.002,
'P85': 0.003,
'P90': 0.004,
'P95': 0.005,
'P99': 0.006,
'P999': 0.006,
},
'RequestCount': 48,
'StatusCodes': {
'Status2xx': 47,
'Status3xx': 0,
'Status4xx': 1,
'Status5xx': 0,
},
},
'Causes': [
],
'Color': 'Green',
'HealthStatus': 'Ok',
'InstanceId': 'i-08691cc7',
'LaunchedAt': datetime(2015, 8, 13, 19, 17, 9, 3, 225, 0),
'System': {
'CPUUtilization': {
'IOWait': 0.2,
'IRQ': 0,
'Idle': 97.8,
'Nice': 0.1,
'SoftIRQ': 0.1,
'System': 0.3,
'User': 1.5,
},
'LoadAverage': [
0,
0.02,
0.05,
],
},
},
],
'RefreshedAt': datetime(2015, 8, 20, 21, 9, 8, 3, 232, 0),
'ResponseMetadata': {
'...': '...',
},
}
Describes a platform version. Provides full details. Compare to ListPlatformVersions , which provides summary information about a list of platform versions.
For definitions of platform version and other platform-related terms, see AWS Elastic Beanstalk Platforms Glossary .
See also: AWS API Documentation
Request Syntax
response = client.describe_platform_version(
PlatformArn='string'
)
{
'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',
],
'PlatformLifecycleState': 'string',
'PlatformBranchName': 'string',
'PlatformBranchLifecycleState': 'string'
}
}
Response Structure
Detailed information about the platform version.
The ARN of the platform version.
The AWS account ID of the person who created the platform version.
The name of the platform version.
The version of the platform version.
The name of the solution stack used by the platform version.
The status of the platform version.
The date when the platform version was created.
The date when the platform version was last updated.
The category of the platform version.
The description of the platform version.
Information about the maintainer of the platform version.
The operating system used by the platform version.
The version of the operating system used by the platform version.
The programming languages supported by the platform version.
A programming language supported by the platform.
The name of the programming language.
The version of the programming language.
The frameworks supported by the platform version.
A framework supported by the platform.
The name of the framework.
The version of the framework.
The custom AMIs supported by the platform version.
A custom AMI available to platforms.
The type of virtualization used to create the custom AMI.
THe ID of the image used to create the custom AMI.
The tiers supported by the platform version.
The additions supported by the platform version.
The state of the platform version in its lifecycle.
Possible values: Recommended | null
If a null value is returned, the platform version isn't the recommended one for its branch. Each platform branch has a single recommended platform version, typically the most recent one.
The platform branch to which the platform version belongs.
The state of the platform version's branch in its lifecycle.
Possible values: Beta | Supported | Deprecated | Retired
Exceptions
Disassociate the operations role from an environment. After this call is made, Elastic Beanstalk uses the caller's permissions for permissions to downstream services during subsequent calls acting on this environment. For more information, see Operations roles in the AWS Elastic Beanstalk Developer Guide .
See also: AWS API Documentation
Request Syntax
response = client.disassociate_environment_operations_role(
EnvironmentName='string'
)
[REQUIRED]
The name of the environment from which to disassociate the operations role.
Exceptions
Generate a presigned url given a client, its method, and arguments
The presigned url
Create a paginator for an operation.
Returns an object that can wait for some condition.
Returns a list of the available solution stack names, with the public version first and then in reverse chronological order.
See also: AWS API Documentation
Request Syntax
response = client.list_available_solution_stacks()
{
'SolutionStacks': [
'string',
],
'SolutionStackDetails': [
{
'SolutionStackName': 'string',
'PermittedFileTypes': [
'string',
]
},
]
}
Response Structure
A list of available AWS Elastic Beanstalk solution stacks.
A list of available solution stacks.
A list of available solution stacks and their SolutionStackDescription .
Describes the solution stack.
The name of the solution stack.
The permitted file types allowed for a solution stack.
Examples
The following operation lists solution stacks for all currently available platform configurations and any that you have used in the past:
response = client.list_available_solution_stacks(
)
print(response)
Expected Output:
{
'SolutionStackDetails': [
{
'PermittedFileTypes': [
'zip',
],
'SolutionStackName': '64bit Amazon Linux 2015.03 v2.0.0 running Node.js',
},
],
'SolutionStacks': [
'64bit Amazon Linux 2015.03 v2.0.0 running Node.js',
'64bit Amazon Linux 2015.03 v2.0.0 running PHP 5.6',
'64bit Amazon Linux 2015.03 v2.0.0 running PHP 5.5',
'64bit Amazon Linux 2015.03 v2.0.0 running PHP 5.4',
'64bit Amazon Linux 2015.03 v2.0.0 running Python 3.4',
'64bit Amazon Linux 2015.03 v2.0.0 running Python 2.7',
'64bit Amazon Linux 2015.03 v2.0.0 running Python',
'64bit Amazon Linux 2015.03 v2.0.0 running Ruby 2.2 (Puma)',
'64bit Amazon Linux 2015.03 v2.0.0 running Ruby 2.2 (Passenger Standalone)',
'64bit Amazon Linux 2015.03 v2.0.0 running Ruby 2.1 (Puma)',
'64bit Amazon Linux 2015.03 v2.0.0 running Ruby 2.1 (Passenger Standalone)',
'64bit Amazon Linux 2015.03 v2.0.0 running Ruby 2.0 (Puma)',
'64bit Amazon Linux 2015.03 v2.0.0 running Ruby 2.0 (Passenger Standalone)',
'64bit Amazon Linux 2015.03 v2.0.0 running Ruby 1.9.3',
'64bit Amazon Linux 2015.03 v2.0.0 running Tomcat 8 Java 8',
'64bit Amazon Linux 2015.03 v2.0.0 running Tomcat 7 Java 7',
'64bit Amazon Linux 2015.03 v2.0.0 running Tomcat 7 Java 6',
'64bit Windows Server Core 2012 R2 running IIS 8.5',
'64bit Windows Server 2012 R2 running IIS 8.5',
'64bit Windows Server 2012 running IIS 8',
'64bit Windows Server 2008 R2 running IIS 7.5',
'64bit Amazon Linux 2015.03 v2.0.0 running Docker 1.6.2',
'64bit Amazon Linux 2015.03 v2.0.0 running Multi-container Docker 1.6.2 (Generic)',
'64bit Debian jessie v2.0.0 running GlassFish 4.1 Java 8 (Preconfigured - Docker)',
'64bit Debian jessie v2.0.0 running GlassFish 4.0 Java 7 (Preconfigured - Docker)',
'64bit Debian jessie v2.0.0 running Go 1.4 (Preconfigured - Docker)',
'64bit Debian jessie v2.0.0 running Go 1.3 (Preconfigured - Docker)',
'64bit Debian jessie v2.0.0 running Python 3.4 (Preconfigured - Docker)',
],
'ResponseMetadata': {
'...': '...',
},
}
Lists the platform branches available for your account in an AWS Region. Provides summary information about each platform branch.
For definitions of platform branch and other platform-related terms, see AWS Elastic Beanstalk Platforms Glossary .
See also: AWS API Documentation
Request Syntax
response = client.list_platform_branches(
Filters=[
{
'Attribute': 'string',
'Operator': 'string',
'Values': [
'string',
]
},
],
MaxRecords=123,
NextToken='string'
)
Criteria for restricting the resulting list of platform branches. The filter is evaluated as a logical conjunction (AND) of the separate SearchFilter terms.
The following list shows valid attribute values for each of the SearchFilter terms. Most operators take a single value. The in and not_in operators can take multiple values.
Array size: limited to 10 SearchFilter objects.
Within each SearchFilter item, the Values array is limited to 10 items.
Describes criteria to restrict a list of results.
For operators that apply a single value to the attribute, the filter is evaluated as follows: Attribute Operator Values[1]
Some operators, e.g. in , can apply multiple values. In this case, the filter is evaluated as a logical union (OR) of applications of the operator to the attribute with each one of the values: (Attribute Operator Values[1]) OR (Attribute Operator Values[2]) OR ...
The valid values for attributes of SearchFilter depend on the API action. For valid values, see the reference page for the API action you're calling that takes a SearchFilter parameter.
The result attribute to which the filter values are applied. Valid values vary by API action.
The operator to apply to the Attribute with each of the Values . Valid values vary by Attribute .
The list of values applied to the Attribute and Operator attributes. Number of values and valid values vary by Attribute .
For a paginated request. Specify a token from a previous response page to retrieve the next response page. All other parameter values must be identical to the ones specified in the initial request.
If no NextToken is specified, the first page is retrieved.
dict
Response Syntax
{
'PlatformBranchSummaryList': [
{
'PlatformName': 'string',
'BranchName': 'string',
'LifecycleState': 'string',
'BranchOrder': 123,
'SupportedTierList': [
'string',
]
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
PlatformBranchSummaryList (list) --
Summary information about the platform branches.
(dict) --
Summary information about a platform branch.
PlatformName (string) --
The name of the platform to which this platform branch belongs.
BranchName (string) --
The name of the platform branch.
LifecycleState (string) --
The support life cycle state of the platform branch.
Possible values: beta | supported | deprecated | retired
BranchOrder (integer) --
An ordinal number that designates the order in which platform branches have been added to a platform. This can be helpful, for example, if your code calls the ListPlatformBranches action and then displays a list of platform branches.
A larger BranchOrder value designates a newer platform branch within the platform.
SupportedTierList (list) --
The environment tiers that platform versions in this branch support.
Possible values: WebServer/Standard | Worker/SQS/HTTP
NextToken (string) --
In a paginated request, if this value isn't null , it's the token that you can pass in a subsequent request to get the next response page.
Lists the platform versions available for your account in an AWS Region. Provides summary information about each platform version. Compare to DescribePlatformVersion , which provides full details about a single platform version.
For definitions of platform version and other platform-related terms, see AWS Elastic Beanstalk Platforms Glossary .
See also: AWS API Documentation
Request Syntax
response = client.list_platform_versions(
Filters=[
{
'Type': 'string',
'Operator': 'string',
'Values': [
'string',
]
},
],
MaxRecords=123,
NextToken='string'
)
Criteria for restricting the resulting list of platform versions. The filter is interpreted as a logical conjunction (AND) of the separate PlatformFilter terms.
Describes criteria to restrict the results when listing platform versions.
The filter is evaluated as follows: Type Operator Values[1]
The platform version attribute to which the filter values are applied.
Valid values: PlatformName | PlatformVersion | PlatformStatus | PlatformBranchName | PlatformLifecycleState | PlatformOwner | SupportedTier | SupportedAddon | ProgrammingLanguageName | OperatingSystemName
The operator to apply to the Type with each of the Values .
Valid values: = | != | < | <= | > | >= | contains | begins_with | ends_with
The list of values applied to the filtering platform version attribute. Only one value is supported for all current operators.
The following list shows valid filter values for some filter attributes.
For a paginated request. Specify a token from a previous response page to retrieve the next response page. All other parameter values must be identical to the ones specified in the initial request.
If no NextToken is specified, the first page is retrieved.
dict
Response Syntax
{
'PlatformSummaryList': [
{
'PlatformArn': 'string',
'PlatformOwner': 'string',
'PlatformStatus': 'Creating'|'Failed'|'Ready'|'Deleting'|'Deleted',
'PlatformCategory': 'string',
'OperatingSystemName': 'string',
'OperatingSystemVersion': 'string',
'SupportedTierList': [
'string',
],
'SupportedAddonList': [
'string',
],
'PlatformLifecycleState': 'string',
'PlatformVersion': 'string',
'PlatformBranchName': 'string',
'PlatformBranchLifecycleState': 'string'
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
PlatformSummaryList (list) --
Summary information about the platform versions.
(dict) --
Summary information about a platform version.
PlatformArn (string) --
The ARN of the platform version.
PlatformOwner (string) --
The AWS account ID of the person who created the platform version.
PlatformStatus (string) --
The status of the platform version. You can create an environment from the platform version once it is ready.
PlatformCategory (string) --
The category of platform version.
OperatingSystemName (string) --
The operating system used by the platform version.
OperatingSystemVersion (string) --
The version of the operating system used by the platform version.
SupportedTierList (list) --
The tiers in which the platform version runs.
SupportedAddonList (list) --
The additions associated with the platform version.
PlatformLifecycleState (string) --
The state of the platform version in its lifecycle.
Possible values: recommended | empty
If an empty value is returned, the platform version is supported but isn't the recommended one for its branch.
PlatformVersion (string) --
The version string of the platform version.
PlatformBranchName (string) --
The platform branch to which the platform version belongs.
PlatformBranchLifecycleState (string) --
The state of the platform version's branch in its lifecycle.
Possible values: beta | supported | deprecated | retired
NextToken (string) --
In a paginated request, if this value isn't null , it's the token that you can pass in a subsequent request to get the next response page.
Exceptions
Return the tags applied to an AWS Elastic Beanstalk resource. The response contains a list of tag key-value pairs.
Elastic Beanstalk supports tagging of all of its resources. For details about resource tagging, see Tagging Application Resources .
See also: AWS API Documentation
Request Syntax
response = client.list_tags_for_resource(
ResourceArn='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the resouce for which a tag list is requested.
Must be the ARN of an Elastic Beanstalk resource.
{
'ResourceArn': 'string',
'ResourceTags': [
{
'Key': 'string',
'Value': 'string'
},
]
}
Response Structure
The Amazon Resource Name (ARN) of the resource for which a tag list was requested.
A list of tag key-value pairs.
Describes a tag applied to a resource in an environment.
The key of the tag.
The value of the tag.
Exceptions
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.
See also: AWS API Documentation
Request Syntax
response = client.rebuild_environment(
EnvironmentId='string',
EnvironmentName='string'
)
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.
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.
None
Exceptions
Examples
The following operation terminates and recreates the resources in an environment named my-env:
response = client.rebuild_environment(
EnvironmentName='my-env',
)
print(response)
Expected Output:
{
'ResponseMetadata': {
'...': '...',
},
}
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
See also: AWS API Documentation
Request Syntax
response = client.request_environment_info(
EnvironmentId='string',
EnvironmentName='string',
InfoType='tail'|'bundle'
)
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.
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.
[REQUIRED]
The type of information to request.
None
Examples
The following operation requests logs from an environment named my-env:
response = client.request_environment_info(
EnvironmentName='my-env',
InfoType='tail',
)
print(response)
Expected Output:
{
'ResponseMetadata': {
'...': '...',
},
}
Causes the environment to restart the application container server running on each Amazon EC2 instance.
See also: AWS API Documentation
Request Syntax
response = client.restart_app_server(
EnvironmentId='string',
EnvironmentName='string'
)
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.
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.
None
Examples
The following operation restarts application servers on all instances in an environment named my-env:
response = client.restart_app_server(
EnvironmentName='my-env',
)
print(response)
Expected Output:
{
'ResponseMetadata': {
'...': '...',
},
}
Retrieves the compiled information from a RequestEnvironmentInfo request.
Related Topics
See also: AWS API Documentation
Request Syntax
response = client.retrieve_environment_info(
EnvironmentId='string',
EnvironmentName='string',
InfoType='tail'|'bundle'
)
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.
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.
[REQUIRED]
The type of information to retrieve.
dict
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. Currently contains a presigned Amazon S3 URL. The files are deleted after 15 minutes.
Anyone in possession of this URL can access the files before they are deleted. Make the URL available only to trusted parties.
Examples
The following operation retrieves a link to logs from an environment named my-env:
response = client.retrieve_environment_info(
EnvironmentName='my-env',
InfoType='tail',
)
print(response)
Expected Output:
{
'EnvironmentInfo': [
{
'Ec2InstanceId': 'i-09c1c867',
'InfoType': 'tail',
'Message': 'https://elasticbeanstalk-us-west-2-0123456789012.s3.amazonaws.com/resources/environments/logs/tail/e-fyqyju3yjs/i-09c1c867/TailLogs-1440109397703.out?AWSAccessKeyId=AKGPT4J56IAJ2EUBL5CQ&Expires=1440195891&Signature=n%2BEalOV6A2HIOx4Rcfb7LT16bBM%3D',
'SampleTimestamp': datetime(2015, 8, 20, 22, 23, 17, 3, 232, 0),
},
],
'ResponseMetadata': {
'...': '...',
},
}
Swaps the CNAMEs of two environments.
See also: AWS API Documentation
Request Syntax
response = client.swap_environment_cnames(
SourceEnvironmentId='string',
SourceEnvironmentName='string',
DestinationEnvironmentId='string',
DestinationEnvironmentName='string'
)
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 .
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 .
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 .
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 .
None
Examples
The following operation swaps the assigned subdomains of two environments:
response = client.swap_environment_cnames(
DestinationEnvironmentName='my-env-green',
SourceEnvironmentName='my-env-blue',
)
print(response)
Expected Output:
{
'ResponseMetadata': {
'...': '...',
},
}
Terminates the specified environment.
See also: AWS API Documentation
Request Syntax
response = client.terminate_environment(
EnvironmentId='string',
EnvironmentName='string',
TerminateResources=True|False,
ForceTerminate=True|False
)
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.
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.
Indicates whether the associated AWS resources should shut down when the environment is terminated:
For more information, see the AWS Elastic Beanstalk User Guide.
Default: true
Valid Values: true | false
dict
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'|'Suspended',
'Resources': {
'LoadBalancer': {
'LoadBalancerName': 'string',
'Domain': 'string',
'Listeners': [
{
'Protocol': 'string',
'Port': 123
},
]
}
},
'Tier': {
'Name': 'string',
'Type': 'string',
'Version': 'string'
},
'EnvironmentLinks': [
{
'LinkName': 'string',
'EnvironmentName': 'string'
},
],
'EnvironmentArn': 'string',
'OperationsRole': '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 platform version.
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:
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:
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.
Valid values:
Type (string) --
The type of this environment tier.
Valid values:
Version (string) --
The version of this environment tier. When you don't set a value to it, Elastic Beanstalk uses the latest compatible worker tier version.
Note
This member is deprecated. Any specific version that you set may become out of date. We recommend leaving it unspecified.
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).
EnvironmentArn (string) --
The environment's Amazon Resource Name (ARN), which can be used in other API requests that require an ARN.
OperationsRole (string) --
The Amazon Resource Name (ARN) of the environment's operations role. For more information, see Operations roles in the AWS Elastic Beanstalk Developer Guide .
Exceptions
Examples
The following operation terminates an Elastic Beanstalk environment named my-env:
response = client.terminate_environment(
EnvironmentName='my-env',
)
print(response)
Expected Output:
{
'AbortableOperationInProgress': False,
'ApplicationName': 'my-app',
'CNAME': 'my-env.elasticbeanstalk.com',
'DateCreated': datetime(2015, 8, 12, 18, 52, 53, 2, 224, 0),
'DateUpdated': datetime(2015, 8, 12, 19, 5, 54, 2, 224, 0),
'EndpointURL': 'awseb-e-f-AWSEBLoa-1I9XUMP4-8492WNUP202574.us-west-2.elb.amazonaws.com',
'EnvironmentId': 'e-fh2eravpns',
'EnvironmentName': 'my-env',
'Health': 'Grey',
'SolutionStackName': '64bit Amazon Linux 2015.03 v2.0.0 running Tomcat 8 Java 8',
'Status': 'Terminating',
'Tier': {
'Name': 'WebServer',
'Type': 'Standard',
'Version': ' ',
},
'ResponseMetadata': {
'...': '...',
},
}
Updates the specified application to have the specified properties.
Note
If a property (for example, description ) is not provided, the value remains unchanged. To clear these properties, specify an empty string.
See also: AWS API Documentation
Request Syntax
response = client.update_application(
ApplicationName='string',
Description='string'
)
[REQUIRED]
The name of the application to update. If no such application is found, UpdateApplication returns an InvalidParameterValue error.
A new description for the application.
Default: If not specified, AWS Elastic Beanstalk does not update the description.
dict
Response Syntax
{
'Application': {
'ApplicationArn': 'string',
'ApplicationName': 'string',
'Description': 'string',
'DateCreated': datetime(2015, 1, 1),
'DateUpdated': datetime(2015, 1, 1),
'Versions': [
'string',
],
'ConfigurationTemplates': [
'string',
],
'ResourceLifecycleConfig': {
'ServiceRole': 'string',
'VersionLifecycleConfig': {
'MaxCountRule': {
'Enabled': True|False,
'MaxCount': 123,
'DeleteSourceFromS3': True|False
},
'MaxAgeRule': {
'Enabled': True|False,
'MaxAgeInDays': 123,
'DeleteSourceFromS3': True|False
}
}
}
}
}
Response Structure
(dict) --
Result message containing a single description of an application.
Application (dict) --
The ApplicationDescription of the application.
ApplicationArn (string) --
The Amazon Resource Name (ARN) 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.
ConfigurationTemplates (list) --
The names of the configuration templates associated with this application.
ResourceLifecycleConfig (dict) --
The lifecycle settings for the application.
ServiceRole (string) --
The ARN of an IAM service role that Elastic Beanstalk has permission to assume.
The ServiceRole property is required the first time that you provide a VersionLifecycleConfig for the application in one of the supporting calls (CreateApplication or UpdateApplicationResourceLifecycle ). After you provide it once, in either one of the calls, Elastic Beanstalk persists the Service Role with the application, and you don't need to specify it again in subsequent UpdateApplicationResourceLifecycle calls. You can, however, specify it in subsequent calls to change the Service Role to another value.
VersionLifecycleConfig (dict) --
Defines lifecycle settings for application versions.
MaxCountRule (dict) --
Specify a max count rule to restrict the number of application versions that are retained for an application.
Enabled (boolean) --
Specify true to apply the rule, or false to disable it.
MaxCount (integer) --
Specify the maximum number of application versions to retain.
DeleteSourceFromS3 (boolean) --
Set to true to delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes the application version.
MaxAgeRule (dict) --
Specify a max age rule to restrict the length of time that application versions are retained for an application.
Enabled (boolean) --
Specify true to apply the rule, or false to disable it.
MaxAgeInDays (integer) --
Specify the number of days to retain an application versions.
DeleteSourceFromS3 (boolean) --
Set to true to delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes the application version.
Examples
The following operation updates the description of an application named my-app:
response = client.update_application(
ApplicationName='my-app',
Description='my Elastic Beanstalk application',
)
print(response)
Expected Output:
{
'Application': {
'ApplicationName': 'my-app',
'ConfigurationTemplates': [
],
'DateCreated': datetime(2015, 8, 13, 19, 15, 50, 3, 225, 0),
'DateUpdated': datetime(2015, 8, 20, 22, 34, 56, 3, 232, 0),
'Description': 'my Elastic Beanstalk application',
'Versions': [
'2fba-stage-150819_234450',
'bf07-stage-150820_214945',
'93f8',
'fd7c-stage-150820_000431',
'22a0-stage-150819_185942',
],
},
'ResponseMetadata': {
'...': '...',
},
}
Modifies lifecycle settings for an application.
See also: AWS API Documentation
Request Syntax
response = client.update_application_resource_lifecycle(
ApplicationName='string',
ResourceLifecycleConfig={
'ServiceRole': 'string',
'VersionLifecycleConfig': {
'MaxCountRule': {
'Enabled': True|False,
'MaxCount': 123,
'DeleteSourceFromS3': True|False
},
'MaxAgeRule': {
'Enabled': True|False,
'MaxAgeInDays': 123,
'DeleteSourceFromS3': True|False
}
}
}
)
[REQUIRED]
The name of the application.
[REQUIRED]
The lifecycle configuration.
The ARN of an IAM service role that Elastic Beanstalk has permission to assume.
The ServiceRole property is required the first time that you provide a VersionLifecycleConfig for the application in one of the supporting calls (CreateApplication or UpdateApplicationResourceLifecycle ). After you provide it once, in either one of the calls, Elastic Beanstalk persists the Service Role with the application, and you don't need to specify it again in subsequent UpdateApplicationResourceLifecycle calls. You can, however, specify it in subsequent calls to change the Service Role to another value.
Defines lifecycle settings for application versions.
Specify a max count rule to restrict the number of application versions that are retained for an application.
Specify true to apply the rule, or false to disable it.
Specify the maximum number of application versions to retain.
Set to true to delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes the application version.
Specify a max age rule to restrict the length of time that application versions are retained for an application.
Specify true to apply the rule, or false to disable it.
Specify the number of days to retain an application versions.
Set to true to delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes the application version.
dict
Response Syntax
{
'ApplicationName': 'string',
'ResourceLifecycleConfig': {
'ServiceRole': 'string',
'VersionLifecycleConfig': {
'MaxCountRule': {
'Enabled': True|False,
'MaxCount': 123,
'DeleteSourceFromS3': True|False
},
'MaxAgeRule': {
'Enabled': True|False,
'MaxAgeInDays': 123,
'DeleteSourceFromS3': True|False
}
}
}
}
Response Structure
(dict) --
ApplicationName (string) --
The name of the application.
ResourceLifecycleConfig (dict) --
The lifecycle configuration.
ServiceRole (string) --
The ARN of an IAM service role that Elastic Beanstalk has permission to assume.
The ServiceRole property is required the first time that you provide a VersionLifecycleConfig for the application in one of the supporting calls (CreateApplication or UpdateApplicationResourceLifecycle ). After you provide it once, in either one of the calls, Elastic Beanstalk persists the Service Role with the application, and you don't need to specify it again in subsequent UpdateApplicationResourceLifecycle calls. You can, however, specify it in subsequent calls to change the Service Role to another value.
VersionLifecycleConfig (dict) --
Defines lifecycle settings for application versions.
MaxCountRule (dict) --
Specify a max count rule to restrict the number of application versions that are retained for an application.
Enabled (boolean) --
Specify true to apply the rule, or false to disable it.
MaxCount (integer) --
Specify the maximum number of application versions to retain.
DeleteSourceFromS3 (boolean) --
Set to true to delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes the application version.
MaxAgeRule (dict) --
Specify a max age rule to restrict the length of time that application versions are retained for an application.
Enabled (boolean) --
Specify true to apply the rule, or false to disable it.
MaxAgeInDays (integer) --
Specify the number of days to retain an application versions.
DeleteSourceFromS3 (boolean) --
Set to true to delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes the application version.
Exceptions
Updates the specified application version to have the specified properties.
Note
If a property (for example, description ) is not provided, the value remains unchanged. To clear properties, specify an empty string.
See also: AWS API Documentation
Request Syntax
response = client.update_application_version(
ApplicationName='string',
VersionLabel='string',
Description='string'
)
[REQUIRED]
The name of the application associated with this version.
If no application is found with this name, UpdateApplication returns an InvalidParameterValue error.
[REQUIRED]
The name of the version to update.
If no application version is found with this label, UpdateApplication returns an InvalidParameterValue error.
dict
Response Syntax
{
'ApplicationVersion': {
'ApplicationVersionArn': 'string',
'ApplicationName': 'string',
'Description': 'string',
'VersionLabel': 'string',
'SourceBuildInformation': {
'SourceType': 'Git'|'Zip',
'SourceRepository': 'CodeCommit'|'S3',
'SourceLocation': 'string'
},
'BuildArn': 'string',
'SourceBundle': {
'S3Bucket': 'string',
'S3Key': 'string'
},
'DateCreated': datetime(2015, 1, 1),
'DateUpdated': datetime(2015, 1, 1),
'Status': 'Processed'|'Unprocessed'|'Failed'|'Processing'|'Building'
}
}
Response Structure
(dict) --
Result message wrapping a single description of an application version.
ApplicationVersion (dict) --
The ApplicationVersionDescription of the application version.
ApplicationVersionArn (string) --
The Amazon Resource Name (ARN) of the application version.
ApplicationName (string) --
The name of the application to which the application version belongs.
Description (string) --
The description of the application version.
VersionLabel (string) --
A unique identifier for the application version.
SourceBuildInformation (dict) --
If the version's source code was retrieved from AWS CodeCommit, the location of the source code for the application version.
SourceType (string) --
The type of repository.
SourceRepository (string) --
Location where the repository is stored.
SourceLocation (string) --
The location of the source code, as a formatted string, depending on the value of SourceRepository
BuildArn (string) --
Reference to the artifact from the AWS CodeBuild build.
SourceBundle (dict) --
The storage location of the application version's source bundle 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.
DateCreated (datetime) --
The creation date of the application version.
DateUpdated (datetime) --
The last modified date of the application version.
Status (string) --
The processing status of the application version. Reflects the state of the application version during its creation. Many of the values are only applicable if you specified True for the Process parameter of the CreateApplicationVersion action. The following list describes the possible values.
Examples
The following operation updates the description of an application version named 22a0-stage-150819_185942:
response = client.update_application_version(
ApplicationName='my-app',
Description='new description',
VersionLabel='22a0-stage-150819_185942',
)
print(response)
Expected Output:
{
'ApplicationVersion': {
'ApplicationName': 'my-app',
'DateCreated': datetime(2015, 8, 19, 18, 59, 17, 2, 231, 0),
'DateUpdated': datetime(2015, 8, 20, 22, 53, 28, 3, 232, 0),
'Description': 'new description',
'SourceBundle': {
'S3Bucket': 'elasticbeanstalk-us-west-2-0123456789012',
'S3Key': 'my-app/22a0-stage-150819_185942.war',
},
'VersionLabel': '22a0-stage-150819_185942',
},
'ResponseMetadata': {
'...': '...',
},
}
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
See also: AWS API Documentation
Request Syntax
response = 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'
},
]
)
[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.
[REQUIRED]
The name of the configuration template to update.
If no configuration template is found with this name, UpdateConfigurationTemplate returns an InvalidParameterValue error.
A list of configuration option settings to update with the new specified option value.
A specification identifying an individual configuration option along with its current value. For a list of possible namespaces and option values, see Option Values in the AWS Elastic Beanstalk Developer Guide .
A unique resource name for the option setting. Use it for a time–based scaling configuration option.
A unique namespace that identifies the option's associated AWS resource.
The name of the configuration option.
The current value for the configuration option.
A list of configuration options to remove from the configuration set.
Constraint: You can remove only UserDefined configuration options.
A specification identifying an individual configuration option.
A unique resource name for a time-based scaling configuration option.
A unique namespace identifying the option's associated AWS resource.
The name of the configuration option.
dict
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 platform version.
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:
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 namespaces and option values, see Option Values in the AWS Elastic Beanstalk Developer Guide .
ResourceName (string) --
A unique resource name for the option setting. Use it for a time–based scaling configuration option.
Namespace (string) --
A unique namespace that identifies the option's associated AWS resource.
OptionName (string) --
The name of the configuration option.
Value (string) --
The current value for the configuration option.
Exceptions
Examples
The following operation removes the configured CloudWatch custom health metrics configuration ConfigDocument from a saved configuration template named my-template:
response = client.update_configuration_template(
ApplicationName='my-app',
OptionsToRemove=[
{
'Namespace': 'aws:elasticbeanstalk:healthreporting:system',
'OptionName': 'ConfigDocument',
},
],
TemplateName='my-template',
)
print(response)
Expected Output:
{
'ApplicationName': 'my-app',
'DateCreated': datetime(2015, 8, 20, 22, 39, 31, 3, 232, 0),
'DateUpdated': datetime(2015, 8, 20, 22, 43, 11, 3, 232, 0),
'SolutionStackName': '64bit Amazon Linux 2015.03 v2.0.0 running Tomcat 8 Java 8',
'TemplateName': 'my-template',
'ResponseMetadata': {
'...': '...',
},
}
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
response = 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'
},
]
)
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.
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.
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.
The name of this environment tier.
Valid values:
The type of this environment tier.
Valid values:
The version of this environment tier. When you don't set a value to it, Elastic Beanstalk uses the latest compatible worker tier version.
Note
This member is deprecated. Any specific version that you set may become out of date. We recommend leaving it unspecified.
If specified, AWS Elastic Beanstalk updates the configuration set associated with the running environment and sets the specified configuration options to the requested value.
A specification identifying an individual configuration option along with its current value. For a list of possible namespaces and option values, see Option Values in the AWS Elastic Beanstalk Developer Guide .
A unique resource name for the option setting. Use it for a time–based scaling configuration option.
A unique namespace that identifies the option's associated AWS resource.
The name of the configuration option.
The current value for the configuration option.
A list of custom user-defined configuration options to remove from the configuration set for this environment.
A specification identifying an individual configuration option.
A unique resource name for a time-based scaling configuration option.
A unique namespace identifying the option's associated AWS resource.
The name of the configuration option.
dict
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'|'Suspended',
'Resources': {
'LoadBalancer': {
'LoadBalancerName': 'string',
'Domain': 'string',
'Listeners': [
{
'Protocol': 'string',
'Port': 123
},
]
}
},
'Tier': {
'Name': 'string',
'Type': 'string',
'Version': 'string'
},
'EnvironmentLinks': [
{
'LinkName': 'string',
'EnvironmentName': 'string'
},
],
'EnvironmentArn': 'string',
'OperationsRole': '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 platform version.
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:
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:
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.
Valid values:
Type (string) --
The type of this environment tier.
Valid values:
Version (string) --
The version of this environment tier. When you don't set a value to it, Elastic Beanstalk uses the latest compatible worker tier version.
Note
This member is deprecated. Any specific version that you set may become out of date. We recommend leaving it unspecified.
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).
EnvironmentArn (string) --
The environment's Amazon Resource Name (ARN), which can be used in other API requests that require an ARN.
OperationsRole (string) --
The Amazon Resource Name (ARN) of the environment's operations role. For more information, see Operations roles in the AWS Elastic Beanstalk Developer Guide .
Exceptions
Examples
The following operation updates an environment named "my-env" to version "v2" of the application to which it belongs:
response = client.update_environment(
EnvironmentName='my-env',
VersionLabel='v2',
)
print(response)
Expected Output:
{
'ApplicationName': 'my-app',
'CNAME': 'my-env.elasticbeanstalk.com',
'DateCreated': datetime(2015, 2, 3, 23, 4, 54, 1, 34, 0),
'DateUpdated': datetime(2015, 2, 3, 23, 12, 29, 1, 34, 0),
'EndpointURL': 'awseb-e-i-AWSEBLoa-1RDLX6TC9VUAO-0123456789.us-west-2.elb.amazonaws.com',
'EnvironmentId': 'e-szqipays4h',
'EnvironmentName': 'my-env',
'Health': 'Grey',
'SolutionStackName': '64bit Amazon Linux running Tomcat 7',
'Status': 'Updating',
'Tier': {
'Name': 'WebServer',
'Type': 'Standard',
'Version': ' ',
},
'VersionLabel': 'v2',
'ResponseMetadata': {
'...': '...',
},
}
The following operation configures several options in the aws:elb:loadbalancer namespace:
response = client.update_environment(
EnvironmentName='my-env',
OptionSettings=[
{
'Namespace': 'aws:elb:healthcheck',
'OptionName': 'Interval',
'Value': '15',
},
{
'Namespace': 'aws:elb:healthcheck',
'OptionName': 'Timeout',
'Value': '8',
},
{
'Namespace': 'aws:elb:healthcheck',
'OptionName': 'HealthyThreshold',
'Value': '2',
},
{
'Namespace': 'aws:elb:healthcheck',
'OptionName': 'UnhealthyThreshold',
'Value': '3',
},
],
)
print(response)
Expected Output:
{
'AbortableOperationInProgress': True,
'ApplicationName': 'my-app',
'CNAME': 'my-env.elasticbeanstalk.com',
'DateCreated': datetime(2015, 8, 7, 20, 48, 49, 4, 219, 0),
'DateUpdated': datetime(2015, 8, 12, 18, 15, 23, 2, 224, 0),
'EndpointURL': 'awseb-e-w-AWSEBLoa-14XB83101Q4L-104QXY80921.sa-east-1.elb.amazonaws.com',
'EnvironmentId': 'e-wtp2rpqsej',
'EnvironmentName': 'my-env',
'Health': 'Grey',
'SolutionStackName': '64bit Amazon Linux 2015.03 v2.0.0 running Tomcat 8 Java 8',
'Status': 'Updating',
'Tier': {
'Name': 'WebServer',
'Type': 'Standard',
'Version': ' ',
},
'VersionLabel': '7f58-stage-150812_025409',
'ResponseMetadata': {
'...': '...',
},
}
Update the list of tags applied to an AWS Elastic Beanstalk resource. Two lists can be passed: TagsToAdd for tags to add or update, and TagsToRemove .
Elastic Beanstalk supports tagging of all of its resources. For details about resource tagging, see Tagging Application Resources .
If you create a custom IAM user policy to control permission to this operation, specify one of the following two virtual actions (or both) instead of the API operation name:
elasticbeanstalk:AddTags
Controls permission to call UpdateTagsForResource and pass a list of tags to add in the TagsToAdd parameter.
elasticbeanstalk:RemoveTags
Controls permission to call UpdateTagsForResource and pass a list of tag keys to remove in the TagsToRemove parameter.
For details about creating a custom user policy, see Creating a Custom User Policy .
See also: AWS API Documentation
Request Syntax
response = client.update_tags_for_resource(
ResourceArn='string',
TagsToAdd=[
{
'Key': 'string',
'Value': 'string'
},
],
TagsToRemove=[
'string',
]
)
[REQUIRED]
The Amazon Resource Name (ARN) of the resouce to be updated.
Must be the ARN of an Elastic Beanstalk resource.
A list of tags to add or update. If a key of an existing tag is added, the tag's value is updated.
Specify at least one of these parameters: TagsToAdd , TagsToRemove .
Describes a tag applied to a resource in an environment.
The key of the tag.
The value of the tag.
A list of tag keys to remove. If a tag key doesn't exist, it is silently ignored.
Specify at least one of these parameters: TagsToAdd , TagsToRemove .
None
Exceptions
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.
See also: AWS API Documentation
Request Syntax
response = client.validate_configuration_settings(
ApplicationName='string',
TemplateName='string',
EnvironmentName='string',
OptionSettings=[
{
'ResourceName': 'string',
'Namespace': 'string',
'OptionName': 'string',
'Value': 'string'
},
]
)
[REQUIRED]
The name of the application that the configuration template or environment belongs to.
The name of the configuration template to validate the settings against.
Condition: You cannot specify both this and an environment name.
The name of the environment to validate the settings against.
Condition: You cannot specify both this and a configuration template name.
[REQUIRED]
A list of the options and desired values to evaluate.
A specification identifying an individual configuration option along with its current value. For a list of possible namespaces and option values, see Option Values in the AWS Elastic Beanstalk Developer Guide .
A unique resource name for the option setting. Use it for a time–based scaling configuration option.
A unique namespace that identifies the option's associated AWS resource.
The name of the configuration option.
The current value for the configuration option.
dict
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:
Namespace (string) --
The namespace to which the option belongs.
OptionName (string) --
The name of the option.
Exceptions
Examples
The following operation validates a CloudWatch custom metrics config document:
response = client.validate_configuration_settings(
ApplicationName='my-app',
EnvironmentName='my-env',
OptionSettings=[
{
'Namespace': 'aws:elasticbeanstalk:healthreporting:system',
'OptionName': 'ConfigDocument',
'Value': '{"CloudWatchMetrics": {"Environment": {"ApplicationLatencyP99.9": null,"InstancesSevere": 60,"ApplicationLatencyP90": 60,"ApplicationLatencyP99": null,"ApplicationLatencyP95": 60,"InstancesUnknown": 60,"ApplicationLatencyP85": 60,"InstancesInfo": null,"ApplicationRequests2xx": null,"InstancesDegraded": null,"InstancesWarning": 60,"ApplicationLatencyP50": 60,"ApplicationRequestsTotal": null,"InstancesNoData": null,"InstancesPending": 60,"ApplicationLatencyP10": null,"ApplicationRequests5xx": null,"ApplicationLatencyP75": null,"InstancesOk": 60,"ApplicationRequests3xx": null,"ApplicationRequests4xx": null},"Instance": {"ApplicationLatencyP99.9": null,"ApplicationLatencyP90": 60,"ApplicationLatencyP99": null,"ApplicationLatencyP95": null,"ApplicationLatencyP85": null,"CPUUser": 60,"ApplicationRequests2xx": null,"CPUIdle": null,"ApplicationLatencyP50": null,"ApplicationRequestsTotal": 60,"RootFilesystemUtil": null,"LoadAverage1min": null,"CPUIrq": null,"CPUNice": 60,"CPUIowait": 60,"ApplicationLatencyP10": null,"LoadAverage5min": null,"ApplicationRequests5xx": null,"ApplicationLatencyP75": 60,"CPUSystem": 60,"ApplicationRequests3xx": 60,"ApplicationRequests4xx": null,"InstanceHealth": null,"CPUSoftirq": 60}},"Version": 1}',
},
],
)
print(response)
Expected Output:
{
'Messages': [
],
'ResponseMetadata': {
'...': '...',
},
}
The available paginators are:
paginator = client.get_paginator('describe_application_versions')
Creates an iterator that will paginate through responses from ElasticBeanstalk.Client.describe_application_versions().
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
ApplicationName='string',
VersionLabels=[
'string',
],
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
Specify a version label to show a specific application version.
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken from a previous response.
dict
Response Syntax
{
'ApplicationVersions': [
{
'ApplicationVersionArn': 'string',
'ApplicationName': 'string',
'Description': 'string',
'VersionLabel': 'string',
'SourceBuildInformation': {
'SourceType': 'Git'|'Zip',
'SourceRepository': 'CodeCommit'|'S3',
'SourceLocation': 'string'
},
'BuildArn': 'string',
'SourceBundle': {
'S3Bucket': 'string',
'S3Key': 'string'
},
'DateCreated': datetime(2015, 1, 1),
'DateUpdated': datetime(2015, 1, 1),
'Status': 'Processed'|'Unprocessed'|'Failed'|'Processing'|'Building'
},
],
}
Response Structure
(dict) --
Result message wrapping a list of application version descriptions.
ApplicationVersions (list) --
List of ApplicationVersionDescription objects sorted in order of creation.
(dict) --
Describes the properties of an application version.
ApplicationVersionArn (string) --
The Amazon Resource Name (ARN) of the application version.
ApplicationName (string) --
The name of the application to which the application version belongs.
Description (string) --
The description of the application version.
VersionLabel (string) --
A unique identifier for the application version.
SourceBuildInformation (dict) --
If the version's source code was retrieved from AWS CodeCommit, the location of the source code for the application version.
SourceType (string) --
The type of repository.
SourceRepository (string) --
Location where the repository is stored.
SourceLocation (string) --
The location of the source code, as a formatted string, depending on the value of SourceRepository
BuildArn (string) --
Reference to the artifact from the AWS CodeBuild build.
SourceBundle (dict) --
The storage location of the application version's source bundle 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.
DateCreated (datetime) --
The creation date of the application version.
DateUpdated (datetime) --
The last modified date of the application version.
Status (string) --
The processing status of the application version. Reflects the state of the application version during its creation. Many of the values are only applicable if you specified True for the Process parameter of the CreateApplicationVersion action. The following list describes the possible values.
paginator = client.get_paginator('describe_environment_managed_action_history')
Creates an iterator that will paginate through responses from ElasticBeanstalk.Client.describe_environment_managed_action_history().
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
EnvironmentId='string',
EnvironmentName='string',
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken from a previous response.
dict
Response Syntax
{
'ManagedActionHistoryItems': [
{
'ActionId': 'string',
'ActionType': 'InstanceRefresh'|'PlatformUpdate'|'Unknown',
'ActionDescription': 'string',
'FailureType': 'UpdateCancelled'|'CancellationFailed'|'RollbackFailed'|'RollbackSuccessful'|'InternalFailure'|'InvalidEnvironmentState'|'PermissionsError',
'Status': 'Completed'|'Failed'|'Unknown',
'FailureDescription': 'string',
'ExecutedTime': datetime(2015, 1, 1),
'FinishedTime': datetime(2015, 1, 1)
},
],
}
Response Structure
(dict) --
A result message containing a list of completed and failed managed actions.
ManagedActionHistoryItems (list) --
A list of completed and failed managed actions.
(dict) --
The record of a completed or failed managed action.
ActionId (string) --
A unique identifier for the managed action.
ActionType (string) --
The type of the managed action.
ActionDescription (string) --
A description of the managed action.
FailureType (string) --
If the action failed, the type of failure.
Status (string) --
The status of the action.
FailureDescription (string) --
If the action failed, a description of the failure.
ExecutedTime (datetime) --
The date and time that the action started executing.
FinishedTime (datetime) --
The date and time that the action finished executing.
paginator = client.get_paginator('describe_environments')
Creates an iterator that will paginate through responses from ElasticBeanstalk.Client.describe_environments().
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
ApplicationName='string',
VersionLabel='string',
EnvironmentIds=[
'string',
],
EnvironmentNames=[
'string',
],
IncludeDeleted=True|False,
IncludedDeletedBackTo=datetime(2015, 1, 1),
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that have the specified IDs.
If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that have the specified names.
Indicates whether to include deleted environments:
true : Environments that have been deleted after IncludedDeletedBackTo are displayed.false : Do not include deleted environments.
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken from a previous response.
dict
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'|'Suspended',
'Resources': {
'LoadBalancer': {
'LoadBalancerName': 'string',
'Domain': 'string',
'Listeners': [
{
'Protocol': 'string',
'Port': 123
},
]
}
},
'Tier': {
'Name': 'string',
'Type': 'string',
'Version': 'string'
},
'EnvironmentLinks': [
{
'LinkName': 'string',
'EnvironmentName': 'string'
},
],
'EnvironmentArn': 'string',
'OperationsRole': '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 platform version.
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:
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:
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.
Valid values:
Type (string) --
The type of this environment tier.
Valid values:
Version (string) --
The version of this environment tier. When you don't set a value to it, Elastic Beanstalk uses the latest compatible worker tier version.
Note
This member is deprecated. Any specific version that you set may become out of date. We recommend leaving it unspecified.
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).
EnvironmentArn (string) --
The environment's Amazon Resource Name (ARN), which can be used in other API requests that require an ARN.
OperationsRole (string) --
The Amazon Resource Name (ARN) of the environment's operations role. For more information, see Operations roles in the AWS Elastic Beanstalk Developer Guide .
paginator = client.get_paginator('describe_events')
Creates an iterator that will paginate through responses from ElasticBeanstalk.Client.describe_events().
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
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),
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken from a previous response.
dict
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'
},
],
}
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 platform version.
RequestId (string) --
The web service request ID for the activity of this event.
Severity (string) --
The severity level of this event.
paginator = client.get_paginator('list_platform_versions')
Creates an iterator that will paginate through responses from ElasticBeanstalk.Client.list_platform_versions().
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
Filters=[
{
'Type': 'string',
'Operator': 'string',
'Values': [
'string',
]
},
],
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
Criteria for restricting the resulting list of platform versions. The filter is interpreted as a logical conjunction (AND) of the separate PlatformFilter terms.
Describes criteria to restrict the results when listing platform versions.
The filter is evaluated as follows: Type Operator Values[1]
The platform version attribute to which the filter values are applied.
Valid values: PlatformName | PlatformVersion | PlatformStatus | PlatformBranchName | PlatformLifecycleState | PlatformOwner | SupportedTier | SupportedAddon | ProgrammingLanguageName | OperatingSystemName
The operator to apply to the Type with each of the Values .
Valid values: = | != | < | <= | > | >= | contains | begins_with | ends_with
The list of values applied to the filtering platform version attribute. Only one value is supported for all current operators.
The following list shows valid filter values for some filter attributes.
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken from a previous response.
dict
Response Syntax
{
'PlatformSummaryList': [
{
'PlatformArn': 'string',
'PlatformOwner': 'string',
'PlatformStatus': 'Creating'|'Failed'|'Ready'|'Deleting'|'Deleted',
'PlatformCategory': 'string',
'OperatingSystemName': 'string',
'OperatingSystemVersion': 'string',
'SupportedTierList': [
'string',
],
'SupportedAddonList': [
'string',
],
'PlatformLifecycleState': 'string',
'PlatformVersion': 'string',
'PlatformBranchName': 'string',
'PlatformBranchLifecycleState': 'string'
},
],
}
Response Structure
(dict) --
PlatformSummaryList (list) --
Summary information about the platform versions.
(dict) --
Summary information about a platform version.
PlatformArn (string) --
The ARN of the platform version.
PlatformOwner (string) --
The AWS account ID of the person who created the platform version.
PlatformStatus (string) --
The status of the platform version. You can create an environment from the platform version once it is ready.
PlatformCategory (string) --
The category of platform version.
OperatingSystemName (string) --
The operating system used by the platform version.
OperatingSystemVersion (string) --
The version of the operating system used by the platform version.
SupportedTierList (list) --
The tiers in which the platform version runs.
SupportedAddonList (list) --
The additions associated with the platform version.
PlatformLifecycleState (string) --
The state of the platform version in its lifecycle.
Possible values: recommended | empty
If an empty value is returned, the platform version is supported but isn't the recommended one for its branch.
PlatformVersion (string) --
The version string of the platform version.
PlatformBranchName (string) --
The platform branch to which the platform version belongs.
PlatformBranchLifecycleState (string) --
The state of the platform version's branch in its lifecycle.
Possible values: beta | supported | deprecated | retired
The available waiters are:
waiter = client.get_waiter('environment_exists')
Polls ElasticBeanstalk.Client.describe_environments() every 20 seconds until a successful state is reached. An error is returned after 20 failed checks.
See also: AWS API Documentation
Request Syntax
waiter.wait(
ApplicationName='string',
VersionLabel='string',
EnvironmentIds=[
'string',
],
EnvironmentNames=[
'string',
],
IncludeDeleted=True|False,
IncludedDeletedBackTo=datetime(2015, 1, 1),
MaxRecords=123,
NextToken='string',
WaiterConfig={
'Delay': 123,
'MaxAttempts': 123
}
)
If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that have the specified IDs.
If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that have the specified names.
Indicates whether to include deleted environments:
true : Environments that have been deleted after IncludedDeletedBackTo are displayed.false : Do not include deleted environments.
For a paginated request. Specify a maximum number of environments to include in each response.
If no MaxRecords is specified, all available environments are retrieved in a single response.
For a paginated request. Specify a token from a previous response page to retrieve the next response page. All other parameter values must be identical to the ones specified in the initial request.
If no NextToken is specified, the first page is retrieved.
A dictionary that provides parameters to control waiting behavior.
The amount of time in seconds to wait between attempts. Default: 20
The maximum number of attempts to be made. Default: 20
None
waiter = client.get_waiter('environment_terminated')
Polls ElasticBeanstalk.Client.describe_environments() every 20 seconds until a successful state is reached. An error is returned after 20 failed checks.
See also: AWS API Documentation
Request Syntax
waiter.wait(
ApplicationName='string',
VersionLabel='string',
EnvironmentIds=[
'string',
],
EnvironmentNames=[
'string',
],
IncludeDeleted=True|False,
IncludedDeletedBackTo=datetime(2015, 1, 1),
MaxRecords=123,
NextToken='string',
WaiterConfig={
'Delay': 123,
'MaxAttempts': 123
}
)
If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that have the specified IDs.
If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that have the specified names.
Indicates whether to include deleted environments:
true : Environments that have been deleted after IncludedDeletedBackTo are displayed.false : Do not include deleted environments.
For a paginated request. Specify a maximum number of environments to include in each response.
If no MaxRecords is specified, all available environments are retrieved in a single response.
For a paginated request. Specify a token from a previous response page to retrieve the next response page. All other parameter values must be identical to the ones specified in the initial request.
If no NextToken is specified, the first page is retrieved.
A dictionary that provides parameters to control waiting behavior.
The amount of time in seconds to wait between attempts. Default: 20
The maximum number of attempts to be made. Default: 20
None
waiter = client.get_waiter('environment_updated')
Polls ElasticBeanstalk.Client.describe_environments() every 20 seconds until a successful state is reached. An error is returned after 20 failed checks.
See also: AWS API Documentation
Request Syntax
waiter.wait(
ApplicationName='string',
VersionLabel='string',
EnvironmentIds=[
'string',
],
EnvironmentNames=[
'string',
],
IncludeDeleted=True|False,
IncludedDeletedBackTo=datetime(2015, 1, 1),
MaxRecords=123,
NextToken='string',
WaiterConfig={
'Delay': 123,
'MaxAttempts': 123
}
)
If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that have the specified IDs.
If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that have the specified names.
Indicates whether to include deleted environments:
true : Environments that have been deleted after IncludedDeletedBackTo are displayed.false : Do not include deleted environments.
For a paginated request. Specify a maximum number of environments to include in each response.
If no MaxRecords is specified, all available environments are retrieved in a single response.
For a paginated request. Specify a token from a previous response page to retrieve the next response page. All other parameter values must be identical to the ones specified in the initial request.
If no NextToken is specified, the first page is retrieved.
A dictionary that provides parameters to control waiting behavior.
The amount of time in seconds to wait between attempts. Default: 20
The maximum number of attempts to be made. Default: 20
None