Class Compliance

java.lang.Object
com.amazonaws.services.config.model.Compliance
All Implemented Interfaces:
Serializable, Cloneable

public class Compliance extends Object implements Serializable, Cloneable

Indicates whether an AWS resource or AWS Config rule is compliant and provides the number of contributors that affect the compliance.

See Also:
  • Constructor Details

    • Compliance

      public Compliance()
  • Method Details

    • setComplianceType

      public void setComplianceType(String complianceType)

      Indicates whether an AWS resource or AWS Config rule is compliant.

      A resource is compliant if it complies with all of the AWS Config rules that evaluate it, and it is noncompliant if it does not comply with one or more of these rules.

      A rule is compliant if all of the resources that the rule evaluates comply with it, and it is noncompliant if any of these resources do not comply.

      AWS Config returns the INSUFFICIENT_DATA value when no evaluation results are available for the AWS resource or Config rule.

      For the Compliance data type, AWS Config supports only COMPLIANT, NON_COMPLIANT, and INSUFFICIENT_DATA values. AWS Config does not support the NOT_APPLICABLE value for the Compliance data type.

      Parameters:
      complianceType - Indicates whether an AWS resource or AWS Config rule is compliant.

      A resource is compliant if it complies with all of the AWS Config rules that evaluate it, and it is noncompliant if it does not comply with one or more of these rules.

      A rule is compliant if all of the resources that the rule evaluates comply with it, and it is noncompliant if any of these resources do not comply.

      AWS Config returns the INSUFFICIENT_DATA value when no evaluation results are available for the AWS resource or Config rule.

      For the Compliance data type, AWS Config supports only COMPLIANT, NON_COMPLIANT, and INSUFFICIENT_DATA values. AWS Config does not support the NOT_APPLICABLE value for the Compliance data type.

      See Also:
    • getComplianceType

      public String getComplianceType()

      Indicates whether an AWS resource or AWS Config rule is compliant.

      A resource is compliant if it complies with all of the AWS Config rules that evaluate it, and it is noncompliant if it does not comply with one or more of these rules.

      A rule is compliant if all of the resources that the rule evaluates comply with it, and it is noncompliant if any of these resources do not comply.

      AWS Config returns the INSUFFICIENT_DATA value when no evaluation results are available for the AWS resource or Config rule.

      For the Compliance data type, AWS Config supports only COMPLIANT, NON_COMPLIANT, and INSUFFICIENT_DATA values. AWS Config does not support the NOT_APPLICABLE value for the Compliance data type.

      Returns:
      Indicates whether an AWS resource or AWS Config rule is compliant.

      A resource is compliant if it complies with all of the AWS Config rules that evaluate it, and it is noncompliant if it does not comply with one or more of these rules.

      A rule is compliant if all of the resources that the rule evaluates comply with it, and it is noncompliant if any of these resources do not comply.

      AWS Config returns the INSUFFICIENT_DATA value when no evaluation results are available for the AWS resource or Config rule.

      For the Compliance data type, AWS Config supports only COMPLIANT, NON_COMPLIANT, and INSUFFICIENT_DATA values. AWS Config does not support the NOT_APPLICABLE value for the Compliance data type.

      See Also:
    • withComplianceType

      public Compliance withComplianceType(String complianceType)

      Indicates whether an AWS resource or AWS Config rule is compliant.

      A resource is compliant if it complies with all of the AWS Config rules that evaluate it, and it is noncompliant if it does not comply with one or more of these rules.

      A rule is compliant if all of the resources that the rule evaluates comply with it, and it is noncompliant if any of these resources do not comply.

      AWS Config returns the INSUFFICIENT_DATA value when no evaluation results are available for the AWS resource or Config rule.

      For the Compliance data type, AWS Config supports only COMPLIANT, NON_COMPLIANT, and INSUFFICIENT_DATA values. AWS Config does not support the NOT_APPLICABLE value for the Compliance data type.

      Parameters:
      complianceType - Indicates whether an AWS resource or AWS Config rule is compliant.

      A resource is compliant if it complies with all of the AWS Config rules that evaluate it, and it is noncompliant if it does not comply with one or more of these rules.

      A rule is compliant if all of the resources that the rule evaluates comply with it, and it is noncompliant if any of these resources do not comply.

      AWS Config returns the INSUFFICIENT_DATA value when no evaluation results are available for the AWS resource or Config rule.

      For the Compliance data type, AWS Config supports only COMPLIANT, NON_COMPLIANT, and INSUFFICIENT_DATA values. AWS Config does not support the NOT_APPLICABLE value for the Compliance data type.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setComplianceType

      public void setComplianceType(ComplianceType complianceType)

      Indicates whether an AWS resource or AWS Config rule is compliant.

      A resource is compliant if it complies with all of the AWS Config rules that evaluate it, and it is noncompliant if it does not comply with one or more of these rules.

      A rule is compliant if all of the resources that the rule evaluates comply with it, and it is noncompliant if any of these resources do not comply.

      AWS Config returns the INSUFFICIENT_DATA value when no evaluation results are available for the AWS resource or Config rule.

      For the Compliance data type, AWS Config supports only COMPLIANT, NON_COMPLIANT, and INSUFFICIENT_DATA values. AWS Config does not support the NOT_APPLICABLE value for the Compliance data type.

      Parameters:
      complianceType - Indicates whether an AWS resource or AWS Config rule is compliant.

      A resource is compliant if it complies with all of the AWS Config rules that evaluate it, and it is noncompliant if it does not comply with one or more of these rules.

      A rule is compliant if all of the resources that the rule evaluates comply with it, and it is noncompliant if any of these resources do not comply.

      AWS Config returns the INSUFFICIENT_DATA value when no evaluation results are available for the AWS resource or Config rule.

      For the Compliance data type, AWS Config supports only COMPLIANT, NON_COMPLIANT, and INSUFFICIENT_DATA values. AWS Config does not support the NOT_APPLICABLE value for the Compliance data type.

      See Also:
    • withComplianceType

      public Compliance withComplianceType(ComplianceType complianceType)

      Indicates whether an AWS resource or AWS Config rule is compliant.

      A resource is compliant if it complies with all of the AWS Config rules that evaluate it, and it is noncompliant if it does not comply with one or more of these rules.

      A rule is compliant if all of the resources that the rule evaluates comply with it, and it is noncompliant if any of these resources do not comply.

      AWS Config returns the INSUFFICIENT_DATA value when no evaluation results are available for the AWS resource or Config rule.

      For the Compliance data type, AWS Config supports only COMPLIANT, NON_COMPLIANT, and INSUFFICIENT_DATA values. AWS Config does not support the NOT_APPLICABLE value for the Compliance data type.

      Parameters:
      complianceType - Indicates whether an AWS resource or AWS Config rule is compliant.

      A resource is compliant if it complies with all of the AWS Config rules that evaluate it, and it is noncompliant if it does not comply with one or more of these rules.

      A rule is compliant if all of the resources that the rule evaluates comply with it, and it is noncompliant if any of these resources do not comply.

      AWS Config returns the INSUFFICIENT_DATA value when no evaluation results are available for the AWS resource or Config rule.

      For the Compliance data type, AWS Config supports only COMPLIANT, NON_COMPLIANT, and INSUFFICIENT_DATA values. AWS Config does not support the NOT_APPLICABLE value for the Compliance data type.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setComplianceContributorCount

      public void setComplianceContributorCount(ComplianceContributorCount complianceContributorCount)

      The number of AWS resources or AWS Config rules that cause a result of NON_COMPLIANT, up to a maximum number.

      Parameters:
      complianceContributorCount - The number of AWS resources or AWS Config rules that cause a result of NON_COMPLIANT, up to a maximum number.
    • getComplianceContributorCount

      public ComplianceContributorCount getComplianceContributorCount()

      The number of AWS resources or AWS Config rules that cause a result of NON_COMPLIANT, up to a maximum number.

      Returns:
      The number of AWS resources or AWS Config rules that cause a result of NON_COMPLIANT, up to a maximum number.
    • withComplianceContributorCount

      public Compliance withComplianceContributorCount(ComplianceContributorCount complianceContributorCount)

      The number of AWS resources or AWS Config rules that cause a result of NON_COMPLIANT, up to a maximum number.

      Parameters:
      complianceContributorCount - The number of AWS resources or AWS Config rules that cause a result of NON_COMPLIANT, up to a maximum number.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • toString

      public String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public Compliance clone()
      Overrides:
      clone in class Object