All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.cloudfront.kotlin.inputs.DistributionLegacyCustomOriginArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.24.0.0
Show newest version
@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>) {
        this.originSslProtocols = Output.all(values)
    }

    /**
     * @param value The domain name assigned to your CloudFront distribution.
     */
    @JvmName("wrikfxcjrchtxuyx")
    public suspend fun dnsName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dnsName = mapped
    }

    /**
     * @param value The HTTP port that CloudFront uses to connect to the origin. Specify the HTTP port that the origin listens on.
     */
    @JvmName("dtlssswsaytscuup")
    public suspend fun httpPort(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.httpPort = mapped
    }

    /**
     * @param value The HTTPS port that CloudFront uses to connect to the origin. Specify the HTTPS port that the origin listens on.
     */
    @JvmName("jwlletmgjhhhmuqt")
    public suspend fun httpsPort(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.httpsPort = mapped
    }

    /**
     * @param value Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the origin.
     */
    @JvmName("kxljcltgbwaffikr")
    public suspend fun originProtocolPolicy(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.originProtocolPolicy = mapped
    }

    /**
     * @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("yqbdjexawsblpgpo")
    public suspend fun originSslProtocols(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.originSslProtocols = mapped
    }

    /**
     * @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("fvqtvmhnteqhtrdu")
    public suspend fun originSslProtocols(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.originSslProtocols = mapped
    }

    internal fun build(): DistributionLegacyCustomOriginArgs = DistributionLegacyCustomOriginArgs(
        dnsName = dnsName ?: throw PulumiNullFieldException("dnsName"),
        httpPort = httpPort,
        httpsPort = httpsPort,
        originProtocolPolicy = originProtocolPolicy ?: throw
            PulumiNullFieldException("originProtocolPolicy"),
        originSslProtocols = originSslProtocols ?: throw PulumiNullFieldException("originSslProtocols"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy