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.UpdateFunction

Description

Updates a CloudFront function.

You can update a function’s code or the comment that describes the function. You cannot update a function’s name.

To update a function, you provide the function’s name and version (ETag value) along with the updated function code. To get the name and version, you can use ListFunctions and DescribeFunction.

Synopsis

Creating a Request

data UpdateFunction Source #

See: newUpdateFunction smart constructor.

Constructors

UpdateFunction' 

Fields

Instances

Instances details
Eq UpdateFunction Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateFunction

Show UpdateFunction Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateFunction

Generic UpdateFunction Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateFunction

Associated Types

type Rep UpdateFunction :: Type -> Type #

NFData UpdateFunction Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateFunction

Methods

rnf :: UpdateFunction -> () #

Hashable UpdateFunction Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateFunction

AWSRequest UpdateFunction Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateFunction

Associated Types

type AWSResponse UpdateFunction #

ToHeaders UpdateFunction Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateFunction

ToPath UpdateFunction Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateFunction

ToQuery UpdateFunction Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateFunction

ToElement UpdateFunction Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateFunction

ToXML UpdateFunction Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateFunction

Methods

toXML :: UpdateFunction -> XML #

type Rep UpdateFunction Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateFunction

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

Defined in Amazonka.CloudFront.UpdateFunction

newUpdateFunction Source #

Create a value of UpdateFunction 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:UpdateFunction', updateFunction_ifMatch - The current version (ETag value) of the function that you are updating, which you can get using DescribeFunction.

$sel:functionConfig:UpdateFunction', updateFunction_functionConfig - Configuration information about the function.

$sel:functionCode:UpdateFunction', updateFunction_functionCode - The function code. For more information about writing a CloudFront function, see Writing function code for CloudFront Functions in the Amazon CloudFront Developer Guide.-- -- Note: This Lens automatically encodes and decodes Base64 data. -- The underlying isomorphism will encode to Base64 representation during -- serialisation, and decode from Base64 representation during deserialisation. -- This Lens accepts and returns only raw unencoded data.

$sel:name:UpdateFunction', updateFunction_name - The name of the function that you are updating.

Request Lenses

updateFunction_ifMatch :: Lens' UpdateFunction Text Source #

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

updateFunction_functionConfig :: Lens' UpdateFunction FunctionConfig Source #

Configuration information about the function.

updateFunction_functionCode :: Lens' UpdateFunction ByteString Source #

The function code. For more information about writing a CloudFront function, see Writing function code for CloudFront Functions in the Amazon CloudFront Developer Guide.-- -- Note: This Lens automatically encodes and decodes Base64 data. -- The underlying isomorphism will encode to Base64 representation during -- serialisation, and decode from Base64 representation during deserialisation. -- This Lens accepts and returns only raw unencoded data.

updateFunction_name :: Lens' UpdateFunction Text Source #

The name of the function that you are updating.

Destructuring the Response

data UpdateFunctionResponse Source #

See: newUpdateFunctionResponse smart constructor.

Constructors

UpdateFunctionResponse' 

Fields

Instances

Instances details
Eq UpdateFunctionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateFunction

Read UpdateFunctionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateFunction

Show UpdateFunctionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateFunction

Generic UpdateFunctionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateFunction

Associated Types

type Rep UpdateFunctionResponse :: Type -> Type #

NFData UpdateFunctionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateFunction

Methods

rnf :: UpdateFunctionResponse -> () #

type Rep UpdateFunctionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.UpdateFunction

type Rep UpdateFunctionResponse = D1 ('MetaData "UpdateFunctionResponse" "Amazonka.CloudFront.UpdateFunction" "libZSservicesZSamazonka-cloudfrontZSamazonka-cloudfront" 'False) (C1 ('MetaCons "UpdateFunctionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "eTag") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "functionSummary") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe FunctionSummary)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newUpdateFunctionResponse Source #

Create a value of UpdateFunctionResponse 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:eTag:UpdateFunctionResponse', updateFunctionResponse_eTag - The version identifier for the current version of the CloudFront function.

$sel:functionSummary:UpdateFunctionResponse', updateFunctionResponse_functionSummary - Contains configuration information and metadata about a CloudFront function.

$sel:httpStatus:UpdateFunctionResponse', updateFunctionResponse_httpStatus - The response's http status code.

Response Lenses

updateFunctionResponse_eTag :: Lens' UpdateFunctionResponse (Maybe Text) Source #

The version identifier for the current version of the CloudFront function.

updateFunctionResponse_functionSummary :: Lens' UpdateFunctionResponse (Maybe FunctionSummary) Source #

Contains configuration information and metadata about a CloudFront function.