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

com.pulumi.aws.ecs.kotlin.inputs.ServiceServiceConnectConfigurationServiceTlsArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.ecs.kotlin.inputs

import com.pulumi.aws.ecs.inputs.ServiceServiceConnectConfigurationServiceTlsArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property issuerCertAuthority Details of the certificate authority which will issue the certificate.
 * @property kmsKey KMS key used to encrypt the private key in Secrets Manager.
 * @property roleArn ARN of the IAM Role that's associated with the Service Connect TLS.
 */
public data class ServiceServiceConnectConfigurationServiceTlsArgs(
    public val issuerCertAuthority: Output,
    public val kmsKey: Output? = null,
    public val roleArn: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.ecs.inputs.ServiceServiceConnectConfigurationServiceTlsArgs = com.pulumi.aws.ecs.inputs.ServiceServiceConnectConfigurationServiceTlsArgs.builder()
        .issuerCertAuthority(
            issuerCertAuthority.applyValue({ args0 ->
                args0.let({ args0 ->
                    args0.toJava()
                })
            }),
        )
        .kmsKey(kmsKey?.applyValue({ args0 -> args0 }))
        .roleArn(roleArn?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ServiceServiceConnectConfigurationServiceTlsArgs].
 */
@PulumiTagMarker
public class ServiceServiceConnectConfigurationServiceTlsArgsBuilder internal constructor() {
    private var issuerCertAuthority:
        Output? = null

    private var kmsKey: Output? = null

    private var roleArn: Output? = null

    /**
     * @param value Details of the certificate authority which will issue the certificate.
     */
    @JvmName("xiuqgohfrqayetfe")
    public suspend fun issuerCertAuthority(`value`: Output) {
        this.issuerCertAuthority = value
    }

    /**
     * @param value KMS key used to encrypt the private key in Secrets Manager.
     */
    @JvmName("fkvvnrtumnvbluff")
    public suspend fun kmsKey(`value`: Output) {
        this.kmsKey = value
    }

    /**
     * @param value ARN of the IAM Role that's associated with the Service Connect TLS.
     */
    @JvmName("tploedlwahhpqccy")
    public suspend fun roleArn(`value`: Output) {
        this.roleArn = value
    }

    /**
     * @param value Details of the certificate authority which will issue the certificate.
     */
    @JvmName("malwmndaagkqmqjp")
    public suspend fun issuerCertAuthority(`value`: ServiceServiceConnectConfigurationServiceTlsIssuerCertAuthorityArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.issuerCertAuthority = mapped
    }

    /**
     * @param argument Details of the certificate authority which will issue the certificate.
     */
    @JvmName("mfhiquqvxdmmnfct")
    public suspend fun issuerCertAuthority(argument: suspend ServiceServiceConnectConfigurationServiceTlsIssuerCertAuthorityArgsBuilder.() -> Unit) {
        val toBeMapped =
            ServiceServiceConnectConfigurationServiceTlsIssuerCertAuthorityArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.issuerCertAuthority = mapped
    }

    /**
     * @param value KMS key used to encrypt the private key in Secrets Manager.
     */
    @JvmName("guwxilrokdefdxke")
    public suspend fun kmsKey(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.kmsKey = mapped
    }

    /**
     * @param value ARN of the IAM Role that's associated with the Service Connect TLS.
     */
    @JvmName("ruxxnyackiliwunv")
    public suspend fun roleArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.roleArn = mapped
    }

    internal fun build(): ServiceServiceConnectConfigurationServiceTlsArgs =
        ServiceServiceConnectConfigurationServiceTlsArgs(
            issuerCertAuthority = issuerCertAuthority ?: throw PulumiNullFieldException("issuerCertAuthority"),
            kmsKey = kmsKey,
            roleArn = roleArn,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy