# GridLayoutScreenCanvasSizeOptionsProperty

The options that determine the sizing of the canvas used in a grid 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 gridLayoutScreenCanvasSizeOptionsProperty: quicksight.CfnAnalysis.GridLayoutScreenCanvasSizeOptionsProperty = {
  resizeOption: 'resizeOption',

  // the properties below are optional
  optimizedViewPortWidth: 'optimizedViewPortWidth',
};
```

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

grid_layout_screen_canvas_size_options_property = quicksight.CfnAnalysis.GridLayoutScreenCanvasSizeOptionsProperty(
    resize_option="resizeOption",

    # the properties below are optional
    optimized_view_port_width="optimizedViewPortWidth"
)
```

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.*;

GridLayoutScreenCanvasSizeOptionsProperty gridLayoutScreenCanvasSizeOptionsProperty = GridLayoutScreenCanvasSizeOptionsProperty.builder()
        .resizeOption("resizeOption")

        // the properties below are optional
        .optimizedViewPortWidth("optimizedViewPortWidth")
        .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 gridLayoutScreenCanvasSizeOptionsProperty = new GridLayoutScreenCanvasSizeOptionsProperty {
    ResizeOption = "resizeOption",

    // the properties below are optional
    OptimizedViewPortWidth = "optimizedViewPortWidth"
};
```

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"

gridLayoutScreenCanvasSizeOptionsProperty := &GridLayoutScreenCanvasSizeOptionsProperty{
	ResizeOption: jsii.String("resizeOption"),

	// the properties below are optional
	OptimizedViewPortWidth: jsii.String("optimizedViewPortWidth"),
}
```

## Properties

- `optimizedViewPortWidth`: string — The width that the view port will be optimized for when the layout renders.

- `resizeOption`: string (required) — This value determines the layout behavior when the viewport is resized.

  - `FIXED` : A fixed width will be used when optimizing the layout. In the Quick Sight console, this option is called `Classic` .
  - `RESPONSIVE` : The width of the canvas will be responsive and optimized to the view port. In the Quick Sight console, this option is called `Tiled` .
