# SectionBasedLayoutPaperCanvasSizeOptionsProperty

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

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `paperMargin`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTemplate.SpacingProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_quicksight.CfnTemplate.SpacingProperty.html) — Defines the spacing between the canvas content and the top, bottom, left, and right edges.

- `paperOrientation`: string — The paper orientation that is used to define canvas dimensions. Choose one of the following options:.

  - PORTRAIT
  - LANDSCAPE

- `paperSize`: string — The paper size that is used to define canvas dimensions.
