Table of Contents
ElasticBeanstalk.Client¶A low-level client representing AWS Elastic Beanstalk:
client = session.create_client('elasticbeanstalk')
These are the available methods:
abort_environment_update()apply_environment_managed_action()can_paginate()check_dns_availability()compose_environments()create_application()create_application_version()create_configuration_template()create_environment()create_platform_version()create_storage_location()delete_application()delete_application_version()delete_configuration_template()delete_environment_configuration()delete_platform_version()describe_application_versions()describe_applications()describe_configuration_options()describe_configuration_settings()describe_environment_health()describe_environment_managed_action_history()describe_environment_managed_actions()describe_environment_resources()describe_environments()describe_events()describe_instances_health()describe_platform_version()generate_presigned_url()get_paginator()get_waiter()list_available_solution_stacks()list_platform_versions()rebuild_environment()request_environment_info()restart_app_server()retrieve_environment_info()swap_environment_cnames()terminate_environment()update_application()update_application_resource_lifecycle()update_application_version()update_configuration_template()update_environment()validate_configuration_settings()abort_environment_update(**kwargs)¶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'
)
| Parameters: |
|
|---|---|
| Returns: | None |
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': {
'...': '...',
},
}
apply_environment_managed_action(**kwargs)¶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'
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'ActionId': 'string',
'ActionDescription': 'string',
'ActionType': 'InstanceRefresh'|'PlatformUpdate'|'Unknown',
'Status': 'string'
}
Response Structure
|
can_paginate(operation_name)¶Check if an operation can be paginated.
| Parameters: | operation_name (string) – The operation name. This is the same name
as the method name on the client. For example, if the
method name is create_foo, and you’d normally invoke the
operation as client.create_foo(**kwargs), if the
create_foo operation can be paginated, you can use the
call client.get_paginator("create_foo"). |
|---|---|
| Returns: | True if the operation can be paginated,
False otherwise. |
check_dns_availability(**kwargs)¶Checks if the specified CNAME is available.
See also: AWS API Documentation
Request Syntax
response = client.check_dns_availability(
CNAMEPrefix='string'
)
| Parameters: | CNAMEPrefix (string) – [REQUIRED] The prefix used when this CNAME is reserved. |
|---|---|
| Return type: | dict |
| Returns: | Response Syntax{
'Available': True|False,
'FullyQualifiedCNAME': 'string'
}
Response Structure
|
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': {
'...': '...',
},
}
compose_environments(**kwargs)¶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',
]
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'Environments': [
{
'EnvironmentName': 'string',
'EnvironmentId': 'string',
'ApplicationName': 'string',
'VersionLabel': 'string',
'SolutionStackName': 'string',
'PlatformArn': 'string',
'TemplateName': 'string',
'Description': 'string',
'EndpointURL': 'string',
'CNAME': 'string',
'DateCreated': datetime(2015, 1, 1),
'DateUpdated': datetime(2015, 1, 1),
'Status': 'Launching'|'Updating'|'Ready'|'Terminating'|'Terminated',
'AbortableOperationInProgress': True|False,
'Health': 'Green'|'Yellow'|'Red'|'Grey',
'HealthStatus': 'NoData'|'Unknown'|'Pending'|'Ok'|'Info'|'Warning'|'Degraded'|'Severe',
'Resources': {
'LoadBalancer': {
'LoadBalancerName': 'string',
'Domain': 'string',
'Listeners': [
{
'Protocol': 'string',
'Port': 123
},
]
}
},
'Tier': {
'Name': 'string',
'Type': 'string',
'Version': 'string'
},
'EnvironmentLinks': [
{
'LinkName': 'string',
'EnvironmentName': 'string'
},
],
'EnvironmentArn': 'string'
},
],
'NextToken': 'string'
}
Response Structure
|
create_application(**kwargs)¶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
}
}
}
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'Application': {
'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
|
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': {
'...': '...',
},
}
create_application_version(**kwargs)¶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
Once you create an application version with a specified Amazon S3 bucket and key location, you cannot 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
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'ApplicationVersion': {
'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
|
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': {
'...': '...',
},
}
create_configuration_template(**kwargs)¶Creates a configuration template. Templates are associated with a specific application and are used to deploy different versions of the application with the same configuration settings.
Related Topics
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'
},
]
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'SolutionStackName': 'string',
'PlatformArn': 'string',
'ApplicationName': 'string',
'TemplateName': 'string',
'Description': 'string',
'EnvironmentName': 'string',
'DeploymentStatus': 'deployed'|'pending'|'failed',
'DateCreated': datetime(2015, 1, 1),
'DateUpdated': datetime(2015, 1, 1),
'OptionSettings': [
{
'ResourceName': 'string',
'Namespace': 'string',
'OptionName': 'string',
'Value': 'string'
},
]
}
Response Structure
|
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': {
'...': '...',
},
}
create_environment(**kwargs)¶Launches an 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'
},
]
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'EnvironmentName': 'string',
'EnvironmentId': 'string',
'ApplicationName': 'string',
'VersionLabel': 'string',
'SolutionStackName': 'string',
'PlatformArn': 'string',
'TemplateName': 'string',
'Description': 'string',
'EndpointURL': 'string',
'CNAME': 'string',
'DateCreated': datetime(2015, 1, 1),
'DateUpdated': datetime(2015, 1, 1),
'Status': 'Launching'|'Updating'|'Ready'|'Terminating'|'Terminated',
'AbortableOperationInProgress': True|False,
'Health': 'Green'|'Yellow'|'Red'|'Grey',
'HealthStatus': 'NoData'|'Unknown'|'Pending'|'Ok'|'Info'|'Warning'|'Degraded'|'Severe',
'Resources': {
'LoadBalancer': {
'LoadBalancerName': 'string',
'Domain': 'string',
'Listeners': [
{
'Protocol': 'string',
'Port': 123
},
]
}
},
'Tier': {
'Name': 'string',
'Type': 'string',
'Version': 'string'
},
'EnvironmentLinks': [
{
'LinkName': 'string',
'EnvironmentName': 'string'
},
],
'EnvironmentArn': 'string'
}
Response Structure
|
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_platform_version(**kwargs)¶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'
},
]
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'PlatformSummary': {
'PlatformArn': 'string',
'PlatformOwner': 'string',
'PlatformStatus': 'Creating'|'Failed'|'Ready'|'Deleting'|'Deleted',
'PlatformCategory': 'string',
'OperatingSystemName': 'string',
'OperatingSystemVersion': 'string',
'SupportedTierList': [
'string',
],
'SupportedAddonList': [
'string',
]
},
'Builder': {
'ARN': 'string'
}
}
Response Structure
|
create_storage_location()¶Creates the Amazon S3 storage location for the account.
This location is used to store user log files.
See also: AWS API Documentation
Request Syntax
response = client.create_storage_location()
| Return type: | dict |
|---|---|
| Returns: | Response Syntax{
'S3Bucket': 'string'
}
Response Structure
|
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': {
'...': '...',
},
}
delete_application(**kwargs)¶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
)
| Parameters: |
|
|---|---|
| Returns: | None |
Examples
The following operation deletes an application named my-app:
response = client.delete_application(
ApplicationName='my-app',
)
print(response)
Expected Output:
{
'ResponseMetadata': {
'...': '...',
},
}
delete_application_version(**kwargs)¶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
)
| Parameters: |
|
|---|---|
| Returns: | None |
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': {
'...': '...',
},
}
delete_configuration_template(**kwargs)¶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'
)
| Parameters: |
|
|---|---|
| Returns: | None |
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': {
'...': '...',
},
}
delete_environment_configuration(**kwargs)¶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'
)
| Parameters: |
|
|---|---|
| Returns: | 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': {
'...': '...',
},
}
delete_platform_version(**kwargs)¶Deletes the specified version of a custom platform.
See also: AWS API Documentation
Request Syntax
response = client.delete_platform_version(
PlatformArn='string'
)
| Parameters: | PlatformArn (string) – The ARN of the version of the custom platform. |
|---|---|
| Return type: | dict |
| Returns: | Response Syntax{
'PlatformSummary': {
'PlatformArn': 'string',
'PlatformOwner': 'string',
'PlatformStatus': 'Creating'|'Failed'|'Ready'|'Deleting'|'Deleted',
'PlatformCategory': 'string',
'OperatingSystemName': 'string',
'OperatingSystemVersion': 'string',
'SupportedTierList': [
'string',
],
'SupportedAddonList': [
'string',
]
}
}
Response Structure
|
describe_application_versions(**kwargs)¶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'
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'ApplicationVersions': [
{
'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
|
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': {
'...': '...',
},
}
describe_applications(**kwargs)¶Returns the descriptions of existing applications.
See also: AWS API Documentation
Request Syntax
response = client.describe_applications(
ApplicationNames=[
'string',
]
)
| Parameters: | ApplicationNames (list) – If specified, AWS Elastic Beanstalk restricts the returned descriptions to only include those with the specified names.
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax{
'Applications': [
{
'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
|
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': {
'...': '...',
},
}
describe_configuration_options(**kwargs)¶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'
},
]
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'SolutionStackName': 'string',
'PlatformArn': 'string',
'Options': [
{
'Namespace': 'string',
'Name': 'string',
'DefaultValue': 'string',
'ChangeSeverity': 'string',
'UserDefined': True|False,
'ValueType': 'Scalar'|'List',
'ValueOptions': [
'string',
],
'MinValue': 123,
'MaxValue': 123,
'MaxLength': 123,
'Regex': {
'Pattern': 'string',
'Label': 'string'
}
},
]
}
Response Structure
|
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': {
'...': '...',
},
}
describe_configuration_settings(**kwargs)¶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'
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'ConfigurationSettings': [
{
'SolutionStackName': 'string',
'PlatformArn': 'string',
'ApplicationName': 'string',
'TemplateName': 'string',
'Description': 'string',
'EnvironmentName': 'string',
'DeploymentStatus': 'deployed'|'pending'|'failed',
'DateCreated': datetime(2015, 1, 1),
'DateUpdated': datetime(2015, 1, 1),
'OptionSettings': [
{
'ResourceName': 'string',
'Namespace': 'string',
'OptionName': 'string',
'Value': 'string'
},
]
},
]
}
Response Structure
|
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': {
'...': '...',
},
}
describe_environment_health(**kwargs)¶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',
]
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | 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
|
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': {
'...': '...',
},
}
describe_environment_managed_action_history(**kwargs)¶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
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | 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
|
describe_environment_managed_actions(**kwargs)¶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'
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'ManagedActions': [
{
'ActionId': 'string',
'ActionDescription': 'string',
'ActionType': 'InstanceRefresh'|'PlatformUpdate'|'Unknown',
'Status': 'Scheduled'|'Pending'|'Running'|'Unknown',
'WindowStartTime': datetime(2015, 1, 1)
},
]
}
Response Structure
|
describe_environment_resources(**kwargs)¶Returns AWS resources for this environment.
See also: AWS API Documentation
Request Syntax
response = client.describe_environment_resources(
EnvironmentId='string',
EnvironmentName='string'
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'EnvironmentResources': {
'EnvironmentName': 'string',
'AutoScalingGroups': [
{
'Name': 'string'
},
],
'Instances': [
{
'Id': 'string'
},
],
'LaunchConfigurations': [
{
'Name': 'string'
},
],
'LoadBalancers': [
{
'Name': 'string'
},
],
'Triggers': [
{
'Name': 'string'
},
],
'Queues': [
{
'Name': 'string',
'URL': 'string'
},
]
}
}
Response Structure
|
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': {
'...': '...',
},
}
describe_environments(**kwargs)¶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'
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'Environments': [
{
'EnvironmentName': 'string',
'EnvironmentId': 'string',
'ApplicationName': 'string',
'VersionLabel': 'string',
'SolutionStackName': 'string',
'PlatformArn': 'string',
'TemplateName': 'string',
'Description': 'string',
'EndpointURL': 'string',
'CNAME': 'string',
'DateCreated': datetime(2015, 1, 1),
'DateUpdated': datetime(2015, 1, 1),
'Status': 'Launching'|'Updating'|'Ready'|'Terminating'|'Terminated',
'AbortableOperationInProgress': True|False,
'Health': 'Green'|'Yellow'|'Red'|'Grey',
'HealthStatus': 'NoData'|'Unknown'|'Pending'|'Ok'|'Info'|'Warning'|'Degraded'|'Severe',
'Resources': {
'LoadBalancer': {
'LoadBalancerName': 'string',
'Domain': 'string',
'Listeners': [
{
'Protocol': 'string',
'Port': 123
},
]
}
},
'Tier': {
'Name': 'string',
'Type': 'string',
'Version': 'string'
},
'EnvironmentLinks': [
{
'LinkName': 'string',
'EnvironmentName': 'string'
},
],
'EnvironmentArn': 'string'
},
],
'NextToken': 'string'
}
Response Structure
|
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': {
'...': '...',
},
}
describe_events(**kwargs)¶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'
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'Events': [
{
'EventDate': datetime(2015, 1, 1),
'Message': 'string',
'ApplicationName': 'string',
'VersionLabel': 'string',
'TemplateName': 'string',
'EnvironmentName': 'string',
'PlatformArn': 'string',
'RequestId': 'string',
'Severity': 'TRACE'|'DEBUG'|'INFO'|'WARN'|'ERROR'|'FATAL'
},
],
'NextToken': 'string'
}
Response Structure
|
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': {
'...': '...',
},
}
describe_instances_health(**kwargs)¶Retrives 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'
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | 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
},
'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
|
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': {
'...': '...',
},
}
describe_platform_version(**kwargs)¶Describes the version of the platform.
See also: AWS API Documentation
Request Syntax
response = client.describe_platform_version(
PlatformArn='string'
)
| Parameters: | PlatformArn (string) – The ARN of the version of the platform. |
|---|---|
| Return type: | dict |
| Returns: | Response Syntax{
'PlatformDescription': {
'PlatformArn': 'string',
'PlatformOwner': 'string',
'PlatformName': 'string',
'PlatformVersion': 'string',
'SolutionStackName': 'string',
'PlatformStatus': 'Creating'|'Failed'|'Ready'|'Deleting'|'Deleted',
'DateCreated': datetime(2015, 1, 1),
'DateUpdated': datetime(2015, 1, 1),
'PlatformCategory': 'string',
'Description': 'string',
'Maintainer': 'string',
'OperatingSystemName': 'string',
'OperatingSystemVersion': 'string',
'ProgrammingLanguages': [
{
'Name': 'string',
'Version': 'string'
},
],
'Frameworks': [
{
'Name': 'string',
'Version': 'string'
},
],
'CustomAmiList': [
{
'VirtualizationType': 'string',
'ImageId': 'string'
},
],
'SupportedTierList': [
'string',
],
'SupportedAddonList': [
'string',
]
}
}
Response Structure
|
generate_presigned_url(ClientMethod, Params=None, ExpiresIn=3600, HttpMethod=None)¶Generate a presigned url given a client, its method, and arguments
| Parameters: |
|
|---|---|
| Returns: | The presigned url |
get_paginator(operation_name)¶Create a paginator for an operation.
| Parameters: | operation_name (string) – The operation name. This is the same name
as the method name on the client. For example, if the
method name is create_foo, and you’d normally invoke the
operation as client.create_foo(**kwargs), if the
create_foo operation can be paginated, you can use the
call client.get_paginator("create_foo"). |
|---|---|
| Raises: | OperationNotPageableError – Raised if the operation is not
pageable. You can use the client.can_paginate method to
check if an operation is pageable. |
| Return type: | L{botocore.paginate.Paginator} |
| Returns: | A paginator object. |
get_waiter(waiter_name)¶list_available_solution_stacks()¶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()
| Return type: | dict |
|---|---|
| Returns: | Response Syntax{
'SolutionStacks': [
'string',
],
'SolutionStackDetails': [
{
'SolutionStackName': 'string',
'PermittedFileTypes': [
'string',
]
},
]
}
Response Structure
|
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': {
'...': '...',
},
}
list_platform_versions(**kwargs)¶Lists the available platforms.
See also: AWS API Documentation
Request Syntax
response = client.list_platform_versions(
Filters=[
{
'Type': 'string',
'Operator': 'string',
'Values': [
'string',
]
},
],
MaxRecords=123,
NextToken='string'
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'PlatformSummaryList': [
{
'PlatformArn': 'string',
'PlatformOwner': 'string',
'PlatformStatus': 'Creating'|'Failed'|'Ready'|'Deleting'|'Deleted',
'PlatformCategory': 'string',
'OperatingSystemName': 'string',
'OperatingSystemVersion': 'string',
'SupportedTierList': [
'string',
],
'SupportedAddonList': [
'string',
]
},
],
'NextToken': 'string'
}
Response Structure
|
rebuild_environment(**kwargs)¶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'
)
| Parameters: |
|
|---|---|
| Returns: | None |
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': {
'...': '...',
},
}
request_environment_info(**kwargs)¶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'
)
| Parameters: |
|
|---|---|
| Returns: | 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': {
'...': '...',
},
}
restart_app_server(**kwargs)¶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'
)
| Parameters: |
|
|---|---|
| Returns: | 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': {
'...': '...',
},
}
retrieve_environment_info(**kwargs)¶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'
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'EnvironmentInfo': [
{
'InfoType': 'tail'|'bundle',
'Ec2InstanceId': 'string',
'SampleTimestamp': datetime(2015, 1, 1),
'Message': 'string'
},
]
}
Response Structure
|
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': {
'...': '...',
},
}
swap_environment_cnames(**kwargs)¶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'
)
| Parameters: |
|
|---|---|
| Returns: | 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': {
'...': '...',
},
}
terminate_environment(**kwargs)¶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
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'EnvironmentName': 'string',
'EnvironmentId': 'string',
'ApplicationName': 'string',
'VersionLabel': 'string',
'SolutionStackName': 'string',
'PlatformArn': 'string',
'TemplateName': 'string',
'Description': 'string',
'EndpointURL': 'string',
'CNAME': 'string',
'DateCreated': datetime(2015, 1, 1),
'DateUpdated': datetime(2015, 1, 1),
'Status': 'Launching'|'Updating'|'Ready'|'Terminating'|'Terminated',
'AbortableOperationInProgress': True|False,
'Health': 'Green'|'Yellow'|'Red'|'Grey',
'HealthStatus': 'NoData'|'Unknown'|'Pending'|'Ok'|'Info'|'Warning'|'Degraded'|'Severe',
'Resources': {
'LoadBalancer': {
'LoadBalancerName': 'string',
'Domain': 'string',
'Listeners': [
{
'Protocol': 'string',
'Port': 123
},
]
}
},
'Tier': {
'Name': 'string',
'Type': 'string',
'Version': 'string'
},
'EnvironmentLinks': [
{
'LinkName': 'string',
'EnvironmentName': 'string'
},
],
'EnvironmentArn': 'string'
}
Response Structure
|
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': {
'...': '...',
},
}
update_application(**kwargs)¶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'
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'Application': {
'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
|
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': {
'...': '...',
},
}
update_application_resource_lifecycle(**kwargs)¶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
}
}
}
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | 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
|
update_application_version(**kwargs)¶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'
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'ApplicationVersion': {
'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
|
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': {
'...': '...',
},
}
update_configuration_template(**kwargs)¶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'
},
]
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'SolutionStackName': 'string',
'PlatformArn': 'string',
'ApplicationName': 'string',
'TemplateName': 'string',
'Description': 'string',
'EnvironmentName': 'string',
'DeploymentStatus': 'deployed'|'pending'|'failed',
'DateCreated': datetime(2015, 1, 1),
'DateUpdated': datetime(2015, 1, 1),
'OptionSettings': [
{
'ResourceName': 'string',
'Namespace': 'string',
'OptionName': 'string',
'Value': 'string'
},
]
}
Response Structure
|
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': {
'...': '...',
},
}
update_environment(**kwargs)¶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'
},
]
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'EnvironmentName': 'string',
'EnvironmentId': 'string',
'ApplicationName': 'string',
'VersionLabel': 'string',
'SolutionStackName': 'string',
'PlatformArn': 'string',
'TemplateName': 'string',
'Description': 'string',
'EndpointURL': 'string',
'CNAME': 'string',
'DateCreated': datetime(2015, 1, 1),
'DateUpdated': datetime(2015, 1, 1),
'Status': 'Launching'|'Updating'|'Ready'|'Terminating'|'Terminated',
'AbortableOperationInProgress': True|False,
'Health': 'Green'|'Yellow'|'Red'|'Grey',
'HealthStatus': 'NoData'|'Unknown'|'Pending'|'Ok'|'Info'|'Warning'|'Degraded'|'Severe',
'Resources': {
'LoadBalancer': {
'LoadBalancerName': 'string',
'Domain': 'string',
'Listeners': [
{
'Protocol': 'string',
'Port': 123
},
]
}
},
'Tier': {
'Name': 'string',
'Type': 'string',
'Version': 'string'
},
'EnvironmentLinks': [
{
'LinkName': 'string',
'EnvironmentName': 'string'
},
],
'EnvironmentArn': 'string'
}
Response Structure
|
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': {
'...': '...',
},
}
validate_configuration_settings(**kwargs)¶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'
},
]
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'Messages': [
{
'Message': 'string',
'Severity': 'error'|'warning',
'Namespace': 'string',
'OptionName': 'string'
},
]
}
Response Structure
|
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:
ElasticBeanstalk.Paginator.DescribeEvents¶paginator = client.get_paginator('describe_events')
paginate(**kwargs)¶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'
}
)
| Parameters: |
|
|---|---|
| Return type: | dict |
| Returns: | Response Syntax {
'Events': [
{
'EventDate': datetime(2015, 1, 1),
'Message': 'string',
'ApplicationName': 'string',
'VersionLabel': 'string',
'TemplateName': 'string',
'EnvironmentName': 'string',
'PlatformArn': 'string',
'RequestId': 'string',
'Severity': 'TRACE'|'DEBUG'|'INFO'|'WARN'|'ERROR'|'FATAL'
},
],
}
Response Structure
|