Class: AWSCDK::QuickSight::CfnTemplate::GridLayoutElementProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
quick_sight/cfn_template.rb

Overview

An element within a grid layout.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(column_span:, element_id:, element_type:, row_span:, column_index: nil, row_index: nil) ⇒ GridLayoutElementProperty

Returns a new instance of GridLayoutElementProperty.

Parameters:

  • column_span (Numeric)

    The width of a grid element expressed as a number of grid columns.

  • element_id (String)

    A unique identifier for an element within a grid layout.

  • element_type (String)

    The type of element.

  • row_span (Numeric)

    The height of a grid element expressed as a number of grid rows.

  • column_index (Numeric, nil) (defaults to: nil)

    The column index for the upper left corner of an element.

  • row_index (Numeric, nil) (defaults to: nil)

    The row index for the upper left corner of an element.



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_indexNumeric? (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_spanNumeric (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_idString (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_typeString (readonly)

The type of element.



13275
13276
13277
# File 'quick_sight/cfn_template.rb', line 13275

def element_type
  @element_type
end

#row_indexNumeric? (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_spanNumeric (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_propertiesObject



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_jsiiObject



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