Class: AWSCDK::Macie::CfnFindingsFilter::CriterionAdditionalPropertiesProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
macie/cfn_findings_filter.rb

Overview

Specifies a condition that defines the property, operator, and one or more values to use in a findings filter.

A findings filter , also referred to as a filter rule , is a set of custom criteria that specifies which findings to include or exclude from the results of a query for findings. You can also configure a findings filter to suppress (automatically archive) findings that match the filter's criteria. For more information, see Filtering Macie findings in the Amazon Macie User Guide .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(eq: nil, gt: nil, gte: nil, lt: nil, lte: nil, neq: nil) ⇒ CriterionAdditionalPropertiesProperty

Returns a new instance of CriterionAdditionalPropertiesProperty.

Parameters:

  • eq (Array<String>, nil) (defaults to: nil)

    The value for the specified property matches (equals) the specified value.

  • gt (Numeric, nil) (defaults to: nil)

    The value for the specified property is greater than the specified value.

  • gte (Numeric, nil) (defaults to: nil)

    The value for the specified property is greater than or equal to the specified value.

  • lt (Numeric, nil) (defaults to: nil)

    The value for the specified property is less than the specified value.

  • lte (Numeric, nil) (defaults to: nil)

    The value for the specified property is less than or equal to the specified value.

  • neq (Array<String>, nil) (defaults to: nil)

    The value for the specified property doesn't match (doesn't equal) the specified value.



614
615
616
617
618
619
620
621
622
623
624
625
626
627
# File 'macie/cfn_findings_filter.rb', line 614

def initialize(eq: nil, gt: nil, gte: nil, lt: nil, lte: nil, neq: nil)
  @eq = eq
  Jsii::Type.check_type(@eq, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "eq") unless @eq.nil?
  @gt = gt
  Jsii::Type.check_type(@gt, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "gt") unless @gt.nil?
  @gte = gte
  Jsii::Type.check_type(@gte, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "gte") unless @gte.nil?
  @lt = lt
  Jsii::Type.check_type(@lt, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "lt") unless @lt.nil?
  @lte = lte
  Jsii::Type.check_type(@lte, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "lte") unless @lte.nil?
  @neq = neq
  Jsii::Type.check_type(@neq, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "neq") unless @neq.nil?
end

Instance Attribute Details

#eqArray<String>? (readonly)

The value for the specified property matches (equals) the specified value.

If you specify multiple values, Amazon Macie uses OR logic to join the values.



635
636
637
# File 'macie/cfn_findings_filter.rb', line 635

def eq
  @eq
end

#gtNumeric? (readonly)

The value for the specified property is greater than the specified value.



640
641
642
# File 'macie/cfn_findings_filter.rb', line 640

def gt
  @gt
end

#gteNumeric? (readonly)

The value for the specified property is greater than or equal to the specified value.



645
646
647
# File 'macie/cfn_findings_filter.rb', line 645

def gte
  @gte
end

#ltNumeric? (readonly)

The value for the specified property is less than the specified value.



650
651
652
# File 'macie/cfn_findings_filter.rb', line 650

def lt
  @lt
end

#lteNumeric? (readonly)

The value for the specified property is less than or equal to the specified value.



655
656
657
# File 'macie/cfn_findings_filter.rb', line 655

def lte
  @lte
end

#neqArray<String>? (readonly)

The value for the specified property doesn't match (doesn't equal) the specified value.

If you specify multiple values, Amazon Macie uses OR logic to join the values.



662
663
664
# File 'macie/cfn_findings_filter.rb', line 662

def neq
  @neq
end

Class Method Details

.jsii_propertiesObject



664
665
666
667
668
669
670
671
672
673
# File 'macie/cfn_findings_filter.rb', line 664

def self.jsii_properties
  {
    :eq => "eq",
    :gt => "gt",
    :gte => "gte",
    :lt => "lt",
    :lte => "lte",
    :neq => "neq",
  }
end

Instance Method Details

#to_jsiiObject



675
676
677
678
679
680
681
682
683
684
685
686
# File 'macie/cfn_findings_filter.rb', line 675

def to_jsii
  result = {}
  result.merge!({
    "eq" => @eq,
    "gt" => @gt,
    "gte" => @gte,
    "lt" => @lt,
    "lte" => @lte,
    "neq" => @neq,
  })
  result.compact
end