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.IntegrationAccountSessionArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.logicapps.kotlin
import com.pulumi.azure.logicapps.IntegrationAccountSessionArgs.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 Session.
* ## 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",
* location: example.location,
* resourceGroupName: example.name,
* skuName: "Basic",
* });
* const exampleIntegrationAccountSession = new azure.logicapps.IntegrationAccountSession("example", {
* name: "example-ias",
* resourceGroupName: example.name,
* integrationAccountName: exampleIntegrationAccount.name,
* content: ` {
* "controlNumber": "1234"
* }
* `,
* });
* ```
* ```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",
* location=example.location,
* resource_group_name=example.name,
* sku_name="Basic")
* example_integration_account_session = azure.logicapps.IntegrationAccountSession("example",
* name="example-ias",
* resource_group_name=example.name,
* integration_account_name=example_integration_account.name,
* content=""" {
* "controlNumber": "1234"
* }
* """)
* ```
* ```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",
* Location = example.Location,
* ResourceGroupName = example.Name,
* SkuName = "Basic",
* });
* var exampleIntegrationAccountSession = new Azure.LogicApps.IntegrationAccountSession("example", new()
* {
* Name = "example-ias",
* ResourceGroupName = example.Name,
* IntegrationAccountName = exampleIntegrationAccount.Name,
* Content = @" {
* ""controlNumber"": ""1234""
* }
* ",
* });
* });
* ```
* ```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
* }
* 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
* }
* _, err = logicapps.NewIntegrationAccountSession(ctx, "example", &logicapps.IntegrationAccountSessionArgs{
* Name: pulumi.String("example-ias"),
* ResourceGroupName: example.Name,
* IntegrationAccountName: exampleIntegrationAccount.Name,
* Content: pulumi.String(" {\n \"controlNumber\": \"1234\"\n }\n"),
* })
* 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.IntegrationAccountSession;
* import com.pulumi.azure.logicapps.IntegrationAccountSessionArgs;
* 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 exampleIntegrationAccountSession = new IntegrationAccountSession("exampleIntegrationAccountSession", IntegrationAccountSessionArgs.builder()
* .name("example-ias")
* .resourceGroupName(example.name())
* .integrationAccountName(exampleIntegrationAccount.name())
* .content("""
* {
* "controlNumber": "1234"
* }
* """)
* .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
* exampleIntegrationAccountSession:
* type: azure:logicapps:IntegrationAccountSession
* name: example
* properties:
* name: example-ias
* resourceGroupName: ${example.name}
* integrationAccountName: ${exampleIntegrationAccount.name}
* content: |2
* {
* "controlNumber": "1234"
* }
* ```
*
* ## Import
* Logic App Integration Account Sessions can be imported using the `resource id`, e.g.
* ```sh
* $ pulumi import azure:logicapps/integrationAccountSession:IntegrationAccountSession example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Logic/integrationAccounts/account1/sessions/session1
* ```
* @property content The content of the Logic App Integration Account Session.
* @property integrationAccountName The name of the Logic App Integration Account. Changing this forces a new Logic App Integration Account Session to be created.
* @property name The name which should be used for this Logic App Integration Account Session. Changing this forces a new Logic App Integration Account Session to be created.
* @property resourceGroupName The name of the Resource Group where the Logic App Integration Account Session should exist. Changing this forces a new Logic App Integration Account Session to be created.
*/
public data class IntegrationAccountSessionArgs(
public val content: Output? = null,
public val integrationAccountName: Output? = null,
public val name: Output? = null,
public val resourceGroupName: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.logicapps.IntegrationAccountSessionArgs =
com.pulumi.azure.logicapps.IntegrationAccountSessionArgs.builder()
.content(content?.applyValue({ args0 -> args0 }))
.integrationAccountName(integrationAccountName?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [IntegrationAccountSessionArgs].
*/
@PulumiTagMarker
public class IntegrationAccountSessionArgsBuilder internal constructor() {
private var content: Output? = null
private var integrationAccountName: Output? = null
private var name: Output? = null
private var resourceGroupName: Output? = null
/**
* @param value The content of the Logic App Integration Account Session.
*/
@JvmName("kyluxjthttaknkcp")
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 Session to be created.
*/
@JvmName("ammfemmjotjxxcof")
public suspend fun integrationAccountName(`value`: Output) {
this.integrationAccountName = value
}
/**
* @param value The name which should be used for this Logic App Integration Account Session. Changing this forces a new Logic App Integration Account Session to be created.
*/
@JvmName("sirqreatnycroubl")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The name of the Resource Group where the Logic App Integration Account Session should exist. Changing this forces a new Logic App Integration Account Session to be created.
*/
@JvmName("atrsiodsjpnojeam")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value The content of the Logic App Integration Account Session.
*/
@JvmName("grjpoebkppdlhihj")
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 Session to be created.
*/
@JvmName("immjviwwtmiisxca")
public suspend fun integrationAccountName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.integrationAccountName = mapped
}
/**
* @param value The name which should be used for this Logic App Integration Account Session. Changing this forces a new Logic App Integration Account Session to be created.
*/
@JvmName("gmbpeyxsfclawdpd")
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 Session should exist. Changing this forces a new Logic App Integration Account Session to be created.
*/
@JvmName("akvigkkkarugleja")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
internal fun build(): IntegrationAccountSessionArgs = IntegrationAccountSessionArgs(
content = content,
integrationAccountName = integrationAccountName,
name = name,
resourceGroupName = resourceGroupName,
)
}