1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. cloudfront
  5. ConnectionFunction

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.40.0 published on Thursday, Dec 11, 2025 by Pulumi
aws-native logo

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.40.0 published on Thursday, Dec 11, 2025 by Pulumi

    Resource Type definition for AWS::CloudFront::ConnectionFunction

    Create ConnectionFunction Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ConnectionFunction(name: string, args: ConnectionFunctionArgs, opts?: CustomResourceOptions);
    @overload
    def ConnectionFunction(resource_name: str,
                           args: ConnectionFunctionArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def ConnectionFunction(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           connection_function_code: Optional[str] = None,
                           connection_function_config: Optional[ConnectionFunctionConfigArgs] = None,
                           auto_publish: Optional[bool] = None,
                           name: Optional[str] = None,
                           tags: Optional[Sequence[_root_inputs.TagArgs]] = None)
    func NewConnectionFunction(ctx *Context, name string, args ConnectionFunctionArgs, opts ...ResourceOption) (*ConnectionFunction, error)
    public ConnectionFunction(string name, ConnectionFunctionArgs args, CustomResourceOptions? opts = null)
    public ConnectionFunction(String name, ConnectionFunctionArgs args)
    public ConnectionFunction(String name, ConnectionFunctionArgs args, CustomResourceOptions options)
    
    type: aws-native:cloudfront:ConnectionFunction
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ConnectionFunctionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ConnectionFunctionArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ConnectionFunctionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ConnectionFunctionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ConnectionFunctionArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    ConnectionFunction Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The ConnectionFunction resource accepts the following input properties:

    ConnectionFunctionCode string
    The code for the connection function.
    ConnectionFunctionConfig Pulumi.AwsNative.CloudFront.Inputs.ConnectionFunctionConfig
    Contains configuration information about a CloudFront function.
    AutoPublish bool
    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 .
    Name string
    The connection function name.
    Tags List<Pulumi.AwsNative.Inputs.Tag>
    A complex type that contains zero or more Tag elements.
    ConnectionFunctionCode string
    The code for the connection function.
    ConnectionFunctionConfig ConnectionFunctionConfigArgs
    Contains configuration information about a CloudFront function.
    AutoPublish bool
    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 .
    Name string
    The connection function name.
    Tags TagArgs
    A complex type that contains zero or more Tag elements.
    connectionFunctionCode String
    The code for the connection function.
    connectionFunctionConfig ConnectionFunctionConfig
    Contains configuration information about a CloudFront function.
    autoPublish Boolean
    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 .
    name String
    The connection function name.
    tags List<Tag>
    A complex type that contains zero or more Tag elements.
    connectionFunctionCode string
    The code for the connection function.
    connectionFunctionConfig ConnectionFunctionConfig
    Contains configuration information about a CloudFront function.
    autoPublish boolean
    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 .
    name string
    The connection function name.
    tags Tag[]
    A complex type that contains zero or more Tag elements.
    connection_function_code str
    The code for the connection function.
    connection_function_config ConnectionFunctionConfigArgs
    Contains configuration information about a CloudFront function.
    auto_publish bool
    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 .
    name str
    The connection function name.
    tags Sequence[TagArgs]
    A complex type that contains zero or more Tag elements.
    connectionFunctionCode String
    The code for the connection function.
    connectionFunctionConfig Property Map
    Contains configuration information about a CloudFront function.
    autoPublish Boolean
    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 .
    name String
    The connection function name.
    tags List<Property Map>
    A complex type that contains zero or more Tag elements.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ConnectionFunction resource produces the following output properties:

    AwsId string
    The connection function ID.
    ConnectionFunctionArn string
    The connection function Amazon Resource Name (ARN).
    CreatedTime string
    The connection function created time.
    ETag string
    A complex type that contains Tag key and Tag value.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastModifiedTime string
    The connection function last modified time.
    Stage Pulumi.AwsNative.CloudFront.ConnectionFunctionStage
    The connection function stage.
    Status Pulumi.AwsNative.CloudFront.ConnectionFunctionStatus
    The connection function status.
    AwsId string
    The connection function ID.
    ConnectionFunctionArn string
    The connection function Amazon Resource Name (ARN).
    CreatedTime string
    The connection function created time.
    ETag string
    A complex type that contains Tag key and Tag value.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastModifiedTime string
    The connection function last modified time.
    Stage ConnectionFunctionStage
    The connection function stage.
    Status ConnectionFunctionStatus
    The connection function status.
    awsId String
    The connection function ID.
    connectionFunctionArn String
    The connection function Amazon Resource Name (ARN).
    createdTime String
    The connection function created time.
    eTag String
    A complex type that contains Tag key and Tag value.
    id String
    The provider-assigned unique ID for this managed resource.
    lastModifiedTime String
    The connection function last modified time.
    stage ConnectionFunctionStage
    The connection function stage.
    status ConnectionFunctionStatus
    The connection function status.
    awsId string
    The connection function ID.
    connectionFunctionArn string
    The connection function Amazon Resource Name (ARN).
    createdTime string
    The connection function created time.
    eTag string
    A complex type that contains Tag key and Tag value.
    id string
    The provider-assigned unique ID for this managed resource.
    lastModifiedTime string
    The connection function last modified time.
    stage ConnectionFunctionStage
    The connection function stage.
    status ConnectionFunctionStatus
    The connection function status.
    aws_id str
    The connection function ID.
    connection_function_arn str
    The connection function Amazon Resource Name (ARN).
    created_time str
    The connection function created time.
    e_tag str
    A complex type that contains Tag key and Tag value.
    id str
    The provider-assigned unique ID for this managed resource.
    last_modified_time str
    The connection function last modified time.
    stage ConnectionFunctionStage
    The connection function stage.
    status ConnectionFunctionStatus
    The connection function status.
    awsId String
    The connection function ID.
    connectionFunctionArn String
    The connection function Amazon Resource Name (ARN).
    createdTime String
    The connection function created time.
    eTag String
    A complex type that contains Tag key and Tag value.
    id String
    The provider-assigned unique ID for this managed resource.
    lastModifiedTime String
    The connection function last modified time.
    stage "DEVELOPMENT" | "LIVE"
    The connection function stage.
    status "UNPUBLISHED" | "DEPLOYED" | "UNASSOCIATED" | "PUBLISHING" | "IN_PROGRESS"
    The connection function status.

    Supporting Types

    ConnectionFunctionConfig, ConnectionFunctionConfigArgs

    Comment string
    A comment to describe the function.
    Runtime Pulumi.AwsNative.CloudFront.ConnectionFunctionConfigRuntime
    The function's runtime environment version.
    KeyValueStoreAssociations List<Pulumi.AwsNative.CloudFront.Inputs.ConnectionFunctionKeyValueStoreAssociation>
    The configuration for the key value store associations.
    Comment string
    A comment to describe the function.
    Runtime ConnectionFunctionConfigRuntime
    The function's runtime environment version.
    KeyValueStoreAssociations []ConnectionFunctionKeyValueStoreAssociation
    The configuration for the key value store associations.
    comment String
    A comment to describe the function.
    runtime ConnectionFunctionConfigRuntime
    The function's runtime environment version.
    keyValueStoreAssociations List<ConnectionFunctionKeyValueStoreAssociation>
    The configuration for the key value store associations.
    comment string
    A comment to describe the function.
    runtime ConnectionFunctionConfigRuntime
    The function's runtime environment version.
    keyValueStoreAssociations ConnectionFunctionKeyValueStoreAssociation[]
    The configuration for the key value store associations.
    comment str
    A comment to describe the function.
    runtime ConnectionFunctionConfigRuntime
    The function's runtime environment version.
    key_value_store_associations Sequence[ConnectionFunctionKeyValueStoreAssociation]
    The configuration for the key value store associations.
    comment String
    A comment to describe the function.
    runtime "-js-2.0"
    The function's runtime environment version.
    keyValueStoreAssociations List<Property Map>
    The configuration for the key value store associations.

    ConnectionFunctionConfigRuntime, ConnectionFunctionConfigRuntimeArgs

    CloudfrontJs20
    cloudfront-js-2.0
    ConnectionFunctionConfigRuntimeCloudfrontJs20
    cloudfront-js-2.0
    CloudfrontJs20
    cloudfront-js-2.0
    CloudfrontJs20
    cloudfront-js-2.0
    CLOUDFRONT_JS20
    cloudfront-js-2.0
    "cloudfront-js-2.0"
    cloudfront-js-2.0

    ConnectionFunctionKeyValueStoreAssociation, ConnectionFunctionKeyValueStoreAssociationArgs

    KeyValueStoreArn string
    The Amazon Resource Name (ARN) of the key value store association.
    KeyValueStoreArn string
    The Amazon Resource Name (ARN) of the key value store association.
    keyValueStoreArn String
    The Amazon Resource Name (ARN) of the key value store association.
    keyValueStoreArn string
    The Amazon Resource Name (ARN) of the key value store association.
    key_value_store_arn str
    The Amazon Resource Name (ARN) of the key value store association.
    keyValueStoreArn String
    The Amazon Resource Name (ARN) of the key value store association.

    ConnectionFunctionStage, ConnectionFunctionStageArgs

    Development
    DEVELOPMENT
    Live
    LIVE
    ConnectionFunctionStageDevelopment
    DEVELOPMENT
    ConnectionFunctionStageLive
    LIVE
    Development
    DEVELOPMENT
    Live
    LIVE
    Development
    DEVELOPMENT
    Live
    LIVE
    DEVELOPMENT
    DEVELOPMENT
    LIVE
    LIVE
    "DEVELOPMENT"
    DEVELOPMENT
    "LIVE"
    LIVE

    ConnectionFunctionStatus, ConnectionFunctionStatusArgs

    Unpublished
    UNPUBLISHED
    Deployed
    DEPLOYED
    Unassociated
    UNASSOCIATED
    Publishing
    PUBLISHING
    InProgress
    IN_PROGRESS
    ConnectionFunctionStatusUnpublished
    UNPUBLISHED
    ConnectionFunctionStatusDeployed
    DEPLOYED
    ConnectionFunctionStatusUnassociated
    UNASSOCIATED
    ConnectionFunctionStatusPublishing
    PUBLISHING
    ConnectionFunctionStatusInProgress
    IN_PROGRESS
    Unpublished
    UNPUBLISHED
    Deployed
    DEPLOYED
    Unassociated
    UNASSOCIATED
    Publishing
    PUBLISHING
    InProgress
    IN_PROGRESS
    Unpublished
    UNPUBLISHED
    Deployed
    DEPLOYED
    Unassociated
    UNASSOCIATED
    Publishing
    PUBLISHING
    InProgress
    IN_PROGRESS
    UNPUBLISHED
    UNPUBLISHED
    DEPLOYED
    DEPLOYED
    UNASSOCIATED
    UNASSOCIATED
    PUBLISHING
    PUBLISHING
    IN_PROGRESS
    IN_PROGRESS
    "UNPUBLISHED"
    UNPUBLISHED
    "DEPLOYED"
    DEPLOYED
    "UNASSOCIATED"
    UNASSOCIATED
    "PUBLISHING"
    PUBLISHING
    "IN_PROGRESS"
    IN_PROGRESS

    Tag, TagArgs

    A set of tags to apply to the resource.
    Key string
    The key name of the tag
    Value string
    The value of the tag
    Key string
    The key name of the tag
    Value string
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key str
    The key name of the tag
    value str
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo

    We recommend new projects start with resources from the AWS provider.

    AWS Cloud Control v1.40.0 published on Thursday, Dec 11, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate