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 DeleteFunction operation. Deletes a CloudFront function.
You cannot delete a function if it's associated with a cache behavior. First, update your distributions to remove the function association from all cache behaviors, then delete the function.
To delete 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 DeleteFunctionRequest : AmazonCloudFrontRequest IAmazonWebServiceRequest
The DeleteFunctionRequest type exposes the following members
Name | Description | |
---|---|---|
DeleteFunctionRequest() |
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 deleting. |
.NET Core App:
Supported in: 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5, 4.0, 3.5