Class CfnDistribution.OriginCustomHeaderProperty
A complex type that contains HeaderName
and HeaderValue
elements, if any, for this distribution.
Inheritance
System.Object
CfnDistribution.OriginCustomHeaderProperty
Implements
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class OriginCustomHeaderProperty : Object, CfnDistribution.IOriginCustomHeaderProperty
Syntax (vb)
Public Class OriginCustomHeaderProperty
Inherits Object
Implements CfnDistribution.IOriginCustomHeaderProperty
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 originCustomHeaderProperty = new OriginCustomHeaderProperty {
HeaderName = "headerName",
HeaderValue = "headerValue"
};
Synopsis
Constructors
OriginCustomHeaderProperty() |
Properties
HeaderName | The name of a header that you want CloudFront to send to your origin. |
HeaderValue | The value for the header that you specified in the |
Constructors
OriginCustomHeaderProperty()
public OriginCustomHeaderProperty()
Properties
HeaderName
The name of a header that you want CloudFront to send to your origin.
public string HeaderName { get; set; }
Property Value
System.String
Remarks
For more information, see Adding Custom Headers to Origin Requests in the Amazon CloudFront Developer Guide .
HeaderValue
The value for the header that you specified in the HeaderName
field.
public string HeaderValue { get; set; }
Property Value
System.String