Class: AWSCDK::QuickSight::CfnTemplate::DonutOptionsProperty

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

Overview

The options for configuring a donut chart or pie chart.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(arc_options: nil, donut_center_options: nil) ⇒ DonutOptionsProperty

Returns a new instance of DonutOptionsProperty.

Parameters:



8385
8386
8387
8388
8389
8390
# File 'quick_sight/cfn_template.rb', line 8385

def initialize(arc_options: nil, donut_center_options: nil)
  @arc_options = arc_options.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::ArcOptionsProperty.new(**arc_options.transform_keys(&:to_sym)) : arc_options
  Jsii::Type.check_type(@arc_options, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkFyY09wdGlvbnNQcm9wZXJ0eSJ9XX19")), "arcOptions") unless @arc_options.nil?
  @donut_center_options = donut_center_options.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::DonutCenterOptionsProperty.new(**donut_center_options.transform_keys(&:to_sym)) : donut_center_options
  Jsii::Type.check_type(@donut_center_options, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkRvbnV0Q2VudGVyT3B0aW9uc1Byb3BlcnR5In1dfX0=")), "donutCenterOptions") unless @donut_center_options.nil?
end

Instance Attribute Details

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

The option for define the arc of the chart shape. Valid values are as follows:.

  • WHOLE - A pie chart
  • SMALL - A small-sized donut chart
  • MEDIUM - A medium-sized donut chart
  • LARGE - A large-sized donut chart


8401
8402
8403
# File 'quick_sight/cfn_template.rb', line 8401

def arc_options
  @arc_options
end

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

The label options of the label that is displayed in the center of a donut chart.

This option isn't available for pie charts.



8408
8409
8410
# File 'quick_sight/cfn_template.rb', line 8408

def donut_center_options
  @donut_center_options
end

Class Method Details

.jsii_propertiesObject



8410
8411
8412
8413
8414
8415
# File 'quick_sight/cfn_template.rb', line 8410

def self.jsii_properties
  {
    :arc_options => "arcOptions",
    :donut_center_options => "donutCenterOptions",
  }
end

Instance Method Details

#to_jsiiObject



8417
8418
8419
8420
8421
8422
8423
8424
# File 'quick_sight/cfn_template.rb', line 8417

def to_jsii
  result = {}
  result.merge!({
    "arcOptions" => @arc_options,
    "donutCenterOptions" => @donut_center_options,
  })
  result.compact
end