Class: AWSCDK::QuickSight::CfnAnalysis::FreeFormLayoutElementProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnAnalysis::FreeFormLayoutElementProperty
- Defined in:
- quick_sight/cfn_analysis.rb
Overview
An element within a free-form layout.
Instance Attribute Summary collapse
-
#background_style ⇒ AWSCDK::IResolvable, ...
readonly
The background style configuration of a free-form layout element.
-
#border_style ⇒ AWSCDK::IResolvable, ...
readonly
The border style configuration of a free-form layout element.
-
#element_id ⇒ String
readonly
A unique identifier for an element within a free-form layout.
-
#element_type ⇒ String
readonly
The type of element.
-
#height ⇒ String
readonly
The height of an element within a free-form layout.
-
#loading_animation ⇒ AWSCDK::IResolvable, ...
readonly
The loading animation configuration of a free-form layout element.
-
#rendering_rules ⇒ AWSCDK::IResolvable, ...
readonly
The rendering rules that determine when an element should be displayed within a free-form layout.
-
#selected_border_style ⇒ AWSCDK::IResolvable, ...
readonly
The border style configuration of a free-form layout element.
-
#visibility ⇒ String?
readonly
The visibility of an element within a free-form layout.
-
#width ⇒ String
readonly
The width of an element within a free-form layout.
-
#x_axis_location ⇒ String
readonly
The x-axis coordinate of the element.
-
#y_axis_location ⇒ String
readonly
The y-axis coordinate of the element.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(element_id:, element_type:, height:, width:, x_axis_location:, y_axis_location:, background_style: nil, border_style: nil, loading_animation: nil, rendering_rules: nil, selected_border_style: nil, visibility: nil) ⇒ FreeFormLayoutElementProperty
constructor
A new instance of FreeFormLayoutElementProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(element_id:, element_type:, height:, width:, x_axis_location:, y_axis_location:, background_style: nil, border_style: nil, loading_animation: nil, rendering_rules: nil, selected_border_style: nil, visibility: nil) ⇒ FreeFormLayoutElementProperty
Returns a new instance of FreeFormLayoutElementProperty.
11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 |
# File 'quick_sight/cfn_analysis.rb', line 11535 def initialize(element_id:, element_type:, height:, width:, x_axis_location:, y_axis_location:, background_style: nil, border_style: nil, loading_animation: nil, rendering_rules: nil, selected_border_style: nil, visibility: nil) @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") @height = height Jsii::Type.check_type(@height, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "height") @width = width Jsii::Type.check_type(@width, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "width") @x_axis_location = x_axis_location Jsii::Type.check_type(@x_axis_location, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "xAxisLocation") @y_axis_location = y_axis_location Jsii::Type.check_type(@y_axis_location, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "yAxisLocation") @background_style = background_style.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::FreeFormLayoutElementBackgroundStyleProperty.new(**background_style.transform_keys(&:to_sym)) : background_style Jsii::Type.check_type(@background_style, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLkZyZWVGb3JtTGF5b3V0RWxlbWVudEJhY2tncm91bmRTdHlsZVByb3BlcnR5In1dfX0=")), "backgroundStyle") unless @background_style.nil? @border_style = border_style.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::FreeFormLayoutElementBorderStyleProperty.new(**border_style.transform_keys(&:to_sym)) : border_style Jsii::Type.check_type(@border_style, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLkZyZWVGb3JtTGF5b3V0RWxlbWVudEJvcmRlclN0eWxlUHJvcGVydHkifV19fQ==")), "borderStyle") unless @border_style.nil? @loading_animation = loading_animation.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::LoadingAnimationProperty.new(**loading_animation.transform_keys(&:to_sym)) : loading_animation Jsii::Type.check_type(@loading_animation, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLkxvYWRpbmdBbmltYXRpb25Qcm9wZXJ0eSJ9XX19")), "loadingAnimation") unless @loading_animation.nil? @rendering_rules = rendering_rules Jsii::Type.check_type(@rendering_rules, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcXVpY2tzaWdodC5DZm5BbmFseXNpcy5TaGVldEVsZW1lbnRSZW5kZXJpbmdSdWxlUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "renderingRules") unless @rendering_rules.nil? @selected_border_style = selected_border_style.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::FreeFormLayoutElementBorderStyleProperty.new(**selected_border_style.transform_keys(&:to_sym)) : selected_border_style Jsii::Type.check_type(@selected_border_style, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLkZyZWVGb3JtTGF5b3V0RWxlbWVudEJvcmRlclN0eWxlUHJvcGVydHkifV19fQ==")), "selectedBorderStyle") unless @selected_border_style.nil? @visibility = visibility Jsii::Type.check_type(@visibility, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "visibility") unless @visibility.nil? end |
Instance Attribute Details
#background_style ⇒ AWSCDK::IResolvable, ... (readonly)
The background style configuration of a free-form layout element.
11596 11597 11598 |
# File 'quick_sight/cfn_analysis.rb', line 11596 def background_style @background_style end |
#border_style ⇒ AWSCDK::IResolvable, ... (readonly)
The border style configuration of a free-form layout element.
11601 11602 11603 |
# File 'quick_sight/cfn_analysis.rb', line 11601 def border_style @border_style end |
#element_id ⇒ String (readonly)
A unique identifier for an element within a free-form layout.
11566 11567 11568 |
# File 'quick_sight/cfn_analysis.rb', line 11566 def element_id @element_id end |
#element_type ⇒ String (readonly)
The type of element.
11571 11572 11573 |
# File 'quick_sight/cfn_analysis.rb', line 11571 def element_type @element_type end |
#height ⇒ String (readonly)
The height of an element within a free-form layout.
11576 11577 11578 |
# File 'quick_sight/cfn_analysis.rb', line 11576 def height @height end |
#loading_animation ⇒ AWSCDK::IResolvable, ... (readonly)
The loading animation configuration of a free-form layout element.
11606 11607 11608 |
# File 'quick_sight/cfn_analysis.rb', line 11606 def loading_animation @loading_animation end |
#rendering_rules ⇒ AWSCDK::IResolvable, ... (readonly)
The rendering rules that determine when an element should be displayed within a free-form layout.
11611 11612 11613 |
# File 'quick_sight/cfn_analysis.rb', line 11611 def rendering_rules @rendering_rules end |
#selected_border_style ⇒ AWSCDK::IResolvable, ... (readonly)
The border style configuration of a free-form layout element.
This border style is used when the element is selected.
11618 11619 11620 |
# File 'quick_sight/cfn_analysis.rb', line 11618 def selected_border_style @selected_border_style end |
#visibility ⇒ String? (readonly)
The visibility of an element within a free-form layout.
11623 11624 11625 |
# File 'quick_sight/cfn_analysis.rb', line 11623 def visibility @visibility end |
#width ⇒ String (readonly)
The width of an element within a free-form layout.
11581 11582 11583 |
# File 'quick_sight/cfn_analysis.rb', line 11581 def width @width end |
#x_axis_location ⇒ String (readonly)
The x-axis coordinate of the element.
11586 11587 11588 |
# File 'quick_sight/cfn_analysis.rb', line 11586 def x_axis_location @x_axis_location end |
#y_axis_location ⇒ String (readonly)
The y-axis coordinate of the element.
11591 11592 11593 |
# File 'quick_sight/cfn_analysis.rb', line 11591 def y_axis_location @y_axis_location end |
Class Method Details
.jsii_properties ⇒ Object
11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 |
# File 'quick_sight/cfn_analysis.rb', line 11625 def self.jsii_properties { :element_id => "elementId", :element_type => "elementType", :height => "height", :width => "width", :x_axis_location => "xAxisLocation", :y_axis_location => "yAxisLocation", :background_style => "backgroundStyle", :border_style => "borderStyle", :loading_animation => "loadingAnimation", :rendering_rules => "renderingRules", :selected_border_style => "selectedBorderStyle", :visibility => "visibility", } end |
Instance Method Details
#to_jsii ⇒ Object
11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 |
# File 'quick_sight/cfn_analysis.rb', line 11642 def to_jsii result = {} result.merge!({ "elementId" => @element_id, "elementType" => @element_type, "height" => @height, "width" => @width, "xAxisLocation" => @x_axis_location, "yAxisLocation" => @y_axis_location, "backgroundStyle" => @background_style, "borderStyle" => @border_style, "loadingAnimation" => @loading_animation, "renderingRules" => @rendering_rules, "selectedBorderStyle" => @selected_border_style, "visibility" => @visibility, }) result.compact end |