Skip to content

Commit 80861d4

Browse files
author
AWS
committed
Amazon Data Lifecycle Manager Update: This release adds support for archival of single-volume snapshots created by Amazon Data Lifecycle Manager policies
1 parent edcb267 commit 80861d4

File tree

2 files changed

+70
-11
lines changed

2 files changed

+70
-11
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon Data Lifecycle Manager",
4+
"contributor": "",
5+
"description": "This release adds support for archival of single-volume snapshots created by Amazon Data Lifecycle Manager policies"
6+
}

services/dlm/src/main/resources/codegen-resources/service-2.json

Lines changed: 64 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
{"shape":"InternalServerException"},
4242
{"shape":"LimitExceededException"}
4343
],
44-
"documentation":"<p>Deletes the specified lifecycle policy and halts the automated operations that the policy specified.</p>"
44+
"documentation":"<p>Deletes the specified lifecycle policy and halts the automated operations that the policy specified.</p> <p>For more information about deleting a policy, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/view-modify-delete.html#delete\">Delete lifecycle policies</a>.</p>"
4545
},
4646
"GetLifecyclePolicies":{
4747
"name":"GetLifecyclePolicies",
@@ -133,7 +133,7 @@
133133
{"shape":"InternalServerException"},
134134
{"shape":"LimitExceededException"}
135135
],
136-
"documentation":"<p>Updates the specified lifecycle policy.</p>"
136+
"documentation":"<p>Updates the specified lifecycle policy.</p> <p>For more information about updating a policy, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/view-modify-delete.html#modify\">Modify lifecycle policies</a>.</p>"
137137
}
138138
},
139139
"shapes":{
@@ -167,6 +167,28 @@
167167
"min":0,
168168
"pattern":"[0-9A-Za-z _-]+"
169169
},
170+
"ArchiveRetainRule":{
171+
"type":"structure",
172+
"required":["RetentionArchiveTier"],
173+
"members":{
174+
"RetentionArchiveTier":{
175+
"shape":"RetentionArchiveTier",
176+
"documentation":"<p>Information about retention period in the Amazon EBS Snapshots Archive. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/snapshot-archive.html\">Archive Amazon EBS snapshots</a>.</p>"
177+
}
178+
},
179+
"documentation":"<p> <b>[Snapshot policies only]</b> Specifies information about the archive storage tier retention period.</p>"
180+
},
181+
"ArchiveRule":{
182+
"type":"structure",
183+
"required":["RetainRule"],
184+
"members":{
185+
"RetainRule":{
186+
"shape":"ArchiveRetainRule",
187+
"documentation":"<p>Information about the retention period for the snapshot archiving rule.</p>"
188+
}
189+
},
190+
"documentation":"<p> <b>[Snapshot policies only]</b> Specifies a snapshot archiving rule for a schedule.</p>"
191+
},
170192
"AvailabilityZone":{
171193
"type":"string",
172194
"max":16,
@@ -255,14 +277,14 @@
255277
},
256278
"Times":{
257279
"shape":"TimesList",
258-
"documentation":"<p>The time, in UTC, to start the operation. The supported format is hh:mm.</p> <p>The operation occurs within a one-hour window following the specified time. If you do not specify a time, Amazon DLM selects a time within the next 24 hours.</p>"
280+
"documentation":"<p>The time, in UTC, to start the operation. The supported format is hh:mm.</p> <p>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.</p>"
259281
},
260282
"CronExpression":{
261283
"shape":"CronExpression",
262284
"documentation":"<p>The schedule, as a Cron expression. The schedule interval must be between 1 hour and 1 year. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions\">Cron expressions</a> in the <i>Amazon CloudWatch User Guide</i>.</p>"
263285
}
264286
},
265-
"documentation":"<p> <b>[Snapshot and AMI policies only]</b> Specifies when the policy should create snapshots or AMIs.</p> <important> <p>You must specify either a Cron expression or an interval, interval unit, and start time. You cannot specify both.</p> </important>"
287+
"documentation":"<p> <b>[Snapshot and AMI policies only]</b> Specifies when the policy should create snapshots or AMIs.</p> <note> <ul> <li> <p>You must specify either <b>CronExpression</b>, or <b>Interval</b>, <b>IntervalUnit</b>, and <b>Times</b>.</p> </li> <li> <p>If you need to specify an <a>ArchiveRule</a> for the schedule, then you must specify a creation frequency of at least 28 days.</p> </li> </ul> </note>"
266288
},
267289
"CronExpression":{
268290
"type":"string",
@@ -503,7 +525,7 @@
503525
"documentation":"<p>The Availability Zones in which to enable fast snapshot restore.</p>"
504526
}
505527
},
506-
"documentation":"<p> <b>[Snapshot policies only]</b> Specifies a rule for enabling fast snapshot restore for snapshots created by snaspshot policies. You can enable fast snapshot restore based on either a count or a time interval.</p>"
528+
"documentation":"<p> <b>[Snapshot policies only]</b> 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.</p>"
507529
},
508530
"GetLifecyclePoliciesRequest":{
509531
"type":"structure",
@@ -754,7 +776,7 @@
754776
"documentation":"<p> <b>[Snapshot policies that target instances only]</b> The tags used to identify data (non-root) volumes to exclude from multi-volume snapshot sets.</p> <p>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.</p>"
755777
}
756778
},
757-
"documentation":"<p> <b>[Snapshot and AMI policies only]</b> Specifies optional parameters for snapshot and AMI policies. The set of valid parameters depends on the combination of policy type and target resource type.</p> <p>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 DLM will not create any snapshots for the affected instance, and it will emit a <code>SnapshotsCreateFailed</code> Amazon CloudWatch metric. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitor-dlm-cw-metrics.html\">Monitor your policies using Amazon CloudWatch</a>.</p>"
779+
"documentation":"<p> <b>[Snapshot and AMI policies only]</b> Specifies optional parameters for snapshot and AMI policies. The set of valid parameters depends on the combination of policy type and target resource type.</p> <p>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 <code>SnapshotsCreateFailed</code> Amazon CloudWatch metric. For more information, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/monitor-dlm-cw-metrics.html\">Monitor your policies using Amazon CloudWatch</a>.</p>"
758780
},
759781
"PolicyArn":{
760782
"type":"string",
@@ -869,22 +891,40 @@
869891
"min":1
870892
},
871893
"RetainRule":{
894+
"type":"structure",
895+
"members":{
896+
"Count":{
897+
"shape":"StandardTierRetainRuleCount",
898+
"documentation":"<p>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 <code>3</code>. 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 <a>ArchiveRule</a>.</p>"
899+
},
900+
"Interval":{
901+
"shape":"StandardTierRetainRuleInterval",
902+
"documentation":"<p>The amount of time to retain each snapshot. The maximum is 100 years. This is equivalent to 1200 months, 5200 weeks, or 36500 days.</p>"
903+
},
904+
"IntervalUnit":{
905+
"shape":"RetentionIntervalUnitValues",
906+
"documentation":"<p>The unit of time for time-based retention. For example, to retain snapshots for 3 months, specify <code>Interval=3</code> and <code>IntervalUnit=MONTHS</code>. 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 <a>ArchiveRule</a>.</p>"
907+
}
908+
},
909+
"documentation":"<p> <b>[Snapshot and AMI policies only]</b> Specifies a retention rule for snapshots created by snapshot policies, or for AMIs created by AMI policies.</p> <note> <p>For snapshot policies that have an <a>ArchiveRule</a>, this retention rule applies to standard tier retention. When the retention threshold is met, snapshots are moved from the standard to the archive tier.</p> <p>For snapshot policies that do not have an <b>ArchiveRule</b>, snapshots are permanently deleted when this retention threshold is met.</p> </note> <p>You can retain snapshots based on either a count or a time interval.</p> <ul> <li> <p> <b>Count-based retention</b> </p> <p>You must specify <b>Count</b>. If you specify an <a>ArchiveRule</a> for the schedule, then you can specify a retention count of <code>0</code> to archive snapshots immediately after creation. If you specify a <a>FastRestoreRule</a>, <a>ShareRule</a>, or a <a>CrossRegionCopyRule</a>, then you must specify a retention count of <code>1</code> or more.</p> </li> <li> <p> <b>Age-based retention</b> </p> <p>You must specify <b>Interval</b> and <b>IntervalUnit</b>. If you specify an <a>ArchiveRule</a> for the schedule, then you can specify a retention interval of <code>0</code> days to archive snapshots immediately after creation. If you specify a <a>FastRestoreRule</a>, <a>ShareRule</a>, or a <a>CrossRegionCopyRule</a>, then you must specify a retention interval of <code>1</code> day or more.</p> </li> </ul>"
910+
},
911+
"RetentionArchiveTier":{
872912
"type":"structure",
873913
"members":{
874914
"Count":{
875915
"shape":"Count",
876-
"documentation":"<p>The number of snapshots to retain for each volume, up to a maximum of 1000.</p>"
916+
"documentation":"<p>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.</p>"
877917
},
878918
"Interval":{
879919
"shape":"Interval",
880-
"documentation":"<p>The amount of time to retain each snapshot. The maximum is 100 years. This is equivalent to 1200 months, 5200 weeks, or 36500 days.</p>"
920+
"documentation":"<p>Specifies the period of time to retain snapshots in the archive tier. After this period expires, the snapshot is permanently deleted.</p>"
881921
},
882922
"IntervalUnit":{
883923
"shape":"RetentionIntervalUnitValues",
884-
"documentation":"<p>The unit of time for time-based retention.</p>"
924+
"documentation":"<p>The unit of time in which to measure the <b>Interval</b>. For example, to retain a snapshots in the archive tier for 6 months, specify <code>Interval=6</code> and <code>IntervalUnit=MONTHS</code>.</p>"
885925
}
886926
},
887-
"documentation":"<p> <b>[Snapshot and AMI policies only]</b> Specifies a retention rule for snapshots created by snapshot policies or for AMIs created by AMI policies. You can retain snapshots based on either a count or a time interval.</p> <p>You must specify either <b>Count</b>, or <b>Interval</b> and <b>IntervalUnit</b>.</p>"
927+
"documentation":"<p> <b>[Snapshot policies only]</b> Describes the retention rule for archived snapshots. Once the archive retention threshold is met, the snapshots are permanently deleted from the archive tier.</p> <note> <p>The archive retention rule must retain snapshots in the archive tier for a minimum of 90 days.</p> </note> <p>For <b>count-based schedules</b>, you must specify <b>Count</b>. For <b>age-based schedules</b>, you must specify <b>Interval</b> and <b> IntervalUnit</b>.</p> <p>For more information about using snapshot archiving, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshot-ami-policy.html#dlm-archive\">Considerations for snapshot lifecycle policies</a>.</p>"
888928
},
889929
"RetentionIntervalUnitValues":{
890930
"type":"string",
@@ -937,6 +977,10 @@
937977
"DeprecateRule":{
938978
"shape":"DeprecateRule",
939979
"documentation":"<p> <b>[AMI policies only]</b> The AMI deprecation rule for the schedule.</p>"
980+
},
981+
"ArchiveRule":{
982+
"shape":"ArchiveRule",
983+
"documentation":"<p> <b>[Snapshot policies that target volumes only]</b> 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. </p> <p>For more information about using snapshot archiving, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshot-ami-policy.html#dlm-archive\">Considerations for snapshot lifecycle policies</a>.</p>"
940984
}
941985
},
942986
"documentation":"<p> <b>[Snapshot and AMI policies only]</b> Specifies a schedule for a snapshot or AMI lifecycle policy.</p>"
@@ -996,6 +1040,15 @@
9961040
"max":50,
9971041
"min":0
9981042
},
1043+
"StandardTierRetainRuleCount":{
1044+
"type":"integer",
1045+
"max":1000,
1046+
"min":0
1047+
},
1048+
"StandardTierRetainRuleInterval":{
1049+
"type":"integer",
1050+
"min":0
1051+
},
9991052
"StatusMessage":{
10001053
"type":"string",
10011054
"max":500,
@@ -1197,5 +1250,5 @@
11971250
"min":0
11981251
}
11991252
},
1200-
"documentation":"<fullname>Amazon Data Lifecycle Manager</fullname> <p>With Amazon Data Lifecycle Manager, you can manage the lifecycle of your Amazon Web Services resources. You create lifecycle policies, which are used to automate operations on the specified resources.</p> <p>Amazon DLM supports Amazon EBS volumes and snapshots. For information about using Amazon DLM with Amazon EBS, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshot-lifecycle.html\">Automating the Amazon EBS Snapshot Lifecycle</a> in the <i>Amazon EC2 User Guide</i>.</p>"
1253+
"documentation":"<fullname>Amazon Data Lifecycle Manager</fullname> <p>With Amazon Data Lifecycle Manager, you can manage the lifecycle of your Amazon Web Services resources. You create lifecycle policies, which are used to automate operations on the specified resources.</p> <p>Amazon Data Lifecycle Manager supports Amazon EBS volumes and snapshots. For information about using Amazon Data Lifecycle Manager with Amazon EBS, see <a href=\"https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshot-lifecycle.html\"> Amazon Data Lifecycle Manager</a> in the <i>Amazon EC2 User Guide</i>.</p>"
12011254
}

0 commit comments

Comments
 (0)