deleteTimelineEvent method

Future<void> deleteTimelineEvent({
  1. required String eventId,
  2. required String incidentRecordArn,
})

Deletes a timeline event from an incident.

May throw AccessDeniedException. May throw InternalServerException. May throw ThrottlingException. May throw ValidationException.

Parameter eventId : The ID of the event to update. You can use ListTimelineEvents to find an event's ID.

Parameter incidentRecordArn : The Amazon Resource Name (ARN) of the incident that includes the timeline event.

Implementation

Future<void> deleteTimelineEvent({
  required String eventId,
  required String incidentRecordArn,
}) async {
  final $payload = <String, dynamic>{
    'eventId': eventId,
    'incidentRecordArn': incidentRecordArn,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/deleteTimelineEvent',
    exceptionFnMap: _exceptionFns,
  );
}