com.pulumi.azure.datafactory.kotlin.IntegrationRuntimeRuleArgs.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.IntegrationRuntimeRuleArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Manages a Data Factory Azure 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 exampleIntegrationRuntimeRule = new azure.datafactory.IntegrationRuntimeRule("example", {
* name: "example",
* dataFactoryId: exampleFactory.id,
* location: example.location,
* });
* ```
* ```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_rule = azure.datafactory.IntegrationRuntimeRule("example",
* name="example",
* data_factory_id=example_factory.id,
* location=example.location)
* ```
* ```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 exampleIntegrationRuntimeRule = new Azure.DataFactory.IntegrationRuntimeRule("example", new()
* {
* Name = "example",
* DataFactoryId = exampleFactory.Id,
* Location = example.Location,
* });
* });
* ```
* ```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.NewIntegrationRuntimeRule(ctx, "example", &datafactory.IntegrationRuntimeRuleArgs{
* Name: pulumi.String("example"),
* DataFactoryId: exampleFactory.ID(),
* Location: example.Location,
* })
* 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.IntegrationRuntimeRule;
* import com.pulumi.azure.datafactory.IntegrationRuntimeRuleArgs;
* 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 exampleIntegrationRuntimeRule = new IntegrationRuntimeRule("exampleIntegrationRuntimeRule", IntegrationRuntimeRuleArgs.builder()
* .name("example")
* .dataFactoryId(exampleFactory.id())
* .location(example.location())
* .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}
* exampleIntegrationRuntimeRule:
* type: azure:datafactory:IntegrationRuntimeRule
* name: example
* properties:
* name: example
* dataFactoryId: ${exampleFactory.id}
* location: ${example.location}
* ```
*
* ## Import
* Data Factory Azure Integration Runtimes can be imported using the `resource id`, e.g.
* ```sh
* $ pulumi import azure:datafactory/integrationRuntimeRule:IntegrationRuntimeRule example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/integrationruntimes/example
* ```
* @property cleanupEnabled Cluster will not be recycled and it will be used in next data flow activity run until TTL (time to live) is reached if this is set as `false`. Default is `true`.
* @property computeType Compute type of the cluster which will execute data flow job. Valid values are `General`, `ComputeOptimized` and `MemoryOptimized`. Defaults to `General`.
* @property coreCount Core count of the cluster which will execute data flow job. Valid values are `8`, `16`, `32`, `48`, `80`, `144` and `272`. Defaults to `8`.
* @property dataFactoryId The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource.
* @property description Integration runtime description.
* @property location Specifies the supported Azure location where the resource exists. Use `AutoResolve` to create an auto-resolve integration runtime. Changing this forces a new resource to be created.
* @property name Specifies the name of the Managed Integration Runtime. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions.
* @property timeToLiveMin Time to live (in minutes) setting of the cluster which will execute data flow job. Defaults to `0`.
* @property virtualNetworkEnabled Is Integration Runtime compute provisioned within Managed Virtual Network? Changing this forces a new resource to be created.
*/
public data class IntegrationRuntimeRuleArgs(
public val cleanupEnabled: Output? = null,
public val computeType: Output? = null,
public val coreCount: Output? = null,
public val dataFactoryId: Output? = null,
public val description: Output? = null,
public val location: Output? = null,
public val name: Output? = null,
public val timeToLiveMin: Output? = null,
public val virtualNetworkEnabled: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.datafactory.IntegrationRuntimeRuleArgs =
com.pulumi.azure.datafactory.IntegrationRuntimeRuleArgs.builder()
.cleanupEnabled(cleanupEnabled?.applyValue({ args0 -> args0 }))
.computeType(computeType?.applyValue({ args0 -> args0 }))
.coreCount(coreCount?.applyValue({ args0 -> args0 }))
.dataFactoryId(dataFactoryId?.applyValue({ args0 -> args0 }))
.description(description?.applyValue({ args0 -> args0 }))
.location(location?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.timeToLiveMin(timeToLiveMin?.applyValue({ args0 -> args0 }))
.virtualNetworkEnabled(virtualNetworkEnabled?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [IntegrationRuntimeRuleArgs].
*/
@PulumiTagMarker
public class IntegrationRuntimeRuleArgsBuilder internal constructor() {
private var cleanupEnabled: Output? = null
private var computeType: Output? = null
private var coreCount: Output? = null
private var dataFactoryId: Output? = null
private var description: Output? = null
private var location: Output? = null
private var name: Output? = null
private var timeToLiveMin: Output? = null
private var virtualNetworkEnabled: Output? = null
/**
* @param value Cluster will not be recycled and it will be used in next data flow activity run until TTL (time to live) is reached if this is set as `false`. Default is `true`.
*/
@JvmName("ojldauhjkaeikcym")
public suspend fun cleanupEnabled(`value`: Output) {
this.cleanupEnabled = value
}
/**
* @param value Compute type of the cluster which will execute data flow job. Valid values are `General`, `ComputeOptimized` and `MemoryOptimized`. Defaults to `General`.
*/
@JvmName("xfkxtymnqjgjuobw")
public suspend fun computeType(`value`: Output) {
this.computeType = value
}
/**
* @param value Core count of the cluster which will execute data flow job. Valid values are `8`, `16`, `32`, `48`, `80`, `144` and `272`. Defaults to `8`.
*/
@JvmName("sflkdgoyhkesnlxl")
public suspend fun coreCount(`value`: Output) {
this.coreCount = value
}
/**
* @param value The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource.
*/
@JvmName("btmcpymglhfmyibi")
public suspend fun dataFactoryId(`value`: Output) {
this.dataFactoryId = value
}
/**
* @param value Integration runtime description.
*/
@JvmName("oqmxyaopkspqkslj")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value Specifies the supported Azure location where the resource exists. Use `AutoResolve` to create an auto-resolve integration runtime. Changing this forces a new resource to be created.
*/
@JvmName("hotqbstynjtrywqw")
public suspend fun location(`value`: Output) {
this.location = value
}
/**
* @param value Specifies the name of the Managed Integration Runtime. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions.
*/
@JvmName("cxsmoymmjwvenwni")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Time to live (in minutes) setting of the cluster which will execute data flow job. Defaults to `0`.
*/
@JvmName("sfcyultgqlrxeplc")
public suspend fun timeToLiveMin(`value`: Output) {
this.timeToLiveMin = value
}
/**
* @param value Is Integration Runtime compute provisioned within Managed Virtual Network? Changing this forces a new resource to be created.
*/
@JvmName("sylxopepdkmypqur")
public suspend fun virtualNetworkEnabled(`value`: Output) {
this.virtualNetworkEnabled = value
}
/**
* @param value Cluster will not be recycled and it will be used in next data flow activity run until TTL (time to live) is reached if this is set as `false`. Default is `true`.
*/
@JvmName("ofvathcdjsefvjbu")
public suspend fun cleanupEnabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.cleanupEnabled = mapped
}
/**
* @param value Compute type of the cluster which will execute data flow job. Valid values are `General`, `ComputeOptimized` and `MemoryOptimized`. Defaults to `General`.
*/
@JvmName("smjlkcscvvembvfb")
public suspend fun computeType(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.computeType = mapped
}
/**
* @param value Core count of the cluster which will execute data flow job. Valid values are `8`, `16`, `32`, `48`, `80`, `144` and `272`. Defaults to `8`.
*/
@JvmName("kchhviebkqiusfqi")
public suspend fun coreCount(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.coreCount = mapped
}
/**
* @param value The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource.
*/
@JvmName("xskshhdnnlueutci")
public suspend fun dataFactoryId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.dataFactoryId = mapped
}
/**
* @param value Integration runtime description.
*/
@JvmName("kqnesfegoihaqthg")
public suspend fun description(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.description = mapped
}
/**
* @param value Specifies the supported Azure location where the resource exists. Use `AutoResolve` to create an auto-resolve integration runtime. Changing this forces a new resource to be created.
*/
@JvmName("xnnbjkgnyyhmnvnx")
public suspend fun location(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.location = mapped
}
/**
* @param value Specifies the name of the Managed Integration Runtime. Changing this forces a new resource to be created. Must be globally unique. See the [Microsoft documentation](https://docs.microsoft.com/azure/data-factory/naming-rules) for all restrictions.
*/
@JvmName("yqqbsxiafwytgscd")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value Time to live (in minutes) setting of the cluster which will execute data flow job. Defaults to `0`.
*/
@JvmName("hydvljdmoecwpokb")
public suspend fun timeToLiveMin(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.timeToLiveMin = mapped
}
/**
* @param value Is Integration Runtime compute provisioned within Managed Virtual Network? Changing this forces a new resource to be created.
*/
@JvmName("pwiihefeqvukfpsq")
public suspend fun virtualNetworkEnabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.virtualNetworkEnabled = mapped
}
internal fun build(): IntegrationRuntimeRuleArgs = IntegrationRuntimeRuleArgs(
cleanupEnabled = cleanupEnabled,
computeType = computeType,
coreCount = coreCount,
dataFactoryId = dataFactoryId,
description = description,
location = location,
name = name,
timeToLiveMin = timeToLiveMin,
virtualNetworkEnabled = virtualNetworkEnabled,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy