Class: AWSCDK::Config::CfnConfigRule::ComplianceProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
config/cfn_config_rule.rb

Overview

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type: nil) ⇒ ComplianceProperty

Returns a new instance of ComplianceProperty.

Parameters:

  • type (String, nil) (defaults to: nil)

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



635
636
637
638
# File 'config/cfn_config_rule.rb', line 635

def initialize(type: nil)
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") unless @type.nil?
end

Instance Attribute Details

#typeString? (readonly)

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. A resource 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. A rule 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 AWS 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.



652
653
654
# File 'config/cfn_config_rule.rb', line 652

def type
  @type
end

Class Method Details

.jsii_propertiesObject



654
655
656
657
658
# File 'config/cfn_config_rule.rb', line 654

def self.jsii_properties
  {
    :type => "type",
  }
end

Instance Method Details

#to_jsiiObject



660
661
662
663
664
665
666
# File 'config/cfn_config_rule.rb', line 660

def to_jsii
  result = {}
  result.merge!({
    "type" => @type,
  })
  result.compact
end