CfnRelatedItemPropsMixin
- class aws_cdk.cfn_property_mixins.aws_cases.CfnRelatedItemPropsMixin(props, *, strategy=None)
Bases:
MixinResource Type definition for AWS::Cases::RelatedItem.
Creates a related item (comments) and associates it with a case.
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cases-relateditem.html
- CloudformationResource:
AWS::Cases::RelatedItem
- Mixin:
true
- 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.cfn_property_mixins import aws_cases as cases import aws_cdk as cdk # merge_strategy: cdk.IMergeStrategy cfn_related_item_props_mixin = cases.CfnRelatedItemPropsMixin(cases.CfnRelatedItemMixinProps( case_id="caseId", content=cases.CfnRelatedItemPropsMixin.RelatedItemContentProperty( comment=cases.CfnRelatedItemPropsMixin.CommentContentProperty( body="body", content_type="contentType" ) ), domain_id="domainId", tags=[cdk.CfnTag( key="key", value="value" )], type="type" ), strategy=merge_strategy )
Create a mixin to apply properties to
AWS::Cases::RelatedItem.- Parameters:
props (
Union[CfnRelatedItemMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[IMergeStrategy]) – Strategy for merging nested properties. Default: - PropertyMergeStrategy.combine()
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
None
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['caseId', 'content', 'domainId', 'tags', 'type']
Static Methods
- classmethod is_mixin(x)
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.
CommentContentProperty
- class CfnRelatedItemPropsMixin.CommentContentProperty(*, body=None, content_type=None)
Bases:
objectRepresents a comment.
- Parameters:
body (
Optional[str]) – Text in the body of a comment.content_type (
Optional[str]) – Type of the text in the comment.
- 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.cfn_property_mixins import aws_cases as cases comment_content_property = cases.CfnRelatedItemPropsMixin.CommentContentProperty( body="body", content_type="contentType" )
Attributes
- body
Text in the body of a comment.
- content_type
Type of the text in the comment.
RelatedItemContentProperty
- class CfnRelatedItemPropsMixin.RelatedItemContentProperty(*, comment=None)
Bases:
objectRepresents the content of a related item.
- Parameters:
comment (
Union[IResolvable,CommentContentProperty,Dict[str,Any],None]) – Represents a comment.- 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.cfn_property_mixins import aws_cases as cases related_item_content_property = cases.CfnRelatedItemPropsMixin.RelatedItemContentProperty( comment=cases.CfnRelatedItemPropsMixin.CommentContentProperty( body="body", content_type="contentType" ) )
Attributes