UserNotifications / Client / update_event_rule
update_event_rule¶
- UserNotifications.Client.update_event_rule(**kwargs)¶
Updates an existing
EventRule.See also: AWS API Documentation
Request Syntax
response = client.update_event_rule( arn='string', eventPattern='string', regions=[ 'string', ] )
- Parameters:
arn (string) –
[REQUIRED]
The Amazon Resource Name (ARN) to use to update the
EventRule.eventPattern (string) –
An additional event pattern used to further filter the events this
EventRulereceives.For more information, see Amazon EventBridge event patterns in the Amazon EventBridge User Guide.
regions (list) –
A list of Amazon Web Services Regions that sends events to this
EventRule.(string) –
- Return type:
dict
- Returns:
Response Syntax
{ 'arn': 'string', 'notificationConfigurationArn': 'string', 'statusSummaryByRegion': { 'string': { 'status': 'ACTIVE'|'INACTIVE'|'CREATING'|'UPDATING'|'DELETING', 'reason': 'string' } } }
Response Structure
(dict) –
arn (string) –
The Amazon Resource Name (ARN) to use to update the
EventRule.notificationConfigurationArn (string) –
The ARN of the
NotificationConfiguration.statusSummaryByRegion (dict) –
The status of the action by Region.
(string) –
(dict) –
Provides additional information about the current
EventRulestatus.status (string) –
The status of the
EventRule.Values:
ACTIVEThe
EventRulecan process events.
INACTIVEThe
EventRulemay be unable to process events.
CREATINGThe
EventRuleis being created. OnlyGETandLISTcalls can be run.
UPDATINGThe
EventRuleis being updated. OnlyGETandLISTcalls can be run.
DELETINGThe
EventRuleis being deleted. OnlyGETandLISTcalls can be run.
reason (string) –
A human-readable reason for
EventRuleStatus.
Exceptions
UserNotifications.Client.exceptions.AccessDeniedExceptionUserNotifications.Client.exceptions.ValidationExceptionUserNotifications.Client.exceptions.InternalServerExceptionUserNotifications.Client.exceptions.ThrottlingExceptionUserNotifications.Client.exceptions.ConflictExceptionUserNotifications.Client.exceptions.ResourceNotFoundException