Class: AWSCDK::QuickSight::CfnDashboard::GeospatialSolidColorProperty

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

Overview

The definition for a solid color.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(color:, state: nil) ⇒ GeospatialSolidColorProperty

Returns a new instance of GeospatialSolidColorProperty.

Parameters:

  • color (String)

    The color and opacity values for the color.

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

    Enables and disables the view state of the color.



15207
15208
15209
15210
15211
15212
# File 'quick_sight/cfn_dashboard.rb', line 15207

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

Instance Attribute Details

#colorString (readonly)

The color and opacity values for the color.



15218
15219
15220
# File 'quick_sight/cfn_dashboard.rb', line 15218

def color
  @color
end

#stateString? (readonly)

Enables and disables the view state of the color.



15223
15224
15225
# File 'quick_sight/cfn_dashboard.rb', line 15223

def state
  @state
end

Class Method Details

.jsii_propertiesObject



15225
15226
15227
15228
15229
15230
# File 'quick_sight/cfn_dashboard.rb', line 15225

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

Instance Method Details

#to_jsiiObject



15232
15233
15234
15235
15236
15237
15238
15239
# File 'quick_sight/cfn_dashboard.rb', line 15232

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