Class: AWSCDK::SecurityHub::CfnInsight::DateRangeProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SecurityHub::CfnInsight::DateRangeProperty
- Defined in:
- security_hub/cfn_insight.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.
1787 1788 1789 1790 1791 1792 |
# File 'security_hub/cfn_insight.rb', line 1787 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.
1798 1799 1800 |
# File 'security_hub/cfn_insight.rb', line 1798 def unit @unit end |
#value ⇒ Numeric (readonly)
A date range value for the date filter.
1803 1804 1805 |
# File 'security_hub/cfn_insight.rb', line 1803 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
1805 1806 1807 1808 1809 1810 |
# File 'security_hub/cfn_insight.rb', line 1805 def self.jsii_properties { :unit => "unit", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
1812 1813 1814 1815 1816 1817 1818 1819 |
# File 'security_hub/cfn_insight.rb', line 1812 def to_jsii result = {} result.merge!({ "unit" => @unit, "value" => @value, }) result.compact end |