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 |
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.
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.
Instances
Eq DeleteFunctionResponse Source # | |
Defined in Amazonka.CloudFront.DeleteFunction | |
Read DeleteFunctionResponse Source # | |
Show DeleteFunctionResponse Source # | |
Defined in Amazonka.CloudFront.DeleteFunction showsPrec :: Int -> DeleteFunctionResponse -> ShowS # show :: DeleteFunctionResponse -> String # showList :: [DeleteFunctionResponse] -> ShowS # | |
Generic DeleteFunctionResponse Source # | |
Defined in Amazonka.CloudFront.DeleteFunction type Rep DeleteFunctionResponse :: Type -> Type # | |
NFData DeleteFunctionResponse Source # | |
Defined in Amazonka.CloudFront.DeleteFunction rnf :: DeleteFunctionResponse -> () # | |
type Rep DeleteFunctionResponse Source # | |
Defined in Amazonka.CloudFront.DeleteFunction |
newDeleteFunctionResponse :: DeleteFunctionResponse Source #
Create a value of DeleteFunctionResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.