All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.azurenative.datafactory.kotlin.inputs.OdbcLinkedServiceArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.datafactory.kotlin.inputs
import com.pulumi.azurenative.datafactory.inputs.OdbcLinkedServiceArgs.builder
import com.pulumi.core.Either
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 com.pulumi.kotlin.applySuspend
import kotlin.Any
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Open Database Connectivity (ODBC) linked service.
* @property annotations List of tags that can be used for describing the linked service.
* @property authenticationType Type of authentication used to connect to the ODBC data store. Possible values are: Anonymous and Basic. Type: string (or Expression with resultType string).
* @property connectVia The integration runtime reference.
* @property connectionString The non-access credential portion of the connection string as well as an optional encrypted credential. Type: string, or SecureString, or AzureKeyVaultSecretReference, or Expression with resultType string.
* @property credential The access credential portion of the connection string specified in driver-specific property-value format.
* @property description Linked service description.
* @property encryptedCredential The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string.
* @property parameters Parameters for linked service.
* @property password Password for Basic authentication.
* @property type Type of linked service.
* Expected value is 'Odbc'.
* @property userName User name for Basic authentication. Type: string (or Expression with resultType string).
* @property version Version of the linked service.
*/
public data class OdbcLinkedServiceArgs(
public val annotations: Output>? = null,
public val authenticationType: Output? = null,
public val connectVia: Output? = null,
public val connectionString: Output,
public val credential: Output>? = null,
public val description: Output? = null,
public val encryptedCredential: Output? = null,
public val parameters: Output>? = null,
public val password: Output>? = null,
public val type: Output,
public val userName: Output? = null,
public val version: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.datafactory.inputs.OdbcLinkedServiceArgs =
com.pulumi.azurenative.datafactory.inputs.OdbcLinkedServiceArgs.builder()
.annotations(annotations?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.authenticationType(authenticationType?.applyValue({ args0 -> args0 }))
.connectVia(connectVia?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.connectionString(connectionString.applyValue({ args0 -> args0 }))
.credential(
credential?.applyValue({ args0 ->
args0.transform({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}, { args0 -> args0.let({ args0 -> args0.toJava() }) })
}),
)
.description(description?.applyValue({ args0 -> args0 }))
.encryptedCredential(encryptedCredential?.applyValue({ args0 -> args0 }))
.parameters(
parameters?.applyValue({ args0 ->
args0.map({ args0 ->
args0.key.to(args0.value.let({ args0 -> args0.toJava() }))
}).toMap()
}),
)
.password(
password?.applyValue({ args0 ->
args0.transform({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}, { args0 -> args0.let({ args0 -> args0.toJava() }) })
}),
)
.type(type.applyValue({ args0 -> args0 }))
.userName(userName?.applyValue({ args0 -> args0 }))
.version(version?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [OdbcLinkedServiceArgs].
*/
@PulumiTagMarker
public class OdbcLinkedServiceArgsBuilder internal constructor() {
private var annotations: Output>? = null
private var authenticationType: Output? = null
private var connectVia: Output? = null
private var connectionString: Output? = null
private var credential: Output>? = null
private var description: Output? = null
private var encryptedCredential: Output? = null
private var parameters: Output>? = null
private var password: Output>? = null
private var type: Output? = null
private var userName: Output? = null
private var version: Output? = null
/**
* @param value List of tags that can be used for describing the linked service.
*/
@JvmName("qvgntcnspgxatncv")
public suspend fun annotations(`value`: Output>) {
this.annotations = value
}
@JvmName("tebpdbpmkwulwefk")
public suspend fun annotations(vararg values: Output) {
this.annotations = Output.all(values.asList())
}
/**
* @param values List of tags that can be used for describing the linked service.
*/
@JvmName("llcjcvcmwgkgrrgy")
public suspend fun annotations(values: List>) {
this.annotations = Output.all(values)
}
/**
* @param value Type of authentication used to connect to the ODBC data store. Possible values are: Anonymous and Basic. Type: string (or Expression with resultType string).
*/
@JvmName("nutsvvuqioahndgl")
public suspend fun authenticationType(`value`: Output) {
this.authenticationType = value
}
/**
* @param value The integration runtime reference.
*/
@JvmName("raahonenxwitfnwb")
public suspend fun connectVia(`value`: Output) {
this.connectVia = value
}
/**
* @param value The non-access credential portion of the connection string as well as an optional encrypted credential. Type: string, or SecureString, or AzureKeyVaultSecretReference, or Expression with resultType string.
*/
@JvmName("keexxnntyscisoxh")
public suspend fun connectionString(`value`: Output) {
this.connectionString = value
}
/**
* @param value The access credential portion of the connection string specified in driver-specific property-value format.
*/
@JvmName("hknjcqxuywtbuiee")
public suspend fun credential(`value`: Output>) {
this.credential = value
}
/**
* @param value Linked service description.
*/
@JvmName("kflotumrshirinug")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string.
*/
@JvmName("vbwrbjajccdylbcm")
public suspend fun encryptedCredential(`value`: Output) {
this.encryptedCredential = value
}
/**
* @param value Parameters for linked service.
*/
@JvmName("elclvbtcvaagnfou")
public suspend fun parameters(`value`: Output>) {
this.parameters = value
}
/**
* @param value Password for Basic authentication.
*/
@JvmName("fxakjhqwyivjxwnd")
public suspend fun password(`value`: Output>) {
this.password = value
}
/**
* @param value Type of linked service.
* Expected value is 'Odbc'.
*/
@JvmName("wpauyccfkkyvkytk")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value User name for Basic authentication. Type: string (or Expression with resultType string).
*/
@JvmName("mbfebjhdrubghffb")
public suspend fun userName(`value`: Output) {
this.userName = value
}
/**
* @param value Version of the linked service.
*/
@JvmName("bwfcdtpguytpbjmr")
public suspend fun version(`value`: Output) {
this.version = value
}
/**
* @param value List of tags that can be used for describing the linked service.
*/
@JvmName("qlklbblqbxtbolut")
public suspend fun annotations(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.annotations = mapped
}
/**
* @param values List of tags that can be used for describing the linked service.
*/
@JvmName("muyrmfhbckoicgdw")
public suspend fun annotations(vararg values: Any) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.annotations = mapped
}
/**
* @param value Type of authentication used to connect to the ODBC data store. Possible values are: Anonymous and Basic. Type: string (or Expression with resultType string).
*/
@JvmName("ktlrgtaiujtnvybw")
public suspend fun authenticationType(`value`: Any?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.authenticationType = mapped
}
/**
* @param value The integration runtime reference.
*/
@JvmName("rhmeivhmiuemfyrn")
public suspend fun connectVia(`value`: IntegrationRuntimeReferenceArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.connectVia = mapped
}
/**
* @param argument The integration runtime reference.
*/
@JvmName("ryaiiiuoodwvanys")
public suspend fun connectVia(argument: suspend IntegrationRuntimeReferenceArgsBuilder.() -> Unit) {
val toBeMapped = IntegrationRuntimeReferenceArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.connectVia = mapped
}
/**
* @param value The non-access credential portion of the connection string as well as an optional encrypted credential. Type: string, or SecureString, or AzureKeyVaultSecretReference, or Expression with resultType string.
*/
@JvmName("rcadbxpjcoujfgyb")
public suspend fun connectionString(`value`: Any) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.connectionString = mapped
}
/**
* @param value The access credential portion of the connection string specified in driver-specific property-value format.
*/
@JvmName("lcxuydieuelalfpu")
public suspend fun credential(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.credential = mapped
}
/**
* @param value The access credential portion of the connection string specified in driver-specific property-value format.
*/
@JvmName("nddwmukxpqfvptcd")
public fun credential(`value`: AzureKeyVaultSecretReferenceArgs) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.credential = mapped
}
/**
* @param value The access credential portion of the connection string specified in driver-specific property-value format.
*/
@JvmName("bnqbaxxapvhpaxfu")
public fun credential(`value`: SecureStringArgs) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.credential = mapped
}
/**
* @param value Linked service description.
*/
@JvmName("osffkscuxynqwyrw")
public suspend fun description(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.description = mapped
}
/**
* @param value The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string.
*/
@JvmName("conxhiuhabaskugb")
public suspend fun encryptedCredential(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.encryptedCredential = mapped
}
/**
* @param value Parameters for linked service.
*/
@JvmName("mcfpgyisxkicaexf")
public suspend fun parameters(`value`: Map?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.parameters = mapped
}
/**
* @param argument Parameters for linked service.
*/
@JvmName("iyaosvlqnafeefqb")
public suspend fun parameters(vararg argument: Pair Unit>) {
val toBeMapped = argument.toList().map { (left, right) ->
left to
ParameterSpecificationArgsBuilder().applySuspend { right() }.build()
}.toMap()
val mapped = of(toBeMapped)
this.parameters = mapped
}
/**
* @param values Parameters for linked service.
*/
@JvmName("xnybkcpxfpsfrqyw")
public fun parameters(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.parameters = mapped
}
/**
* @param value Password for Basic authentication.
*/
@JvmName("karxufgmasfjnjgd")
public suspend fun password(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.password = mapped
}
/**
* @param value Password for Basic authentication.
*/
@JvmName("milcsekdlgnfwsbk")
public fun password(`value`: AzureKeyVaultSecretReferenceArgs) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.password = mapped
}
/**
* @param value Password for Basic authentication.
*/
@JvmName("opghlkcyqwdkqvmn")
public fun password(`value`: SecureStringArgs) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.password = mapped
}
/**
* @param value Type of linked service.
* Expected value is 'Odbc'.
*/
@JvmName("taooavqxfbsnmtmw")
public suspend fun type(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
/**
* @param value User name for Basic authentication. Type: string (or Expression with resultType string).
*/
@JvmName("wxgbywqphiastfor")
public suspend fun userName(`value`: Any?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.userName = mapped
}
/**
* @param value Version of the linked service.
*/
@JvmName("fufpjqkoyefmemtl")
public suspend fun version(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.version = mapped
}
internal fun build(): OdbcLinkedServiceArgs = OdbcLinkedServiceArgs(
annotations = annotations,
authenticationType = authenticationType,
connectVia = connectVia,
connectionString = connectionString ?: throw PulumiNullFieldException("connectionString"),
credential = credential,
description = description,
encryptedCredential = encryptedCredential,
parameters = parameters,
password = password,
type = type ?: throw PulumiNullFieldException("type"),
userName = userName,
version = version,
)
}