Class: AWSCDK::QuickSight::CfnTemplate::SectionStyleProperty

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

Overview

The options that style a section.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(height: nil, padding: nil) ⇒ SectionStyleProperty

Returns a new instance of SectionStyleProperty.

Parameters:



23884
23885
23886
23887
23888
23889
# File 'quick_sight/cfn_template.rb', line 23884

def initialize(height: nil, padding: nil)
  @height = height
  Jsii::Type.check_type(@height, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "height") unless @height.nil?
  @padding = padding.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnTemplate::SpacingProperty.new(**padding.transform_keys(&:to_sym)) : padding
  Jsii::Type.check_type(@padding, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmblRlbXBsYXRlLlNwYWNpbmdQcm9wZXJ0eSJ9XX19")), "padding") unless @padding.nil?
end

Instance Attribute Details

#heightString? (readonly)

The height of a section.

Heights can only be defined for header and footer sections. The default height margin is 0.5 inches.



23897
23898
23899
# File 'quick_sight/cfn_template.rb', line 23897

def height
  @height
end

#paddingAWSCDK::IResolvable, ... (readonly)

The spacing between section content and its top, bottom, left, and right edges.

There is no padding by default.



23904
23905
23906
# File 'quick_sight/cfn_template.rb', line 23904

def padding
  @padding
end

Class Method Details

.jsii_propertiesObject



23906
23907
23908
23909
23910
23911
# File 'quick_sight/cfn_template.rb', line 23906

def self.jsii_properties
  {
    :height => "height",
    :padding => "padding",
  }
end

Instance Method Details

#to_jsiiObject



23913
23914
23915
23916
23917
23918
23919
23920
# File 'quick_sight/cfn_template.rb', line 23913

def to_jsii
  result = {}
  result.merge!({
    "height" => @height,
    "padding" => @padding,
  })
  result.compact
end