| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
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
Arguments
| :: Text | |
| -> Text | |
| -> DeleteFunction |
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.
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
| Generic DeleteFunctionResponse Source # | |
Defined in Amazonka.CloudFront.DeleteFunction Associated Types type Rep DeleteFunctionResponse :: Type -> Type # Methods from :: DeleteFunctionResponse -> Rep DeleteFunctionResponse x # to :: Rep DeleteFunctionResponse x -> DeleteFunctionResponse # | |
| Read DeleteFunctionResponse Source # | |
Defined in Amazonka.CloudFront.DeleteFunction | |
| Show DeleteFunctionResponse Source # | |
Defined in Amazonka.CloudFront.DeleteFunction Methods showsPrec :: Int -> DeleteFunctionResponse -> ShowS # show :: DeleteFunctionResponse -> String # showList :: [DeleteFunctionResponse] -> ShowS # | |
| NFData DeleteFunctionResponse Source # | |
Defined in Amazonka.CloudFront.DeleteFunction Methods rnf :: DeleteFunctionResponse -> () # | |
| Eq DeleteFunctionResponse Source # | |
Defined in Amazonka.CloudFront.DeleteFunction Methods (==) :: DeleteFunctionResponse -> DeleteFunctionResponse -> Bool # (/=) :: DeleteFunctionResponse -> DeleteFunctionResponse -> Bool # | |
| type Rep DeleteFunctionResponse Source # | |
newDeleteFunctionResponse :: DeleteFunctionResponse Source #
Create a value of DeleteFunctionResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.