Class: AWSCDK::QuickSight::CfnTemplate::ReferenceLineStyleConfigurationProperty

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



22313
22314
22315
22316
22317
22318
# File 'quick_sight/cfn_template.rb', line 22313

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.



22324
22325
22326
# File 'quick_sight/cfn_template.rb', line 22324

def color
  @color
end

#patternString? (readonly)

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

  • SOLID
  • DASHED
  • DOTTED


22333
22334
22335
# File 'quick_sight/cfn_template.rb', line 22333

def pattern
  @pattern
end

Class Method Details

.jsii_propertiesObject



22335
22336
22337
22338
22339
22340
# File 'quick_sight/cfn_template.rb', line 22335

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

Instance Method Details

#to_jsiiObject



22342
22343
22344
22345
22346
22347
22348
22349
# File 'quick_sight/cfn_template.rb', line 22342

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