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

com.pulumi.azure.logicapps.kotlin.IntegrationAccountArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.logicapps.kotlin

import com.pulumi.azure.logicapps.IntegrationAccountArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Manages a Logic App Integration Account.
 * ## 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 exampleIntegrationAccount = new azure.logicapps.IntegrationAccount("example", {
 *     name: "example-ia",
 *     resourceGroupName: example.name,
 *     location: example.location,
 *     skuName: "Standard",
 *     tags: {
 *         foo: "bar",
 *     },
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_azure as azure
 * example = azure.core.ResourceGroup("example",
 *     name="example-resources",
 *     location="West Europe")
 * example_integration_account = azure.logicapps.IntegrationAccount("example",
 *     name="example-ia",
 *     resource_group_name=example.name,
 *     location=example.location,
 *     sku_name="Standard",
 *     tags={
 *         "foo": "bar",
 *     })
 * ```
 * ```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 exampleIntegrationAccount = new Azure.LogicApps.IntegrationAccount("example", new()
 *     {
 *         Name = "example-ia",
 *         ResourceGroupName = example.Name,
 *         Location = example.Location,
 *         SkuName = "Standard",
 *         Tags =
 *         {
 *             { "foo", "bar" },
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/logicapps"
 * 	"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
 * 		}
 * 		_, err = logicapps.NewIntegrationAccount(ctx, "example", &logicapps.IntegrationAccountArgs{
 * 			Name:              pulumi.String("example-ia"),
 * 			ResourceGroupName: example.Name,
 * 			Location:          example.Location,
 * 			SkuName:           pulumi.String("Standard"),
 * 			Tags: pulumi.StringMap{
 * 				"foo": pulumi.String("bar"),
 * 			},
 * 		})
 * 		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.logicapps.IntegrationAccount;
 * import com.pulumi.azure.logicapps.IntegrationAccountArgs;
 * 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 exampleIntegrationAccount = new IntegrationAccount("exampleIntegrationAccount", IntegrationAccountArgs.builder()
 *             .name("example-ia")
 *             .resourceGroupName(example.name())
 *             .location(example.location())
 *             .skuName("Standard")
 *             .tags(Map.of("foo", "bar"))
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: azure:core:ResourceGroup
 *     properties:
 *       name: example-resources
 *       location: West Europe
 *   exampleIntegrationAccount:
 *     type: azure:logicapps:IntegrationAccount
 *     name: example
 *     properties:
 *       name: example-ia
 *       resourceGroupName: ${example.name}
 *       location: ${example.location}
 *       skuName: Standard
 *       tags:
 *         foo: bar
 * ```
 * 
 * ## Import
 * Logic App Integration Accounts can be imported using the `resource id`, e.g.
 * ```sh
 * $ pulumi import azure:logicapps/integrationAccount:IntegrationAccount example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Logic/integrationAccounts/account1
 * ```
 * @property integrationServiceEnvironmentId The resource ID of the Integration Service Environment. Changing this forces a new Logic App Integration Account to be created.
 * @property location The Azure Region where the Logic App Integration Account should exist. Changing this forces a new Logic App Integration Account to be created.
 * @property name The name which should be used for this Logic App Integration Account. Changing this forces a new Logic App Integration Account to be created.
 * @property resourceGroupName The name of the Resource Group where the Logic App Integration Account should exist. Changing this forces a new Logic App Integration Account to be created.
 * @property skuName The SKU name of the Logic App Integration Account. Possible Values are `Basic`, `Free` and `Standard`.
 * @property tags A mapping of tags which should be assigned to the Logic App Integration Account.
 */
public data class IntegrationAccountArgs(
    public val integrationServiceEnvironmentId: Output? = null,
    public val location: Output? = null,
    public val name: Output? = null,
    public val resourceGroupName: Output? = null,
    public val skuName: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.logicapps.IntegrationAccountArgs =
        com.pulumi.azure.logicapps.IntegrationAccountArgs.builder()
            .integrationServiceEnvironmentId(integrationServiceEnvironmentId?.applyValue({ args0 -> args0 }))
            .location(location?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .skuName(skuName?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [IntegrationAccountArgs].
 */
@PulumiTagMarker
public class IntegrationAccountArgsBuilder internal constructor() {
    private var integrationServiceEnvironmentId: Output? = null

    private var location: Output? = null

    private var name: Output? = null

    private var resourceGroupName: Output? = null

    private var skuName: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The resource ID of the Integration Service Environment. Changing this forces a new Logic App Integration Account to be created.
     */
    @JvmName("qceiduxcusetcnme")
    public suspend fun integrationServiceEnvironmentId(`value`: Output) {
        this.integrationServiceEnvironmentId = value
    }

    /**
     * @param value The Azure Region where the Logic App Integration Account should exist. Changing this forces a new Logic App Integration Account to be created.
     */
    @JvmName("pethngscggvsmlgw")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value The name which should be used for this Logic App Integration Account. Changing this forces a new Logic App Integration Account to be created.
     */
    @JvmName("oacborwvsapqfman")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The name of the Resource Group where the Logic App Integration Account should exist. Changing this forces a new Logic App Integration Account to be created.
     */
    @JvmName("clooiboerkstfhbs")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value The SKU name of the Logic App Integration Account. Possible Values are `Basic`, `Free` and `Standard`.
     */
    @JvmName("ycgbruljoxvolrps")
    public suspend fun skuName(`value`: Output) {
        this.skuName = value
    }

    /**
     * @param value A mapping of tags which should be assigned to the Logic App Integration Account.
     */
    @JvmName("hinmsfxbrlceafys")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value The resource ID of the Integration Service Environment. Changing this forces a new Logic App Integration Account to be created.
     */
    @JvmName("hfyxkohgqpaylkde")
    public suspend fun integrationServiceEnvironmentId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.integrationServiceEnvironmentId = mapped
    }

    /**
     * @param value The Azure Region where the Logic App Integration Account should exist. Changing this forces a new Logic App Integration Account to be created.
     */
    @JvmName("mwkfuovaguareobd")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value The name which should be used for this Logic App Integration Account. Changing this forces a new Logic App Integration Account to be created.
     */
    @JvmName("oolkhvlvtgbktxyf")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The name of the Resource Group where the Logic App Integration Account should exist. Changing this forces a new Logic App Integration Account to be created.
     */
    @JvmName("odnskmcahbkuurnc")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    /**
     * @param value The SKU name of the Logic App Integration Account. Possible Values are `Basic`, `Free` and `Standard`.
     */
    @JvmName("tsilhgaticuuhamr")
    public suspend fun skuName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.skuName = mapped
    }

    /**
     * @param value A mapping of tags which should be assigned to the Logic App Integration Account.
     */
    @JvmName("rxayikfokpdqamta")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values A mapping of tags which should be assigned to the Logic App Integration Account.
     */
    @JvmName("xngpdriodjwobplv")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): IntegrationAccountArgs = IntegrationAccountArgs(
        integrationServiceEnvironmentId = integrationServiceEnvironmentId,
        location = location,
        name = name,
        resourceGroupName = resourceGroupName,
        skuName = skuName,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy