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

com.pulumi.awsnative.globalaccelerator.kotlin.outputs.GetEndpointGroupResult.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.globalaccelerator.kotlin.outputs

import com.pulumi.awsnative.globalaccelerator.kotlin.enums.EndpointGroupHealthCheckProtocol
import kotlin.Double
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property endpointConfigurations The list of endpoint objects.
 * @property endpointGroupArn The Amazon Resource Name (ARN) of the endpoint group
 * @property healthCheckIntervalSeconds The time in seconds between each health check for an endpoint. Must be a value of 10 or 30
 * @property healthCheckPath If the protocol is HTTP/S, then this value provides the ping path that Global Accelerator uses for the destination on the endpoints for health checks. The default is slash (/).
 * @property healthCheckPort The port that AWS Global Accelerator uses to check the health of endpoints in this endpoint group.
 * @property healthCheckProtocol The protocol that AWS Global Accelerator uses to check the health of endpoints in this endpoint group.
 * @property portOverrides Allows you to override the destination ports used to route traffic to an endpoint. Using a port override lets you map a list of external destination ports (that your users send traffic to) to a list of internal destination ports that you want an application endpoint to receive traffic on.
 * @property thresholdCount The number of consecutive health checks required to set the state of the endpoint to unhealthy.
 * @property trafficDialPercentage The percentage of traffic to sent to an AWS Region
 */
public data class GetEndpointGroupResult(
    public val endpointConfigurations: List? = null,
    public val endpointGroupArn: String? = null,
    public val healthCheckIntervalSeconds: Int? = null,
    public val healthCheckPath: String? = null,
    public val healthCheckPort: Int? = null,
    public val healthCheckProtocol: EndpointGroupHealthCheckProtocol? = null,
    public val portOverrides: List? = null,
    public val thresholdCount: Int? = null,
    public val trafficDialPercentage: Double? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.globalaccelerator.outputs.GetEndpointGroupResult): GetEndpointGroupResult = GetEndpointGroupResult(
            endpointConfigurations = javaType.endpointConfigurations().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.globalaccelerator.kotlin.outputs.EndpointGroupEndpointConfiguration.Companion.toKotlin(args0)
                })
            }),
            endpointGroupArn = javaType.endpointGroupArn().map({ args0 -> args0 }).orElse(null),
            healthCheckIntervalSeconds = javaType.healthCheckIntervalSeconds().map({ args0 ->
                args0
            }).orElse(null),
            healthCheckPath = javaType.healthCheckPath().map({ args0 -> args0 }).orElse(null),
            healthCheckPort = javaType.healthCheckPort().map({ args0 -> args0 }).orElse(null),
            healthCheckProtocol = javaType.healthCheckProtocol().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.globalaccelerator.kotlin.enums.EndpointGroupHealthCheckProtocol.Companion.toKotlin(args0)
                })
            }).orElse(null),
            portOverrides = javaType.portOverrides().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.globalaccelerator.kotlin.outputs.EndpointGroupPortOverride.Companion.toKotlin(args0)
                })
            }),
            thresholdCount = javaType.thresholdCount().map({ args0 -> args0 }).orElse(null),
            trafficDialPercentage = javaType.trafficDialPercentage().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy