Class: AWSCDK::GuardDuty::CfnFilter::ConditionProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
guard_duty/cfn_filter.rb

Overview

Specifies the condition to apply to a single field when filtering through GuardDuty findings.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(eq: nil, equal_to: nil, greater_than: nil, greater_than_or_equal: nil, gt: nil, gte: nil, less_than: nil, less_than_or_equal: nil, lt: nil, lte: nil, neq: nil, not_equals: nil) ⇒ ConditionProperty

Returns a new instance of ConditionProperty.

Parameters:

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

    Represents the equal condition to apply to a single field when querying for findings.

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

    Represents an equal ** condition to be applied to a single field when querying for findings.

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

    Represents a greater than condition to be applied to a single field when querying for findings.

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

    Represents a greater than or equal condition to be applied to a single field when querying for findings.

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

    Represents a greater than condition to be applied to a single field when querying for findings.

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

    Represents the greater than or equal condition to apply to a single field when querying for findings.

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

    Represents a less than condition to be applied to a single field when querying for findings.

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

    Represents a less than or equal condition to be applied to a single field when querying for findings.

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

    Represents the less than condition to apply to a single field when querying for findings.

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

    Represents the less than or equal condition to apply to a single field when querying for findings.

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

    Represents the not equal condition to apply to a single field when querying for findings.

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

    Represents a not equal ** condition to be applied to a single field when querying for findings.



592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
# File 'guard_duty/cfn_filter.rb', line 592

def initialize(eq: nil, equal_to: nil, greater_than: nil, greater_than_or_equal: nil, gt: nil, gte: nil, less_than: nil, less_than_or_equal: nil, lt: nil, lte: nil, neq: nil, not_equals: nil)
  @eq = eq
  Jsii::Type.check_type(@eq, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "eq") unless @eq.nil?
  @equal_to = equal_to
  Jsii::Type.check_type(@equal_to, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "equalTo") unless @equal_to.nil?
  @greater_than = greater_than
  Jsii::Type.check_type(@greater_than, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "greaterThan") unless @greater_than.nil?
  @greater_than_or_equal = greater_than_or_equal
  Jsii::Type.check_type(@greater_than_or_equal, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "greaterThanOrEqual") unless @greater_than_or_equal.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?
  @less_than = less_than
  Jsii::Type.check_type(@less_than, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "lessThan") unless @less_than.nil?
  @less_than_or_equal = less_than_or_equal
  Jsii::Type.check_type(@less_than_or_equal, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "lessThanOrEqual") unless @less_than_or_equal.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?
  @not_equals = not_equals
  Jsii::Type.check_type(@not_equals, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "notEquals") unless @not_equals.nil?
end

Instance Attribute Details

#eqArray<String>? (readonly)

Represents the equal condition to apply to a single field when querying for findings.



623
624
625
# File 'guard_duty/cfn_filter.rb', line 623

def eq
  @eq
end

#equal_toArray<String>? (readonly)

Represents an equal ** condition to be applied to a single field when querying for findings.



628
629
630
# File 'guard_duty/cfn_filter.rb', line 628

def equal_to
  @equal_to
end

#greater_thanNumeric? (readonly)

Represents a greater than condition to be applied to a single field when querying for findings.



633
634
635
# File 'guard_duty/cfn_filter.rb', line 633

def greater_than
  @greater_than
end

#greater_than_or_equalNumeric? (readonly)

Represents a greater than or equal condition to be applied to a single field when querying for findings.



638
639
640
# File 'guard_duty/cfn_filter.rb', line 638

def greater_than_or_equal
  @greater_than_or_equal
end

#gtNumeric? (readonly)

Represents a greater than condition to be applied to a single field when querying for findings.



643
644
645
# File 'guard_duty/cfn_filter.rb', line 643

def gt
  @gt
end

#gteNumeric? (readonly)

Represents the greater than or equal condition to apply to a single field when querying for findings.



648
649
650
# File 'guard_duty/cfn_filter.rb', line 648

def gte
  @gte
end

#less_thanNumeric? (readonly)

Represents a less than condition to be applied to a single field when querying for findings.



653
654
655
# File 'guard_duty/cfn_filter.rb', line 653

def less_than
  @less_than
end

#less_than_or_equalNumeric? (readonly)

Represents a less than or equal condition to be applied to a single field when querying for findings.



658
659
660
# File 'guard_duty/cfn_filter.rb', line 658

def less_than_or_equal
  @less_than_or_equal
end

#ltNumeric? (readonly)

Represents the less than condition to apply to a single field when querying for findings.



663
664
665
# File 'guard_duty/cfn_filter.rb', line 663

def lt
  @lt
end

#lteNumeric? (readonly)

Represents the less than or equal condition to apply to a single field when querying for findings.



668
669
670
# File 'guard_duty/cfn_filter.rb', line 668

def lte
  @lte
end

#neqArray<String>? (readonly)

Represents the not equal condition to apply to a single field when querying for findings.



673
674
675
# File 'guard_duty/cfn_filter.rb', line 673

def neq
  @neq
end

#not_equalsArray<String>? (readonly)

Represents a not equal ** condition to be applied to a single field when querying for findings.



678
679
680
# File 'guard_duty/cfn_filter.rb', line 678

def not_equals
  @not_equals
end

Class Method Details

.jsii_propertiesObject



680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
# File 'guard_duty/cfn_filter.rb', line 680

def self.jsii_properties
  {
    :eq => "eq",
    :equal_to => "equalTo",
    :greater_than => "greaterThan",
    :greater_than_or_equal => "greaterThanOrEqual",
    :gt => "gt",
    :gte => "gte",
    :less_than => "lessThan",
    :less_than_or_equal => "lessThanOrEqual",
    :lt => "lt",
    :lte => "lte",
    :neq => "neq",
    :not_equals => "notEquals",
  }
end

Instance Method Details

#to_jsiiObject



697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
# File 'guard_duty/cfn_filter.rb', line 697

def to_jsii
  result = {}
  result.merge!({
    "eq" => @eq,
    "equalTo" => @equal_to,
    "greaterThan" => @greater_than,
    "greaterThanOrEqual" => @greater_than_or_equal,
    "gt" => @gt,
    "gte" => @gte,
    "lessThan" => @less_than,
    "lessThanOrEqual" => @less_than_or_equal,
    "lt" => @lt,
    "lte" => @lte,
    "neq" => @neq,
    "notEquals" => @not_equals,
  })
  result.compact
end