Skip to content
v2.278.0

CfnRelatedItemProps ​

Struct External

Properties for defining a CfnRelatedItem.

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 cfnRelatedItemProps: cases.CfnRelatedItemProps = {
  caseId: 'caseId',
  content: {
    comment: {
      body: 'body',
      contentType: 'contentType',
    },
  },
  domainId: 'domainId',
  type: 'type',

  // the properties below are optional
  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_related_item_props = cases.CfnRelatedItemProps(
    case_id="caseId",
    content=cases.CfnRelatedItem.RelatedItemContentProperty(
        comment=cases.CfnRelatedItem.CommentContentProperty(
            body="body",
            content_type="contentType"
        )
    ),
    domain_id="domainId",
    type="type",

    # the properties below are optional
    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.*;

CfnRelatedItemProps cfnRelatedItemProps = CfnRelatedItemProps.builder()
        .caseId("caseId")
        .content(RelatedItemContentProperty.builder()
                .comment(CommentContentProperty.builder()
                        .body("body")
                        .contentType("contentType")
                        .build())
                .build())
        .domainId("domainId")
        .type("type")

        // the properties below are optional
        .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 cfnRelatedItemProps = new CfnRelatedItemProps {
    CaseId = "caseId",
    Content = new RelatedItemContentProperty {
        Comment = new CommentContentProperty {
            Body = "body",
            ContentType = "contentType"
        }
    },
    DomainId = "domainId",
    Type = "type",

    // the properties below are optional
    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"

cfnRelatedItemProps := &CfnRelatedItemProps{
	CaseId: jsii.String("caseId"),
	Content: &RelatedItemContentProperty{
		Comment: &CommentContentProperty{
			Body: jsii.String("body"),
			ContentType: jsii.String("contentType"),
		},
	},
	DomainId: jsii.String("domainId"),
	Type: jsii.String("type"),

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

Properties ​

caseIdstringcase_idstrcaseIdStringCaseIdstringCaseId*string required #
A unique identifier of the case.
contentIResolvable | CfnRelatedItem.RelatedItemContentPropertycontenttyping.Union[IResolvable, RelatedItemContentProperty]contentIResolvableContentIResolvableContentinterface{} required #
Represents the content of a related item.
domainIdstringdomain_idstrdomainIdStringDomainIdstringDomainId*string required #
The unique identifier of the Cases domain.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
A list of tags on the related item.
typestringtypestrtypeStringTypestringType*string required #
The type of a related item.