Class: AWSCDK::QuickSight::CfnDashboard::TimeRangeFilterValueProperty

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



30691
30692
30693
30694
30695
30696
30697
30698
# File 'quick_sight/cfn_dashboard.rb', line 30691

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::CfnDashboard::RollingDateConfigurationProperty.new(**rolling_date.transform_keys(&:to_sym)) : rolling_date
  Jsii::Type.check_type(@rolling_date, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5Sb2xsaW5nRGF0ZUNvbmZpZ3VyYXRpb25Qcm9wZXJ0eSJ9XX19")), "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.



30704
30705
30706
# File 'quick_sight/cfn_dashboard.rb', line 30704

def parameter
  @parameter
end

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

The rolling date input value.



30709
30710
30711
# File 'quick_sight/cfn_dashboard.rb', line 30709

def rolling_date
  @rolling_date
end

#static_valueString? (readonly)

The static input value.



30714
30715
30716
# File 'quick_sight/cfn_dashboard.rb', line 30714

def static_value
  @static_value
end

Class Method Details

.jsii_propertiesObject



30716
30717
30718
30719
30720
30721
30722
# File 'quick_sight/cfn_dashboard.rb', line 30716

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

Instance Method Details

#to_jsiiObject



30724
30725
30726
30727
30728
30729
30730
30731
30732
# File 'quick_sight/cfn_dashboard.rb', line 30724

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