v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-14139565.0 KB

Generates a pre-signed URL, request headers used to upload a code resource, and code artifact identifier for the uploaded resource.

You can upload your code resource to the URL with the request headers using any HTTP client.

post/uploadUrl

Request body

scanNamestring required

The name of the scan that will use the uploaded resource. CodeGuru Security uses the unique scan name to track revisions across multiple scans of the same resource. Use this <code>scanName</code> when you call <code>CreateScan</code> on the code resource you upload to this URL.

Response

Success

s3Urlstring password required

A pre-signed S3 URL. You can upload the code file you want to scan with the required <code>requestHeaders</code> using any HTTP client.

requestHeadersobject required

A set of key-value pairs that contain the required headers when uploading your resource.

codeArtifactIdstring required

The identifier for the uploaded code resource. Pass this to <code>CreateScan</code> to use the uploaded resources.