Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.ec2.kotlin
import com.pulumi.awsnative.ec2.CapacityReservationFleetArgs.builder
import com.pulumi.awsnative.ec2.kotlin.enums.CapacityReservationFleetInstanceMatchCriteria
import com.pulumi.awsnative.ec2.kotlin.enums.CapacityReservationFleetTenancy
import com.pulumi.awsnative.ec2.kotlin.inputs.CapacityReservationFleetInstanceTypeSpecificationArgs
import com.pulumi.awsnative.ec2.kotlin.inputs.CapacityReservationFleetInstanceTypeSpecificationArgsBuilder
import com.pulumi.awsnative.ec2.kotlin.inputs.CapacityReservationFleetTagSpecificationArgs
import com.pulumi.awsnative.ec2.kotlin.inputs.CapacityReservationFleetTagSpecificationArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Resource Type definition for AWS::EC2::CapacityReservationFleet
* ## Example Usage
* ### Example
* No Java example available.
* @property allocationStrategy The strategy used by the Capacity Reservation Fleet to determine which of the specified instance types to use. Currently, only the `prioritized` allocation strategy is supported. For more information, see [Allocation strategy](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/crfleet-concepts.html#allocation-strategy) in the *Amazon EC2 User Guide* .
* Valid values: `prioritized`
* @property endDate The date and time at which the Capacity Reservation Fleet expires. When the Capacity Reservation Fleet expires, its state changes to `expired` and all of the Capacity Reservations in the Fleet expire.
* The Capacity Reservation Fleet expires within an hour after the specified time. For example, if you specify `5/31/2019` , `13:30:55` , the Capacity Reservation Fleet is guaranteed to expire between `13:30:55` and `14:30:55` on `5/31/2019` .
* @property instanceMatchCriteria Indicates the type of instance launches that the Capacity Reservation Fleet accepts. All Capacity Reservations in the Fleet inherit this instance matching criteria.
* Currently, Capacity Reservation Fleets support `open` instance matching criteria only. This means that instances that have matching attributes (instance type, platform, and Availability Zone) run in the Capacity Reservations automatically. Instances do not need to explicitly target a Capacity Reservation Fleet to use its reserved capacity.
* @property instanceTypeSpecifications Information about the instance types for which to reserve the capacity.
* @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 tagSpecifications The tags to assign to the Capacity Reservation Fleet. The tags are automatically assigned to the Capacity Reservations in the Fleet.
* @property tenancy Indicates the tenancy of the Capacity Reservation Fleet. All Capacity Reservations in the Fleet inherit this tenancy. The Capacity Reservation Fleet can have one of the following tenancy settings:
* - `default` - The Capacity Reservation Fleet is created on hardware that is shared with other AWS accounts .
* - `dedicated` - The Capacity Reservations are created on single-tenant hardware that is dedicated to a single AWS account .
* @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 CapacityReservationFleetArgs(
public val allocationStrategy: Output? = null,
public val endDate: Output? = null,
public val instanceMatchCriteria: Output? = null,
public val instanceTypeSpecifications: Output>? = null,
public val noRemoveEndDate: Output? = null,
public val removeEndDate: Output? = null,
public val tagSpecifications: Output>? = null,
public val tenancy: Output? = null,
public val totalTargetCapacity: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.ec2.CapacityReservationFleetArgs =
com.pulumi.awsnative.ec2.CapacityReservationFleetArgs.builder()
.allocationStrategy(allocationStrategy?.applyValue({ args0 -> args0 }))
.endDate(endDate?.applyValue({ args0 -> args0 }))
.instanceMatchCriteria(
instanceMatchCriteria?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.instanceTypeSpecifications(
instanceTypeSpecifications?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.noRemoveEndDate(noRemoveEndDate?.applyValue({ args0 -> args0 }))
.removeEndDate(removeEndDate?.applyValue({ args0 -> args0 }))
.tagSpecifications(
tagSpecifications?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.tenancy(tenancy?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.totalTargetCapacity(totalTargetCapacity?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [CapacityReservationFleetArgs].
*/
@PulumiTagMarker
public class CapacityReservationFleetArgsBuilder internal constructor() {
private var allocationStrategy: Output? = null
private var endDate: Output? = null
private var instanceMatchCriteria: Output? = null
private var instanceTypeSpecifications:
Output>? = null
private var noRemoveEndDate: Output? = null
private var removeEndDate: Output? = null
private var tagSpecifications: Output>? = null
private var tenancy: Output? = null
private var totalTargetCapacity: Output? = null
/**
* @param value The strategy used by the Capacity Reservation Fleet to determine which of the specified instance types to use. Currently, only the `prioritized` allocation strategy is supported. For more information, see [Allocation strategy](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/crfleet-concepts.html#allocation-strategy) in the *Amazon EC2 User Guide* .
* Valid values: `prioritized`
*/
@JvmName("wmvaxtfjicumyavk")
public suspend fun allocationStrategy(`value`: Output) {
this.allocationStrategy = value
}
/**
* @param value The date and time at which the Capacity Reservation Fleet expires. When the Capacity Reservation Fleet expires, its state changes to `expired` and all of the Capacity Reservations in the Fleet expire.
* The Capacity Reservation Fleet expires within an hour after the specified time. For example, if you specify `5/31/2019` , `13:30:55` , the Capacity Reservation Fleet is guaranteed to expire between `13:30:55` and `14:30:55` on `5/31/2019` .
*/
@JvmName("xstualimjkyjuluk")
public suspend fun endDate(`value`: Output) {
this.endDate = value
}
/**
* @param value Indicates the type of instance launches that the Capacity Reservation Fleet accepts. All Capacity Reservations in the Fleet inherit this instance matching criteria.
* Currently, Capacity Reservation Fleets support `open` instance matching criteria only. This means that instances that have matching attributes (instance type, platform, and Availability Zone) run in the Capacity Reservations automatically. Instances do not need to explicitly target a Capacity Reservation Fleet to use its reserved capacity.
*/
@JvmName("erpcmjfkjveiuijc")
public suspend fun instanceMatchCriteria(`value`: Output) {
this.instanceMatchCriteria = value
}
/**
* @param value Information about the instance types for which to reserve the capacity.
*/
@JvmName("cdomrobmbtfsrlgv")
public suspend fun instanceTypeSpecifications(`value`: Output>) {
this.instanceTypeSpecifications = value
}
@JvmName("xfpwyutrogqvlrhy")
public suspend fun instanceTypeSpecifications(vararg values: Output) {
this.instanceTypeSpecifications = Output.all(values.asList())
}
/**
* @param values Information about the instance types for which to reserve the capacity.
*/
@JvmName("ctvrewwiaewknxhb")
public suspend fun instanceTypeSpecifications(values: List