| 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 |
Amazonka.SSMIncidents.GetTimelineEvent
Description
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.
Constructors
| GetTimelineEvent' | |
Fields
| |
Instances
Arguments
| :: 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.
Constructors
| GetTimelineEventResponse' | |
Fields
| |
Instances
newGetTimelineEventResponse Source #
Arguments
| :: Int | |
| -> TimelineEvent | |
| -> GetTimelineEventResponse |
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.