Skip to content

EventParameters

Source code in docs_src/capo_dlm/types/event_parameters.py
class EventParameters(TypedDict, closed=True):
    event_type: NotRequired["capo_dlm.types.event_type_values.EventTypeValues"]
    """<p>The type of event. Currently, only snapshot sharing events are supported.</p>"""
    snapshot_owner: NotRequired["capo_dlm.types.snapshot_owner_list.SnapshotOwnerList"]
    """<p>The IDs of the Amazon Web Services accounts that can trigger policy by sharing snapshots with your account. The policy only runs if one of the specified Amazon Web Services accounts shares a snapshot with your account.</p>"""
    description_regex: NotRequired["capo_dlm.types.description_regex.DescriptionRegex"]
    """<p>The snapshot description that can trigger the policy. The description pattern is specified using a regular expression. The policy runs only if a snapshot with a description that matches the specified pattern is shared with your account.</p> <p>For example, specifying <code>^.*Created for policy: policy-1234567890abcdef0.*$</code> configures the policy to run only if snapshots created by policy <code>policy-1234567890abcdef0</code> are shared with your account.</p>"""

description_regex instance-attribute

description_regex: NotRequired[DescriptionRegex]

The snapshot description that can trigger the policy. The description pattern is specified using a regular expression. The policy runs only if a snapshot with a description that matches the specified pattern is shared with your account.

For example, specifying ^.*Created for policy: policy-1234567890abcdef0.*$ configures the policy to run only if snapshots created by policy policy-1234567890abcdef0 are shared with your account.

event_type instance-attribute

event_type: NotRequired[EventTypeValues]

The type of event. Currently, only snapshot sharing events are supported.

snapshot_owner instance-attribute

snapshot_owner: NotRequired[SnapshotOwnerList]

The IDs of the Amazon Web Services accounts that can trigger policy by sharing snapshots with your account. The policy only runs if one of the specified Amazon Web Services accounts shares a snapshot with your account.