@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-11T17:58:48.652Z") @Stability(value=Stable) public interface CfnCachePolicyProps extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnCachePolicyProps.Builder
A builder for
CfnCachePolicyProps |
static class |
CfnCachePolicyProps.Jsii$Proxy
An implementation for
CfnCachePolicyProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnCachePolicyProps.Builder |
builder() |
Object |
getCachePolicyConfig()
The cache policy configuration.
|
@Stability(value=Stable) @NotNull Object getCachePolicyConfig()
@Stability(value=Stable) static CfnCachePolicyProps.Builder builder()
CfnCachePolicyProps.Builder of CfnCachePolicyPropsCopyright © 2022. All rights reserved.