amazonka-cloudfront-2.0: Amazon CloudFront SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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' 

Fields

  • ifMatch :: Text

    The current version (ETag value) of the function that you are deleting, which you can get using DescribeFunction.

  • name :: Text

    The name of the function that you are deleting.

Instances

Instances details
ToHeaders DeleteFunction Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteFunction

ToPath DeleteFunction Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteFunction

ToQuery DeleteFunction Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteFunction

AWSRequest DeleteFunction Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteFunction

Associated Types

type AWSResponse DeleteFunction #

Generic DeleteFunction Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteFunction

Associated Types

type Rep DeleteFunction :: Type -> Type #

Read DeleteFunction Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteFunction

Show DeleteFunction Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteFunction

NFData DeleteFunction Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteFunction

Methods

rnf :: DeleteFunction -> () #

Eq DeleteFunction Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteFunction

Hashable DeleteFunction Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteFunction

type AWSResponse DeleteFunction Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteFunction

type Rep DeleteFunction Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteFunction

type Rep DeleteFunction = D1 ('MetaData "DeleteFunction" "Amazonka.CloudFront.DeleteFunction" "amazonka-cloudfront-2.0-8Jb7luniAuUfLdUxCxW4K" 'False) (C1 ('MetaCons "DeleteFunction'" 'PrefixI 'True) (S1 ('MetaSel ('Just "ifMatch") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newDeleteFunction Source #

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.

Instances

Instances details
Generic DeleteFunctionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteFunction

Associated Types

type Rep DeleteFunctionResponse :: Type -> Type #

Read DeleteFunctionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteFunction

Show DeleteFunctionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteFunction

NFData DeleteFunctionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteFunction

Methods

rnf :: DeleteFunctionResponse -> () #

Eq DeleteFunctionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteFunction

type Rep DeleteFunctionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteFunction

type Rep DeleteFunctionResponse = D1 ('MetaData "DeleteFunctionResponse" "Amazonka.CloudFront.DeleteFunction" "amazonka-cloudfront-2.0-8Jb7luniAuUfLdUxCxW4K" 'False) (C1 ('MetaCons "DeleteFunctionResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newDeleteFunctionResponse :: DeleteFunctionResponse Source #

Create a value of DeleteFunctionResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.