CodeStarNotifications.Client.
update_notification_rule
(**kwargs)¶Updates a notification rule for a resource. You can change the events that trigger the notification rule, the status of the rule, and the targets that receive the notifications.
Note
To add or remove tags for a notification rule, you must use TagResource and UntagResource.
See also: AWS API Documentation
Request Syntax
response = client.update_notification_rule(
Arn='string',
Name='string',
Status='ENABLED'|'DISABLED',
EventTypeIds=[
'string',
],
Targets=[
{
'TargetType': 'string',
'TargetAddress': 'string'
},
],
DetailType='BASIC'|'FULL'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the notification rule.
A list of event types associated with this notification rule. For a complete list of event types and IDs, see Notification concepts in the Developer Tools Console User Guide .
The address and type of the targets to receive notifications from this notification rule.
Information about the Chatbot topics or Chatbot clients associated with a notification rule.
The target type. Can be an Chatbot topic or Chatbot client.
SNS
.AWSChatbotSlack
.The Amazon Resource Name (ARN) of the Chatbot topic or Chatbot client.
dict
Response Syntax
{}
Response Structure
Exceptions
CodeStarNotifications.Client.exceptions.ValidationException
CodeStarNotifications.Client.exceptions.ResourceNotFoundException
CodeStarNotifications.Client.exceptions.ConfigurationException