Updates a CloudFront function¶
Description¶
Updates a CloudFront function.
You can update a function's code or the comment that describes the function. You cannot update a function's name.
To update a function, you provide the function's name and version (ETag value) along with the updated function code. To get the name and version, you can use list_functions and describe_function.
Usage¶
Arguments¶
-
Name[required] The name of the function that you are updating.
-
IfMatch[required] The current version (
ETagvalue) of the function that you are updating, which you can get usingdescribe_function. -
FunctionConfig[required] Configuration information about the function.
-
FunctionCode[required] The function code. For more information about writing a CloudFront function, see Writing function code for CloudFront Functions in the Amazon CloudFront Developer Guide.
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"
)
)
),
ETag = "string"
)