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

com.pulumi.azure.network.kotlin.inputs.ApplicationGatewaySslCertificateArgs.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.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.network.kotlin.inputs

import com.pulumi.azure.network.inputs.ApplicationGatewaySslCertificateArgs.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.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property data The base64-encoded PFX certificate data. Required if `key_vault_secret_id` is not set.
 * > **NOTE:** When specifying a file, use `data = filebase64("path/to/file")` to encode the contents of that file.
 * @property id The ID of the Rewrite Rule Set
 * @property keyVaultSecretId The Secret ID of (base-64 encoded unencrypted pfx) the `Secret` or `Certificate` object stored in Azure KeyVault. You need to enable soft delete for Key Vault to use this feature. Required if `data` is not set.
 * > **NOTE:** TLS termination with Key Vault certificates is limited to the [v2 SKUs](https://docs.microsoft.com/azure/application-gateway/key-vault-certs).
 * > **NOTE:** For TLS termination with Key Vault certificates to work properly existing user-assigned managed identity, which Application Gateway uses to retrieve certificates from Key Vault, should be defined via `identity` block. Additionally, access policies in the Key Vault to allow the identity to be granted *get* access to the secret should be defined.
 * @property name The Name of the SSL certificate that is unique within this Application Gateway
 * @property password Password for the pfx file specified in data. Required if `data` is set.
 * @property publicCertData The Public Certificate Data associated with the SSL Certificate.
 */
public data class ApplicationGatewaySslCertificateArgs(
    public val `data`: Output? = null,
    public val id: Output? = null,
    public val keyVaultSecretId: Output? = null,
    public val name: Output,
    public val password: Output? = null,
    public val publicCertData: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.network.inputs.ApplicationGatewaySslCertificateArgs =
        com.pulumi.azure.network.inputs.ApplicationGatewaySslCertificateArgs.builder()
            .`data`(`data`?.applyValue({ args0 -> args0 }))
            .id(id?.applyValue({ args0 -> args0 }))
            .keyVaultSecretId(keyVaultSecretId?.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 }))
            .password(password?.applyValue({ args0 -> args0 }))
            .publicCertData(publicCertData?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ApplicationGatewaySslCertificateArgs].
 */
@PulumiTagMarker
public class ApplicationGatewaySslCertificateArgsBuilder internal constructor() {
    private var `data`: Output? = null

    private var id: Output? = null

    private var keyVaultSecretId: Output? = null

    private var name: Output? = null

    private var password: Output? = null

    private var publicCertData: Output? = null

    /**
     * @param value The base64-encoded PFX certificate data. Required if `key_vault_secret_id` is not set.
     * > **NOTE:** When specifying a file, use `data = filebase64("path/to/file")` to encode the contents of that file.
     */
    @JvmName("lucnsdugkqbiuiic")
    public suspend fun `data`(`value`: Output) {
        this.`data` = value
    }

    /**
     * @param value The ID of the Rewrite Rule Set
     */
    @JvmName("gclugpkpudckohce")
    public suspend fun id(`value`: Output) {
        this.id = value
    }

    /**
     * @param value The Secret ID of (base-64 encoded unencrypted pfx) the `Secret` or `Certificate` object stored in Azure KeyVault. You need to enable soft delete for Key Vault to use this feature. Required if `data` is not set.
     * > **NOTE:** TLS termination with Key Vault certificates is limited to the [v2 SKUs](https://docs.microsoft.com/azure/application-gateway/key-vault-certs).
     * > **NOTE:** For TLS termination with Key Vault certificates to work properly existing user-assigned managed identity, which Application Gateway uses to retrieve certificates from Key Vault, should be defined via `identity` block. Additionally, access policies in the Key Vault to allow the identity to be granted *get* access to the secret should be defined.
     */
    @JvmName("mcilxsowpbnphbet")
    public suspend fun keyVaultSecretId(`value`: Output) {
        this.keyVaultSecretId = value
    }

    /**
     * @param value The Name of the SSL certificate that is unique within this Application Gateway
     */
    @JvmName("igjfgalllohvvkyu")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Password for the pfx file specified in data. Required if `data` is set.
     */
    @JvmName("aowsqlafroiiubbp")
    public suspend fun password(`value`: Output) {
        this.password = value
    }

    /**
     * @param value The Public Certificate Data associated with the SSL Certificate.
     */
    @JvmName("xcnwhdnbniyheqkn")
    public suspend fun publicCertData(`value`: Output) {
        this.publicCertData = value
    }

    /**
     * @param value The base64-encoded PFX certificate data. Required if `key_vault_secret_id` is not set.
     * > **NOTE:** When specifying a file, use `data = filebase64("path/to/file")` to encode the contents of that file.
     */
    @JvmName("twphfatoxcpulkbd")
    public suspend fun `data`(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.`data` = mapped
    }

    /**
     * @param value The ID of the Rewrite Rule Set
     */
    @JvmName("egmkccywevuiqsdq")
    public suspend fun id(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.id = mapped
    }

    /**
     * @param value The Secret ID of (base-64 encoded unencrypted pfx) the `Secret` or `Certificate` object stored in Azure KeyVault. You need to enable soft delete for Key Vault to use this feature. Required if `data` is not set.
     * > **NOTE:** TLS termination with Key Vault certificates is limited to the [v2 SKUs](https://docs.microsoft.com/azure/application-gateway/key-vault-certs).
     * > **NOTE:** For TLS termination with Key Vault certificates to work properly existing user-assigned managed identity, which Application Gateway uses to retrieve certificates from Key Vault, should be defined via `identity` block. Additionally, access policies in the Key Vault to allow the identity to be granted *get* access to the secret should be defined.
     */
    @JvmName("hlnlogsgnnoumkhe")
    public suspend fun keyVaultSecretId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.keyVaultSecretId = mapped
    }

    /**
     * @param value The Name of the SSL certificate that is unique within this Application Gateway
     */
    @JvmName("ijjriuvbvbjyaqyx")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Password for the pfx file specified in data. Required if `data` is set.
     */
    @JvmName("vjvkweamixmhphkh")
    public suspend fun password(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.password = mapped
    }

    /**
     * @param value The Public Certificate Data associated with the SSL Certificate.
     */
    @JvmName("qwibkbiuhatqwxad")
    public suspend fun publicCertData(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.publicCertData = mapped
    }

    internal fun build(): ApplicationGatewaySslCertificateArgs = ApplicationGatewaySslCertificateArgs(
        `data` = `data`,
        id = id,
        keyVaultSecretId = keyVaultSecretId,
        name = name ?: throw PulumiNullFieldException("name"),
        password = password,
        publicCertData = publicCertData,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy