awsdlm

package
v2.142.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

README

Amazon Data Lifecycle Manager Construct Library

This module is part of the AWS Cloud Development Kit project.

import dlm "github.com/aws/aws-cdk-go/awscdk"

There are no official hand-written (L2) constructs for this service yet. Here are some suggestions on how to proceed:

There are no hand-written (L2) constructs for this service yet. However, you can still use the automatically generated L1 constructs, and use this service exactly as you would using CloudFormation directly.

For more information on the resources and properties available for this service, see the CloudFormation documentation for AWS::DLM.

(Read the CDK Contributing Guide and submit an RFC if you are interested in contributing to this construct library.)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CfnLifecyclePolicy_CFN_RESOURCE_TYPE_NAME

func CfnLifecyclePolicy_CFN_RESOURCE_TYPE_NAME() *string

func CfnLifecyclePolicy_IsCfnElement

func CfnLifecyclePolicy_IsCfnElement(x interface{}) *bool

Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).

Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.

Returns: The construct as a stack element or undefined if it is not a stack element.

func CfnLifecyclePolicy_IsCfnResource

func CfnLifecyclePolicy_IsCfnResource(x interface{}) *bool

Check whether the given object is a CfnResource.

func CfnLifecyclePolicy_IsConstruct

func CfnLifecyclePolicy_IsConstruct(x interface{}) *bool

Checks if `x` is a construct.

Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.

Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.

Returns: true if `x` is an object created from a class which extends `Construct`.

func NewCfnLifecyclePolicy_Override

func NewCfnLifecyclePolicy_Override(c CfnLifecyclePolicy, scope constructs.Construct, id *string, props *CfnLifecyclePolicyProps)

Types

type CfnLifecyclePolicy

type CfnLifecyclePolicy interface {
	awscdk.CfnResource
	awscdk.IInspectable
	awscdk.ITaggable
	// The Amazon Resource Name (ARN) of the lifecycle policy.
	AttrArn() *string
	AttrId() *string
	// Options for this resource, such as condition, update policy etc.
	CfnOptions() awscdk.ICfnResourceOptions
	CfnProperties() *map[string]interface{}
	// AWS resource type.
	CfnResourceType() *string
	// *[Default policies only]* Indicates whether the policy should copy tags from the source resource to the snapshot or AMI.
	CopyTags() interface{}
	SetCopyTags(val interface{})
	// *[Default policies only]* Specifies how often the policy should run and create snapshots or AMIs.
	CreateInterval() *float64
	SetCreateInterval(val *float64)
	// Returns: the stack trace of the point where this Resource was created from, sourced
	// from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most
	// node +internal+ entries filtered.
	CreationStack() *[]*string
	// *[Default policies only]* Specifies destination Regions for snapshot or AMI copies.
	CrossRegionCopyTargets() interface{}
	SetCrossRegionCopyTargets(val interface{})
	// *[Default policies only]* Specify the type of default policy to create.
	DefaultPolicy() *string
	SetDefaultPolicy(val *string)
	// A description of the lifecycle policy.
	Description() *string
	SetDescription(val *string)
	// *[Default policies only]* Specifies exclusion parameters for volumes or instances for which you do not want to create snapshots or AMIs.
	Exclusions() interface{}
	SetExclusions(val interface{})
	// The Amazon Resource Name (ARN) of the IAM role used to run the operations specified by the lifecycle policy.
	ExecutionRoleArn() *string
	SetExecutionRoleArn(val *string)
	// *[Default policies only]* Defines the snapshot or AMI retention behavior for the policy if the source volume or instance is deleted, or if the policy enters the error, disabled, or deleted state.
	ExtendDeletion() interface{}
	SetExtendDeletion(val interface{})
	// The logical ID for this CloudFormation stack element.
	//
	// The logical ID of the element
	// is calculated from the path of the resource node in the construct tree.
	//
	// To override this value, use `overrideLogicalId(newLogicalId)`.
	//
	// Returns: the logical ID as a stringified token. This value will only get
	// resolved during synthesis.
	LogicalId() *string
	// The tree node.
	Node() constructs.Node
	// The configuration details of the lifecycle policy.
	PolicyDetails() interface{}
	SetPolicyDetails(val interface{})
	// Return a string that will be resolved to a CloudFormation `{ Ref }` for this element.
	//
	// If, by any chance, the intrinsic reference of a resource is not a string, you could
	// coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`.
	Ref() *string
	// *[Default policies only]* Specifies how long the policy should retain snapshots or AMIs before deleting them.
	RetainInterval() *float64
	SetRetainInterval(val *float64)
	// The stack in which this element is defined.
	//
	// CfnElements must be defined within a stack scope (directly or indirectly).
	Stack() awscdk.Stack
	// The activation state of the lifecycle policy.
	State() *string
	SetState(val *string)
	// Tag Manager which manages the tags for this resource.
	Tags() awscdk.TagManager
	// The tags to apply to the lifecycle policy during creation.
	TagsRaw() *[]*awscdk.CfnTag
	SetTagsRaw(val *[]*awscdk.CfnTag)
	// Deprecated.
	// Deprecated: use `updatedProperties`
	//
	// Return properties modified after initiation
	//
	// Resources that expose mutable properties should override this function to
	// collect and return the properties object for this resource.
	UpdatedProperites() *map[string]interface{}
	// Return properties modified after initiation.
	//
	// Resources that expose mutable properties should override this function to
	// collect and return the properties object for this resource.
	UpdatedProperties() *map[string]interface{}
	// Syntactic sugar for `addOverride(path, undefined)`.
	AddDeletionOverride(path *string)
	// Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.
	//
	// This can be used for resources across stacks (or nested stack) boundaries
	// and the dependency will automatically be transferred to the relevant scope.
	AddDependency(target awscdk.CfnResource)
	// Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.
	// Deprecated: use addDependency.
	AddDependsOn(target awscdk.CfnResource)
	// Add a value to the CloudFormation Resource Metadata.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html
	//
	// Note that this is a different set of metadata from CDK node metadata; this
	// metadata ends up in the stack template under the resource, whereas CDK
	// node metadata ends up in the Cloud Assembly.
	//
	AddMetadata(key *string, value interface{})
	// Adds an override to the synthesized CloudFormation resource.
	//
	// To add a
	// property override, either use `addPropertyOverride` or prefix `path` with
	// "Properties." (i.e. `Properties.TopicName`).
	//
	// If the override is nested, separate each nested level using a dot (.) in the path parameter.
	// If there is an array as part of the nesting, specify the index in the path.
	//
	// To include a literal `.` in the property name, prefix with a `\`. In most
	// programming languages you will need to write this as `"\\."` because the
	// `\` itself will need to be escaped.
	//
	// For example,
	// “`typescript
	// cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']);
	// cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE');
	// “`
	// would add the overrides
	// “`json
	// "Properties": {
	//   "GlobalSecondaryIndexes": [
	//     {
	//       "Projection": {
	//         "NonKeyAttributes": [ "myattribute" ]
	//         ...
	//       }
	//       ...
	//     },
	//     {
	//       "ProjectionType": "INCLUDE"
	//       ...
	//     },
	//   ]
	//   ...
	// }
	// “`
	//
	// The `value` argument to `addOverride` will not be processed or translated
	// in any way. Pass raw JSON values in here with the correct capitalization
	// for CloudFormation. If you pass CDK classes or structs, they will be
	// rendered with lowercased key names, and CloudFormation will reject the
	// template.
	AddOverride(path *string, value interface{})
	// Adds an override that deletes the value of a property from the resource definition.
	AddPropertyDeletionOverride(propertyPath *string)
	// Adds an override to a resource property.
	//
	// Syntactic sugar for `addOverride("Properties.<...>", value)`.
	AddPropertyOverride(propertyPath *string, value interface{})
	// Sets the deletion policy of the resource based on the removal policy specified.
	//
	// The Removal Policy controls what happens to this resource when it stops
	// being managed by CloudFormation, either because you've removed it from the
	// CDK application or because you've made a change that requires the resource
	// to be replaced.
	//
	// The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS
	// account for data recovery and cleanup later (`RemovalPolicy.RETAIN`). In some
	// cases, a snapshot can be taken of the resource prior to deletion
	// (`RemovalPolicy.SNAPSHOT`). A list of resources that support this policy
	// can be found in the following link:.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html#aws-attribute-deletionpolicy-options
	//
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions)
	// Returns a token for an runtime attribute of this resource.
	//
	// Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility
	// in case there is no generated attribute.
	GetAtt(attributeName *string, typeHint awscdk.ResolutionTypeHint) awscdk.Reference
	// Retrieve a value value from the CloudFormation Resource Metadata.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html
	//
	// Note that this is a different set of metadata from CDK node metadata; this
	// metadata ends up in the stack template under the resource, whereas CDK
	// node metadata ends up in the Cloud Assembly.
	//
	GetMetadata(key *string) interface{}
	// Examines the CloudFormation resource and discloses attributes.
	Inspect(inspector awscdk.TreeInspector)
	// Retrieves an array of resources this resource depends on.
	//
	// This assembles dependencies on resources across stacks (including nested stacks)
	// automatically.
	ObtainDependencies() *[]interface{}
	// Get a shallow copy of dependencies between this resource and other resources in the same stack.
	ObtainResourceDependencies() *[]awscdk.CfnResource
	// Overrides the auto-generated logical ID with a specific ID.
	OverrideLogicalId(newLogicalId *string)
	// Indicates that this resource no longer depends on another resource.
	//
	// This can be used for resources across stacks (including nested stacks)
	// and the dependency will automatically be removed from the relevant scope.
	RemoveDependency(target awscdk.CfnResource)
	RenderProperties(props *map[string]interface{}) *map[string]interface{}
	// Replaces one dependency with another.
	ReplaceDependency(target awscdk.CfnResource, newTarget awscdk.CfnResource)
	// Can be overridden by subclasses to determine if this resource will be rendered into the cloudformation template.
	//
	// Returns: `true` if the resource should be included or `false` is the resource
	// should be omitted.
	ShouldSynthesize() *bool
	// Returns a string representation of this construct.
	//
	// Returns: a string representation of this resource.
	ToString() *string
	ValidateProperties(_properties interface{})
}

Specifies a lifecycle policy, which is used to automate operations on Amazon EBS resources.

The properties are required when you add a lifecycle policy and optional when you update a lifecycle policy.

Example:

// 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"

var crossRegionCopyTargets interface{}
var excludeTags interface{}
var excludeVolumeTypes interface{}

