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
clientTokenfield 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.ServiceQuotaExceededExceptionSecurityIncidentResponse.Client.exceptions.AccessDeniedExceptionSecurityIncidentResponse.Client.exceptions.ValidationExceptionSecurityIncidentResponse.Client.exceptions.SecurityIncidentResponseNotActiveExceptionSecurityIncidentResponse.Client.exceptions.InternalServerExceptionSecurityIncidentResponse.Client.exceptions.ThrottlingExceptionSecurityIncidentResponse.Client.exceptions.ConflictExceptionSecurityIncidentResponse.Client.exceptions.ResourceNotFoundExceptionSecurityIncidentResponse.Client.exceptions.InvalidTokenException