com.pulumi.gcp.compute.kotlin.outputs.RegionUrlMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyAbort.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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 RegionUrlMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyAbort(
public val httpStatus: Int? = null,
public val percentage: Double? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.RegionUrlMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyAbort): RegionUrlMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyAbort =
RegionUrlMapPathMatcherRouteRuleRouteActionFaultInjectionPolicyAbort(
httpStatus = javaType.httpStatus().map({ args0 -> args0 }).orElse(null),
percentage = javaType.percentage().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy