![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.datafactory.kotlin.IntegrationRuntimeSelfHosted.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-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.azure.datafactory.kotlin
import com.pulumi.azure.datafactory.kotlin.outputs.IntegrationRuntimeSelfHostedRbacAuthorization
import com.pulumi.azure.datafactory.kotlin.outputs.IntegrationRuntimeSelfHostedRbacAuthorization.Companion.toKotlin
import com.pulumi.core.Output
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
/**
* Builder for [IntegrationRuntimeSelfHosted].
*/
@PulumiTagMarker
public class IntegrationRuntimeSelfHostedResourceBuilder internal constructor() {
public var name: String? = null
public var args: IntegrationRuntimeSelfHostedArgs = IntegrationRuntimeSelfHostedArgs()
public var opts: CustomResourceOptions = CustomResourceOptions()
/**
* @param name The _unique_ name of the resulting resource.
*/
public fun name(`value`: String) {
this.name = value
}
/**
* @param block The arguments to use to populate this resource's properties.
*/
public suspend fun args(block: suspend IntegrationRuntimeSelfHostedArgsBuilder.() -> Unit) {
val builder = IntegrationRuntimeSelfHostedArgsBuilder()
block(builder)
this.args = builder.build()
}
/**
* @param block A bag of options that control this resource's behavior.
*/
public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
}
internal fun build(): IntegrationRuntimeSelfHosted {
val builtJavaResource =
com.pulumi.azure.datafactory.IntegrationRuntimeSelfHosted(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return IntegrationRuntimeSelfHosted(builtJavaResource)
}
}
/**
* Manages a Data Factory Self-hosted Integration Runtime.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
* const example = new azure.core.ResourceGroup("example", {
* name: "example-resources",
* location: "West Europe",
* });
* const exampleFactory = new azure.datafactory.Factory("example", {
* name: "example",
* location: example.location,
* resourceGroupName: example.name,
* });
* const exampleIntegrationRuntimeSelfHosted = new azure.datafactory.IntegrationRuntimeSelfHosted("example", {
* name: "example",
* dataFactoryId: exampleFactory.id,
* });
* ```
* ```python
* import pulumi
* import pulumi_azure as azure
* example = azure.core.ResourceGroup("example",
* name="example-resources",
* location="West Europe")
* example_factory = azure.datafactory.Factory("example",
* name="example",
* location=example.location,
* resource_group_name=example.name)
* example_integration_runtime_self_hosted = azure.datafactory.IntegrationRuntimeSelfHosted("example",
* name="example",
* data_factory_id=example_factory.id)
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Azure = Pulumi.Azure;
* return await Deployment.RunAsync(() =>
* {
* var example = new Azure.Core.ResourceGroup("example", new()
* {
* Name = "example-resources",
* Location = "West Europe",
* });
* var exampleFactory = new Azure.DataFactory.Factory("example", new()
* {
* Name = "example",
* Location = example.Location,
* ResourceGroupName = example.Name,
* });
* var exampleIntegrationRuntimeSelfHosted = new Azure.DataFactory.IntegrationRuntimeSelfHosted("example", new()
* {
* Name = "example",
* DataFactoryId = exampleFactory.Id,
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
* "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/datafactory"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
* Name: pulumi.String("example-resources"),
* Location: pulumi.String("West Europe"),
* })
* if err != nil {
* return err
* }
* exampleFactory, err := datafactory.NewFactory(ctx, "example", &datafactory.FactoryArgs{
* Name: pulumi.String("example"),
* Location: example.Location,
* ResourceGroupName: example.Name,
* })
* if err != nil {
* return err
* }
* _, err = datafactory.NewIntegrationRuntimeSelfHosted(ctx, "example", &datafactory.IntegrationRuntimeSelfHostedArgs{
* Name: pulumi.String("example"),
* DataFactoryId: exampleFactory.ID(),
* })
* 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.azure.core.ResourceGroup;
* import com.pulumi.azure.core.ResourceGroupArgs;
* import com.pulumi.azure.datafactory.Factory;
* import com.pulumi.azure.datafactory.FactoryArgs;
* import com.pulumi.azure.datafactory.IntegrationRuntimeSelfHosted;
* import com.pulumi.azure.datafactory.IntegrationRuntimeSelfHostedArgs;
* 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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
* .name("example-resources")
* .location("West Europe")
* .build());
* var exampleFactory = new Factory("exampleFactory", FactoryArgs.builder()
* .name("example")
* .location(example.location())
* .resourceGroupName(example.name())
* .build());
* var exampleIntegrationRuntimeSelfHosted = new IntegrationRuntimeSelfHosted("exampleIntegrationRuntimeSelfHosted", IntegrationRuntimeSelfHostedArgs.builder()
* .name("example")
* .dataFactoryId(exampleFactory.id())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: azure:core:ResourceGroup
* properties:
* name: example-resources
* location: West Europe
* exampleFactory:
* type: azure:datafactory:Factory
* name: example
* properties:
* name: example
* location: ${example.location}
* resourceGroupName: ${example.name}
* exampleIntegrationRuntimeSelfHosted:
* type: azure:datafactory:IntegrationRuntimeSelfHosted
* name: example
* properties:
* name: example
* dataFactoryId: ${exampleFactory.id}
* ```
*
* ## Import
* Data Factories can be imported using the `resource id`, e.g.
* ```sh
* $ pulumi import azure:datafactory/integrationRuntimeSelfHosted:IntegrationRuntimeSelfHosted example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/integrationruntimes/example
* ```
*/
public class IntegrationRuntimeSelfHosted internal constructor(
override val javaResource: com.pulumi.azure.datafactory.IntegrationRuntimeSelfHosted,
) : KotlinCustomResource(javaResource, IntegrationRuntimeSelfHostedMapper) {
/**
* The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource.
*/
public val dataFactoryId: Output
get() = javaResource.dataFactoryId().applyValue({ args0 -> args0 })
/**
* Integration runtime description.
*/
public val description: Output?
get() = javaResource.description().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The name which should be used for this Data Factory. Changing this forces a new Data Factory Self-hosted Integration Runtime to be created.
*/
public val name: Output
get() = javaResource.name().applyValue({ args0 -> args0 })
/**
* The primary integration runtime authentication key.
*/
public val primaryAuthorizationKey: Output
get() = javaResource.primaryAuthorizationKey().applyValue({ args0 -> args0 })
/**
* A `rbac_authorization` block as defined below. Changing this forces a new resource to be created.
*/
public val rbacAuthorizations: Output>?
get() = javaResource.rbacAuthorizations().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 -> args0.let({ args0 -> toKotlin(args0) }) })
}).orElse(null)
})
/**
* The secondary integration runtime authentication key.
*/
public val secondaryAuthorizationKey: Output
get() = javaResource.secondaryAuthorizationKey().applyValue({ args0 -> args0 })
/**
* Specifies whether enable interactive authoring function when your self-hosted integration runtime is unable to establish a connection with Azure Relay.
*/
public val selfContainedInteractiveAuthoringEnabled: Output?
get() = javaResource.selfContainedInteractiveAuthoringEnabled().applyValue({ args0 ->
args0.map({ args0 -> args0 }).orElse(null)
})
}
public object IntegrationRuntimeSelfHostedMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.azure.datafactory.IntegrationRuntimeSelfHosted::class == javaResource::class
override fun map(javaResource: Resource): IntegrationRuntimeSelfHosted =
IntegrationRuntimeSelfHosted(
javaResource as
com.pulumi.azure.datafactory.IntegrationRuntimeSelfHosted,
)
}
/**
* @see [IntegrationRuntimeSelfHosted].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [IntegrationRuntimeSelfHosted].
*/
public suspend fun integrationRuntimeSelfHosted(
name: String,
block: suspend IntegrationRuntimeSelfHostedResourceBuilder.() -> Unit,
): IntegrationRuntimeSelfHosted {
val builder = IntegrationRuntimeSelfHostedResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [IntegrationRuntimeSelfHosted].
* @param name The _unique_ name of the resulting resource.
*/
public fun integrationRuntimeSelfHosted(name: String): IntegrationRuntimeSelfHosted {
val builder = IntegrationRuntimeSelfHostedResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy