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

com.pulumi.gcp.compute.kotlin.outputs.URLMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyAbort.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: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.compute.kotlin.outputs

import kotlin.Double
import kotlin.Int
import kotlin.Suppress

/**
 *
 * @property httpStatus The HTTP status code used to abort the request.
 * The value must be between 200 and 599 inclusive.
 * @property percentage The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection.
 * The value must be between 0.0 and 100.0 inclusive.
 */
public data class URLMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyAbort(
    public val httpStatus: Int? = null,
    public val percentage: Double? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.URLMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyAbort): URLMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyAbort =
            URLMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyAbort(
                httpStatus = javaType.httpStatus().map({ args0 -> args0 }).orElse(null),
                percentage = javaType.percentage().map({ args0 -> args0 }).orElse(null),
            )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy