/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the dlm-2018-01-12.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.DLM.Model
{
///
/// [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.
///
///
public partial class Parameters
{
private bool? _excludeBootVolume;
private List _excludeDataVolumeTags = new List();
private bool? _noReboot;
///
/// Gets and sets the property ExcludeBootVolume.
///
/// [Snapshot policies that target instances only] Indicates whether to exclude
/// the root volume from multi-volume snapshot sets. The default is false
.
/// If you specify true
, then the root volumes attached to targeted instances
/// will be excluded from the multi-volume snapshot sets created by the policy.
///
///
public bool ExcludeBootVolume
{
get { return this._excludeBootVolume.GetValueOrDefault(); }
set { this._excludeBootVolume = value; }
}
// Check to see if ExcludeBootVolume property is set
internal bool IsSetExcludeBootVolume()
{
return this._excludeBootVolume.HasValue;
}
///
/// Gets and sets the property ExcludeDataVolumeTags.
///
/// [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.
///
///
[AWSProperty(Min=0, Max=50)]
public List ExcludeDataVolumeTags
{
get { return this._excludeDataVolumeTags; }
set { this._excludeDataVolumeTags = value; }
}
// Check to see if ExcludeDataVolumeTags property is set
internal bool IsSetExcludeDataVolumeTags()
{
return this._excludeDataVolumeTags != null && this._excludeDataVolumeTags.Count > 0;
}
///
/// Gets and sets the property NoReboot.
///
/// [AMI policies only] Indicates whether targeted instances are rebooted when
/// the lifecycle policy runs. true
indicates that targeted instances are
/// not rebooted when the policy runs. false
indicates that target instances
/// are rebooted when the policy runs. The default is true
(instances are
/// not rebooted).
///
///
public bool NoReboot
{
get { return this._noReboot.GetValueOrDefault(); }
set { this._noReboot = value; }
}
// Check to see if NoReboot property is set
internal bool IsSetNoReboot()
{
return this._noReboot.HasValue;
}
}
}