@Stability(value=Stable)
public static interface CfnCachePolicy.CachePolicyConfigProperty
extends software.amazon.jsii.JsiiSerializable
// 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.*;
CachePolicyConfigProperty cachePolicyConfigProperty = 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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnCachePolicy.CachePolicyConfigProperty.Builder
A builder for
CfnCachePolicy.CachePolicyConfigProperty |
static class |
CfnCachePolicy.CachePolicyConfigProperty.Jsii$Proxy
An implementation for
CfnCachePolicy.CachePolicyConfigProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnCachePolicy.CachePolicyConfigProperty.Builder |
builder() |
default String |
getComment()
`CfnCachePolicy.CachePolicyConfigProperty.Comment`.
|
Number |
getDefaultTtl()
`CfnCachePolicy.CachePolicyConfigProperty.DefaultTTL`.
|
Number |
getMaxTtl()
`CfnCachePolicy.CachePolicyConfigProperty.MaxTTL`.
|
Number |
getMinTtl()
`CfnCachePolicy.CachePolicyConfigProperty.MinTTL`.
|
String |
getName()
`CfnCachePolicy.CachePolicyConfigProperty.Name`.
|
Object |
getParametersInCacheKeyAndForwardedToOrigin()
`CfnCachePolicy.CachePolicyConfigProperty.ParametersInCacheKeyAndForwardedToOrigin`.
|
@Stability(value=Stable) @Nullable default String getComment()
@Stability(value=Stable) @NotNull Number getDefaultTtl()
@Stability(value=Stable) @NotNull Number getMaxTtl()
@Stability(value=Stable) @NotNull Number getMinTtl()
@Stability(value=Stable) @NotNull String getName()
@Stability(value=Stable) @NotNull Object getParametersInCacheKeyAndForwardedToOrigin()
@Stability(value=Stable) static CfnCachePolicy.CachePolicyConfigProperty.Builder builder()
Copyright © 2021. All rights reserved.