| Copyright | (c) 2013-2021 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
Amazonka.CloudFront.DeleteFunction
Description
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.
Synopsis
Creating a Request
data DeleteFunction Source #
See: newDeleteFunction smart constructor.
Constructors
| DeleteFunction' | |
Instances
Create a value of DeleteFunction with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:ifMatch:DeleteFunction', deleteFunction_ifMatch - The current version (ETag value) of the function that you are
deleting, which you can get using DescribeFunction.
$sel:name:DeleteFunction', deleteFunction_name - The name of the function that you are deleting.
Request Lenses
deleteFunction_ifMatch :: Lens' DeleteFunction Text Source #
The current version (ETag value) of the function that you are
deleting, which you can get using DescribeFunction.
deleteFunction_name :: Lens' DeleteFunction Text Source #
The name of the function that you are deleting.
Destructuring the Response
data DeleteFunctionResponse Source #
See: newDeleteFunctionResponse smart constructor.
Constructors
| DeleteFunctionResponse' | |
Instances
newDeleteFunctionResponse :: DeleteFunctionResponse Source #
Create a value of DeleteFunctionResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.