AWS::DLM::LifecyclePolicy EventParameters - AWS CloudFormation
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

This is the new CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the AWS CloudFormation User Guide.

AWS::DLM::LifecyclePolicy EventParameters

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

Syntax

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