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

com.pulumi.awsnative.transfer.kotlin.ConnectorArgs.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: 1.11.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.transfer.kotlin

import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.transfer.ConnectorArgs.builder
import com.pulumi.awsnative.transfer.kotlin.inputs.As2ConfigPropertiesArgs
import com.pulumi.awsnative.transfer.kotlin.inputs.As2ConfigPropertiesArgsBuilder
import com.pulumi.awsnative.transfer.kotlin.inputs.SftpConfigPropertiesArgs
import com.pulumi.awsnative.transfer.kotlin.inputs.SftpConfigPropertiesArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
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

/**
 * Resource Type definition for AWS::Transfer::Connector
 * @property accessRole Specifies the access role for the connector.
 * @property as2Config Configuration for an AS2 connector.
 * @property loggingRole Specifies the logging role for the connector.
 * @property securityPolicyName Security policy for SFTP Connector
 * @property sftpConfig Configuration for an SFTP connector.
 * @property tags Key-value pairs that can be used to group and search for connectors. Tags are metadata attached to connectors for any purpose.
 * @property url URL for Connector
 */
public data class ConnectorArgs(
    public val accessRole: Output? = null,
    public val as2Config: Output? = null,
    public val loggingRole: Output? = null,
    public val securityPolicyName: Output? = null,
    public val sftpConfig: Output? = null,
    public val tags: Output>? = null,
    public val url: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.transfer.ConnectorArgs =
        com.pulumi.awsnative.transfer.ConnectorArgs.builder()
            .accessRole(accessRole?.applyValue({ args0 -> args0 }))
            .as2Config(as2Config?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .loggingRole(loggingRole?.applyValue({ args0 -> args0 }))
            .securityPolicyName(securityPolicyName?.applyValue({ args0 -> args0 }))
            .sftpConfig(sftpConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .url(url?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ConnectorArgs].
 */
@PulumiTagMarker
public class ConnectorArgsBuilder internal constructor() {
    private var accessRole: Output? = null

    private var as2Config: Output? = null

    private var loggingRole: Output? = null

    private var securityPolicyName: Output? = null

    private var sftpConfig: Output? = null

    private var tags: Output>? = null

    private var url: Output? = null

    /**
     * @param value Specifies the access role for the connector.
     */
    @JvmName("cdkmgkqlhwsilgvj")
    public suspend fun accessRole(`value`: Output) {
        this.accessRole = value
    }

    /**
     * @param value Configuration for an AS2 connector.
     */
    @JvmName("kpgbeimtpfbtdyrq")
    public suspend fun as2Config(`value`: Output) {
        this.as2Config = value
    }

    /**
     * @param value Specifies the logging role for the connector.
     */
    @JvmName("udbshljtmfsrxjbn")
    public suspend fun loggingRole(`value`: Output) {
        this.loggingRole = value
    }

    /**
     * @param value Security policy for SFTP Connector
     */
    @JvmName("wotoarsgsuaubnvd")
    public suspend fun securityPolicyName(`value`: Output) {
        this.securityPolicyName = value
    }

    /**
     * @param value Configuration for an SFTP connector.
     */
    @JvmName("aoqeywdgrehbikmt")
    public suspend fun sftpConfig(`value`: Output) {
        this.sftpConfig = value
    }

    /**
     * @param value Key-value pairs that can be used to group and search for connectors. Tags are metadata attached to connectors for any purpose.
     */
    @JvmName("dljeuhfgmbjyqjoa")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values Key-value pairs that can be used to group and search for connectors. Tags are metadata attached to connectors for any purpose.
     */
    @JvmName("ogteluwtlqbmccoa")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value URL for Connector
     */
    @JvmName("rgglkedxafctyjep")
    public suspend fun url(`value`: Output) {
        this.url = value
    }

    /**
     * @param value Specifies the access role for the connector.
     */
    @JvmName("wiyhkxrlewqeyitc")
    public suspend fun accessRole(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.accessRole = mapped
    }

    /**
     * @param value Configuration for an AS2 connector.
     */
    @JvmName("ftlxkhdvinpourgl")
    public suspend fun as2Config(`value`: As2ConfigPropertiesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.as2Config = mapped
    }

    /**
     * @param argument Configuration for an AS2 connector.
     */
    @JvmName("aljepoomsvdkqdkf")
    public suspend fun as2Config(argument: suspend As2ConfigPropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = As2ConfigPropertiesArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.as2Config = mapped
    }

    /**
     * @param value Specifies the logging role for the connector.
     */
    @JvmName("yaufusdiaxdgjymb")
    public suspend fun loggingRole(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.loggingRole = mapped
    }

    /**
     * @param value Security policy for SFTP Connector
     */
    @JvmName("detkbotmkcilhnuk")
    public suspend fun securityPolicyName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.securityPolicyName = mapped
    }

    /**
     * @param value Configuration for an SFTP connector.
     */
    @JvmName("bkqfbbgmirylfijp")
    public suspend fun sftpConfig(`value`: SftpConfigPropertiesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sftpConfig = mapped
    }

    /**
     * @param argument Configuration for an SFTP connector.
     */
    @JvmName("athbeutbrfbuxves")
    public suspend fun sftpConfig(argument: suspend SftpConfigPropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = SftpConfigPropertiesArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.sftpConfig = mapped
    }

    /**
     * @param value Key-value pairs that can be used to group and search for connectors. Tags are metadata attached to connectors for any purpose.
     */
    @JvmName("emdlwtxaplvevedy")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument Key-value pairs that can be used to group and search for connectors. Tags are metadata attached to connectors for any purpose.
     */
    @JvmName("qbjsyjtnwbqwrmuo")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument Key-value pairs that can be used to group and search for connectors. Tags are metadata attached to connectors for any purpose.
     */
    @JvmName("rlpknynbllnsxrkm")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument Key-value pairs that can be used to group and search for connectors. Tags are metadata attached to connectors for any purpose.
     */
    @JvmName("xclltkvjhsqyixtw")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values Key-value pairs that can be used to group and search for connectors. Tags are metadata attached to connectors for any purpose.
     */
    @JvmName("kuegfbjmmxonhkmf")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value URL for Connector
     */
    @JvmName("hevjobmhsenlnsmm")
    public suspend fun url(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.url = mapped
    }

    internal fun build(): ConnectorArgs = ConnectorArgs(
        accessRole = accessRole,
        as2Config = as2Config,
        loggingRole = loggingRole,
        securityPolicyName = securityPolicyName,
        sftpConfig = sftpConfig,
        tags = tags,
        url = url,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy