Skip to content
v2.278.0

CfnLayoutProps Struct ​

Properties for defining a CfnLayout.

Example ​

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 cfnLayoutProps: cases.CfnLayoutProps = {
  content: {
    basic: {
      moreInfo: {
        sections: [{
          fieldGroup: {
            fields: [{
              id: 'id',
            }],

            // the properties below are optional
            name: 'name',
          },
        }],
      },
      topPanel: {
        sections: [{
          fieldGroup: {
            fields: [{
              id: 'id',
            }],

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

  // the properties below are optional
  domainId: 'domainId',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
python
from aws_cdk import CfnTag
# 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

cfn_layout_props = cases.CfnLayoutProps(
    content=cases.CfnLayout.LayoutContentProperty(
        basic=cases.CfnLayout.BasicLayoutProperty(
            more_info=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"
                    )
                )]
            ),
            top_panel=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"
                    )
                )]
            )
        )
    ),
    name="name",

    # the properties below are optional
    domain_id="domainId",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
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.*;

CfnLayoutProps cfnLayoutProps = CfnLayoutProps.builder()
        .content(LayoutContentProperty.builder()
                .basic(BasicLayoutProperty.builder()
                        .moreInfo(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())
                        .topPanel(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())
                        .build())
                .build())
        .name("name")

        // the properties below are optional
        .domainId("domainId")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .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.Cases;

var cfnLayoutProps = new CfnLayoutProps {
    Content = new LayoutContentProperty {
        Basic = new BasicLayoutProperty {
            MoreInfo = new LayoutSectionsProperty {
                Sections = new [] { new SectionProperty {
                    FieldGroup = new FieldGroupProperty {
                        Fields = new [] { new FieldItemProperty {
                            Id = "id"
                        } },

                        // the properties below are optional
                        Name = "name"
                    }
                } }
            },
            TopPanel = new LayoutSectionsProperty {
                Sections = new [] { new SectionProperty {
                    FieldGroup = new FieldGroupProperty {
                        Fields = new [] { new FieldItemProperty {
                            Id = "id"
                        } },

                        // the properties below are optional
                        Name = "name"
                    }
                } }
            }
        }
    },
    Name = "name",

    // the properties below are optional
    DomainId = "domainId",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
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"

cfnLayoutProps := &CfnLayoutProps{
	Content: &LayoutContentProperty{
		Basic: &BasicLayoutProperty{
			MoreInfo: &LayoutSectionsProperty{
				Sections: []interface{}{
					&SectionProperty{
						FieldGroup: &FieldGroupProperty{
							Fields: []interface{}{
								&FieldItemProperty{
									Id: jsii.String("id"),
								},
							},

							// the properties below are optional
							Name: jsii.String("name"),
						},
					},
				},
			},
			TopPanel: &LayoutSectionsProperty{
				Sections: []interface{}{
					&SectionProperty{
						FieldGroup: &FieldGroupProperty{
							Fields: []interface{}{
								&FieldItemProperty{
									Id: jsii.String("id"),
								},
							},

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

	// the properties below are optional
	DomainId: jsii.String("domainId"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

contentIResolvable | CfnLayout.LayoutContentPropertycontenttyping.Union[IResolvable, LayoutContentProperty]contentIResolvableContentIResolvableContentinterface{} required #
Object to store union of different versions of layout content.
domainIdoptionalstringdomain_idoptionalstrdomainIdoptionalStringDomainIdoptionalstringDomainIdoptional*string #
The unique identifier of the Cases domain.
namestringnamestrnameStringNamestringName*string required #
The name of the layout.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
An array of key-value pairs to apply to this resource.