Class CfnLayout
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.cases.CfnLayout
- All Implemented Interfaces:
IInspectable,ILayoutRef,IEnvironmentAware,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.125.0 (build fdbe357)",
date="2026-01-09T10:20:13.554Z")
@Stability(Stable)
public class CfnLayout
extends CfnResource
implements IInspectable, ILayoutRef, ITaggableV2
Creates a layout in the Cases domain.
Layouts define the following configuration in the top section and More Info tab of the Cases user interface:
- Fields to display to the users
- Field ordering
Title and Status fields cannot be part of layouts since they are not configurable.
Example:
// 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.*;
CfnLayout cfnLayout = CfnLayout.Builder.create(this, "MyCfnLayout")
.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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceContent specific toBasicLayouttype.static final classA fluent builder forCfnLayout.static interfaceObject for a group of fields and associated properties.static interfaceObject for field related information.static interfaceObject to store union of different versions of layout content.static interfaceOrdered list containing different kinds of sections that can be added.static interfaceThis represents a sections within a panel or tab of the page layout.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.cases.ILayoutRef
ILayoutRef.Jsii$Default, ILayoutRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnLayout(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnLayout(software.amazon.jsii.JsiiObjectRef objRef) CfnLayout(software.constructs.Construct scope, String id, CfnLayoutProps props) Create a newAWS::Cases::Layout. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForLayout(ILayoutRef resource) Timestamp at which the resource was created.Timestamp at which the resource was created or last modified.The Amazon Resource Name (ARN) of the newly created layout.The unique identifier of the layout.Tag Manager which manages the tags for this resource.Object to store union of different versions of layout content.The unique identifier of the Cases domain.A reference to a Layout resource.getName()The name of the layout.getTags()An array of key-value pairs to apply to this resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnLayout.renderProperties(Map<String, Object> props) voidsetContent(IResolvable value) Object to store union of different versions of layout content.voidObject to store union of different versions of layout content.voidsetDomainId(String value) The unique identifier of the Cases domain.voidThe name of the layout.voidAn array of key-value pairs to apply to this resource.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnLayout
protected CfnLayout(software.amazon.jsii.JsiiObjectRef objRef) -
CfnLayout
protected CfnLayout(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnLayout
@Stability(Stable) public CfnLayout(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnLayoutProps props) Create a newAWS::Cases::Layout.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForLayout
- Parameters:
resource- This parameter is required.
-
isCfnLayout
Checks whether the given object is a CfnLayout.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrCreatedTime
Timestamp at which the resource was created. -
getAttrLastModifiedTime
Timestamp at which the resource was created or last modified. -
getAttrLayoutArn
The Amazon Resource Name (ARN) of the newly created layout. -
getAttrLayoutId
The unique identifier of the layout. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getLayoutRef
A reference to a Layout resource.- Specified by:
getLayoutRefin interfaceILayoutRef
-
getContent
Object to store union of different versions of layout content.Returns union: either
IResolvableorCfnLayout.LayoutContentProperty -
setContent
Object to store union of different versions of layout content. -
setContent
Object to store union of different versions of layout content. -
getName
The name of the layout. -
setName
The name of the layout. -
getDomainId
The unique identifier of the Cases domain. -
setDomainId
The unique identifier of the Cases domain. -
getTags
An array of key-value pairs to apply to this resource. -
setTags
An array of key-value pairs to apply to this resource.
-