update_notification_rule
¶
update_notification_rule(
arn: NotificationRuleArn,
*,
config_overrides: Optional[codestarnotificationsClientConfig] = None,
name: Optional[NotificationRuleName] = None,
status: Optional[NotificationRuleStatus] = None,
event_type_ids: Optional[EventTypeIds] = None,
targets: Optional[Targets] = None,
detail_type: Optional[DetailType] = None,
) -> UpdateNotificationRuleResult
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.
To add or remove tags for a notification rule, you must use TagResource and UntagResource.
Parameters:
-
arn(NotificationRuleArn) –The Amazon Resource Name (ARN) of the notification rule.
-
name(Optional[NotificationRuleName], default:None) –The name of the notification rule.
-
status(Optional[NotificationRuleStatus], default:None) –The status of the notification rule. Valid statuses include enabled (sending notifications) or disabled (not sending notifications).
-
event_type_ids(Optional[EventTypeIds], default:None) –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.
-
targets(Optional[Targets], default:None) –The address and type of the targets to receive notifications from this notification rule.
-
detail_type(Optional[DetailType], default:None) –The level of detail to include in the notifications for this resource. BASIC will include only the contents of the event as it would appear in Amazon CloudWatch. FULL will include any supplemental information provided by CodeStar Notifications and/or the service for the resource for which the notification is created.
Raises:
-
ConfigurationException–Some or all of the configuration is incomplete, missing, or not valid.
-
ResourceNotFoundException–CodeStar Notifications can't find a resource that matches the provided ARN.
-
ValidationException–One or more parameter values are not valid.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_codestar_notifications/_services/codestarnotifications.py
999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 | |