Class: AWSCDK::QuickSight::CfnDashboard::ConditionalFormattingSolidColorProperty

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

Overview

Formatting configuration for solid color.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(expression:, color: nil) ⇒ ConditionalFormattingSolidColorProperty

Returns a new instance of ConditionalFormattingSolidColorProperty.

Parameters:

  • expression (String)

    The expression that determines the formatting configuration for solid color.

  • color (String, nil) (defaults to: nil)

    Determines the color.



5150
5151
5152
5153
5154
5155
# File 'quick_sight/cfn_dashboard.rb', line 5150

def initialize(expression:, color: nil)
  @expression = expression
  Jsii::Type.check_type(@expression, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "expression")
  @color = color
  Jsii::Type.check_type(@color, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "color") unless @color.nil?
end

Instance Attribute Details

#colorString? (readonly)

Determines the color.



5166
5167
5168
# File 'quick_sight/cfn_dashboard.rb', line 5166

def color
  @color
end

#expressionString (readonly)

The expression that determines the formatting configuration for solid color.



5161
5162
5163
# File 'quick_sight/cfn_dashboard.rb', line 5161

def expression
  @expression
end

Class Method Details

.jsii_propertiesObject



5168
5169
5170
5171
5172
5173
# File 'quick_sight/cfn_dashboard.rb', line 5168

def self.jsii_properties
  {
    :expression => "expression",
    :color => "color",
  }
end

Instance Method Details

#to_jsiiObject



5175
5176
5177
5178
5179
5180
5181
5182
# File 'quick_sight/cfn_dashboard.rb', line 5175

def to_jsii
  result = {}
  result.merge!({
    "expression" => @expression,
    "color" => @color,
  })
  result.compact
end