libZSservicesZSamazonka-cloudfrontZSamazonka-cloudfront
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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
Eq DeleteFunction Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteFunction

Read DeleteFunction Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteFunction

Show DeleteFunction Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteFunction

Generic DeleteFunction Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteFunction

Associated Types

type Rep DeleteFunction :: Type -> Type #

NFData DeleteFunction Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteFunction

Methods

rnf :: DeleteFunction -> () #

Hashable DeleteFunction Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteFunction

AWSRequest DeleteFunction Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteFunction

Associated Types

type AWSResponse DeleteFunction #

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

type Rep DeleteFunction Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteFunction

type Rep DeleteFunction = D1 ('MetaData "DeleteFunction" "Amazonka.CloudFront.DeleteFunction" "libZSservicesZSamazonka-cloudfrontZSamazonka-cloudfront" 'False) (C1 ('MetaCons "DeleteFunction'" 'PrefixI 'True) (S1 ('MetaSel ('Just "ifMatch") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse DeleteFunction Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteFunction

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.

$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

Instances details
Eq DeleteFunctionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteFunction

Read DeleteFunctionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteFunction

Show DeleteFunctionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteFunction

Generic DeleteFunctionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteFunction

Associated Types

type Rep DeleteFunctionResponse :: Type -> Type #

NFData DeleteFunctionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteFunction

Methods

rnf :: DeleteFunctionResponse -> () #

type Rep DeleteFunctionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.DeleteFunction

type Rep DeleteFunctionResponse = D1 ('MetaData "DeleteFunctionResponse" "Amazonka.CloudFront.DeleteFunction" "libZSservicesZSamazonka-cloudfrontZSamazonka-cloudfront" '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.