com.pulumi.awsnative.shield.kotlin.enums.ProtectionGroupAggregation.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-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.awsnative.shield.kotlin.enums
import com.pulumi.kotlin.ConvertibleToJava
import kotlin.Suppress
/**
* Defines how AWS Shield combines resource data for the group in order to detect, mitigate, and report events.
* * Sum - Use the total traffic across the group. This is a good choice for most cases. Examples include Elastic IP addresses for EC2 instances that scale manually or automatically.
* * Mean - Use the average of the traffic across the group. This is a good choice for resources that share traffic uniformly. Examples include accelerators and load balancers.
* * Max - Use the highest traffic from each resource. This is useful for resources that don't share traffic and for resources that share that traffic in a non-uniform way. Examples include Amazon CloudFront and origin resources for CloudFront distributions.
*/
public enum class ProtectionGroupAggregation(
public val javaValue: com.pulumi.awsnative.shield.enums.ProtectionGroupAggregation,
) : ConvertibleToJava {
Sum(com.pulumi.awsnative.shield.enums.ProtectionGroupAggregation.Sum),
Mean(com.pulumi.awsnative.shield.enums.ProtectionGroupAggregation.Mean),
Max(com.pulumi.awsnative.shield.enums.ProtectionGroupAggregation.Max),
;
override fun toJava(): com.pulumi.awsnative.shield.enums.ProtectionGroupAggregation = javaValue
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.shield.enums.ProtectionGroupAggregation): ProtectionGroupAggregation =
ProtectionGroupAggregation.values().first { it.javaValue == javaType }
}
}