/*
* 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 ssm-2014-11-06.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.SimpleSystemsManagement.Model
{
///
/// Defines an approval rule for a patch baseline.
///
public partial class PatchRule
{
private int? _approveAfterDays;
private string _approveUntilDate;
private PatchComplianceLevel _complianceLevel;
private bool? _enableNonSecurity;
private PatchFilterGroup _patchFilterGroup;
///
/// Gets and sets the property ApproveAfterDays.
///
/// The number of days after the release date of each patch matched by the rule that the
/// patch is marked as approved in the patch baseline. For example, a value of 7
/// means that patches are approved seven days after they are released. Not supported
/// on Debian Server or Ubuntu Server.
///
///
[AWSProperty(Min=0, Max=360)]
public int ApproveAfterDays
{
get { return this._approveAfterDays.GetValueOrDefault(); }
set { this._approveAfterDays = value; }
}
// Check to see if ApproveAfterDays property is set
internal bool IsSetApproveAfterDays()
{
return this._approveAfterDays.HasValue;
}
///
/// Gets and sets the property ApproveUntilDate.
///
/// The cutoff date for auto approval of released patches. Any patches released on or
/// before this date are installed automatically. Not supported on Debian Server or Ubuntu
/// Server.
///
///
///
/// Enter dates in the format YYYY-MM-DD
. For example, 2021-12-31
.
///
///
[AWSProperty(Min=1, Max=10)]
public string ApproveUntilDate
{
get { return this._approveUntilDate; }
set { this._approveUntilDate = value; }
}
// Check to see if ApproveUntilDate property is set
internal bool IsSetApproveUntilDate()
{
return this._approveUntilDate != null;
}
///
/// Gets and sets the property ComplianceLevel.
///
/// A compliance severity level for all approved patches in a patch baseline.
///
///
public PatchComplianceLevel ComplianceLevel
{
get { return this._complianceLevel; }
set { this._complianceLevel = value; }
}
// Check to see if ComplianceLevel property is set
internal bool IsSetComplianceLevel()
{
return this._complianceLevel != null;
}
///
/// Gets and sets the property EnableNonSecurity.
///
/// For managed nodes identified by the approval rule filters, enables a patch baseline
/// to apply non-security updates available in the specified repository. The default value
/// is false
. Applies to Linux managed nodes only.
///
///
public bool EnableNonSecurity
{
get { return this._enableNonSecurity.GetValueOrDefault(); }
set { this._enableNonSecurity = value; }
}
// Check to see if EnableNonSecurity property is set
internal bool IsSetEnableNonSecurity()
{
return this._enableNonSecurity.HasValue;
}
///
/// Gets and sets the property PatchFilterGroup.
///
/// The patch filter group that defines the criteria for the rule.
///
///
[AWSProperty(Required=true)]
public PatchFilterGroup PatchFilterGroup
{
get { return this._patchFilterGroup; }
set { this._patchFilterGroup = value; }
}
// Check to see if PatchFilterGroup property is set
internal bool IsSetPatchFilterGroup()
{
return this._patchFilterGroup != null;
}
}
}