![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.synapse.kotlin.IntegrationRuntimeArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-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.azurenative.synapse.kotlin
import com.pulumi.azurenative.synapse.IntegrationRuntimeArgs.builder
import com.pulumi.azurenative.synapse.kotlin.inputs.ManagedIntegrationRuntimeArgs
import com.pulumi.azurenative.synapse.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: 2021-06-01. Prior API version in Azure Native 1.x: 2021-03-01.
* Other available API versions: 2021-06-01-preview.
* ## Example Usage
* ### Create integration runtime
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using AzureNative = Pulumi.AzureNative;
* return await Deployment.RunAsync(() =>
* {
* var integrationRuntime = new AzureNative.Synapse.IntegrationRuntime("integrationRuntime", new()
* {
* IntegrationRuntimeName = "exampleIntegrationRuntime",
* Properties = new AzureNative.Synapse.Inputs.SelfHostedIntegrationRuntimeArgs
* {
* Description = "A selfhosted integration runtime",
* Type = "SelfHosted",
* },
* ResourceGroupName = "exampleResourceGroup",
* WorkspaceName = "exampleWorkspace",
* });
* });
* ```
* ```go
* package main
* import (
* synapse "github.com/pulumi/pulumi-azure-native-sdk/synapse/v2"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _, err := synapse.NewIntegrationRuntime(ctx, "integrationRuntime", &synapse.IntegrationRuntimeArgs{
* IntegrationRuntimeName: pulumi.String("exampleIntegrationRuntime"),
* Properties: &synapse.SelfHostedIntegrationRuntimeArgs{
* Description: pulumi.String("A selfhosted integration runtime"),
* Type: pulumi.String("SelfHosted"),
* },
* ResourceGroupName: pulumi.String("exampleResourceGroup"),
* WorkspaceName: pulumi.String("exampleWorkspace"),
* })
* 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.synapse.IntegrationRuntime;
* import com.pulumi.azurenative.synapse.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()
* .integrationRuntimeName("exampleIntegrationRuntime")
* .properties(SelfHostedIntegrationRuntimeArgs.builder()
* .description("A selfhosted integration runtime")
* .type("SelfHosted")
* .build())
* .resourceGroupName("exampleResourceGroup")
* .workspaceName("exampleWorkspace")
* .build());
* }
* }
* ```
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:synapse:IntegrationRuntime exampleIntegrationRuntime /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}
* ```
* @property integrationRuntimeName Integration runtime name
* @property properties Integration runtime properties.
* @property resourceGroupName The name of the resource group. The name is case insensitive.
* @property workspaceName The name of the workspace.
*/
public data class IntegrationRuntimeArgs(
public val integrationRuntimeName: Output? = null,
public val properties: Output>? = null,
public val resourceGroupName: Output? = null,
public val workspaceName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.synapse.IntegrationRuntimeArgs =
com.pulumi.azurenative.synapse.IntegrationRuntimeArgs.builder()
.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 }))
.workspaceName(workspaceName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [IntegrationRuntimeArgs].
*/
@PulumiTagMarker
public class IntegrationRuntimeArgsBuilder internal constructor() {
private var integrationRuntimeName: Output? = null
private var properties:
Output>? = null
private var resourceGroupName: Output? = null
private var workspaceName: Output? = null
/**
* @param value Integration runtime name
*/
@JvmName("lnxdhdsuqhggnwyy")
public suspend fun integrationRuntimeName(`value`: Output) {
this.integrationRuntimeName = value
}
/**
* @param value Integration runtime properties.
*/
@JvmName("dcdvbhhggxatstji")
public suspend fun properties(`value`: Output>) {
this.properties = value
}
/**
* @param value The name of the resource group. The name is case insensitive.
*/
@JvmName("tuaijswdnayryvxb")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value The name of the workspace.
*/
@JvmName("lieauuhuynhplbty")
public suspend fun workspaceName(`value`: Output) {
this.workspaceName = value
}
/**
* @param value Integration runtime name
*/
@JvmName("iarkonciquahdymi")
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("jjnpjledxsxrnxhp")
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("hsqkdamsjrkbtquo")
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("xtxomxicmjllsinx")
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 name of the resource group. The name is case insensitive.
*/
@JvmName("mnmtfjfpflmsxwcs")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
/**
* @param value The name of the workspace.
*/
@JvmName("irlgsejufeekkhpo")
public suspend fun workspaceName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.workspaceName = mapped
}
internal fun build(): IntegrationRuntimeArgs = IntegrationRuntimeArgs(
integrationRuntimeName = integrationRuntimeName,
properties = properties,
resourceGroupName = resourceGroupName,
workspaceName = workspaceName,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy