/*
* 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 config-2014-11-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.ConfigService.Model
{
///
/// Identifies an Amazon Web Services resource and indicates whether it complies with
/// the Config rule that it was evaluated against.
///
public partial class Evaluation
{
private string _annotation;
private string _complianceResourceId;
private string _complianceResourceType;
private ComplianceType _complianceType;
private DateTime? _orderingTimestamp;
///
/// Gets and sets the property Annotation.
///
/// Supplementary information about how the evaluation determined the compliance.
///
///
[AWSProperty(Min=1, Max=256)]
public string Annotation
{
get { return this._annotation; }
set { this._annotation = value; }
}
// Check to see if Annotation property is set
internal bool IsSetAnnotation()
{
return this._annotation != null;
}
///
/// Gets and sets the property ComplianceResourceId.
///
/// The ID of the Amazon Web Services resource that was evaluated.
///
///
[AWSProperty(Required=true, Min=1, Max=768)]
public string ComplianceResourceId
{
get { return this._complianceResourceId; }
set { this._complianceResourceId = value; }
}
// Check to see if ComplianceResourceId property is set
internal bool IsSetComplianceResourceId()
{
return this._complianceResourceId != null;
}
///
/// Gets and sets the property ComplianceResourceType.
///
/// The type of Amazon Web Services resource that was evaluated.
///
///
[AWSProperty(Required=true, Min=1, Max=256)]
public string ComplianceResourceType
{
get { return this._complianceResourceType; }
set { this._complianceResourceType = value; }
}
// Check to see if ComplianceResourceType property is set
internal bool IsSetComplianceResourceType()
{
return this._complianceResourceType != null;
}
///
/// Gets and sets the property ComplianceType.
///
/// Indicates whether the Amazon Web Services resource complies with the Config rule that
/// it was evaluated against.
///
///
///
/// For the Evaluation
data type, Config supports only the COMPLIANT
,
/// NON_COMPLIANT
, and NOT_APPLICABLE
values. Config does not
/// support the INSUFFICIENT_DATA
value for this data type.
///
///
///
/// Similarly, Config does not accept INSUFFICIENT_DATA
as the value for
/// ComplianceType
from a PutEvaluations
request. For example,
/// an Lambda function for a custom Config rule cannot pass an INSUFFICIENT_DATA
/// value to Config.
///
///
[AWSProperty(Required=true)]
public ComplianceType ComplianceType
{
get { return this._complianceType; }
set { this._complianceType = value; }
}
// Check to see if ComplianceType property is set
internal bool IsSetComplianceType()
{
return this._complianceType != null;
}
///
/// Gets and sets the property OrderingTimestamp.
///
/// The time of the event in Config that triggered the evaluation. For event-based evaluations,
/// the time indicates when Config created the configuration item that triggered the evaluation.
/// For periodic evaluations, the time indicates when Config triggered the evaluation
/// at the frequency that you specified (for example, every 24 hours).
///
///
[AWSProperty(Required=true)]
public DateTime OrderingTimestamp
{
get { return this._orderingTimestamp.GetValueOrDefault(); }
set { this._orderingTimestamp = value; }
}
// Check to see if OrderingTimestamp property is set
internal bool IsSetOrderingTimestamp()
{
return this._orderingTimestamp.HasValue;
}
}
}