/*
* 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 securityhub-2018-10-26.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.SecurityHub.Model
{
///
/// Contains finding details that are specific to control-based findings. Only returned
/// for findings generated from controls.
///
public partial class Compliance
{
private List _associatedStandards = new List();
private List _relatedRequirements = new List();
private string _securityControlId;
private ComplianceStatus _status;
private List _statusReasons = new List();
///
/// Gets and sets the property AssociatedStandards.
///
/// The enabled security standards in which a security control is currently enabled.
///
///
public List AssociatedStandards
{
get { return this._associatedStandards; }
set { this._associatedStandards = value; }
}
// Check to see if AssociatedStandards property is set
internal bool IsSetAssociatedStandards()
{
return this._associatedStandards != null && this._associatedStandards.Count > 0;
}
///
/// Gets and sets the property RelatedRequirements.
///
/// For a control, the industry or regulatory framework requirements that are related
/// to the control. The check for that control is aligned with these requirements.
///
///
public List RelatedRequirements
{
get { return this._relatedRequirements; }
set { this._relatedRequirements = value; }
}
// Check to see if RelatedRequirements property is set
internal bool IsSetRelatedRequirements()
{
return this._relatedRequirements != null && this._relatedRequirements.Count > 0;
}
///
/// Gets and sets the property SecurityControlId.
///
/// The unique identifier of a control across standards. Values for this field typically
/// consist of an Amazon Web Service and a number, such as APIGateway.5.
///
///
public string SecurityControlId
{
get { return this._securityControlId; }
set { this._securityControlId = value; }
}
// Check to see if SecurityControlId property is set
internal bool IsSetSecurityControlId()
{
return this._securityControlId != null;
}
///
/// Gets and sets the property Status.
///
/// The result of a standards check.
///
///
///
/// The valid values for Status
are as follows.
///
/// -
-
///
///
PASSED
- Standards check passed for all evaluated resources.
///
/// -
///
///
WARNING
- Some information is missing or this check is not supported
/// for your configuration.
///
/// -
///
///
FAILED
- Standards check failed for at least one evaluated resource.
///
/// -
///
///
NOT_AVAILABLE
- Check could not be performed due to a service outage,
/// API error, or because the result of the Config evaluation was NOT_APPLICABLE
.
/// If the Config evaluation result was NOT_APPLICABLE
, then after 3 days,
/// Security Hub automatically archives the finding.
///
///
///
public ComplianceStatus Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
///
/// Gets and sets the property StatusReasons.
///
/// For findings generated from controls, a list of reasons behind the value of Status
.
/// For the list of status reason codes and their meanings, see Standards-related
/// information in the ASFF in the Security Hub User Guide.
///
///
public List StatusReasons
{
get { return this._statusReasons; }
set { this._statusReasons = value; }
}
// Check to see if StatusReasons property is set
internal bool IsSetStatusReasons()
{
return this._statusReasons != null && this._statusReasons.Count > 0;
}
}
}