getManagedNotificationEvent method

Future<GetManagedNotificationEventResponse> getManagedNotificationEvent({
  1. required String arn,
  2. LocaleCode? locale,
})

Returns a specified ManagedNotificationEvent.

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

Parameter arn : The Amazon Resource Name (ARN) of the ManagedNotificationEvent to return.

Parameter locale : The locale code of the language used for the retrieved ManagedNotificationEvent. The default locale is English (en_US).

Implementation

Future<GetManagedNotificationEventResponse> getManagedNotificationEvent({
  required String arn,
  LocaleCode? locale,
}) async {
  final $query = <String, List<String>>{
    if (locale != null) 'locale': [locale.value],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/managed-notification-events/${Uri.encodeComponent(arn)}',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return GetManagedNotificationEventResponse.fromJson(response);
}