Class: AWSCDK::AccessAnalyzer::CfnAnalyzer::FilterProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AccessAnalyzer::CfnAnalyzer::FilterProperty
- Defined in:
- access_analyzer/cfn_analyzer.rb
Overview
The criteria that defines the archive rule.
To learn about filter keys that you can use to create an archive rule, see filter keys in the User Guide .
Instance Attribute Summary collapse
-
#contains ⇒ Array<String>?
readonly
A "contains" condition to match for the rule.
-
#eq ⇒ Array<String>?
readonly
An "equals" condition to match for the rule.
-
#exists ⇒ Boolean, ...
readonly
An "exists" condition to match for the rule.
-
#neq ⇒ Array<String>?
readonly
A "not equal" condition to match for the rule.
-
#property ⇒ String
readonly
The property used to define the criteria in the filter for the rule.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(property:, contains: nil, eq: nil, exists: nil, neq: nil) ⇒ FilterProperty
constructor
A new instance of FilterProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(property:, contains: nil, eq: nil, exists: nil, neq: nil) ⇒ FilterProperty
Returns a new instance of FilterProperty.
758 759 760 761 762 763 764 765 766 767 768 769 |
# File 'access_analyzer/cfn_analyzer.rb', line 758 def initialize(property:, contains: nil, eq: nil, exists: nil, neq: nil) @property = property Jsii::Type.check_type(@property, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "property") @contains = contains Jsii::Type.check_type(@contains, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "contains") unless @contains.nil? @eq = eq Jsii::Type.check_type(@eq, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "eq") unless @eq.nil? @exists = exists Jsii::Type.check_type(@exists, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "exists") unless @exists.nil? @neq = neq Jsii::Type.check_type(@neq, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "neq") unless @neq.nil? end |
Instance Attribute Details
#contains ⇒ Array<String>? (readonly)
A "contains" condition to match for the rule.
780 781 782 |
# File 'access_analyzer/cfn_analyzer.rb', line 780 def contains @contains end |
#eq ⇒ Array<String>? (readonly)
An "equals" condition to match for the rule.
785 786 787 |
# File 'access_analyzer/cfn_analyzer.rb', line 785 def eq @eq end |
#exists ⇒ Boolean, ... (readonly)
An "exists" condition to match for the rule.
790 791 792 |
# File 'access_analyzer/cfn_analyzer.rb', line 790 def exists @exists end |
#neq ⇒ Array<String>? (readonly)
A "not equal" condition to match for the rule.
795 796 797 |
# File 'access_analyzer/cfn_analyzer.rb', line 795 def neq @neq end |
#property ⇒ String (readonly)
The property used to define the criteria in the filter for the rule.
775 776 777 |
# File 'access_analyzer/cfn_analyzer.rb', line 775 def property @property end |
Class Method Details
.jsii_properties ⇒ Object
797 798 799 800 801 802 803 804 805 |
# File 'access_analyzer/cfn_analyzer.rb', line 797 def self.jsii_properties { :property => "property", :contains => "contains", :eq => "eq", :exists => "exists", :neq => "neq", } end |
Instance Method Details
#to_jsii ⇒ Object
807 808 809 810 811 812 813 814 815 816 817 |
# File 'access_analyzer/cfn_analyzer.rb', line 807 def to_jsii result = {} result.merge!({ "property" => @property, "contains" => @contains, "eq" => @eq, "exists" => @exists, "neq" => @neq, }) result.compact end |