Expand description
Data structures used by operation inputs/outputs.
Modules§
Structs§
- Action
\[Event-based policies only\] Specifies an action for an event-based policy.
- Archive
Retain Rule \[Custom snapshot policies only\] Specifies information about the archive storage tier retention period.
- Archive
Rule \[Custom snapshot policies only\] Specifies a snapshot archiving rule for a schedule.
- Create
Rule \[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 for the schedule, then you must specify a creation frequency of at least 28 days.
-
- Cross
Region Copy Action \[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.
- Cross
Region Copy Deprecate Rule \[Custom AMI policies only\] Specifies an AMI deprecation rule for cross-Region AMI copies created by an AMI policy.
- Cross
Region Copy Retain Rule 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.
- Cross
Region Copy Rule \[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.
- Cross
Region Copy Target \[Default policies only\] Specifies a destination Region for cross-Region copy actions.
- Deprecate
Rule \[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.
- Encryption
Configuration \[Event-based policies only\] Specifies the encryption settings for cross-Region snapshot copies created by event-based policies.
- Event
Parameters \[Event-based policies only\] Specifies an event that activates an event-based policy.
- Event
Source \[Event-based policies only\] Specifies an event that activates an event-based policy.
- Exclusions
\[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.
- Fast
Restore Rule \[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.
- Lifecycle
Policy Information about a lifecycle policy.
- Lifecycle
Policy Summary Summary information about a lifecycle policy.
- Parameters
\[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.- Policy
Details Specifies the configuration of a lifecycle policy.
- Retain
Rule \[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, 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 for the schedule, then you can specify a retention count of
0
to archive snapshots immediately after creation. If you specify a FastRestoreRule, ShareRule, or a CrossRegionCopyRule, then you must specify a retention count of1
or more. -
Age-based retention
You must specify Interval and IntervalUnit. If you specify an ArchiveRule for the schedule, then you can specify a retention interval of
0
days to archive snapshots immediately after creation. If you specify a FastRestoreRule, ShareRule, or a CrossRegionCopyRule, then you must specify a retention interval of1
day or more.
-
- Retention
Archive Tier \[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.
- Schedule
\[Custom snapshot and AMI policies only\] Specifies a schedule for a snapshot or AMI lifecycle policy.
- Script
\[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.
- Share
Rule \[Custom snapshot policies only\] Specifies a rule for sharing snapshots across Amazon Web Services accounts.
- Tag
Specifies a tag for a resource.
Enums§
- Default
Policies Type Values - When writing a match expression against
DefaultPoliciesTypeValues
, it is important to ensure your code is forward-compatible. That is, if a match arm handles a case for a feature that is supported by the service but has not been represented as an enum variant in a current version of SDK, your code should continue to work when you upgrade SDK to a future version in which the enum does include a variant for that feature. - Default
Policy Type Values - When writing a match expression against
DefaultPolicyTypeValues
, it is important to ensure your code is forward-compatible. That is, if a match arm handles a case for a feature that is supported by the service but has not been represented as an enum variant in a current version of SDK, your code should continue to work when you upgrade SDK to a future version in which the enum does include a variant for that feature. - Event
Source Values - When writing a match expression against
EventSourceValues
, it is important to ensure your code is forward-compatible. That is, if a match arm handles a case for a feature that is supported by the service but has not been represented as an enum variant in a current version of SDK, your code should continue to work when you upgrade SDK to a future version in which the enum does include a variant for that feature. - Event
Type Values - When writing a match expression against
EventTypeValues
, it is important to ensure your code is forward-compatible. That is, if a match arm handles a case for a feature that is supported by the service but has not been represented as an enum variant in a current version of SDK, your code should continue to work when you upgrade SDK to a future version in which the enum does include a variant for that feature. - Execution
Handler Service Values - When writing a match expression against
ExecutionHandlerServiceValues
, it is important to ensure your code is forward-compatible. That is, if a match arm handles a case for a feature that is supported by the service but has not been represented as an enum variant in a current version of SDK, your code should continue to work when you upgrade SDK to a future version in which the enum does include a variant for that feature. - Gettable
Policy State Values - When writing a match expression against
GettablePolicyStateValues
, it is important to ensure your code is forward-compatible. That is, if a match arm handles a case for a feature that is supported by the service but has not been represented as an enum variant in a current version of SDK, your code should continue to work when you upgrade SDK to a future version in which the enum does include a variant for that feature. - Interval
Unit Values - When writing a match expression against
IntervalUnitValues
, it is important to ensure your code is forward-compatible. That is, if a match arm handles a case for a feature that is supported by the service but has not been represented as an enum variant in a current version of SDK, your code should continue to work when you upgrade SDK to a future version in which the enum does include a variant for that feature. - Location
Values - When writing a match expression against
LocationValues
, it is important to ensure your code is forward-compatible. That is, if a match arm handles a case for a feature that is supported by the service but has not been represented as an enum variant in a current version of SDK, your code should continue to work when you upgrade SDK to a future version in which the enum does include a variant for that feature. - Policy
Language Values - When writing a match expression against
PolicyLanguageValues
, it is important to ensure your code is forward-compatible. That is, if a match arm handles a case for a feature that is supported by the service but has not been represented as an enum variant in a current version of SDK, your code should continue to work when you upgrade SDK to a future version in which the enum does include a variant for that feature. - Policy
Type Values - When writing a match expression against
PolicyTypeValues
, it is important to ensure your code is forward-compatible. That is, if a match arm handles a case for a feature that is supported by the service but has not been represented as an enum variant in a current version of SDK, your code should continue to work when you upgrade SDK to a future version in which the enum does include a variant for that feature. - Resource
Location Values - When writing a match expression against
ResourceLocationValues
, it is important to ensure your code is forward-compatible. That is, if a match arm handles a case for a feature that is supported by the service but has not been represented as an enum variant in a current version of SDK, your code should continue to work when you upgrade SDK to a future version in which the enum does include a variant for that feature. - Resource
Type Values - When writing a match expression against
ResourceTypeValues
, it is important to ensure your code is forward-compatible. That is, if a match arm handles a case for a feature that is supported by the service but has not been represented as an enum variant in a current version of SDK, your code should continue to work when you upgrade SDK to a future version in which the enum does include a variant for that feature. - Retention
Interval Unit Values - When writing a match expression against
RetentionIntervalUnitValues
, it is important to ensure your code is forward-compatible. That is, if a match arm handles a case for a feature that is supported by the service but has not been represented as an enum variant in a current version of SDK, your code should continue to work when you upgrade SDK to a future version in which the enum does include a variant for that feature. - Settable
Policy State Values - When writing a match expression against
SettablePolicyStateValues
, it is important to ensure your code is forward-compatible. That is, if a match arm handles a case for a feature that is supported by the service but has not been represented as an enum variant in a current version of SDK, your code should continue to work when you upgrade SDK to a future version in which the enum does include a variant for that feature. - Stage
Values - When writing a match expression against
StageValues
, it is important to ensure your code is forward-compatible. That is, if a match arm handles a case for a feature that is supported by the service but has not been represented as an enum variant in a current version of SDK, your code should continue to work when you upgrade SDK to a future version in which the enum does include a variant for that feature.