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

com.pulumi.awsnative.gamelift.kotlin.outputs.GetGameServerGroupResult.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: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.gamelift.kotlin.outputs

import com.pulumi.awsnative.gamelift.kotlin.enums.GameServerGroupBalancingStrategy
import com.pulumi.awsnative.gamelift.kotlin.enums.GameServerGroupGameServerProtectionPolicy
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property autoScalingGroupArn A generated unique ID for the EC2 Auto Scaling group that is associated with this game server group.
 * @property balancingStrategy The fallback balancing method to use for the game server group when Spot Instances in a Region become unavailable or are not viable for game hosting.
 * @property gameServerGroupArn A generated unique ID for the game server group.
 * @property gameServerGroupName An identifier for the new game server group.
 * @property gameServerProtectionPolicy A flag that indicates whether instances in the game server group are protected from early termination.
 * @property instanceDefinitions A set of EC2 instance types to use when creating instances in the group.
 * @property roleArn The Amazon Resource Name (ARN) for an IAM role that allows Amazon GameLift to access your EC2 Auto Scaling groups.
 */
public data class GetGameServerGroupResult(
    public val autoScalingGroupArn: String? = null,
    public val balancingStrategy: GameServerGroupBalancingStrategy? = null,
    public val gameServerGroupArn: String? = null,
    public val gameServerGroupName: String? = null,
    public val gameServerProtectionPolicy: GameServerGroupGameServerProtectionPolicy? = null,
    public val instanceDefinitions: List? = null,
    public val roleArn: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.gamelift.outputs.GetGameServerGroupResult): GetGameServerGroupResult = GetGameServerGroupResult(
            autoScalingGroupArn = javaType.autoScalingGroupArn().map({ args0 -> args0 }).orElse(null),
            balancingStrategy = javaType.balancingStrategy().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.gamelift.kotlin.enums.GameServerGroupBalancingStrategy.Companion.toKotlin(args0)
                })
            }).orElse(null),
            gameServerGroupArn = javaType.gameServerGroupArn().map({ args0 -> args0 }).orElse(null),
            gameServerGroupName = javaType.gameServerGroupName().map({ args0 -> args0 }).orElse(null),
            gameServerProtectionPolicy = javaType.gameServerProtectionPolicy().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.gamelift.kotlin.enums.GameServerGroupGameServerProtectionPolicy.Companion.toKotlin(args0)
                })
            }).orElse(null),
            instanceDefinitions = javaType.instanceDefinitions().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.gamelift.kotlin.outputs.GameServerGroupInstanceDefinition.Companion.toKotlin(args0)
                })
            }),
            roleArn = javaType.roleArn().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy