:doc:`SecurityIncidentResponse <../../security-ir>` / Client / create_case_comment

*******************
create_case_comment
*******************



.. py:method:: SecurityIncidentResponse.Client.create_case_comment(**kwargs)

  

  Adds a comment to an existing case.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/security-ir-2018-05-10/CreateCaseComment>`_  


  **Request Syntax**
  ::

    response = client.create_case_comment(
        caseId='string',
        clientToken='string',
        body='string'
    )
    
  :type caseId: string
  :param caseId: **[REQUIRED]** 

    Required element used in combination with CreateCaseComment to specify a case ID.

    

  
  :type clientToken: string
  :param clientToken: 

    

    .. note::

      

      The ``clientToken`` field is an idempotency key used to ensure that repeated attempts for a single action will be ignored by the server during retries. A caller supplied unique ID (typically a UUID) should be provided.

      

    

    This field is autopopulated if not provided.

  
  :type body: string
  :param body: **[REQUIRED]** 

    Required element used in combination with CreateCaseComment to add content for the new comment.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'commentId': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **commentId** *(string) --* 

        Response element indicating the new comment ID.

        
  
  **Exceptions**
  
  *   :py:class:`SecurityIncidentResponse.Client.exceptions.ServiceQuotaExceededException`

  
  *   :py:class:`SecurityIncidentResponse.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`SecurityIncidentResponse.Client.exceptions.ValidationException`

  
  *   :py:class:`SecurityIncidentResponse.Client.exceptions.SecurityIncidentResponseNotActiveException`

  
  *   :py:class:`SecurityIncidentResponse.Client.exceptions.InternalServerException`

  
  *   :py:class:`SecurityIncidentResponse.Client.exceptions.ThrottlingException`

  
  *   :py:class:`SecurityIncidentResponse.Client.exceptions.ConflictException`

  
  *   :py:class:`SecurityIncidentResponse.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`SecurityIncidentResponse.Client.exceptions.InvalidTokenException`

  