@Stability(value=Stable)
public static interface CfnDistribution.CacheBehaviorProperty
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.*;
CacheBehaviorProperty cacheBehaviorProperty = CacheBehaviorProperty.builder()
.pathPattern("pathPattern")
.targetOriginId("targetOriginId")
.viewerProtocolPolicy("viewerProtocolPolicy")
// the properties below are optional
.allowedMethods(List.of("allowedMethods"))
.cachedMethods(List.of("cachedMethods"))
.cachePolicyId("cachePolicyId")
.compress(false)
.defaultTtl(123)
.fieldLevelEncryptionId("fieldLevelEncryptionId")
.forwardedValues(ForwardedValuesProperty.builder()
.queryString(false)
// the properties below are optional
.cookies(CookiesProperty.builder()
.forward("forward")
// the properties below are optional
.whitelistedNames(List.of("whitelistedNames"))
.build())
.headers(List.of("headers"))
.queryStringCacheKeys(List.of("queryStringCacheKeys"))
.build())
.functionAssociations(List.of(FunctionAssociationProperty.builder()
.eventType("eventType")
.functionArn("functionArn")
.build()))
.lambdaFunctionAssociations(List.of(LambdaFunctionAssociationProperty.builder()
.eventType("eventType")
.includeBody(false)
.lambdaFunctionArn("lambdaFunctionArn")
.build()))
.maxTtl(123)
.minTtl(123)
.originRequestPolicyId("originRequestPolicyId")
.realtimeLogConfigArn("realtimeLogConfigArn")
.responseHeadersPolicyId("responseHeadersPolicyId")
.smoothStreaming(false)
.trustedKeyGroups(List.of("trustedKeyGroups"))
.trustedSigners(List.of("trustedSigners"))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnDistribution.CacheBehaviorProperty.Builder
A builder for
CfnDistribution.CacheBehaviorProperty |
static class |
CfnDistribution.CacheBehaviorProperty.Jsii$Proxy
An implementation for
CfnDistribution.CacheBehaviorProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnDistribution.CacheBehaviorProperty.Builder |
builder() |
default List<String> |
getAllowedMethods()
`CfnDistribution.CacheBehaviorProperty.AllowedMethods`.
|
default List<String> |
getCachedMethods()
`CfnDistribution.CacheBehaviorProperty.CachedMethods`.
|
default String |
getCachePolicyId()
`CfnDistribution.CacheBehaviorProperty.CachePolicyId`.
|
default Object |
getCompress()
`CfnDistribution.CacheBehaviorProperty.Compress`.
|
default Number |
getDefaultTtl()
`CfnDistribution.CacheBehaviorProperty.DefaultTTL`.
|
default String |
getFieldLevelEncryptionId()
`CfnDistribution.CacheBehaviorProperty.FieldLevelEncryptionId`.
|
default Object |
getForwardedValues()
`CfnDistribution.CacheBehaviorProperty.ForwardedValues`.
|
default Object |
getFunctionAssociations()
`CfnDistribution.CacheBehaviorProperty.FunctionAssociations`.
|
default Object |
getLambdaFunctionAssociations()
`CfnDistribution.CacheBehaviorProperty.LambdaFunctionAssociations`.
|
default Number |
getMaxTtl()
`CfnDistribution.CacheBehaviorProperty.MaxTTL`.
|
default Number |
getMinTtl()
`CfnDistribution.CacheBehaviorProperty.MinTTL`.
|
default String |
getOriginRequestPolicyId()
`CfnDistribution.CacheBehaviorProperty.OriginRequestPolicyId`.
|
String |
getPathPattern()
`CfnDistribution.CacheBehaviorProperty.PathPattern`.
|
default String |
getRealtimeLogConfigArn()
`CfnDistribution.CacheBehaviorProperty.RealtimeLogConfigArn`.
|
default String |
getResponseHeadersPolicyId()
`CfnDistribution.CacheBehaviorProperty.ResponseHeadersPolicyId`.
|
default Object |
getSmoothStreaming()
`CfnDistribution.CacheBehaviorProperty.SmoothStreaming`.
|
String |
getTargetOriginId()
`CfnDistribution.CacheBehaviorProperty.TargetOriginId`.
|
default List<String> |
getTrustedKeyGroups()
`CfnDistribution.CacheBehaviorProperty.TrustedKeyGroups`.
|
default List<String> |
getTrustedSigners()
`CfnDistribution.CacheBehaviorProperty.TrustedSigners`.
|
String |
getViewerProtocolPolicy()
`CfnDistribution.CacheBehaviorProperty.ViewerProtocolPolicy`.
|
@Stability(value=Stable) @Nullable default List<String> getAllowedMethods()
@Stability(value=Stable) @Nullable default List<String> getCachedMethods()
@Stability(value=Stable) @Nullable default String getCachePolicyId()
@Stability(value=Stable) @Nullable default Object getCompress()
@Stability(value=Stable) @Nullable default Number getDefaultTtl()
@Stability(value=Stable) @Nullable default String getFieldLevelEncryptionId()
@Stability(value=Stable) @Nullable default Object getForwardedValues()
@Stability(value=Stable) @Nullable default Object getFunctionAssociations()
@Stability(value=Stable) @Nullable default Object getLambdaFunctionAssociations()
@Stability(value=Stable) @Nullable default Number getMaxTtl()
@Stability(value=Stable) @Nullable default Number getMinTtl()
@Stability(value=Stable) @Nullable default String getOriginRequestPolicyId()
@Stability(value=Stable) @NotNull String getPathPattern()
@Stability(value=Stable) @Nullable default String getRealtimeLogConfigArn()
@Stability(value=Stable) @Nullable default String getResponseHeadersPolicyId()
@Stability(value=Stable) @Nullable default Object getSmoothStreaming()
@Stability(value=Stable) @NotNull String getTargetOriginId()
@Stability(value=Stable) @Nullable default List<String> getTrustedKeyGroups()
@Stability(value=Stable) @Nullable default List<String> getTrustedSigners()
@Stability(value=Stable) @NotNull String getViewerProtocolPolicy()
@Stability(value=Stable) static CfnDistribution.CacheBehaviorProperty.Builder builder()
Copyright © 2021. All rights reserved.