Sends a POST request to start the signing process.
(request_id: str, source_key: str, destination_key: str, signing_data: CdSigningData)
| 165 | |
| 166 | |
| 167 | def cd_signer_start_request(request_id: str, source_key: str, destination_key: str, signing_data: CdSigningData): |
| 168 | """ |
| 169 | Sends a POST request to start the signing process. |
| 170 | """ |
| 171 | response_text = cd_signer_request( |
| 172 | method="POST", |
| 173 | path=f"/signing_requests/{request_id}/start", |
| 174 | data=json.dumps( |
| 175 | { |
| 176 | "iamRole": f"{signing_data.signing_role_arn}", |
| 177 | "s3Location": { |
| 178 | "bucket": signing_data.bucket_name, |
| 179 | "sourceKey": source_key, |
| 180 | "destinationKey": destination_key, |
| 181 | }, |
| 182 | } |
| 183 | ), |
| 184 | ).text |
| 185 | info(f"Signing request start: {response_text}") |
| 186 | |
| 187 | |
| 188 | def cd_signer_status_request(request_id: str): |
no test coverage detected