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

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

package com.pulumi.cloudflare.kotlin.outputs

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

/**
 *
 * @property headers List of HTTP headers maps to match the origin response on.
 * @property originTraffic Only count traffic that has come from your origin servers. If true, cached items that Cloudflare serve will not count towards rate limiting.
 * @property statuses HTTP Status codes, can be one, many or indicate all by not providing this value.
 */
public data class RateLimitMatchResponse(
    public val headers: List>? = null,
    public val originTraffic: Boolean? = null,
    public val statuses: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.cloudflare.outputs.RateLimitMatchResponse): RateLimitMatchResponse = RateLimitMatchResponse(
            headers = javaType.headers().map({ args0 ->
                args0.map({ args0 ->
                    args0.key.to(args0.value)
                }).toMap()
            }),
            originTraffic = javaType.originTraffic().map({ args0 -> args0 }).orElse(null),
            statuses = javaType.statuses().map({ args0 -> args0 }),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy