Class: AWSCDK::QuickSight::CfnTemplate::KPIConditionalFormattingOptionProperty

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



14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
# File 'quick_sight/cfn_template.rb', line 14872

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

Instance Attribute Details

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

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



14887
14888
14889
# File 'quick_sight/cfn_template.rb', line 14887

def actual_value
  @actual_value
end

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

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



14892
14893
14894
# File 'quick_sight/cfn_template.rb', line 14892

def comparison_value
  @comparison_value
end

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

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



14897
14898
14899
# File 'quick_sight/cfn_template.rb', line 14897

def primary_value
  @primary_value
end

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

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



14902
14903
14904
# File 'quick_sight/cfn_template.rb', line 14902

def progress_bar
  @progress_bar
end

Class Method Details

.jsii_propertiesObject



14904
14905
14906
14907
14908
14909
14910
14911
# File 'quick_sight/cfn_template.rb', line 14904

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

Instance Method Details

#to_jsiiObject



14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
# File 'quick_sight/cfn_template.rb', line 14913

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