Class: AWSCDK::QuickSight::CfnDashboard::SectionBasedLayoutPaperCanvasSizeOptionsProperty

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



26609
26610
26611
26612
26613
26614
26615
26616
# File 'quick_sight/cfn_dashboard.rb', line 26609

def initialize(paper_margin: nil, paper_orientation: nil, paper_size: nil)
  @paper_margin = paper_margin.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnDashboard::SpacingProperty.new(**paper_margin.transform_keys(&:to_sym)) : paper_margin
  Jsii::Type.check_type(@paper_margin, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkRhc2hib2FyZC5TcGFjaW5nUHJvcGVydHkifV19fQ==")), "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.



26622
26623
26624
# File 'quick_sight/cfn_dashboard.rb', line 26622

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


26630
26631
26632
# File 'quick_sight/cfn_dashboard.rb', line 26630

def paper_orientation
  @paper_orientation
end

#paper_sizeString? (readonly)

The paper size that is used to define canvas dimensions.



26635
26636
26637
# File 'quick_sight/cfn_dashboard.rb', line 26635

def paper_size
  @paper_size
end

Class Method Details

.jsii_propertiesObject



26637
26638
26639
26640
26641
26642
26643
# File 'quick_sight/cfn_dashboard.rb', line 26637

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

Instance Method Details

#to_jsiiObject



26645
26646
26647
26648
26649
26650
26651
26652
26653
# File 'quick_sight/cfn_dashboard.rb', line 26645

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