Interface CfnCachePolicyProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnCachePolicyProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.94.0 (build b380f01)", date="2024-03-01T20:58:20.571Z") @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: