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

com.pulumi.gcp.certificateauthority.kotlin.outputs.CertificateConfigX509Config.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.certificateauthority.kotlin.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property additionalExtensions (Output)
 * Describes custom X.509 extensions.
 * Structure is documented below.
 * @property aiaOcspServers (Output)
 * Describes Online Certificate Status Protocol (OCSP) endpoint addresses that appear in the
 * "Authority Information Access" extension in the certificate.
 * @property caOptions (Output)
 * Describes values that are relevant in a CA certificate.
 * Structure is documented below.
 * @property keyUsage (Output)
 * Indicates the intended use for keys that correspond to a certificate.
 * Structure is documented below.
 * @property nameConstraints (Output)
 * Describes the X.509 name constraints extension.
 * Structure is documented below.
 * @property policyIds (Output)
 * Describes the X.509 certificate policy object identifiers, per https://tools.ietf.org/html/rfc5280#section-4.2.1.4.
 * Structure is documented below.
 */
public data class CertificateConfigX509Config(
    public val additionalExtensions: List? = null,
    public val aiaOcspServers: List? = null,
    public val caOptions: CertificateConfigX509ConfigCaOptions? = null,
    public val keyUsage: CertificateConfigX509ConfigKeyUsage,
    public val nameConstraints: CertificateConfigX509ConfigNameConstraints? = null,
    public val policyIds: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.certificateauthority.outputs.CertificateConfigX509Config): CertificateConfigX509Config = CertificateConfigX509Config(
            additionalExtensions = javaType.additionalExtensions().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.certificateauthority.kotlin.outputs.CertificateConfigX509ConfigAdditionalExtension.Companion.toKotlin(args0)
                })
            }),
            aiaOcspServers = javaType.aiaOcspServers().map({ args0 -> args0 }),
            caOptions = javaType.caOptions().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.certificateauthority.kotlin.outputs.CertificateConfigX509ConfigCaOptions.Companion.toKotlin(args0)
                })
            }).orElse(null),
            keyUsage = javaType.keyUsage().let({ args0 ->
                com.pulumi.gcp.certificateauthority.kotlin.outputs.CertificateConfigX509ConfigKeyUsage.Companion.toKotlin(args0)
            }),
            nameConstraints = javaType.nameConstraints().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.certificateauthority.kotlin.outputs.CertificateConfigX509ConfigNameConstraints.Companion.toKotlin(args0)
                })
            }).orElse(null),
            policyIds = javaType.policyIds().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.certificateauthority.kotlin.outputs.CertificateConfigX509ConfigPolicyId.Companion.toKotlin(args0)
                })
            }),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy