
com.pulumi.azure.logicapps.kotlin.IntegrationAccountSchemaArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.logicapps.kotlin
import com.pulumi.azure.logicapps.IntegrationAccountSchemaArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Manages a Logic App Integration Account Schema.
* ## 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: "Basic",
* });
* const exampleIntegrationAccountSchema = new azure.logicapps.IntegrationAccountSchema("example", {
* name: "example-ias",
* resourceGroupName: example.name,
* integrationAccountName: exampleIntegrationAccount.name,
* content: std.file({
* input: "testdata/integration_account_schema_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="Basic")
* example_integration_account_schema = azure.logicapps.IntegrationAccountSchema("example",
* name="example-ias",
* resource_group_name=example.name,
* integration_account_name=example_integration_account.name,
* content=std.file(input="testdata/integration_account_schema_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 = "Basic",
* });
* var exampleIntegrationAccountSchema = new Azure.LogicApps.IntegrationAccountSchema("example", new()
* {
* Name = "example-ias",
* ResourceGroupName = example.Name,
* IntegrationAccountName = exampleIntegrationAccount.Name,
* Content = Std.File.Invoke(new()
* {
* Input = "testdata/integration_account_schema_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("Basic"),
* })
* if err != nil {
* return err
* }
* invokeFile, err := std.File(ctx, &std.FileArgs{
* Input: "testdata/integration_account_schema_content.xsd",
* }, nil)
* if err != nil {
* return err
* }
* _, err = logicapps.NewIntegrationAccountSchema(ctx, "example", &logicapps.IntegrationAccountSchemaArgs{
* Name: pulumi.String("example-ias"),
* ResourceGroupName: example.Name,
* IntegrationAccountName: exampleIntegrationAccount.Name,
* Content: 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.IntegrationAccountSchema;
* import com.pulumi.azure.logicapps.IntegrationAccountSchemaArgs;
* 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("Basic")
* .build());
* var exampleIntegrationAccountSchema = new IntegrationAccountSchema("exampleIntegrationAccountSchema", IntegrationAccountSchemaArgs.builder()
* .name("example-ias")
* .resourceGroupName(example.name())
* .integrationAccountName(exampleIntegrationAccount.name())
* .content(StdFunctions.file(FileArgs.builder()
* .input("testdata/integration_account_schema_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: Basic
* exampleIntegrationAccountSchema:
* type: azure:logicapps:IntegrationAccountSchema
* name: example
* properties:
* name: example-ias
* resourceGroupName: ${example.name}
* integrationAccountName: ${exampleIntegrationAccount.name}
* content:
* fn::invoke:
* Function: std:file
* Arguments:
* input: testdata/integration_account_schema_content.xsd
* Return: result
* ```
*
* ## Import
* Logic App Integration Account Schemas can be imported using the `resource id`, e.g.
* ```sh
* $ pulumi import azure:logicapps/integrationAccountSchema:IntegrationAccountSchema example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Logic/integrationAccounts/account1/schemas/schema1
* ```
* @property content The content of the Logic App Integration Account Schema.
* @property fileName The file name of the Logic App Integration Account Schema.
* @property integrationAccountName The name of the Logic App Integration Account. Changing this forces a new Logic App Integration Account Schema to be created.
* @property metadata The metadata of the Logic App Integration Account Schema.
* @property name The name which should be used for this Logic App Integration Account Schema. Changing this forces a new Logic App Integration Account Schema to be created.
* @property resourceGroupName The name of the Resource Group where the Logic App Integration Account Schema should exist. Changing this forces a new Logic App Integration Account Schema to be created.
*/
public data class IntegrationAccountSchemaArgs(
public val content: Output? = null,
public val fileName: Output? = null,
public val integrationAccountName: 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.IntegrationAccountSchemaArgs =
com.pulumi.azure.logicapps.IntegrationAccountSchemaArgs.builder()
.content(content?.applyValue({ args0 -> args0 }))
.fileName(fileName?.applyValue({ args0 -> args0 }))
.integrationAccountName(integrationAccountName?.applyValue({ args0 -> args0 }))
.metadata(metadata?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [IntegrationAccountSchemaArgs].
*/
@PulumiTagMarker
public class IntegrationAccountSchemaArgsBuilder internal constructor() {
private var content: Output? = null
private var fileName: Output? = null
private var integrationAccountName: 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 Schema.
*/
@JvmName("hajapsrkfttmpodd")
public suspend fun content(`value`: Output) {
this.content = value
}
/**
* @param value The file name of the Logic App Integration Account Schema.
*/
@JvmName("teolyhlxkpflqwqc")
public suspend fun fileName(`value`: Output) {
this.fileName = value
}
/**
* @param value The name of the Logic App Integration Account. Changing this forces a new Logic App Integration Account Schema to be created.
*/
@JvmName("flpwucefknqxqggg")
public suspend fun integrationAccountName(`value`: Output) {
this.integrationAccountName = value
}
/**
* @param value The metadata of the Logic App Integration Account Schema.
*/
@JvmName("fnjardpohsesnfie")
public suspend fun metadata(`value`: Output) {
this.metadata = value
}
/**
* @param value The name which should be used for this Logic App Integration Account Schema. Changing this forces a new Logic App Integration Account Schema to be created.
*/
@JvmName("jflwqblhmtjgmxdp")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The name of the Resource Group where the Logic App Integration Account Schema should exist. Changing this forces a new Logic App Integration Account Schema to be created.
*/
@JvmName("bbcnvwuskilcnibw")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value The content of the Logic App Integration Account Schema.
*/
@JvmName("xfmxyicyppvthdcf")
public suspend fun content(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.content = mapped
}
/**
* @param value The file name of the Logic App Integration Account Schema.
*/
@JvmName("oiohtlqcmlwnwmyi")
public suspend fun fileName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.fileName = mapped
}
/**
* @param value The name of the Logic App Integration Account. Changing this forces a new Logic App Integration Account Schema to be created.
*/
@JvmName("atuvjghlrfppasih")
public suspend fun integrationAccountName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.integrationAccountName = mapped
}
/**
* @param value The metadata of the Logic App Integration Account Schema.
*/
@JvmName("qdpfqlhufxxlupip")
public suspend fun metadata(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.metadata = mapped
}
/**
* @param value The name which should be used for this Logic App Integration Account Schema. Changing this forces a new Logic App Integration Account Schema to be created.
*/
@JvmName("nuauclugkhjnbipf")
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 Schema should exist. Changing this forces a new Logic App Integration Account Schema to be created.
*/
@JvmName("kasqlaqigwimxgrp")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
internal fun build(): IntegrationAccountSchemaArgs = IntegrationAccountSchemaArgs(
content = content,
fileName = fileName,
integrationAccountName = integrationAccountName,
metadata = metadata,
name = name,
resourceGroupName = resourceGroupName,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy