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

com.pulumi.azure.datafactory.kotlin.IntegrationRuntimeSsis.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.datafactory.kotlin

import com.pulumi.azure.datafactory.kotlin.outputs.IntegrationRuntimeSsisCatalogInfo
import com.pulumi.azure.datafactory.kotlin.outputs.IntegrationRuntimeSsisCopyComputeScale
import com.pulumi.azure.datafactory.kotlin.outputs.IntegrationRuntimeSsisCustomSetupScript
import com.pulumi.azure.datafactory.kotlin.outputs.IntegrationRuntimeSsisExpressCustomSetup
import com.pulumi.azure.datafactory.kotlin.outputs.IntegrationRuntimeSsisExpressVnetIntegration
import com.pulumi.azure.datafactory.kotlin.outputs.IntegrationRuntimeSsisPackageStore
import com.pulumi.azure.datafactory.kotlin.outputs.IntegrationRuntimeSsisPipelineExternalComputeScale
import com.pulumi.azure.datafactory.kotlin.outputs.IntegrationRuntimeSsisProxy
import com.pulumi.azure.datafactory.kotlin.outputs.IntegrationRuntimeSsisVnetIntegration
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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import com.pulumi.azure.datafactory.kotlin.outputs.IntegrationRuntimeSsisCatalogInfo.Companion.toKotlin as integrationRuntimeSsisCatalogInfoToKotlin
import com.pulumi.azure.datafactory.kotlin.outputs.IntegrationRuntimeSsisCopyComputeScale.Companion.toKotlin as integrationRuntimeSsisCopyComputeScaleToKotlin
import com.pulumi.azure.datafactory.kotlin.outputs.IntegrationRuntimeSsisCustomSetupScript.Companion.toKotlin as integrationRuntimeSsisCustomSetupScriptToKotlin
import com.pulumi.azure.datafactory.kotlin.outputs.IntegrationRuntimeSsisExpressCustomSetup.Companion.toKotlin as integrationRuntimeSsisExpressCustomSetupToKotlin
import com.pulumi.azure.datafactory.kotlin.outputs.IntegrationRuntimeSsisExpressVnetIntegration.Companion.toKotlin as integrationRuntimeSsisExpressVnetIntegrationToKotlin
import com.pulumi.azure.datafactory.kotlin.outputs.IntegrationRuntimeSsisPackageStore.Companion.toKotlin as integrationRuntimeSsisPackageStoreToKotlin
import com.pulumi.azure.datafactory.kotlin.outputs.IntegrationRuntimeSsisPipelineExternalComputeScale.Companion.toKotlin as integrationRuntimeSsisPipelineExternalComputeScaleToKotlin
import com.pulumi.azure.datafactory.kotlin.outputs.IntegrationRuntimeSsisProxy.Companion.toKotlin as integrationRuntimeSsisProxyToKotlin
import com.pulumi.azure.datafactory.kotlin.outputs.IntegrationRuntimeSsisVnetIntegration.Companion.toKotlin as integrationRuntimeSsisVnetIntegrationToKotlin

/**
 * Builder for [IntegrationRuntimeSsis].
 */
@PulumiTagMarker
public class IntegrationRuntimeSsisResourceBuilder internal constructor() {
    public var name: String? = null

    public var args: IntegrationRuntimeSsisArgs = IntegrationRuntimeSsisArgs()

    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 IntegrationRuntimeSsisArgsBuilder.() -> Unit) {
        val builder = IntegrationRuntimeSsisArgsBuilder()
        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(): IntegrationRuntimeSsis {
        val builtJavaResource =
            com.pulumi.azure.datafactory.IntegrationRuntimeSsis(
                this.name,
                this.args.toJava(),
                this.opts.toJava(),
            )
        return IntegrationRuntimeSsis(builtJavaResource)
    }
}

/**
 * Manages a Data Factory Azure-SSIS 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 exampleIntegrationRuntimeSsis = new azure.datafactory.IntegrationRuntimeSsis("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_ssis = azure.datafactory.IntegrationRuntimeSsis("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 exampleIntegrationRuntimeSsis = new Azure.DataFactory.IntegrationRuntimeSsis("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.NewIntegrationRuntimeSsis(ctx, "example", &datafactory.IntegrationRuntimeSsisArgs{
 * 			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.IntegrationRuntimeSsis;
 * import com.pulumi.azure.datafactory.IntegrationRuntimeSsisArgs;
 * 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 exampleIntegrationRuntimeSsis = new IntegrationRuntimeSsis("exampleIntegrationRuntimeSsis", IntegrationRuntimeSsisArgs.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}
 *   exampleIntegrationRuntimeSsis:
 *     type: azure:datafactory:IntegrationRuntimeSsis
 *     name: example
 *     properties:
 *       name: example
 *       dataFactoryId: ${exampleFactory.id}
 *       location: ${example.location}
 *       nodeSize: Standard_D8_v3
 * ```
 * 
 * ## Import
 * Data Factory Azure-SSIS Integration Runtimes can be imported using the `resource id`, e.g.
 * ```sh
 * $ pulumi import azure:datafactory/integrationRuntimeSsis:IntegrationRuntimeSsis example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.DataFactory/factories/example/integrationruntimes/example
 * ```
 */
public class IntegrationRuntimeSsis internal constructor(
    override val javaResource: com.pulumi.azure.datafactory.IntegrationRuntimeSsis,
) : KotlinCustomResource(javaResource, IntegrationRuntimeSsisMapper) {
    /**
     * A `catalog_info` block as defined below.
     */
    public val catalogInfo: Output?
        get() = javaResource.catalogInfo().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 ->
                    integrationRuntimeSsisCatalogInfoToKotlin(args0)
                })
            }).orElse(null)
        })

    /**
     * One `copy_compute_scale` block as defined below.
     */
    public val copyComputeScale: Output?
        get() = javaResource.copyComputeScale().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 -> integrationRuntimeSsisCopyComputeScaleToKotlin(args0) })
            }).orElse(null)
        })

    /**
     * The name of a Data Factory Credential that the SSIS integration will use to access data sources. For example, `azure.datafactory.CredentialUserManagedIdentity`
     * > **NOTE** If `credential_name` is omitted, the integration runtime will use the Data Factory assigned identity.
     */
    public val credentialName: Output?
        get() = javaResource.credentialName().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    /**
     * A `custom_setup_script` block as defined below.
     */
    public val customSetupScript: Output?
        get() = javaResource.customSetupScript().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 ->
                    integrationRuntimeSsisCustomSetupScriptToKotlin(args0)
                })
            }).orElse(null)
        })

    /**
     * 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 Azure-SSIS Integration Runtime edition. Valid values are `Standard` and `Enterprise`. Defaults to `Standard`.
     */
    public val edition: Output?
        get() = javaResource.edition().applyValue({ args0 -> args0.map({ args0 -> args0 }).orElse(null) })

    /**
     * An `express_custom_setup` block as defined below.
     */
    public val expressCustomSetup: Output?
        get() = javaResource.expressCustomSetup().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 ->
                    integrationRuntimeSsisExpressCustomSetupToKotlin(args0)
                })
            }).orElse(null)
        })

    /**
     * A `express_vnet_integration` block as defined below.
     */
    public val expressVnetIntegration: Output?
        get() = javaResource.expressVnetIntegration().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 ->
                    integrationRuntimeSsisExpressVnetIntegrationToKotlin(args0)
                })
            }).orElse(null)
        })

    /**
     * The type of the license that is used. Valid values are `LicenseIncluded` and `BasePrice`. Defaults to `LicenseIncluded`.
     */
    public val licenseType: Output?
        get() = javaResource.licenseType().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    /**
     * Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
     */
    public val location: Output
        get() = javaResource.location().applyValue({ args0 -> args0 })

    /**
     * Defines the maximum parallel executions per node. Defaults to `1`. Max is `1`.
     */
    public val maxParallelExecutionsPerNode: Output?
        get() = javaResource.maxParallelExecutionsPerNode().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    /**
     * Specifies the name of the Azure-SSIS 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.
     */
    public val name: Output
        get() = javaResource.name().applyValue({ args0 -> args0 })

    /**
     * The size of the nodes on which the Azure-SSIS 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`
     */
    public val nodeSize: Output
        get() = javaResource.nodeSize().applyValue({ args0 -> args0 })

    /**
     * Number of nodes for the Azure-SSIS Integration Runtime. Max is `10`. Defaults to `1`.
     */
    public val numberOfNodes: Output?
        get() = javaResource.numberOfNodes().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    /**
     * One or more `package_store` block as defined below.
     */
    public val packageStores: Output>?
        get() = javaResource.packageStores().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.map({ args0 ->
                    args0.let({ args0 ->
                        integrationRuntimeSsisPackageStoreToKotlin(args0)
                    })
                })
            }).orElse(null)
        })

    /**
     * One `pipeline_external_compute_scale` block as defined below.
     */
    public val pipelineExternalComputeScale:
        Output?
        get() = javaResource.pipelineExternalComputeScale().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 ->
                    integrationRuntimeSsisPipelineExternalComputeScaleToKotlin(args0)
                })
            }).orElse(null)
        })

    /**
     * A `proxy` block as defined below.
     */
    public val proxy: Output?
        get() = javaResource.proxy().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 ->
                    integrationRuntimeSsisProxyToKotlin(args0)
                })
            }).orElse(null)
        })

    /**
     * A `vnet_integration` block as defined below.
     */
    public val vnetIntegration: Output?
        get() = javaResource.vnetIntegration().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 -> integrationRuntimeSsisVnetIntegrationToKotlin(args0) })
            }).orElse(null)
        })
}

public object IntegrationRuntimeSsisMapper : ResourceMapper {
    override fun supportsMappingOfType(javaResource: Resource): Boolean =
        com.pulumi.azure.datafactory.IntegrationRuntimeSsis::class == javaResource::class

    override fun map(javaResource: Resource): IntegrationRuntimeSsis =
        IntegrationRuntimeSsis(javaResource as com.pulumi.azure.datafactory.IntegrationRuntimeSsis)
}

/**
 * @see [IntegrationRuntimeSsis].
 * @param name The _unique_ name of the resulting resource.
 * @param block Builder for [IntegrationRuntimeSsis].
 */
public suspend fun integrationRuntimeSsis(
    name: String,
    block: suspend IntegrationRuntimeSsisResourceBuilder.() -> Unit,
): IntegrationRuntimeSsis {
    val builder = IntegrationRuntimeSsisResourceBuilder()
    builder.name(name)
    block(builder)
    return builder.build()
}

/**
 * @see [IntegrationRuntimeSsis].
 * @param name The _unique_ name of the resulting resource.
 */
public fun integrationRuntimeSsis(name: String): IntegrationRuntimeSsis {
    val builder = IntegrationRuntimeSsisResourceBuilder()
    builder.name(name)
    return builder.build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy