Class: AWSCDK::SecurityHub::CfnAutomationRuleV2::DateFilterProperty

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

Overview

A date filter for querying findings.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(date_range: nil, _end: nil, start: nil) ⇒ DateFilterProperty

Returns a new instance of DateFilterProperty.

Parameters:



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

#_endString? (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_rangeAWSCDK::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

#startString? (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_propertiesObject



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_jsiiObject



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