cfnLifecyclePolicy := awscdk.Aws_dlm.NewCfnLifecyclePolicy(this, jsii.String("MyCfnLifecyclePolicy"), &CfnLifecyclePolicyProps{
	CopyTags: jsii.Boolean(false),
	CreateInterval: jsii.Number(123),
	CrossRegionCopyTargets: crossRegionCopyTargets,
	DefaultPolicy: jsii.String("defaultPolicy"),
	Description: jsii.String("description"),
	Exclusions: &ExclusionsProperty{
		ExcludeBootVolumes: jsii.Boolean(false),
		ExcludeTags: excludeTags,
		ExcludeVolumeTypes: excludeVolumeTypes,
	},
	ExecutionRoleArn: jsii.String("executionRoleArn"),
	ExtendDeletion: jsii.Boolean(false),
	PolicyDetails: &PolicyDetailsProperty{
		Actions: []interface{}{
			&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"),
			},
		},
		CopyTags: jsii.Boolean(false),
		CreateInterval: jsii.Number(123),
		CrossRegionCopyTargets: crossRegionCopyTargets,
		EventSource: &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"),
			},
		},
		Exclusions: &ExclusionsProperty{
			ExcludeBootVolumes: jsii.Boolean(false),
			ExcludeTags: excludeTags,
			ExcludeVolumeTypes: excludeVolumeTypes,
		},
		ExtendDeletion: jsii.Boolean(false),
		Parameters: &ParametersProperty{
			ExcludeBootVolume: jsii.Boolean(false),
			ExcludeDataVolumeTags: []interface{}{
				&CfnTag{
					Key: jsii.String("key"),
					Value: jsii.String("value"),
				},
			},
			NoReboot: jsii.Boolean(false),
		},
		PolicyLanguage: jsii.String("policyLanguage"),
		PolicyType: jsii.String("policyType"),
		ResourceLocations: []*string{
			jsii.String("resourceLocations"),
		},
		ResourceType: jsii.String("resourceType"),
		ResourceTypes: []*string{
			jsii.String("resourceTypes"),
		},
		RetainInterval: jsii.Number(123),
		Schedules: []interface{}{
			&ScheduleProperty{
				ArchiveRule: &ArchiveRuleProperty{
					RetainRule: &ArchiveRetainRuleProperty{
						RetentionArchiveTier: &RetentionArchiveTierProperty{
							Count: jsii.Number(123),
							Interval: jsii.Number(123),
							IntervalUnit: jsii.String("intervalUnit"),
						},
					},
				},
				CopyTags: jsii.Boolean(false),
				CreateRule: &CreateRuleProperty{
					CronExpression: jsii.String("cronExpression"),
					Interval: jsii.Number(123),
					IntervalUnit: jsii.String("intervalUnit"),
					Location: jsii.String("location"),
					Scripts: []interface{}{
						&ScriptProperty{
							ExecuteOperationOnScriptFailure: jsii.Boolean(false),
							ExecutionHandler: jsii.String("executionHandler"),
							ExecutionHandlerService: jsii.String("executionHandlerService"),
							ExecutionTimeout: jsii.Number(123),
							MaximumRetryCount: jsii.Number(123),
							Stages: []*string{
								jsii.String("stages"),
							},
						},
					},
					Times: []*string{
						jsii.String("times"),
					},
				},
				CrossRegionCopyRules: []interface{}{
					&CrossRegionCopyRuleProperty{
						Encrypted: jsii.Boolean(false),

						// the properties below are optional
						CmkArn: jsii.String("cmkArn"),
						CopyTags: jsii.Boolean(false),
						DeprecateRule: &CrossRegionCopyDeprecateRuleProperty{
							Interval: jsii.Number(123),
							IntervalUnit: jsii.String("intervalUnit"),
						},
						RetainRule: &CrossRegionCopyRetainRuleProperty{
							Interval: jsii.Number(123),
							IntervalUnit: jsii.String("intervalUnit"),
						},
						Target: jsii.String("target"),
						TargetRegion: jsii.String("targetRegion"),
					},
				},
				DeprecateRule: &DeprecateRuleProperty{
					Count: jsii.Number(123),
					Interval: jsii.Number(123),
					IntervalUnit: jsii.String("intervalUnit"),
				},
				FastRestoreRule: &FastRestoreRuleProperty{
					AvailabilityZones: []*string{
						jsii.String("availabilityZones"),
					},
					Count: jsii.Number(123),
					Interval: jsii.Number(123),
					IntervalUnit: jsii.String("intervalUnit"),
				},
				Name: jsii.String("name"),
				RetainRule: &RetainRuleProperty{
					Count: jsii.Number(123),
					Interval: jsii.Number(123),
					IntervalUnit: jsii.String("intervalUnit"),
				},
				ShareRules: []interface{}{
					&ShareRuleProperty{
						TargetAccounts: []*string{
							jsii.String("targetAccounts"),
						},
						UnshareInterval: jsii.Number(123),
						UnshareIntervalUnit: jsii.String("unshareIntervalUnit"),
					},
				},
				TagsToAdd: []interface{}{
					&CfnTag{
						Key: jsii.String("key"),
						Value: jsii.String("value"),
					},
				},
				VariableTags: []interface{}{
					&CfnTag{
						Key: jsii.String("key"),
						Value: jsii.String("value"),
					},
				},
			},
		},
		TargetTags: []interface{}{
			&CfnTag{
				Key: jsii.String("key"),
				Value: jsii.String("value"),
			},
		},
	},
	RetainInterval: jsii.Number(123),
	State: jsii.String("state"),
	Tags: []cfnTag{
		&cfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
})

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dlm-lifecyclepolicy.html

func NewCfnLifecyclePolicy

func NewCfnLifecyclePolicy(scope constructs.Construct, id *string, props *CfnLifecyclePolicyProps) CfnLifecyclePolicy

type CfnLifecyclePolicyProps

type CfnLifecyclePolicyProps struct {
	// *[Default policies only]* Indicates whether the policy should copy tags from the source resource to the snapshot or AMI.
	//
	// If you do not specify a value, the default is `false` .
	//
	// Default: false.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dlm-lifecyclepolicy.html#cfn-dlm-lifecyclepolicy-copytags
	//
	CopyTags interface{} `field:"optional" json:"copyTags" yaml:"copyTags"`
	// *[Default policies only]* Specifies how often the policy should run and create snapshots or AMIs.
	//
	// The creation frequency can range from 1 to 7 days. If you do not specify a value, the default is 1.
	//
	// Default: 1.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dlm-lifecyclepolicy.html#cfn-dlm-lifecyclepolicy-createinterval
	//
	CreateInterval *float64 `field:"optional" json:"createInterval" yaml:"createInterval"`
	// *[Default policies only]* Specifies destination Regions for snapshot or AMI copies.
	//
	// You can specify up to 3 destination Regions. If you do not want to create cross-Region copies, omit this parameter.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dlm-lifecyclepolicy.html#cfn-dlm-lifecyclepolicy-crossregioncopytargets
	//
	CrossRegionCopyTargets interface{} `field:"optional" json:"crossRegionCopyTargets" yaml:"crossRegionCopyTargets"`
	// *[Default policies only]* Specify the type of default policy to create.
	//
	// - To create a default policy for EBS snapshots, that creates snapshots of all volumes in the Region that do not have recent backups, specify `VOLUME` .
	// - To create a default policy for EBS-backed AMIs, that creates EBS-backed AMIs from all instances in the Region that do not have recent backups, specify `INSTANCE` .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dlm-lifecyclepolicy.html#cfn-dlm-lifecyclepolicy-defaultpolicy
	//
	DefaultPolicy *string `field:"optional" json:"defaultPolicy" yaml:"defaultPolicy"`
	// A description of the lifecycle policy.
	//
	// The characters ^[0-9A-Za-z _-]+$ are supported.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dlm-lifecyclepolicy.html#cfn-dlm-lifecyclepolicy-description
	//
	Description *string `field:"optional" json:"description" yaml:"description"`
	// *[Default policies only]* Specifies exclusion parameters for volumes or instances for which you do not want to create snapshots or AMIs.
	//
	// The policy will not create snapshots or AMIs for target resources that match any of the specified exclusion parameters.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dlm-lifecyclepolicy.html#cfn-dlm-lifecyclepolicy-exclusions
	//
	Exclusions interface{} `field:"optional" json:"exclusions" yaml:"exclusions"`
	// The Amazon Resource Name (ARN) of the IAM role used to run the operations specified by the lifecycle policy.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dlm-lifecyclepolicy.html#cfn-dlm-lifecyclepolicy-executionrolearn
	//
	ExecutionRoleArn *string `field:"optional" json:"executionRoleArn" yaml:"executionRoleArn"`
	// *[Default policies only]* Defines the snapshot or AMI retention behavior for the policy if the source volume or instance is deleted, or if the policy enters the error, disabled, or deleted state.
	//
	// By default ( *ExtendDeletion=false* ):
	//
	// - If a source resource is deleted, Amazon Data Lifecycle Manager will continue to delete previously created snapshots or AMIs, up to but not including the last one, based on the specified retention period. If you want Amazon Data Lifecycle Manager to delete all snapshots or AMIs, including the last one, specify `true` .
	// - If a policy enters the error, disabled, or deleted state, Amazon Data Lifecycle Manager stops deleting snapshots and AMIs. If you want Amazon Data Lifecycle Manager to continue deleting snapshots or AMIs, including the last one, if the policy enters one of these states, specify `true` .
	//
	// If you enable extended deletion ( *ExtendDeletion=true* ), you override both default behaviors simultaneously.
	//
	// If you do not specify a value, the default is `false` .
	//
	// Default: false.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dlm-lifecyclepolicy.html#cfn-dlm-lifecyclepolicy-extenddeletion
	//
	ExtendDeletion interface{} `field:"optional" json:"extendDeletion" yaml:"extendDeletion"`
	// The configuration details of the lifecycle policy.
	//
	// > If you create a default policy, you can specify the request parameters either in the request body, or in the PolicyDetails request structure, but not both.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dlm-lifecyclepolicy.html#cfn-dlm-lifecyclepolicy-policydetails
	//
	PolicyDetails interface{} `field:"optional" json:"policyDetails" yaml:"policyDetails"`
	// *[Default policies only]* Specifies how long the policy should retain snapshots or AMIs before deleting them.
	//
	// The retention period can range from 2 to 14 days, but it must be greater than the creation frequency to ensure that the policy retains at least 1 snapshot or AMI at any given time. If you do not specify a value, the default is 7.
	//
	// Default: 7.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dlm-lifecyclepolicy.html#cfn-dlm-lifecyclepolicy-retaininterval
	//
	RetainInterval *float64 `field:"optional" json:"retainInterval" yaml:"retainInterval"`
	// The activation state of the lifecycle policy.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dlm-lifecyclepolicy.html#cfn-dlm-lifecyclepolicy-state
	//
	State *string `field:"optional" json:"state" yaml:"state"`
	// The tags to apply to the lifecycle policy during creation.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dlm-lifecyclepolicy.html#cfn-dlm-lifecyclepolicy-tags
	//
	Tags *[]*awscdk.CfnTag `field:"optional" json:"tags" yaml:"tags"`
}

