Class: AWSCDK::QuickSight::CfnTemplate::DonutOptionsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnTemplate::DonutOptionsProperty
- Defined in:
- quick_sight/cfn_template.rb
Overview
The options for configuring a donut chart or pie chart.
Instance Attribute Summary collapse
-
#arc_options ⇒ AWSCDK::IResolvable, ...
readonly
The option for define the arc of the chart shape.
-
#donut_center_options ⇒ AWSCDK::IResolvable, ...
readonly
The label options of the label that is displayed in the center of a donut chart.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(arc_options: nil, donut_center_options: nil) ⇒ DonutOptionsProperty
constructor
A new instance of DonutOptionsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(arc_options: nil, donut_center_options: nil) ⇒ DonutOptionsProperty
Returns a new instance of DonutOptionsProperty.
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 = .is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::ArcOptionsProperty.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(@arc_options, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkFyY09wdGlvbnNQcm9wZXJ0eSJ9XX19")), "arcOptions") unless @arc_options.nil? @donut_center_options = .is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::DonutCenterOptionsProperty.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(@donut_center_options, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLkRvbnV0Q2VudGVyT3B0aW9uc1Byb3BlcnR5In1dfX0=")), "donutCenterOptions") unless @donut_center_options.nil? end |
Instance Attribute Details
#arc_options ⇒ AWSCDK::IResolvable, ... (readonly)
The option for define the arc of the chart shape. Valid values are as follows:.
WHOLE- A pie chartSMALL- A small-sized donut chartMEDIUM- A medium-sized donut chartLARGE- A large-sized donut chart
8401 8402 8403 |
# File 'quick_sight/cfn_template.rb', line 8401 def @arc_options end |
#donut_center_options ⇒ AWSCDK::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 end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |