Publish Function
| cloudfront_publish_function | R Documentation |
Publishes a CloudFront function by copying the function code from the DEVELOPMENT stage to LIVE¶
Description¶
Publishes a CloudFront function by copying the function code from the
DEVELOPMENT stage to LIVE. This automatically updates all cache
behaviors that are using this function to use the newly published copy
in the LIVE stage.
When a function is published to the LIVE stage, you can attach the
function to a distribution's cache behavior, using the function's Amazon
Resource Name (ARN).
To publish a function, you must provide the function's name and version
(ETag value). To get these values, you can use list_functions and
describe_function.
Usage¶
Arguments¶
Name[required] The name of the function that you are publishing.
IfMatch[required] The current version (
ETagvalue) of the function that you are publishing, which you can get usingdescribe_function.
Value¶
A list with the following syntax:
list(
FunctionSummary = list(
Name = "string",
Status = "string",
FunctionConfig = list(
Comment = "string",
Runtime = "cloudfront-js-1.0"|"cloudfront-js-2.0",
KeyValueStoreAssociations = list(
Quantity = 123,
Items = list(
list(
KeyValueStoreARN = "string"
)
)
)
),
FunctionMetadata = list(
FunctionARN = "string",
Stage = "DEVELOPMENT"|"LIVE",
CreatedTime = as.POSIXct(
"2015-01-01"
),
LastModifiedTime = as.POSIXct(
"2015-01-01"
)
)
)
)