Interface CfnLifecyclePolicy.ParametersProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnLifecyclePolicy.ParametersProperty.Jsii$Proxy
- Enclosing class:
CfnLifecyclePolicy
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 .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.dlm.*;
ParametersProperty parametersProperty = ParametersProperty.builder()
.excludeBootVolume(false)
.excludeDataVolumeTags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.noReboot(false)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnLifecyclePolicy.ParametersPropertystatic final classAn implementation forCfnLifecyclePolicy.ParametersProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default Object[Custom snapshot policies that target instances only] Indicates whether to exclude the root volume from multi-volume snapshot sets.default Object[Custom snapshot policies that target instances only] The tags used to identify data (non-root) volumes to exclude from multi-volume snapshot sets.default Object[Custom AMI policies only] Indicates whether targeted instances are rebooted when the lifecycle policy runs.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getExcludeBootVolume
[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 specifytrue, then the root volumes attached to targeted instances will be excluded from the multi-volume snapshot sets created by the policy.Returns union: either
BooleanorIResolvable- See Also:
-
getExcludeDataVolumeTags
[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.
Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnTag>- See Also:
-
getNoReboot
[Custom AMI policies only] Indicates whether targeted instances are rebooted when the lifecycle policy runs.trueindicates that targeted instances are not rebooted when the policy runs.falseindicates that target instances are rebooted when the policy runs. The default istrue(instances are not rebooted).Returns union: either
BooleanorIResolvable- See Also:
-
builder
-