---
type: resource-type
title: ConnectionFunction
description: aws resource type AWS::CloudFront::ConnectionFunction
name: ConnectionFunction
lexicon: aws
resource_type: AWS::CloudFront::ConnectionFunction
---
`AWS::CloudFront::ConnectionFunction`, a resource type of the aws lexicon.

## Properties

- `ConnectionFunctionCode` (`string`, required): The code for the connection function.
- `ConnectionFunctionConfig` (`ConnectionFunction_ConnectionFunctionConfig`, required): Contains configuration information about a CloudFront function.
- `Name` (`string`, required): The connection function name.
- `AutoPublish` (`boolean`, optional): 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``.
- `ConnectionFunctionArn` (`string`, optional)
- `CreatedTime` (`string`, optional)
- `ETag` (`string`, optional)
- `Id` (`string`, optional)
- `LastModifiedTime` (`string`, optional)
- `Stage` (`"DEVELOPMENT" | "LIVE"`, optional)
- `Status` (`"DEPLOYED" | "IN_PROGRESS" | "PUBLISHING" | "UNASSOCIATED" | "UNPUBLISHED"`, optional)
- `Tags` (`ConnectionFunction_Tag[]`, optional): A complex type that contains zero or more ``Tag`` elements.

## Attributes

- `ConnectionFunctionArn`
- `CreatedTime`
- `ETag`
- `Id`
- `LastModifiedTime`
- `Stage`
- `Status`
