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

com.pulumi.digitalocean.kotlin.outputs.GetAppSpecIngressRule.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: 4.38.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.digitalocean.kotlin.outputs

import kotlin.Suppress

/**
 *
 * @property component
 * @property cors The [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) policies of the app.
 * @property match
 * @property redirect
 */
public data class GetAppSpecIngressRule(
    public val component: GetAppSpecIngressRuleComponent,
    public val cors: GetAppSpecIngressRuleCors,
    public val match: GetAppSpecIngressRuleMatch,
    public val redirect: GetAppSpecIngressRuleRedirect? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.digitalocean.outputs.GetAppSpecIngressRule): GetAppSpecIngressRule = GetAppSpecIngressRule(
            component = javaType.component().let({ args0 ->
                com.pulumi.digitalocean.kotlin.outputs.GetAppSpecIngressRuleComponent.Companion.toKotlin(args0)
            }),
            cors = javaType.cors().let({ args0 ->
                com.pulumi.digitalocean.kotlin.outputs.GetAppSpecIngressRuleCors.Companion.toKotlin(args0)
            }),
            match = javaType.match().let({ args0 ->
                com.pulumi.digitalocean.kotlin.outputs.GetAppSpecIngressRuleMatch.Companion.toKotlin(args0)
            }),
            redirect = javaType.redirect().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.digitalocean.kotlin.outputs.GetAppSpecIngressRuleRedirect.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy