# SectionalElementProperty

Struct · External

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.

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

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

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

C#:

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

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

- `excluded`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Excludes a sectional element that was generated by default for a specified data model.

- `level`: number — Specifies the size of the font for a `Heading` sectional element.

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

- `orientation`: string — Specifies the orientation for a `Divider` sectional element.

  Valid values are `horizontal` or `vertical` .

- `position`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnForm.FieldPositionProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_amplifyuibuilder.CfnForm.FieldPositionProperty.html) — Specifies the position of the text in a field for a `Text` sectional element.

- `text`: string — The text for a `Text` sectional element.

- `type`: string (required) — The type of sectional element.

  Valid values are `Heading` , `Text` , and `Divider` .
