AWS::DLM::LifecyclePolicy EventParameters - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

AWS::DLM::LifecyclePolicy EventParameters

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

Syntax

To declare this entity in your Amazon 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 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.

Required: Yes

Type: Array of String

Minimum: 0

Maximum: 50

Update requires: No interruption