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

com.pulumi.awsnative.ecs.kotlin.inputs.GetServicePlainArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.ecs.kotlin.inputs

import com.pulumi.awsnative.ecs.inputs.GetServicePlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property cluster The short name or full Amazon Resource Name (ARN) of the cluster that you run your service on. If you do not specify a cluster, the default cluster is assumed.
 * @property serviceArn Not currently supported in AWS CloudFormation .
 */
public data class GetServicePlainArgs(
    public val cluster: String,
    public val serviceArn: String,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ecs.inputs.GetServicePlainArgs =
        com.pulumi.awsnative.ecs.inputs.GetServicePlainArgs.builder()
            .cluster(cluster.let({ args0 -> args0 }))
            .serviceArn(serviceArn.let({ args0 -> args0 })).build()
}

/**
 * Builder for [GetServicePlainArgs].
 */
@PulumiTagMarker
public class GetServicePlainArgsBuilder internal constructor() {
    private var cluster: String? = null

    private var serviceArn: String? = null

    /**
     * @param value The short name or full Amazon Resource Name (ARN) of the cluster that you run your service on. If you do not specify a cluster, the default cluster is assumed.
     */
    @JvmName("qsibxaeqprhvpbqb")
    public suspend fun cluster(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.cluster = mapped
    }

    /**
     * @param value Not currently supported in AWS CloudFormation .
     */
    @JvmName("akvlojtonldjkpee")
    public suspend fun serviceArn(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.serviceArn = mapped
    }

    internal fun build(): GetServicePlainArgs = GetServicePlainArgs(
        cluster = cluster ?: throw PulumiNullFieldException("cluster"),
        serviceArn = serviceArn ?: throw PulumiNullFieldException("serviceArn"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy