aws-cdk-lib.aws_dlm.CfnLifecyclePolicy.ScheduleProperty

interface ScheduleProperty

LanguageType name
.NETAmazon.CDK.AWS.DLM.CfnLifecyclePolicy.ScheduleProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsdlm#CfnLifecyclePolicy_ScheduleProperty
Javasoftware.amazon.awscdk.services.dlm.CfnLifecyclePolicy.ScheduleProperty
Pythonaws_cdk.aws_dlm.CfnLifecyclePolicy.ScheduleProperty
TypeScript aws-cdk-lib » aws_dlm » CfnLifecyclePolicy » ScheduleProperty

[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 { aws_dlm as dlm } from 'aws-cdk-lib';
const scheduleProperty: dlm.CfnLifecyclePolicy.ScheduleProperty = {
  archiveRule: {
    retainRule: {
      retentionArchiveTier: {
        count: 123,
        interval: 123,
        intervalUnit: 'intervalUnit',
      },
    },
  },
  copyTags: false,
  createRule: {
    cronExpression: 'cronExpression',
    interval: 123,
    intervalUnit: 'intervalUnit',
    location: 'location',
    times: ['times'],
  },
  crossRegionCopyRules: [{
    encrypted: false,

    // the properties below are optional
    cmkArn: 'cmkArn',
    copyTags: false,
    deprecateRule: {
      interval: 123,
      intervalUnit: 'intervalUnit',
    },
    retainRule: {
      interval: 123,
      intervalUnit: 'intervalUnit',
    },
    target: 'target',
    targetRegion: 'targetRegion',
  }],
  deprecateRule: {
    count: 123,
    interval: 123,
    intervalUnit: 'intervalUnit',
  },
  fastRestoreRule: {
    availabilityZones: ['availabilityZones'],
    count: 123,
    interval: 123,
    intervalUnit: 'intervalUnit',
  },
  name: 'name',
  retainRule: {
    count: 123,
    interval: 123,
    intervalUnit: 'intervalUnit',
  },
  shareRules: [{
    targetAccounts: ['targetAccounts'],
    unshareInterval: 123,
    unshareIntervalUnit: 'unshareIntervalUnit',
  }],
  tagsToAdd: [{
    key: 'key',
    value: 'value',
  }],
  variableTags: [{
    key: 'key',
    value: 'value',
  }],
};

Properties

NameTypeDescription
archiveRule?IResolvable | ArchiveRulePropertyCfnLifecyclePolicy.ScheduleProperty.ArchiveRule.
copyTags?boolean | IResolvableCopy all user-defined tags on a source volume to snapshots of the volume created by this policy.
createRule?IResolvable | CreateRulePropertyThe creation rule.
crossRegionCopyRules?IResolvable | IResolvable | CrossRegionCopyRuleProperty[]Specifies a rule for copying snapshots or AMIs across regions.
deprecateRule?IResolvable | DeprecateRulePropertyCfnLifecyclePolicy.ScheduleProperty.DeprecateRule.
fastRestoreRule?IResolvable | FastRestoreRuleProperty[Snapshot policies only] The rule for enabling fast snapshot restore.
name?stringThe name of the schedule.
retainRule?IResolvable | RetainRulePropertyThe retention rule for snapshots or AMIs created by the policy.
shareRules?IResolvable | IResolvable | ShareRuleProperty[][Snapshot policies only] The rule for sharing snapshots with other AWS accounts .
tagsToAdd?IResolvable | IResolvable | CfnTag[]The tags to apply to policy-created resources.
variableTags?IResolvable | IResolvable | CfnTag[][AMI policies and snapshot policies that target instances only] A collection of key/value pairs with values determined dynamically when the policy is executed.

archiveRule?

Type: IResolvable | ArchiveRuleProperty (optional)

CfnLifecyclePolicy.ScheduleProperty.ArchiveRule.


copyTags?

Type: boolean | IResolvable (optional)

Copy all user-defined tags on a source volume to snapshots of the volume created by this policy.


createRule?

Type: IResolvable | CreateRuleProperty (optional)

The creation rule.


crossRegionCopyRules?

Type: IResolvable | IResolvable | CrossRegionCopyRuleProperty[] (optional)

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.


deprecateRule?

Type: IResolvable | DeprecateRuleProperty (optional)

CfnLifecyclePolicy.ScheduleProperty.DeprecateRule.


fastRestoreRule?

Type: IResolvable | FastRestoreRuleProperty (optional)

[Snapshot policies only] The rule for enabling fast snapshot restore.


name?

Type: string (optional)

The name of the schedule.


retainRule?

Type: IResolvable | RetainRuleProperty (optional)

The retention rule for snapshots or AMIs created by the policy.


shareRules?

Type: IResolvable | IResolvable | ShareRuleProperty[] (optional)

[Snapshot policies only] The rule for sharing snapshots with other AWS accounts .


tagsToAdd?

Type: IResolvable | IResolvable | CfnTag[] (optional)

The tags to apply to policy-created resources.

These user-defined tags are in addition to the AWS -added lifecycle tags.


variableTags?

Type: IResolvable | IResolvable | CfnTag[] (optional)

[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.