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

com.pulumi.awsnative.ec2.kotlin.outputs.GetCapacityReservationFleetResult.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.ec2.kotlin.outputs

import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property capacityReservationFleetId The ID of the Capacity Reservation Fleet.
 * @property noRemoveEndDate Used to add an end date to a Capacity Reservation Fleet that has no end date and time. To add an end date to a Capacity Reservation Fleet, specify `true` for this paramater and specify the end date and time (in UTC time format) for the *EndDate* parameter.
 * @property removeEndDate Used to remove an end date from a Capacity Reservation Fleet that is configured to end automatically at a specific date and time. To remove the end date from a Capacity Reservation Fleet, specify `true` for this paramater and omit the *EndDate* parameter.
 * @property totalTargetCapacity The total number of capacity units to be reserved by the Capacity Reservation Fleet. This value, together with the instance type weights that you assign to each instance type used by the Fleet determine the number of instances for which the Fleet reserves capacity. Both values are based on units that make sense for your workload. For more information, see [Total target capacity](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/crfleet-concepts.html#target-capacity) in the *Amazon EC2 User Guide* .
 */
public data class GetCapacityReservationFleetResult(
    public val capacityReservationFleetId: String? = null,
    public val noRemoveEndDate: Boolean? = null,
    public val removeEndDate: Boolean? = null,
    public val totalTargetCapacity: Int? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.ec2.outputs.GetCapacityReservationFleetResult): GetCapacityReservationFleetResult = GetCapacityReservationFleetResult(
            capacityReservationFleetId = javaType.capacityReservationFleetId().map({ args0 ->
                args0
            }).orElse(null),
            noRemoveEndDate = javaType.noRemoveEndDate().map({ args0 -> args0 }).orElse(null),
            removeEndDate = javaType.removeEndDate().map({ args0 -> args0 }).orElse(null),
            totalTargetCapacity = javaType.totalTargetCapacity().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy