Skip to content
v2.278.0

SectionStyleProperty Struct ​

The options that style a section.

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 sectionStyleProperty: quicksight.CfnAnalysis.SectionStyleProperty = {
  height: 'height',
  padding: {
    bottom: 'bottom',
    left: 'left',
    right: 'right',
    top: 'top',
  },
};
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_style_property = quicksight.CfnAnalysis.SectionStyleProperty(
    height="height",
    padding=quicksight.CfnAnalysis.SpacingProperty(
        bottom="bottom",
        left="left",
        right="right",
        top="top"
    )
)
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.*;

SectionStyleProperty sectionStyleProperty = SectionStyleProperty.builder()
        .height("height")
        .padding(SpacingProperty.builder()
                .bottom("bottom")
                .left("left")
                .right("right")
                .top("top")
                .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 sectionStyleProperty = new SectionStyleProperty {
    Height = "height",
    Padding = new SpacingProperty {
        Bottom = "bottom",
        Left = "left",
        Right = "right",
        Top = "top"
    }
};
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"

sectionStyleProperty := &SectionStyleProperty{
	Height: jsii.String("height"),
	Padding: &SpacingProperty{
		Bottom: jsii.String("bottom"),
		Left: jsii.String("left"),
		Right: jsii.String("right"),
		Top: jsii.String("top"),
	},
}

Properties ​

heightoptionalstringheightoptionalstrheightoptionalStringHeightoptionalstringHeightoptional*string #
The height of a section.

Heights can only be defined for header and footer sections. The default height margin is 0.5 inches.

paddingoptionalIResolvable | CfnAnalysis.SpacingPropertypaddingoptionaltyping.Union[IResolvable, SpacingProperty]paddingoptionalIResolvablePaddingoptionalIResolvablePaddingoptionalinterface{} #
The spacing between section content and its top, bottom, left, and right edges.

There is no padding by default.