Class: AWSCDK::AccessAnalyzer::CfnAnalyzer::AnalysisRuleProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
access_analyzer/cfn_analyzer.rb

Overview

Contains information about analysis rules for the analyzer.

Analysis rules determine which entities will generate findings based on the criteria you define when you create the rule.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(exclusions: nil) ⇒ AnalysisRuleProperty

Returns a new instance of AnalysisRuleProperty.

Parameters:



627
628
629
630
# File 'access_analyzer/cfn_analyzer.rb', line 627

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

Instance Attribute Details

#exclusionsAWSCDK::IResolvable, ... (readonly)

A list of rules for the analyzer containing criteria to exclude from analysis.

Entities that meet the rule criteria will not generate findings.



638
639
640
# File 'access_analyzer/cfn_analyzer.rb', line 638

def exclusions
  @exclusions
end

Class Method Details

.jsii_propertiesObject



640
641
642
643
644
# File 'access_analyzer/cfn_analyzer.rb', line 640

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

Instance Method Details

#to_jsiiObject



646
647
648
649
650
651
652
# File 'access_analyzer/cfn_analyzer.rb', line 646

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