Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.cloudfront.kotlin.inputs
import com.pulumi.aws.cloudfront.inputs.DistributionDefaultCacheBehaviorArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property allowedMethods Controls which HTTP methods CloudFront processes and forwards to your Amazon S3 bucket or your custom origin.
* @property cachePolicyId 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.
* @property cachedMethods Controls whether CloudFront caches the response to requests using the specified HTTP methods.
* @property compress Whether you want CloudFront to automatically compress content for web requests that include `Accept-Encoding: gzip` in the request header (default: `false`).
* @property defaultTtl 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.
* @property fieldLevelEncryptionId Field level encryption configuration ID.
* @property forwardedValues The forwarded values configuration that specifies how CloudFront handles query strings, cookies and headers (maximum one).
* @property functionAssociations A config block that triggers a cloudfront function with specific actions (maximum 2).
* @property lambdaFunctionAssociations A config block that triggers a lambda function with specific actions (maximum 4).
* @property maxTtl 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.
* @property minTtl 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.
* @property originRequestPolicyId Unique identifier of the origin request policy that is attached to the behavior.
* @property realtimeLogConfigArn ARN of the real-time log configuration that is attached to this cache behavior.
* @property responseHeadersPolicyId Identifier for a response headers policy.
* @property smoothStreaming Indicates whether you want to distribute media files in Microsoft Smooth Streaming format using the origin that is associated with this cache behavior.
* @property targetOriginId 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.
* @property trustedKeyGroups List of nested attributes for active trusted key groups, if the distribution is set up to serve private content with signed URLs.
* @property trustedSigners List of nested attributes for active trusted signers, if the distribution is set up to serve private content with signed URLs.
* @property viewerProtocolPolicy 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`.
*/
public data class DistributionDefaultCacheBehaviorArgs(
public val allowedMethods: Output>,
public val cachePolicyId: Output? = null,
public val cachedMethods: Output>,
public val compress: Output? = null,
public val defaultTtl: Output? = null,
public val fieldLevelEncryptionId: Output? = null,
public val forwardedValues: Output? = null,
public val functionAssociations: Output>? = null,
public val lambdaFunctionAssociations: Output>? = null,
public val maxTtl: Output? = null,
public val minTtl: Output? = null,
public val originRequestPolicyId: Output? = null,
public val realtimeLogConfigArn: Output? = null,
public val responseHeadersPolicyId: Output? = null,
public val smoothStreaming: Output? = null,
public val targetOriginId: Output,
public val trustedKeyGroups: Output>? = null,
public val trustedSigners: Output>? = null,
public val viewerProtocolPolicy: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.cloudfront.inputs.DistributionDefaultCacheBehaviorArgs =
com.pulumi.aws.cloudfront.inputs.DistributionDefaultCacheBehaviorArgs.builder()
.allowedMethods(allowedMethods.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.cachePolicyId(cachePolicyId?.applyValue({ args0 -> args0 }))
.cachedMethods(cachedMethods.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.compress(compress?.applyValue({ args0 -> args0 }))
.defaultTtl(defaultTtl?.applyValue({ args0 -> args0 }))
.fieldLevelEncryptionId(fieldLevelEncryptionId?.applyValue({ args0 -> args0 }))
.forwardedValues(forwardedValues?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.functionAssociations(
functionAssociations?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.lambdaFunctionAssociations(
lambdaFunctionAssociations?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.maxTtl(maxTtl?.applyValue({ args0 -> args0 }))
.minTtl(minTtl?.applyValue({ args0 -> args0 }))
.originRequestPolicyId(originRequestPolicyId?.applyValue({ args0 -> args0 }))
.realtimeLogConfigArn(realtimeLogConfigArn?.applyValue({ args0 -> args0 }))
.responseHeadersPolicyId(responseHeadersPolicyId?.applyValue({ args0 -> args0 }))
.smoothStreaming(smoothStreaming?.applyValue({ args0 -> args0 }))
.targetOriginId(targetOriginId.applyValue({ args0 -> args0 }))
.trustedKeyGroups(trustedKeyGroups?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.trustedSigners(trustedSigners?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.viewerProtocolPolicy(viewerProtocolPolicy.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [DistributionDefaultCacheBehaviorArgs].
*/
@PulumiTagMarker
public class DistributionDefaultCacheBehaviorArgsBuilder internal constructor() {
private var allowedMethods: Output>? = null
private var cachePolicyId: Output? = null
private var cachedMethods: Output>? = null
private var compress: Output? = null
private var defaultTtl: Output? = null
private var fieldLevelEncryptionId: Output? = null
private var forwardedValues: Output? = null
private var functionAssociations:
Output>? = null
private var lambdaFunctionAssociations:
Output>? = null
private var maxTtl: Output? = null
private var minTtl: Output? = null
private var originRequestPolicyId: Output? = null
private var realtimeLogConfigArn: Output? = null
private var responseHeadersPolicyId: Output? = null
private var smoothStreaming: Output? = null
private var targetOriginId: Output? = null
private var trustedKeyGroups: Output>? = null
private var trustedSigners: Output>? = null
private var viewerProtocolPolicy: Output? = null
/**
* @param value Controls which HTTP methods CloudFront processes and forwards to your Amazon S3 bucket or your custom origin.
*/
@JvmName("gnifuogqibwmoncn")
public suspend fun allowedMethods(`value`: Output>) {
this.allowedMethods = value
}
@JvmName("tjnbgnshvhsfqqag")
public suspend fun allowedMethods(vararg values: Output) {
this.allowedMethods = Output.all(values.asList())
}
/**
* @param values Controls which HTTP methods CloudFront processes and forwards to your Amazon S3 bucket or your custom origin.
*/
@JvmName("okayblgiallybcgt")
public suspend fun allowedMethods(values: List