Show / Hide Table of Contents

Interface IOriginProps

Properties to define an Origin.

Inherited Members
IOriginOptions.ConnectionAttempts
IOriginOptions.ConnectionTimeout
IOriginOptions.CustomHeaders
IOriginOptions.OriginAccessControlId
IOriginOptions.OriginId
IOriginOptions.OriginShieldEnabled
IOriginOptions.OriginShieldRegion
IOriginOptions.ResponseCompletionTimeout
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",
                ResponseCompletionTimeout = Duration.Minutes(30)
            };

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.

string? OriginPath { get; }
Property Value

string

Remarks

Must begin, but not end, with '/' (e.g., '/production/images').

Default: '/'

Back to top Generated by DocFX