DistributionOrderedCacheBehaviorArgs

data class DistributionOrderedCacheBehaviorArgs(val allowedMethods: Output<List<String>>, val cachePolicyId: Output<String>? = null, val cachedMethods: Output<List<String>>, val compress: Output<Boolean>? = null, val defaultTtl: Output<Int>? = null, val fieldLevelEncryptionId: Output<String>? = null, val forwardedValues: Output<DistributionOrderedCacheBehaviorForwardedValuesArgs>? = null, val functionAssociations: Output<List<DistributionOrderedCacheBehaviorFunctionAssociationArgs>>? = null, val grpcConfig: Output<DistributionOrderedCacheBehaviorGrpcConfigArgs>? = null, val lambdaFunctionAssociations: Output<List<DistributionOrderedCacheBehaviorLambdaFunctionAssociationArgs>>? = null, val maxTtl: Output<Int>? = null, val minTtl: Output<Int>? = null, val originRequestPolicyId: Output<String>? = null, val pathPattern: Output<String>, val realtimeLogConfigArn: Output<String>? = null, val responseHeadersPolicyId: Output<String>? = null, val smoothStreaming: Output<Boolean>? = null, val targetOriginId: Output<String>, val trustedKeyGroups: Output<List<String>>? = null, val trustedSigners: Output<List<String>>? = null, val viewerProtocolPolicy: Output<String>) : ConvertibleToJava<DistributionOrderedCacheBehaviorArgs>

Constructors

Link copied to clipboard
constructor(allowedMethods: Output<List<String>>, cachePolicyId: Output<String>? = null, cachedMethods: Output<List<String>>, compress: Output<Boolean>? = null, defaultTtl: Output<Int>? = null, fieldLevelEncryptionId: Output<String>? = null, forwardedValues: Output<DistributionOrderedCacheBehaviorForwardedValuesArgs>? = null, functionAssociations: Output<List<DistributionOrderedCacheBehaviorFunctionAssociationArgs>>? = null, grpcConfig: Output<DistributionOrderedCacheBehaviorGrpcConfigArgs>? = null, lambdaFunctionAssociations: Output<List<DistributionOrderedCacheBehaviorLambdaFunctionAssociationArgs>>? = null, maxTtl: Output<Int>? = null, minTtl: Output<Int>? = null, originRequestPolicyId: Output<String>? = null, pathPattern: Output<String>, realtimeLogConfigArn: Output<String>? = null, responseHeadersPolicyId: Output<String>? = null, smoothStreaming: Output<Boolean>? = null, targetOriginId: Output<String>, trustedKeyGroups: Output<List<String>>? = null, trustedSigners: Output<List<String>>? = null, viewerProtocolPolicy: Output<String>)

Properties

Link copied to clipboard
val allowedMethods: Output<List<String>>

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

Link copied to clipboard
val cachedMethods: Output<List<String>>

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

Link copied to clipboard
val cachePolicyId: Output<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: Output<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: Output<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
val fieldLevelEncryptionId: Output<String>? = null

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: Output<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: Output<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
val originRequestPolicyId: Output<String>? = null

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

Link copied to clipboard
val pathPattern: Output<String>

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

Link copied to clipboard
val realtimeLogConfigArn: Output<String>? = null

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

Link copied to clipboard
val responseHeadersPolicyId: Output<String>? = null

Identifier for a response headers policy.

Link copied to clipboard
val smoothStreaming: Output<Boolean>? = null

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
val targetOriginId: Output<String>

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
val trustedKeyGroups: Output<List<String>>? = null

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

Functions

Link copied to clipboard
open override fun toJava(): DistributionOrderedCacheBehaviorArgs