v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-14106607606.1 KB

Gets the code of a CloudFront function. To get configuration information and metadata about a function, use DescribeFunction.

To get a function's code, you must provide the function's name and stage. To get these values, you can use ListFunctions.

get/2020-05-31/function/{Name}

Path parameters

Namestring required

The name of the function whose code you are getting.

Query parameters

Stage'DEVELOPMENT' | 'LIVE'

The function's stage, either <code>DEVELOPMENT</code> or <code>LIVE</code>.

Response

Success