updateNotificationConfiguration method

Future<UpdateNotificationConfigurationResponse> updateNotificationConfiguration({
  1. required String arn,
  2. AggregationDuration? aggregationDuration,
  3. String? description,
  4. String? name,
})

Updates a NotificationConfiguration.

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

Parameter arn : The Amazon Resource Name (ARN) used to update the NotificationConfiguration.

Parameter aggregationDuration : The aggregation preference of the NotificationConfiguration.

  • Values:
    • LONG
      • Aggregate notifications for long periods of time (12 hours).
    • SHORT
      • Aggregate notifications for short periods of time (5 minutes).
    • NONE
      • Don't aggregate notifications.

Parameter description : The description of the NotificationConfiguration.

Parameter name : The name of the NotificationConfiguration.

Implementation

Future<UpdateNotificationConfigurationResponse>
    updateNotificationConfiguration({
  required String arn,
  AggregationDuration? aggregationDuration,
  String? description,
  String? name,
}) async {
  final $payload = <String, dynamic>{
    if (aggregationDuration != null)
      'aggregationDuration': aggregationDuration.value,
    if (description != null) 'description': description,
    if (name != null) 'name': name,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PUT',
    requestUri: '/notification-configurations/${Uri.encodeComponent(arn)}',
    exceptionFnMap: _exceptionFns,
  );
  return UpdateNotificationConfigurationResponse.fromJson(response);
}