Class: AWSCDK::SecurityHub::CfnAutomationRule::NumberFilterProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
security_hub/cfn_automation_rule.rb

Overview

A number filter for querying findings.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(eq: nil, gte: nil, lte: nil) ⇒ NumberFilterProperty

Returns a new instance of NumberFilterProperty.

Parameters:

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

    The equal-to condition to be applied to a single field when querying for findings.

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

    The greater-than-equal condition to be applied to a single field when querying for findings.

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

    The less-than-equal condition to be applied to a single field when querying for findings.



1484
1485
1486
1487
1488
1489
1490
1491
# File 'security_hub/cfn_automation_rule.rb', line 1484

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

Instance Attribute Details

#eqNumeric? (readonly)

The equal-to condition to be applied to a single field when querying for findings.



1497
1498
1499
# File 'security_hub/cfn_automation_rule.rb', line 1497

def eq
  @eq
end

#gteNumeric? (readonly)

The greater-than-equal condition to be applied to a single field when querying for findings.



1502
1503
1504
# File 'security_hub/cfn_automation_rule.rb', line 1502

def gte
  @gte
end

#lteNumeric? (readonly)

The less-than-equal condition to be applied to a single field when querying for findings.



1507
1508
1509
# File 'security_hub/cfn_automation_rule.rb', line 1507

def lte
  @lte
end

Class Method Details

.jsii_propertiesObject



1509
1510
1511
1512
1513
1514
1515
# File 'security_hub/cfn_automation_rule.rb', line 1509

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

Instance Method Details

#to_jsiiObject



1517
1518
1519
1520
1521
1522
1523
1524
1525
# File 'security_hub/cfn_automation_rule.rb', line 1517

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