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

com.pulumi.awsnative.cloudfront.kotlin.outputs.DistributionLegacyCustomOrigin.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.cloudfront.kotlin.outputs

import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @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 DistributionLegacyCustomOrigin(
    public val dnsName: String,
    public val httpPort: Int? = null,
    public val httpsPort: Int? = null,
    public val originProtocolPolicy: String,
    public val originSslProtocols: List,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.cloudfront.outputs.DistributionLegacyCustomOrigin): DistributionLegacyCustomOrigin = DistributionLegacyCustomOrigin(
            dnsName = javaType.dnsName(),
            httpPort = javaType.httpPort().map({ args0 -> args0 }).orElse(null),
            httpsPort = javaType.httpsPort().map({ args0 -> args0 }).orElse(null),
            originProtocolPolicy = javaType.originProtocolPolicy(),
            originSslProtocols = javaType.originSslProtocols().map({ args0 -> args0 }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy