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

Function cd_signer_create_request

scripts/build.py:151–164  ·  view source on GitHub ↗

Sends a POST request to create a new signing request. After creation, we need to send another request to start it.

(manifest: Any)

Source from the content-addressed store, hash-verified

149
150
151def cd_signer_create_request(manifest: Any) -> str:
152 """
153 Sends a POST request to create a new signing request. After creation, we
154 need to send another request to start it.
155 """
156 response = cd_signer_request(
157 method="POST",
158 path="/signing_requests",
159 data=json.dumps({"manifest": manifest}),
160 )
161 response_json = response.json()
162 info(f"Signing request create: {response_json}")
163 request_id = response_json["signingRequestId"]
164 return request_id
165
166
167def cd_signer_start_request(request_id: str, source_key: str, destination_key: str, signing_data: CdSigningData):

Callers 1

sign_executableFunction · 0.85

Calls 3

infoFunction · 0.90
cd_signer_requestFunction · 0.85
jsonMethod · 0.45

Tested by

no test coverage detected