@Stability(value=Stable)
public static interface CfnDistribution.DefaultCacheBehaviorProperty
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.*;
DefaultCacheBehaviorProperty defaultCacheBehaviorProperty = DefaultCacheBehaviorProperty.builder()
.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.DefaultCacheBehaviorProperty.Builder
A builder for
CfnDistribution.DefaultCacheBehaviorProperty |
static class |
CfnDistribution.DefaultCacheBehaviorProperty.Jsii$Proxy
An implementation for
CfnDistribution.DefaultCacheBehaviorProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnDistribution.DefaultCacheBehaviorProperty.Builder |
builder() |
default List<String> |
getAllowedMethods()
`CfnDistribution.DefaultCacheBehaviorProperty.AllowedMethods`.
|
default List<String> |
getCachedMethods()
`CfnDistribution.DefaultCacheBehaviorProperty.CachedMethods`.
|
default String |
getCachePolicyId()
`CfnDistribution.DefaultCacheBehaviorProperty.CachePolicyId`.
|
default Object |
getCompress()
`CfnDistribution.DefaultCacheBehaviorProperty.Compress`.
|
default Number |
getDefaultTtl()
`CfnDistribution.DefaultCacheBehaviorProperty.DefaultTTL`.
|
default String |
getFieldLevelEncryptionId()
`CfnDistribution.DefaultCacheBehaviorProperty.FieldLevelEncryptionId`.
|
default Object |
getForwardedValues()
`CfnDistribution.DefaultCacheBehaviorProperty.ForwardedValues`.
|
default Object |
getFunctionAssociations()
`CfnDistribution.DefaultCacheBehaviorProperty.FunctionAssociations`.
|
default Object |
getLambdaFunctionAssociations()
`CfnDistribution.DefaultCacheBehaviorProperty.LambdaFunctionAssociations`.
|
default Number |
getMaxTtl()
`CfnDistribution.DefaultCacheBehaviorProperty.MaxTTL`.
|
default Number |
getMinTtl()
`CfnDistribution.DefaultCacheBehaviorProperty.MinTTL`.
|
default String |
getOriginRequestPolicyId()
`CfnDistribution.DefaultCacheBehaviorProperty.OriginRequestPolicyId`.
|
default String |
getRealtimeLogConfigArn()
`CfnDistribution.DefaultCacheBehaviorProperty.RealtimeLogConfigArn`.
|
default String |
getResponseHeadersPolicyId()
`CfnDistribution.DefaultCacheBehaviorProperty.ResponseHeadersPolicyId`.
|
default Object |
getSmoothStreaming()
`CfnDistribution.DefaultCacheBehaviorProperty.SmoothStreaming`.
|
String |
getTargetOriginId()
`CfnDistribution.DefaultCacheBehaviorProperty.TargetOriginId`.
|
default List<String> |
getTrustedKeyGroups()
`CfnDistribution.DefaultCacheBehaviorProperty.TrustedKeyGroups`.
|
default List<String> |
getTrustedSigners()
`CfnDistribution.DefaultCacheBehaviorProperty.TrustedSigners`.
|
String |
getViewerProtocolPolicy()
`CfnDistribution.DefaultCacheBehaviorProperty.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) @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.DefaultCacheBehaviorProperty.Builder builder()
Copyright © 2021. All rights reserved.