AWS::DLM::LifecyclePolicy EventParameters - AWS CloudFormation

AWS::DLM::LifecyclePolicy EventParameters

[Event-based policies only] Specifies an event that activates an event-based policy.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "DescriptionRegex" : String, "EventType" : String, "SnapshotOwner" : [ String, ... ] }

YAML

DescriptionRegex: String EventType: String SnapshotOwner: - String

Properties

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.

Required: No

Type: String

Pattern: [\p{all}]*

Minimum: 0

Maximum: 1000

Update requires: No interruption

EventType

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

Required: Yes

Type: String

Allowed values: shareSnapshot

Update requires: No interruption

SnapshotOwner

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

Required: Yes

Type: Array of String

Minimum: 0

Maximum: 50

Update requires: No interruption