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

com.pulumi.azurenative.logic.kotlin.IntegrationServiceEnvironmentArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.logic.kotlin

import com.pulumi.azurenative.logic.IntegrationServiceEnvironmentArgs.builder
import com.pulumi.azurenative.logic.kotlin.inputs.IntegrationServiceEnvironmentPropertiesArgs
import com.pulumi.azurenative.logic.kotlin.inputs.IntegrationServiceEnvironmentPropertiesArgsBuilder
import com.pulumi.azurenative.logic.kotlin.inputs.IntegrationServiceEnvironmentSkuArgs
import com.pulumi.azurenative.logic.kotlin.inputs.IntegrationServiceEnvironmentSkuArgsBuilder
import com.pulumi.azurenative.logic.kotlin.inputs.ManagedServiceIdentityArgs
import com.pulumi.azurenative.logic.kotlin.inputs.ManagedServiceIdentityArgsBuilder
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.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * The integration service environment.
 * Azure REST API version: 2019-05-01. Prior API version in Azure Native 1.x: 2019-05-01.
 * ## Example Usage
 * ### Create or update an integration service environment
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using AzureNative = Pulumi.AzureNative;
 * return await Deployment.RunAsync(() =>
 * {
 *     var integrationServiceEnvironment = new AzureNative.Logic.IntegrationServiceEnvironment("integrationServiceEnvironment", new()
 *     {
 *         IntegrationServiceEnvironmentName = "testIntegrationServiceEnvironment",
 *         Location = "brazilsouth",
 *         Properties = new AzureNative.Logic.Inputs.IntegrationServiceEnvironmentPropertiesArgs
 *         {
 *             EncryptionConfiguration = new AzureNative.Logic.Inputs.IntegrationServiceEnvironmenEncryptionConfigurationArgs
 *             {
 *                 EncryptionKeyReference = new AzureNative.Logic.Inputs.IntegrationServiceEnvironmenEncryptionKeyReferenceArgs
 *                 {
 *                     KeyName = "testKeyName",
 *                     KeyVault = new AzureNative.Logic.Inputs.ResourceReferenceArgs
 *                     {
 *                         Id = "/subscriptions/f34b22a3-2202-4fb1-b040-1332bd928c84/resourceGroups/testResourceGroup/providers/Microsoft.KeyVault/vaults/testKeyVault",
 *                     },
 *                     KeyVersion = "13b261d30b984753869902d7f47f4d55",
 *                 },
 *             },
 *             NetworkConfiguration = new AzureNative.Logic.Inputs.NetworkConfigurationArgs
 *             {
 *                 AccessEndpoint = new AzureNative.Logic.Inputs.IntegrationServiceEnvironmentAccessEndpointArgs
 *                 {
 *                     Type = AzureNative.Logic.IntegrationServiceEnvironmentAccessEndpointType.Internal,
 *                 },
 *                 Subnets = new[]
 *                 {
 *                     new AzureNative.Logic.Inputs.ResourceReferenceArgs
 *                     {
 *                         Id = "/subscriptions/f34b22a3-2202-4fb1-b040-1332bd928c84/resourceGroups/testResourceGroup/providers/Microsoft.Network/virtualNetworks/testVNET/subnets/s1",
 *                     },
 *                     new AzureNative.Logic.Inputs.ResourceReferenceArgs
 *                     {
 *                         Id = "/subscriptions/f34b22a3-2202-4fb1-b040-1332bd928c84/resourceGroups/testResourceGroup/providers/Microsoft.Network/virtualNetworks/testVNET/subnets/s2",
 *                     },
 *                     new AzureNative.Logic.Inputs.ResourceReferenceArgs
 *                     {
 *                         Id = "/subscriptions/f34b22a3-2202-4fb1-b040-1332bd928c84/resourceGroups/testResourceGroup/providers/Microsoft.Network/virtualNetworks/testVNET/subnets/s3",
 *                     },
 *                     new AzureNative.Logic.Inputs.ResourceReferenceArgs
 *                     {
 *                         Id = "/subscriptions/f34b22a3-2202-4fb1-b040-1332bd928c84/resourceGroups/testResourceGroup/providers/Microsoft.Network/virtualNetworks/testVNET/subnets/s4",
 *                     },
 *                 },
 *             },
 *         },
 *         ResourceGroup = "testResourceGroup",
 *         Sku = new AzureNative.Logic.Inputs.IntegrationServiceEnvironmentSkuArgs
 *         {
 *             Capacity = 2,
 *             Name = AzureNative.Logic.IntegrationServiceEnvironmentSkuName.Premium,
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	logic "github.com/pulumi/pulumi-azure-native-sdk/logic/v2"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := logic.NewIntegrationServiceEnvironment(ctx, "integrationServiceEnvironment", &logic.IntegrationServiceEnvironmentArgs{
 * 			IntegrationServiceEnvironmentName: pulumi.String("testIntegrationServiceEnvironment"),
 * 			Location:                          pulumi.String("brazilsouth"),
 * 			Properties: &logic.IntegrationServiceEnvironmentPropertiesArgs{
 * 				EncryptionConfiguration: &logic.IntegrationServiceEnvironmenEncryptionConfigurationArgs{
 * 					EncryptionKeyReference: &logic.IntegrationServiceEnvironmenEncryptionKeyReferenceArgs{
 * 						KeyName: pulumi.String("testKeyName"),
 * 						KeyVault: &logic.ResourceReferenceArgs{
 * 							Id: pulumi.String("/subscriptions/f34b22a3-2202-4fb1-b040-1332bd928c84/resourceGroups/testResourceGroup/providers/Microsoft.KeyVault/vaults/testKeyVault"),
 * 						},
 * 						KeyVersion: pulumi.String("13b261d30b984753869902d7f47f4d55"),
 * 					},
 * 				},
 * 				NetworkConfiguration: &logic.NetworkConfigurationArgs{
 * 					AccessEndpoint: &logic.IntegrationServiceEnvironmentAccessEndpointArgs{
 * 						Type: pulumi.String(logic.IntegrationServiceEnvironmentAccessEndpointTypeInternal),
 * 					},
 * 					Subnets: logic.ResourceReferenceArray{
 * 						&logic.ResourceReferenceArgs{
 * 							Id: pulumi.String("/subscriptions/f34b22a3-2202-4fb1-b040-1332bd928c84/resourceGroups/testResourceGroup/providers/Microsoft.Network/virtualNetworks/testVNET/subnets/s1"),
 * 						},
 * 						&logic.ResourceReferenceArgs{
 * 							Id: pulumi.String("/subscriptions/f34b22a3-2202-4fb1-b040-1332bd928c84/resourceGroups/testResourceGroup/providers/Microsoft.Network/virtualNetworks/testVNET/subnets/s2"),
 * 						},
 * 						&logic.ResourceReferenceArgs{
 * 							Id: pulumi.String("/subscriptions/f34b22a3-2202-4fb1-b040-1332bd928c84/resourceGroups/testResourceGroup/providers/Microsoft.Network/virtualNetworks/testVNET/subnets/s3"),
 * 						},
 * 						&logic.ResourceReferenceArgs{
 * 							Id: pulumi.String("/subscriptions/f34b22a3-2202-4fb1-b040-1332bd928c84/resourceGroups/testResourceGroup/providers/Microsoft.Network/virtualNetworks/testVNET/subnets/s4"),
 * 						},
 * 					},
 * 				},
 * 			},
 * 			ResourceGroup: pulumi.String("testResourceGroup"),
 * 			Sku: &logic.IntegrationServiceEnvironmentSkuArgs{
 * 				Capacity: pulumi.Int(2),
 * 				Name:     pulumi.String(logic.IntegrationServiceEnvironmentSkuNamePremium),
 * 			},
 * 		})
 * 		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.logic.IntegrationServiceEnvironment;
 * import com.pulumi.azurenative.logic.IntegrationServiceEnvironmentArgs;
 * import com.pulumi.azurenative.logic.inputs.IntegrationServiceEnvironmentPropertiesArgs;
 * import com.pulumi.azurenative.logic.inputs.IntegrationServiceEnvironmenEncryptionConfigurationArgs;
 * import com.pulumi.azurenative.logic.inputs.IntegrationServiceEnvironmenEncryptionKeyReferenceArgs;
 * import com.pulumi.azurenative.logic.inputs.ResourceReferenceArgs;
 * import com.pulumi.azurenative.logic.inputs.NetworkConfigurationArgs;
 * import com.pulumi.azurenative.logic.inputs.IntegrationServiceEnvironmentAccessEndpointArgs;
 * import com.pulumi.azurenative.logic.inputs.IntegrationServiceEnvironmentSkuArgs;
 * 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 integrationServiceEnvironment = new IntegrationServiceEnvironment("integrationServiceEnvironment", IntegrationServiceEnvironmentArgs.builder()
 *             .integrationServiceEnvironmentName("testIntegrationServiceEnvironment")
 *             .location("brazilsouth")
 *             .properties(IntegrationServiceEnvironmentPropertiesArgs.builder()
 *                 .encryptionConfiguration(IntegrationServiceEnvironmenEncryptionConfigurationArgs.builder()
 *                     .encryptionKeyReference(IntegrationServiceEnvironmenEncryptionKeyReferenceArgs.builder()
 *                         .keyName("testKeyName")
 *                         .keyVault(ResourceReferenceArgs.builder()
 *                             .id("/subscriptions/f34b22a3-2202-4fb1-b040-1332bd928c84/resourceGroups/testResourceGroup/providers/Microsoft.KeyVault/vaults/testKeyVault")
 *                             .build())
 *                         .keyVersion("13b261d30b984753869902d7f47f4d55")
 *                         .build())
 *                     .build())
 *                 .networkConfiguration(NetworkConfigurationArgs.builder()
 *                     .accessEndpoint(IntegrationServiceEnvironmentAccessEndpointArgs.builder()
 *                         .type("Internal")
 *                         .build())
 *                     .subnets(
 *                         ResourceReferenceArgs.builder()
 *                             .id("/subscriptions/f34b22a3-2202-4fb1-b040-1332bd928c84/resourceGroups/testResourceGroup/providers/Microsoft.Network/virtualNetworks/testVNET/subnets/s1")
 *                             .build(),
 *                         ResourceReferenceArgs.builder()
 *                             .id("/subscriptions/f34b22a3-2202-4fb1-b040-1332bd928c84/resourceGroups/testResourceGroup/providers/Microsoft.Network/virtualNetworks/testVNET/subnets/s2")
 *                             .build(),
 *                         ResourceReferenceArgs.builder()
 *                             .id("/subscriptions/f34b22a3-2202-4fb1-b040-1332bd928c84/resourceGroups/testResourceGroup/providers/Microsoft.Network/virtualNetworks/testVNET/subnets/s3")
 *                             .build(),
 *                         ResourceReferenceArgs.builder()
 *                             .id("/subscriptions/f34b22a3-2202-4fb1-b040-1332bd928c84/resourceGroups/testResourceGroup/providers/Microsoft.Network/virtualNetworks/testVNET/subnets/s4")
 *                             .build())
 *                     .build())
 *                 .build())
 *             .resourceGroup("testResourceGroup")
 *             .sku(IntegrationServiceEnvironmentSkuArgs.builder()
 *                 .capacity(2)
 *                 .name("Premium")
 *                 .build())
 *             .build());
 *     }
 * }
 * ```
 * ## Import
 * An existing resource can be imported using its type token, name, and identifier, e.g.
 * ```sh
 * $ pulumi import azure-native:logic:IntegrationServiceEnvironment testIntegrationServiceEnvironment /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Logic/integrationServiceEnvironments/{integrationServiceEnvironmentName}
 * ```
 * @property identity Managed service identity properties.
 * @property integrationServiceEnvironmentName The integration service environment name.
 * @property location The resource location.
 * @property properties The integration service environment properties.
 * @property resourceGroup The resource group.
 * @property sku The sku.
 * @property tags The resource tags.
 */
public data class IntegrationServiceEnvironmentArgs(
    public val identity: Output? = null,
    public val integrationServiceEnvironmentName: Output? = null,
    public val location: Output? = null,
    public val properties: Output? = null,
    public val resourceGroup: Output? = null,
    public val sku: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.logic.IntegrationServiceEnvironmentArgs =
        com.pulumi.azurenative.logic.IntegrationServiceEnvironmentArgs.builder()
            .identity(identity?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .integrationServiceEnvironmentName(
                integrationServiceEnvironmentName?.applyValue({ args0 ->
                    args0
                }),
            )
            .location(location?.applyValue({ args0 -> args0 }))
            .properties(properties?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .resourceGroup(resourceGroup?.applyValue({ args0 -> args0 }))
            .sku(sku?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [IntegrationServiceEnvironmentArgs].
 */
@PulumiTagMarker
public class IntegrationServiceEnvironmentArgsBuilder internal constructor() {
    private var identity: Output? = null

    private var integrationServiceEnvironmentName: Output? = null

    private var location: Output? = null

    private var properties: Output? = null

    private var resourceGroup: Output? = null

    private var sku: Output? = null

    private var tags: Output>? = null

    /**
     * @param value Managed service identity properties.
     */
    @JvmName("jqiudungvgsypydx")
    public suspend fun identity(`value`: Output) {
        this.identity = value
    }

    /**
     * @param value The integration service environment name.
     */
    @JvmName("ipsjxbhuuhaysjrf")
    public suspend fun integrationServiceEnvironmentName(`value`: Output) {
        this.integrationServiceEnvironmentName = value
    }

    /**
     * @param value The resource location.
     */
    @JvmName("jgvaucneuwydtaqy")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value The integration service environment properties.
     */
    @JvmName("hwqsscpteodnfvkj")
    public suspend fun properties(`value`: Output) {
        this.properties = value
    }

    /**
     * @param value The resource group.
     */
    @JvmName("snbheanwhbqldxjl")
    public suspend fun resourceGroup(`value`: Output) {
        this.resourceGroup = value
    }

    /**
     * @param value The sku.
     */
    @JvmName("mcjpbaffvevfiavv")
    public suspend fun sku(`value`: Output) {
        this.sku = value
    }

    /**
     * @param value The resource tags.
     */
    @JvmName("ksvotupmcckshshl")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value Managed service identity properties.
     */
    @JvmName("neygmrsfmithdpld")
    public suspend fun identity(`value`: ManagedServiceIdentityArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.identity = mapped
    }

    /**
     * @param argument Managed service identity properties.
     */
    @JvmName("jbssfnpqeijebrpx")
    public suspend fun identity(argument: suspend ManagedServiceIdentityArgsBuilder.() -> Unit) {
        val toBeMapped = ManagedServiceIdentityArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.identity = mapped
    }

    /**
     * @param value The integration service environment name.
     */
    @JvmName("fiqkfnuxmhwsgycf")
    public suspend fun integrationServiceEnvironmentName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.integrationServiceEnvironmentName = mapped
    }

    /**
     * @param value The resource location.
     */
    @JvmName("hhqivwrtajtlkeio")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value The integration service environment properties.
     */
    @JvmName("fypcqyttdpnmyfwa")
    public suspend fun properties(`value`: IntegrationServiceEnvironmentPropertiesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.properties = mapped
    }

    /**
     * @param argument The integration service environment properties.
     */
    @JvmName("ooqbfteruiiuyjjj")
    public suspend fun properties(argument: suspend IntegrationServiceEnvironmentPropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = IntegrationServiceEnvironmentPropertiesArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.properties = mapped
    }

    /**
     * @param value The resource group.
     */
    @JvmName("lwcdpuyhdplcddiy")
    public suspend fun resourceGroup(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroup = mapped
    }

    /**
     * @param value The sku.
     */
    @JvmName("tkcikbhmlahwwuye")
    public suspend fun sku(`value`: IntegrationServiceEnvironmentSkuArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sku = mapped
    }

    /**
     * @param argument The sku.
     */
    @JvmName("pofgbhlcvorwqohp")
    public suspend fun sku(argument: suspend IntegrationServiceEnvironmentSkuArgsBuilder.() -> Unit) {
        val toBeMapped = IntegrationServiceEnvironmentSkuArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.sku = mapped
    }

    /**
     * @param value The resource tags.
     */
    @JvmName("perungpptykooogb")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values The resource tags.
     */
    @JvmName("rwktmxwjjmqesfef")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): IntegrationServiceEnvironmentArgs = IntegrationServiceEnvironmentArgs(
        identity = identity,
        integrationServiceEnvironmentName = integrationServiceEnvironmentName,
        location = location,
        properties = properties,
        resourceGroup = resourceGroup,
        sku = sku,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy