Skip to content

Get Function

cloudfront_get_function R Documentation

Gets the code of a CloudFront function

Description

Gets the code of a CloudFront function. To get configuration information and metadata about a function, use describe_function.

To get a function's code, you must provide the function's name and stage. To get these values, you can use list_functions.

Usage

cloudfront_get_function(Name, Stage)

Arguments

Name

[required] The name of the function whose code you are getting.

Stage

The function's stage, either DEVELOPMENT or LIVE.

Value

A list with the following syntax:

list(
  FunctionCode = raw,
  ETag = "string",
  ContentType = "string"
)

Request syntax

svc$get_function(
  Name = "string",
  Stage = "DEVELOPMENT"|"LIVE"
)