interface EventParametersProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.DLM.Mixins.CfnLifecyclePolicyPropsMixin.EventParametersProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsdlm/mixins#CfnLifecyclePolicyPropsMixin_EventParametersProperty |
Java | software.amazon.awscdk.mixins.preview.services.dlm.mixins.CfnLifecyclePolicyPropsMixin.EventParametersProperty |
Python | aws_cdk.mixins_preview.aws_dlm.mixins.CfnLifecyclePolicyPropsMixin.EventParametersProperty |
TypeScript | @aws-cdk/mixins-preview » aws_dlm » mixins » CfnLifecyclePolicyPropsMixin » EventParametersProperty |
[Event-based policies only] Specifies an event that activates an event-based policy.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as dlm_mixins } from '@aws-cdk/mixins-preview/aws-dlm';
const eventParametersProperty: dlm_mixins.CfnLifecyclePolicyPropsMixin.EventParametersProperty = {
descriptionRegex: 'descriptionRegex',
eventType: 'eventType',
snapshotOwner: ['snapshotOwner'],
};
Properties
| Name | Type | Description |
|---|---|---|
| description | string | The snapshot description that can trigger the policy. |
| event | string | The type of event. |
| snapshot | string[] | The IDs of the AWS accounts that can trigger policy by sharing snapshots with your account. |
descriptionRegex?
Type:
string
(optional)
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.
eventType?
Type:
string
(optional)
The type of event.
Currently, only snapshot sharing events are supported.
snapshotOwner?
Type:
string[]
(optional)
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.

.NET
Go
Java
Python
TypeScript