Class: AWSCDK::QuickSight::CfnAnalysis::GridLayoutElementProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
quick_sight/cfn_analysis.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.



14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
# File 'quick_sight/cfn_analysis.rb', line 14753

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.



14792
14793
14794
# File 'quick_sight/cfn_analysis.rb', line 14792

def column_index
  @column_index
end

#column_spanNumeric (readonly)

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



14772
14773
14774
# File 'quick_sight/cfn_analysis.rb', line 14772

def column_span
  @column_span
end

#element_idString (readonly)

A unique identifier for an element within a grid layout.



14777
14778
14779
# File 'quick_sight/cfn_analysis.rb', line 14777

def element_id
  @element_id
end

#element_typeString (readonly)

The type of element.



14782
14783
14784
# File 'quick_sight/cfn_analysis.rb', line 14782

def element_type
  @element_type
end

#row_indexNumeric? (readonly)

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



14797
14798
14799
# File 'quick_sight/cfn_analysis.rb', line 14797

def row_index
  @row_index
end

#row_spanNumeric (readonly)

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



14787
14788
14789
# File 'quick_sight/cfn_analysis.rb', line 14787

def row_span
  @row_span
end

Class Method Details

.jsii_propertiesObject



14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
# File 'quick_sight/cfn_analysis.rb', line 14799

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



14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
# File 'quick_sight/cfn_analysis.rb', line 14810

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