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

com.pulumi.azure.datafactory.kotlin.IntegrationRuntimeManagedArgs.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: 6.21.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.datafactory.kotlin

import com.pulumi.azure.datafactory.IntegrationRuntimeManagedArgs.builder
import com.pulumi.azure.datafactory.kotlin.inputs.IntegrationRuntimeManagedCatalogInfoArgs
import com.pulumi.azure.datafactory.kotlin.inputs.IntegrationRuntimeManagedCatalogInfoArgsBuilder
import com.pulumi.azure.datafactory.kotlin.inputs.IntegrationRuntimeManagedCustomSetupScriptArgs
import com.pulumi.azure.datafactory.kotlin.inputs.IntegrationRuntimeManagedCustomSetupScriptArgsBuilder
import com.pulumi.azure.datafactory.kotlin.inputs.IntegrationRuntimeManagedVnetIntegrationArgs
import com.pulumi.azure.datafactory.kotlin.inputs.IntegrationRuntimeManagedVnetIntegrationArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * Manages an Azure Data Factory Managed Integration Runtime.
 * > **NOTE:** The `azure.datafactory.IntegrationRuntimeManaged` resource has been superseded by the `azure.datafactory.IntegrationRuntimeSsis` resource. We recommend using the `azure.datafactory.IntegrationRuntimeSsis` resource for new deployments.
 * ## 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 exampleIntegrationRuntimeManaged = new azure.datafactory.IntegrationRuntimeManaged("example", {
 *     name: "example",
 *     dataFactoryId: exampleFactory.id,
 *     location: example.location,
 *     nodeSize: "Standard_D8_v3",
 * });
 * ```
 * ```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_managed = azure.datafactory.IntegrationRuntimeManaged("example",
 *     name="example",
 *     data_factory_id=example_factory.id,
 *     location=example.location,
 *     node_size="Standard_D8_v3")
 * ```
 * ```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 exampleIntegrationRuntimeManaged = new Azure.DataFactory.IntegrationRuntimeManaged("example", new()
 *     {
 *         Name = "example",
 *         DataFactoryId = exampleFactory.Id,
 *         Location = example.Location,
 *         NodeSize = "Standard_D8_v3",
 *     });
 * });
 * ```
 * ```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.NewIntegrationRuntimeManaged(ctx, "example", &datafactory.IntegrationRuntimeManagedArgs{
 * 			Name:          pulumi.String("example"),
 * 			DataFactoryId: exampleFactory.ID(),
 * 			Location:      example.Location,
 * 			NodeSize:      pulumi.String("Standard_D8_v3"),
 * 		})
 * 		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.IntegrationRuntimeManaged;
 * import com.pulumi.azure.datafactory.IntegrationRuntimeManagedArgs;
 * 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 exampleIntegrationRuntimeManaged = new IntegrationRuntimeManaged("exampleIntegrationRuntimeManaged", IntegrationRuntimeManagedArgs.builder()
 *             .name("example")
 *             .dataFactoryId(exampleFactory.id())
 *             .location(example.location())
 *             .nodeSize("Standard_D8_v3")
 *             .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}
 *   exampleIntegrationRuntimeManaged:
 *     type: azure:datafactory:IntegrationRuntimeManaged
 *     name: example
 *     properties:
 *       name: example
 *       dataFactoryId: ${exampleFactory.id}
 *       location: ${example.location}
 *       nodeSize: Standard_D8_v3
 * ```
 * 
 * ## Import
 * Data Factory Integration Managed Runtimes can be imported using the `resource id`, e.g.
 * ```sh
 * $ pulumi import azure:datafactory/integrationRuntimeManaged:IntegrationRuntimeManaged example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/integrationruntimes/example
 * ```
 * @property catalogInfo A `catalog_info` block as defined below.
 * @property credentialName The name of the credential to use for the Managed Integration Runtime.
 * @property customSetupScript A `custom_setup_script` block as defined below.
 * @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 edition The Managed Integration Runtime edition. Valid values are `Standard` and `Enterprise`. Defaults to `Standard`.
 * @property licenseType The type of the license that is used. Valid values are `LicenseIncluded` and `BasePrice`. Defaults to `LicenseIncluded`.
 * @property location Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
 * @property maxParallelExecutionsPerNode Defines the maximum parallel executions per node. Defaults to `1`. Max is `1`.
 * @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 nodeSize The size of the nodes on which the Managed Integration Runtime runs. Valid values are: `Standard_D2_v3`, `Standard_D4_v3`, `Standard_D8_v3`, `Standard_D16_v3`, `Standard_D32_v3`, `Standard_D64_v3`, `Standard_E2_v3`, `Standard_E4_v3`, `Standard_E8_v3`, `Standard_E16_v3`, `Standard_E32_v3`, `Standard_E64_v3`, `Standard_D1_v2`, `Standard_D2_v2`, `Standard_D3_v2`, `Standard_D4_v2`, `Standard_A4_v2` and `Standard_A8_v2`
 * @property numberOfNodes Number of nodes for the Managed Integration Runtime. Max is `10`. Defaults to `1`.
 * @property vnetIntegration A `vnet_integration` block as defined below.
 */
public data class IntegrationRuntimeManagedArgs(
    public val catalogInfo: Output? = null,
    public val credentialName: Output? = null,
    public val customSetupScript: Output? = null,
    public val dataFactoryId: Output? = null,
    public val description: Output? = null,
    public val edition: Output? = null,
    public val licenseType: Output? = null,
    public val location: Output? = null,
    public val maxParallelExecutionsPerNode: Output? = null,
    public val name: Output? = null,
    public val nodeSize: Output? = null,
    public val numberOfNodes: Output? = null,
    public val vnetIntegration: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.datafactory.IntegrationRuntimeManagedArgs =
        com.pulumi.azure.datafactory.IntegrationRuntimeManagedArgs.builder()
            .catalogInfo(catalogInfo?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .credentialName(credentialName?.applyValue({ args0 -> args0 }))
            .customSetupScript(customSetupScript?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .dataFactoryId(dataFactoryId?.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .edition(edition?.applyValue({ args0 -> args0 }))
            .licenseType(licenseType?.applyValue({ args0 -> args0 }))
            .location(location?.applyValue({ args0 -> args0 }))
            .maxParallelExecutionsPerNode(maxParallelExecutionsPerNode?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .nodeSize(nodeSize?.applyValue({ args0 -> args0 }))
            .numberOfNodes(numberOfNodes?.applyValue({ args0 -> args0 }))
            .vnetIntegration(
                vnetIntegration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [IntegrationRuntimeManagedArgs].
 */
@PulumiTagMarker
public class IntegrationRuntimeManagedArgsBuilder internal constructor() {
    private var catalogInfo: Output? = null

    private var credentialName: Output? = null

    private var customSetupScript: Output? = null

    private var dataFactoryId: Output? = null

    private var description: Output? = null

    private var edition: Output? = null

    private var licenseType: Output? = null

    private var location: Output? = null

    private var maxParallelExecutionsPerNode: Output? = null

    private var name: Output? = null

    private var nodeSize: Output? = null

    private var numberOfNodes: Output? = null

    private var vnetIntegration: Output? = null

    /**
     * @param value A `catalog_info` block as defined below.
     */
    @JvmName("gtiajaagorqdablt")
    public suspend fun catalogInfo(`value`: Output) {
        this.catalogInfo = value
    }

    /**
     * @param value The name of the credential to use for the Managed Integration Runtime.
     */
    @JvmName("mlawcoqjipqlvfng")
    public suspend fun credentialName(`value`: Output) {
        this.credentialName = value
    }

    /**
     * @param value A `custom_setup_script` block as defined below.
     */
    @JvmName("qljfpdiqevmwtosj")
    public suspend
    fun customSetupScript(`value`: Output) {
        this.customSetupScript = value
    }

    /**
     * @param value The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource.
     */
    @JvmName("dnxanjcgtqdqwqji")
    public suspend fun dataFactoryId(`value`: Output) {
        this.dataFactoryId = value
    }

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

    /**
     * @param value The Managed Integration Runtime edition. Valid values are `Standard` and `Enterprise`. Defaults to `Standard`.
     */
    @JvmName("yfdnbaonvdnurmmo")
    public suspend fun edition(`value`: Output) {
        this.edition = value
    }

    /**
     * @param value The type of the license that is used. Valid values are `LicenseIncluded` and `BasePrice`. Defaults to `LicenseIncluded`.
     */
    @JvmName("ihkdaggrjovgsdrl")
    public suspend fun licenseType(`value`: Output) {
        this.licenseType = value
    }

    /**
     * @param value Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
     */
    @JvmName("rhxvjlhbbxmaypwo")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value Defines the maximum parallel executions per node. Defaults to `1`. Max is `1`.
     */
    @JvmName("qgatwbdpymgdrsew")
    public suspend fun maxParallelExecutionsPerNode(`value`: Output) {
        this.maxParallelExecutionsPerNode = 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("pqiythdewlbwcnhf")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The size of the nodes on which the Managed Integration Runtime runs. Valid values are: `Standard_D2_v3`, `Standard_D4_v3`, `Standard_D8_v3`, `Standard_D16_v3`, `Standard_D32_v3`, `Standard_D64_v3`, `Standard_E2_v3`, `Standard_E4_v3`, `Standard_E8_v3`, `Standard_E16_v3`, `Standard_E32_v3`, `Standard_E64_v3`, `Standard_D1_v2`, `Standard_D2_v2`, `Standard_D3_v2`, `Standard_D4_v2`, `Standard_A4_v2` and `Standard_A8_v2`
     */
    @JvmName("xyhqsrseihqkelyu")
    public suspend fun nodeSize(`value`: Output) {
        this.nodeSize = value
    }

    /**
     * @param value Number of nodes for the Managed Integration Runtime. Max is `10`. Defaults to `1`.
     */
    @JvmName("yexondxfiqegduwi")
    public suspend fun numberOfNodes(`value`: Output) {
        this.numberOfNodes = value
    }

    /**
     * @param value A `vnet_integration` block as defined below.
     */
    @JvmName("gilxgkqejwpjeqxg")
    public suspend
    fun vnetIntegration(`value`: Output) {
        this.vnetIntegration = value
    }

    /**
     * @param value A `catalog_info` block as defined below.
     */
    @JvmName("wbsqlglutqlsjbno")
    public suspend fun catalogInfo(`value`: IntegrationRuntimeManagedCatalogInfoArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.catalogInfo = mapped
    }

    /**
     * @param argument A `catalog_info` block as defined below.
     */
    @JvmName("syqvtguhpkingqew")
    public suspend
    fun catalogInfo(argument: suspend IntegrationRuntimeManagedCatalogInfoArgsBuilder.() -> Unit) {
        val toBeMapped = IntegrationRuntimeManagedCatalogInfoArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.catalogInfo = mapped
    }

    /**
     * @param value The name of the credential to use for the Managed Integration Runtime.
     */
    @JvmName("ptbulhokeiexmdqk")
    public suspend fun credentialName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.credentialName = mapped
    }

    /**
     * @param value A `custom_setup_script` block as defined below.
     */
    @JvmName("ycfnctwpalfpryvd")
    public suspend fun customSetupScript(`value`: IntegrationRuntimeManagedCustomSetupScriptArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.customSetupScript = mapped
    }

    /**
     * @param argument A `custom_setup_script` block as defined below.
     */
    @JvmName("nrfnspmfwpqwphrr")
    public suspend
    fun customSetupScript(argument: suspend IntegrationRuntimeManagedCustomSetupScriptArgsBuilder.() -> Unit) {
        val toBeMapped = IntegrationRuntimeManagedCustomSetupScriptArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.customSetupScript = mapped
    }

    /**
     * @param value The Data Factory ID in which to associate the Linked Service with. Changing this forces a new resource.
     */
    @JvmName("dtafijobptumjhcu")
    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("hmxshqbluiyswqtr")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The Managed Integration Runtime edition. Valid values are `Standard` and `Enterprise`. Defaults to `Standard`.
     */
    @JvmName("hmpbjlapvdbmwadj")
    public suspend fun edition(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.edition = mapped
    }

    /**
     * @param value The type of the license that is used. Valid values are `LicenseIncluded` and `BasePrice`. Defaults to `LicenseIncluded`.
     */
    @JvmName("oauckilsqqjnpsry")
    public suspend fun licenseType(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.licenseType = mapped
    }

    /**
     * @param value Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
     */
    @JvmName("ncshxumliynwerwf")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value Defines the maximum parallel executions per node. Defaults to `1`. Max is `1`.
     */
    @JvmName("dqwyrnaqxbmxbnql")
    public suspend fun maxParallelExecutionsPerNode(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxParallelExecutionsPerNode = 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("frjtjrjkutsplofh")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The size of the nodes on which the Managed Integration Runtime runs. Valid values are: `Standard_D2_v3`, `Standard_D4_v3`, `Standard_D8_v3`, `Standard_D16_v3`, `Standard_D32_v3`, `Standard_D64_v3`, `Standard_E2_v3`, `Standard_E4_v3`, `Standard_E8_v3`, `Standard_E16_v3`, `Standard_E32_v3`, `Standard_E64_v3`, `Standard_D1_v2`, `Standard_D2_v2`, `Standard_D3_v2`, `Standard_D4_v2`, `Standard_A4_v2` and `Standard_A8_v2`
     */
    @JvmName("pjcqruhyilbdbidw")
    public suspend fun nodeSize(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.nodeSize = mapped
    }

    /**
     * @param value Number of nodes for the Managed Integration Runtime. Max is `10`. Defaults to `1`.
     */
    @JvmName("ggnclmjttsacjaqk")
    public suspend fun numberOfNodes(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.numberOfNodes = mapped
    }

    /**
     * @param value A `vnet_integration` block as defined below.
     */
    @JvmName("nxnwxvdowyilxipk")
    public suspend fun vnetIntegration(`value`: IntegrationRuntimeManagedVnetIntegrationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vnetIntegration = mapped
    }

    /**
     * @param argument A `vnet_integration` block as defined below.
     */
    @JvmName("tkqnnrgihqhevumt")
    public suspend
    fun vnetIntegration(argument: suspend IntegrationRuntimeManagedVnetIntegrationArgsBuilder.() -> Unit) {
        val toBeMapped = IntegrationRuntimeManagedVnetIntegrationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.vnetIntegration = mapped
    }

    internal fun build(): IntegrationRuntimeManagedArgs = IntegrationRuntimeManagedArgs(
        catalogInfo = catalogInfo,
        credentialName = credentialName,
        customSetupScript = customSetupScript,
        dataFactoryId = dataFactoryId,
        description = description,
        edition = edition,
        licenseType = licenseType,
        location = location,
        maxParallelExecutionsPerNode = maxParallelExecutionsPerNode,
        name = name,
        nodeSize = nodeSize,
        numberOfNodes = numberOfNodes,
        vnetIntegration = vnetIntegration,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy