Class: AWSCDK::SecurityHub::CfnAutomationRule::DateRangeProperty

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

Overview

A date range for the date filter.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(unit:, value:) ⇒ DateRangeProperty

Returns a new instance of DateRangeProperty.

Parameters:

  • unit (String)

    A date range unit for the date filter.

  • value (Numeric)

    A date range value for the date filter.



1318
1319
1320
1321
1322
1323
# File 'security_hub/cfn_automation_rule.rb', line 1318

def initialize(unit:, value:)
  @unit = unit
  Jsii::Type.check_type(@unit, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "unit")
  @value = value
  Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "value")
end

Instance Attribute Details

#unitString (readonly)

A date range unit for the date filter.



1329
1330
1331
# File 'security_hub/cfn_automation_rule.rb', line 1329

def unit
  @unit
end

#valueNumeric (readonly)

A date range value for the date filter.



1334
1335
1336
# File 'security_hub/cfn_automation_rule.rb', line 1334

def value
  @value
end

Class Method Details

.jsii_propertiesObject



1336
1337
1338
1339
1340
1341
# File 'security_hub/cfn_automation_rule.rb', line 1336

def self.jsii_properties
  {
    :unit => "unit",
    :value => "value",
  }
end

Instance Method Details

#to_jsiiObject



1343
1344
1345
1346
1347
1348
1349
1350
# File 'security_hub/cfn_automation_rule.rb', line 1343

def to_jsii
  result = {}
  result.merge!({
    "unit" => @unit,
    "value" => @value,
  })
  result.compact
end