Skip to main content

events

Creates, updates, deletes, gets or lists an events resource.

Overview

Nameevents
TypeResource
Idaws.elasticbeanstalk.events

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
application_namestringThe application associated with the event.
environment_namestringThe name of the environment associated with this event.
event_datestringThe date when the event occurred.
messagestringThe event message.
platform_arnstringThe ARN of the platform version.
request_idstringThe web service request ID for the activity of this event.
severitystringThe severity level of this event.
template_namestringThe name of the configuration associated with this event.
version_labelstringThe release label for the application version associated with this event.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_eventsselectregionApplicationName, VersionLabel, TemplateName, EnvironmentId, EnvironmentName, PlatformArn, RequestId, Severity, StartTime, EndTime, MaxRecords, NextTokenReturns list of event descriptions matching criteria up to the last 6 weeks. This action returns the most recent 1,000 events from the specified NextToken.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)
ApplicationNamestringIf specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those associated with this application.
EndTimestring (date-time)If specified, AWS Elastic Beanstalk restricts the returned descriptions to those that occur up to, but not including, the EndTime.
EnvironmentIdstringIf specified, AWS Elastic Beanstalk restricts the returned descriptions to those associated with this environment.
EnvironmentNamestringIf specified, AWS Elastic Beanstalk restricts the returned descriptions to those associated with this environment.
MaxRecordsintegerSpecifies the maximum number of events that can be returned, beginning with the most recent event.
NextTokenstringPagination token. If specified, the events return the next batch of results.
PlatformArnstringThe ARN of a custom platform version. If specified, AWS Elastic Beanstalk restricts the returned descriptions to those associated with this custom platform version.
RequestIdstringIf specified, AWS Elastic Beanstalk restricts the described events to include only those associated with this request ID.
SeveritystringIf specified, limits the events returned from this call to include only those with the specified severity or higher.
StartTimestring (date-time)If specified, AWS Elastic Beanstalk restricts the returned descriptions to those that occur on or after this time.
TemplateNamestringIf specified, AWS Elastic Beanstalk restricts the returned descriptions to those that are associated with this environment configuration.
VersionLabelstringIf specified, AWS Elastic Beanstalk restricts the returned descriptions to those associated with this application version.

SELECT examples

Returns list of event descriptions matching criteria up to the last 6 weeks. This action returns the most recent 1,000 events from the specified NextToken.

SELECT
application_name,
environment_name,
event_date,
message,
platform_arn,
request_id,
severity,
template_name,
version_label
FROM aws.elasticbeanstalk.events
WHERE region = '{{ region }}' -- required
AND ApplicationName = '{{ ApplicationName }}'
AND VersionLabel = '{{ VersionLabel }}'
AND TemplateName = '{{ TemplateName }}'
AND EnvironmentId = '{{ EnvironmentId }}'
AND EnvironmentName = '{{ EnvironmentName }}'
AND PlatformArn = '{{ PlatformArn }}'
AND RequestId = '{{ RequestId }}'
AND Severity = '{{ Severity }}'
AND StartTime = '{{ StartTime }}'
AND EndTime = '{{ EndTime }}'
AND MaxRecords = '{{ MaxRecords }}'
AND NextToken = '{{ NextToken }}'
;