Class: AWSCDK::QuickSight::CfnDashboard::KPIConditionalFormattingOptionProperty

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



17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
# File 'quick_sight/cfn_dashboard.rb', line 17404

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

Instance Attribute Details

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

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



17419
17420
17421
# File 'quick_sight/cfn_dashboard.rb', line 17419

def actual_value
  @actual_value
end

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

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



17424
17425
17426
# File 'quick_sight/cfn_dashboard.rb', line 17424

def comparison_value
  @comparison_value
end

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

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



17429
17430
17431
# File 'quick_sight/cfn_dashboard.rb', line 17429

def primary_value
  @primary_value
end

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

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



17434
17435
17436
# File 'quick_sight/cfn_dashboard.rb', line 17434

def progress_bar
  @progress_bar
end

Class Method Details

.jsii_propertiesObject



17436
17437
17438
17439
17440
17441
17442
17443
# File 'quick_sight/cfn_dashboard.rb', line 17436

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

Instance Method Details

#to_jsiiObject



17445
17446
17447
17448
17449
17450
17451
17452
17453
17454
# File 'quick_sight/cfn_dashboard.rb', line 17445

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