Class: AWSCDK::QuickSight::CfnTemplate::DataBarsOptionsProperty

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

Overview

The options for data bars.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(field_id:, negative_color: nil, positive_color: nil) ⇒ DataBarsOptionsProperty

Returns a new instance of DataBarsOptionsProperty.

Parameters:

  • field_id (String)

    The field ID for the data bars options.

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

    The color of the negative data bar.

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

    The color of the positive data bar.



6032
6033
6034
6035
6036
6037
6038
6039
# File 'quick_sight/cfn_template.rb', line 6032

def initialize(field_id:, negative_color: nil, positive_color: nil)
  @field_id = field_id
  Jsii::Type.check_type(@field_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "fieldId")
  @negative_color = negative_color
  Jsii::Type.check_type(@negative_color, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "negativeColor") unless @negative_color.nil?
  @positive_color = positive_color
  Jsii::Type.check_type(@positive_color, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "positiveColor") unless @positive_color.nil?
end

Instance Attribute Details

#field_idString (readonly)

The field ID for the data bars options.



6045
6046
6047
# File 'quick_sight/cfn_template.rb', line 6045

def field_id
  @field_id
end

#negative_colorString? (readonly)

The color of the negative data bar.



6050
6051
6052
# File 'quick_sight/cfn_template.rb', line 6050

def negative_color
  @negative_color
end

#positive_colorString? (readonly)

The color of the positive data bar.



6055
6056
6057
# File 'quick_sight/cfn_template.rb', line 6055

def positive_color
  @positive_color
end

Class Method Details

.jsii_propertiesObject



6057
6058
6059
6060
6061
6062
6063
# File 'quick_sight/cfn_template.rb', line 6057

def self.jsii_properties
  {
    :field_id => "fieldId",
    :negative_color => "negativeColor",
    :positive_color => "positiveColor",
  }
end

Instance Method Details

#to_jsiiObject



6065
6066
6067
6068
6069
6070
6071
6072
6073
# File 'quick_sight/cfn_template.rb', line 6065

def to_jsii
  result = {}
  result.merge!({
    "fieldId" => @field_id,
    "negativeColor" => @negative_color,
    "positiveColor" => @positive_color,
  })
  result.compact
end