Class: AWSCDK::SecurityHub::CfnAutomationRule::DateRangeProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SecurityHub::CfnAutomationRule::DateRangeProperty
- Defined in:
- security_hub/cfn_automation_rule.rb
Overview
A date range for the date filter.
Instance Attribute Summary collapse
-
#unit ⇒ String
readonly
A date range unit for the date filter.
-
#value ⇒ Numeric
readonly
A date range value for the date filter.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(unit:, value:) ⇒ DateRangeProperty
constructor
A new instance of DateRangeProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(unit:, value:) ⇒ DateRangeProperty
Returns a new instance of DateRangeProperty.
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
#unit ⇒ String (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 |
#value ⇒ Numeric (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_properties ⇒ Object
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_jsii ⇒ Object
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 |