CfnLayoutPropsMixin
- class aws_cdk.mixins_preview.aws_cases.mixins.CfnLayoutPropsMixin(props, *, strategy=None)
Bases:
MixinCreates 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.
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cases-layout.html
- CloudformationResource:
AWS::Cases::Layout
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
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.mixins_preview import mixins from aws_cdk.mixins_preview.aws_cases import mixins as cases_mixins cfn_layout_props_mixin = cases_mixins.CfnLayoutPropsMixin(cases_mixins.CfnLayoutMixinProps( content=cases_mixins.CfnLayoutPropsMixin.LayoutContentProperty( basic=cases_mixins.CfnLayoutPropsMixin.BasicLayoutProperty( more_info=cases_mixins.CfnLayoutPropsMixin.LayoutSectionsProperty( sections=[cases_mixins.CfnLayoutPropsMixin.SectionProperty( field_group=cases_mixins.CfnLayoutPropsMixin.FieldGroupProperty( fields=[cases_mixins.CfnLayoutPropsMixin.FieldItemProperty( id="id" )], name="name" ) )] ), top_panel=cases_mixins.CfnLayoutPropsMixin.LayoutSectionsProperty( sections=[cases_mixins.CfnLayoutPropsMixin.SectionProperty( field_group=cases_mixins.CfnLayoutPropsMixin.FieldGroupProperty( fields=[cases_mixins.CfnLayoutPropsMixin.FieldItemProperty( id="id" )], name="name" ) )] ) ) ), domain_id="domainId", name="name", tags=[CfnTag( key="key", value="value" )] ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::Cases::Layout.- Parameters:
props (
Union[CfnLayoutMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['content', 'domainId', 'name', 'tags']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
BasicLayoutProperty
- class CfnLayoutPropsMixin.BasicLayoutProperty(*, more_info=None, top_panel=None)
Bases:
objectContent specific to
BasicLayouttype.It configures fields in the top panel and More Info tab of agent application.
- Parameters:
more_info (
Union[IResolvable,LayoutSectionsProperty,Dict[str,Any],None]) – This represents sections in a tab of the page layout.top_panel (
Union[IResolvable,LayoutSectionsProperty,Dict[str,Any],None]) – This represents sections in a panel of the page layout.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_cases import mixins as cases_mixins basic_layout_property = cases_mixins.CfnLayoutPropsMixin.BasicLayoutProperty( more_info=cases_mixins.CfnLayoutPropsMixin.LayoutSectionsProperty( sections=[cases_mixins.CfnLayoutPropsMixin.SectionProperty( field_group=cases_mixins.CfnLayoutPropsMixin.FieldGroupProperty( fields=[cases_mixins.CfnLayoutPropsMixin.FieldItemProperty( id="id" )], name="name" ) )] ), top_panel=cases_mixins.CfnLayoutPropsMixin.LayoutSectionsProperty( sections=[cases_mixins.CfnLayoutPropsMixin.SectionProperty( field_group=cases_mixins.CfnLayoutPropsMixin.FieldGroupProperty( fields=[cases_mixins.CfnLayoutPropsMixin.FieldItemProperty( id="id" )], name="name" ) )] ) )
Attributes
- more_info
This represents sections in a tab of the page layout.
- top_panel
This represents sections in a panel of the page layout.
FieldGroupProperty
- class CfnLayoutPropsMixin.FieldGroupProperty(*, fields=None, name=None)
Bases:
objectObject for a group of fields and associated properties.
- Parameters:
fields (
Union[IResolvable,Sequence[Union[IResolvable,FieldItemProperty,Dict[str,Any]]],None]) – Represents an ordered list containing field related information.name (
Optional[str]) – Name of the field group.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_cases import mixins as cases_mixins field_group_property = cases_mixins.CfnLayoutPropsMixin.FieldGroupProperty( fields=[cases_mixins.CfnLayoutPropsMixin.FieldItemProperty( id="id" )], name="name" )
Attributes
- fields
Represents an ordered list containing field related information.
- name
Name of the field group.
FieldItemProperty
- class CfnLayoutPropsMixin.FieldItemProperty(*, id=None)
Bases:
objectObject for field related information.
- Parameters:
id (
Optional[str]) – Unique identifier of a field.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_cases import mixins as cases_mixins field_item_property = cases_mixins.CfnLayoutPropsMixin.FieldItemProperty( id="id" )
Attributes
- id
Unique identifier of a field.
LayoutContentProperty
- class CfnLayoutPropsMixin.LayoutContentProperty(*, basic=None)
Bases:
objectObject to store union of different versions of layout content.
- Parameters:
basic (
Union[IResolvable,BasicLayoutProperty,Dict[str,Any],None]) – Content specific toBasicLayouttype. It configures fields in the top panel and More Info tab of agent application.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_cases import mixins as cases_mixins layout_content_property = cases_mixins.CfnLayoutPropsMixin.LayoutContentProperty( basic=cases_mixins.CfnLayoutPropsMixin.BasicLayoutProperty( more_info=cases_mixins.CfnLayoutPropsMixin.LayoutSectionsProperty( sections=[cases_mixins.CfnLayoutPropsMixin.SectionProperty( field_group=cases_mixins.CfnLayoutPropsMixin.FieldGroupProperty( fields=[cases_mixins.CfnLayoutPropsMixin.FieldItemProperty( id="id" )], name="name" ) )] ), top_panel=cases_mixins.CfnLayoutPropsMixin.LayoutSectionsProperty( sections=[cases_mixins.CfnLayoutPropsMixin.SectionProperty( field_group=cases_mixins.CfnLayoutPropsMixin.FieldGroupProperty( fields=[cases_mixins.CfnLayoutPropsMixin.FieldItemProperty( id="id" )], name="name" ) )] ) ) )
Attributes
- basic
Content specific to
BasicLayouttype.It configures fields in the top panel and More Info tab of agent application.
LayoutSectionsProperty
- class CfnLayoutPropsMixin.LayoutSectionsProperty(*, sections=None)
Bases:
objectOrdered list containing different kinds of sections that can be added.
A LayoutSections object can only contain one section.
- Parameters:
sections (
Union[IResolvable,Sequence[Union[IResolvable,SectionProperty,Dict[str,Any]]],None]) – Ordered list containing different kinds of sections that can be added. A LayoutSections object can only contain one section.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_cases import mixins as cases_mixins layout_sections_property = cases_mixins.CfnLayoutPropsMixin.LayoutSectionsProperty( sections=[cases_mixins.CfnLayoutPropsMixin.SectionProperty( field_group=cases_mixins.CfnLayoutPropsMixin.FieldGroupProperty( fields=[cases_mixins.CfnLayoutPropsMixin.FieldItemProperty( id="id" )], name="name" ) )] )
Attributes
- sections
Ordered list containing different kinds of sections that can be added.
A LayoutSections object can only contain one section.
SectionProperty
- class CfnLayoutPropsMixin.SectionProperty(*, field_group=None)
Bases:
objectThis represents a sections within a panel or tab of the page layout.
- Parameters:
field_group (
Union[IResolvable,FieldGroupProperty,Dict[str,Any],None]) – Consists of a group of fields and associated properties.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_cases import mixins as cases_mixins section_property = cases_mixins.CfnLayoutPropsMixin.SectionProperty( field_group=cases_mixins.CfnLayoutPropsMixin.FieldGroupProperty( fields=[cases_mixins.CfnLayoutPropsMixin.FieldItemProperty( id="id" )], name="name" ) )
Attributes
- field_group
Consists of a group of fields and associated properties.