updateRelatedItems method

Future<void> updateRelatedItems({
  1. required String incidentRecordArn,
  2. required RelatedItemsUpdate relatedItemsUpdate,
  3. String? clientToken,
})

Add or remove related items from the related items tab of an incident record.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter incidentRecordArn : The Amazon Resource Name (ARN) of the incident record that contains the related items that you update.

Parameter relatedItemsUpdate : Details about the item that you are add to, or delete from, an incident.

Parameter clientToken : A token that ensures that a client calls the operation only once with the specified details.

Implementation

Future<void> updateRelatedItems({
  required String incidentRecordArn,
  required RelatedItemsUpdate relatedItemsUpdate,
  String? clientToken,
}) async {
  final $payload = <String, dynamic>{
    'incidentRecordArn': incidentRecordArn,
    'relatedItemsUpdate': relatedItemsUpdate,
    'clientToken': clientToken ?? _s.generateIdempotencyToken(),
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/updateRelatedItems',
    exceptionFnMap: _exceptionFns,
  );
}