Class: AWSCDK::QuickSight::CfnDashboard::FreeFormLayoutElementProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnDashboard::FreeFormLayoutElementProperty
- Defined in:
- quick_sight/cfn_dashboard.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_radius ⇒ String?
readonly
The border radius 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.
-
#padding ⇒ String?
readonly
The padding 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_radius: nil, border_style: nil, loading_animation: nil, padding: 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_radius: nil, border_style: nil, loading_animation: nil, padding: nil, rendering_rules: nil, selected_border_style: nil, visibility: nil) ⇒ FreeFormLayoutElementProperty
Returns a new instance of FreeFormLayoutElementProperty.
12300 12301 12302 12303 12304 12305 12306 12307 12308 12309 12310 12311 12312 12313 12314 12315 12316 12317 12318 12319 12320 12321 12322 12323 12324 12325 12326 12327 12328 12329 |
# File 'quick_sight/cfn_dashboard.rb', line 12300 def initialize(element_id:, element_type:, height:, width:, x_axis_location:, y_axis_location:, background_style: nil, border_radius: nil, border_style: nil, loading_animation: nil, padding: 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::CfnDashboard::FreeFormLayoutElementBackgroundStyleProperty.new(**background_style.transform_keys(&:to_sym)) : background_style Jsii::Type.check_type(@background_style, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5GcmVlRm9ybUxheW91dEVsZW1lbnRCYWNrZ3JvdW5kU3R5bGVQcm9wZXJ0eSJ9XX19")), "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::FreeFormLayoutElementBorderStyleProperty.new(**border_style.transform_keys(&:to_sym)) : border_style Jsii::Type.check_type(@border_style, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5GcmVlRm9ybUxheW91dEVsZW1lbnRCb3JkZXJTdHlsZVByb3BlcnR5In1dfX0=")), "borderStyle") unless @border_style.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? @rendering_rules = rendering_rules Jsii::Type.check_type(@rendering_rules, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcXVpY2tzaWdodC5DZm5EYXNoYm9hcmQuU2hlZXRFbGVtZW50UmVuZGVyaW5nUnVsZVByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "renderingRules") unless @rendering_rules.nil? @selected_border_style = selected_border_style.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::FreeFormLayoutElementBorderStyleProperty.new(**selected_border_style.transform_keys(&:to_sym)) : selected_border_style Jsii::Type.check_type(@selected_border_style, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5GcmVlRm9ybUxheW91dEVsZW1lbnRCb3JkZXJTdHlsZVByb3BlcnR5In1dfX0=")), "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.
12365 12366 12367 |
# File 'quick_sight/cfn_dashboard.rb', line 12365 def background_style @background_style end |
#border_radius ⇒ String? (readonly)
The border radius of a free-form layout element.
12370 12371 12372 |
# File 'quick_sight/cfn_dashboard.rb', line 12370 def border_radius @border_radius end |
#border_style ⇒ AWSCDK::IResolvable, ... (readonly)
The border style configuration of a free-form layout element.
12375 12376 12377 |
# File 'quick_sight/cfn_dashboard.rb', line 12375 def border_style @border_style end |
#element_id ⇒ String (readonly)
A unique identifier for an element within a free-form layout.
12335 12336 12337 |
# File 'quick_sight/cfn_dashboard.rb', line 12335 def element_id @element_id end |
#element_type ⇒ String (readonly)
The type of element.
12340 12341 12342 |
# File 'quick_sight/cfn_dashboard.rb', line 12340 def element_type @element_type end |
#height ⇒ String (readonly)
The height of an element within a free-form layout.
12345 12346 12347 |
# File 'quick_sight/cfn_dashboard.rb', line 12345 def height @height end |
#loading_animation ⇒ AWSCDK::IResolvable, ... (readonly)
The loading animation configuration of a free-form layout element.
12380 12381 12382 |
# File 'quick_sight/cfn_dashboard.rb', line 12380 def loading_animation @loading_animation end |
#padding ⇒ String? (readonly)
The padding of a free-form layout element.
12385 12386 12387 |
# File 'quick_sight/cfn_dashboard.rb', line 12385 def padding @padding end |
#rendering_rules ⇒ AWSCDK::IResolvable, ... (readonly)
The rendering rules that determine when an element should be displayed within a free-form layout.
12390 12391 12392 |
# File 'quick_sight/cfn_dashboard.rb', line 12390 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.
12397 12398 12399 |
# File 'quick_sight/cfn_dashboard.rb', line 12397 def selected_border_style @selected_border_style end |
#visibility ⇒ String? (readonly)
The visibility of an element within a free-form layout.
12402 12403 12404 |
# File 'quick_sight/cfn_dashboard.rb', line 12402 def visibility @visibility end |
#width ⇒ String (readonly)
The width of an element within a free-form layout.
12350 12351 12352 |
# File 'quick_sight/cfn_dashboard.rb', line 12350 def width @width end |
#x_axis_location ⇒ String (readonly)
The x-axis coordinate of the element.
12355 12356 12357 |
# File 'quick_sight/cfn_dashboard.rb', line 12355 def x_axis_location @x_axis_location end |
#y_axis_location ⇒ String (readonly)
The y-axis coordinate of the element.
12360 12361 12362 |
# File 'quick_sight/cfn_dashboard.rb', line 12360 def y_axis_location @y_axis_location end |
Class Method Details
.jsii_properties ⇒ Object
12404 12405 12406 12407 12408 12409 12410 12411 12412 12413 12414 12415 12416 12417 12418 12419 12420 12421 |
# File 'quick_sight/cfn_dashboard.rb', line 12404 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_radius => "borderRadius", :border_style => "borderStyle", :loading_animation => "loadingAnimation", :padding => "padding", :rendering_rules => "renderingRules", :selected_border_style => "selectedBorderStyle", :visibility => "visibility", } end |
Instance Method Details
#to_jsii ⇒ Object
12423 12424 12425 12426 12427 12428 12429 12430 12431 12432 12433 12434 12435 12436 12437 12438 12439 12440 12441 12442 |
# File 'quick_sight/cfn_dashboard.rb', line 12423 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, "borderRadius" => @border_radius, "borderStyle" => @border_style, "loadingAnimation" => @loading_animation, "padding" => @padding, "renderingRules" => @rendering_rules, "selectedBorderStyle" => @selected_border_style, "visibility" => @visibility, }) result.compact end |