Class: AWSCDK::QuickSight::CfnTemplate::SectionBasedLayoutPaperCanvasSizeOptionsProperty

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

Overview

The options for a paper canvas of a section-based layout.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(paper_margin: nil, paper_orientation: nil, paper_size: nil) ⇒ SectionBasedLayoutPaperCanvasSizeOptionsProperty

Returns a new instance of SectionBasedLayoutPaperCanvasSizeOptionsProperty.

Parameters:

  • paper_margin (AWSCDK::IResolvable, AWSCDK::QuickSight::CfnTemplate::SpacingProperty, nil) (defaults to: nil)

    Defines the spacing between the canvas content and the top, bottom, left, and right edges.

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

    The paper orientation that is used to define canvas dimensions. Choose one of the following options:.

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

    The paper size that is used to define canvas dimensions.



23763
23764
23765
23766
23767
23768
23769
23770
# File 'quick_sight/cfn_template.rb', line 23763

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

Instance Attribute Details

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

Defines the spacing between the canvas content and the top, bottom, left, and right edges.



23776
23777
23778
# File 'quick_sight/cfn_template.rb', line 23776

def paper_margin
  @paper_margin
end

#paper_orientationString? (readonly)

The paper orientation that is used to define canvas dimensions. Choose one of the following options:.

  • PORTRAIT
  • LANDSCAPE


23784
23785
23786
# File 'quick_sight/cfn_template.rb', line 23784

def paper_orientation
  @paper_orientation
end

#paper_sizeString? (readonly)

The paper size that is used to define canvas dimensions.



23789
23790
23791
# File 'quick_sight/cfn_template.rb', line 23789

def paper_size
  @paper_size
end

Class Method Details

.jsii_propertiesObject



23791
23792
23793
23794
23795
23796
23797
# File 'quick_sight/cfn_template.rb', line 23791

def self.jsii_properties
  {
    :paper_margin => "paperMargin",
    :paper_orientation => "paperOrientation",
    :paper_size => "paperSize",
  }
end

Instance Method Details

#to_jsiiObject



23799
23800
23801
23802
23803
23804
23805
23806
23807
# File 'quick_sight/cfn_template.rb', line 23799

def to_jsii
  result = {}
  result.merge!({
    "paperMargin" => @paper_margin,
    "paperOrientation" => @paper_orientation,
    "paperSize" => @paper_size,
  })
  result.compact
end