選取您的 Cookie 偏好設定

我們使用提供自身網站和服務所需的基本 Cookie 和類似工具。我們使用效能 Cookie 收集匿名統計資料,以便了解客戶如何使用我們的網站並進行改進。基本 Cookie 無法停用,但可以按一下「自訂」或「拒絕」以拒絕效能 Cookie。

如果您同意,AWS 與經核准的第三方也會使用 Cookie 提供實用的網站功能、記住您的偏好設定,並顯示相關內容,包括相關廣告。若要接受或拒絕所有非必要 Cookie,請按一下「接受」或「拒絕」。若要進行更詳細的選擇,請按一下「自訂」。

AWS::DLM::LifecyclePolicy CreateRule

焦點模式
AWS::DLM::LifecyclePolicy CreateRule - AWS CloudFormation
此頁面尚未翻譯為您的語言。 請求翻譯
篩選條件查看

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

Note
  • You must specify either CronExpression, or Interval, IntervalUnit, and Times.

  • If you need to specify an ArchiveRule for the schedule, then you must specify a creation frequency of at least 28 days.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "CronExpression" : String, "Interval" : Integer, "IntervalUnit" : String, "Location" : String, "Scripts" : [ Script, ... ], "Times" : [ String, ... ] }

YAML

CronExpression: String Interval: Integer IntervalUnit: String Location: String Scripts: - Script Times: - String

Properties

CronExpression

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 in the Amazon EventBridge User Guide.

Required: No

Type: String

Pattern: cron\([^\n]{11,100}\)

Minimum: 17

Maximum: 106

Update requires: No interruption

Interval

The interval between snapshots. The supported values are 1, 2, 3, 4, 6, 8, 12, and 24.

Required: No

Type: Integer

Minimum: 1

Update requires: No interruption

IntervalUnit

The interval unit.

Required: No

Type: String

Allowed values: HOURS

Update requires: No interruption

Location

[Custom snapshot policies only] Specifies the destination for snapshots created by the policy. The allowed destinations depend on the location of the targeted resources.

  • If the policy targets resources in a Region, then you must create snapshots in the same Region as the source resource.

  • If the policy targets resources in a Local Zone, you can create snapshots in the same Local Zone or in its parent Region.

  • If the policy targets resources on an Outpost, then you can create snapshots on the same Outpost or in its parent Region.

Specify one of the following values:

  • To create snapshots in the same Region as the source resource, specify CLOUD.

  • To create snapshots in the same Local Zone as the source resource, specify LOCAL_ZONE.

  • To create snapshots on the same Outpost as the source resource, specify OUTPOST_LOCAL.

Default: CLOUD

Required: No

Type: String

Allowed values: CLOUD | OUTPOST_LOCAL | LOCAL_ZONE

Update requires: No interruption

Scripts

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

Required: No

Type: Array of Script

Minimum: 0

Maximum: 1

Update requires: No interruption

Times

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.

Required: No

Type: Array of String

Maximum: 1

Update requires: No interruption

在本頁面

隱私權網站條款Cookie 偏好設定
© 2025, Amazon Web Services, Inc.或其附屬公司。保留所有權利。