delete_function¶
Operation¶
delete_function
async
¶
delete_function(input: DeleteFunctionInput, plugins: list[Plugin] | None = None) -> DeleteFunctionOutput
Deletes a CloudFront function.
You cannot delete a function if it's associated with a cache behavior. First, update your distributions to remove the function association from all cache behaviors, then delete the function.
To delete a function, you must provide the function's name and version
(ETag value). To get these values, you can use ListFunctions and
DescribeFunction.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input
|
DeleteFunctionInput
|
An instance of |
required |
plugins
|
list[Plugin] | None
|
A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. |
None
|
Returns:
| Type | Description |
|---|---|
DeleteFunctionOutput
|
An instance of |
Input¶
DeleteFunctionInput
dataclass
¶
Output¶
DeleteFunctionOutput
dataclass
¶
Bases: _SerdeShape
Dataclass for DeleteFunctionOutput structure.