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 |
Creates a custom timeline event on the incident details page of an incident record. Timeline events are automatically created by Incident Manager, marking key moment during an incident. You can create custom timeline events to mark important events that are automatically detected by Incident Manager.
Synopsis
- data CreateTimelineEvent = CreateTimelineEvent' {}
- newCreateTimelineEvent :: Text -> UTCTime -> Text -> Text -> CreateTimelineEvent
- createTimelineEvent_clientToken :: Lens' CreateTimelineEvent (Maybe Text)
- createTimelineEvent_eventData :: Lens' CreateTimelineEvent Text
- createTimelineEvent_eventTime :: Lens' CreateTimelineEvent UTCTime
- createTimelineEvent_eventType :: Lens' CreateTimelineEvent Text
- createTimelineEvent_incidentRecordArn :: Lens' CreateTimelineEvent Text
- data CreateTimelineEventResponse = CreateTimelineEventResponse' {
- httpStatus :: Int
- eventId :: Text
- incidentRecordArn :: Text
- newCreateTimelineEventResponse :: Int -> Text -> Text -> CreateTimelineEventResponse
- createTimelineEventResponse_httpStatus :: Lens' CreateTimelineEventResponse Int
- createTimelineEventResponse_eventId :: Lens' CreateTimelineEventResponse Text
- createTimelineEventResponse_incidentRecordArn :: Lens' CreateTimelineEventResponse Text
Creating a Request
data CreateTimelineEvent Source #
See: newCreateTimelineEvent
smart constructor.
CreateTimelineEvent' | |
|
Instances
newCreateTimelineEvent Source #
:: Text | |
-> UTCTime | |
-> Text | |
-> Text | |
-> CreateTimelineEvent |
Create a value of CreateTimelineEvent
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:clientToken:CreateTimelineEvent'
, createTimelineEvent_clientToken
- A token ensuring that the action is called only once with the specified
details.
$sel:eventData:CreateTimelineEvent'
, createTimelineEvent_eventData
- A valid JSON string. There is no other schema imposed. A short
description of the event.
$sel:eventTime:CreateTimelineEvent'
, createTimelineEvent_eventTime
- The time that the event occurred.
$sel:eventType:CreateTimelineEvent'
, createTimelineEvent_eventType
- The type of the event. You can create timeline events of type
Custom Event
.
$sel:incidentRecordArn:CreateTimelineEvent'
, createTimelineEvent_incidentRecordArn
- The Amazon Resource Name (ARN) of the incident record you are adding the
event to.
Request Lenses
createTimelineEvent_clientToken :: Lens' CreateTimelineEvent (Maybe Text) Source #
A token ensuring that the action is called only once with the specified details.
createTimelineEvent_eventData :: Lens' CreateTimelineEvent Text Source #
A valid JSON string. There is no other schema imposed. A short description of the event.
createTimelineEvent_eventTime :: Lens' CreateTimelineEvent UTCTime Source #
The time that the event occurred.
createTimelineEvent_eventType :: Lens' CreateTimelineEvent Text Source #
The type of the event. You can create timeline events of type
Custom Event
.
createTimelineEvent_incidentRecordArn :: Lens' CreateTimelineEvent Text Source #
The Amazon Resource Name (ARN) of the incident record you are adding the event to.
Destructuring the Response
data CreateTimelineEventResponse Source #
See: newCreateTimelineEventResponse
smart constructor.
CreateTimelineEventResponse' | |
|
Instances
newCreateTimelineEventResponse Source #
:: Int | |
-> Text | |
-> Text | |
-> CreateTimelineEventResponse |
Create a value of CreateTimelineEventResponse
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:CreateTimelineEventResponse'
, createTimelineEventResponse_httpStatus
- The response's http status code.
$sel:eventId:CreateTimelineEventResponse'
, createTimelineEventResponse_eventId
- The ID of the event for easy reference later.
$sel:incidentRecordArn:CreateTimelineEvent'
, createTimelineEventResponse_incidentRecordArn
- The ARN of the incident record that you added the event to.
Response Lenses
createTimelineEventResponse_httpStatus :: Lens' CreateTimelineEventResponse Int Source #
The response's http status code.
createTimelineEventResponse_eventId :: Lens' CreateTimelineEventResponse Text Source #
The ID of the event for easy reference later.
createTimelineEventResponse_incidentRecordArn :: Lens' CreateTimelineEventResponse Text Source #
The ARN of the incident record that you added the event to.