CodeGuruSecurity / Client / create_upload_url



Generates a pre-signed URL and request headers used to upload a code resource.

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

See also: AWS API Documentation

Request Syntax

response = client.create_upload_url(

scanName (string) –


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 scanName when you call CreateScan on the code resource you upload to this URL.

Return type:



Response Syntax

    'codeArtifactId': 'string',
    'requestHeaders': {
        'string': 'string'
    's3Url': 'string'

Response Structure

  • (dict) –

    • codeArtifactId (string) –

      The identifier for the uploaded code resource.

    • requestHeaders (dict) –

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

      • (string) –

        • (string) –

    • s3Url (string) –

      A pre-signed S3 URL. You can upload the code file you want to scan and add the required requestHeaders using any HTTP client.


  • CodeGuruSecurity.Client.exceptions.InternalServerException

  • CodeGuruSecurity.Client.exceptions.ThrottlingException

  • CodeGuruSecurity.Client.exceptions.ValidationException

  • CodeGuruSecurity.Client.exceptions.AccessDeniedException