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

com.pulumi.awsnative.transfer.kotlin.inputs.SftpConfigPropertiesArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.transfer.kotlin.inputs

import com.pulumi.awsnative.transfer.inputs.SftpConfigPropertiesArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Configuration for an SFTP connector.
 * @property trustedHostKeys List of public host keys, for the external server to which you are connecting.
 * @property userSecretId ARN or name of the secret in AWS Secrets Manager which contains the SFTP user's private keys or passwords.
 */
public data class SftpConfigPropertiesArgs(
    public val trustedHostKeys: Output>? = null,
    public val userSecretId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.transfer.inputs.SftpConfigPropertiesArgs =
        com.pulumi.awsnative.transfer.inputs.SftpConfigPropertiesArgs.builder()
            .trustedHostKeys(trustedHostKeys?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .userSecretId(userSecretId?.applyValue({ args0 -> args0 })).build()
}

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

    private var userSecretId: Output? = null

    /**
     * @param value List of public host keys, for the external server to which you are connecting.
     */
    @JvmName("sxfsljoueonmfngp")
    public suspend fun trustedHostKeys(`value`: Output>) {
        this.trustedHostKeys = value
    }

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

    /**
     * @param values List of public host keys, for the external server to which you are connecting.
     */
    @JvmName("evtrtfotdhwlsobk")
    public suspend fun trustedHostKeys(values: List>) {
        this.trustedHostKeys = Output.all(values)
    }

    /**
     * @param value ARN or name of the secret in AWS Secrets Manager which contains the SFTP user's private keys or passwords.
     */
    @JvmName("aociauripbawhpch")
    public suspend fun userSecretId(`value`: Output) {
        this.userSecretId = value
    }

    /**
     * @param value List of public host keys, for the external server to which you are connecting.
     */
    @JvmName("aajwqvylxovlbhjs")
    public suspend fun trustedHostKeys(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.trustedHostKeys = mapped
    }

    /**
     * @param values List of public host keys, for the external server to which you are connecting.
     */
    @JvmName("lkfpadcjwljjciuh")
    public suspend fun trustedHostKeys(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.trustedHostKeys = mapped
    }

    /**
     * @param value ARN or name of the secret in AWS Secrets Manager which contains the SFTP user's private keys or passwords.
     */
    @JvmName("uswssjtyahmieugj")
    public suspend fun userSecretId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.userSecretId = mapped
    }

    internal fun build(): SftpConfigPropertiesArgs = SftpConfigPropertiesArgs(
        trustedHostKeys = trustedHostKeys,
        userSecretId = userSecretId,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy