Class: AWSCDK::SecurityHub::CfnAutomationRule::DateFilterProperty

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



1262
1263
1264
1265
1266
1267
1268
1269
# File 'security_hub/cfn_automation_rule.rb', line 1262

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



1282
1283
1284
# File 'security_hub/cfn_automation_rule.rb', line 1282

def _end
  @_end
end

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

A date range for the date filter.



1275
1276
1277
# File 'security_hub/cfn_automation_rule.rb', line 1275

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 .



1289
1290
1291
# File 'security_hub/cfn_automation_rule.rb', line 1289

def start
  @start
end

Class Method Details

.jsii_propertiesObject



1291
1292
1293
1294
1295
1296
1297
# File 'security_hub/cfn_automation_rule.rb', line 1291

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

Instance Method Details

#to_jsiiObject



1299
1300
1301
1302
1303
1304
1305
1306
1307
# File 'security_hub/cfn_automation_rule.rb', line 1299

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