Class: AWSCDK::QuickSight::CfnDashboard::GridLayoutElementProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnDashboard::GridLayoutElementProperty
- Defined in:
- quick_sight/cfn_dashboard.rb
Overview
An element within a grid layout.
Instance Attribute Summary collapse
-
#background_style ⇒ AWSCDK::IResolvable, ...
readonly
The background style configuration of a grid layout element.
-
#border_radius ⇒ String?
readonly
The border radius of a grid layout element.
-
#border_style ⇒ AWSCDK::IResolvable, ...
readonly
The border style configuration of a grid layout element.
-
#column_index ⇒ Numeric?
readonly
The column index for the upper left corner of an element.
-
#column_span ⇒ Numeric
readonly
The width of a grid element expressed as a number of grid columns.
-
#element_id ⇒ String
readonly
A unique identifier for an element within a grid layout.
-
#element_type ⇒ String
readonly
The type of element.
- #loading_animation ⇒ AWSCDK::IResolvable, ... readonly
-
#padding ⇒ String?
readonly
The padding of a grid layout element.
-
#row_index ⇒ Numeric?
readonly
The row index for the upper left corner of an element.
-
#row_span ⇒ Numeric
readonly
The height of a grid element expressed as a number of grid rows.
-
#selected_border_style ⇒ AWSCDK::IResolvable, ...
readonly
The border style configuration of a grid layout element.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(column_span:, element_id:, element_type:, row_span:, background_style: nil, border_radius: nil, border_style: nil, column_index: nil, loading_animation: nil, padding: nil, row_index: nil, selected_border_style: nil) ⇒ GridLayoutElementProperty
constructor
A new instance of GridLayoutElementProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(column_span:, element_id:, element_type:, row_span:, background_style: nil, border_radius: nil, border_style: nil, column_index: nil, loading_animation: nil, padding: nil, row_index: nil, selected_border_style: nil) ⇒ GridLayoutElementProperty
Returns a new instance of GridLayoutElementProperty.
15638 15639 15640 15641 15642 15643 15644 15645 15646 15647 15648 15649 15650 15651 15652 15653 15654 15655 15656 15657 15658 15659 15660 15661 15662 15663 |
# File 'quick_sight/cfn_dashboard.rb', line 15638 def initialize(column_span:, element_id:, element_type:, row_span:, background_style: nil, border_radius: nil, border_style: nil, column_index: nil, loading_animation: nil, padding: nil, row_index: nil, selected_border_style: nil) @column_span = column_span Jsii::Type.check_type(@column_span, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "columnSpan") @element_id = element_id Jsii::Type.check_type(@element_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "elementId") @element_type = element_type Jsii::Type.check_type(@element_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "elementType") @row_span = row_span Jsii::Type.check_type(@row_span, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "rowSpan") @background_style = background_style.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::GridLayoutElementBackgroundStyleProperty.new(**background_style.transform_keys(&:to_sym)) : background_style Jsii::Type.check_type(@background_style, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5HcmlkTGF5b3V0RWxlbWVudEJhY2tncm91bmRTdHlsZVByb3BlcnR5In1dfX0=")), "backgroundStyle") unless @background_style.nil? @border_radius = border_radius Jsii::Type.check_type(@border_radius, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "borderRadius") unless @border_radius.nil? @border_style = border_style.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::GridLayoutElementBorderStyleProperty.new(**border_style.transform_keys(&:to_sym)) : border_style Jsii::Type.check_type(@border_style, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5HcmlkTGF5b3V0RWxlbWVudEJvcmRlclN0eWxlUHJvcGVydHkifV19fQ==")), "borderStyle") unless @border_style.nil? @column_index = column_index Jsii::Type.check_type(@column_index, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "columnIndex") unless @column_index.nil? @loading_animation = loading_animation.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::LoadingAnimationProperty.new(**loading_animation.transform_keys(&:to_sym)) : loading_animation Jsii::Type.check_type(@loading_animation, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5Mb2FkaW5nQW5pbWF0aW9uUHJvcGVydHkifV19fQ==")), "loadingAnimation") unless @loading_animation.nil? @padding = padding Jsii::Type.check_type(@padding, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "padding") unless @padding.nil? @row_index = row_index Jsii::Type.check_type(@row_index, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "rowIndex") unless @row_index.nil? @selected_border_style = selected_border_style.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::GridLayoutElementBorderStyleProperty.new(**selected_border_style.transform_keys(&:to_sym)) : selected_border_style Jsii::Type.check_type(@selected_border_style, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5HcmlkTGF5b3V0RWxlbWVudEJvcmRlclN0eWxlUHJvcGVydHkifV19fQ==")), "selectedBorderStyle") unless @selected_border_style.nil? end |
Instance Attribute Details
#background_style ⇒ AWSCDK::IResolvable, ... (readonly)
The background style configuration of a grid layout element.
15689 15690 15691 |
# File 'quick_sight/cfn_dashboard.rb', line 15689 def background_style @background_style end |
#border_radius ⇒ String? (readonly)
The border radius of a grid layout element.
15694 15695 15696 |
# File 'quick_sight/cfn_dashboard.rb', line 15694 def border_radius @border_radius end |
#border_style ⇒ AWSCDK::IResolvable, ... (readonly)
The border style configuration of a grid layout element.
15699 15700 15701 |
# File 'quick_sight/cfn_dashboard.rb', line 15699 def border_style @border_style end |
#column_index ⇒ Numeric? (readonly)
The column index for the upper left corner of an element.
15704 15705 15706 |
# File 'quick_sight/cfn_dashboard.rb', line 15704 def column_index @column_index end |
#column_span ⇒ Numeric (readonly)
The width of a grid element expressed as a number of grid columns.
15669 15670 15671 |
# File 'quick_sight/cfn_dashboard.rb', line 15669 def column_span @column_span end |
#element_id ⇒ String (readonly)
A unique identifier for an element within a grid layout.
15674 15675 15676 |
# File 'quick_sight/cfn_dashboard.rb', line 15674 def element_id @element_id end |
#element_type ⇒ String (readonly)
The type of element.
15679 15680 15681 |
# File 'quick_sight/cfn_dashboard.rb', line 15679 def element_type @element_type end |
#loading_animation ⇒ AWSCDK::IResolvable, ... (readonly)
15707 15708 15709 |
# File 'quick_sight/cfn_dashboard.rb', line 15707 def loading_animation @loading_animation end |
#padding ⇒ String? (readonly)
The padding of a grid layout element.
15712 15713 15714 |
# File 'quick_sight/cfn_dashboard.rb', line 15712 def padding @padding end |
#row_index ⇒ Numeric? (readonly)
The row index for the upper left corner of an element.
15717 15718 15719 |
# File 'quick_sight/cfn_dashboard.rb', line 15717 def row_index @row_index end |
#row_span ⇒ Numeric (readonly)
The height of a grid element expressed as a number of grid rows.
15684 15685 15686 |
# File 'quick_sight/cfn_dashboard.rb', line 15684 def row_span @row_span end |
#selected_border_style ⇒ AWSCDK::IResolvable, ... (readonly)
The border style configuration of a grid layout element.
This border style is used when the element is selected.
15724 15725 15726 |
# File 'quick_sight/cfn_dashboard.rb', line 15724 def selected_border_style @selected_border_style end |
Class Method Details
.jsii_properties ⇒ Object
15726 15727 15728 15729 15730 15731 15732 15733 15734 15735 15736 15737 15738 15739 15740 15741 |
# File 'quick_sight/cfn_dashboard.rb', line 15726 def self.jsii_properties { :column_span => "columnSpan", :element_id => "elementId", :element_type => "elementType", :row_span => "rowSpan", :background_style => "backgroundStyle", :border_radius => "borderRadius", :border_style => "borderStyle", :column_index => "columnIndex", :loading_animation => "loadingAnimation", :padding => "padding", :row_index => "rowIndex", :selected_border_style => "selectedBorderStyle", } end |
Instance Method Details
#to_jsii ⇒ Object
15743 15744 15745 15746 15747 15748 15749 15750 15751 15752 15753 15754 15755 15756 15757 15758 15759 15760 |
# File 'quick_sight/cfn_dashboard.rb', line 15743 def to_jsii result = {} result.merge!({ "columnSpan" => @column_span, "elementId" => @element_id, "elementType" => @element_type, "rowSpan" => @row_span, "backgroundStyle" => @background_style, "borderRadius" => @border_radius, "borderStyle" => @border_style, "columnIndex" => @column_index, "loadingAnimation" => @loading_animation, "padding" => @padding, "rowIndex" => @row_index, "selectedBorderStyle" => @selected_border_style, }) result.compact end |