Show / Hide Table of Contents

Interface CfnResponseHeadersPolicy.ICustomHeaderProperty

An HTTP response header name and its value.

Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface CfnResponseHeadersPolicy.ICustomHeaderProperty
Syntax (vb)
Public Interface CfnResponseHeadersPolicy.ICustomHeaderProperty
Remarks

CloudFront includes this header in HTTP responses that it sends for requests that match a cache behavior that's associated with this response headers policy.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-customheader.html

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 customHeaderProperty = new CustomHeaderProperty {
                 Header = "header",
                 Override = false,
                 Value = "value"
             };

Synopsis

Properties

Header

The HTTP response header name.

Override

A Boolean that determines whether CloudFront overrides a response header with the same name received from the origin with the header specified here.

Value

The value for the HTTP response header.

Properties

Header

The HTTP response header name.

string Header { get; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-customheader.html#cfn-cloudfront-responseheaderspolicy-customheader-header

Override

A Boolean that determines whether CloudFront overrides a response header with the same name received from the origin with the header specified here.

object Override { get; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-customheader.html#cfn-cloudfront-responseheaderspolicy-customheader-override

Type union: either bool or IResolvable

Value

The value for the HTTP response header.

string Value { get; }
Property Value

string

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-responseheaderspolicy-customheader.html#cfn-cloudfront-responseheaderspolicy-customheader-value

Back to top Generated by DocFX