AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::CloudFront::ConnectionFunction

CfnConnectionFunction

A connection function.

Import

import { CfnConnectionFunction } from 'aws-cdk-lib/aws-cloudfront';

Or use the module namespace:

import * as cloudfront from 'aws-cdk-lib/aws-cloudfront';
// cloudfront.CfnConnectionFunction

Properties

Configuration passed to the constructor as CfnConnectionFunctionProps.

connectionFunctionCodeRequired
string

The code for the connection function.

connectionFunctionConfigRequired
IResolvable | ConnectionFunctionConfigProperty

Contains configuration information about a CloudFront function.

nameRequired
string

The connection function name.

autoPublishOptional
boolean | IResolvable

A flag that determines whether to automatically publish the function to the `LIVE` stage when it’s created. To automatically publish to the `LIVE` stage, set this property to `true` .

Default: - false

tagsOptional
CfnTag[]

A complex type that contains zero or more `Tag` elements.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Get the Amazon CloudFront Cheat Sheet

Everything you need to know about Amazon CloudFront on one page. HD quality, print-friendly.

Download Free Infographic