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

com.pulumi.awsnative.vpclattice.kotlin.ServiceArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.vpclattice.kotlin

import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.vpclattice.ServiceArgs.builder
import com.pulumi.awsnative.vpclattice.kotlin.enums.ServiceAuthType
import com.pulumi.awsnative.vpclattice.kotlin.inputs.ServiceDnsEntryArgs
import com.pulumi.awsnative.vpclattice.kotlin.inputs.ServiceDnsEntryArgsBuilder
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * A service is any software application that can run on instances containers, or serverless functions within an account or virtual private cloud (VPC).
 * @property authType The type of IAM policy.
 * - `NONE` : The resource does not use an IAM policy. This is the default.
 * - `AWS_IAM` : The resource uses an IAM policy. When this type is used, auth is enabled and an auth policy is required.
 * @property certificateArn The Amazon Resource Name (ARN) of the certificate.
 * @property customDomainName The custom domain name of the service.
 * @property dnsEntry The DNS information of the service.
 * @property name The name of the service. The name must be unique within the account. The valid characters are a-z, 0-9, and hyphens (-). You can't use a hyphen as the first or last character, or immediately after another hyphen.
 * If you don't specify a name, CloudFormation generates one. However, if you specify a name, and later want to replace the resource, you must specify a new name.
 * @property tags The tags for the service.
 */
public data class ServiceArgs(
    public val authType: Output? = null,
    public val certificateArn: Output? = null,
    public val customDomainName: Output? = null,
    public val dnsEntry: Output? = null,
    public val name: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.vpclattice.ServiceArgs =
        com.pulumi.awsnative.vpclattice.ServiceArgs.builder()
            .authType(authType?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .certificateArn(certificateArn?.applyValue({ args0 -> args0 }))
            .customDomainName(customDomainName?.applyValue({ args0 -> args0 }))
            .dnsEntry(dnsEntry?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .name(name?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [ServiceArgs].
 */
@PulumiTagMarker
public class ServiceArgsBuilder internal constructor() {
    private var authType: Output? = null

    private var certificateArn: Output? = null

    private var customDomainName: Output? = null

    private var dnsEntry: Output? = null

    private var name: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The type of IAM policy.
     * - `NONE` : The resource does not use an IAM policy. This is the default.
     * - `AWS_IAM` : The resource uses an IAM policy. When this type is used, auth is enabled and an auth policy is required.
     */
    @JvmName("balrjiqygmssqgoj")
    public suspend fun authType(`value`: Output) {
        this.authType = value
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the certificate.
     */
    @JvmName("syvhusvxcwwmgsef")
    public suspend fun certificateArn(`value`: Output) {
        this.certificateArn = value
    }

    /**
     * @param value The custom domain name of the service.
     */
    @JvmName("sdhkdmqirecnnmti")
    public suspend fun customDomainName(`value`: Output) {
        this.customDomainName = value
    }

    /**
     * @param value The DNS information of the service.
     */
    @JvmName("jhlpvnxcqabuxcup")
    public suspend fun dnsEntry(`value`: Output) {
        this.dnsEntry = value
    }

    /**
     * @param value The name of the service. The name must be unique within the account. The valid characters are a-z, 0-9, and hyphens (-). You can't use a hyphen as the first or last character, or immediately after another hyphen.
     * If you don't specify a name, CloudFormation generates one. However, if you specify a name, and later want to replace the resource, you must specify a new name.
     */
    @JvmName("eboecoipegpmfkku")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The tags for the service.
     */
    @JvmName("chbujwruabrrjqkw")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    @JvmName("lssdenbtsqvctort")
    public suspend fun tags(vararg values: Output) {
        this.tags = Output.all(values.asList())
    }

    /**
     * @param values The tags for the service.
     */
    @JvmName("qqjrjwsqrxpcnkye")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The type of IAM policy.
     * - `NONE` : The resource does not use an IAM policy. This is the default.
     * - `AWS_IAM` : The resource uses an IAM policy. When this type is used, auth is enabled and an auth policy is required.
     */
    @JvmName("aibletmueuotapqk")
    public suspend fun authType(`value`: ServiceAuthType?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.authType = mapped
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the certificate.
     */
    @JvmName("kbumqqqoivfulkeg")
    public suspend fun certificateArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.certificateArn = mapped
    }

    /**
     * @param value The custom domain name of the service.
     */
    @JvmName("jyfylnvnryangnae")
    public suspend fun customDomainName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.customDomainName = mapped
    }

    /**
     * @param value The DNS information of the service.
     */
    @JvmName("hcrbrrknaigwmfhv")
    public suspend fun dnsEntry(`value`: ServiceDnsEntryArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dnsEntry = mapped
    }

    /**
     * @param argument The DNS information of the service.
     */
    @JvmName("fcvijcmgvanfxavd")
    public suspend fun dnsEntry(argument: suspend ServiceDnsEntryArgsBuilder.() -> Unit) {
        val toBeMapped = ServiceDnsEntryArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.dnsEntry = mapped
    }

    /**
     * @param value The name of the service. The name must be unique within the account. The valid characters are a-z, 0-9, and hyphens (-). You can't use a hyphen as the first or last character, or immediately after another hyphen.
     * If you don't specify a name, CloudFormation generates one. However, if you specify a name, and later want to replace the resource, you must specify a new name.
     */
    @JvmName("khghbqnvxoykmign")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The tags for the service.
     */
    @JvmName("axvyijcpofehwnui")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument The tags for the service.
     */
    @JvmName("qvjxyxtlopiujfhb")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument The tags for the service.
     */
    @JvmName("uwitrshgstgltamp")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument The tags for the service.
     */
    @JvmName("cognrbbigrqmlrjr")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values The tags for the service.
     */
    @JvmName("ecvgybinurpsdsdw")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): ServiceArgs = ServiceArgs(
        authType = authType,
        certificateArn = certificateArn,
        customDomainName = customDomainName,
        dnsEntry = dnsEntry,
        name = name,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy