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

com.pulumi.azurenative.datafactory.kotlin.inputs.HttpLinkedServiceArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.datafactory.kotlin.inputs

import com.pulumi.azurenative.datafactory.inputs.HttpLinkedServiceArgs.builder
import com.pulumi.azurenative.datafactory.kotlin.enums.HttpAuthenticationType
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

/**
 * Linked service for an HTTP source.
 * @property annotations List of tags that can be used for describing the linked service.
 * @property authHeaders The additional HTTP headers in the request to RESTful API used for authorization. Type: key value pairs (value should be string type).
 * @property authenticationType The authentication type to be used to connect to the HTTP server.
 * @property certThumbprint Thumbprint of certificate for ClientCertificate authentication. Only valid for on-premises copy. For on-premises copy with ClientCertificate authentication, either CertThumbprint or EmbeddedCertData/Password should be specified. Type: string (or Expression with resultType string).
 * @property connectVia The integration runtime reference.
 * @property description Linked service description.
 * @property embeddedCertData Base64 encoded certificate data for ClientCertificate authentication. For on-premises copy with ClientCertificate authentication, either CertThumbprint or EmbeddedCertData/Password should be specified. Type: string (or Expression with resultType string).
 * @property enableServerCertificateValidation If true, validate the HTTPS server SSL certificate. Default value is true. Type: boolean (or Expression with resultType boolean).
 * @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, Digest, Windows, or ClientCertificate with EmbeddedCertData authentication.
 * @property type Type of linked service.
 * Expected value is 'HttpServer'.
 * @property url The base URL of the HTTP endpoint, e.g. https://www.microsoft.com. Type: string (or Expression with resultType string).
 * @property userName User name for Basic, Digest, or Windows authentication. Type: string (or Expression with resultType string).
 * @property version Version of the linked service.
 */
public data class HttpLinkedServiceArgs(
    public val annotations: Output>? = null,
    public val authHeaders: Output? = null,
    public val authenticationType: Output>? = null,
    public val certThumbprint: Output? = null,
    public val connectVia: Output? = null,
    public val description: Output? = null,
    public val embeddedCertData: Output? = null,
    public val enableServerCertificateValidation: Output? = null,
    public val encryptedCredential: Output? = null,
    public val parameters: Output>? = null,
    public val password: Output>? = null,
    public val type: Output,
    public val url: Output,
    public val userName: Output? = null,
    public val version: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.datafactory.inputs.HttpLinkedServiceArgs =
        com.pulumi.azurenative.datafactory.inputs.HttpLinkedServiceArgs.builder()
            .annotations(annotations?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .authHeaders(authHeaders?.applyValue({ args0 -> args0 }))
            .authenticationType(
                authenticationType?.applyValue({ args0 ->
                    args0.transform(
                        { args0 -> args0 },
                        { args0 -> args0.let({ args0 -> args0.toJava() }) },
                    )
                }),
            )
            .certThumbprint(certThumbprint?.applyValue({ args0 -> args0 }))
            .connectVia(connectVia?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .description(description?.applyValue({ args0 -> args0 }))
            .embeddedCertData(embeddedCertData?.applyValue({ args0 -> args0 }))
            .enableServerCertificateValidation(
                enableServerCertificateValidation?.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 }))
            .url(url.applyValue({ args0 -> args0 }))
            .userName(userName?.applyValue({ args0 -> args0 }))
            .version(version?.applyValue({ args0 -> args0 })).build()
}

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

    private var authHeaders: Output? = null

    private var authenticationType: Output>? = null

    private var certThumbprint: Output? = null

    private var connectVia: Output? = null

    private var description: Output? = null

    private var embeddedCertData: Output? = null

    private var enableServerCertificateValidation: Output? = null

    private var encryptedCredential: Output? = null

    private var parameters: Output>? = null

    private var password: Output>? = null

    private var type: Output? = null

    private var url: 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("uhitoxgfdoqmfmgh")
    public suspend fun annotations(`value`: Output>) {
        this.annotations = value
    }

    @JvmName("iwgtrckklpechvhe")
    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("nhabovkttjebtifa")
    public suspend fun annotations(values: List>) {
        this.annotations = Output.all(values)
    }

    /**
     * @param value The additional HTTP headers in the request to RESTful API used for authorization. Type: key value pairs (value should be string type).
     */
    @JvmName("sovjadjpyttwqskx")
    public suspend fun authHeaders(`value`: Output) {
        this.authHeaders = value
    }

    /**
     * @param value The authentication type to be used to connect to the HTTP server.
     */
    @JvmName("meqsfjtwueqjqhbt")
    public suspend fun authenticationType(`value`: Output>) {
        this.authenticationType = value
    }

    /**
     * @param value Thumbprint of certificate for ClientCertificate authentication. Only valid for on-premises copy. For on-premises copy with ClientCertificate authentication, either CertThumbprint or EmbeddedCertData/Password should be specified. Type: string (or Expression with resultType string).
     */
    @JvmName("ankbgfdyqufgawqy")
    public suspend fun certThumbprint(`value`: Output) {
        this.certThumbprint = value
    }

    /**
     * @param value The integration runtime reference.
     */
    @JvmName("ilsdowmsserkujvq")
    public suspend fun connectVia(`value`: Output) {
        this.connectVia = value
    }

    /**
     * @param value Linked service description.
     */
    @JvmName("lglhmivpfrfrhukn")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value Base64 encoded certificate data for ClientCertificate authentication. For on-premises copy with ClientCertificate authentication, either CertThumbprint or EmbeddedCertData/Password should be specified. Type: string (or Expression with resultType string).
     */
    @JvmName("djvojyudebpoxcqq")
    public suspend fun embeddedCertData(`value`: Output) {
        this.embeddedCertData = value
    }

    /**
     * @param value If true, validate the HTTPS server SSL certificate. Default value is true. Type: boolean (or Expression with resultType boolean).
     */
    @JvmName("qvgqsgrxjuqgsvji")
    public suspend fun enableServerCertificateValidation(`value`: Output) {
        this.enableServerCertificateValidation = value
    }

    /**
     * @param value The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string.
     */
    @JvmName("aqtluvoypmubdpjs")
    public suspend fun encryptedCredential(`value`: Output) {
        this.encryptedCredential = value
    }

    /**
     * @param value Parameters for linked service.
     */
    @JvmName("jsbusysmwhdvqcjf")
    public suspend fun parameters(`value`: Output>) {
        this.parameters = value
    }

    /**
     * @param value Password for Basic, Digest, Windows, or ClientCertificate with EmbeddedCertData authentication.
     */
    @JvmName("rhfpqkqhyxmnbrxh")
    public suspend fun password(`value`: Output>) {
        this.password = value
    }

    /**
     * @param value Type of linked service.
     * Expected value is 'HttpServer'.
     */
    @JvmName("piigwugrhsginrpr")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value The base URL of the HTTP endpoint, e.g. https://www.microsoft.com. Type: string (or Expression with resultType string).
     */
    @JvmName("yrplfobacxfmhumg")
    public suspend fun url(`value`: Output) {
        this.url = value
    }

    /**
     * @param value User name for Basic, Digest, or Windows authentication. Type: string (or Expression with resultType string).
     */
    @JvmName("gcbaiivymhyxdaqf")
    public suspend fun userName(`value`: Output) {
        this.userName = value
    }

    /**
     * @param value Version of the linked service.
     */
    @JvmName("keenwukyldivitts")
    public suspend fun version(`value`: Output) {
        this.version = value
    }

    /**
     * @param value List of tags that can be used for describing the linked service.
     */
    @JvmName("lqqpbkqotpokacpm")
    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("dmloumnuflsrrbvj")
    public suspend fun annotations(vararg values: Any) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.annotations = mapped
    }

    /**
     * @param value The additional HTTP headers in the request to RESTful API used for authorization. Type: key value pairs (value should be string type).
     */
    @JvmName("jxxwbctogjyymyrh")
    public suspend fun authHeaders(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.authHeaders = mapped
    }

    /**
     * @param value The authentication type to be used to connect to the HTTP server.
     */
    @JvmName("xssitydkmfnccaac")
    public suspend fun authenticationType(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.authenticationType = mapped
    }

    /**
     * @param value The authentication type to be used to connect to the HTTP server.
     */
    @JvmName("bmyrgswcjrduqynd")
    public fun authenticationType(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.authenticationType = mapped
    }

    /**
     * @param value The authentication type to be used to connect to the HTTP server.
     */
    @JvmName("avcaaiamsrkgvbbo")
    public fun authenticationType(`value`: HttpAuthenticationType) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.authenticationType = mapped
    }

    /**
     * @param value Thumbprint of certificate for ClientCertificate authentication. Only valid for on-premises copy. For on-premises copy with ClientCertificate authentication, either CertThumbprint or EmbeddedCertData/Password should be specified. Type: string (or Expression with resultType string).
     */
    @JvmName("aigyfgqgjuefummh")
    public suspend fun certThumbprint(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.certThumbprint = mapped
    }

    /**
     * @param value The integration runtime reference.
     */
    @JvmName("dpdwhsfguqmsivkd")
    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("nywxeoutgqxlybew")
    public suspend fun connectVia(argument: suspend IntegrationRuntimeReferenceArgsBuilder.() -> Unit) {
        val toBeMapped = IntegrationRuntimeReferenceArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.connectVia = mapped
    }

    /**
     * @param value Linked service description.
     */
    @JvmName("uoebwfcqbfplpnhh")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value Base64 encoded certificate data for ClientCertificate authentication. For on-premises copy with ClientCertificate authentication, either CertThumbprint or EmbeddedCertData/Password should be specified. Type: string (or Expression with resultType string).
     */
    @JvmName("kjndtengsjogtoxm")
    public suspend fun embeddedCertData(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.embeddedCertData = mapped
    }

    /**
     * @param value If true, validate the HTTPS server SSL certificate. Default value is true. Type: boolean (or Expression with resultType boolean).
     */
    @JvmName("nicxnauhbussnxtt")
    public suspend fun enableServerCertificateValidation(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enableServerCertificateValidation = mapped
    }

    /**
     * @param value The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string.
     */
    @JvmName("bafqwhhdwxblurgn")
    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("pvgtegcvqiranxmi")
    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("ewpbsbbssqnwrlno")
    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("okijgtqhrvearvib")
    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, Digest, Windows, or ClientCertificate with EmbeddedCertData authentication.
     */
    @JvmName("jqiwfcrgwitmwfeq")
    public suspend fun password(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.password = mapped
    }

    /**
     * @param value Password for Basic, Digest, Windows, or ClientCertificate with EmbeddedCertData authentication.
     */
    @JvmName("flvkmxfamatfwqoy")
    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, Digest, Windows, or ClientCertificate with EmbeddedCertData authentication.
     */
    @JvmName("wynxdfghaouqvcgl")
    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 'HttpServer'.
     */
    @JvmName("ofkjykjfjpqmmlsu")
    public suspend fun type(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    /**
     * @param value The base URL of the HTTP endpoint, e.g. https://www.microsoft.com. Type: string (or Expression with resultType string).
     */
    @JvmName("fkbshijvqdpccyin")
    public suspend fun url(`value`: Any) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.url = mapped
    }

    /**
     * @param value User name for Basic, Digest, or Windows authentication. Type: string (or Expression with resultType string).
     */
    @JvmName("ckpqaubrxhalenbn")
    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("lqumwwklureeqyod")
    public suspend fun version(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.version = mapped
    }

    internal fun build(): HttpLinkedServiceArgs = HttpLinkedServiceArgs(
        annotations = annotations,
        authHeaders = authHeaders,
        authenticationType = authenticationType,
        certThumbprint = certThumbprint,
        connectVia = connectVia,
        description = description,
        embeddedCertData = embeddedCertData,
        enableServerCertificateValidation = enableServerCertificateValidation,
        encryptedCredential = encryptedCredential,
        parameters = parameters,
        password = password,
        type = type ?: throw PulumiNullFieldException("type"),
        url = url ?: throw PulumiNullFieldException("url"),
        userName = userName,
        version = version,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy