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

******************************
get_case_attachment_upload_url
******************************



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

  

  Uploads an attachment to a case.

  

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


  **Request Syntax**
  ::

    response = client.get_case_attachment_upload_url(
        caseId='string',
        fileName='string',
        contentLength=123,
        clientToken='string'
    )
    
  :type caseId: string
  :param caseId: **[REQUIRED]** 

    Required element for GetCaseAttachmentUploadUrl to identify the case ID for uploading an attachment.

    

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

    Required element for GetCaseAttachmentUploadUrl to identify the file name of the attachment to upload.

    

  
  :type contentLength: integer
  :param contentLength: **[REQUIRED]** 

    Required element for GetCaseAttachmentUploadUrl to identify the size of the file attachment.

    

  
  :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.

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

    
    ::

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

    

    - *(dict) --* 
      

      - **attachmentPresignedUrl** *(string) --* 

        Response element providing the Amazon S3 presigned URL to upload the attachment.

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

  