1. Registry
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. cases
  6. RelatedItem

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.81.0
published on Monday, Sep 28, 2026 by Pulumi
aws-native logo aws-native logo

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.81.0
published on Monday, Sep 28, 2026 by Pulumi

    Resource Type definition for AWS::Cases::RelatedItem. Creates a related item (comments) and associates it with a case.

    Create RelatedItem Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new RelatedItem(name: string, args: RelatedItemArgs, opts?: CustomResourceOptions);
    @overload
    def RelatedItem(resource_name: str,
                    args: RelatedItemArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def RelatedItem(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    case_id: Optional[str] = None,
                    content: Optional[RelatedItemContentArgs] = None,
                    domain_id: Optional[str] = None,
                    type: Optional[RelatedItemType] = None,
                    tags: Optional[Sequence[_root_inputs.TagArgs]] = None)
    func NewRelatedItem(ctx *Context, name string, args RelatedItemArgs, opts ...ResourceOption) (*RelatedItem, error)
    public RelatedItem(string name, RelatedItemArgs args, CustomResourceOptions? opts = null)
    public RelatedItem(String name, RelatedItemArgs args)
    public RelatedItem(String name, RelatedItemArgs args, CustomResourceOptions options)
    
    type: aws-native:cases:RelatedItem
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "aws-native_cases_related_item" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args RelatedItemArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args RelatedItemArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args RelatedItemArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RelatedItemArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RelatedItemArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    RelatedItem Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The RelatedItem resource accepts the following input properties:

    CaseId string
    A unique identifier of the case.
    Content Pulumi.AwsNative.Cases.Inputs.RelatedItemContent
    The content of a related item to be created.
    DomainId string
    The unique identifier of the Cases domain.
    Type Pulumi.AwsNative.Cases.RelatedItemType
    The type of a related item.
    Tags List<Pulumi.AwsNative.Inputs.Tag>
    A list of tags on the related item.
    CaseId string
    A unique identifier of the case.
    Content RelatedItemContentArgs
    The content of a related item to be created.
    DomainId string
    The unique identifier of the Cases domain.
    Type RelatedItemType
    The type of a related item.
    Tags TagArgs
    A list of tags on the related item.
    case_id string
    A unique identifier of the case.
    content object
    The content of a related item to be created.
    domain_id string
    The unique identifier of the Cases domain.
    type "Contact" | "Comment" | "File" | "Sla" | "ConnectCase" | "Custom"
    The type of a related item.
    tags list(object)
    A list of tags on the related item.
    caseId String
    A unique identifier of the case.
    content RelatedItemContent
    The content of a related item to be created.
    domainId String
    The unique identifier of the Cases domain.
    type RelatedItemType
    The type of a related item.
    tags List<Tag>
    A list of tags on the related item.
    caseId string
    A unique identifier of the case.
    content RelatedItemContent
    The content of a related item to be created.
    domainId string
    The unique identifier of the Cases domain.
    type RelatedItemType
    The type of a related item.
    tags Tag[]
    A list of tags on the related item.
    case_id str
    A unique identifier of the case.
    content RelatedItemContentArgs
    The content of a related item to be created.
    domain_id str
    The unique identifier of the Cases domain.
    type RelatedItemType
    The type of a related item.
    tags Sequence[TagArgs]
    A list of tags on the related item.
    caseId String
    A unique identifier of the case.
    content Property Map
    The content of a related item to be created.
    domainId String
    The unique identifier of the Cases domain.
    type "Contact" | "Comment" | "File" | "Sla" | "ConnectCase" | "Custom"
    The type of a related item.
    tags List<Property Map>
    A list of tags on the related item.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the RelatedItem resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    RelatedItemArn string
    The Amazon Resource Name (ARN) of the related item.
    RelatedItemId string
    The unique identifier of the related item.
    Id string
    The provider-assigned unique ID for this managed resource.
    RelatedItemArn string
    The Amazon Resource Name (ARN) of the related item.
    RelatedItemId string
    The unique identifier of the related item.
    id string
    The provider-assigned unique ID for this managed resource.
    related_item_arn string
    The Amazon Resource Name (ARN) of the related item.
    related_item_id string
    The unique identifier of the related item.
    id String
    The provider-assigned unique ID for this managed resource.
    relatedItemArn String
    The Amazon Resource Name (ARN) of the related item.
    relatedItemId String
    The unique identifier of the related item.
    id string
    The provider-assigned unique ID for this managed resource.
    relatedItemArn string
    The Amazon Resource Name (ARN) of the related item.
    relatedItemId string
    The unique identifier of the related item.
    id str
    The provider-assigned unique ID for this managed resource.
    related_item_arn str
    The Amazon Resource Name (ARN) of the related item.
    related_item_id str
    The unique identifier of the related item.
    id String
    The provider-assigned unique ID for this managed resource.
    relatedItemArn String
    The Amazon Resource Name (ARN) of the related item.
    relatedItemId String
    The unique identifier of the related item.

    Supporting Types

    RelatedItemCommentContent, RelatedItemCommentContentArgs

    Represents a comment.
    Body string
    Text in the body of a comment.
    ContentType Pulumi.AwsNative.Cases.RelatedItemCommentContentContentType
    Type of the text in the comment.
    Body string
    Text in the body of a comment.
    ContentType RelatedItemCommentContentContentType
    Type of the text in the comment.
    body string
    Text in the body of a comment.
    content_type "Text/Plain"
    Type of the text in the comment.
    body String
    Text in the body of a comment.
    contentType RelatedItemCommentContentContentType
    Type of the text in the comment.
    body string
    Text in the body of a comment.
    contentType RelatedItemCommentContentContentType
    Type of the text in the comment.
    body str
    Text in the body of a comment.
    content_type RelatedItemCommentContentContentType
    Type of the text in the comment.
    body String
    Text in the body of a comment.
    contentType "Text/Plain"
    Type of the text in the comment.

    RelatedItemCommentContentContentType, RelatedItemCommentContentContentTypeArgs

    TextPlain
    Text/Plain
    RelatedItemCommentContentContentTypeTextPlain
    Text/Plain
    "Text/Plain"
    Text/Plain
    TextPlain
    Text/Plain
    TextPlain
    Text/Plain
    TEXT_PLAIN
    Text/Plain
    "Text/Plain"
    Text/Plain

    RelatedItemContent, RelatedItemContentArgs

    Represents the content of a related item.

    RelatedItemType, RelatedItemTypeArgs

    Contact
    Contact
    Comment
    Comment
    File
    File
    Sla
    Sla
    ConnectCase
    ConnectCase
    Custom
    Custom
    RelatedItemTypeContact
    Contact
    RelatedItemTypeComment
    Comment
    RelatedItemTypeFile
    File
    RelatedItemTypeSla
    Sla
    RelatedItemTypeConnectCase
    ConnectCase
    RelatedItemTypeCustom
    Custom
    "Contact"
    Contact
    "Comment"
    Comment
    "File"
    File
    "Sla"
    Sla
    "ConnectCase"
    ConnectCase
    "Custom"
    Custom
    Contact
    Contact
    Comment
    Comment
    File
    File
    Sla
    Sla
    ConnectCase
    ConnectCase
    Custom
    Custom
    Contact
    Contact
    Comment
    Comment
    File
    File
    Sla
    Sla
    ConnectCase
    ConnectCase
    Custom
    Custom
    CONTACT
    Contact
    COMMENT
    Comment
    FILE
    File
    SLA
    Sla
    CONNECT_CASE
    ConnectCase
    CUSTOM
    Custom
    "Contact"
    Contact
    "Comment"
    Comment
    "File"
    File
    "Sla"
    Sla
    "ConnectCase"
    ConnectCase
    "Custom"
    Custom

    Tag, TagArgs

    A set of tags to apply to the resource.
    Key string
    The key name of the tag
    Value string
    The value of the tag
    Key string
    The key name of the tag
    Value string
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key str
    The key name of the tag
    value str
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo aws-native logo

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.81.0
    published on Monday, Sep 28, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial