DistributionDefaultCacheBehavior

data class DistributionDefaultCacheBehavior(val allowedMethods: List<String>, val cachePolicyId: String? = null, val cachedMethods: List<String>, val compress: Boolean? = null, val defaultTtl: Int? = null, val fieldLevelEncryptionId: String? = null, val forwardedValues: DistributionDefaultCacheBehaviorForwardedValues? = null, val functionAssociations: List<DistributionDefaultCacheBehaviorFunctionAssociation>? = null, val grpcConfig: DistributionDefaultCacheBehaviorGrpcConfig? = null, val lambdaFunctionAssociations: List<DistributionDefaultCacheBehaviorLambdaFunctionAssociation>? = null, val maxTtl: Int? = null, val minTtl: Int? = null, val originRequestPolicyId: String? = null, val realtimeLogConfigArn: String? = null, val responseHeadersPolicyId: String? = null, val smoothStreaming: Boolean? = null, val targetOriginId: String, val trustedKeyGroups: List<String>? = null, val trustedSigners: List<String>? = null, val viewerProtocolPolicy: String)

Constructors

Link copied to clipboard
constructor(allowedMethods: List<String>, cachePolicyId: String? = null, cachedMethods: List<String>, compress: Boolean? = null, defaultTtl: Int? = null, fieldLevelEncryptionId: String? = null, forwardedValues: DistributionDefaultCacheBehaviorForwardedValues? = null, functionAssociations: List<DistributionDefaultCacheBehaviorFunctionAssociation>? = null, grpcConfig: DistributionDefaultCacheBehaviorGrpcConfig? = null, lambdaFunctionAssociations: List<DistributionDefaultCacheBehaviorLambdaFunctionAssociation>? = null, maxTtl: Int? = null, minTtl: Int? = null, originRequestPolicyId: String? = null, realtimeLogConfigArn: String? = null, responseHeadersPolicyId: String? = null, smoothStreaming: Boolean? = null, targetOriginId: String, trustedKeyGroups: List<String>? = null, trustedSigners: List<String>? = null, viewerProtocolPolicy: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Controls which HTTP methods CloudFront processes and forwards to your Amazon S3 bucket or your custom origin.

Link copied to clipboard

Controls whether CloudFront caches the response to requests using the specified HTTP methods.

Link copied to clipboard
val cachePolicyId: String? = null

Unique identifier of the cache policy that is attached to the cache behavior. If configuring the default_cache_behavior either cache_policy_id or forwarded_values must be set.

Link copied to clipboard
val compress: Boolean? = null

Whether you want CloudFront to automatically compress content for web requests that include Accept-Encoding: gzip in the request header (default: false).

Link copied to clipboard
val defaultTtl: Int? = null

Default amount of time (in seconds) that an object is in a CloudFront cache before CloudFront forwards another request in the absence of an Cache-Control max-age or Expires header. The TTL defined in Cache Policy overrides this configuration.

Link copied to clipboard

Field level encryption configuration ID.

Link copied to clipboard

The forwarded values configuration that specifies how CloudFront handles query strings, cookies and headers (maximum one).

Link copied to clipboard

A config block that triggers a cloudfront function with specific actions (maximum 2).

Link copied to clipboard

A config block that sets the grpc config.

Link copied to clipboard

A config block that triggers a lambda function with specific actions (maximum 4).

Link copied to clipboard
val maxTtl: Int? = null

Maximum amount of time (in seconds) that an object is in a CloudFront cache before CloudFront forwards another request to your origin to determine whether the object has been updated. Only effective in the presence of Cache-Control max-age, Cache-Control s-maxage, and Expires headers. The TTL defined in Cache Policy overrides this configuration.

Link copied to clipboard
val minTtl: Int? = null

Minimum amount of time that you want objects to stay in CloudFront caches before CloudFront queries your origin to see whether the object has been updated. Defaults to 0 seconds. The TTL defined in Cache Policy overrides this configuration.

Link copied to clipboard

Unique identifier of the origin request policy that is attached to the behavior.

Link copied to clipboard

ARN of the real-time log configuration that is attached to this cache behavior.

Link copied to clipboard

Identifier for a response headers policy.

Link copied to clipboard

Indicates whether you want to distribute media files in Microsoft Smooth Streaming format using the origin that is associated with this cache behavior.

Link copied to clipboard

Value of ID for the origin that you want CloudFront to route requests to when a request matches the path pattern either for a cache behavior or for the default cache behavior.

Link copied to clipboard

List of nested attributes for active trusted key groups, if the distribution is set up to serve private content with signed URLs.

Link copied to clipboard
val trustedSigners: List<String>? = null

List of nested attributes for active trusted signers, if the distribution is set up to serve private content with signed URLs.

Link copied to clipboard

Use this element to specify the protocol that users can use to access the files in the origin specified by TargetOriginId when a request matches the path pattern in PathPattern. One of allow-all, https-only, or redirect-to-https.