function
Gets an individual function
resource
Overview
Name | function |
Type | Resource |
Description | function |
Id | awscc.cloudfront.function |
Fields
Name | Datatype | Description |
---|---|---|
auto_publish | boolean | |
function_arn | string | |
function_code | string | |
function_config | object | |
function_metadata | object | |
name | string | |
stage | string | |
region | string | AWS region. |
Methods
Currently only SELECT
is supported for this resource resource.
Example
SELECT
region,
auto_publish,
function_arn,
function_code,
function_config,
function_metadata,
name,
stage
FROM awscc.cloudfront.function
WHERE data__Identifier = '<FunctionARN>';
Permissions
To operate on the function
resource, the following permissions are required:
Delete
cloudfront:DeleteFunction,
cloudfront:DescribeFunction
Read
cloudfront:DescribeFunction,
cloudfront:GetFunction
Update
cloudfront:UpdateFunction,
cloudfront:PublishFunction,
cloudfront:DescribeFunction