UserNotifications / Client / create_notification_configuration
create_notification_configuration#
- UserNotifications.Client.create_notification_configuration(**kwargs)#
Creates a new NotificationConfiguration.
See also: AWS API Documentation
Request Syntax
response = client.create_notification_configuration( name='string', description='string', aggregationDuration='LONG'|'SHORT'|'NONE', tags={ 'string': 'string' } )
- Parameters:
name (string) –
[REQUIRED]
The name of the NotificationConfiguration. Supports RFC 3986’s unreserved characters.
description (string) –
[REQUIRED]
The description of the NotificationConfiguration.
aggregationDuration (string) –
The aggregation preference of the NotificationConfiguration.
Values:
LONGAggregate notifications for long periods of time (12 hours).
SHORTAggregate notifications for short periods of time (5 minutes).
NONEDon’t aggregate notifications. No delay in delivery.
tags (dict) –
A map of tags assigned to a resource. A tag is a string-to-string map of key-value pairs.
(string) –
(string) –
- Return type:
dict
- Returns:
Response Syntax
{ 'arn': 'string', 'status': 'ACTIVE'|'PARTIALLY_ACTIVE'|'INACTIVE'|'DELETING' }
Response Structure
(dict) –
arn (string) –
The Amazon Resource Name (ARN) of the the resource.
status (string) –
The status of this NotificationConfiguration.
The status should always be
INACTIVEwhen part of the CreateNotificationConfiguration response.Values:
ACTIVEAll EventRules are
ACTIVEand any call can be run.
PARTIALLY_ACTIVESome EventRules are
ACTIVEand some areINACTIVE.Any call can be run.
INACTIVEAll EventRules are
INACTIVEand any call can be run.
DELETINGThis NotificationConfiguration is being deleted.
Only
GETandLISTcalls can be run.
Exceptions
UserNotifications.Client.exceptions.ServiceQuotaExceededExceptionUserNotifications.Client.exceptions.AccessDeniedExceptionUserNotifications.Client.exceptions.ValidationExceptionUserNotifications.Client.exceptions.InternalServerExceptionUserNotifications.Client.exceptions.ThrottlingExceptionUserNotifications.Client.exceptions.ConflictException