Function

class Function : KotlinCustomResource

Provides a CloudFront Function resource. With CloudFront Functions in Amazon CloudFront, you can write lightweight functions in JavaScript for high-scale, latency-sensitive CDN customizations. See CloudFront Functions

NOTE: You cannot delete a function if it’s associated with a cache behavior. First, update your distributions to remove the function association from all cache behaviors, then delete the function.

Example Usage

Import

Using pulumi import, import CloudFront Functions using the name. For example:

$ pulumi import aws:cloudfront/function:Function test my_test_function

Properties

Link copied to clipboard
val arn: Output<String>

Amazon Resource Name (ARN) identifying your CloudFront Function.

Link copied to clipboard
val code: Output<String>

Source code of the function

Link copied to clipboard
val comment: Output<String>?

Comment.

Link copied to clipboard
val etag: Output<String>

ETag hash of the function. This is the value for the DEVELOPMENT stage of the function.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

List of aws.cloudfront.KeyValueStore ARNs to be associated to the function. AWS limits associations to on key value store per function.

Link copied to clipboard
val liveStageEtag: Output<String>

ETag hash of any LIVE stage of the function.

Link copied to clipboard
val name: Output<String>

Unique name for your CloudFront Function.

Link copied to clipboard
val publish: Output<Boolean>?

Whether to publish creation/change as Live CloudFront Function Version. Defaults to true.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val runtime: Output<String>

Identifier of the function's runtime. Valid values are cloudfront-js-1.0 and cloudfront-js-2.0. The following arguments are optional:

Link copied to clipboard
val status: Output<String>

Status of the function. Can be UNPUBLISHED, UNASSOCIATED or ASSOCIATED.

Link copied to clipboard
val urn: Output<String>