Class: AWSCDK::Inspectorv2::CfnFilter::DateFilterProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
inspectorv2/cfn_filter.rb

Overview

Contains details on the time range used to filter findings.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(end_inclusive: nil, start_inclusive: nil) ⇒ DateFilterProperty

Returns a new instance of DateFilterProperty.

Parameters:

  • end_inclusive (Numeric, nil) (defaults to: nil)

    A timestamp representing the end of the time period filtered on.

  • start_inclusive (Numeric, nil) (defaults to: nil)

    A timestamp representing the start of the time period filtered on.



570
571
572
573
574
575
# File 'inspectorv2/cfn_filter.rb', line 570

def initialize(end_inclusive: nil, start_inclusive: nil)
  @end_inclusive = end_inclusive
  Jsii::Type.check_type(@end_inclusive, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "endInclusive") unless @end_inclusive.nil?
  @start_inclusive = start_inclusive
  Jsii::Type.check_type(@start_inclusive, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "startInclusive") unless @start_inclusive.nil?
end

Instance Attribute Details

#end_inclusiveNumeric? (readonly)

A timestamp representing the end of the time period filtered on.



581
582
583
# File 'inspectorv2/cfn_filter.rb', line 581

def end_inclusive
  @end_inclusive
end

#start_inclusiveNumeric? (readonly)

A timestamp representing the start of the time period filtered on.



586
587
588
# File 'inspectorv2/cfn_filter.rb', line 586

def start_inclusive
  @start_inclusive
end

Class Method Details

.jsii_propertiesObject



588
589
590
591
592
593
# File 'inspectorv2/cfn_filter.rb', line 588

def self.jsii_properties
  {
    :end_inclusive => "endInclusive",
    :start_inclusive => "startInclusive",
  }
end

Instance Method Details

#to_jsiiObject



595
596
597
598
599
600
601
602
# File 'inspectorv2/cfn_filter.rb', line 595

def to_jsii
  result = {}
  result.merge!({
    "endInclusive" => @end_inclusive,
    "startInclusive" => @start_inclusive,
  })
  result.compact
end