Class: AWSCDK::QuickSight::CfnDashboard::SpacingProperty

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

Overview

The configuration of spacing (often a margin or padding).

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bottom: nil, left: nil, right: nil, top: nil) ⇒ SpacingProperty

Returns a new instance of SpacingProperty.

Parameters:

  • bottom (String, nil) (defaults to: nil)

    Define the bottom spacing.

  • left (String, nil) (defaults to: nil)

    Define the left spacing.

  • right (String, nil) (defaults to: nil)

    Define the right spacing.

  • top (String, nil) (defaults to: nil)

    Define the top spacing.



28050
28051
28052
28053
28054
28055
28056
28057
28058
28059
# File 'quick_sight/cfn_dashboard.rb', line 28050

def initialize(bottom: nil, left: nil, right: nil, top: nil)
  @bottom = bottom
  Jsii::Type.check_type(@bottom, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "bottom") unless @bottom.nil?
  @left = left
  Jsii::Type.check_type(@left, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "left") unless @left.nil?
  @right = right
  Jsii::Type.check_type(@right, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "right") unless @right.nil?
  @top = top
  Jsii::Type.check_type(@top, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "top") unless @top.nil?
end

Instance Attribute Details

#bottomString? (readonly)

Define the bottom spacing.



28065
28066
28067
# File 'quick_sight/cfn_dashboard.rb', line 28065

def bottom
  @bottom
end

#leftString? (readonly)

Define the left spacing.



28070
28071
28072
# File 'quick_sight/cfn_dashboard.rb', line 28070

def left
  @left
end

#rightString? (readonly)

Define the right spacing.



28075
28076
28077
# File 'quick_sight/cfn_dashboard.rb', line 28075

def right
  @right
end

#topString? (readonly)

Define the top spacing.



28080
28081
28082
# File 'quick_sight/cfn_dashboard.rb', line 28080

def top
  @top
end

Class Method Details

.jsii_propertiesObject



28082
28083
28084
28085
28086
28087
28088
28089
# File 'quick_sight/cfn_dashboard.rb', line 28082

def self.jsii_properties
  {
    :bottom => "bottom",
    :left => "left",
    :right => "right",
    :top => "top",
  }
end

Instance Method Details

#to_jsiiObject



28091
28092
28093
28094
28095
28096
28097
28098
28099
28100
# File 'quick_sight/cfn_dashboard.rb', line 28091

def to_jsii
  result = {}
  result.merge!({
    "bottom" => @bottom,
    "left" => @left,
    "right" => @right,
    "top" => @top,
  })
  result.compact
end