getNotificationEvent method

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

Returns a specified NotificationEvent.

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

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

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

Implementation

Future<GetNotificationEventResponse> getNotificationEvent({
  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: '/notification-events/${Uri.encodeComponent(arn)}',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return GetNotificationEventResponse.fromJson(response);
}