aws::cloudfront-function

Create Cloudfront Function.

Example

aws::cloudfront-function cloudfront-function
 name: "cloudfront-function-example-function"

 content-file-path: "example-function.js"

 config
     runtime: "cloudfront-js-1.0"
     comment: "test-function"
     key-value-store-associations: [$(aws::cloudfront-key-value-store my-kvs)]
 end

end

Attributes

Attribute Description
name The name of the function. (Required)
config subresource

Configuration of the function. (Required)

comment
A comment to describe the function.
runtime
The runtime environment for the function. Defaults to cloudfront-js-1.0. Valid values are cloudfront-js-1.0 or cloudfront-js-2.0.
key-value-store-associations list

The key value stores to associate with the function. At most one key value store may be associated.

Requires runtime cloudfront-js-2.0.

publish If set to true then the function will be published. Defaults to false.

Outputs

Attribute Description
created-time The time when the function was created.
last-modified-time The time when the function was last modified.
arn The ARN of the function.
stage The stage of the function. Can be DEVELOPMENT or LIVE.
status The status of the function.