![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.ec2.kotlin.outputs.GetEc2FleetResult.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.ec2.kotlin.outputs
import com.pulumi.awsnative.ec2.kotlin.enums.Ec2FleetExcessCapacityTerminationPolicy
import kotlin.String
import kotlin.Suppress
/**
*
* @property context Reserved.
* @property excessCapacityTerminationPolicy Indicates whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2 Fleet.
* Supported only for fleets of type `maintain` .
* @property fleetId The ID of the EC2 Fleet.
* @property targetCapacitySpecification The number of units to request.
*/
public data class GetEc2FleetResult(
public val context: String? = null,
public val excessCapacityTerminationPolicy: Ec2FleetExcessCapacityTerminationPolicy? = null,
public val fleetId: String? = null,
public val targetCapacitySpecification: Ec2FleetTargetCapacitySpecificationRequest? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.ec2.outputs.GetEc2FleetResult): GetEc2FleetResult = GetEc2FleetResult(
context = javaType.context().map({ args0 -> args0 }).orElse(null),
excessCapacityTerminationPolicy = javaType.excessCapacityTerminationPolicy().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.ec2.kotlin.enums.Ec2FleetExcessCapacityTerminationPolicy.Companion.toKotlin(args0)
})
}).orElse(null),
fleetId = javaType.fleetId().map({ args0 -> args0 }).orElse(null),
targetCapacitySpecification = javaType.targetCapacitySpecification().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.ec2.kotlin.outputs.Ec2FleetTargetCapacitySpecificationRequest.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy