get_case_attachment_upload_url
async
¶
get_case_attachment_upload_url(
case_id: CaseId,
file_name: FileName,
content_length: ContentLength,
*,
config_overrides: Optional[AsyncSecurityIRClientConfig] = None,
client_token: Optional[str] = None,
) -> GetCaseAttachmentUploadUrlResponse
Uploads an attachment to a case.
Parameters:
-
case_id(CaseId) –Required element for GetCaseAttachmentUploadUrl to identify the case ID for uploading an attachment.
-
file_name(FileName) –Required element for GetCaseAttachmentUploadUrl to identify the file name of the attachment to upload.
-
content_length(ContentLength) –Required element for GetCaseAttachmentUploadUrl to identify the size of the file attachment.
-
client_token(Optional[str], default:None) –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.
Raises:
-
AccessDeniedException– -
ConflictException– -
InternalServerException– -
InvalidTokenException– -
ResourceNotFoundException– -
SecurityIncidentResponseNotActiveException– -
ServiceQuotaExceededException– -
ThrottlingException– -
ValidationException– -
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Invoke GetCaseAttachmentUploadUrl
>>> await client.get_case_attachment_upload_url(case_id='8403556009', file_name='TestFileName', content_length=1500)
Source code in docs_src/capo_security_ir/_services/async_security_ir.py
1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 | |