Class: AWSCDK::SecurityHub::CfnAutomationRuleV2::DateFilterProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::SecurityHub::CfnAutomationRuleV2::DateFilterProperty
- Defined in:
- security_hub/cfn_automation_rule_v2.rb
Overview
A date filter for querying findings.
Instance Attribute Summary collapse
-
#_end ⇒ String?
readonly
A timestamp that provides the end date for the date filter.
-
#date_range ⇒ AWSCDK::IResolvable, ...
readonly
A date range for the date filter.
-
#start ⇒ String?
readonly
A timestamp that provides the start date for the date filter.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(date_range: nil, _end: nil, start: nil) ⇒ DateFilterProperty
constructor
A new instance of DateFilterProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(date_range: nil, _end: nil, start: nil) ⇒ DateFilterProperty
Returns a new instance of DateFilterProperty.
869 870 871 872 873 874 875 876 |
# File 'security_hub/cfn_automation_rule_v2.rb', line 869 def initialize(date_range: nil, _end: nil, start: nil) @date_range = date_range.is_a?(Hash) ? ::AWSCDK::SecurityHub::CfnAutomationRuleV2::DateRangeProperty.new(**date_range.transform_keys(&:to_sym)) : date_range Jsii::Type.check_type(@date_range, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zZWN1cml0eWh1Yi5DZm5BdXRvbWF0aW9uUnVsZVYyLkRhdGVSYW5nZVByb3BlcnR5In1dfX0=")), "dateRange") unless @date_range.nil? @_end = _end Jsii::Type.check_type(@_end, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "end") unless @_end.nil? @start = start Jsii::Type.check_type(@start, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "start") unless @start.nil? end |
Instance Attribute Details
#_end ⇒ String? (readonly)
A timestamp that provides the end date for the date filter.
For more information about the validation and formatting of timestamp fields in AWS Security Hub CSPM , see Timestamps .
889 890 891 |
# File 'security_hub/cfn_automation_rule_v2.rb', line 889 def _end @_end end |
#date_range ⇒ AWSCDK::IResolvable, ... (readonly)
A date range for the date filter.
882 883 884 |
# File 'security_hub/cfn_automation_rule_v2.rb', line 882 def date_range @date_range end |
#start ⇒ String? (readonly)
A timestamp that provides the start date for the date filter.
For more information about the validation and formatting of timestamp fields in AWS Security Hub CSPM , see Timestamps .
896 897 898 |
# File 'security_hub/cfn_automation_rule_v2.rb', line 896 def start @start end |
Class Method Details
.jsii_properties ⇒ Object
898 899 900 901 902 903 904 |
# File 'security_hub/cfn_automation_rule_v2.rb', line 898 def self.jsii_properties { :date_range => "dateRange", :_end => "end", :start => "start", } end |
Instance Method Details
#to_jsii ⇒ Object
906 907 908 909 910 911 912 913 914 |
# File 'security_hub/cfn_automation_rule_v2.rb', line 906 def to_jsii result = {} result.merge!({ "dateRange" => @date_range, "end" => @_end, "start" => @start, }) result.compact end |