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

******************
update_case_status
******************



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

  

  Updates the state transitions for a designated cases.

   

  **Self-managed**: the following states are available for self-managed cases.

   

  
  * Submitted → Detection and Analysis
   
  * Detection and Analysis → Containment, Eradication, and Recovery
   
  * Detection and Analysis → Post-incident Activities
   
  * Containment, Eradication, and Recovery → Detection and Analysis
   
  * Containment, Eradication, and Recovery → Post-incident Activities
   
  * Post-incident Activities → Containment, Eradication, and Recovery
   
  * Post-incident Activities → Detection and Analysis
   
  * Any → Closed
  

   

  **AWS supported**: You must use the ``CloseCase`` API to close.

  

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


  **Request Syntax**
  ::

    response = client.update_case_status(
        caseId='string',
        caseStatus='Submitted'|'Detection and Analysis'|'Containment, Eradication and Recovery'|'Post-incident Activities'
    )
    
  :type caseId: string
  :param caseId: **[REQUIRED]** 

    Required element for UpdateCaseStatus to identify the case to update.

    

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

    Required element for UpdateCaseStatus to identify the status for a case. Options include ``Submitted | Detection and Analysis | Containment, Eradication and Recovery | Post-incident Activities``.

    

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

    
    ::

      {
          'caseStatus': 'Submitted'|'Detection and Analysis'|'Containment, Eradication and Recovery'|'Post-incident Activities'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **caseStatus** *(string) --* 

        Response element for UpdateCaseStatus showing the newly configured status.

        
  
  **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`

  