SecurityIncidentResponse / Client / get_case_attachment_upload_url
get_case_attachment_upload_url¶
- SecurityIncidentResponse.Client.get_case_attachment_upload_url(**kwargs)¶
Uploads an attachment to a case.
See also: AWS API Documentation
Request Syntax
response = client.get_case_attachment_upload_url( caseId='string', fileName='string', contentLength=123, clientToken='string' )
- Parameters:
caseId (string) –
[REQUIRED]
Required element for GetCaseAttachmentUploadUrl to identify the case ID for uploading an attachment.
fileName (string) –
[REQUIRED]
Required element for GetCaseAttachmentUploadUrl to identify the file name of the attachment to upload.
contentLength (integer) –
[REQUIRED]
Required element for GetCaseAttachmentUploadUrl to identify the size of the file attachment.
clientToken (string) –
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.
- Return type:
dict
- Returns:
Response Syntax
{ 'attachmentPresignedUrl': 'string' }
Response Structure
(dict) –
attachmentPresignedUrl (string) –
Response element providing the Amazon S3 presigned URL to upload the attachment.
Exceptions
SecurityIncidentResponse.Client.exceptions.ServiceQuotaExceededException
SecurityIncidentResponse.Client.exceptions.AccessDeniedException
SecurityIncidentResponse.Client.exceptions.ValidationException
SecurityIncidentResponse.Client.exceptions.SecurityIncidentResponseNotActiveException
SecurityIncidentResponse.Client.exceptions.InternalServerException
SecurityIncidentResponse.Client.exceptions.ThrottlingException
SecurityIncidentResponse.Client.exceptions.ConflictException
SecurityIncidentResponse.Client.exceptions.ResourceNotFoundException
SecurityIncidentResponse.Client.exceptions.InvalidTokenException