Class: AWSCDK::SecurityHub::CfnAutomationRuleV2::DateRangeProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SecurityHub::CfnAutomationRuleV2::DateRangeProperty
- Defined in:
- security_hub/cfn_automation_rule_v2.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.
925 926 927 928 929 930 |
# File 'security_hub/cfn_automation_rule_v2.rb', line 925 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.
936 937 938 |
# File 'security_hub/cfn_automation_rule_v2.rb', line 936 def unit @unit end |
#value ⇒ Numeric (readonly)
A date range value for the date filter.
941 942 943 |
# File 'security_hub/cfn_automation_rule_v2.rb', line 941 def value @value end |
Class Method Details
.jsii_properties ⇒ Object
943 944 945 946 947 948 |
# File 'security_hub/cfn_automation_rule_v2.rb', line 943 def self.jsii_properties { :unit => "unit", :value => "value", } end |
Instance Method Details
#to_jsii ⇒ Object
950 951 952 953 954 955 956 957 |
# File 'security_hub/cfn_automation_rule_v2.rb', line 950 def to_jsii result = {} result.merge!({ "unit" => @unit, "value" => @value, }) result.compact end |