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.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
FromXML FunctionAssociation Source # 
Instance details

Defined in Amazonka.CloudFront.Types.FunctionAssociation

ToXML 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 #

Read FunctionAssociation Source # 
Instance details

Defined in Amazonka.CloudFront.Types.FunctionAssociation

Show FunctionAssociation Source # 
Instance details

Defined in Amazonka.CloudFront.Types.FunctionAssociation

NFData FunctionAssociation Source # 
Instance details

Defined in Amazonka.CloudFront.Types.FunctionAssociation

Methods

rnf :: FunctionAssociation -> () #

Eq FunctionAssociation Source # 
Instance details

Defined in Amazonka.CloudFront.Types.FunctionAssociation

Hashable 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" "amazonka-cloudfront-2.0-8Jb7luniAuUfLdUxCxW4K" '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.