delete_function¶
Operation¶
delete_function
async
¶
delete_function(request: DeleteFunctionInput | DeleteFunctionInputDict, /, *, plugins: list[Plugin] | None = None) -> DeleteFunctionOutput
delete_function(*, plugins: list[Plugin] | None = None, **kwargs: Unpack[DeleteFunctionInputDict]) -> 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 |
|---|---|---|---|
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¶
Pass the input fields as keyword arguments, or pass a model or dictionary as the first positional argument. Pass plugins separately as a keyword argument.
Model¶
DeleteFunctionInput
dataclass
¶
Dictionaries¶
Output¶
DeleteFunctionOutput
dataclass
¶
Bases: _SerdeShape
Dataclass for DeleteFunctionOutput structure.