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

com.pulumi.awsnative.apigateway.kotlin.ClientCertificateArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.apigateway.kotlin

import com.pulumi.awsnative.apigateway.ClientCertificateArgs.builder
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
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

/**
 * The ``AWS::ApiGateway::ClientCertificate`` resource creates a client certificate that API Gateway uses to configure client-side SSL authentication for sending requests to the integration endpoint.
 * @property description The description of the client certificate.
 * @property tags The collection of tags. Each tag element is associated with a given resource.
 */
public data class ClientCertificateArgs(
    public val description: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.apigateway.ClientCertificateArgs =
        com.pulumi.awsnative.apigateway.ClientCertificateArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [ClientCertificateArgs].
 */
@PulumiTagMarker
public class ClientCertificateArgsBuilder internal constructor() {
    private var description: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The description of the client certificate.
     */
    @JvmName("mckarrftfkkatspi")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The collection of tags. Each tag element is associated with a given resource.
     */
    @JvmName("thdyvkisvvdcpktx")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values The collection of tags. Each tag element is associated with a given resource.
     */
    @JvmName("ppqvkpjytwnleinm")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The description of the client certificate.
     */
    @JvmName("ajbexhwjrpfuttfh")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The collection of tags. Each tag element is associated with a given resource.
     */
    @JvmName("tijuicmlwnwccmdc")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument The collection of tags. Each tag element is associated with a given resource.
     */
    @JvmName("kopbtacjqbnyjclt")
    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 collection of tags. Each tag element is associated with a given resource.
     */
    @JvmName("avcddytxjouctjsq")
    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 collection of tags. Each tag element is associated with a given resource.
     */
    @JvmName("hefuwfaplamgbxav")
    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 collection of tags. Each tag element is associated with a given resource.
     */
    @JvmName("vvajoipshydwpcpt")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): ClientCertificateArgs = ClientCertificateArgs(
        description = description,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy