
com.pulumi.awsnative.cloudfront.kotlin.inputs.DistributionLegacyCustomOriginArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
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.awsnative.cloudfront.kotlin.inputs
import com.pulumi.awsnative.cloudfront.inputs.DistributionLegacyCustomOriginArgs.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 kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property dnsName The domain name assigned to your CloudFront distribution.
* @property httpPort The HTTP port that CloudFront uses to connect to the origin. Specify the HTTP port that the origin listens on.
* @property httpsPort The HTTPS port that CloudFront uses to connect to the origin. Specify the HTTPS port that the origin listens on.
* @property originProtocolPolicy Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the origin.
* @property originSslProtocols The minimum SSL/TLS protocol version that CloudFront uses when communicating with your origin server over HTTPs.
* For more information, see [Minimum Origin SSL Protocol](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesOriginSSLProtocols) in the *Amazon CloudFront Developer Guide* .
*/
public data class DistributionLegacyCustomOriginArgs(
public val dnsName: Output,
public val httpPort: Output? = null,
public val httpsPort: Output? = null,
public val originProtocolPolicy: Output,
public val originSslProtocols: Output>,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.cloudfront.inputs.DistributionLegacyCustomOriginArgs =
com.pulumi.awsnative.cloudfront.inputs.DistributionLegacyCustomOriginArgs.builder()
.dnsName(dnsName.applyValue({ args0 -> args0 }))
.httpPort(httpPort?.applyValue({ args0 -> args0 }))
.httpsPort(httpsPort?.applyValue({ args0 -> args0 }))
.originProtocolPolicy(originProtocolPolicy.applyValue({ args0 -> args0 }))
.originSslProtocols(originSslProtocols.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}
/**
* Builder for [DistributionLegacyCustomOriginArgs].
*/
@PulumiTagMarker
public class DistributionLegacyCustomOriginArgsBuilder internal constructor() {
private var dnsName: Output? = null
private var httpPort: Output? = null
private var httpsPort: Output? = null
private var originProtocolPolicy: Output? = null
private var originSslProtocols: Output>? = null
/**
* @param value The domain name assigned to your CloudFront distribution.
*/
@JvmName("wkukiwlafjdybopg")
public suspend fun dnsName(`value`: Output) {
this.dnsName = value
}
/**
* @param value The HTTP port that CloudFront uses to connect to the origin. Specify the HTTP port that the origin listens on.
*/
@JvmName("cgmtdxqduswvjyuf")
public suspend fun httpPort(`value`: Output) {
this.httpPort = value
}
/**
* @param value The HTTPS port that CloudFront uses to connect to the origin. Specify the HTTPS port that the origin listens on.
*/
@JvmName("nxnjfebtjipfmwqg")
public suspend fun httpsPort(`value`: Output) {
this.httpsPort = value
}
/**
* @param value Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the origin.
*/
@JvmName("wjooxavibbxnnvci")
public suspend fun originProtocolPolicy(`value`: Output) {
this.originProtocolPolicy = value
}
/**
* @param value The minimum SSL/TLS protocol version that CloudFront uses when communicating with your origin server over HTTPs.
* For more information, see [Minimum Origin SSL Protocol](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesOriginSSLProtocols) in the *Amazon CloudFront Developer Guide* .
*/
@JvmName("owyyfnbcjkxudvnf")
public suspend fun originSslProtocols(`value`: Output>) {
this.originSslProtocols = value
}
@JvmName("fohfeohtbigjyubj")
public suspend fun originSslProtocols(vararg values: Output) {
this.originSslProtocols = Output.all(values.asList())
}
/**
* @param values The minimum SSL/TLS protocol version that CloudFront uses when communicating with your origin server over HTTPs.
* For more information, see [Minimum Origin SSL Protocol](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesOriginSSLProtocols) in the *Amazon CloudFront Developer Guide* .
*/
@JvmName("gmulpvhufycdqoyx")
public suspend fun originSslProtocols(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy