Class: AWSCDK::QuickSight::CfnAnalysis::TimeRangeFilterValueProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
quick_sight/cfn_analysis.rb

Overview

The value of a time range filter.

This is a union type structure. For this structure to be valid, only one of the attributes can be defined.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(parameter: nil, rolling_date: nil, static_value: nil) ⇒ TimeRangeFilterValueProperty

Returns a new instance of TimeRangeFilterValueProperty.

Parameters:



29653
29654
29655
29656
29657
29658
29659
29660
# File 'quick_sight/cfn_analysis.rb', line 29653

def initialize(parameter: nil, rolling_date: nil, static_value: nil)
  @parameter = parameter
  Jsii::Type.check_type(@parameter, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "parameter") unless @parameter.nil?
  @rolling_date = rolling_date.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::RollingDateConfigurationProperty.new(**rolling_date.transform_keys(&:to_sym)) : rolling_date
  Jsii::Type.check_type(@rolling_date, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLlJvbGxpbmdEYXRlQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "rollingDate") unless @rolling_date.nil?
  @static_value = static_value
  Jsii::Type.check_type(@static_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "staticValue") unless @static_value.nil?
end

Instance Attribute Details

#parameterString? (readonly)

The parameter type input value.



29666
29667
29668
# File 'quick_sight/cfn_analysis.rb', line 29666

def parameter
  @parameter
end

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

The rolling date input value.



29671
29672
29673
# File 'quick_sight/cfn_analysis.rb', line 29671

def rolling_date
  @rolling_date
end

#static_valueString? (readonly)

The static input value.



29676
29677
29678
# File 'quick_sight/cfn_analysis.rb', line 29676

def static_value
  @static_value
end

Class Method Details

.jsii_propertiesObject



29678
29679
29680
29681
29682
29683
29684
# File 'quick_sight/cfn_analysis.rb', line 29678

def self.jsii_properties
  {
    :parameter => "parameter",
    :rolling_date => "rollingDate",
    :static_value => "staticValue",
  }
end

Instance Method Details

#to_jsiiObject



29686
29687
29688
29689
29690
29691
29692
29693
29694
# File 'quick_sight/cfn_analysis.rb', line 29686

def to_jsii
  result = {}
  result.merge!({
    "parameter" => @parameter,
    "rollingDate" => @rolling_date,
    "staticValue" => @static_value,
  })
  result.compact
end