updateNotificationContent method
Updates the localized content of an existing notification. This operation applies to all users for whom the notification was sent.
May throw AccessDeniedException.
May throw InternalServiceException.
May throw InvalidParameterException.
May throw InvalidRequestException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
Parameter content :
The updated localized content of the notification. A map of locale codes
and values. Maximum 500 characters per locale.
Parameter instanceId :
The identifier of the Amazon Connect instance. You can find
the instance ID in the Amazon Resource Name (ARN) of the instance.
Parameter notificationId :
The unique identifier for the notification to update.
Implementation
Future<void> updateNotificationContent({
required Map<LocaleCode, String> content,
required String instanceId,
required String notificationId,
}) async {
final $payload = <String, dynamic>{
'Content': content.map((k, e) => MapEntry(k.value, e)),
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri:
'/notifications/${Uri.encodeComponent(instanceId)}/${Uri.encodeComponent(notificationId)}',
exceptionFnMap: _exceptionFns,
);
}