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

com.pulumi.azurenative.datafactory.kotlin.IntegrationRuntimeArgs.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

import com.pulumi.azurenative.datafactory.IntegrationRuntimeArgs.builder
import com.pulumi.azurenative.datafactory.kotlin.inputs.ManagedIntegrationRuntimeArgs
import com.pulumi.azurenative.datafactory.kotlin.inputs.SelfHostedIntegrationRuntimeArgs
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.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Integration runtime resource type.
 * Azure REST API version: 2018-06-01. Prior API version in Azure Native 1.x: 2018-06-01.
 * ## Example Usage
 * ### IntegrationRuntimes_Create
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var integrationRuntime = new AzureNative.DataFactory.IntegrationRuntime("integrationRuntime", new()
 *     {
 *         FactoryName = "exampleFactoryName",
 *         IntegrationRuntimeName = "exampleIntegrationRuntime",
 *         Properties = new AzureNative.DataFactory.Inputs.SelfHostedIntegrationRuntimeArgs
 *         {
 *             Description = "A selfhosted integration runtime",
 *             Type = "SelfHosted",
 *         },
 *         ResourceGroupName = "exampleResourceGroup",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	datafactory "github.com/pulumi/pulumi-azure-native-sdk/datafactory/v2"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := datafactory.NewIntegrationRuntime(ctx, "integrationRuntime", &datafactory.IntegrationRuntimeArgs{
 * 			FactoryName:            pulumi.String("exampleFactoryName"),
 * 			IntegrationRuntimeName: pulumi.String("exampleIntegrationRuntime"),
 * 			Properties: &datafactory.SelfHostedIntegrationRuntimeArgs{
 * 				Description: pulumi.String("A selfhosted integration runtime"),
 * 				Type:        pulumi.String("SelfHosted"),
 * 			},
 * 			ResourceGroupName: pulumi.String("exampleResourceGroup"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.datafactory.IntegrationRuntime;
 * import com.pulumi.azurenative.datafactory.IntegrationRuntimeArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         var integrationRuntime = new IntegrationRuntime("integrationRuntime", IntegrationRuntimeArgs.builder()
 *             .factoryName("exampleFactoryName")
 *             .integrationRuntimeName("exampleIntegrationRuntime")
 *             .properties(SelfHostedIntegrationRuntimeArgs.builder()
 *                 .description("A selfhosted integration runtime")
 *                 .type("SelfHosted")
 *                 .build())
 *             .resourceGroupName("exampleResourceGroup")
 *             .build());
 *     }
 * }
 * ```
 * ## Import
 * An existing resource can be imported using its type token, name, and identifier, e.g.
 * ```sh
 * $ pulumi import azure-native:datafactory:IntegrationRuntime exampleIntegrationRuntime /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}
 * ```
 * @property factoryName The factory name.
 * @property integrationRuntimeName The integration runtime name.
 * @property properties Integration runtime properties.
 * @property resourceGroupName The resource group name.
 */
public data class IntegrationRuntimeArgs(
    public val factoryName: Output? = null,
    public val integrationRuntimeName: Output? = null,
    public val properties: Output>? = null,
    public val resourceGroupName: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.datafactory.IntegrationRuntimeArgs =
        com.pulumi.azurenative.datafactory.IntegrationRuntimeArgs.builder()
            .factoryName(factoryName?.applyValue({ args0 -> args0 }))
            .integrationRuntimeName(integrationRuntimeName?.applyValue({ args0 -> args0 }))
            .properties(
                properties?.applyValue({ args0 ->
                    args0.transform({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    }, { args0 -> args0.let({ args0 -> args0.toJava() }) })
                }),
            )
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [IntegrationRuntimeArgs].
 */
@PulumiTagMarker
public class IntegrationRuntimeArgsBuilder internal constructor() {
    private var factoryName: Output? = null

    private var integrationRuntimeName: Output? = null

    private var properties:
        Output>? = null

    private var resourceGroupName: Output? = null

    /**
     * @param value The factory name.
     */
    @JvmName("dxdyfnerbvrdcocp")
    public suspend fun factoryName(`value`: Output) {
        this.factoryName = value
    }

    /**
     * @param value The integration runtime name.
     */
    @JvmName("ylpeyydpvnhcvres")
    public suspend fun integrationRuntimeName(`value`: Output) {
        this.integrationRuntimeName = value
    }

    /**
     * @param value Integration runtime properties.
     */
    @JvmName("xfbtmqxvodyeahan")
    public suspend fun properties(`value`: Output>) {
        this.properties = value
    }

    /**
     * @param value The resource group name.
     */
    @JvmName("lyhrocrqojxulfoq")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value The factory name.
     */
    @JvmName("mwlkfriwiaoumafn")
    public suspend fun factoryName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.factoryName = mapped
    }

    /**
     * @param value The integration runtime name.
     */
    @JvmName("llgtfedjnfcpeddk")
    public suspend fun integrationRuntimeName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.integrationRuntimeName = mapped
    }

    /**
     * @param value Integration runtime properties.
     */
    @JvmName("atxyquolimfaldko")
    public suspend fun properties(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.properties = mapped
    }

    /**
     * @param value Integration runtime properties.
     */
    @JvmName("dwotcooeqscpsgcj")
    public fun properties(`value`: ManagedIntegrationRuntimeArgs) {
        val toBeMapped = Either.ofLeft<
            ManagedIntegrationRuntimeArgs,
            SelfHostedIntegrationRuntimeArgs,
            >(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.properties = mapped
    }

    /**
     * @param value Integration runtime properties.
     */
    @JvmName("cwhckecbtolxcjjo")
    public fun properties(`value`: SelfHostedIntegrationRuntimeArgs) {
        val toBeMapped = Either.ofRight<
            ManagedIntegrationRuntimeArgs,
            SelfHostedIntegrationRuntimeArgs,
            >(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.properties = mapped
    }

    /**
     * @param value The resource group name.
     */
    @JvmName("oraxkcgppxxbhgnb")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    internal fun build(): IntegrationRuntimeArgs = IntegrationRuntimeArgs(
        factoryName = factoryName,
        integrationRuntimeName = integrationRuntimeName,
        properties = properties,
        resourceGroupName = resourceGroupName,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy