Skip to content
v2.278.0

EventSourceProperty Struct ​

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

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_dlm as dlm } from 'aws-cdk-lib';
const eventSourceProperty: dlm.CfnLifecyclePolicy.EventSourceProperty = {
  type: 'type',

  // the properties below are optional
  parameters: {
    eventType: 'eventType',
    snapshotOwner: ['snapshotOwner'],

    // the properties below are optional
    descriptionRegex: 'descriptionRegex',
  },
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_dlm as dlm

event_source_property = dlm.CfnLifecyclePolicy.EventSourceProperty(
    type="type",

    # the properties below are optional
    parameters=dlm.CfnLifecyclePolicy.EventParametersProperty(
        event_type="eventType",
        snapshot_owner=["snapshotOwner"],

        # the properties below are optional
        description_regex="descriptionRegex"
    )
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.dlm.*;

EventSourceProperty eventSourceProperty = EventSourceProperty.builder()
        .type("type")

        // the properties below are optional
        .parameters(EventParametersProperty.builder()
                .eventType("eventType")
                .snapshotOwner(List.of("snapshotOwner"))

                // the properties below are optional
                .descriptionRegex("descriptionRegex")
                .build())
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.DLM;

var eventSourceProperty = new EventSourceProperty {
    Type = "type",

    // the properties below are optional
    Parameters = new EventParametersProperty {
        EventType = "eventType",
        SnapshotOwner = new [] { "snapshotOwner" },

        // the properties below are optional
        DescriptionRegex = "descriptionRegex"
    }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

eventSourceProperty := &EventSourceProperty{
	Type: jsii.String("type"),

	// the properties below are optional
	Parameters: &EventParametersProperty{
		EventType: jsii.String("eventType"),
		SnapshotOwner: []*string{
			jsii.String("snapshotOwner"),
		},

		// the properties below are optional
		DescriptionRegex: jsii.String("descriptionRegex"),
	},
}

Properties ​

parametersoptionalIResolvable | CfnLifecyclePolicy.EventParametersPropertyparametersoptionaltyping.Union[IResolvable, EventParametersProperty]parametersoptionalIResolvableParametersoptionalIResolvableParametersoptionalinterface{} #
Information about the event.
typestringtypestrtypeStringTypestringType*string required #
The source of the event.

Currently only managed Amazon EventBridge (formerly known as Amazon CloudWatch) events are supported.