Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Documentation
data FunctionAssociation Source #
A CloudFront function that is associated with a cache behavior in a CloudFront distribution.
See: newFunctionAssociation
smart constructor.
FunctionAssociation' | |
|
Instances
newFunctionAssociation Source #
:: Text | |
-> EventType | |
-> FunctionAssociation |
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.