Class: AWSCDK::QuickSight::CfnDashboard::ReferenceLineStyleConfigurationProperty

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

Overview

The style configuration of the reference line.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(color: nil, pattern: nil) ⇒ ReferenceLineStyleConfigurationProperty

Returns a new instance of ReferenceLineStyleConfigurationProperty.

Parameters:

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

    The hex color of the reference line.

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

    The pattern type of the line style. Choose one of the following options:.



25159
25160
25161
25162
25163
25164
# File 'quick_sight/cfn_dashboard.rb', line 25159

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

Instance Attribute Details

#colorString? (readonly)

The hex color of the reference line.



25170
25171
25172
# File 'quick_sight/cfn_dashboard.rb', line 25170

def color
  @color
end

#patternString? (readonly)

The pattern type of the line style. Choose one of the following options:.

  • SOLID
  • DASHED
  • DOTTED


25179
25180
25181
# File 'quick_sight/cfn_dashboard.rb', line 25179

def pattern
  @pattern
end

Class Method Details

.jsii_propertiesObject



25181
25182
25183
25184
25185
25186
# File 'quick_sight/cfn_dashboard.rb', line 25181

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

Instance Method Details

#to_jsiiObject



25188
25189
25190
25191
25192
25193
25194
25195
# File 'quick_sight/cfn_dashboard.rb', line 25188

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