Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
.
This operation returns paginated results.
Synopsis
- data DescribeEvents = DescribeEvents' {
- requestId :: Maybe Text
- templateName :: Maybe Text
- startTime :: Maybe ISO8601
- severity :: Maybe EventSeverity
- nextToken :: Maybe Text
- versionLabel :: Maybe Text
- platformArn :: Maybe Text
- environmentName :: Maybe Text
- maxRecords :: Maybe Natural
- endTime :: Maybe ISO8601
- applicationName :: Maybe Text
- environmentId :: Maybe Text
- newDescribeEvents :: DescribeEvents
- describeEvents_requestId :: Lens' DescribeEvents (Maybe Text)
- describeEvents_templateName :: Lens' DescribeEvents (Maybe Text)
- describeEvents_startTime :: Lens' DescribeEvents (Maybe UTCTime)
- describeEvents_severity :: Lens' DescribeEvents (Maybe EventSeverity)
- describeEvents_nextToken :: Lens' DescribeEvents (Maybe Text)
- describeEvents_versionLabel :: Lens' DescribeEvents (Maybe Text)
- describeEvents_platformArn :: Lens' DescribeEvents (Maybe Text)
- describeEvents_environmentName :: Lens' DescribeEvents (Maybe Text)
- describeEvents_maxRecords :: Lens' DescribeEvents (Maybe Natural)
- describeEvents_endTime :: Lens' DescribeEvents (Maybe UTCTime)
- describeEvents_applicationName :: Lens' DescribeEvents (Maybe Text)
- describeEvents_environmentId :: Lens' DescribeEvents (Maybe Text)
- data DescribeEventsResponse = DescribeEventsResponse' {
- nextToken :: Maybe Text
- events :: Maybe [EventDescription]
- httpStatus :: Int
- newDescribeEventsResponse :: Int -> DescribeEventsResponse
- describeEventsResponse_nextToken :: Lens' DescribeEventsResponse (Maybe Text)
- describeEventsResponse_events :: Lens' DescribeEventsResponse (Maybe [EventDescription])
- describeEventsResponse_httpStatus :: Lens' DescribeEventsResponse Int
Creating a Request
data DescribeEvents Source #
Request to retrieve a list of events for an environment.
See: newDescribeEvents
smart constructor.
DescribeEvents' | |
|
Instances
newDescribeEvents :: DescribeEvents Source #
Create a value of DescribeEvents
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:requestId:DescribeEvents'
, describeEvents_requestId
- If specified, AWS Elastic Beanstalk restricts the described events to
include only those associated with this request ID.
$sel:templateName:DescribeEvents'
, describeEvents_templateName
- If specified, AWS Elastic Beanstalk restricts the returned descriptions
to those that are associated with this environment configuration.
$sel:startTime:DescribeEvents'
, describeEvents_startTime
- If specified, AWS Elastic Beanstalk restricts the returned descriptions
to those that occur on or after this time.
$sel:severity:DescribeEvents'
, describeEvents_severity
- If specified, limits the events returned from this call to include only
those with the specified severity or higher.
$sel:nextToken:DescribeEvents'
, describeEvents_nextToken
- Pagination token. If specified, the events return the next batch of
results.
$sel:versionLabel:DescribeEvents'
, describeEvents_versionLabel
- If specified, AWS Elastic Beanstalk restricts the returned descriptions
to those associated with this application version.
$sel:platformArn:DescribeEvents'
, describeEvents_platformArn
- The ARN of a custom platform version. If specified, AWS Elastic
Beanstalk restricts the returned descriptions to those associated with
this custom platform version.
$sel:environmentName:DescribeEvents'
, describeEvents_environmentName
- If specified, AWS Elastic Beanstalk restricts the returned descriptions
to those associated with this environment.
$sel:maxRecords:DescribeEvents'
, describeEvents_maxRecords
- Specifies the maximum number of events that can be returned, beginning
with the most recent event.
$sel:endTime:DescribeEvents'
, describeEvents_endTime
- If specified, AWS Elastic Beanstalk restricts the returned descriptions
to those that occur up to, but not including, the EndTime
.
$sel:applicationName:DescribeEvents'
, describeEvents_applicationName
- If specified, AWS Elastic Beanstalk restricts the returned descriptions
to include only those associated with this application.
$sel:environmentId:DescribeEvents'
, describeEvents_environmentId
- If specified, AWS Elastic Beanstalk restricts the returned descriptions
to those associated with this environment.
Request Lenses
describeEvents_requestId :: Lens' DescribeEvents (Maybe Text) Source #
If specified, AWS Elastic Beanstalk restricts the described events to include only those associated with this request ID.
describeEvents_templateName :: Lens' DescribeEvents (Maybe Text) Source #
If specified, AWS Elastic Beanstalk restricts the returned descriptions to those that are associated with this environment configuration.
describeEvents_startTime :: Lens' DescribeEvents (Maybe UTCTime) Source #
If specified, AWS Elastic Beanstalk restricts the returned descriptions to those that occur on or after this time.
describeEvents_severity :: Lens' DescribeEvents (Maybe EventSeverity) Source #
If specified, limits the events returned from this call to include only those with the specified severity or higher.
describeEvents_nextToken :: Lens' DescribeEvents (Maybe Text) Source #
Pagination token. If specified, the events return the next batch of results.
describeEvents_versionLabel :: Lens' DescribeEvents (Maybe Text) Source #
If specified, AWS Elastic Beanstalk restricts the returned descriptions to those associated with this application version.
describeEvents_platformArn :: Lens' DescribeEvents (Maybe Text) Source #
The ARN of a custom platform version. If specified, AWS Elastic Beanstalk restricts the returned descriptions to those associated with this custom platform version.
describeEvents_environmentName :: Lens' DescribeEvents (Maybe Text) Source #
If specified, AWS Elastic Beanstalk restricts the returned descriptions to those associated with this environment.
describeEvents_maxRecords :: Lens' DescribeEvents (Maybe Natural) Source #
Specifies the maximum number of events that can be returned, beginning with the most recent event.
describeEvents_endTime :: Lens' DescribeEvents (Maybe UTCTime) Source #
If specified, AWS Elastic Beanstalk restricts the returned descriptions
to those that occur up to, but not including, the EndTime
.
describeEvents_applicationName :: Lens' DescribeEvents (Maybe Text) Source #
If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those associated with this application.
describeEvents_environmentId :: Lens' DescribeEvents (Maybe Text) Source #
If specified, AWS Elastic Beanstalk restricts the returned descriptions to those associated with this environment.
Destructuring the Response
data DescribeEventsResponse Source #
Result message wrapping a list of event descriptions.
See: newDescribeEventsResponse
smart constructor.
DescribeEventsResponse' | |
|
Instances
newDescribeEventsResponse Source #
Create a value of DescribeEventsResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:nextToken:DescribeEvents'
, describeEventsResponse_nextToken
- 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.
$sel:events:DescribeEventsResponse'
, describeEventsResponse_events
- A list of EventDescription.
$sel:httpStatus:DescribeEventsResponse'
, describeEventsResponse_httpStatus
- The response's http status code.
Response Lenses
describeEventsResponse_nextToken :: Lens' DescribeEventsResponse (Maybe Text) Source #
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.
describeEventsResponse_events :: Lens' DescribeEventsResponse (Maybe [EventDescription]) Source #
A list of EventDescription.
describeEventsResponse_httpStatus :: Lens' DescribeEventsResponse Int Source #
The response's http status code.