Class CfnResponseHeadersPolicyPropsMixin.CustomHeadersConfigProperty
A list of HTTP response header names and their values.
Inherited Members
Namespace: Amazon.CDK.Mixins.Preview.AWS.CloudFront.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public class CfnResponseHeadersPolicyPropsMixin.CustomHeadersConfigProperty : CfnResponseHeadersPolicyPropsMixin.ICustomHeadersConfigProperty
Syntax (vb)
Public Class CfnResponseHeadersPolicyPropsMixin.CustomHeadersConfigProperty Implements CfnResponseHeadersPolicyPropsMixin.ICustomHeadersConfigProperty
Remarks
CloudFront includes these headers in HTTP responses that it sends for requests that match a cache behavior that's associated with this response headers policy.
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.Mixins.Preview.AWS.CloudFront.Mixins;
var customHeadersConfigProperty = new CustomHeadersConfigProperty {
Items = new [] { new CustomHeaderProperty {
Header = "header",
Override = false,
Value = "value"
} }
};
Synopsis
Constructors
| CustomHeadersConfigProperty() | A list of HTTP response header names and their values. |
Properties
| Items | The list of HTTP response headers and their values. |
Constructors
CustomHeadersConfigProperty()
A list of HTTP response header names and their values.
public CustomHeadersConfigProperty()
Remarks
CloudFront includes these headers in HTTP responses that it sends for requests that match a cache behavior that's associated with this response headers policy.
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.Mixins.Preview.AWS.CloudFront.Mixins;
var customHeadersConfigProperty = new CustomHeadersConfigProperty {
Items = new [] { new CustomHeaderProperty {
Header = "header",
Override = false,
Value = "value"
} }
};
Properties
Items
The list of HTTP response headers and their values.
public object? Items { get; set; }
Property Value
Remarks
Type union: either IResolvable or (either IResolvable or CfnResponseHeadersPolicyPropsMixin.ICustomHeaderProperty)[]