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

com.pulumi.awsnative.acmpca.kotlin.inputs.CertificateAuthorityOcspConfigurationArgs.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: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.acmpca.kotlin.inputs

import com.pulumi.awsnative.acmpca.inputs.CertificateAuthorityOcspConfigurationArgs.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 kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Helps to configure online certificate status protocol (OCSP) responder for your certificate authority
 * @property enabled Flag enabling use of the Online Certificate Status Protocol (OCSP) for validating certificate revocation status.
 * @property ocspCustomCname By default, AWS Private CA injects an Amazon domain into certificates being validated by the Online Certificate Status Protocol (OCSP). A customer can alternatively use this object to define a CNAME specifying a customized OCSP domain.
 * > The content of a Canonical Name (CNAME) record must conform to [RFC2396](https://docs.aws.amazon.com/https://www.ietf.org/rfc/rfc2396.txt) restrictions on the use of special characters in URIs. Additionally, the value of the CNAME must not include a protocol prefix such as "http://" or "https://".
 */
public data class CertificateAuthorityOcspConfigurationArgs(
    public val enabled: Output,
    public val ocspCustomCname: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.acmpca.inputs.CertificateAuthorityOcspConfigurationArgs =
        com.pulumi.awsnative.acmpca.inputs.CertificateAuthorityOcspConfigurationArgs.builder()
            .enabled(enabled.applyValue({ args0 -> args0 }))
            .ocspCustomCname(ocspCustomCname?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [CertificateAuthorityOcspConfigurationArgs].
 */
@PulumiTagMarker
public class CertificateAuthorityOcspConfigurationArgsBuilder internal constructor() {
    private var enabled: Output? = null

    private var ocspCustomCname: Output? = null

    /**
     * @param value Flag enabling use of the Online Certificate Status Protocol (OCSP) for validating certificate revocation status.
     */
    @JvmName("mdufwhnwlkfbyejg")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value By default, AWS Private CA injects an Amazon domain into certificates being validated by the Online Certificate Status Protocol (OCSP). A customer can alternatively use this object to define a CNAME specifying a customized OCSP domain.
     * > The content of a Canonical Name (CNAME) record must conform to [RFC2396](https://docs.aws.amazon.com/https://www.ietf.org/rfc/rfc2396.txt) restrictions on the use of special characters in URIs. Additionally, the value of the CNAME must not include a protocol prefix such as "http://" or "https://".
     */
    @JvmName("dstpbrubpvbpoxjl")
    public suspend fun ocspCustomCname(`value`: Output) {
        this.ocspCustomCname = value
    }

    /**
     * @param value Flag enabling use of the Online Certificate Status Protocol (OCSP) for validating certificate revocation status.
     */
    @JvmName("qptiunkaybxwogvc")
    public suspend fun enabled(`value`: Boolean) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    /**
     * @param value By default, AWS Private CA injects an Amazon domain into certificates being validated by the Online Certificate Status Protocol (OCSP). A customer can alternatively use this object to define a CNAME specifying a customized OCSP domain.
     * > The content of a Canonical Name (CNAME) record must conform to [RFC2396](https://docs.aws.amazon.com/https://www.ietf.org/rfc/rfc2396.txt) restrictions on the use of special characters in URIs. Additionally, the value of the CNAME must not include a protocol prefix such as "http://" or "https://".
     */
    @JvmName("jcxdabwasqsuypyd")
    public suspend fun ocspCustomCname(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ocspCustomCname = mapped
    }

    internal fun build(): CertificateAuthorityOcspConfigurationArgs =
        CertificateAuthorityOcspConfigurationArgs(
            enabled = enabled ?: throw PulumiNullFieldException("enabled"),
            ocspCustomCname = ocspCustomCname,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy