Class: AWSCDK::QuickSight::CfnDashboard::GeospatialCategoricalDataColorProperty

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

Overview

The categorical data color for a single category.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(color:, data_value:) ⇒ GeospatialCategoricalDataColorProperty

Returns a new instance of GeospatialCategoricalDataColorProperty.

Parameters:

  • color (String)

    The color and opacity values for the category data color.

  • data_value (String)

    The data value for the category data color.



13503
13504
13505
13506
13507
13508
# File 'quick_sight/cfn_dashboard.rb', line 13503

def initialize(color:, data_value:)
  @color = color
  Jsii::Type.check_type(@color, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "color")
  @data_value = data_value
  Jsii::Type.check_type(@data_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dataValue")
end

Instance Attribute Details

#colorString (readonly)

The color and opacity values for the category data color.



13514
13515
13516
# File 'quick_sight/cfn_dashboard.rb', line 13514

def color
  @color
end

#data_valueString (readonly)

The data value for the category data color.



13519
13520
13521
# File 'quick_sight/cfn_dashboard.rb', line 13519

def data_value
  @data_value
end

Class Method Details

.jsii_propertiesObject



13521
13522
13523
13524
13525
13526
# File 'quick_sight/cfn_dashboard.rb', line 13521

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

Instance Method Details

#to_jsiiObject



13528
13529
13530
13531
13532
13533
13534
13535
# File 'quick_sight/cfn_dashboard.rb', line 13528

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