describe_notification_rule
(**kwargs)¶Returns information about a specified notification rule.
See also: AWS API Documentation
Request Syntax
response = client.describe_notification_rule(
Arn='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the notification rule.
{
'Arn': 'string',
'Name': 'string',
'EventTypes': [
{
'EventTypeId': 'string',
'ServiceName': 'string',
'EventTypeName': 'string',
'ResourceType': 'string'
},
],
'Resource': 'string',
'Targets': [
{
'TargetAddress': 'string',
'TargetType': 'string',
'TargetStatus': 'PENDING'|'ACTIVE'|'UNREACHABLE'|'INACTIVE'|'DEACTIVATED'
},
],
'DetailType': 'BASIC'|'FULL',
'CreatedBy': 'string',
'Status': 'ENABLED'|'DISABLED',
'CreatedTimestamp': datetime(2015, 1, 1),
'LastModifiedTimestamp': datetime(2015, 1, 1),
'Tags': {
'string': 'string'
}
}
Response Structure
The Amazon Resource Name (ARN) of the notification rule.
The name of the notification rule.
A list of the event types associated with the notification rule.
Returns information about an event that has triggered a notification rule.
The system-generated ID of the event. For a complete list of event types and IDs, see Notification concepts in the Developer Tools Console User Guide .
The name of the service for which the event applies.
The name of the event.
The resource type of the event.
The Amazon Resource Name (ARN) of the resource associated with the notification rule.
A list of the Chatbot topics and Chatbot clients associated with the notification rule.
Information about the targets specified for a notification rule.
The Amazon Resource Name (ARN) of the Chatbot topic or Chatbot client.
The type of the target (for example, SNS
).
SNS
.AWSChatbotSlack
.The status of the target.
The level of detail included 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 AWS CodeStar Notifications and/or the service for the resource for which the notification is created.
The name or email alias of the person who created the notification rule.
The status of the notification rule. Valid statuses are on (sending notifications) or off (not sending notifications).
The date and time the notification rule was created, in timestamp format.
The date and time the notification rule was most recently updated, in timestamp format.
The tags associated with the notification rule.
Exceptions
CodeStarNotifications.Client.exceptions.ResourceNotFoundException
CodeStarNotifications.Client.exceptions.ValidationException