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

com.pulumi.azure.appplatform.kotlin.inputs.SpringCloudServiceConfigServerGitSettingSshAuthArgs.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.appplatform.kotlin.inputs

import com.pulumi.azure.appplatform.inputs.SpringCloudServiceConfigServerGitSettingSshAuthArgs.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

/**
 *
 * @property hostKey The host key of the Git repository server, should not include the algorithm prefix as covered by `host-key-algorithm`.
 * @property hostKeyAlgorithm The host key algorithm, should be `ssh-dss`, `ssh-rsa`, `ecdsa-sha2-nistp256`, `ecdsa-sha2-nistp384`, or `ecdsa-sha2-nistp521`. Required only if `host-key` exists.
 * @property privateKey The SSH private key to access the Git repository, required when the URI starts with `git@` or `ssh://`.
 * @property strictHostKeyCheckingEnabled Indicates whether the Config Server instance will fail to start if the host_key does not match. Defaults to `true`.
 */
public data class SpringCloudServiceConfigServerGitSettingSshAuthArgs(
    public val hostKey: Output? = null,
    public val hostKeyAlgorithm: Output? = null,
    public val privateKey: Output,
    public val strictHostKeyCheckingEnabled: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.appplatform.inputs.SpringCloudServiceConfigServerGitSettingSshAuthArgs =
        com.pulumi.azure.appplatform.inputs.SpringCloudServiceConfigServerGitSettingSshAuthArgs.builder()
            .hostKey(hostKey?.applyValue({ args0 -> args0 }))
            .hostKeyAlgorithm(hostKeyAlgorithm?.applyValue({ args0 -> args0 }))
            .privateKey(privateKey.applyValue({ args0 -> args0 }))
            .strictHostKeyCheckingEnabled(strictHostKeyCheckingEnabled?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [SpringCloudServiceConfigServerGitSettingSshAuthArgs].
 */
@PulumiTagMarker
public class SpringCloudServiceConfigServerGitSettingSshAuthArgsBuilder internal constructor() {
    private var hostKey: Output? = null

    private var hostKeyAlgorithm: Output? = null

    private var privateKey: Output? = null

    private var strictHostKeyCheckingEnabled: Output? = null

    /**
     * @param value The host key of the Git repository server, should not include the algorithm prefix as covered by `host-key-algorithm`.
     */
    @JvmName("afxolldlhvtijuil")
    public suspend fun hostKey(`value`: Output) {
        this.hostKey = value
    }

    /**
     * @param value The host key algorithm, should be `ssh-dss`, `ssh-rsa`, `ecdsa-sha2-nistp256`, `ecdsa-sha2-nistp384`, or `ecdsa-sha2-nistp521`. Required only if `host-key` exists.
     */
    @JvmName("mwnfyelsrytmjbrk")
    public suspend fun hostKeyAlgorithm(`value`: Output) {
        this.hostKeyAlgorithm = value
    }

    /**
     * @param value The SSH private key to access the Git repository, required when the URI starts with `git@` or `ssh://`.
     */
    @JvmName("xoxupayebnwgmoyo")
    public suspend fun privateKey(`value`: Output) {
        this.privateKey = value
    }

    /**
     * @param value Indicates whether the Config Server instance will fail to start if the host_key does not match. Defaults to `true`.
     */
    @JvmName("bhvygskeerwwvbep")
    public suspend fun strictHostKeyCheckingEnabled(`value`: Output) {
        this.strictHostKeyCheckingEnabled = value
    }

    /**
     * @param value The host key of the Git repository server, should not include the algorithm prefix as covered by `host-key-algorithm`.
     */
    @JvmName("nfxqhqdayrrewgbq")
    public suspend fun hostKey(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.hostKey = mapped
    }

    /**
     * @param value The host key algorithm, should be `ssh-dss`, `ssh-rsa`, `ecdsa-sha2-nistp256`, `ecdsa-sha2-nistp384`, or `ecdsa-sha2-nistp521`. Required only if `host-key` exists.
     */
    @JvmName("fbmjlaylpqnwpptm")
    public suspend fun hostKeyAlgorithm(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.hostKeyAlgorithm = mapped
    }

    /**
     * @param value The SSH private key to access the Git repository, required when the URI starts with `git@` or `ssh://`.
     */
    @JvmName("xdslnobgctyrtnek")
    public suspend fun privateKey(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.privateKey = mapped
    }

    /**
     * @param value Indicates whether the Config Server instance will fail to start if the host_key does not match. Defaults to `true`.
     */
    @JvmName("abuffhkyquhatojl")
    public suspend fun strictHostKeyCheckingEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.strictHostKeyCheckingEnabled = mapped
    }

    internal fun build(): SpringCloudServiceConfigServerGitSettingSshAuthArgs =
        SpringCloudServiceConfigServerGitSettingSshAuthArgs(
            hostKey = hostKey,
            hostKeyAlgorithm = hostKeyAlgorithm,
            privateKey = privateKey ?: throw PulumiNullFieldException("privateKey"),
            strictHostKeyCheckingEnabled = strictHostKeyCheckingEnabled,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy