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

com.pulumi.aws.ec2.kotlin.inputs.LaunchTemplateCapacityReservationSpecificationCapacityReservationTargetArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.ec2.kotlin.inputs

import com.pulumi.aws.ec2.inputs.LaunchTemplateCapacityReservationSpecificationCapacityReservationTargetArgs.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

/**
 *
 * @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 LaunchTemplateCapacityReservationSpecificationCapacityReservationTargetArgs(
    public val capacityReservationId: Output? = null,
    public val capacityReservationResourceGroupArn: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.ec2.inputs.LaunchTemplateCapacityReservationSpecificationCapacityReservationTargetArgs =
        com.pulumi.aws.ec2.inputs.LaunchTemplateCapacityReservationSpecificationCapacityReservationTargetArgs.builder()
            .capacityReservationId(capacityReservationId?.applyValue({ args0 -> args0 }))
            .capacityReservationResourceGroupArn(
                capacityReservationResourceGroupArn?.applyValue({ args0 ->
                    args0
                }),
            ).build()
}

/**
 * Builder for [LaunchTemplateCapacityReservationSpecificationCapacityReservationTargetArgs].
 */
@PulumiTagMarker
public class LaunchTemplateCapacityReservationSpecificationCapacityReservationTargetArgsBuilder
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("rfvobkwndswgiedd")
    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("ifuattgqlpbjsfyj")
    public suspend fun capacityReservationResourceGroupArn(`value`: Output) {
        this.capacityReservationResourceGroupArn = value
    }

    /**
     * @param value The ID of the Capacity Reservation in which to run the instance.
     */
    @JvmName("nawdtsiygqlhjfdl")
    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("oiffrhrhpxalaypb")
    public suspend fun capacityReservationResourceGroupArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.capacityReservationResourceGroupArn = mapped
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy