# LayoutSectionsProperty

Ordered list containing different kinds of sections that can be added.

A LayoutSections object can only contain one section.

- Source: Generated at build time
- Type last changed: v2.234.0 · 8 Jan 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cases as cases } from 'aws-cdk-lib';
const layoutSectionsProperty: cases.CfnLayout.LayoutSectionsProperty = {
  sections: [{
    fieldGroup: {
      fields: [{
        id: 'id',
      }],

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

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_cases as cases

layout_sections_property = cases.CfnLayout.LayoutSectionsProperty(
    sections=[cases.CfnLayout.SectionProperty(
        field_group=cases.CfnLayout.FieldGroupProperty(
            fields=[cases.CfnLayout.FieldItemProperty(
                id="id"
            )],

            # the properties below are optional
            name="name"
        )
    )]
)
```

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

LayoutSectionsProperty layoutSectionsProperty = LayoutSectionsProperty.builder()
        .sections(List.of(SectionProperty.builder()
                .fieldGroup(FieldGroupProperty.builder()
                        .fields(List.of(FieldItemProperty.builder()
                                .id("id")
                                .build()))

                        // the properties below are optional
                        .name("name")
                        .build())
                .build()))
        .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.Cases;

var layoutSectionsProperty = new LayoutSectionsProperty {
    Sections = new [] { new SectionProperty {
        FieldGroup = new FieldGroupProperty {
            Fields = new [] { new FieldItemProperty {
                Id = "id"
            } },

            // the properties below are optional
            Name = "name"
        }
    } }
};
```

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"

layoutSectionsProperty := &LayoutSectionsProperty{
	Sections: []interface{}{
		&SectionProperty{
			FieldGroup: &FieldGroupProperty{
				Fields: []interface{}{
					&FieldItemProperty{
						Id: jsii.String("id"),
					},
				},

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

## Properties

- `sections`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnLayout.SectionProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cases.CfnLayout.SectionProperty.html)[] — Ordered list containing different kinds of sections that can be added.

  A LayoutSections object can only contain one section.
