Interface CfnLifecyclePolicy.IExclusionsProperty
[Default policies only] Specifies exclusion parameters for volumes or instances for which you do not want to create snapshots or AMIs.
Namespace: Amazon.CDK.AWS.DLM
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IExclusionsProperty
Syntax (vb)
Public Interface IExclusionsProperty
Remarks
The policy will not create snapshots or AMIs for target resources that match any of the specified exclusion parameters.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.DLM;
var excludeTags;
var excludeVolumeTypes;
var exclusionsProperty = new ExclusionsProperty {
ExcludeBootVolumes = false,
ExcludeTags = excludeTags,
ExcludeVolumeTypes = excludeVolumeTypes
};
Synopsis
Properties
Exclude |
[Default policies for EBS snapshots only] Indicates whether to exclude volumes that are attached to instances as the boot volume. |
Exclude |
[Default policies for EBS-backed AMIs only] Specifies whether to exclude volumes that have specific tags. |
Exclude |
[Default policies for EBS snapshots only] Specifies the volume types to exclude. |
Properties
ExcludeBootVolumes
[Default policies for EBS snapshots only] Indicates whether to exclude volumes that are attached to instances as the boot volume.
virtual object ExcludeBootVolumes { get; }
Property Value
System.
Remarks
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
.
ExcludeTags
[Default policies for EBS-backed AMIs only] Specifies whether to exclude volumes that have specific tags.
virtual object ExcludeTags { get; }
Property Value
System.
Remarks
ExcludeVolumeTypes
[Default policies for EBS snapshots only] Specifies the volume types to exclude.
virtual object ExcludeVolumeTypes { get; }
Property Value
System.
Remarks
Volumes of the specified types will not be targeted by the policy.