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

com.pulumi.awsnative.ec2.kotlin.inputs.LaunchTemplateCapacityReservationTargetArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.ec2.kotlin.inputs

import com.pulumi.awsnative.ec2.inputs.LaunchTemplateCapacityReservationTargetArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Specifies a target Capacity Reservation.
 *   ``CapacityReservationTarget`` is a property of the [Amazon EC2 LaunchTemplate LaunchTemplateData](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-launchtemplate-launchtemplatedata.html) property type.
 * @property capacityReservationId The ID of the Capacity Reservation in which to run the instance.
 * @property capacityReservationResourceGroupArn The ARN of the Capacity Reservation resource group in which to run the instance.
 */
public data class LaunchTemplateCapacityReservationTargetArgs(
    public val capacityReservationId: Output? = null,
    public val capacityReservationResourceGroupArn: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ec2.inputs.LaunchTemplateCapacityReservationTargetArgs = com.pulumi.awsnative.ec2.inputs.LaunchTemplateCapacityReservationTargetArgs.builder()
        .capacityReservationId(capacityReservationId?.applyValue({ args0 -> args0 }))
        .capacityReservationResourceGroupArn(
            capacityReservationResourceGroupArn?.applyValue({ args0 ->
                args0
            }),
        ).build()
}

/**
 * Builder for [LaunchTemplateCapacityReservationTargetArgs].
 */
@PulumiTagMarker
public class LaunchTemplateCapacityReservationTargetArgsBuilder internal constructor() {
    private var capacityReservationId: Output? = null

    private var capacityReservationResourceGroupArn: Output? = null

    /**
     * @param value The ID of the Capacity Reservation in which to run the instance.
     */
    @JvmName("dylvluoxkjagvayp")
    public suspend fun capacityReservationId(`value`: Output) {
        this.capacityReservationId = value
    }

    /**
     * @param value The ARN of the Capacity Reservation resource group in which to run the instance.
     */
    @JvmName("lylkpcnarfhdgopb")
    public suspend fun capacityReservationResourceGroupArn(`value`: Output) {
        this.capacityReservationResourceGroupArn = value
    }

    /**
     * @param value The ID of the Capacity Reservation in which to run the instance.
     */
    @JvmName("anmrnywrkhuemxav")
    public suspend fun capacityReservationId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.capacityReservationId = mapped
    }

    /**
     * @param value The ARN of the Capacity Reservation resource group in which to run the instance.
     */
    @JvmName("cgxorpkfstdkwrhl")
    public suspend fun capacityReservationResourceGroupArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.capacityReservationResourceGroupArn = mapped
    }

    internal fun build(): LaunchTemplateCapacityReservationTargetArgs =
        LaunchTemplateCapacityReservationTargetArgs(
            capacityReservationId = capacityReservationId,
            capacityReservationResourceGroupArn = capacityReservationResourceGroupArn,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy