Class: AWSCDK::SecurityHub::CfnInsight::DateRangeProperty

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

Overview

A date range for the date filter.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(unit:, value:) ⇒ DateRangeProperty

Returns a new instance of DateRangeProperty.

Parameters:

  • unit (String)

    A date range unit for the date filter.

  • value (Numeric)

    A date range value for the date filter.



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

#unitString (readonly)

A date range unit for the date filter.



1798
1799
1800
# File 'security_hub/cfn_insight.rb', line 1798

def unit
  @unit
end

#valueNumeric (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_propertiesObject



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_jsiiObject



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