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

com.pulumi.gcp.certificatemanager.kotlin.inputs.CertificateManagedArgs.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: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.certificatemanager.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.certificatemanager.inputs.CertificateManagedArgs.builder
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

/**
 *
 * @property authorizationAttemptInfos (Output)
 * Detailed state of the latest authorization attempt for each domain
 * specified for this Managed Certificate.
 * Structure is documented below.
 * The `provisioning_issue` block contains:
 * @property dnsAuthorizations Authorizations that will be used for performing domain authorization. Either issuanceConfig or dnsAuthorizations should be specificed, but not both.
 * @property domains The domains for which a managed SSL certificate will be generated.
 * Wildcard domains are only supported with DNS challenge resolution
 * @property issuanceConfig The resource name for a CertificateIssuanceConfig used to configure private PKI certificates in the format projects/*/locations/*/certificateIssuanceConfigs/*.
 * If this field is not set, the certificates will instead be publicly signed as documented at https://cloud.google.com/load-balancing/docs/ssl-certificates/google-managed-certs#caa.
 * Either issuanceConfig or dnsAuthorizations should be specificed, but not both.
 * @property provisioningIssues (Output)
 * Information about issues with provisioning this Managed Certificate.
 * Structure is documented below.
 * @property state (Output)
 * State of the domain for managed certificate issuance.
 * */*/*/
 */
public data class CertificateManagedArgs(
    public val authorizationAttemptInfos: Output>? = null,
    public val dnsAuthorizations: Output>? = null,
    public val domains: Output>? = null,
    public val issuanceConfig: Output? = null,
    public val provisioningIssues: Output>? = null,
    public val state: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.certificatemanager.inputs.CertificateManagedArgs =
        com.pulumi.gcp.certificatemanager.inputs.CertificateManagedArgs.builder()
            .authorizationAttemptInfos(
                authorizationAttemptInfos?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .dnsAuthorizations(dnsAuthorizations?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .domains(domains?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .issuanceConfig(issuanceConfig?.applyValue({ args0 -> args0 }))
            .provisioningIssues(
                provisioningIssues?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .state(state?.applyValue({ args0 -> args0 })).build()
}

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

    private var dnsAuthorizations: Output>? = null

    private var domains: Output>? = null

    private var issuanceConfig: Output? = null

    private var provisioningIssues: Output>? = null

    private var state: Output? = null

    /**
     * @param value (Output)
     * Detailed state of the latest authorization attempt for each domain
     * specified for this Managed Certificate.
     * Structure is documented below.
     * The `provisioning_issue` block contains:
     */
    @JvmName("aeupkjsxkfsmogvb")
    public suspend fun authorizationAttemptInfos(`value`: Output>) {
        this.authorizationAttemptInfos = value
    }

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

    /**
     * @param values (Output)
     * Detailed state of the latest authorization attempt for each domain
     * specified for this Managed Certificate.
     * Structure is documented below.
     * The `provisioning_issue` block contains:
     */
    @JvmName("sadndtlfvqmxrfcn")
    public suspend fun authorizationAttemptInfos(values: List>) {
        this.authorizationAttemptInfos = Output.all(values)
    }

    /**
     * @param value Authorizations that will be used for performing domain authorization. Either issuanceConfig or dnsAuthorizations should be specificed, but not both.
     */
    @JvmName("iwcsmqohgmmuoeba")
    public suspend fun dnsAuthorizations(`value`: Output>) {
        this.dnsAuthorizations = value
    }

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

    /**
     * @param values Authorizations that will be used for performing domain authorization. Either issuanceConfig or dnsAuthorizations should be specificed, but not both.
     */
    @JvmName("btrxoadrvocqebxc")
    public suspend fun dnsAuthorizations(values: List>) {
        this.dnsAuthorizations = Output.all(values)
    }

    /**
     * @param value The domains for which a managed SSL certificate will be generated.
     * Wildcard domains are only supported with DNS challenge resolution
     */
    @JvmName("jntsnknfiryuitvl")
    public suspend fun domains(`value`: Output>) {
        this.domains = value
    }

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

    /**
     * @param values The domains for which a managed SSL certificate will be generated.
     * Wildcard domains are only supported with DNS challenge resolution
     */
    @JvmName("dhicjnxpnehtgsyc")
    public suspend fun domains(values: List>) {
        this.domains = Output.all(values)
    }

    /**
     * @param value The resource name for a CertificateIssuanceConfig used to configure private PKI certificates in the format projects/*/locations/*/certificateIssuanceConfigs/*.
     * If this field is not set, the certificates will instead be publicly signed as documented at https://cloud.google.com/load-balancing/docs/ssl-certificates/google-managed-certs#caa.
     * Either issuanceConfig or dnsAuthorizations should be specificed, but not both.
     * */*/*/
     */
    @JvmName("lubuaoiojsgnaxvn")
    public suspend fun issuanceConfig(`value`: Output) {
        this.issuanceConfig = value
    }

    /**
     * @param value (Output)
     * Information about issues with provisioning this Managed Certificate.
     * Structure is documented below.
     */
    @JvmName("yxhkwgtiwmxhtbft")
    public suspend fun provisioningIssues(`value`: Output>) {
        this.provisioningIssues = value
    }

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

    /**
     * @param values (Output)
     * Information about issues with provisioning this Managed Certificate.
     * Structure is documented below.
     */
    @JvmName("udifdewslhwballb")
    public suspend fun provisioningIssues(values: List>) {
        this.provisioningIssues = Output.all(values)
    }

    /**
     * @param value (Output)
     * State of the domain for managed certificate issuance.
     */
    @JvmName("gjrkbbkhplsaehot")
    public suspend fun state(`value`: Output) {
        this.state = value
    }

    /**
     * @param value (Output)
     * Detailed state of the latest authorization attempt for each domain
     * specified for this Managed Certificate.
     * Structure is documented below.
     * The `provisioning_issue` block contains:
     */
    @JvmName("eyfaebboguiviyrk")
    public suspend fun authorizationAttemptInfos(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.authorizationAttemptInfos = mapped
    }

    /**
     * @param argument (Output)
     * Detailed state of the latest authorization attempt for each domain
     * specified for this Managed Certificate.
     * Structure is documented below.
     * The `provisioning_issue` block contains:
     */
    @JvmName("gwcuavnuovcwkxtg")
    public suspend fun authorizationAttemptInfos(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            CertificateManagedAuthorizationAttemptInfoArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.authorizationAttemptInfos = mapped
    }

    /**
     * @param argument (Output)
     * Detailed state of the latest authorization attempt for each domain
     * specified for this Managed Certificate.
     * Structure is documented below.
     * The `provisioning_issue` block contains:
     */
    @JvmName("mjulhylfnrbupqaa")
    public suspend fun authorizationAttemptInfos(vararg argument: suspend CertificateManagedAuthorizationAttemptInfoArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            CertificateManagedAuthorizationAttemptInfoArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.authorizationAttemptInfos = mapped
    }

    /**
     * @param argument (Output)
     * Detailed state of the latest authorization attempt for each domain
     * specified for this Managed Certificate.
     * Structure is documented below.
     * The `provisioning_issue` block contains:
     */
    @JvmName("mfxklyonoboeojgi")
    public suspend fun authorizationAttemptInfos(argument: suspend CertificateManagedAuthorizationAttemptInfoArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            CertificateManagedAuthorizationAttemptInfoArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.authorizationAttemptInfos = mapped
    }

    /**
     * @param values (Output)
     * Detailed state of the latest authorization attempt for each domain
     * specified for this Managed Certificate.
     * Structure is documented below.
     * The `provisioning_issue` block contains:
     */
    @JvmName("xeshwhsumbgmicqh")
    public suspend fun authorizationAttemptInfos(vararg values: CertificateManagedAuthorizationAttemptInfoArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.authorizationAttemptInfos = mapped
    }

    /**
     * @param value Authorizations that will be used for performing domain authorization. Either issuanceConfig or dnsAuthorizations should be specificed, but not both.
     */
    @JvmName("odnbodcxnjmwlucc")
    public suspend fun dnsAuthorizations(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dnsAuthorizations = mapped
    }

    /**
     * @param values Authorizations that will be used for performing domain authorization. Either issuanceConfig or dnsAuthorizations should be specificed, but not both.
     */
    @JvmName("wjbpxwiajsnrktsl")
    public suspend fun dnsAuthorizations(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dnsAuthorizations = mapped
    }

    /**
     * @param value The domains for which a managed SSL certificate will be generated.
     * Wildcard domains are only supported with DNS challenge resolution
     */
    @JvmName("fuuamrasmjicinfo")
    public suspend fun domains(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.domains = mapped
    }

    /**
     * @param values The domains for which a managed SSL certificate will be generated.
     * Wildcard domains are only supported with DNS challenge resolution
     */
    @JvmName("mfmcwcaihwrjqaup")
    public suspend fun domains(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.domains = mapped
    }

    /**
     * @param value The resource name for a CertificateIssuanceConfig used to configure private PKI certificates in the format projects/*/locations/*/certificateIssuanceConfigs/*.
     * If this field is not set, the certificates will instead be publicly signed as documented at https://cloud.google.com/load-balancing/docs/ssl-certificates/google-managed-certs#caa.
     * Either issuanceConfig or dnsAuthorizations should be specificed, but not both.
     * */*/*/
     */
    @JvmName("atafudfnbyatkrvn")
    public suspend fun issuanceConfig(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.issuanceConfig = mapped
    }

    /**
     * @param value (Output)
     * Information about issues with provisioning this Managed Certificate.
     * Structure is documented below.
     */
    @JvmName("oholqkgwkrbbngej")
    public suspend fun provisioningIssues(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.provisioningIssues = mapped
    }

    /**
     * @param argument (Output)
     * Information about issues with provisioning this Managed Certificate.
     * Structure is documented below.
     */
    @JvmName("bkdjjhtsstrpxrra")
    public suspend fun provisioningIssues(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            CertificateManagedProvisioningIssueArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.provisioningIssues = mapped
    }

    /**
     * @param argument (Output)
     * Information about issues with provisioning this Managed Certificate.
     * Structure is documented below.
     */
    @JvmName("wqxfmdnnuflswhle")
    public suspend fun provisioningIssues(vararg argument: suspend CertificateManagedProvisioningIssueArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            CertificateManagedProvisioningIssueArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.provisioningIssues = mapped
    }

    /**
     * @param argument (Output)
     * Information about issues with provisioning this Managed Certificate.
     * Structure is documented below.
     */
    @JvmName("gfewyclobddqcxmo")
    public suspend fun provisioningIssues(argument: suspend CertificateManagedProvisioningIssueArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            CertificateManagedProvisioningIssueArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.provisioningIssues = mapped
    }

    /**
     * @param values (Output)
     * Information about issues with provisioning this Managed Certificate.
     * Structure is documented below.
     */
    @JvmName("iohukhgdgabacxld")
    public suspend fun provisioningIssues(vararg values: CertificateManagedProvisioningIssueArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.provisioningIssues = mapped
    }

    /**
     * @param value (Output)
     * State of the domain for managed certificate issuance.
     */
    @JvmName("ffiydhlatttryqbi")
    public suspend fun state(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.state = mapped
    }

    internal fun build(): CertificateManagedArgs = CertificateManagedArgs(
        authorizationAttemptInfos = authorizationAttemptInfos,
        dnsAuthorizations = dnsAuthorizations,
        domains = domains,
        issuanceConfig = issuanceConfig,
        provisioningIssues = provisioningIssues,
        state = state,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy