Skip to content
v2.278.0

TableOptionsProperty Struct ​

The table options for a table visual.

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 tableOptionsProperty: quicksight.CfnTemplate.TableOptionsProperty = {
  cellStyle: {
    backgroundColor: 'backgroundColor',
    border: {
      sideSpecificBorder: {
        bottom: {
          color: 'color',
          style: 'style',
          thickness: 123,
        },
        innerHorizontal: {
          color: 'color',
          style: 'style',
          thickness: 123,
        },
        innerVertical: {
          color: 'color',
          style: 'style',
          thickness: 123,
        },
        left: {
          color: 'color',
          style: 'style',
          thickness: 123,
        },
        right: {
          color: 'color',
          style: 'style',
          thickness: 123,
        },
        top: {
          color: 'color',
          style: 'style',
          thickness: 123,
        },
      },
      uniformBorder: {
        color: 'color',
        style: 'style',
        thickness: 123,
      },
    },
    fontConfiguration: {
      fontColor: 'fontColor',
      fontDecoration: 'fontDecoration',
      fontFamily: 'fontFamily',
      fontSize: {
        absolute: 'absolute',
        relative: 'relative',
      },
      fontStyle: 'fontStyle',
      fontWeight: {
        name: 'name',
      },
    },
    height: 123,
    horizontalTextAlignment: 'horizontalTextAlignment',
    textWrap: 'textWrap',
    verticalTextAlignment: 'verticalTextAlignment',
    visibility: 'visibility',
  },
  headerStyle: {
    backgroundColor: 'backgroundColor',
    border: {
      sideSpecificBorder: {
        bottom: {
          color: 'color',
          style: 'style',
          thickness: 123,
        },
        innerHorizontal: {
          color: 'color',
          style: 'style',
          thickness: 123,
        },
        innerVertical: {
          color: 'color',
          style: 'style',
          thickness: 123,
        },
        left: {
          color: 'color',
          style: 'style',
          thickness: 123,
        },
        right: {
          color: 'color',
          style: 'style',
          thickness: 123,
        },
        top: {
          color: 'color',
          style: 'style',
          thickness: 123,
        },
      },
      uniformBorder: {
        color: 'color',
        style: 'style',
        thickness: 123,
      },
    },
    fontConfiguration: {
      fontColor: 'fontColor',
      fontDecoration: 'fontDecoration',
      fontFamily: 'fontFamily',
      fontSize: {
        absolute: 'absolute',
        relative: 'relative',
      },
      fontStyle: 'fontStyle',
      fontWeight: {
        name: 'name',
      },
    },
    height: 123,
    horizontalTextAlignment: 'horizontalTextAlignment',
    textWrap: 'textWrap',
    verticalTextAlignment: 'verticalTextAlignment',
    visibility: 'visibility',
  },
  orientation: 'orientation',
  rowAlternateColorOptions: {
    rowAlternateColors: ['rowAlternateColors'],
    status: 'status',
    usePrimaryBackgroundColor: 'usePrimaryBackgroundColor',
  },
};
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

table_options_property = quicksight.CfnTemplate.TableOptionsProperty(
    cell_style=quicksight.CfnTemplate.TableCellStyleProperty(
        background_color="backgroundColor",
        border=quicksight.CfnTemplate.GlobalTableBorderOptionsProperty(
            side_specific_border=quicksight.CfnTemplate.TableSideBorderOptionsProperty(
                bottom=quicksight.CfnTemplate.TableBorderOptionsProperty(
                    color="color",
                    style="style",
                    thickness=123
                ),
                inner_horizontal=quicksight.CfnTemplate.TableBorderOptionsProperty(
                    color="color",
                    style="style",
                    thickness=123
                ),
                inner_vertical=quicksight.CfnTemplate.TableBorderOptionsProperty(
                    color="color",
                    style="style",
                    thickness=123
                ),
                left=quicksight.CfnTemplate.TableBorderOptionsProperty(
                    color="color",
                    style="style",
                    thickness=123
                ),
                right=quicksight.CfnTemplate.TableBorderOptionsProperty(
                    color="color",
                    style="style",
                    thickness=123
                ),
                top=quicksight.CfnTemplate.TableBorderOptionsProperty(
                    color="color",
                    style="style",
                    thickness=123
                )
            ),
            uniform_border=quicksight.CfnTemplate.TableBorderOptionsProperty(
                color="color",
                style="style",
                thickness=123
            )
        ),
        font_configuration=quicksight.CfnTemplate.FontConfigurationProperty(
            font_color="fontColor",
            font_decoration="fontDecoration",
            font_family="fontFamily",
            font_size=quicksight.CfnTemplate.FontSizeProperty(
                absolute="absolute",
                relative="relative"
            ),
            font_style="fontStyle",
            font_weight=quicksight.CfnTemplate.FontWeightProperty(
                name="name"
            )
        ),
        height=123,
        horizontal_text_alignment="horizontalTextAlignment",
        text_wrap="textWrap",
        vertical_text_alignment="verticalTextAlignment",
        visibility="visibility"
    ),
    header_style=quicksight.CfnTemplate.TableCellStyleProperty(
        background_color="backgroundColor",
        border=quicksight.CfnTemplate.GlobalTableBorderOptionsProperty(
            side_specific_border=quicksight.CfnTemplate.TableSideBorderOptionsProperty(
                bottom=quicksight.CfnTemplate.TableBorderOptionsProperty(
                    color="color",
                    style="style",
                    thickness=123
                ),
                inner_horizontal=quicksight.CfnTemplate.TableBorderOptionsProperty(
                    color="color",
                    style="style",
                    thickness=123
                ),
                inner_vertical=quicksight.CfnTemplate.TableBorderOptionsProperty(
                    color="color",
                    style="style",
                    thickness=123
                ),
                left=quicksight.CfnTemplate.TableBorderOptionsProperty(
                    color="color",
                    style="style",
                    thickness=123
                ),
                right=quicksight.CfnTemplate.TableBorderOptionsProperty(
                    color="color",
                    style="style",
                    thickness=123
                ),
                top=quicksight.CfnTemplate.TableBorderOptionsProperty(
                    color="color",
                    style="style",
                    thickness=123
                )
            ),
            uniform_border=quicksight.CfnTemplate.TableBorderOptionsProperty(
                color="color",
                style="style",
                thickness=123
            )
        ),
        font_configuration=quicksight.CfnTemplate.FontConfigurationProperty(
            font_color="fontColor",
            font_decoration="fontDecoration",
            font_family="fontFamily",
            font_size=quicksight.CfnTemplate.FontSizeProperty(
                absolute="absolute",
                relative="relative"
            ),
            font_style="fontStyle",
            font_weight=quicksight.CfnTemplate.FontWeightProperty(
                name="name"
            )
        ),
        height=123,
        horizontal_text_alignment="horizontalTextAlignment",
        text_wrap="textWrap",
        vertical_text_alignment="verticalTextAlignment",
        visibility="visibility"
    ),
    orientation="orientation",
    row_alternate_color_options=quicksight.CfnTemplate.RowAlternateColorOptionsProperty(
        row_alternate_colors=["rowAlternateColors"],
        status="status",
        use_primary_background_color="usePrimaryBackgroundColor"
    )
)
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.*;

TableOptionsProperty tableOptionsProperty = TableOptionsProperty.builder()
        .cellStyle(TableCellStyleProperty.builder()
                .backgroundColor("backgroundColor")
                .border(GlobalTableBorderOptionsProperty.builder()
                        .sideSpecificBorder(TableSideBorderOptionsProperty.builder()
                                .bottom(TableBorderOptionsProperty.builder()
                                        .color("color")
                                        .style("style")
                                        .thickness(123)
                                        .build())
                                .innerHorizontal(TableBorderOptionsProperty.builder()
                                        .color("color")
                                        .style("style")
                                        .thickness(123)
                                        .build())
                                .innerVertical(TableBorderOptionsProperty.builder()
                                        .color("color")
                                        .style("style")
                                        .thickness(123)
                                        .build())
                                .left(TableBorderOptionsProperty.builder()
                                        .color("color")
                                        .style("style")
                                        .thickness(123)
                                        .build())
                                .right(TableBorderOptionsProperty.builder()
                                        .color("color")
                                        .style("style")
                                        .thickness(123)
                                        .build())
                                .top(TableBorderOptionsProperty.builder()
                                        .color("color")
                                        .style("style")
                                        .thickness(123)
                                        .build())
                                .build())
                        .uniformBorder(TableBorderOptionsProperty.builder()
                                .color("color")
                                .style("style")
                                .thickness(123)
                                .build())
                        .build())
                .fontConfiguration(FontConfigurationProperty.builder()
                        .fontColor("fontColor")
                        .fontDecoration("fontDecoration")
                        .fontFamily("fontFamily")
                        .fontSize(FontSizeProperty.builder()
                                .absolute("absolute")
                                .relative("relative")
                                .build())
                        .fontStyle("fontStyle")
                        .fontWeight(FontWeightProperty.builder()
                                .name("name")
                                .build())
                        .build())
                .height(123)
                .horizontalTextAlignment("horizontalTextAlignment")
                .textWrap("textWrap")
                .verticalTextAlignment("verticalTextAlignment")
                .visibility("visibility")
                .build())
        .headerStyle(TableCellStyleProperty.builder()
                .backgroundColor("backgroundColor")
                .border(GlobalTableBorderOptionsProperty.builder()
                        .sideSpecificBorder(TableSideBorderOptionsProperty.builder()
                                .bottom(TableBorderOptionsProperty.builder()
                                        .color("color")
                                        .style("style")
                                        .thickness(123)
                                        .build())
                                .innerHorizontal(TableBorderOptionsProperty.builder()
                                        .color("color")
                                        .style("style")
                                        .thickness(123)
                                        .build())
                                .innerVertical(TableBorderOptionsProperty.builder()
                                        .color("color")
                                        .style("style")
                                        .thickness(123)
                                        .build())
                                .left(TableBorderOptionsProperty.builder()
                                        .color("color")
                                        .style("style")
                                        .thickness(123)
                                        .build())
                                .right(TableBorderOptionsProperty.builder()
                                        .color("color")
                                        .style("style")
                                        .thickness(123)
                                        .build())
                                .top(TableBorderOptionsProperty.builder()
                                        .color("color")
                                        .style("style")
                                        .thickness(123)
                                        .build())
                                .build())
                        .uniformBorder(TableBorderOptionsProperty.builder()
                                .color("color")
                                .style("style")
                                .thickness(123)
                                .build())
                        .build())
                .fontConfiguration(FontConfigurationProperty.builder()
                        .fontColor("fontColor")
                        .fontDecoration("fontDecoration")
                        .fontFamily("fontFamily")
                        .fontSize(FontSizeProperty.builder()
                                .absolute("absolute")
                                .relative("relative")
                                .build())
                        .fontStyle("fontStyle")
                        .fontWeight(FontWeightProperty.builder()
                                .name("name")
                                .build())
                        .build())
                .height(123)
                .horizontalTextAlignment("horizontalTextAlignment")
                .textWrap("textWrap")
                .verticalTextAlignment("verticalTextAlignment")
                .visibility("visibility")
                .build())
        .orientation("orientation")
        .rowAlternateColorOptions(RowAlternateColorOptionsProperty.builder()
                .rowAlternateColors(List.of("rowAlternateColors"))
                .status("status")
                .usePrimaryBackgroundColor("usePrimaryBackgroundColor")
                .build())
        .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 tableOptionsProperty = new TableOptionsProperty {
    CellStyle = new TableCellStyleProperty {
        BackgroundColor = "backgroundColor",
        Border = new GlobalTableBorderOptionsProperty {
            SideSpecificBorder = new TableSideBorderOptionsProperty {
                Bottom = new TableBorderOptionsProperty {
                    Color = "color",
                    Style = "style",
                    Thickness = 123
                },
                InnerHorizontal = new TableBorderOptionsProperty {
                    Color = "color",
                    Style = "style",
                    Thickness = 123
                },
                InnerVertical = new TableBorderOptionsProperty {
                    Color = "color",
                    Style = "style",
                    Thickness = 123
                },
                Left = new TableBorderOptionsProperty {
                    Color = "color",
                    Style = "style",
                    Thickness = 123
                },
                Right = new TableBorderOptionsProperty {
                    Color = "color",
                    Style = "style",
                    Thickness = 123
                },
                Top = new TableBorderOptionsProperty {
                    Color = "color",
                    Style = "style",
                    Thickness = 123
                }
            },
            UniformBorder = new TableBorderOptionsProperty {
                Color = "color",
                Style = "style",
                Thickness = 123
            }
        },
        FontConfiguration = new FontConfigurationProperty {
            FontColor = "fontColor",
            FontDecoration = "fontDecoration",
            FontFamily = "fontFamily",
            FontSize = new FontSizeProperty {
                Absolute = "absolute",
                Relative = "relative"
            },
            FontStyle = "fontStyle",
            FontWeight = new FontWeightProperty {
                Name = "name"
            }
        },
        Height = 123,
        HorizontalTextAlignment = "horizontalTextAlignment",
        TextWrap = "textWrap",
        VerticalTextAlignment = "verticalTextAlignment",
        Visibility = "visibility"
    },
    HeaderStyle = new TableCellStyleProperty {
        BackgroundColor = "backgroundColor",
        Border = new GlobalTableBorderOptionsProperty {
            SideSpecificBorder = new TableSideBorderOptionsProperty {
                Bottom = new TableBorderOptionsProperty {
                    Color = "color",
                    Style = "style",
                    Thickness = 123
                },
                InnerHorizontal = new TableBorderOptionsProperty {
                    Color = "color",
                    Style = "style",
                    Thickness = 123
                },
                InnerVertical = new TableBorderOptionsProperty {
                    Color = "color",
                    Style = "style",
                    Thickness = 123
                },
                Left = new TableBorderOptionsProperty {
                    Color = "color",
                    Style = "style",
                    Thickness = 123
                },
                Right = new TableBorderOptionsProperty {
                    Color = "color",
                    Style = "style",
                    Thickness = 123
                },
                Top = new TableBorderOptionsProperty {
                    Color = "color",
                    Style = "style",
                    Thickness = 123
                }
            },
            UniformBorder = new TableBorderOptionsProperty {
                Color = "color",
                Style = "style",
                Thickness = 123
            }
        },
        FontConfiguration = new FontConfigurationProperty {
            FontColor = "fontColor",
            FontDecoration = "fontDecoration",
            FontFamily = "fontFamily",
            FontSize = new FontSizeProperty {
                Absolute = "absolute",
                Relative = "relative"
            },
            FontStyle = "fontStyle",
            FontWeight = new FontWeightProperty {
                Name = "name"
            }
        },
        Height = 123,
        HorizontalTextAlignment = "horizontalTextAlignment",
        TextWrap = "textWrap",
        VerticalTextAlignment = "verticalTextAlignment",
        Visibility = "visibility"
    },
    Orientation = "orientation",
    RowAlternateColorOptions = new RowAlternateColorOptionsProperty {
        RowAlternateColors = new [] { "rowAlternateColors" },
        Status = "status",
        UsePrimaryBackgroundColor = "usePrimaryBackgroundColor"
    }
};
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"

tableOptionsProperty := &TableOptionsProperty{
	CellStyle: &TableCellStyleProperty{
		BackgroundColor: jsii.String("backgroundColor"),
		Border: &GlobalTableBorderOptionsProperty{
			SideSpecificBorder: &TableSideBorderOptionsProperty{
				Bottom: &TableBorderOptionsProperty{
					Color: jsii.String("color"),
					Style: jsii.String("style"),
					Thickness: jsii.Number(123),
				},
				InnerHorizontal: &TableBorderOptionsProperty{
					Color: jsii.String("color"),
					Style: jsii.String("style"),
					Thickness: jsii.Number(123),
				},
				InnerVertical: &TableBorderOptionsProperty{
					Color: jsii.String("color"),
					Style: jsii.String("style"),
					Thickness: jsii.Number(123),
				},
				Left: &TableBorderOptionsProperty{
					Color: jsii.String("color"),
					Style: jsii.String("style"),
					Thickness: jsii.Number(123),
				},
				Right: &TableBorderOptionsProperty{
					Color: jsii.String("color"),
					Style: jsii.String("style"),
					Thickness: jsii.Number(123),
				},
				Top: &TableBorderOptionsProperty{
					Color: jsii.String("color"),
					Style: jsii.String("style"),
					Thickness: jsii.Number(123),
				},
			},
			UniformBorder: &TableBorderOptionsProperty{
				Color: jsii.String("color"),
				Style: jsii.String("style"),
				Thickness: jsii.Number(123),
			},
		},
		FontConfiguration: &FontConfigurationProperty{
			FontColor: jsii.String("fontColor"),
			FontDecoration: jsii.String("fontDecoration"),
			FontFamily: jsii.String("fontFamily"),
			FontSize: &FontSizeProperty{
				Absolute: jsii.String("absolute"),
				Relative: jsii.String("relative"),
			},
			FontStyle: jsii.String("fontStyle"),
			FontWeight: &FontWeightProperty{
				Name: jsii.String("name"),
			},
		},
		Height: jsii.Number(123),
		HorizontalTextAlignment: jsii.String("horizontalTextAlignment"),
		TextWrap: jsii.String("textWrap"),
		VerticalTextAlignment: jsii.String("verticalTextAlignment"),
		Visibility: jsii.String("visibility"),
	},
	HeaderStyle: &TableCellStyleProperty{
		BackgroundColor: jsii.String("backgroundColor"),
		Border: &GlobalTableBorderOptionsProperty{
			SideSpecificBorder: &TableSideBorderOptionsProperty{
				Bottom: &TableBorderOptionsProperty{
					Color: jsii.String("color"),
					Style: jsii.String("style"),
					Thickness: jsii.Number(123),
				},
				InnerHorizontal: &TableBorderOptionsProperty{
					Color: jsii.String("color"),
					Style: jsii.String("style"),
					Thickness: jsii.Number(123),
				},
				InnerVertical: &TableBorderOptionsProperty{
					Color: jsii.String("color"),
					Style: jsii.String("style"),
					Thickness: jsii.Number(123),
				},
				Left: &TableBorderOptionsProperty{
					Color: jsii.String("color"),
					Style: jsii.String("style"),
					Thickness: jsii.Number(123),
				},
				Right: &TableBorderOptionsProperty{
					Color: jsii.String("color"),
					Style: jsii.String("style"),
					Thickness: jsii.Number(123),
				},
				Top: &TableBorderOptionsProperty{
					Color: jsii.String("color"),
					Style: jsii.String("style"),
					Thickness: jsii.Number(123),
				},
			},
			UniformBorder: &TableBorderOptionsProperty{
				Color: jsii.String("color"),
				Style: jsii.String("style"),
				Thickness: jsii.Number(123),
			},
		},
		FontConfiguration: &FontConfigurationProperty{
			FontColor: jsii.String("fontColor"),
			FontDecoration: jsii.String("fontDecoration"),
			FontFamily: jsii.String("fontFamily"),
			FontSize: &FontSizeProperty{
				Absolute: jsii.String("absolute"),
				Relative: jsii.String("relative"),
			},
			FontStyle: jsii.String("fontStyle"),
			FontWeight: &FontWeightProperty{
				Name: jsii.String("name"),
			},
		},
		Height: jsii.Number(123),
		HorizontalTextAlignment: jsii.String("horizontalTextAlignment"),
		TextWrap: jsii.String("textWrap"),
		VerticalTextAlignment: jsii.String("verticalTextAlignment"),
		Visibility: jsii.String("visibility"),
	},
	Orientation: jsii.String("orientation"),
	RowAlternateColorOptions: &RowAlternateColorOptionsProperty{
		RowAlternateColors: []*string{
			jsii.String("rowAlternateColors"),
		},
		Status: jsii.String("status"),
		UsePrimaryBackgroundColor: jsii.String("usePrimaryBackgroundColor"),
	},
}

Properties ​

cellStyleoptionalIResolvable | CfnTemplate.TableCellStylePropertycell_styleoptionaltyping.Union[IResolvable, TableCellStyleProperty]cellStyleoptionalIResolvableCellStyleoptionalIResolvableCellStyleoptionalinterface{} #
The table cell style of table cells.
headerStyleoptionalIResolvable | CfnTemplate.TableCellStylePropertyheader_styleoptionaltyping.Union[IResolvable, TableCellStyleProperty]headerStyleoptionalIResolvableHeaderStyleoptionalIResolvableHeaderStyleoptionalinterface{} #
The table cell style of a table header.
orientationoptionalstringorientationoptionalstrorientationoptionalStringOrientationoptionalstringOrientationoptional*string #
The orientation (vertical, horizontal) for a table.
rowAlternateColorOptionsoptionalIResolvable | CfnTemplate.RowAlternateColorOptionsPropertyrow_alternate_color_optionsoptionaltyping.Union[IResolvable, RowAlternateColorOptionsProperty]rowAlternateColorOptionsoptionalIResolvableRowAlternateColorOptionsoptionalIResolvableRowAlternateColorOptionsoptionalinterface{} #
The row alternate color options (widget status, row alternate colors) for a table.