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.86.0
published on Wednesday, Nov 18, 2026 by Pulumi
aws-native logo aws-native logo AWS Cloud Control

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

Viewing docs for AWS Cloud Control v1.86.0
published on Wednesday, Nov 18, 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.

    Look up Existing RelatedItem Resource

    Get an existing RelatedItem resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, opts?: CustomResourceOptions): RelatedItem
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None) -> RelatedItem
    func GetRelatedItem(ctx *Context, name string, id IDInput, state *RelatedItemState, opts ...ResourceOption) (*RelatedItem, error)
    public static RelatedItem Get(string name, Input<string> id, CustomResourceOptions? opts = null)
    public static RelatedItem get(String name, Output<String> id, CustomResourceOptions options)
    resources:  existingRelatedItem:    type: aws-native:cases:RelatedItem    get:      id: ${id}
    import {
      to = aws-native_cases_related_item.example
      id = "${id}"
    }
    
    name string
    The unique name of the resulting resource.
    id Input<ID>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resulting resource.
    id str
    The unique provider ID of the resource to look up.
    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 resulting resource.
    id IDInput
    The unique provider ID of the resource to look up.
    state RelatedItemState
    Pass nil. This resource has no state arguments.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resulting resource.
    id Input<string>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resulting resource.
    id Output<String>
    The unique provider ID of the resource to look up.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    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

    Type of the text in the comment.

    NameValue
    TextPlainText/Plain
    NameValue
    RelatedItemCommentContentContentTypeTextPlainText/Plain
    Value
    Text/Plain
    NameValue
    TextPlainText/Plain
    NameValue
    TextPlainText/Plain
    NameValue
    TEXT_PLAINText/Plain
    Value
    Text/Plain

    RelatedItemContent, RelatedItemContentArgs

    Represents the content of a related item.

    RelatedItemType

    The type of a related item.

    NameValue
    ContactContact
    CommentComment
    FileFile
    SlaSla
    ConnectCaseConnectCase
    CustomCustom
    NameValue
    RelatedItemTypeContactContact
    RelatedItemTypeCommentComment
    RelatedItemTypeFileFile
    RelatedItemTypeSlaSla
    RelatedItemTypeConnectCaseConnectCase
    RelatedItemTypeCustomCustom
    Value
    Contact
    Comment
    File
    Sla
    ConnectCase
    Custom
    NameValue
    ContactContact
    CommentComment
    FileFile
    SlaSla
    ConnectCaseConnectCase
    CustomCustom
    NameValue
    ContactContact
    CommentComment
    FileFile
    SlaSla
    ConnectCaseConnectCase
    CustomCustom
    NameValue
    CONTACTContact
    COMMENTComment
    FILEFile
    SLASla
    CONNECT_CASEConnectCase
    CUSTOMCustom
    Value
    Contact
    Comment
    File
    Sla
    ConnectCase
    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 AWS Cloud Control

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

    Viewing docs for AWS Cloud Control v1.86.0
    published on Wednesday, Nov 18, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial