Class CfnCachePolicy.HeadersConfigProperty
An object that determines whether any HTTP headers (and if so, which headers) are included in the cache key and in requests that CloudFront sends to the origin.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnCachePolicy.HeadersConfigProperty : CfnCachePolicy.IHeadersConfigProperty
Syntax (vb)
Public Class CfnCachePolicy.HeadersConfigProperty Implements CfnCachePolicy.IHeadersConfigProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CloudFront;
var headersConfigProperty = new HeadersConfigProperty {
HeaderBehavior = "headerBehavior",
// the properties below are optional
Headers = new [] { "headers" }
};
Synopsis
Constructors
| HeadersConfigProperty() | An object that determines whether any HTTP headers (and if so, which headers) are included in the cache key and in requests that CloudFront sends to the origin. |
Properties
| HeaderBehavior | Determines whether any HTTP headers are included in the cache key and in requests that CloudFront sends to the origin. |
| Headers | Contains a list of HTTP header names. |
Constructors
HeadersConfigProperty()
An object that determines whether any HTTP headers (and if so, which headers) are included in the cache key and in requests that CloudFront sends to the origin.
public HeadersConfigProperty()
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CloudFront;
var headersConfigProperty = new HeadersConfigProperty {
HeaderBehavior = "headerBehavior",
// the properties below are optional
Headers = new [] { "headers" }
};
Properties
HeaderBehavior
Determines whether any HTTP headers are included in the cache key and in requests that CloudFront sends to the origin.
public string HeaderBehavior { get; set; }
Property Value
Remarks
Headers
Contains a list of HTTP header names.
public string[]? Headers { get; set; }
Property Value
string[]