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"
end
end
Attributes¶
| Attribute | Description |
|---|---|
| name | The name of the function. (Required) |
| config subresource | Configuration of the function. (Required)
|
| 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. |