Class: AWSCDK::QuickSight::CfnDashboard::DataBarsOptionsProperty

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



6635
6636
6637
6638
6639
6640
6641
6642
# File 'quick_sight/cfn_dashboard.rb', line 6635

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.



6648
6649
6650
# File 'quick_sight/cfn_dashboard.rb', line 6648

def field_id
  @field_id
end

#negative_colorString? (readonly)

The color of the negative data bar.



6653
6654
6655
# File 'quick_sight/cfn_dashboard.rb', line 6653

def negative_color
  @negative_color
end

#positive_colorString? (readonly)

The color of the positive data bar.



6658
6659
6660
# File 'quick_sight/cfn_dashboard.rb', line 6658

def positive_color
  @positive_color
end

Class Method Details

.jsii_propertiesObject



6660
6661
6662
6663
6664
6665
6666
# File 'quick_sight/cfn_dashboard.rb', line 6660

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

Instance Method Details

#to_jsiiObject



6668
6669
6670
6671
6672
6673
6674
6675
6676
# File 'quick_sight/cfn_dashboard.rb', line 6668

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