Skip to content
v2.273.0

CfnConnectionFunctionProps Struct ​

Properties for defining a CfnConnectionFunction.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudfront as cloudfront } from 'aws-cdk-lib';
const cfnConnectionFunctionProps: cloudfront.CfnConnectionFunctionProps = {
  connectionFunctionCode: 'connectionFunctionCode',
  connectionFunctionConfig: {
    comment: 'comment',
    runtime: 'runtime',

    // the properties below are optional
    keyValueStoreAssociations: [{
      keyValueStoreArn: 'keyValueStoreArn',
    }],
  },
  name: 'name',

  // the properties below are optional
  autoPublish: false,
  tags: [{
    key: 'key',
    value: 'value',
  }],
};

Properties ​

autoPublishboolean | IResolvableauto_publishtyping.Union[bool, IResolvable]autoPublishBooleanAutoPublishboolAutoPublishinterface{}= false#
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 .

connectionFunctionCodestringconnection_function_codestrconnectionFunctionCodeStringConnectionFunctionCodestringConnectionFunctionCode*stringrequired#
The code for the connection function.
connectionFunctionConfigIResolvable | CfnConnectionFunction.ConnectionFunctionConfigPropertyconnection_function_configtyping.Union[IResolvable, ConnectionFunctionConfigProperty]connectionFunctionConfigIResolvableConnectionFunctionConfigIResolvableConnectionFunctionConfiginterface{}required#
Contains configuration information about a CloudFront function.
namestringnamestrnameStringNamestringName*stringrequired#
The connection function name.
tagsCfnTag[]tagstyping.List[CfnTag]tagsList<CfnTag>TagsCfnTag[]Tags*[]CfnTag#
A complex type that contains zero or more `Tag` elements.

Used as props by ​