Class: AWSCDK::QuickSight::CfnDashboard::SectionStyleProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnDashboard::SectionStyleProperty
- Defined in:
- quick_sight/cfn_dashboard.rb
Overview
The options that style a section.
Instance Attribute Summary collapse
-
#height ⇒ String?
readonly
The height of a section.
-
#padding ⇒ AWSCDK::IResolvable, ...
readonly
The spacing between section content and its top, bottom, left, and right edges.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(height: nil, padding: nil) ⇒ SectionStyleProperty
constructor
A new instance of SectionStyleProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(height: nil, padding: nil) ⇒ SectionStyleProperty
Returns a new instance of SectionStyleProperty.
26730 26731 26732 26733 26734 26735 |
# File 'quick_sight/cfn_dashboard.rb', line 26730 def initialize(height: nil, padding: nil) @height = height Jsii::Type.check_type(@height, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "height") unless @height.nil? @padding = padding.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::SpacingProperty.new(**padding.transform_keys(&:to_sym)) : padding Jsii::Type.check_type(@padding, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5TcGFjaW5nUHJvcGVydHkifV19fQ==")), "padding") unless @padding.nil? end |
Instance Attribute Details
#height ⇒ String? (readonly)
The height of a section.
Heights can only be defined for header and footer sections. The default height margin is 0.5 inches.
26743 26744 26745 |
# File 'quick_sight/cfn_dashboard.rb', line 26743 def height @height end |
#padding ⇒ AWSCDK::IResolvable, ... (readonly)
The spacing between section content and its top, bottom, left, and right edges.
There is no padding by default.
26750 26751 26752 |
# File 'quick_sight/cfn_dashboard.rb', line 26750 def padding @padding end |
Class Method Details
.jsii_properties ⇒ Object
26752 26753 26754 26755 26756 26757 |
# File 'quick_sight/cfn_dashboard.rb', line 26752 def self.jsii_properties { :height => "height", :padding => "padding", } end |
Instance Method Details
#to_jsii ⇒ Object
26759 26760 26761 26762 26763 26764 26765 26766 |
# File 'quick_sight/cfn_dashboard.rb', line 26759 def to_jsii result = {} result.merge!({ "height" => @height, "padding" => @padding, }) result.compact end |