Skip to content
v2.278.0

SectionalElementProperty Struct ​

The SectionalElement property specifies the configuration information for a visual helper element for a form.

A sectional element can be a header, a text block, or a divider. These elements are static and not associated with any data.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_amplifyuibuilder as amplifyuibuilder } from 'aws-cdk-lib';
const sectionalElementProperty: amplifyuibuilder.CfnForm.SectionalElementProperty = {
  type: 'type',

  // the properties below are optional
  excluded: false,
  level: 123,
  orientation: 'orientation',
  position: {
    below: 'below',
    fixed: 'fixed',
    rightOf: 'rightOf',
  },
  text: 'text',
};
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_amplifyuibuilder as amplifyuibuilder

sectional_element_property = amplifyuibuilder.CfnForm.SectionalElementProperty(
    type="type",

    # the properties below are optional
    excluded=False,
    level=123,
    orientation="orientation",
    position=amplifyuibuilder.CfnForm.FieldPositionProperty(
        below="below",
        fixed="fixed",
        right_of="rightOf"
    ),
    text="text"
)
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.amplifyuibuilder.*;

SectionalElementProperty sectionalElementProperty = SectionalElementProperty.builder()
        .type("type")

        // the properties below are optional
        .excluded(false)
        .level(123)
        .orientation("orientation")
        .position(FieldPositionProperty.builder()
                .below("below")
                .fixed("fixed")
                .rightOf("rightOf")
                .build())
        .text("text")
        .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.AmplifyUIBuilder;

var sectionalElementProperty = new SectionalElementProperty {
    Type = "type",

    // the properties below are optional
    Excluded = false,
    Level = 123,
    Orientation = "orientation",
    Position = new FieldPositionProperty {
        Below = "below",
        Fixed = "fixed",
        RightOf = "rightOf"
    },
    Text = "text"
};
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"

sectionalElementProperty := &SectionalElementProperty{
	Type: jsii.String("type"),

	// the properties below are optional
	Excluded: jsii.Boolean(false),
	Level: jsii.Number(123),
	Orientation: jsii.String("orientation"),
	Position: &FieldPositionProperty{
		Below: jsii.String("below"),
		Fixed: jsii.String("fixed"),
		RightOf: jsii.String("rightOf"),
	},
	Text: jsii.String("text"),
}

Properties ​

excludedoptionalboolean | IResolvableexcludedoptionaltyping.Union[bool, IResolvable]excludedoptionalBooleanExcludedoptionalboolExcludedoptionalinterface{} #
Excludes a sectional element that was generated by default for a specified data model.
leveloptionalnumberleveloptionalint | floatleveloptionalNumberLeveloptionaldoubleLeveloptional*float64 #
Specifies the size of the font for a `Heading` sectional element.

Valid values are 1 | 2 | 3 | 4 | 5 | 6 .

orientationoptionalstringorientationoptionalstrorientationoptionalStringOrientationoptionalstringOrientationoptional*string #
Specifies the orientation for a `Divider` sectional element.

Valid values are horizontal or vertical .

positionoptionalIResolvable | CfnForm.FieldPositionPropertypositionoptionaltyping.Union[IResolvable, FieldPositionProperty]positionoptionalIResolvablePositionoptionalIResolvablePositionoptionalinterface{} #
Specifies the position of the text in a field for a `Text` sectional element.
textoptionalstringtextoptionalstrtextoptionalStringTextoptionalstringTextoptional*string #
The text for a `Text` sectional element.
typestringtypestrtypeStringTypestringType*string required #
The type of sectional element.

Valid values are Heading , Text , and Divider .