Interface CfnLifecyclePolicy.ExclusionsProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnLifecyclePolicy.ExclusionsProperty.Jsii$Proxy
- Enclosing class:
CfnLifecyclePolicy
@Stability(Stable)
public static interface CfnLifecyclePolicy.ExclusionsProperty
extends software.amazon.jsii.JsiiSerializable
[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.
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.*; Object excludeTags; Object excludeVolumeTypes; ExclusionsProperty exclusionsProperty = ExclusionsProperty.builder() .excludeBootVolumes(false) .excludeTags(excludeTags) .excludeVolumeTypes(excludeVolumeTypes) .build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forCfnLifecyclePolicy.ExclusionsProperty
static final class
An implementation forCfnLifecyclePolicy.ExclusionsProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default Object
[Default policies for EBS snapshots only] Indicates whether to exclude volumes that are attached to instances as the boot volume.default Object
[Default policies for EBS-backed AMIs only] Specifies whether to exclude volumes that have specific tags.default Object
[Default policies for EBS snapshots only] Specifies the volume types to exclude.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getExcludeBootVolumes
[Default policies for EBS snapshots only] Indicates whether to exclude volumes that are attached to instances as the boot volume.If you exclude boot volumes, only volumes attached as data (non-boot) volumes will be backed up by the policy. To exclude boot volumes, specify
true
.- See Also:
-
getExcludeTags
[Default policies for EBS-backed AMIs only] Specifies whether to exclude volumes that have specific tags.- See Also:
-
getExcludeVolumeTypes
[Default policies for EBS snapshots only] Specifies the volume types to exclude.Volumes of the specified types will not be targeted by the policy.
- See Also:
-
builder
-