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.Types.FunctionAssociation

Description

 
Synopsis

Documentation

data FunctionAssociation Source #

A CloudFront function that is associated with a cache behavior in a CloudFront distribution.

See: newFunctionAssociation smart constructor.

Constructors

FunctionAssociation' 

Fields

  • functionARN :: Text

    The Amazon Resource Name (ARN) of the function.

  • eventType :: EventType

    The event type of the function, either viewer-request or viewer-response. You cannot use origin-facing event types (origin-request and origin-response) with a CloudFront function.

Instances

Instances details
Eq FunctionAssociation Source # 
Instance details

Defined in Amazonka.CloudFront.Types.FunctionAssociation

Read FunctionAssociation Source # 
Instance details

Defined in Amazonka.CloudFront.Types.FunctionAssociation

Show FunctionAssociation Source # 
Instance details

Defined in Amazonka.CloudFront.Types.FunctionAssociation

Generic FunctionAssociation Source # 
Instance details

Defined in Amazonka.CloudFront.Types.FunctionAssociation

Associated Types

type Rep FunctionAssociation :: Type -> Type #

NFData FunctionAssociation Source # 
Instance details

Defined in Amazonka.CloudFront.Types.FunctionAssociation

Methods

rnf :: FunctionAssociation -> () #

Hashable FunctionAssociation Source # 
Instance details

Defined in Amazonka.CloudFront.Types.FunctionAssociation

FromXML FunctionAssociation Source # 
Instance details

Defined in Amazonka.CloudFront.Types.FunctionAssociation

ToXML FunctionAssociation Source # 
Instance details

Defined in Amazonka.CloudFront.Types.FunctionAssociation

type Rep FunctionAssociation Source # 
Instance details

Defined in Amazonka.CloudFront.Types.FunctionAssociation

type Rep FunctionAssociation = D1 ('MetaData "FunctionAssociation" "Amazonka.CloudFront.Types.FunctionAssociation" "libZSservicesZSamazonka-cloudfrontZSamazonka-cloudfront" 'False) (C1 ('MetaCons "FunctionAssociation'" 'PrefixI 'True) (S1 ('MetaSel ('Just "functionARN") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "eventType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 EventType)))

newFunctionAssociation Source #

Create a value of FunctionAssociation 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:functionARN:FunctionAssociation', functionAssociation_functionARN - The Amazon Resource Name (ARN) of the function.

$sel:eventType:FunctionAssociation', functionAssociation_eventType - The event type of the function, either viewer-request or viewer-response. You cannot use origin-facing event types (origin-request and origin-response) with a CloudFront function.

functionAssociation_functionARN :: Lens' FunctionAssociation Text Source #

The Amazon Resource Name (ARN) of the function.

functionAssociation_eventType :: Lens' FunctionAssociation EventType Source #

The event type of the function, either viewer-request or viewer-response. You cannot use origin-facing event types (origin-request and origin-response) with a CloudFront function.