interface FunctionAssociationProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.CloudFront.Mixins.CfnDistributionPropsMixin.FunctionAssociationProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awscloudfront/mixins#CfnDistributionPropsMixin_FunctionAssociationProperty |
Java | software.amazon.awscdk.mixins.preview.services.cloudfront.mixins.CfnDistributionPropsMixin.FunctionAssociationProperty |
Python | aws_cdk.mixins_preview.aws_cloudfront.mixins.CfnDistributionPropsMixin.FunctionAssociationProperty |
TypeScript | @aws-cdk/mixins-preview » aws_cloudfront » mixins » CfnDistributionPropsMixin » FunctionAssociationProperty |
A CloudFront function that is associated with a cache behavior in a CloudFront distribution.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as cloudfront_mixins } from '@aws-cdk/mixins-preview/aws-cloudfront';
const functionAssociationProperty: cloudfront_mixins.CfnDistributionPropsMixin.FunctionAssociationProperty = {
eventType: 'eventType',
functionArn: 'functionArn',
};
Properties
| Name | Type | Description |
|---|---|---|
| event | string | The event type of the function, either viewer-request or viewer-response . |
| function | string | The Amazon Resource Name (ARN) of the function. |
eventType?
Type:
string
(optional)
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.
functionArn?
Type:
string
(optional)
The Amazon Resource Name (ARN) of the function.

.NET
Go
Java
Python
TypeScript