Interface CfnOriginRequestPolicy.IOriginRequestPolicyConfigProperty
An origin request policy configuration.
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IOriginRequestPolicyConfigProperty
Syntax (vb)
Public Interface IOriginRequestPolicyConfigProperty
Remarks
This configuration determines the values that CloudFront includes in requests that it sends to the origin. Each request that CloudFront sends to the origin includes the following:
CloudFront sends a request when it can't find an object in its cache that matches the request. If you want to send values to the origin and also include them in the cache key, use CachePolicy
.
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 originRequestPolicyConfigProperty = new OriginRequestPolicyConfigProperty {
CookiesConfig = new CookiesConfigProperty {
CookieBehavior = "cookieBehavior",
// the properties below are optional
Cookies = new [] { "cookies" }
},
HeadersConfig = new HeadersConfigProperty {
HeaderBehavior = "headerBehavior",
// the properties below are optional
Headers = new [] { "headers" }
},
Name = "name",
QueryStringsConfig = new QueryStringsConfigProperty {
QueryStringBehavior = "queryStringBehavior",
// the properties below are optional
QueryStrings = new [] { "queryStrings" }
},
// the properties below are optional
Comment = "comment"
};
Synopsis
Properties
Comment | A comment to describe the origin request policy. |
CookiesConfig | The cookies from viewer requests to include in origin requests. |
HeadersConfig | The HTTP headers to include in origin requests. |
Name | A unique name to identify the origin request policy. |
QueryStringsConfig | The URL query strings from viewer requests to include in origin requests. |
Properties
Comment
A comment to describe the origin request policy.
virtual string Comment { get; }
Property Value
System.String
Remarks
The comment cannot be longer than 128 characters.
CookiesConfig
The cookies from viewer requests to include in origin requests.
object CookiesConfig { get; }
Property Value
System.Object
Remarks
HeadersConfig
The HTTP headers to include in origin requests.
object HeadersConfig { get; }
Property Value
System.Object
Remarks
These can include headers from viewer requests and additional headers added by CloudFront.
Name
A unique name to identify the origin request policy.
string Name { get; }
Property Value
System.String
Remarks
QueryStringsConfig
The URL query strings from viewer requests to include in origin requests.
object QueryStringsConfig { get; }
Property Value
System.Object