
com.pulumi.awsnative.elasticloadbalancingv2.kotlin.outputs.TargetGroupTargetDescription.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.elasticloadbalancingv2.kotlin.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
/**
*
* @property availabilityZone An Availability Zone or all. This determines whether the target receives traffic from the load balancer nodes in the specified Availability Zone or from all enabled Availability Zones for the load balancer.
* @property id The ID of the target. If the target type of the target group is instance, specify an instance ID. If the target type is ip, specify an IP address. If the target type is lambda, specify the ARN of the Lambda function. If the target type is alb, specify the ARN of the Application Load Balancer target.
* @property port The port on which the target is listening. If the target group protocol is GENEVE, the supported port is 6081. If the target type is alb, the targeted Application Load Balancer must have at least one listener whose port matches the target group port. Not used if the target is a Lambda function.
*/
public data class TargetGroupTargetDescription(
public val availabilityZone: String? = null,
public val id: String,
public val port: Int? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.elasticloadbalancingv2.outputs.TargetGroupTargetDescription): TargetGroupTargetDescription = TargetGroupTargetDescription(
availabilityZone = javaType.availabilityZone().map({ args0 -> args0 }).orElse(null),
id = javaType.id(),
port = javaType.port().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy