Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.azure.logicapps.kotlin.IntegrationAccountMapArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.logicapps.kotlin
import com.pulumi.azure.logicapps.IntegrationAccountMapArgs.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 Map.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
* import * as std from "@pulumi/std";
* const example = new azure.core.ResourceGroup("example", {
* name: "example-resources",
* location: "West Europe",
* });
* const exampleIntegrationAccount = new azure.logicapps.IntegrationAccount("example", {
* name: "example-ia",
* location: example.location,
* resourceGroupName: example.name,
* skuName: "Standard",
* });
* const exampleIntegrationAccountMap = new azure.logicapps.IntegrationAccountMap("example", {
* name: "example-iamap",
* resourceGroupName: example.name,
* integrationAccountName: exampleIntegrationAccount.name,
* mapType: "Xslt",
* content: std.file({
* input: "testdata/integration_account_map_content.xsd",
* }).then(invoke => invoke.result),
* });
* ```
* ```python
* import pulumi
* import pulumi_azure as azure
* import pulumi_std as std
* example = azure.core.ResourceGroup("example",
* name="example-resources",
* location="West Europe")
* example_integration_account = azure.logicapps.IntegrationAccount("example",
* name="example-ia",
* location=example.location,
* resource_group_name=example.name,
* sku_name="Standard")
* example_integration_account_map = azure.logicapps.IntegrationAccountMap("example",
* name="example-iamap",
* resource_group_name=example.name,
* integration_account_name=example_integration_account.name,
* map_type="Xslt",
* content=std.file(input="testdata/integration_account_map_content.xsd").result)
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Azure = Pulumi.Azure;
* using Std = Pulumi.Std;
* 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",
* Location = example.Location,
* ResourceGroupName = example.Name,
* SkuName = "Standard",
* });
* var exampleIntegrationAccountMap = new Azure.LogicApps.IntegrationAccountMap("example", new()
* {
* Name = "example-iamap",
* ResourceGroupName = example.Name,
* IntegrationAccountName = exampleIntegrationAccount.Name,
* MapType = "Xslt",
* Content = Std.File.Invoke(new()
* {
* Input = "testdata/integration_account_map_content.xsd",
* }).Apply(invoke => invoke.Result),
* });
* });
* ```
* ```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-std/sdk/go/std"
* "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
* }
* exampleIntegrationAccount, err := logicapps.NewIntegrationAccount(ctx, "example", &logicapps.IntegrationAccountArgs{
* Name: pulumi.String("example-ia"),
* Location: example.Location,
* ResourceGroupName: example.Name,
* SkuName: pulumi.String("Standard"),
* })
* if err != nil {
* return err
* }
* invokeFile, err := std.File(ctx, &std.FileArgs{
* Input: "testdata/integration_account_map_content.xsd",
* }, nil)
* if err != nil {
* return err
* }
* _, err = logicapps.NewIntegrationAccountMap(ctx, "example", &logicapps.IntegrationAccountMapArgs{
* Name: pulumi.String("example-iamap"),
* ResourceGroupName: example.Name,
* IntegrationAccountName: exampleIntegrationAccount.Name,
* MapType: pulumi.String("Xslt"),
* Content: pulumi.String(invokeFile.Result),
* })
* 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 com.pulumi.azure.logicapps.IntegrationAccountMap;
* import com.pulumi.azure.logicapps.IntegrationAccountMapArgs;
* 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")
* .location(example.location())
* .resourceGroupName(example.name())
* .skuName("Standard")
* .build());
* var exampleIntegrationAccountMap = new IntegrationAccountMap("exampleIntegrationAccountMap", IntegrationAccountMapArgs.builder()
* .name("example-iamap")
* .resourceGroupName(example.name())
* .integrationAccountName(exampleIntegrationAccount.name())
* .mapType("Xslt")
* .content(StdFunctions.file(FileArgs.builder()
* .input("testdata/integration_account_map_content.xsd")
* .build()).result())
* .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
* location: ${example.location}
* resourceGroupName: ${example.name}
* skuName: Standard
* exampleIntegrationAccountMap:
* type: azure:logicapps:IntegrationAccountMap
* name: example
* properties:
* name: example-iamap
* resourceGroupName: ${example.name}
* integrationAccountName: ${exampleIntegrationAccount.name}
* mapType: Xslt
* content:
* fn::invoke:
* Function: std:file
* Arguments:
* input: testdata/integration_account_map_content.xsd
* Return: result
* ```
*
* ## Import
* Logic App Integration Account Maps can be imported using the `resource id`, e.g.
* ```sh
* $ pulumi import azure:logicapps/integrationAccountMap:IntegrationAccountMap example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Logic/integrationAccounts/account1/maps/map1
* ```
* @property content The content of the Logic App Integration Account Map.
* @property integrationAccountName The name of the Logic App Integration Account. Changing this forces a new Logic App Integration Account Map to be created.
* @property mapType The type of the Logic App Integration Account Map. Possible values are `Liquid`, `NotSpecified`, `Xslt`, `Xslt30` and `Xslt20`.
* @property metadata The metadata of the Logic App Integration Account Map.
* @property name The name which should be used for this Logic App Integration Account Map. Changing this forces a new Logic App Integration Account Map to be created.
* @property resourceGroupName The name of the Resource Group where the Logic App Integration Account Map should exist. Changing this forces a new Logic App Integration Account Map to be created.
*/
public data class IntegrationAccountMapArgs(
public val content: Output? = null,
public val integrationAccountName: Output? = null,
public val mapType: Output? = null,
public val metadata: Output>? = null,
public val name: Output? = null,
public val resourceGroupName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.logicapps.IntegrationAccountMapArgs =
com.pulumi.azure.logicapps.IntegrationAccountMapArgs.builder()
.content(content?.applyValue({ args0 -> args0 }))
.integrationAccountName(integrationAccountName?.applyValue({ args0 -> args0 }))
.mapType(mapType?.applyValue({ args0 -> args0 }))
.metadata(
metadata?.applyValue({ args0 ->
args0.map({ args0 ->
args0.key.to(args0.value)
}).toMap()
}),
)
.name(name?.applyValue({ args0 -> args0 }))
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [IntegrationAccountMapArgs].
*/
@PulumiTagMarker
public class IntegrationAccountMapArgsBuilder internal constructor() {
private var content: Output? = null
private var integrationAccountName: Output? = null
private var mapType: Output? = null
private var metadata: Output>? = null
private var name: Output? = null
private var resourceGroupName: Output? = null
/**
* @param value The content of the Logic App Integration Account Map.
*/
@JvmName("ununitnhbsrmknms")
public suspend fun content(`value`: Output) {
this.content = value
}
/**
* @param value The name of the Logic App Integration Account. Changing this forces a new Logic App Integration Account Map to be created.
*/
@JvmName("ebcsojmokyscyolo")
public suspend fun integrationAccountName(`value`: Output) {
this.integrationAccountName = value
}
/**
* @param value The type of the Logic App Integration Account Map. Possible values are `Liquid`, `NotSpecified`, `Xslt`, `Xslt30` and `Xslt20`.
*/
@JvmName("mutndokkffewvfyk")
public suspend fun mapType(`value`: Output) {
this.mapType = value
}
/**
* @param value The metadata of the Logic App Integration Account Map.
*/
@JvmName("aueohmusjnrbqvgk")
public suspend fun metadata(`value`: Output>) {
this.metadata = value
}
/**
* @param value The name which should be used for this Logic App Integration Account Map. Changing this forces a new Logic App Integration Account Map to be created.
*/
@JvmName("wrlrfmpuelphqxlx")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The name of the Resource Group where the Logic App Integration Account Map should exist. Changing this forces a new Logic App Integration Account Map to be created.
*/
@JvmName("dxfodnvbirwafrau")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value The content of the Logic App Integration Account Map.
*/
@JvmName("isrbypvydxbstfro")
public suspend fun content(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.content = mapped
}
/**
* @param value The name of the Logic App Integration Account. Changing this forces a new Logic App Integration Account Map to be created.
*/
@JvmName("nufxhcnsrjffyrps")
public suspend fun integrationAccountName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.integrationAccountName = mapped
}
/**
* @param value The type of the Logic App Integration Account Map. Possible values are `Liquid`, `NotSpecified`, `Xslt`, `Xslt30` and `Xslt20`.
*/
@JvmName("hnmklxfqddnucpgt")
public suspend fun mapType(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.mapType = mapped
}
/**
* @param value The metadata of the Logic App Integration Account Map.
*/
@JvmName("feonjdubvmxoqnys")
public suspend fun metadata(`value`: Map?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.metadata = mapped
}
/**
* @param values The metadata of the Logic App Integration Account Map.
*/
@JvmName("cmmywbuvvdrjggmo")
public fun metadata(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.metadata = mapped
}
/**
* @param value The name which should be used for this Logic App Integration Account Map. Changing this forces a new Logic App Integration Account Map to be created.
*/
@JvmName("tdmbonqabagvwixe")
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 Map should exist. Changing this forces a new Logic App Integration Account Map to be created.
*/
@JvmName("tphojcpjgjbcduat")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
internal fun build(): IntegrationAccountMapArgs = IntegrationAccountMapArgs(
content = content,
integrationAccountName = integrationAccountName,
mapType = mapType,
metadata = metadata,
name = name,
resourceGroupName = resourceGroupName,
)
}