Class: AWSCDK::SecurityHub::CfnAutomationRuleV2::DateRangeProperty

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



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

#unitString (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

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



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_jsiiObject



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