Class CfnCachePolicyProps
Properties for defining a CfnCachePolicy
.
Inheritance
System.Object
CfnCachePolicyProps
Implements
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnCachePolicyProps : Object, ICfnCachePolicyProps
Syntax (vb)
Public Class CfnCachePolicyProps
Inherits Object
Implements ICfnCachePolicyProps
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 cfnCachePolicyProps = new CfnCachePolicyProps {
CachePolicyConfig = new CachePolicyConfigProperty {
DefaultTtl = 123,
MaxTtl = 123,
MinTtl = 123,
Name = "name",
ParametersInCacheKeyAndForwardedToOrigin = new ParametersInCacheKeyAndForwardedToOriginProperty {
CookiesConfig = new CookiesConfigProperty {
CookieBehavior = "cookieBehavior",
// the properties below are optional
Cookies = new [] { "cookies" }
},
EnableAcceptEncodingGzip = false,
HeadersConfig = new HeadersConfigProperty {
HeaderBehavior = "headerBehavior",
// the properties below are optional
Headers = new [] { "headers" }
},
QueryStringsConfig = new QueryStringsConfigProperty {
QueryStringBehavior = "queryStringBehavior",
// the properties below are optional
QueryStrings = new [] { "queryStrings" }
},
// the properties below are optional
EnableAcceptEncodingBrotli = false
},
// the properties below are optional
Comment = "comment"
}
};
Synopsis
Constructors
CfnCachePolicyProps() |
Properties
CachePolicyConfig | The cache policy configuration. |
Constructors
CfnCachePolicyProps()
public CfnCachePolicyProps()
Properties
CachePolicyConfig
The cache policy configuration.
public object CachePolicyConfig { get; set; }
Property Value
System.Object