resetNotificationSettings method
Resets the custom notification setting to IAM Roles Anywhere default setting.
Required permissions:
rolesanywhere:ResetNotificationSettings.
May throw AccessDeniedException.
May throw ResourceNotFoundException.
May throw ValidationException.
Parameter notificationSettingKeys :
A list of notification setting keys to reset. A notification setting key
includes the event and the channel.
Parameter trustAnchorId :
The unique identifier of the trust anchor.
Implementation
Future<ResetNotificationSettingsResponse> resetNotificationSettings({
required List<NotificationSettingKey> notificationSettingKeys,
required String trustAnchorId,
}) async {
final $payload = <String, dynamic>{
'notificationSettingKeys': notificationSettingKeys,
'trustAnchorId': trustAnchorId,
};
final response = await _protocol.send(
payload: $payload,
method: 'PATCH',
requestUri: '/reset-notifications-settings',
exceptionFnMap: _exceptionFns,
);
return ResetNotificationSettingsResponse.fromJson(response);
}