v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-14106607606.1 KB

Updates a CloudFront function.

You can update a function's code or the comment that describes the function. You cannot update a function's name.

To update a function, you provide the function's name and version (ETag value) along with the updated function code. To get the name and version, you can use ListFunctions and DescribeFunction.

put/2020-05-31/function/{Name}#If-Match

Path parameters

Namestring required

The name of the function that you are updating.

Headers

If-Matchstring required

The current version (<code>ETag</code> value) of the function that you are updating, which you can get using <code>DescribeFunction</code>.

Response

Success