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 DeleteOriginRequestPolicy operation. Deletes an origin request policy.
You cannot delete an origin request policy if it's attached to any cache behaviors. First update your distributions to remove the origin request policy from all cache behaviors, then delete the origin request policy.
To delete an origin request policy, you must provide the policy's identifier and version.
To get the identifier, you can use ListOriginRequestPolicies
or GetOriginRequestPolicy
.
Namespace: Amazon.CloudFront.Model
Assembly: AWSSDK.CloudFront.dll
Version: 3.x.y.z
public class DeleteOriginRequestPolicyRequest : AmazonCloudFrontRequest IAmazonWebServiceRequest
The DeleteOriginRequestPolicyRequest type exposes the following members
Name | Description | |
---|---|---|
DeleteOriginRequestPolicyRequest() |
Name | Type | Description | |
---|---|---|---|
Id | System.String |
Gets and sets the property Id.
The unique identifier for the origin request policy that you are deleting. To get
the identifier, you can use |
|
IfMatch | System.String |
Gets and sets the property IfMatch.
The version of the origin request policy that you are deleting. The version is the
origin request policy's |
.NET Core App:
Supported in: 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5, 4.0, 3.5