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.

A response headers policy.

A response headers policy contains information about a set of HTTP response headers.

After you create a response headers policy, you can use its ID to attach it to one or more cache behaviors in a CloudFront distribution. When it's attached to a cache behavior, the response headers policy affects the HTTP headers that CloudFront includes in HTTP responses to requests that match the cache behavior. CloudFront adds or removes response headers according to the configuration of the response headers policy.

For more information, see Adding or removing HTTP headers in CloudFront responses in the Amazon CloudFront Developer Guide.

Inheritance Hierarchy

System.Object
  Amazon.CloudFront.Model.ResponseHeadersPolicy

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

Syntax

C#
public class ResponseHeadersPolicy

The ResponseHeadersPolicy type exposes the following members

Constructors

NameDescription
Public Method ResponseHeadersPolicy()

Properties

NameTypeDescription
Public Property Id System.String

Gets and sets the property Id.

The identifier for the response headers policy.

Public Property LastModifiedTime System.DateTime

Gets and sets the property LastModifiedTime.

The date and time when the response headers policy was last modified.

Public Property ResponseHeadersPolicyConfig Amazon.CloudFront.Model.ResponseHeadersPolicyConfig

Gets and sets the property ResponseHeadersPolicyConfig.

A response headers policy configuration.

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