Skip to main content

function

Gets an individual function resource

Overview

Namefunction
TypeResource
Descriptionfunction
Idawscc.cloudfront.function

Fields

NameDatatypeDescription
auto_publishboolean
function_arnstring
function_codestring
function_configobject
function_metadataobject
namestring
stagestring
regionstringAWS 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