CfnRelatedItemPropsMixin

class aws_cdk.cfn_property_mixins.aws_cases.CfnRelatedItemPropsMixin(props, *, strategy=None)

Bases: Mixin

Resource 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 x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

CommentContentProperty

class CfnRelatedItemPropsMixin.CommentContentProperty(*, body=None, content_type=None)

Bases: object

Represents 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:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cases-relateditem-commentcontent.html

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cases-relateditem-commentcontent.html#cfn-cases-relateditem-commentcontent-body

content_type

Type of the text in the comment.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cases-relateditem-commentcontent.html#cfn-cases-relateditem-commentcontent-contenttype

RelatedItemContentProperty

class CfnRelatedItemPropsMixin.RelatedItemContentProperty(*, comment=None)

Bases: object

Represents the content of a related item.

Parameters:

comment (Union[IResolvable, CommentContentProperty, Dict[str, Any], None]) – Represents a comment.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cases-relateditem-relateditemcontent.html

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

comment

Represents a comment.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cases-relateditem-relateditemcontent.html#cfn-cases-relateditem-relateditemcontent-comment