Class: AWSCDK::QuickSight::CfnAnalysis::SectionBasedLayoutPaperCanvasSizeOptionsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::QuickSight::CfnAnalysis::SectionBasedLayoutPaperCanvasSizeOptionsProperty
- Defined in:
- quick_sight/cfn_analysis.rb
Overview
The options for a paper canvas of a section-based layout.
Instance Attribute Summary collapse
-
#paper_margin ⇒ AWSCDK::IResolvable, ...
readonly
Defines the spacing between the canvas content and the top, bottom, left, and right edges.
-
#paper_orientation ⇒ String?
readonly
The paper orientation that is used to define canvas dimensions.
-
#paper_size ⇒ String?
readonly
The paper size that is used to define canvas dimensions.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(paper_margin: nil, paper_orientation: nil, paper_size: nil) ⇒ SectionBasedLayoutPaperCanvasSizeOptionsProperty
constructor
A new instance of SectionBasedLayoutPaperCanvasSizeOptionsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(paper_margin: nil, paper_orientation: nil, paper_size: nil) ⇒ SectionBasedLayoutPaperCanvasSizeOptionsProperty
Returns a new instance of SectionBasedLayoutPaperCanvasSizeOptionsProperty.
25637 25638 25639 25640 25641 25642 25643 25644 |
# File 'quick_sight/cfn_analysis.rb', line 25637 def initialize(paper_margin: nil, paper_orientation: nil, paper_size: nil) @paper_margin = paper_margin.is_a?(Hash) ? ::AWSCDK::QuickSight::CfnAnalysis::SpacingProperty.new(**paper_margin.transform_keys(&:to_sym)) : paper_margin Jsii::Type.check_type(@paper_margin, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19xdWlja3NpZ2h0LkNmbkFuYWx5c2lzLlNwYWNpbmdQcm9wZXJ0eSJ9XX19")), "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_margin ⇒ AWSCDK::IResolvable, ... (readonly)
Defines the spacing between the canvas content and the top, bottom, left, and right edges.
25650 25651 25652 |
# File 'quick_sight/cfn_analysis.rb', line 25650 def paper_margin @paper_margin end |
#paper_orientation ⇒ String? (readonly)
The paper orientation that is used to define canvas dimensions. Choose one of the following options:.
- PORTRAIT
- LANDSCAPE
25658 25659 25660 |
# File 'quick_sight/cfn_analysis.rb', line 25658 def paper_orientation @paper_orientation end |
#paper_size ⇒ String? (readonly)
The paper size that is used to define canvas dimensions.
25663 25664 25665 |
# File 'quick_sight/cfn_analysis.rb', line 25663 def paper_size @paper_size end |
Class Method Details
.jsii_properties ⇒ Object
25665 25666 25667 25668 25669 25670 25671 |
# File 'quick_sight/cfn_analysis.rb', line 25665 def self.jsii_properties { :paper_margin => "paperMargin", :paper_orientation => "paperOrientation", :paper_size => "paperSize", } end |
Instance Method Details
#to_jsii ⇒ Object
25673 25674 25675 25676 25677 25678 25679 25680 25681 |
# File 'quick_sight/cfn_analysis.rb', line 25673 def to_jsii result = {} result.merge!({ "paperMargin" => @paper_margin, "paperOrientation" => @paper_orientation, "paperSize" => @paper_size, }) result.compact end |