Interface CfnCachePolicyProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnCachePolicyProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-17T14:40:46.936Z")
@Stability(Stable)
public interface CfnCachePolicyProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnCachePolicy.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cloudfront.*;
CfnCachePolicyProps cfnCachePolicyProps = CfnCachePolicyProps.builder()
.cachePolicyConfig(CachePolicyConfigProperty.builder()
.defaultTtl(123)
.maxTtl(123)
.minTtl(123)
.name("name")
.parametersInCacheKeyAndForwardedToOrigin(ParametersInCacheKeyAndForwardedToOriginProperty.builder()
.cookiesConfig(CookiesConfigProperty.builder()
.cookieBehavior("cookieBehavior")
// the properties below are optional
.cookies(List.of("cookies"))
.build())
.enableAcceptEncodingGzip(false)
.headersConfig(HeadersConfigProperty.builder()
.headerBehavior("headerBehavior")
// the properties below are optional
.headers(List.of("headers"))
.build())
.queryStringsConfig(QueryStringsConfigProperty.builder()
.queryStringBehavior("queryStringBehavior")
// the properties below are optional
.queryStrings(List.of("queryStrings"))
.build())
// the properties below are optional
.enableAcceptEncodingBrotli(false)
.build())
// the properties below are optional
.comment("comment")
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnCachePolicyPropsstatic final classAn implementation forCfnCachePolicyProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnCachePolicyProps.Builderbuilder()The cache policy configuration.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCachePolicyConfig
The cache policy configuration.Returns union: either
IResolvableorCfnCachePolicy.CachePolicyConfigProperty- See Also:
-
builder
- Returns:
- a
CfnCachePolicyProps.BuilderofCfnCachePolicyProps
-