AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Container for the parameters to the PublishFunction operation.
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 ListFunctions
and DescribeFunction
.
Namespace: Amazon.CloudFront.Model
Assembly: AWSSDK.CloudFront.dll
Version: 3.x.y.z
public class PublishFunctionRequest : AmazonCloudFrontRequest IAmazonWebServiceRequest
The PublishFunctionRequest type exposes the following members
Name | Description | |
---|---|---|
PublishFunctionRequest() |
Name | Type | Description | |
---|---|---|---|
IfMatch | System.String |
Gets and sets the property IfMatch.
The current version ( |
|
Name | System.String |
Gets and sets the property Name. The name of the function that you are publishing. |
.NET Core App:
Supported in: 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5, 4.0, 3.5