Class: AWSCDK::SecurityHub::CfnInsight::DateFilterProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
security_hub/cfn_insight.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:

  • date_range (AWSCDK::IResolvable, AWSCDK::SecurityHub::CfnInsight::DateRangeProperty, nil) (defaults to: nil)

    A date range for the date filter.

  • _end (String, nil) (defaults to: nil)

    A timestamp that provides the end date for the date filter.

  • start (String, nil) (defaults to: nil)

    A timestamp that provides the start date for the date filter.



1731
1732
1733
1734
1735
1736
1737
1738
# File 'security_hub/cfn_insight.rb', line 1731

def initialize(date_range: nil, _end: nil, start: nil)
  @date_range = date_range.is_a?(Hash) ? ::AWSCDK::SecurityHub::CfnInsight::DateRangeProperty.new(**date_range.transform_keys(&:to_sym)) : date_range
  Jsii::Type.check_type(@date_range, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zZWN1cml0eWh1Yi5DZm5JbnNpZ2h0LkRhdGVSYW5nZVByb3BlcnR5In1dfX0=")), "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 .



1751
1752
1753
# File 'security_hub/cfn_insight.rb', line 1751

def _end
  @_end
end

#date_rangeAWSCDK::IResolvable, ... (readonly)

A date range for the date filter.



1744
1745
1746
# File 'security_hub/cfn_insight.rb', line 1744

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 .



1758
1759
1760
# File 'security_hub/cfn_insight.rb', line 1758

def start
  @start
end

Class Method Details

.jsii_propertiesObject



1760
1761
1762
1763
1764
1765
1766
# File 'security_hub/cfn_insight.rb', line 1760

def self.jsii_properties
  {
    :date_range => "dateRange",
    :_end => "end",
    :start => "start",
  }
end

Instance Method Details

#to_jsiiObject



1768
1769
1770
1771
1772
1773
1774
1775
1776
# File 'security_hub/cfn_insight.rb', line 1768

def to_jsii
  result = {}
  result.merge!({
    "dateRange" => @date_range,
    "end" => @_end,
    "start" => @start,
  })
  result.compact
end