Class: AWSCDK::AccessAnalyzer::CfnAnalyzer::ArchiveRuleProperty

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

Overview

Contains information about an archive rule.

Archive rules automatically archive new findings that meet the criteria you define when you create the rule.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(filter:, rule_name:) ⇒ ArchiveRuleProperty

Returns a new instance of ArchiveRuleProperty.

Parameters:



710
711
712
713
714
715
# File 'access_analyzer/cfn_analyzer.rb', line 710

def initialize(filter:, rule_name:)
  @filter = filter
  Jsii::Type.check_type(@filter, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYWNjZXNzYW5hbHl6ZXIuQ2ZuQW5hbHl6ZXIuRmlsdGVyUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "filter")
  @rule_name = rule_name
  Jsii::Type.check_type(@rule_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ruleName")
end

Instance Attribute Details

#rule_nameString (readonly)

The name of the rule to create.



726
727
728
# File 'access_analyzer/cfn_analyzer.rb', line 726

def rule_name
  @rule_name
end

Class Method Details

.jsii_propertiesObject



728
729
730
731
732
733
# File 'access_analyzer/cfn_analyzer.rb', line 728

def self.jsii_properties
  {
    :filter => "filter",
    :rule_name => "ruleName",
  }
end

Instance Method Details

#to_jsiiObject



735
736
737
738
739
740
741
742
# File 'access_analyzer/cfn_analyzer.rb', line 735

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