Class: AWSCDK::QuickSight::CfnTemplate::ReferenceLineValueLabelConfigurationProperty

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

Overview

The value label configuration of the label in a reference line.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(format_configuration: nil, relative_position: nil) ⇒ ReferenceLineValueLabelConfigurationProperty

Returns a new instance of ReferenceLineValueLabelConfigurationProperty.

Parameters:



22360
22361
22362
22363
22364
22365
# File 'quick_sight/cfn_template.rb', line 22360

def initialize(format_configuration: nil, relative_position: nil)
  @format_configuration = format_configuration.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::NumericFormatConfigurationProperty.new(**format_configuration.transform_keys(&:to_sym)) : format_configuration
  Jsii::Type.check_type(@format_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLk51bWVyaWNGb3JtYXRDb25maWd1cmF0aW9uUHJvcGVydHkifV19fQ==")), "formatConfiguration") unless @format_configuration.nil?
  @relative_position = relative_position
  Jsii::Type.check_type(@relative_position, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "relativePosition") unless @relative_position.nil?
end

Instance Attribute Details

#format_configurationAWSCDK::IResolvable, ... (readonly)

The format configuration of the value label.



22371
22372
22373
# File 'quick_sight/cfn_template.rb', line 22371

def format_configuration
  @format_configuration
end

#relative_positionString? (readonly)

The relative position of the value label. Choose one of the following options:.

  • BEFORE_CUSTOM_LABEL
  • AFTER_CUSTOM_LABEL


22379
22380
22381
# File 'quick_sight/cfn_template.rb', line 22379

def relative_position
  @relative_position
end

Class Method Details

.jsii_propertiesObject



22381
22382
22383
22384
22385
22386
# File 'quick_sight/cfn_template.rb', line 22381

def self.jsii_properties
  {
    :format_configuration => "formatConfiguration",
    :relative_position => "relativePosition",
  }
end

Instance Method Details

#to_jsiiObject



22388
22389
22390
22391
22392
22393
22394
22395
# File 'quick_sight/cfn_template.rb', line 22388

def to_jsii
  result = {}
  result.merge!({
    "formatConfiguration" => @format_configuration,
    "relativePosition" => @relative_position,
  })
  result.compact
end