MCPcopy Create free account
hub / github.com/aws/amazon-q-developer-cli / cd_signer_start_request

Function cd_signer_start_request

scripts/build.py:167–185  ·  view source on GitHub ↗

Sends a POST request to start the signing process.

(request_id: str, source_key: str, destination_key: str, signing_data: CdSigningData)

Source from the content-addressed store, hash-verified

165
166
167def 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
188def cd_signer_status_request(request_id: str):

Callers 1

sign_executableFunction · 0.85

Calls 2

infoFunction · 0.90
cd_signer_requestFunction · 0.85

Tested by

no test coverage detected