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

com.pulumi.awsnative.elasticloadbalancingv2.kotlin.TrustStoreRevocationArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.elasticloadbalancingv2.kotlin

import com.pulumi.awsnative.elasticloadbalancingv2.TrustStoreRevocationArgs.builder
import com.pulumi.awsnative.elasticloadbalancingv2.kotlin.inputs.TrustStoreRevocationRevocationContentArgs
import com.pulumi.awsnative.elasticloadbalancingv2.kotlin.inputs.TrustStoreRevocationRevocationContentArgsBuilder
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

/**
 * Resource Type definition for AWS::ElasticLoadBalancingV2::TrustStoreRevocation
 * @property revocationContents The attributes required to create a trust store revocation.
 * @property trustStoreArn The Amazon Resource Name (ARN) of the trust store.
 */
public data class TrustStoreRevocationArgs(
    public val revocationContents: Output>? = null,
    public val trustStoreArn: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.elasticloadbalancingv2.TrustStoreRevocationArgs =
        com.pulumi.awsnative.elasticloadbalancingv2.TrustStoreRevocationArgs.builder()
            .revocationContents(
                revocationContents?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .trustStoreArn(trustStoreArn?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [TrustStoreRevocationArgs].
 */
@PulumiTagMarker
public class TrustStoreRevocationArgsBuilder internal constructor() {
    private var revocationContents: Output>? = null

    private var trustStoreArn: Output? = null

    /**
     * @param value The attributes required to create a trust store revocation.
     */
    @JvmName("tdtdpjkaswrmqvjr")
    public suspend fun revocationContents(`value`: Output>) {
        this.revocationContents = value
    }

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

    /**
     * @param values The attributes required to create a trust store revocation.
     */
    @JvmName("tqoyfmhimwjvoatk")
    public suspend fun revocationContents(values: List>) {
        this.revocationContents = Output.all(values)
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the trust store.
     */
    @JvmName("kbsffcnmqhrwbhnr")
    public suspend fun trustStoreArn(`value`: Output) {
        this.trustStoreArn = value
    }

    /**
     * @param value The attributes required to create a trust store revocation.
     */
    @JvmName("rupgedfuetytsreb")
    public suspend fun revocationContents(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.revocationContents = mapped
    }

    /**
     * @param argument The attributes required to create a trust store revocation.
     */
    @JvmName("fewfcalmwtrqupls")
    public suspend fun revocationContents(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            TrustStoreRevocationRevocationContentArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.revocationContents = mapped
    }

    /**
     * @param argument The attributes required to create a trust store revocation.
     */
    @JvmName("wsionlaatnktlxfu")
    public suspend fun revocationContents(vararg argument: suspend TrustStoreRevocationRevocationContentArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            TrustStoreRevocationRevocationContentArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.revocationContents = mapped
    }

    /**
     * @param argument The attributes required to create a trust store revocation.
     */
    @JvmName("gktmmonvuethbuhn")
    public suspend fun revocationContents(argument: suspend TrustStoreRevocationRevocationContentArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            TrustStoreRevocationRevocationContentArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.revocationContents = mapped
    }

    /**
     * @param values The attributes required to create a trust store revocation.
     */
    @JvmName("yeccnsrknwyxwbut")
    public suspend fun revocationContents(vararg values: TrustStoreRevocationRevocationContentArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.revocationContents = mapped
    }

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

    internal fun build(): TrustStoreRevocationArgs = TrustStoreRevocationArgs(
        revocationContents = revocationContents,
        trustStoreArn = trustStoreArn,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy