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

com.pulumi.awsnative.ecs.kotlin.PrimaryTaskSetArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.ecs.kotlin

import com.pulumi.awsnative.ecs.PrimaryTaskSetArgs.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

/**
 * A pseudo-resource that manages which of your ECS task sets is primary.
 * @property cluster The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service to create the task set in.
 * @property service The short name or full Amazon Resource Name (ARN) of the service to create the task set in.
 * @property taskSetId The ID or full Amazon Resource Name (ARN) of the task set.
 */
public data class PrimaryTaskSetArgs(
    public val cluster: Output? = null,
    public val service: Output? = null,
    public val taskSetId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ecs.PrimaryTaskSetArgs =
        com.pulumi.awsnative.ecs.PrimaryTaskSetArgs.builder()
            .cluster(cluster?.applyValue({ args0 -> args0 }))
            .service(service?.applyValue({ args0 -> args0 }))
            .taskSetId(taskSetId?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [PrimaryTaskSetArgs].
 */
@PulumiTagMarker
public class PrimaryTaskSetArgsBuilder internal constructor() {
    private var cluster: Output? = null

    private var service: Output? = null

    private var taskSetId: Output? = null

    /**
     * @param value The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service to create the task set in.
     */
    @JvmName("yooksdrmrcmjidle")
    public suspend fun cluster(`value`: Output) {
        this.cluster = value
    }

    /**
     * @param value The short name or full Amazon Resource Name (ARN) of the service to create the task set in.
     */
    @JvmName("fgutylufpdsrhcrg")
    public suspend fun service(`value`: Output) {
        this.service = value
    }

    /**
     * @param value The ID or full Amazon Resource Name (ARN) of the task set.
     */
    @JvmName("llvmsbfrlmckslbu")
    public suspend fun taskSetId(`value`: Output) {
        this.taskSetId = value
    }

    /**
     * @param value The short name or full Amazon Resource Name (ARN) of the cluster that hosts the service to create the task set in.
     */
    @JvmName("ouhnbrvrkulxnjed")
    public suspend fun cluster(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cluster = mapped
    }

    /**
     * @param value The short name or full Amazon Resource Name (ARN) of the service to create the task set in.
     */
    @JvmName("iwmigukwssobcatx")
    public suspend fun service(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.service = mapped
    }

    /**
     * @param value The ID or full Amazon Resource Name (ARN) of the task set.
     */
    @JvmName("rqsoqjfvidvidhwd")
    public suspend fun taskSetId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.taskSetId = mapped
    }

    internal fun build(): PrimaryTaskSetArgs = PrimaryTaskSetArgs(
        cluster = cluster,
        service = service,
        taskSetId = taskSetId,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy