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 |
Retrieves a timeline event based on its ID and incident record.
Synopsis
- data GetTimelineEvent = GetTimelineEvent' {
- eventId :: Text
- incidentRecordArn :: Text
- newGetTimelineEvent :: Text -> Text -> GetTimelineEvent
- getTimelineEvent_eventId :: Lens' GetTimelineEvent Text
- getTimelineEvent_incidentRecordArn :: Lens' GetTimelineEvent Text
- data GetTimelineEventResponse = GetTimelineEventResponse' {
- httpStatus :: Int
- event :: TimelineEvent
- newGetTimelineEventResponse :: Int -> TimelineEvent -> GetTimelineEventResponse
- getTimelineEventResponse_httpStatus :: Lens' GetTimelineEventResponse Int
- getTimelineEventResponse_event :: Lens' GetTimelineEventResponse TimelineEvent
Creating a Request
data GetTimelineEvent Source #
See: newGetTimelineEvent
smart constructor.
GetTimelineEvent' | |
|
Instances
:: Text | |
-> Text | |
-> GetTimelineEvent |
Create a value of GetTimelineEvent
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:eventId:GetTimelineEvent'
, getTimelineEvent_eventId
- The ID of the event. You can get an event's ID when you create it or by
using ListTimelineEvents
.
$sel:incidentRecordArn:GetTimelineEvent'
, getTimelineEvent_incidentRecordArn
- The Amazon Resource Name (ARN) of the incident that the timeline event
is part of.
Request Lenses
getTimelineEvent_eventId :: Lens' GetTimelineEvent Text Source #
The ID of the event. You can get an event's ID when you create it or by
using ListTimelineEvents
.
getTimelineEvent_incidentRecordArn :: Lens' GetTimelineEvent Text Source #
The Amazon Resource Name (ARN) of the incident that the timeline event is part of.
Destructuring the Response
data GetTimelineEventResponse Source #
See: newGetTimelineEventResponse
smart constructor.
GetTimelineEventResponse' | |
|
Instances
newGetTimelineEventResponse Source #
Create a value of GetTimelineEventResponse
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:httpStatus:GetTimelineEventResponse'
, getTimelineEventResponse_httpStatus
- The response's http status code.
$sel:event:GetTimelineEventResponse'
, getTimelineEventResponse_event
- Details about the timeline event.
Response Lenses
getTimelineEventResponse_httpStatus :: Lens' GetTimelineEventResponse Int Source #
The response's http status code.
getTimelineEventResponse_event :: Lens' GetTimelineEventResponse TimelineEvent Source #
Details about the timeline event.