Skip to content
v2.278.0

SectionBasedLayoutPaperCanvasSizeOptionsProperty Struct ​

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

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_quicksight as quicksight } from 'aws-cdk-lib';
const sectionBasedLayoutPaperCanvasSizeOptionsProperty: quicksight.CfnTemplate.SectionBasedLayoutPaperCanvasSizeOptionsProperty = {
  paperMargin: {
    bottom: 'bottom',
    left: 'left',
    right: 'right',
    top: 'top',
  },
  paperOrientation: 'paperOrientation',
  paperSize: 'paperSize',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_quicksight as quicksight

section_based_layout_paper_canvas_size_options_property = quicksight.CfnTemplate.SectionBasedLayoutPaperCanvasSizeOptionsProperty(
    paper_margin=quicksight.CfnTemplate.SpacingProperty(
        bottom="bottom",
        left="left",
        right="right",
        top="top"
    ),
    paper_orientation="paperOrientation",
    paper_size="paperSize"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.quicksight.*;

SectionBasedLayoutPaperCanvasSizeOptionsProperty sectionBasedLayoutPaperCanvasSizeOptionsProperty = SectionBasedLayoutPaperCanvasSizeOptionsProperty.builder()
        .paperMargin(SpacingProperty.builder()
                .bottom("bottom")
                .left("left")
                .right("right")
                .top("top")
                .build())
        .paperOrientation("paperOrientation")
        .paperSize("paperSize")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.QuickSight;

var sectionBasedLayoutPaperCanvasSizeOptionsProperty = new SectionBasedLayoutPaperCanvasSizeOptionsProperty {
    PaperMargin = new SpacingProperty {
        Bottom = "bottom",
        Left = "left",
        Right = "right",
        Top = "top"
    },
    PaperOrientation = "paperOrientation",
    PaperSize = "paperSize"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

sectionBasedLayoutPaperCanvasSizeOptionsProperty := &SectionBasedLayoutPaperCanvasSizeOptionsProperty{
	PaperMargin: &SpacingProperty{
		Bottom: jsii.String("bottom"),
		Left: jsii.String("left"),
		Right: jsii.String("right"),
		Top: jsii.String("top"),
	},
	PaperOrientation: jsii.String("paperOrientation"),
	PaperSize: jsii.String("paperSize"),
}

Properties ​

paperMarginoptionalIResolvable | CfnTemplate.SpacingPropertypaper_marginoptionaltyping.Union[IResolvable, SpacingProperty]paperMarginoptionalIResolvablePaperMarginoptionalIResolvablePaperMarginoptionalinterface{} #
Defines the spacing between the canvas content and the top, bottom, left, and right edges.
paperOrientationoptionalstringpaper_orientationoptionalstrpaperOrientationoptionalStringPaperOrientationoptionalstringPaperOrientationoptional*string #
The paper orientation that is used to define canvas dimensions. Choose one of the following options:.
  • PORTRAIT
  • LANDSCAPE
paperSizeoptionalstringpaper_sizeoptionalstrpaperSizeoptionalStringPaperSizeoptionalstringPaperSizeoptional*string #
The paper size that is used to define canvas dimensions.