Properties for defining a `CfnLifecyclePolicy`.

Example:

// 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"

var crossRegionCopyTargets interface{}
var excludeTags interface{}
var excludeVolumeTypes interface{}

cfnLifecyclePolicyProps := &CfnLifecyclePolicyProps{
	CopyTags: jsii.Boolean(false),
	CreateInterval: jsii.Number(123),
	CrossRegionCopyTargets: crossRegionCopyTargets,
	DefaultPolicy: jsii.String("defaultPolicy"),
	Description: jsii.String("description"),
	Exclusions: &ExclusionsProperty{
		ExcludeBootVolumes: jsii.Boolean(false),
		ExcludeTags: excludeTags,
		ExcludeVolumeTypes: excludeVolumeTypes,
	},
	ExecutionRoleArn: jsii.String("executionRoleArn"),
	ExtendDeletion: jsii.Boolean(false),
	PolicyDetails: &PolicyDetailsProperty{
		Actions: []interface{}{
			&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"),
			},
		},
		CopyTags: jsii.Boolean(false),
		CreateInterval: jsii.Number(123),
		CrossRegionCopyTargets: crossRegionCopyTargets,
		EventSource: &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"),
			},
		},
		Exclusions: &ExclusionsProperty{
			ExcludeBootVolumes: jsii.Boolean(false),
			ExcludeTags: excludeTags,
			ExcludeVolumeTypes: excludeVolumeTypes,
		},
		ExtendDeletion: jsii.Boolean(false),
		Parameters: &ParametersProperty{
			ExcludeBootVolume: jsii.Boolean(false),
			ExcludeDataVolumeTags: []interface{}{
				&CfnTag{
					Key: jsii.String("key"),
					Value: jsii.String("value"),
				},
			},
			NoReboot: jsii.Boolean(false),
		},
		PolicyLanguage: jsii.String("policyLanguage"),
		PolicyType: jsii.String("policyType"),
		ResourceLocations: []*string{
			jsii.String("resourceLocations"),
		},
		ResourceType: jsii.String("resourceType"),
		ResourceTypes: []*string{
			jsii.String("resourceTypes"),
		},
		RetainInterval: jsii.Number(123),
		Schedules: []interface{}{
			&ScheduleProperty{
				ArchiveRule: &ArchiveRuleProperty{
					RetainRule: &ArchiveRetainRuleProperty{
						RetentionArchiveTier: &RetentionArchiveTierProperty{
							Count: jsii.Number(123),
							Interval: jsii.Number(123),
							IntervalUnit: jsii.String("intervalUnit"),
						},
					},
				},
				CopyTags: jsii.Boolean(false),
				CreateRule: &CreateRuleProperty{
					CronExpression: jsii.String("cronExpression"),
					Interval: jsii.Number(123),
					IntervalUnit: jsii.String("intervalUnit"),
					Location: jsii.String("location"),
					Scripts: []interface{}{
						&ScriptProperty{
							ExecuteOperationOnScriptFailure: jsii.Boolean(false),
							ExecutionHandler: jsii.String("executionHandler"),
							ExecutionHandlerService: jsii.String("executionHandlerService"),
							ExecutionTimeout: jsii.Number(123),
							MaximumRetryCount: jsii.Number(123),
							Stages: []*string{
								jsii.String("stages"),
							},
						},
					},
					Times: []*string{
						jsii.String("times"),
					},
				},
				CrossRegionCopyRules: []interface{}{
					&CrossRegionCopyRuleProperty{
						Encrypted: jsii.Boolean(false),

						// the properties below are optional
						CmkArn: jsii.String("cmkArn"),
						CopyTags: jsii.Boolean(false),
						DeprecateRule: &CrossRegionCopyDeprecateRuleProperty{
							Interval: jsii.Number(123),
							IntervalUnit: jsii.String("intervalUnit"),
						},
						RetainRule: &CrossRegionCopyRetainRuleProperty{
							Interval: jsii.Number(123),
							IntervalUnit: jsii.String("intervalUnit"),
						},
						Target: jsii.String("target"),
						TargetRegion: jsii.String("targetRegion"),
					},
				},
				DeprecateRule: &DeprecateRuleProperty{
					Count: jsii.Number(123),
					Interval: jsii.Number(123),
					IntervalUnit: jsii.String("intervalUnit"),
				},
				FastRestoreRule: &FastRestoreRuleProperty{
					AvailabilityZones: []*string{
						jsii.String("availabilityZones"),
					},
					Count: jsii.Number(123),
					Interval: jsii.Number(123),
					IntervalUnit: jsii.String("intervalUnit"),
				},
				Name: jsii.String("name"),
				RetainRule: &RetainRuleProperty{
					Count: jsii.Number(123),
					Interval: jsii.Number(123),
					IntervalUnit: jsii.String("intervalUnit"),
				},
				ShareRules: []interface{}{
					&ShareRuleProperty{
						TargetAccounts: []*string{
							jsii.String("targetAccounts"),
						},
						UnshareInterval: jsii.Number(123),
						UnshareIntervalUnit: jsii.String("unshareIntervalUnit"),
					},
				},
				TagsToAdd: []interface{}{
					&CfnTag{
						Key: jsii.String("key"),
						Value: jsii.String("value"),
					},
				},
				VariableTags: []interface{}{
					&CfnTag{
						Key: jsii.String("key"),
						Value: jsii.String("value"),
					},
				},
			},
		},
		TargetTags: []interface{}{
			&CfnTag{
				Key: jsii.String("key"),
				Value: jsii.String("value"),
			},
		},
	},
	RetainInterval: jsii.Number(123),
	State: jsii.String("state"),
	Tags: []cfnTag{
		&cfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dlm-lifecyclepolicy.html

type CfnLifecyclePolicy_ActionProperty

type CfnLifecyclePolicy_ActionProperty struct {
	// The rule for copying shared snapshots across Regions.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-action.html#cfn-dlm-lifecyclepolicy-action-crossregioncopy
	//
	CrossRegionCopy interface{} `field:"required" json:"crossRegionCopy" yaml:"crossRegionCopy"`
	// A descriptive name for the action.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-action.html#cfn-dlm-lifecyclepolicy-action-name
	//
	Name *string `field:"required" json:"name" yaml:"name"`
}

*[Event-based policies only]* Specifies an action for 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 "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"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-action.html

type CfnLifecyclePolicy_ArchiveRetainRuleProperty added in v2.45.0

type CfnLifecyclePolicy_ArchiveRetainRuleProperty struct {
	// Information about retention period in the Amazon EBS Snapshots Archive.
	//
	// For more information, see [Archive Amazon EBS snapshots](https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/snapshot-archive.html) .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-archiveretainrule.html#cfn-dlm-lifecyclepolicy-archiveretainrule-retentionarchivetier
	//
	RetentionArchiveTier interface{} `field:"required" json:"retentionArchiveTier" yaml:"retentionArchiveTier"`
}

*[Custom snapshot policies only]* Specifies information about the archive storage tier retention period.

Example:

// 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"

archiveRetainRuleProperty := &ArchiveRetainRuleProperty{
	RetentionArchiveTier: &RetentionArchiveTierProperty{
		Count: jsii.Number(123),
		Interval: jsii.Number(123),
		IntervalUnit: jsii.String("intervalUnit"),
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-archiveretainrule.html

type CfnLifecyclePolicy_ArchiveRuleProperty added in v2.45.0

type CfnLifecyclePolicy_ArchiveRuleProperty struct {
	// Information about the retention period for the snapshot archiving rule.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-archiverule.html#cfn-dlm-lifecyclepolicy-archiverule-retainrule
	//
	RetainRule interface{} `field:"required" json:"retainRule" yaml:"retainRule"`
}

*[Custom snapshot policies only]* Specifies a snapshot archiving rule for a schedule.

Example:

// 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"

archiveRuleProperty := &ArchiveRuleProperty{
	RetainRule: &ArchiveRetainRuleProperty{
		RetentionArchiveTier: &RetentionArchiveTierProperty{
			Count: jsii.Number(123),
			Interval: jsii.Number(123),
			IntervalUnit: jsii.String("intervalUnit"),
		},
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-archiverule.html

type CfnLifecyclePolicy_CreateRuleProperty

type CfnLifecyclePolicy_CreateRuleProperty struct {
	// The schedule, as a Cron expression.
	//
	// The schedule interval must be between 1 hour and 1 year. For more information, see the [Cron expressions reference](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-cron-expressions.html) in the *Amazon EventBridge User Guide* .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-createrule.html#cfn-dlm-lifecyclepolicy-createrule-cronexpression
	//
	CronExpression *string `field:"optional" json:"cronExpression" yaml:"cronExpression"`
	// The interval between snapshots.
	//
	// The supported values are 1, 2, 3, 4, 6, 8, 12, and 24.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-createrule.html#cfn-dlm-lifecyclepolicy-createrule-interval
	//
	Interval *float64 `field:"optional" json:"interval" yaml:"interval"`
	// The interval unit.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-createrule.html#cfn-dlm-lifecyclepolicy-createrule-intervalunit
	//
	IntervalUnit *string `field:"optional" json:"intervalUnit" yaml:"intervalUnit"`
	// *[Custom snapshot policies only]* Specifies the destination for snapshots created by the policy.
	//
	// To create snapshots in the same Region as the source resource, specify `CLOUD` . To create snapshots on the same Outpost as the source resource, specify `OUTPOST_LOCAL` . If you omit this parameter, `CLOUD` is used by default.
	//
	// If the policy targets resources in an AWS Region , then you must create snapshots in the same Region as the source resource. If the policy targets resources on an Outpost, then you can create snapshots on the same Outpost as the source resource, or in the Region of that Outpost.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-createrule.html#cfn-dlm-lifecyclepolicy-createrule-location
	//
	Location *string `field:"optional" json:"location" yaml:"location"`
	// *[Custom snapshot policies that target instances only]* Specifies pre and/or post scripts for a snapshot lifecycle policy that targets instances.
	//
	// This is useful for creating application-consistent snapshots, or for performing specific administrative tasks before or after Amazon Data Lifecycle Manager initiates snapshot creation.
	//
	// For more information, see [Automating application-consistent snapshots with pre and post scripts](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/automate-app-consistent-backups.html) .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-createrule.html#cfn-dlm-lifecyclepolicy-createrule-scripts
	//
	Scripts interface{} `field:"optional" json:"scripts" yaml:"scripts"`
	// The time, in UTC, to start the operation. The supported format is hh:mm.
	//
	// The operation occurs within a one-hour window following the specified time. If you do not specify a time, Amazon Data Lifecycle Manager selects a time within the next 24 hours.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-createrule.html#cfn-dlm-lifecyclepolicy-createrule-times
	//
	Times *[]*string `field:"optional" json:"times" yaml:"times"`
}

*[Custom snapshot and AMI policies only]* Specifies when the policy should create snapshots or AMIs.

> - You must specify either *CronExpression* , or *Interval* , *IntervalUnit* , and *Times* . > - If you need to specify an [ArchiveRule](https://docs.aws.amazon.com/dlm/latest/APIReference/API_ArchiveRule.html) for the schedule, then you must specify a creation frequency of at least 28 days.

Example:

// 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"

createRuleProperty := &CreateRuleProperty{
	CronExpression: jsii.String("cronExpression"),
	Interval: jsii.Number(123),
	IntervalUnit: jsii.String("intervalUnit"),
	Location: jsii.String("location"),
	Scripts: []interface{}{
		&ScriptProperty{
			ExecuteOperationOnScriptFailure: jsii.Boolean(false),
			ExecutionHandler: jsii.String("executionHandler"),
			ExecutionHandlerService: jsii.String("executionHandlerService"),
			ExecutionTimeout: jsii.Number(123),
			MaximumRetryCount: jsii.Number(123),
			Stages: []*string{
				jsii.String("stages"),
			},
		},
	},
	Times: []*string{
		jsii.String("times"),
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-createrule.html

type CfnLifecyclePolicy_CrossRegionCopyActionProperty

type CfnLifecyclePolicy_CrossRegionCopyActionProperty struct {
	// The encryption settings for the copied snapshot.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-crossregioncopyaction.html#cfn-dlm-lifecyclepolicy-crossregioncopyaction-encryptionconfiguration
	//
	EncryptionConfiguration interface{} `field:"required" json:"encryptionConfiguration" yaml:"encryptionConfiguration"`
	// The target Region.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-crossregioncopyaction.html#cfn-dlm-lifecyclepolicy-crossregioncopyaction-target
	//
	Target *string `field:"required" json:"target" yaml:"target"`
	// Specifies a retention rule for cross-Region snapshot copies created by snapshot or event-based policies, or cross-Region AMI copies created by AMI policies.
	//
	// After the retention period expires, the cross-Region copy is deleted.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-crossregioncopyaction.html#cfn-dlm-lifecyclepolicy-crossregioncopyaction-retainrule
	//
	RetainRule interface{} `field:"optional" json:"retainRule" yaml:"retainRule"`
}

*[Event-based policies only]* Specifies a cross-Region copy action for event-based policies.

> To specify a cross-Region copy rule for snapshot and AMI policies, use [CrossRegionCopyRule](https://docs.aws.amazon.com/dlm/latest/APIReference/API_CrossRegionCopyRule.html) .

Example:

// 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"

crossRegionCopyActionProperty := &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"),
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-crossregioncopyaction.html

type CfnLifecyclePolicy_CrossRegionCopyDeprecateRuleProperty

type CfnLifecyclePolicy_CrossRegionCopyDeprecateRuleProperty struct {
	// The period after which to deprecate the cross-Region AMI copies.
	//
	// The period must be less than or equal to the cross-Region AMI copy retention period, and it can't be greater than 10 years. This is equivalent to 120 months, 520 weeks, or 3650 days.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-crossregioncopydeprecaterule.html#cfn-dlm-lifecyclepolicy-crossregioncopydeprecaterule-interval
	//
	Interval *float64 `field:"required" json:"interval" yaml:"interval"`
	// The unit of time in which to measure the *Interval* .
	//
	// For example, to deprecate a cross-Region AMI copy after 3 months, specify `Interval=3` and `IntervalUnit=MONTHS` .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-crossregioncopydeprecaterule.html#cfn-dlm-lifecyclepolicy-crossregioncopydeprecaterule-intervalunit
	//
	IntervalUnit *string `field:"required" json:"intervalUnit" yaml:"intervalUnit"`
}

*[Custom AMI policies only]* Specifies an AMI deprecation rule for cross-Region AMI copies created by an AMI policy.

Example:

// 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"

crossRegionCopyDeprecateRuleProperty := &CrossRegionCopyDeprecateRuleProperty{
	Interval: jsii.Number(123),
	IntervalUnit: jsii.String("intervalUnit"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-crossregioncopydeprecaterule.html

type CfnLifecyclePolicy_CrossRegionCopyRetainRuleProperty

type CfnLifecyclePolicy_CrossRegionCopyRetainRuleProperty struct {
	// The amount of time to retain a cross-Region snapshot or AMI copy.
	//
	// The maximum is 100 years. This is equivalent to 1200 months, 5200 weeks, or 36500 days.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-crossregioncopyretainrule.html#cfn-dlm-lifecyclepolicy-crossregioncopyretainrule-interval
	//
	Interval *float64 `field:"required" json:"interval" yaml:"interval"`
	// The unit of time for time-based retention.
	//
	// For example, to retain a cross-Region copy for 3 months, specify `Interval=3` and `IntervalUnit=MONTHS` .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-crossregioncopyretainrule.html#cfn-dlm-lifecyclepolicy-crossregioncopyretainrule-intervalunit
	//
	IntervalUnit *string `field:"required" json:"intervalUnit" yaml:"intervalUnit"`
}

Specifies a retention rule for cross-Region snapshot copies created by snapshot or event-based policies, or cross-Region AMI copies created by AMI policies.

After the retention period expires, the cross-Region copy is deleted.

Example:

// 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"

crossRegionCopyRetainRuleProperty := &CrossRegionCopyRetainRuleProperty{
	Interval: jsii.Number(123),
	IntervalUnit: jsii.String("intervalUnit"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-crossregioncopyretainrule.html

type CfnLifecyclePolicy_CrossRegionCopyRuleProperty

type CfnLifecyclePolicy_CrossRegionCopyRuleProperty struct {
	// To encrypt a copy of an unencrypted snapshot if encryption by default is not enabled, enable encryption using this parameter.
	//
	// Copies of encrypted snapshots are encrypted, even if this parameter is false or if encryption by default is not enabled.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-crossregioncopyrule.html#cfn-dlm-lifecyclepolicy-crossregioncopyrule-encrypted
	//
	Encrypted interface{} `field:"required" json:"encrypted" yaml:"encrypted"`
	// The Amazon Resource Name (ARN) of the AWS KMS key to use for EBS encryption.
	//
	// If this parameter is not specified, the default KMS key for the account is used.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-crossregioncopyrule.html#cfn-dlm-lifecyclepolicy-crossregioncopyrule-cmkarn
	//
	CmkArn *string `field:"optional" json:"cmkArn" yaml:"cmkArn"`
	// Indicates whether to copy all user-defined tags from the source snapshot or AMI to the cross-Region copy.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-crossregioncopyrule.html#cfn-dlm-lifecyclepolicy-crossregioncopyrule-copytags
	//
	CopyTags interface{} `field:"optional" json:"copyTags" yaml:"copyTags"`
	// *[Custom AMI policies only]* The AMI deprecation rule for cross-Region AMI copies created by the rule.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-crossregioncopyrule.html#cfn-dlm-lifecyclepolicy-crossregioncopyrule-deprecaterule
	//
	DeprecateRule interface{} `field:"optional" json:"deprecateRule" yaml:"deprecateRule"`
	// The retention rule that indicates how long the cross-Region snapshot or AMI copies are to be retained in the destination Region.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-crossregioncopyrule.html#cfn-dlm-lifecyclepolicy-crossregioncopyrule-retainrule
	//
	RetainRule interface{} `field:"optional" json:"retainRule" yaml:"retainRule"`
	// > Use this parameter for snapshot policies only. For AMI policies, use *TargetRegion* instead.
	//
	// *[Custom snapshot policies only]* The target Region or the Amazon Resource Name (ARN) of the target Outpost for the snapshot copies.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-crossregioncopyrule.html#cfn-dlm-lifecyclepolicy-crossregioncopyrule-target
	//
	Target *string `field:"optional" json:"target" yaml:"target"`
	// > Use this parameter for AMI policies only.
	//
	// For snapshot policies, use *Target* instead. For snapshot policies created before the *Target* parameter was introduced, this parameter indicates the target Region for snapshot copies.
	//
	// *[Custom AMI policies only]* The target Region or the Amazon Resource Name (ARN) of the target Outpost for the snapshot copies.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-crossregioncopyrule.html#cfn-dlm-lifecyclepolicy-crossregioncopyrule-targetregion
	//
	TargetRegion *string `field:"optional" json:"targetRegion" yaml:"targetRegion"`
}

*[Custom snapshot and AMI policies only]* Specifies a cross-Region copy rule for a snapshot and AMI policies.

> To specify a cross-Region copy action for event-based polices, use [CrossRegionCopyAction](https://docs.aws.amazon.com/dlm/latest/APIReference/API_CrossRegionCopyAction.html) .

Example:

// 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"

crossRegionCopyRuleProperty := &CrossRegionCopyRuleProperty{
	Encrypted: jsii.Boolean(false),

	// the properties below are optional
	CmkArn: jsii.String("cmkArn"),
	CopyTags: jsii.Boolean(false),
	DeprecateRule: &CrossRegionCopyDeprecateRuleProperty{
		Interval: jsii.Number(123),
		IntervalUnit: jsii.String("intervalUnit"),
	},
	RetainRule: &CrossRegionCopyRetainRuleProperty{
		Interval: jsii.Number(123),
		IntervalUnit: jsii.String("intervalUnit"),
	},
	Target: jsii.String("target"),
	TargetRegion: jsii.String("targetRegion"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-crossregioncopyrule.html

type CfnLifecyclePolicy_DeprecateRuleProperty

type CfnLifecyclePolicy_DeprecateRuleProperty struct {
	// If the schedule has a count-based retention rule, this parameter specifies the number of oldest AMIs to deprecate.
	//
	// The count must be less than or equal to the schedule's retention count, and it can't be greater than 1000.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-deprecaterule.html#cfn-dlm-lifecyclepolicy-deprecaterule-count
	//
	Count *float64 `field:"optional" json:"count" yaml:"count"`
	// If the schedule has an age-based retention rule, this parameter specifies the period after which to deprecate AMIs created by the schedule.
	//
	// The period must be less than or equal to the schedule's retention period, and it can't be greater than 10 years. This is equivalent to 120 months, 520 weeks, or 3650 days.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-deprecaterule.html#cfn-dlm-lifecyclepolicy-deprecaterule-interval
	//
	Interval *float64 `field:"optional" json:"interval" yaml:"interval"`
	// The unit of time in which to measure the *Interval* .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-deprecaterule.html#cfn-dlm-lifecyclepolicy-deprecaterule-intervalunit
	//
	IntervalUnit *string `field:"optional" json:"intervalUnit" yaml:"intervalUnit"`
}

*[Custom AMI policies only]* Specifies an AMI deprecation rule for AMIs created by an AMI lifecycle policy.

For age-based schedules, you must specify *Interval* and *IntervalUnit* . For count-based schedules, you must specify *Count* .

Example:

// 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"

deprecateRuleProperty := &DeprecateRuleProperty{
	Count: jsii.Number(123),
	Interval: jsii.Number(123),
	IntervalUnit: jsii.String("intervalUnit"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-deprecaterule.html

type CfnLifecyclePolicy_EncryptionConfigurationProperty

type CfnLifecyclePolicy_EncryptionConfigurationProperty struct {
	// To encrypt a copy of an unencrypted snapshot when encryption by default is not enabled, enable encryption using this parameter.
	//
	// Copies of encrypted snapshots are encrypted, even if this parameter is false or when encryption by default is not enabled.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-encryptionconfiguration.html#cfn-dlm-lifecyclepolicy-encryptionconfiguration-encrypted
	//
	Encrypted interface{} `field:"required" json:"encrypted" yaml:"encrypted"`
	// The Amazon Resource Name (ARN) of the AWS KMS key to use for EBS encryption.
	//
	// If this parameter is not specified, the default KMS key for the account is used.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-encryptionconfiguration.html#cfn-dlm-lifecyclepolicy-encryptionconfiguration-cmkarn
	//
	CmkArn *string `field:"optional" json:"cmkArn" yaml:"cmkArn"`
}

*[Event-based policies only]* Specifies the encryption settings for cross-Region snapshot copies created by event-based policies.

Example:

// 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"

encryptionConfigurationProperty := &EncryptionConfigurationProperty{
	Encrypted: jsii.Boolean(false),

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

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-encryptionconfiguration.html

type CfnLifecyclePolicy_EventParametersProperty

type CfnLifecyclePolicy_EventParametersProperty struct {
	// The type of event.
	//
	// Currently, only snapshot sharing events are supported.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-eventparameters.html#cfn-dlm-lifecyclepolicy-eventparameters-eventtype
	//
	EventType *string `field:"required" json:"eventType" yaml:"eventType"`
	// 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.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-eventparameters.html#cfn-dlm-lifecyclepolicy-eventparameters-snapshotowner
	//
	SnapshotOwner *[]*string `field:"required" json:"snapshotOwner" yaml:"snapshotOwner"`
	// 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.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-eventparameters.html#cfn-dlm-lifecyclepolicy-eventparameters-descriptionregex
	//
	DescriptionRegex *string `field:"optional" json:"descriptionRegex" yaml:"descriptionRegex"`
}

*[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 "github.com/aws/aws-cdk-go/awscdk"

eventParametersProperty := &EventParametersProperty{
	EventType: jsii.String("eventType"),
	SnapshotOwner: []*string{
		jsii.String("snapshotOwner"),
	},

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

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-eventparameters.html

type CfnLifecyclePolicy_EventSourceProperty

type CfnLifecyclePolicy_EventSourceProperty struct {
	// The source of the event.
	//
	// Currently only managed CloudWatch Events rules are supported.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-eventsource.html#cfn-dlm-lifecyclepolicy-eventsource-type
	//
	Type *string `field:"required" json:"type" yaml:"type"`
	// Information about the event.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-eventsource.html#cfn-dlm-lifecyclepolicy-eventsource-parameters
	//
	Parameters interface{} `field:"optional" json:"parameters" yaml:"parameters"`
}

*[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 "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"),
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-eventsource.html

type CfnLifecyclePolicy_ExclusionsProperty added in v2.114.0

type CfnLifecyclePolicy_ExclusionsProperty struct {
	// *[Default policies for EBS snapshots only]* Indicates whether to exclude volumes that are attached to instances as the boot volume.
	//
	// If you exclude boot volumes, only volumes attached as data (non-boot) volumes will be backed up by the policy. To exclude boot volumes, specify `true` .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-exclusions.html#cfn-dlm-lifecyclepolicy-exclusions-excludebootvolumes
	//
	ExcludeBootVolumes interface{} `field:"optional" json:"excludeBootVolumes" yaml:"excludeBootVolumes"`
	// *[Default policies for EBS-backed AMIs only]* Specifies whether to exclude volumes that have specific tags.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-exclusions.html#cfn-dlm-lifecyclepolicy-exclusions-excludetags
	//
	ExcludeTags interface{} `field:"optional" json:"excludeTags" yaml:"excludeTags"`
	// *[Default policies for EBS snapshots only]* Specifies the volume types to exclude.
	//
	// Volumes of the specified types will not be targeted by the policy.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-exclusions.html#cfn-dlm-lifecyclepolicy-exclusions-excludevolumetypes
	//
	ExcludeVolumeTypes interface{} `field:"optional" json:"excludeVolumeTypes" yaml:"excludeVolumeTypes"`
}

*[Default policies only]* Specifies exclusion parameters for volumes or instances for which you do not want to create snapshots or AMIs.

The policy will not create snapshots or AMIs for target resources that match any of the specified exclusion parameters.

Example:

// 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"

var excludeTags interface{}
var excludeVolumeTypes interface{}

exclusionsProperty := &ExclusionsProperty{
	ExcludeBootVolumes: jsii.Boolean(false),
	ExcludeTags: excludeTags,
	ExcludeVolumeTypes: excludeVolumeTypes,
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-exclusions.html

type CfnLifecyclePolicy_FastRestoreRuleProperty

type CfnLifecyclePolicy_FastRestoreRuleProperty struct {
	// The Availability Zones in which to enable fast snapshot restore.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-fastrestorerule.html#cfn-dlm-lifecyclepolicy-fastrestorerule-availabilityzones
	//
	AvailabilityZones *[]*string `field:"optional" json:"availabilityZones" yaml:"availabilityZones"`
	// The number of snapshots to be enabled with fast snapshot restore.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-fastrestorerule.html#cfn-dlm-lifecyclepolicy-fastrestorerule-count
	//
	Count *float64 `field:"optional" json:"count" yaml:"count"`
	// The amount of time to enable fast snapshot restore.
	//
	// The maximum is 100 years. This is equivalent to 1200 months, 5200 weeks, or 36500 days.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-fastrestorerule.html#cfn-dlm-lifecyclepolicy-fastrestorerule-interval
	//
	Interval *float64 `field:"optional" json:"interval" yaml:"interval"`
	// The unit of time for enabling fast snapshot restore.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-fastrestorerule.html#cfn-dlm-lifecyclepolicy-fastrestorerule-intervalunit
	//
	IntervalUnit *string `field:"optional" json:"intervalUnit" yaml:"intervalUnit"`
}

*[Custom snapshot policies only]* Specifies a rule for enabling fast snapshot restore for snapshots created by snapshot policies.

You can enable fast snapshot restore based on either a count or a time interval.

Example:

// 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"

fastRestoreRuleProperty := &FastRestoreRuleProperty{
	AvailabilityZones: []*string{
		jsii.String("availabilityZones"),
	},
	Count: jsii.Number(123),
	Interval: jsii.Number(123),
	IntervalUnit: jsii.String("intervalUnit"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-fastrestorerule.html

type CfnLifecyclePolicy_ParametersProperty

type CfnLifecyclePolicy_ParametersProperty struct {
	// *[Custom snapshot policies that target instances only]* Indicates whether to exclude the root volume from multi-volume snapshot sets.
	//
	// The default is `false` . If you specify `true` , then the root volumes attached to targeted instances will be excluded from the multi-volume snapshot sets created by the policy.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-parameters.html#cfn-dlm-lifecyclepolicy-parameters-excludebootvolume
	//
	ExcludeBootVolume interface{} `field:"optional" json:"excludeBootVolume" yaml:"excludeBootVolume"`
	// *[Custom snapshot policies that target instances only]* The tags used to identify data (non-root) volumes to exclude from multi-volume snapshot sets.
	//
	// If you create a snapshot lifecycle policy that targets instances and you specify tags for this parameter, then data volumes with the specified tags that are attached to targeted instances will be excluded from the multi-volume snapshot sets created by the policy.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-parameters.html#cfn-dlm-lifecyclepolicy-parameters-excludedatavolumetags
	//
	ExcludeDataVolumeTags interface{} `field:"optional" json:"excludeDataVolumeTags" yaml:"excludeDataVolumeTags"`
	// *[Custom AMI policies only]* Indicates whether targeted instances are rebooted when the lifecycle policy runs.
	//
	// `true` indicates that targeted instances are not rebooted when the policy runs. `false` indicates that target instances are rebooted when the policy runs. The default is `true` (instances are not rebooted).
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-parameters.html#cfn-dlm-lifecyclepolicy-parameters-noreboot
	//
	NoReboot interface{} `field:"optional" json:"noReboot" yaml:"noReboot"`
}

*[Custom snapshot and AMI policies only]* Specifies optional parameters for snapshot and AMI policies.

The set of valid parameters depends on the combination of policy type and target resource type.

If you choose to exclude boot volumes and you specify tags that consequently exclude all of the additional data volumes attached to an instance, then Amazon Data Lifecycle Manager will not create any snapshots for the affected instance, and it will emit a `SnapshotsCreateFailed` Amazon CloudWatch metric. For more information, see [Monitor your policies using Amazon CloudWatch](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitor-dlm-cw-metrics.html) .

Example:

// 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"

parametersProperty := &ParametersProperty{
	ExcludeBootVolume: jsii.Boolean(false),
	ExcludeDataVolumeTags: []interface{}{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
	NoReboot: jsii.Boolean(false),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-parameters.html

type CfnLifecyclePolicy_PolicyDetailsProperty

type CfnLifecyclePolicy_PolicyDetailsProperty struct {
	// *[Event-based policies only]* The actions to be performed when the event-based policy is activated.
	//
	// You can specify only one action per policy.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-policydetails.html#cfn-dlm-lifecyclepolicy-policydetails-actions
	//
	Actions interface{} `field:"optional" json:"actions" yaml:"actions"`
	// *[Default policies only]* Indicates whether the policy should copy tags from the source resource to the snapshot or AMI.
	//
	// If you do not specify a value, the default is `false` .
	//
	// Default: false.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-policydetails.html#cfn-dlm-lifecyclepolicy-policydetails-copytags
	//
	CopyTags interface{} `field:"optional" json:"copyTags" yaml:"copyTags"`
	// *[Default policies only]* Specifies how often the policy should run and create snapshots or AMIs.
	//
	// The creation frequency can range from 1 to 7 days. If you do not specify a value, the default is 1.
	//
	// Default: 1.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-policydetails.html#cfn-dlm-lifecyclepolicy-policydetails-createinterval
	//
	CreateInterval *float64 `field:"optional" json:"createInterval" yaml:"createInterval"`
	// *[Default policies only]* Specifies destination Regions for snapshot or AMI copies.
	//
	// You can specify up to 3 destination Regions. If you do not want to create cross-Region copies, omit this parameter.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-policydetails.html#cfn-dlm-lifecyclepolicy-policydetails-crossregioncopytargets
	//
	CrossRegionCopyTargets interface{} `field:"optional" json:"crossRegionCopyTargets" yaml:"crossRegionCopyTargets"`
	// *[Event-based policies only]* The event that activates the event-based policy.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-policydetails.html#cfn-dlm-lifecyclepolicy-policydetails-eventsource
	//
	EventSource interface{} `field:"optional" json:"eventSource" yaml:"eventSource"`
	// *[Default policies only]* Specifies exclusion parameters for volumes or instances for which you do not want to create snapshots or AMIs.
	//
	// The policy will not create snapshots or AMIs for target resources that match any of the specified exclusion parameters.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-policydetails.html#cfn-dlm-lifecyclepolicy-policydetails-exclusions
	//
	Exclusions interface{} `field:"optional" json:"exclusions" yaml:"exclusions"`
	// *[Default policies only]* Defines the snapshot or AMI retention behavior for the policy if the source volume or instance is deleted, or if the policy enters the error, disabled, or deleted state.
	//
	// By default ( *ExtendDeletion=false* ):
	//
	// - If a source resource is deleted, Amazon Data Lifecycle Manager will continue to delete previously created snapshots or AMIs, up to but not including the last one, based on the specified retention period. If you want Amazon Data Lifecycle Manager to delete all snapshots or AMIs, including the last one, specify `true` .
	// - If a policy enters the error, disabled, or deleted state, Amazon Data Lifecycle Manager stops deleting snapshots and AMIs. If you want Amazon Data Lifecycle Manager to continue deleting snapshots or AMIs, including the last one, if the policy enters one of these states, specify `true` .
	//
	// If you enable extended deletion ( *ExtendDeletion=true* ), you override both default behaviors simultaneously.
	//
	// If you do not specify a value, the default is `false` .
	//
	// Default: false.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-policydetails.html#cfn-dlm-lifecyclepolicy-policydetails-extenddeletion
	//
	ExtendDeletion interface{} `field:"optional" json:"extendDeletion" yaml:"extendDeletion"`
	// *[Custom snapshot and AMI policies only]* A set of optional parameters for snapshot and AMI lifecycle policies.
	//
	// > If you are modifying a policy that was created or previously modified using the Amazon Data Lifecycle Manager console, then you must include this parameter and specify either the default values or the new values that you require. You can't omit this parameter or set its values to null.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-policydetails.html#cfn-dlm-lifecyclepolicy-policydetails-parameters
	//
	Parameters interface{} `field:"optional" json:"parameters" yaml:"parameters"`
	// The type of policy to create. Specify one of the following:.
	//
	// - `SIMPLIFIED` To create a default policy.
	// - `STANDARD` To create a custom policy.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-policydetails.html#cfn-dlm-lifecyclepolicy-policydetails-policylanguage
	//
	PolicyLanguage *string `field:"optional" json:"policyLanguage" yaml:"policyLanguage"`
	// The type of policy.
	//
	// Specify `EBS_SNAPSHOT_MANAGEMENT` to create a lifecycle policy that manages the lifecycle of Amazon EBS snapshots. Specify `IMAGE_MANAGEMENT` to create a lifecycle policy that manages the lifecycle of EBS-backed AMIs. Specify `EVENT_BASED_POLICY` to create an event-based policy that performs specific actions when a defined event occurs in your AWS account .
	//
	// The default is `EBS_SNAPSHOT_MANAGEMENT` .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-policydetails.html#cfn-dlm-lifecyclepolicy-policydetails-policytype
	//
	PolicyType *string `field:"optional" json:"policyType" yaml:"policyType"`
	// *[Custom snapshot and AMI policies only]* The location of the resources to backup.
	//
	// If the source resources are located in an AWS Region , specify `CLOUD` . If the source resources are located on an Outpost in your account, specify `OUTPOST` .
	//
	// If you specify `OUTPOST` , Amazon Data Lifecycle Manager backs up all resources of the specified type with matching target tags across all of the Outposts in your account.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-policydetails.html#cfn-dlm-lifecyclepolicy-policydetails-resourcelocations
	//
	ResourceLocations *[]*string `field:"optional" json:"resourceLocations" yaml:"resourceLocations"`
	// *[Default policies only]* Specify the type of default policy to create.
	//
	// - To create a default policy for EBS snapshots, that creates snapshots of all volumes in the Region that do not have recent backups, specify `VOLUME` .
	// - To create a default policy for EBS-backed AMIs, that creates EBS-backed AMIs from all instances in the Region that do not have recent backups, specify `INSTANCE` .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-policydetails.html#cfn-dlm-lifecyclepolicy-policydetails-resourcetype
	//
	ResourceType *string `field:"optional" json:"resourceType" yaml:"resourceType"`
	// *[Custom snapshot policies only]* The target resource type for snapshot and AMI lifecycle policies.
	//
	// Use `VOLUME` to create snapshots of individual volumes or use `INSTANCE` to create multi-volume snapshots from the volumes for an instance.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-policydetails.html#cfn-dlm-lifecyclepolicy-policydetails-resourcetypes
	//
	ResourceTypes *[]*string `field:"optional" json:"resourceTypes" yaml:"resourceTypes"`
	// *[Default policies only]* Specifies how long the policy should retain snapshots or AMIs before deleting them.
	//
	// The retention period can range from 2 to 14 days, but it must be greater than the creation frequency to ensure that the policy retains at least 1 snapshot or AMI at any given time. If you do not specify a value, the default is 7.
	//
	// Default: 7.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-policydetails.html#cfn-dlm-lifecyclepolicy-policydetails-retaininterval
	//
	RetainInterval *float64 `field:"optional" json:"retainInterval" yaml:"retainInterval"`
	// *[Custom snapshot and AMI policies only]* The schedules of policy-defined actions for snapshot and AMI lifecycle policies.
	//
	// A policy can have up to four schedules—one mandatory schedule and up to three optional schedules.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-policydetails.html#cfn-dlm-lifecyclepolicy-policydetails-schedules
	//
	Schedules interface{} `field:"optional" json:"schedules" yaml:"schedules"`
	// *[Custom snapshot and AMI policies only]* The single tag that identifies targeted resources for this policy.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-policydetails.html#cfn-dlm-lifecyclepolicy-policydetails-targettags
	//
	TargetTags interface{} `field:"optional" json:"targetTags" yaml:"targetTags"`
}

Specifies the configuration of a lifecycle policy.

Example:

// 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"

var crossRegionCopyTargets interface{}
var excludeTags interface{}
var excludeVolumeTypes interface{}

policyDetailsProperty := &PolicyDetailsProperty{
	Actions: []interface{}{
		&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"),
		},
	},
	CopyTags: jsii.Boolean(false),
	CreateInterval: jsii.Number(123),
	CrossRegionCopyTargets: crossRegionCopyTargets,
	EventSource: &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"),
		},
	},
	Exclusions: &ExclusionsProperty{
		ExcludeBootVolumes: jsii.Boolean(false),
		ExcludeTags: excludeTags,
		ExcludeVolumeTypes: excludeVolumeTypes,
	},
	ExtendDeletion: jsii.Boolean(false),
	Parameters: &ParametersProperty{
		ExcludeBootVolume: jsii.Boolean(false),
		ExcludeDataVolumeTags: []interface{}{
			&CfnTag{
				Key: jsii.String("key"),
				Value: jsii.String("value"),
			},
		},
		NoReboot: jsii.Boolean(false),
	},
	PolicyLanguage: jsii.String("policyLanguage"),
	PolicyType: jsii.String("policyType"),
	ResourceLocations: []*string{
		jsii.String("resourceLocations"),
	},
	ResourceType: jsii.String("resourceType"),
	ResourceTypes: []*string{
		jsii.String("resourceTypes"),
	},
	RetainInterval: jsii.Number(123),
	Schedules: []interface{}{
		&ScheduleProperty{
			ArchiveRule: &ArchiveRuleProperty{
				RetainRule: &ArchiveRetainRuleProperty{
					RetentionArchiveTier: &RetentionArchiveTierProperty{
						Count: jsii.Number(123),
						Interval: jsii.Number(123),
						IntervalUnit: jsii.String("intervalUnit"),
					},
				},
			},
			CopyTags: jsii.Boolean(false),
			CreateRule: &CreateRuleProperty{
				CronExpression: jsii.String("cronExpression"),
				Interval: jsii.Number(123),
				IntervalUnit: jsii.String("intervalUnit"),
				Location: jsii.String("location"),
				Scripts: []interface{}{
					&ScriptProperty{
						ExecuteOperationOnScriptFailure: jsii.Boolean(false),
						ExecutionHandler: jsii.String("executionHandler"),
						ExecutionHandlerService: jsii.String("executionHandlerService"),
						ExecutionTimeout: jsii.Number(123),
						MaximumRetryCount: jsii.Number(123),
						Stages: []*string{
							jsii.String("stages"),
						},
					},
				},
				Times: []*string{
					jsii.String("times"),
				},
			},
			CrossRegionCopyRules: []interface{}{
				&CrossRegionCopyRuleProperty{
					Encrypted: jsii.Boolean(false),

					// the properties below are optional
					CmkArn: jsii.String("cmkArn"),
					CopyTags: jsii.Boolean(false),
					DeprecateRule: &CrossRegionCopyDeprecateRuleProperty{
						Interval: jsii.Number(123),
						IntervalUnit: jsii.String("intervalUnit"),
					},
					RetainRule: &CrossRegionCopyRetainRuleProperty{
						Interval: jsii.Number(123),
						IntervalUnit: jsii.String("intervalUnit"),
					},
					Target: jsii.String("target"),
					TargetRegion: jsii.String("targetRegion"),
				},
			},
			DeprecateRule: &DeprecateRuleProperty{
				Count: jsii.Number(123),
				Interval: jsii.Number(123),
				IntervalUnit: jsii.String("intervalUnit"),
			},
			FastRestoreRule: &FastRestoreRuleProperty{
				AvailabilityZones: []*string{
					jsii.String("availabilityZones"),
				},
				Count: jsii.Number(123),
				Interval: jsii.Number(123),
				IntervalUnit: jsii.String("intervalUnit"),
			},
			Name: jsii.String("name"),
			RetainRule: &RetainRuleProperty{
				Count: jsii.Number(123),
				Interval: jsii.Number(123),
				IntervalUnit: jsii.String("intervalUnit"),
			},
			ShareRules: []interface{}{
				&ShareRuleProperty{
					TargetAccounts: []*string{
						jsii.String("targetAccounts"),
					},
					UnshareInterval: jsii.Number(123),
					UnshareIntervalUnit: jsii.String("unshareIntervalUnit"),
				},
			},
			TagsToAdd: []interface{}{
				&CfnTag{
					Key: jsii.String("key"),
					Value: jsii.String("value"),
				},
			},
			VariableTags: []interface{}{
				&CfnTag{
					Key: jsii.String("key"),
					Value: jsii.String("value"),
				},
			},
		},
	},
	TargetTags: []interface{}{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-policydetails.html

type CfnLifecyclePolicy_RetainRuleProperty

type CfnLifecyclePolicy_RetainRuleProperty struct {
	// The number of snapshots to retain for each volume, up to a maximum of 1000.
	//
	// For example if you want to retain a maximum of three snapshots, specify `3` . When the fourth snapshot is created, the oldest retained snapshot is deleted, or it is moved to the archive tier if you have specified an [ArchiveRule](https://docs.aws.amazon.com/dlm/latest/APIReference/API_ArchiveRule.html) .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-retainrule.html#cfn-dlm-lifecyclepolicy-retainrule-count
	//
	Count *float64 `field:"optional" json:"count" yaml:"count"`
	// The amount of time to retain each snapshot.
	//
	// The maximum is 100 years. This is equivalent to 1200 months, 5200 weeks, or 36500 days.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-retainrule.html#cfn-dlm-lifecyclepolicy-retainrule-interval
	//
	Interval *float64 `field:"optional" json:"interval" yaml:"interval"`
	// The unit of time for time-based retention.
	//
	// For example, to retain snapshots for 3 months, specify `Interval=3` and `IntervalUnit=MONTHS` . Once the snapshot has been retained for 3 months, it is deleted, or it is moved to the archive tier if you have specified an [ArchiveRule](https://docs.aws.amazon.com/dlm/latest/APIReference/API_ArchiveRule.html) .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-retainrule.html#cfn-dlm-lifecyclepolicy-retainrule-intervalunit
	//
	IntervalUnit *string `field:"optional" json:"intervalUnit" yaml:"intervalUnit"`
}

*[Custom snapshot and AMI policies only]* Specifies a retention rule for snapshots created by snapshot policies, or for AMIs created by AMI policies.

> For snapshot policies that have an [ArchiveRule](https://docs.aws.amazon.com/dlm/latest/APIReference/API_ArchiveRule.html) , this retention rule applies to standard tier retention. When the retention threshold is met, snapshots are moved from the standard to the archive tier. > > For snapshot policies that do not have an *ArchiveRule* , snapshots are permanently deleted when this retention threshold is met.

You can retain snapshots based on either a count or a time interval.

- *Count-based retention*

You must specify *Count* . If you specify an [ArchiveRule](https://docs.aws.amazon.com/dlm/latest/APIReference/API_ArchiveRule.html) for the schedule, then you can specify a retention count of `0` to archive snapshots immediately after creation. If you specify a [FastRestoreRule](https://docs.aws.amazon.com/dlm/latest/APIReference/API_FastRestoreRule.html) , [ShareRule](https://docs.aws.amazon.com/dlm/latest/APIReference/API_ShareRule.html) , or a [CrossRegionCopyRule](https://docs.aws.amazon.com/dlm/latest/APIReference/API_CrossRegionCopyRule.html) , then you must specify a retention count of `1` or more. - *Age-based retention*

You must specify *Interval* and *IntervalUnit* . If you specify an [ArchiveRule](https://docs.aws.amazon.com/dlm/latest/APIReference/API_ArchiveRule.html) for the schedule, then you can specify a retention interval of `0` days to archive snapshots immediately after creation. If you specify a [FastRestoreRule](https://docs.aws.amazon.com/dlm/latest/APIReference/API_FastRestoreRule.html) , [ShareRule](https://docs.aws.amazon.com/dlm/latest/APIReference/API_ShareRule.html) , or a [CrossRegionCopyRule](https://docs.aws.amazon.com/dlm/latest/APIReference/API_CrossRegionCopyRule.html) , then you must specify a retention interval of `1` day or more.

Example:

// 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"

retainRuleProperty := &RetainRuleProperty{
	Count: jsii.Number(123),
	Interval: jsii.Number(123),
	IntervalUnit: jsii.String("intervalUnit"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-retainrule.html

type CfnLifecyclePolicy_RetentionArchiveTierProperty added in v2.45.0

type CfnLifecyclePolicy_RetentionArchiveTierProperty struct {
	// The maximum number of snapshots to retain in the archive storage tier for each volume.
	//
	// The count must ensure that each snapshot remains in the archive tier for at least 90 days. For example, if the schedule creates snapshots every 30 days, you must specify a count of 3 or more to ensure that each snapshot is archived for at least 90 days.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-retentionarchivetier.html#cfn-dlm-lifecyclepolicy-retentionarchivetier-count
	//
	Count *float64 `field:"optional" json:"count" yaml:"count"`
	// Specifies the period of time to retain snapshots in the archive tier.
	//
	// After this period expires, the snapshot is permanently deleted.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-retentionarchivetier.html#cfn-dlm-lifecyclepolicy-retentionarchivetier-interval
	//
	Interval *float64 `field:"optional" json:"interval" yaml:"interval"`
	// The unit of time in which to measure the *Interval* .
	//
	// For example, to retain a snapshots in the archive tier for 6 months, specify `Interval=6` and `IntervalUnit=MONTHS` .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-retentionarchivetier.html#cfn-dlm-lifecyclepolicy-retentionarchivetier-intervalunit
	//
	IntervalUnit *string `field:"optional" json:"intervalUnit" yaml:"intervalUnit"`
}

*[Custom snapshot policies only]* Describes the retention rule for archived snapshots.

Once the archive retention threshold is met, the snapshots are permanently deleted from the archive tier.

> The archive retention rule must retain snapshots in the archive tier for a minimum of 90 days.

For *count-based schedules* , you must specify *Count* . For *age-based schedules* , you must specify *Interval* and *IntervalUnit* .

For more information about using snapshot archiving, see [Considerations for snapshot lifecycle policies](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshot-ami-policy.html#dlm-archive) .

Example:

// 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"

retentionArchiveTierProperty := &RetentionArchiveTierProperty{
	Count: jsii.Number(123),
	Interval: jsii.Number(123),
	IntervalUnit: jsii.String("intervalUnit"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-retentionarchivetier.html

type CfnLifecyclePolicy_ScheduleProperty

type CfnLifecyclePolicy_ScheduleProperty struct {
	// *[Custom snapshot policies that target volumes only]* The snapshot archiving rule for the schedule.
	//
	// When you specify an archiving rule, snapshots are automatically moved from the standard tier to the archive tier once the schedule's retention threshold is met. Snapshots are then retained in the archive tier for the archive retention period that you specify.
	//
	// For more information about using snapshot archiving, see [Considerations for snapshot lifecycle policies](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshot-ami-policy.html#dlm-archive) .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-schedule.html#cfn-dlm-lifecyclepolicy-schedule-archiverule
	//
	ArchiveRule interface{} `field:"optional" json:"archiveRule" yaml:"archiveRule"`
	// Copy all user-defined tags on a source volume to snapshots of the volume created by this policy.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-schedule.html#cfn-dlm-lifecyclepolicy-schedule-copytags
	//
	CopyTags interface{} `field:"optional" json:"copyTags" yaml:"copyTags"`
	// The creation rule.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-schedule.html#cfn-dlm-lifecyclepolicy-schedule-createrule
	//
	CreateRule interface{} `field:"optional" json:"createRule" yaml:"createRule"`
	// Specifies a rule for copying snapshots or AMIs across regions.
	//
	// > You can't specify cross-Region copy rules for policies that create snapshots on an Outpost. If the policy creates snapshots in a Region, then snapshots can be copied to up to three Regions or Outposts.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-schedule.html#cfn-dlm-lifecyclepolicy-schedule-crossregioncopyrules
	//
	CrossRegionCopyRules interface{} `field:"optional" json:"crossRegionCopyRules" yaml:"crossRegionCopyRules"`
	// *[Custom AMI policies only]* The AMI deprecation rule for the schedule.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-schedule.html#cfn-dlm-lifecyclepolicy-schedule-deprecaterule
	//
	DeprecateRule interface{} `field:"optional" json:"deprecateRule" yaml:"deprecateRule"`
	// *[Custom snapshot policies only]* The rule for enabling fast snapshot restore.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-schedule.html#cfn-dlm-lifecyclepolicy-schedule-fastrestorerule
	//
	FastRestoreRule interface{} `field:"optional" json:"fastRestoreRule" yaml:"fastRestoreRule"`
	// The name of the schedule.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-schedule.html#cfn-dlm-lifecyclepolicy-schedule-name
	//
	Name *string `field:"optional" json:"name" yaml:"name"`
	// The retention rule for snapshots or AMIs created by the policy.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-schedule.html#cfn-dlm-lifecyclepolicy-schedule-retainrule
	//
	RetainRule interface{} `field:"optional" json:"retainRule" yaml:"retainRule"`
	// *[Custom snapshot policies only]* The rule for sharing snapshots with other AWS accounts .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-schedule.html#cfn-dlm-lifecyclepolicy-schedule-sharerules
	//
	ShareRules interface{} `field:"optional" json:"shareRules" yaml:"shareRules"`
	// The tags to apply to policy-created resources.
	//
	// These user-defined tags are in addition to the AWS -added lifecycle tags.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-schedule.html#cfn-dlm-lifecyclepolicy-schedule-tagstoadd
	//
	TagsToAdd interface{} `field:"optional" json:"tagsToAdd" yaml:"tagsToAdd"`
	// *[AMI policies and snapshot policies that target instances only]* A collection of key/value pairs with values determined dynamically when the policy is executed.
	//
	// Keys may be any valid Amazon EC2 tag key. Values must be in one of the two following formats: `$(instance-id)` or `$(timestamp)` . Variable tags are only valid for EBS Snapshot Management – Instance policies.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-schedule.html#cfn-dlm-lifecyclepolicy-schedule-variabletags
	//
	VariableTags interface{} `field:"optional" json:"variableTags" yaml:"variableTags"`
}

*[Custom snapshot and AMI policies only]* Specifies a schedule for a snapshot or AMI lifecycle policy.

Example:

// 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"

scheduleProperty := &ScheduleProperty{
	ArchiveRule: &ArchiveRuleProperty{
		RetainRule: &ArchiveRetainRuleProperty{
			RetentionArchiveTier: &RetentionArchiveTierProperty{
				Count: jsii.Number(123),
				Interval: jsii.Number(123),
				IntervalUnit: jsii.String("intervalUnit"),
			},
		},
	},
	CopyTags: jsii.Boolean(false),
	CreateRule: &CreateRuleProperty{
		CronExpression: jsii.String("cronExpression"),
		Interval: jsii.Number(123),
		IntervalUnit: jsii.String("intervalUnit"),
		Location: jsii.String("location"),
		Scripts: []interface{}{
			&ScriptProperty{
				ExecuteOperationOnScriptFailure: jsii.Boolean(false),
				ExecutionHandler: jsii.String("executionHandler"),
				ExecutionHandlerService: jsii.String("executionHandlerService"),
				ExecutionTimeout: jsii.Number(123),
				MaximumRetryCount: jsii.Number(123),
				Stages: []*string{
					jsii.String("stages"),
				},
			},
		},
		Times: []*string{
			jsii.String("times"),
		},
	},
	CrossRegionCopyRules: []interface{}{
		&CrossRegionCopyRuleProperty{
			Encrypted: jsii.Boolean(false),

			// the properties below are optional
			CmkArn: jsii.String("cmkArn"),
			CopyTags: jsii.Boolean(false),
			DeprecateRule: &CrossRegionCopyDeprecateRuleProperty{
				Interval: jsii.Number(123),
				IntervalUnit: jsii.String("intervalUnit"),
			},
			RetainRule: &CrossRegionCopyRetainRuleProperty{
				Interval: jsii.Number(123),
				IntervalUnit: jsii.String("intervalUnit"),
			},
			Target: jsii.String("target"),
			TargetRegion: jsii.String("targetRegion"),
		},
	},
	DeprecateRule: &DeprecateRuleProperty{
		Count: jsii.Number(123),
		Interval: jsii.Number(123),
		IntervalUnit: jsii.String("intervalUnit"),
	},
	FastRestoreRule: &FastRestoreRuleProperty{
		AvailabilityZones: []*string{
			jsii.String("availabilityZones"),
		},
		Count: jsii.Number(123),
		Interval: jsii.Number(123),
		IntervalUnit: jsii.String("intervalUnit"),
	},
	Name: jsii.String("name"),
	RetainRule: &RetainRuleProperty{
		Count: jsii.Number(123),
		Interval: jsii.Number(123),
		IntervalUnit: jsii.String("intervalUnit"),
	},
	ShareRules: []interface{}{
		&ShareRuleProperty{
			TargetAccounts: []*string{
				jsii.String("targetAccounts"),
			},
			UnshareInterval: jsii.Number(123),
			UnshareIntervalUnit: jsii.String("unshareIntervalUnit"),
		},
	},
	TagsToAdd: []interface{}{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
	VariableTags: []interface{}{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-schedule.html

type CfnLifecyclePolicy_ScriptProperty added in v2.109.0

type CfnLifecyclePolicy_ScriptProperty struct {
	// Indicates whether Amazon Data Lifecycle Manager should default to crash-consistent snapshots if the pre script fails.
	//
	// - To default to crash consistent snapshot if the pre script fails, specify `true` .
	// - To skip the instance for snapshot creation if the pre script fails, specify `false` .
	//
	// This parameter is supported only if you run a pre script. If you run a post script only, omit this parameter.
	//
	// Default: true.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-script.html#cfn-dlm-lifecyclepolicy-script-executeoperationonscriptfailure
	//
	ExecuteOperationOnScriptFailure interface{} `field:"optional" json:"executeOperationOnScriptFailure" yaml:"executeOperationOnScriptFailure"`
	// The SSM document that includes the pre and/or post scripts to run.
	//
	// - If you are automating VSS backups, specify `AWS_VSS_BACKUP` . In this case, Amazon Data Lifecycle Manager automatically uses the `AWSEC2-CreateVssSnapshot` SSM document.
	// - If you are automating application-consistent snapshots for SAP HANA workloads, specify `AWSSystemsManagerSAP-CreateDLMSnapshotForSAPHANA` .
	// - If you are using a custom SSM document that you own, specify either the name or ARN of the SSM document. If you are using a custom SSM document that is shared with you, specify the ARN of the SSM document.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-script.html#cfn-dlm-lifecyclepolicy-script-executionhandler
	//
	ExecutionHandler *string `field:"optional" json:"executionHandler" yaml:"executionHandler"`
	// Indicates the service used to execute the pre and/or post scripts.
	//
	// - If you are using custom SSM documents or automating application-consistent snapshots of SAP HANA workloads, specify `AWS_SYSTEMS_MANAGER` .
	// - If you are automating VSS Backups, omit this parameter.
	//
	// Default: AWS_SYSTEMS_MANAGER.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-script.html#cfn-dlm-lifecyclepolicy-script-executionhandlerservice
	//
	ExecutionHandlerService *string `field:"optional" json:"executionHandlerService" yaml:"executionHandlerService"`
	// Specifies a timeout period, in seconds, after which Amazon Data Lifecycle Manager fails the script run attempt if it has not completed.
	//
	// If a script does not complete within its timeout period, Amazon Data Lifecycle Manager fails the attempt. The timeout period applies to the pre and post scripts individually.
	//
	// If you are automating VSS Backups, omit this parameter.
	//
	// Default: 10.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-script.html#cfn-dlm-lifecyclepolicy-script-executiontimeout
	//
	ExecutionTimeout *float64 `field:"optional" json:"executionTimeout" yaml:"executionTimeout"`
	// Specifies the number of times Amazon Data Lifecycle Manager should retry scripts that fail.
	//
	// - If the pre script fails, Amazon Data Lifecycle Manager retries the entire snapshot creation process, including running the pre and post scripts.
	// - If the post script fails, Amazon Data Lifecycle Manager retries the post script only; in this case, the pre script will have completed and the snapshot might have been created.
	//
	// If you do not want Amazon Data Lifecycle Manager to retry failed scripts, specify `0` .
	//
	// Default: 0.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-script.html#cfn-dlm-lifecyclepolicy-script-maximumretrycount
	//
	MaximumRetryCount *float64 `field:"optional" json:"maximumRetryCount" yaml:"maximumRetryCount"`
	// Indicate which scripts Amazon Data Lifecycle Manager should run on target instances.
	//
	// Pre scripts run before Amazon Data Lifecycle Manager initiates snapshot creation. Post scripts run after Amazon Data Lifecycle Manager initiates snapshot creation.
	//
	// - To run a pre script only, specify `PRE` . In this case, Amazon Data Lifecycle Manager calls the SSM document with the `pre-script` parameter before initiating snapshot creation.
	// - To run a post script only, specify `POST` . In this case, Amazon Data Lifecycle Manager calls the SSM document with the `post-script` parameter after initiating snapshot creation.
	// - To run both pre and post scripts, specify both `PRE` and `POST` . In this case, Amazon Data Lifecycle Manager calls the SSM document with the `pre-script` parameter before initiating snapshot creation, and then it calls the SSM document again with the `post-script` parameter after initiating snapshot creation.
	//
	// If you are automating VSS Backups, omit this parameter.
	//
	// Default: PRE and POST.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-script.html#cfn-dlm-lifecyclepolicy-script-stages
	//
	Stages *[]*string `field:"optional" json:"stages" yaml:"stages"`
}

*[Custom snapshot policies that target instances only]* Information about pre and/or post scripts for a snapshot lifecycle policy that targets instances.

For more information, see [Automating application-consistent snapshots with pre and post scripts](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/automate-app-consistent-backups.html) .

Example:

// 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"

scriptProperty := &ScriptProperty{
	ExecuteOperationOnScriptFailure: jsii.Boolean(false),
	ExecutionHandler: jsii.String("executionHandler"),
	ExecutionHandlerService: jsii.String("executionHandlerService"),
	ExecutionTimeout: jsii.Number(123),
	MaximumRetryCount: jsii.Number(123),
	Stages: []*string{
		jsii.String("stages"),
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-script.html

type CfnLifecyclePolicy_ShareRuleProperty

type CfnLifecyclePolicy_ShareRuleProperty struct {
	// The IDs of the AWS accounts with which to share the snapshots.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-sharerule.html#cfn-dlm-lifecyclepolicy-sharerule-targetaccounts
	//
	TargetAccounts *[]*string `field:"optional" json:"targetAccounts" yaml:"targetAccounts"`
	// The period after which snapshots that are shared with other AWS accounts are automatically unshared.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-sharerule.html#cfn-dlm-lifecyclepolicy-sharerule-unshareinterval
	//
	UnshareInterval *float64 `field:"optional" json:"unshareInterval" yaml:"unshareInterval"`
	// The unit of time for the automatic unsharing interval.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-sharerule.html#cfn-dlm-lifecyclepolicy-sharerule-unshareintervalunit
	//
	UnshareIntervalUnit *string `field:"optional" json:"unshareIntervalUnit" yaml:"unshareIntervalUnit"`
}

*[Custom snapshot policies only]* Specifies a rule for sharing snapshots across AWS accounts .

Example:

// 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"

shareRuleProperty := &ShareRuleProperty{
	TargetAccounts: []*string{
		jsii.String("targetAccounts"),
	},
	UnshareInterval: jsii.Number(123),
	UnshareIntervalUnit: jsii.String("unshareIntervalUnit"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dlm-lifecyclepolicy-sharerule.html

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL