Skip to content
v2.278.0

ActionProperty Struct ​

[Event-based policies only] Specifies an action for 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 actionProperty: dlm.CfnLifecyclePolicy.ActionProperty = {
  crossRegionCopy: [{
    encryptionConfiguration: {
      encrypted: false,

      // the properties below are optional
      cmkArn: 'cmkArn',
    },
    target: 'target',

    // the properties below are optional
    retainRule: {
      interval: 123,
      intervalUnit: 'intervalUnit',
    },
  }],
  name: 'name',
};
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

action_property = dlm.CfnLifecyclePolicy.ActionProperty(
    cross_region_copy=[dlm.CfnLifecyclePolicy.CrossRegionCopyActionProperty(
        encryption_configuration=dlm.CfnLifecyclePolicy.EncryptionConfigurationProperty(
            encrypted=False,

            # the properties below are optional
            cmk_arn="cmkArn"
        ),
        target="target",

        # the properties below are optional
        retain_rule=dlm.CfnLifecyclePolicy.CrossRegionCopyRetainRuleProperty(
            interval=123,
            interval_unit="intervalUnit"
        )
    )],
    name="name"
)
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.*;

ActionProperty actionProperty = ActionProperty.builder()
        .crossRegionCopy(List.of(CrossRegionCopyActionProperty.builder()
                .encryptionConfiguration(EncryptionConfigurationProperty.builder()
                        .encrypted(false)

                        // the properties below are optional
                        .cmkArn("cmkArn")
                        .build())
                .target("target")

                // the properties below are optional
                .retainRule(CrossRegionCopyRetainRuleProperty.builder()
                        .interval(123)
                        .intervalUnit("intervalUnit")
                        .build())
                .build()))
        .name("name")
        .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 actionProperty = new ActionProperty {
    CrossRegionCopy = new [] { new CrossRegionCopyActionProperty {
        EncryptionConfiguration = new EncryptionConfigurationProperty {
            Encrypted = false,

            // the properties below are optional
            CmkArn = "cmkArn"
        },
        Target = "target",

        // the properties below are optional
        RetainRule = new CrossRegionCopyRetainRuleProperty {
            Interval = 123,
            IntervalUnit = "intervalUnit"
        }
    } },
    Name = "name"
};
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"

actionProperty := &ActionProperty{
	CrossRegionCopy: []interface{}{
		&CrossRegionCopyActionProperty{
			EncryptionConfiguration: &EncryptionConfigurationProperty{
				Encrypted: jsii.Boolean(false),

				// the properties below are optional
				CmkArn: jsii.String("cmkArn"),
			},
			Target: jsii.String("target"),

			// the properties below are optional
			RetainRule: &CrossRegionCopyRetainRuleProperty{
				Interval: jsii.Number(123),
				IntervalUnit: jsii.String("intervalUnit"),
			},
		},
	},
	Name: jsii.String("name"),
}

Properties ​

crossRegionCopyIResolvable | IResolvable | CfnLifecyclePolicy.CrossRegionCopyActionProperty[]cross_region_copytyping.Union[IResolvable, typing.List[typing.Union[IResolvable, CrossRegionCopyActionProperty]]]crossRegionCopyIResolvableCrossRegionCopyIResolvableCrossRegionCopyinterface{} required #
The rule for copying shared snapshots across Regions.
namestringnamestrnameStringNamestringName*string required #
A descriptive name for the action.