com.pulumi.awsnative.transfer.kotlin.ConnectorArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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