registerNotificationHub method
Future<RegisterNotificationHubResponse>
registerNotificationHub({
- required String notificationHubRegion,
Registers a NotificationConfiguration in the specified
Region.
There is a maximum of one NotificationConfiguration per
Region. You can have a maximum of 3 NotificationHub resources
at a time.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ServiceQuotaExceededException.
May throw ThrottlingException.
May throw ValidationException.
Parameter notificationHubRegion :
The Region of the NotificationHub.
Implementation
Future<RegisterNotificationHubResponse> registerNotificationHub({
required String notificationHubRegion,
}) async {
final $payload = <String, dynamic>{
'notificationHubRegion': notificationHubRegion,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/notification-hubs',
exceptionFnMap: _exceptionFns,
);
return RegisterNotificationHubResponse.fromJson(response);
}