AWS SDK Version 3 for .NET
API Reference

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.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.CloudFront.AmazonCloudFrontRequest
      Amazon.CloudFront.Model.DeleteFunctionRequest

Namespace: Amazon.CloudFront.Model
Assembly: AWSSDK.CloudFront.dll
Version: 3.x.y.z

Syntax

C#
public class DeleteFunctionRequest : AmazonCloudFrontRequest
         IAmazonWebServiceRequest

The DeleteFunctionRequest type exposes the following members

Constructors

NameDescription
Public Method DeleteFunctionRequest()

Properties

NameTypeDescription
Public Property IfMatch System.String

Gets and sets the property IfMatch.

The current version (ETag value) of the function that you are deleting, which you can get using DescribeFunction.

Public Property Name System.String

Gets and sets the property Name.

The name of the function that you are deleting.

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5