Skip to content

EventSubscription

Source code in docs_src/capo_resiliencehub/types/event_subscription.py
class EventSubscription(TypedDict, closed=True):
    name: "capo_resiliencehub.types.string255.String255"
    """<p>Unique name to identify an event subscription.</p>"""
    event_type: "capo_resiliencehub.types.event_type.EventType"
    """<p>The type of event you would like to subscribe and get notification for. Currently, Resilience Hub supports notifications only for <b>Drift detected</b> (<code>DriftDetected</code>) and <b>Scheduled assessment failure</b> (<code>ScheduledAssessmentFailure</code>) events.</p>"""
    sns_topic_arn: NotRequired["capo_resiliencehub.types.arn.Arn"]
    """<p>Amazon Resource Name (ARN) of the Amazon Simple Notification Service topic. The format for this ARN is: <code>arn:partition:sns:region:account:topic-name</code>. For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html"> Amazon Resource Names (ARNs)</a> in the <i>Amazon Web Services General Reference</i> guide.</p>"""

event_type instance-attribute

event_type: EventType

The type of event you would like to subscribe and get notification for. Currently, Resilience Hub supports notifications only for Drift detected (DriftDetected) and Scheduled assessment failure (ScheduledAssessmentFailure) events.

name instance-attribute

name: String255

Unique name to identify an event subscription.

sns_topic_arn instance-attribute

sns_topic_arn: NotRequired[Arn]

Amazon Resource Name (ARN) of the Amazon Simple Notification Service topic. The format for this ARN is: arn:partition:sns:region:account:topic-name. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference guide.