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

com.pulumi.awsnative.vpclattice.kotlin.outputs.RuleHttpMatch.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.vpclattice.kotlin.outputs

import com.pulumi.awsnative.vpclattice.kotlin.enums.RuleHttpMatchMethod
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property headerMatches The header matches. Matches incoming requests with rule based on request header value before applying rule action.
 * @property method The HTTP method type.
 * @property pathMatch The path match.
 */
public data class RuleHttpMatch(
    public val headerMatches: List? = null,
    public val method: RuleHttpMatchMethod? = null,
    public val pathMatch: RulePathMatch? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.vpclattice.outputs.RuleHttpMatch): RuleHttpMatch = RuleHttpMatch(
            headerMatches = javaType.headerMatches().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.vpclattice.kotlin.outputs.RuleHeaderMatch.Companion.toKotlin(args0)
                })
            }),
            method = javaType.method().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.vpclattice.kotlin.enums.RuleHttpMatchMethod.Companion.toKotlin(args0)
                })
            }).orElse(null),
            pathMatch = javaType.pathMatch().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.vpclattice.kotlin.outputs.RulePathMatch.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy