Class: AWSCDK::QuickSight::CfnAnalysis::KPIOptionsProperty

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

Overview

The options that determine the presentation of a KPI visual.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(comparison: nil, primary_value_display_type: nil, primary_value_font_configuration: nil, progress_bar: nil, secondary_value: nil, secondary_value_font_configuration: nil, sparkline: nil, trend_arrows: nil, visual_layout_options: nil) ⇒ KPIOptionsProperty

Returns a new instance of KPIOptionsProperty.

Parameters:



16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
# File 'quick_sight/cfn_analysis.rb', line 16682

def initialize(comparison: nil, primary_value_display_type: nil, primary_value_font_configuration: nil, progress_bar: nil, secondary_value: nil, secondary_value_font_configuration: nil, sparkline: nil, trend_arrows: nil, visual_layout_options: nil)
  @comparison = comparison.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::ComparisonConfigurationProperty.new(**comparison.transform_keys(&:to_sym)) : comparison
  Jsii::Type.check_type(@comparison, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLkNvbXBhcmlzb25Db25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "comparison") unless @comparison.nil?
  @primary_value_display_type = primary_value_display_type
  Jsii::Type.check_type(@primary_value_display_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "primaryValueDisplayType") unless @primary_value_display_type.nil?
  @primary_value_font_configuration = primary_value_font_configuration.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::FontConfigurationProperty.new(**primary_value_font_configuration.transform_keys(&:to_sym)) : primary_value_font_configuration
  Jsii::Type.check_type(@primary_value_font_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLkZvbnRDb25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "primaryValueFontConfiguration") unless @primary_value_font_configuration.nil?
  @progress_bar = progress_bar.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::ProgressBarOptionsProperty.new(**progress_bar.transform_keys(&:to_sym)) : progress_bar
  Jsii::Type.check_type(@progress_bar, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLlByb2dyZXNzQmFyT3B0aW9uc1Byb3BlcnR5In1dfX0=")), "progressBar") unless @progress_bar.nil?
  @secondary_value = secondary_value.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::SecondaryValueOptionsProperty.new(**secondary_value.transform_keys(&:to_sym)) : secondary_value
  Jsii::Type.check_type(@secondary_value, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLlNlY29uZGFyeVZhbHVlT3B0aW9uc1Byb3BlcnR5In1dfX0=")), "secondaryValue") unless @secondary_value.nil?
  @secondary_value_font_configuration = secondary_value_font_configuration.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::FontConfigurationProperty.new(**secondary_value_font_configuration.transform_keys(&:to_sym)) : secondary_value_font_configuration
  Jsii::Type.check_type(@secondary_value_font_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLkZvbnRDb25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "secondaryValueFontConfiguration") unless @secondary_value_font_configuration.nil?
  @sparkline = sparkline.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::KPISparklineOptionsProperty.new(**sparkline.transform_keys(&:to_sym)) : sparkline
  Jsii::Type.check_type(@sparkline, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLktQSVNwYXJrbGluZU9wdGlvbnNQcm9wZXJ0eSJ9XX19")), "sparkline") unless @sparkline.nil?
  @trend_arrows = trend_arrows.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::TrendArrowOptionsProperty.new(**trend_arrows.transform_keys(&:to_sym)) : trend_arrows
  Jsii::Type.check_type(@trend_arrows, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLlRyZW5kQXJyb3dPcHRpb25zUHJvcGVydHkifV19fQ==")), "trendArrows") unless @trend_arrows.nil?
  @visual_layout_options = visual_layout_options.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::KPIVisualLayoutOptionsProperty.new(**visual_layout_options.transform_keys(&:to_sym)) : visual_layout_options
  Jsii::Type.check_type(@visual_layout_options, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLktQSVZpc3VhbExheW91dE9wdGlvbnNQcm9wZXJ0eSJ9XX19")), "visualLayoutOptions") unless @visual_layout_options.nil?
end

Instance Attribute Details

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

The comparison configuration of a KPI visual.



16707
16708
16709
# File 'quick_sight/cfn_analysis.rb', line 16707

def comparison
  @comparison
end

#primary_value_display_typeString? (readonly)

The options that determine the primary value display type.



16712
16713
16714
# File 'quick_sight/cfn_analysis.rb', line 16712

def primary_value_display_type
  @primary_value_display_type
end

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

The options that determine the primary value font configuration.



16717
16718
16719
# File 'quick_sight/cfn_analysis.rb', line 16717

def primary_value_font_configuration
  @primary_value_font_configuration
end

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

The options that determine the presentation of the progress bar of a KPI visual.



16722
16723
16724
# File 'quick_sight/cfn_analysis.rb', line 16722

def progress_bar
  @progress_bar
end

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

The options that determine the presentation of the secondary value of a KPI visual.



16727
16728
16729
# File 'quick_sight/cfn_analysis.rb', line 16727

def secondary_value
  @secondary_value
end

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

The options that determine the secondary value font configuration.



16732
16733
16734
# File 'quick_sight/cfn_analysis.rb', line 16732

def secondary_value_font_configuration
  @secondary_value_font_configuration
end

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

The options that determine the visibility, color, type, and tooltip visibility of the sparkline of a KPI visual.



16737
16738
16739
# File 'quick_sight/cfn_analysis.rb', line 16737

def sparkline
  @sparkline
end

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

The options that determine the presentation of trend arrows in a KPI visual.



16742
16743
16744
# File 'quick_sight/cfn_analysis.rb', line 16742

def trend_arrows
  @trend_arrows
end

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

The options that determine the layout a KPI visual.



16747
16748
16749
# File 'quick_sight/cfn_analysis.rb', line 16747

def visual_layout_options
  @visual_layout_options
end

Class Method Details

.jsii_propertiesObject



16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
# File 'quick_sight/cfn_analysis.rb', line 16749

def self.jsii_properties
  {
    :comparison => "comparison",
    :primary_value_display_type => "primaryValueDisplayType",
    :primary_value_font_configuration => "primaryValueFontConfiguration",
    :progress_bar => "progressBar",
    :secondary_value => "secondaryValue",
    :secondary_value_font_configuration => "secondaryValueFontConfiguration",
    :sparkline => "sparkline",
    :trend_arrows => "trendArrows",
    :visual_layout_options => "visualLayoutOptions",
  }
end

Instance Method Details

#to_jsiiObject



16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
# File 'quick_sight/cfn_analysis.rb', line 16763

def to_jsii
  result = {}
  result.merge!({
    "comparison" => @comparison,
    "primaryValueDisplayType" => @primary_value_display_type,
    "primaryValueFontConfiguration" => @primary_value_font_configuration,
    "progressBar" => @progress_bar,
    "secondaryValue" => @secondary_value,
    "secondaryValueFontConfiguration" => @secondary_value_font_configuration,
    "sparkline" => @sparkline,
    "trendArrows" => @trend_arrows,
    "visualLayoutOptions" => @visual_layout_options,
  })
  result.compact
end