AwsCloudfrontFunctionAssociationArgs
interface AwsCloudfrontFunctionAssociationArgs {
eventType: 'viewer-request' | 'viewer-response';
function: Input<string>;
}CloudFront Function association resolved from a LIVE-stage ARN or function name.
Example
CODE
`const association: AwsCloudfrontFunctionAssociationArgs = { eventType: 'viewer-request', function: 'rewrite-request' };`Properties
eventType: 'viewer-request' | 'viewer-response'
CloudFront event at which the Function executes.
function: Input<string>
CloudFront Function ARN or function name.