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

Description

Publishes a CloudFront function by copying the function code from the DEVELOPMENT stage to LIVE. This automatically updates all cache behaviors that are using this function to use the newly published copy in the LIVE stage.

When a function is published to the LIVE stage, you can attach the function to a distribution’s cache behavior, using the function’s Amazon Resource Name (ARN).

To publish 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 PublishFunction Source #

See: newPublishFunction smart constructor.

Constructors

PublishFunction' 

Fields

  • name :: Text

    The name of the function that you are publishing.

  • ifMatch :: Text

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

Instances

Instances details
Eq PublishFunction Source # 
Instance details

Defined in Amazonka.CloudFront.PublishFunction

Read PublishFunction Source # 
Instance details

Defined in Amazonka.CloudFront.PublishFunction

Show PublishFunction Source # 
Instance details

Defined in Amazonka.CloudFront.PublishFunction

Generic PublishFunction Source # 
Instance details

Defined in Amazonka.CloudFront.PublishFunction

Associated Types

type Rep PublishFunction :: Type -> Type #

NFData PublishFunction Source # 
Instance details

Defined in Amazonka.CloudFront.PublishFunction

Methods

rnf :: PublishFunction -> () #

Hashable PublishFunction Source # 
Instance details

Defined in Amazonka.CloudFront.PublishFunction

AWSRequest PublishFunction Source # 
Instance details

Defined in Amazonka.CloudFront.PublishFunction

Associated Types

type AWSResponse PublishFunction #

ToHeaders PublishFunction Source # 
Instance details

Defined in Amazonka.CloudFront.PublishFunction

ToPath PublishFunction Source # 
Instance details

Defined in Amazonka.CloudFront.PublishFunction

ToQuery PublishFunction Source # 
Instance details

Defined in Amazonka.CloudFront.PublishFunction

type Rep PublishFunction Source # 
Instance details

Defined in Amazonka.CloudFront.PublishFunction

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

Defined in Amazonka.CloudFront.PublishFunction

newPublishFunction Source #

Create a value of PublishFunction 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:name:PublishFunction', publishFunction_name - The name of the function that you are publishing.

$sel:ifMatch:PublishFunction', publishFunction_ifMatch - The current version (ETag value) of the function that you are publishing, which you can get using DescribeFunction.

Request Lenses

publishFunction_name :: Lens' PublishFunction Text Source #

The name of the function that you are publishing.

publishFunction_ifMatch :: Lens' PublishFunction Text Source #

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

Destructuring the Response

data PublishFunctionResponse Source #

See: newPublishFunctionResponse smart constructor.

Constructors

PublishFunctionResponse' 

Fields

Instances

Instances details
Eq PublishFunctionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.PublishFunction

Read PublishFunctionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.PublishFunction

Show PublishFunctionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.PublishFunction

Generic PublishFunctionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.PublishFunction

Associated Types

type Rep PublishFunctionResponse :: Type -> Type #

NFData PublishFunctionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.PublishFunction

Methods

rnf :: PublishFunctionResponse -> () #

type Rep PublishFunctionResponse Source # 
Instance details

Defined in Amazonka.CloudFront.PublishFunction

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

newPublishFunctionResponse Source #

Create a value of PublishFunctionResponse 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:functionSummary:PublishFunctionResponse', publishFunctionResponse_functionSummary - Contains configuration information and metadata about a CloudFront function.

$sel:httpStatus:PublishFunctionResponse', publishFunctionResponse_httpStatus - The response's http status code.

Response Lenses

publishFunctionResponse_functionSummary :: Lens' PublishFunctionResponse (Maybe FunctionSummary) Source #

Contains configuration information and metadata about a CloudFront function.