DistributionOrderedCacheBehavior

data class DistributionOrderedCacheBehavior(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: DistributionOrderedCacheBehaviorForwardedValues? = null, val functionAssociations: List<DistributionOrderedCacheBehaviorFunctionAssociation>? = null, val lambdaFunctionAssociations: List<DistributionOrderedCacheBehaviorLambdaFunctionAssociation>? = null, val maxTtl: Int? = null, val minTtl: Int? = null, val originRequestPolicyId: String? = null, val pathPattern: String, 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: DistributionOrderedCacheBehaviorForwardedValues? = null, functionAssociations: List<DistributionOrderedCacheBehaviorFunctionAssociation>? = null, lambdaFunctionAssociations: List<DistributionOrderedCacheBehaviorLambdaFunctionAssociation>? = null, maxTtl: Int? = null, minTtl: Int? = null, originRequestPolicyId: String? = null, pathPattern: String, 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.

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 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.

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.

Link copied to clipboard

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

Link copied to clipboard

Pattern (for example, images/*.jpg) that specifies which requests you want this cache behavior to apply to.

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 key group IDs that CloudFront can use to validate signed URLs or signed cookies. See the CloudFront User Guide for more information about this feature.

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

List of AWS account IDs (or self) that you want to allow to create signed URLs for private content. See the CloudFront User Guide for more information about this feature.

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. */