Class CfnLifecyclePolicy.ExclusionsProperty
[Default policies only] Specifies exclusion parameters for volumes or instances for which you do not want to create snapshots or AMIs.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.DLM
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ExclusionsProperty : Object, CfnLifecyclePolicy.IExclusionsProperty
Syntax (vb)
Public Class ExclusionsProperty
Inherits Object
Implements CfnLifecyclePolicy.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
Constructors
ExclusionsProperty() |
Properties
ExcludeBootVolumes | [Default policies for EBS snapshots only] Indicates whether to exclude volumes that are attached to instances as the boot volume. |
ExcludeTags | [Default policies for EBS-backed AMIs only] Specifies whether to exclude volumes that have specific tags. |
ExcludeVolumeTypes | [Default policies for EBS snapshots only] Specifies the volume types to exclude. |
Constructors
ExclusionsProperty()
public ExclusionsProperty()
Properties
ExcludeBootVolumes
[Default policies for EBS snapshots only] Indicates whether to exclude volumes that are attached to instances as the boot volume.
public object ExcludeBootVolumes { get; set; }
Property Value
System.Object
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.
public object ExcludeTags { get; set; }
Property Value
System.Object
Remarks
ExcludeVolumeTypes
[Default policies for EBS snapshots only] Specifies the volume types to exclude.
public object ExcludeVolumeTypes { get; set; }
Property Value
System.Object
Remarks
Volumes of the specified types will not be targeted by the policy.