Class: AWSCDK::QuickSight::CfnAnalysis::KPIConditionalFormattingOptionProperty

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

Overview

The conditional formatting options of a KPI visual.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(actual_value: nil, comparison_value: nil, primary_value: nil, progress_bar: nil) ⇒ KPIConditionalFormattingOptionProperty

Returns a new instance of KPIConditionalFormattingOptionProperty.

Parameters:



16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
# File 'quick_sight/cfn_analysis.rb', line 16465

def initialize(actual_value: nil, comparison_value: nil, primary_value: nil, progress_bar: nil)
  @actual_value = actual_value.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::KPIActualValueConditionalFormattingProperty.new(**actual_value.transform_keys(&:to_sym)) : actual_value
  Jsii::Type.check_type(@actual_value, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLktQSUFjdHVhbFZhbHVlQ29uZGl0aW9uYWxGb3JtYXR0aW5nUHJvcGVydHkifV19fQ==")), "actualValue") unless @actual_value.nil?
  @comparison_value = comparison_value.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::KPIComparisonValueConditionalFormattingProperty.new(**comparison_value.transform_keys(&:to_sym)) : comparison_value
  Jsii::Type.check_type(@comparison_value, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLktQSUNvbXBhcmlzb25WYWx1ZUNvbmRpdGlvbmFsRm9ybWF0dGluZ1Byb3BlcnR5In1dfX0=")), "comparisonValue") unless @comparison_value.nil?
  @primary_value = primary_value.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::KPIPrimaryValueConditionalFormattingProperty.new(**primary_value.transform_keys(&:to_sym)) : primary_value
  Jsii::Type.check_type(@primary_value, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLktQSVByaW1hcnlWYWx1ZUNvbmRpdGlvbmFsRm9ybWF0dGluZ1Byb3BlcnR5In1dfX0=")), "primaryValue") unless @primary_value.nil?
  @progress_bar = progress_bar.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::KPIProgressBarConditionalFormattingProperty.new(**progress_bar.transform_keys(&:to_sym)) : progress_bar
  Jsii::Type.check_type(@progress_bar, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLktQSVByb2dyZXNzQmFyQ29uZGl0aW9uYWxGb3JtYXR0aW5nUHJvcGVydHkifV19fQ==")), "progressBar") unless @progress_bar.nil?
end

Instance Attribute Details

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

The conditional formatting for the actual value of a KPI visual.



16480
16481
16482
# File 'quick_sight/cfn_analysis.rb', line 16480

def actual_value
  @actual_value
end

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

The conditional formatting for the comparison value of a KPI visual.



16485
16486
16487
# File 'quick_sight/cfn_analysis.rb', line 16485

def comparison_value
  @comparison_value
end

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

The conditional formatting for the primary value of a KPI visual.



16490
16491
16492
# File 'quick_sight/cfn_analysis.rb', line 16490

def primary_value
  @primary_value
end

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

The conditional formatting for the progress bar of a KPI visual.



16495
16496
16497
# File 'quick_sight/cfn_analysis.rb', line 16495

def progress_bar
  @progress_bar
end

Class Method Details

.jsii_propertiesObject



16497
16498
16499
16500
16501
16502
16503
16504
# File 'quick_sight/cfn_analysis.rb', line 16497

def self.jsii_properties
  {
    :actual_value => "actualValue",
    :comparison_value => "comparisonValue",
    :primary_value => "primaryValue",
    :progress_bar => "progressBar",
  }
end

Instance Method Details

#to_jsiiObject



16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
# File 'quick_sight/cfn_analysis.rb', line 16506

def to_jsii
  result = {}
  result.merge!({
    "actualValue" => @actual_value,
    "comparisonValue" => @comparison_value,
    "primaryValue" => @primary_value,
    "progressBar" => @progress_bar,
  })
  result.compact
end