Skip to content
v2.278.0

CommentContentProperty Struct ​

Represents a comment.

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 commentContentProperty: cases.CfnRelatedItem.CommentContentProperty = {
  body: 'body',
  contentType: 'contentType',
};
python
# 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

comment_content_property = cases.CfnRelatedItem.CommentContentProperty(
    body="body",
    content_type="contentType"
)
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.*;

CommentContentProperty commentContentProperty = CommentContentProperty.builder()
        .body("body")
        .contentType("contentType")
        .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 commentContentProperty = new CommentContentProperty {
    Body = "body",
    ContentType = "contentType"
};
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"

commentContentProperty := &CommentContentProperty{
	Body: jsii.String("body"),
	ContentType: jsii.String("contentType"),
}

Properties ​

bodystringbodystrbodyStringBodystringBody*string required #
Text in the body of a comment.
contentTypestringcontent_typestrcontentTypeStringContentTypestringContentType*string required #
Type of the text in the comment.