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 |
Updates a timeline event. You can update events of type Custom Event
.
Synopsis
- data UpdateTimelineEvent = UpdateTimelineEvent' {}
- newUpdateTimelineEvent :: Text -> Text -> UpdateTimelineEvent
- updateTimelineEvent_eventData :: Lens' UpdateTimelineEvent (Maybe Text)
- updateTimelineEvent_clientToken :: Lens' UpdateTimelineEvent (Maybe Text)
- updateTimelineEvent_eventTime :: Lens' UpdateTimelineEvent (Maybe UTCTime)
- updateTimelineEvent_eventType :: Lens' UpdateTimelineEvent (Maybe Text)
- updateTimelineEvent_eventId :: Lens' UpdateTimelineEvent Text
- updateTimelineEvent_incidentRecordArn :: Lens' UpdateTimelineEvent Text
- data UpdateTimelineEventResponse = UpdateTimelineEventResponse' {
- httpStatus :: Int
- newUpdateTimelineEventResponse :: Int -> UpdateTimelineEventResponse
- updateTimelineEventResponse_httpStatus :: Lens' UpdateTimelineEventResponse Int
Creating a Request
data UpdateTimelineEvent Source #
See: newUpdateTimelineEvent
smart constructor.
UpdateTimelineEvent' | |
|
Instances
newUpdateTimelineEvent Source #
:: Text | |
-> Text | |
-> UpdateTimelineEvent |
Create a value of UpdateTimelineEvent
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:eventData:UpdateTimelineEvent'
, updateTimelineEvent_eventData
- A short description of the event.
$sel:clientToken:UpdateTimelineEvent'
, updateTimelineEvent_clientToken
- A token ensuring that the action is called only once with the specified
details.
$sel:eventTime:UpdateTimelineEvent'
, updateTimelineEvent_eventTime
- The time that the event occurred.
$sel:eventType:UpdateTimelineEvent'
, updateTimelineEvent_eventType
- The type of the event. You can update events of type Custom Event
.
$sel:eventId:UpdateTimelineEvent'
, updateTimelineEvent_eventId
- The ID of the event you are updating. You can find this by using
ListTimelineEvents
.
$sel:incidentRecordArn:UpdateTimelineEvent'
, updateTimelineEvent_incidentRecordArn
- The Amazon Resource Name (ARN) of the incident that the timeline event
is part of.
Request Lenses
updateTimelineEvent_eventData :: Lens' UpdateTimelineEvent (Maybe Text) Source #
A short description of the event.
updateTimelineEvent_clientToken :: Lens' UpdateTimelineEvent (Maybe Text) Source #
A token ensuring that the action is called only once with the specified details.
updateTimelineEvent_eventTime :: Lens' UpdateTimelineEvent (Maybe UTCTime) Source #
The time that the event occurred.
updateTimelineEvent_eventType :: Lens' UpdateTimelineEvent (Maybe Text) Source #
The type of the event. You can update events of type Custom Event
.
updateTimelineEvent_eventId :: Lens' UpdateTimelineEvent Text Source #
The ID of the event you are updating. You can find this by using
ListTimelineEvents
.
updateTimelineEvent_incidentRecordArn :: Lens' UpdateTimelineEvent Text Source #
The Amazon Resource Name (ARN) of the incident that the timeline event is part of.
Destructuring the Response
data UpdateTimelineEventResponse Source #
See: newUpdateTimelineEventResponse
smart constructor.
UpdateTimelineEventResponse' | |
|
Instances
newUpdateTimelineEventResponse Source #
Create a value of UpdateTimelineEventResponse
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:UpdateTimelineEventResponse'
, updateTimelineEventResponse_httpStatus
- The response's http status code.
Response Lenses
updateTimelineEventResponse_httpStatus :: Lens' UpdateTimelineEventResponse Int Source #
The response's http status code.