Interface IOriginProps
Properties to define an Origin.
Inherited Members
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IOriginProps : IOriginOptions
Syntax (vb)
Public Interface IOriginProps
Inherits IOriginOptions
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;
using Amazon.CDK.AWS.CloudFront;
var originProps = new OriginProps {
ConnectionAttempts = 123,
ConnectionTimeout = Duration.Minutes(30),
CustomHeaders = new Dictionary<string, string> {
{ "customHeadersKey", "customHeaders" }
},
OriginAccessControlId = "originAccessControlId",
OriginId = "originId",
OriginPath = "originPath",
OriginShieldEnabled = false,
OriginShieldRegion = "originShieldRegion"
};
Synopsis
Properties
OriginPath | An optional path that CloudFront appends to the origin domain name when CloudFront requests content from the origin. |
Properties
OriginPath
An optional path that CloudFront appends to the origin domain name when CloudFront requests content from the origin.
virtual string OriginPath { get; }
Property Value
System.String
Remarks
Must begin, but not end, with '/' (e.g., '/production/images').
Default: '/'