Class: AWSCDK::QuickSight::CfnTemplate::GridLayoutElementProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnTemplate::GridLayoutElementProperty
- Defined in:
- quick_sight/cfn_template.rb
Overview
An element within a grid layout.
Instance Attribute Summary collapse
-
#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.
-
#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.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(column_span:, element_id:, element_type:, row_span:, column_index: nil, row_index: nil) ⇒ GridLayoutElementProperty
constructor
A new instance of GridLayoutElementProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(column_span:, element_id:, element_type:, row_span:, column_index: nil, row_index: nil) ⇒ GridLayoutElementProperty
Returns a new instance of GridLayoutElementProperty.
13246 13247 13248 13249 13250 13251 13252 13253 13254 13255 13256 13257 13258 13259 |
# File 'quick_sight/cfn_template.rb', line 13246 def initialize(column_span:, element_id:, element_type:, row_span:, column_index: nil, row_index: 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") @column_index = column_index Jsii::Type.check_type(@column_index, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "columnIndex") unless @column_index.nil? @row_index = row_index Jsii::Type.check_type(@row_index, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "rowIndex") unless @row_index.nil? end |
Instance Attribute Details
#column_index ⇒ Numeric? (readonly)
The column index for the upper left corner of an element.
13285 13286 13287 |
# File 'quick_sight/cfn_template.rb', line 13285 def column_index @column_index end |
#column_span ⇒ Numeric (readonly)
The width of a grid element expressed as a number of grid columns.
13265 13266 13267 |
# File 'quick_sight/cfn_template.rb', line 13265 def column_span @column_span end |
#element_id ⇒ String (readonly)
A unique identifier for an element within a grid layout.
13270 13271 13272 |
# File 'quick_sight/cfn_template.rb', line 13270 def element_id @element_id end |
#element_type ⇒ String (readonly)
The type of element.
13275 13276 13277 |
# File 'quick_sight/cfn_template.rb', line 13275 def element_type @element_type end |
#row_index ⇒ Numeric? (readonly)
The row index for the upper left corner of an element.
13290 13291 13292 |
# File 'quick_sight/cfn_template.rb', line 13290 def row_index @row_index end |
#row_span ⇒ Numeric (readonly)
The height of a grid element expressed as a number of grid rows.
13280 13281 13282 |
# File 'quick_sight/cfn_template.rb', line 13280 def row_span @row_span end |
Class Method Details
.jsii_properties ⇒ Object
13292 13293 13294 13295 13296 13297 13298 13299 13300 13301 |
# File 'quick_sight/cfn_template.rb', line 13292 def self.jsii_properties { :column_span => "columnSpan", :element_id => "elementId", :element_type => "elementType", :row_span => "rowSpan", :column_index => "columnIndex", :row_index => "rowIndex", } end |
Instance Method Details
#to_jsii ⇒ Object
13303 13304 13305 13306 13307 13308 13309 13310 13311 13312 13313 13314 |
# File 'quick_sight/cfn_template.rb', line 13303 def to_jsii result = {} result.merge!({ "columnSpan" => @column_span, "elementId" => @element_id, "elementType" => @element_type, "rowSpan" => @row_span, "columnIndex" => @column_index, "rowIndex" => @row_index, }) result.compact end |