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.LogicappsFunctions.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.logicapps.kotlin
import com.pulumi.azure.logicapps.LogicappsFunctions.getIntegrationAccountPlain
import com.pulumi.azure.logicapps.LogicappsFunctions.getStandardPlain
import com.pulumi.azure.logicapps.LogicappsFunctions.getWorkflowPlain
import com.pulumi.azure.logicapps.kotlin.inputs.GetIntegrationAccountPlainArgs
import com.pulumi.azure.logicapps.kotlin.inputs.GetIntegrationAccountPlainArgsBuilder
import com.pulumi.azure.logicapps.kotlin.inputs.GetStandardPlainArgs
import com.pulumi.azure.logicapps.kotlin.inputs.GetStandardPlainArgsBuilder
import com.pulumi.azure.logicapps.kotlin.inputs.GetStandardSiteConfig
import com.pulumi.azure.logicapps.kotlin.inputs.GetWorkflowPlainArgs
import com.pulumi.azure.logicapps.kotlin.inputs.GetWorkflowPlainArgsBuilder
import com.pulumi.azure.logicapps.kotlin.outputs.GetIntegrationAccountResult
import com.pulumi.azure.logicapps.kotlin.outputs.GetStandardResult
import com.pulumi.azure.logicapps.kotlin.outputs.GetWorkflowResult
import kotlinx.coroutines.future.await
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import com.pulumi.azure.logicapps.kotlin.outputs.GetIntegrationAccountResult.Companion.toKotlin as getIntegrationAccountResultToKotlin
import com.pulumi.azure.logicapps.kotlin.outputs.GetStandardResult.Companion.toKotlin as getStandardResultToKotlin
import com.pulumi.azure.logicapps.kotlin.outputs.GetWorkflowResult.Companion.toKotlin as getWorkflowResultToKotlin
public object LogicappsFunctions {
/**
* Use this data source to access information about an existing Logic App Integration Account.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
* const example = azure.logicapps.getIntegrationAccount({
* name: "example-account",
* resourceGroupName: "example-resource-group",
* });
* export const id = example.then(example => example.id);
* ```
* ```python
* import pulumi
* import pulumi_azure as azure
* example = azure.logicapps.get_integration_account(name="example-account",
* resource_group_name="example-resource-group")
* pulumi.export("id", example.id)
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Azure = Pulumi.Azure;
* return await Deployment.RunAsync(() =>
* {
* var example = Azure.LogicApps.GetIntegrationAccount.Invoke(new()
* {
* Name = "example-account",
* ResourceGroupName = "example-resource-group",
* });
* return new Dictionary
* {
* ["id"] = example.Apply(getIntegrationAccountResult => getIntegrationAccountResult.Id),
* };
* });
* ```
* ```go
* package main
* import (
* "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 := logicapps.LookupIntegrationAccount(ctx, &logicapps.LookupIntegrationAccountArgs{
* Name: "example-account",
* ResourceGroupName: "example-resource-group",
* }, nil)
* if err != nil {
* return err
* }
* ctx.Export("id", example.Id)
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azure.logicapps.LogicappsFunctions;
* import com.pulumi.azure.logicapps.inputs.GetIntegrationAccountArgs;
* 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) {
* final var example = LogicappsFunctions.getIntegrationAccount(GetIntegrationAccountArgs.builder()
* .name("example-account")
* .resourceGroupName("example-resource-group")
* .build());
* ctx.export("id", example.applyValue(getIntegrationAccountResult -> getIntegrationAccountResult.id()));
* }
* }
* ```
* ```yaml
* variables:
* example:
* fn::invoke:
* Function: azure:logicapps:getIntegrationAccount
* Arguments:
* name: example-account
* resourceGroupName: example-resource-group
* outputs:
* id: ${example.id}
* ```
*
* @param argument A collection of arguments for invoking getIntegrationAccount.
* @return A collection of values returned by getIntegrationAccount.
*/
public suspend fun getIntegrationAccount(argument: GetIntegrationAccountPlainArgs): GetIntegrationAccountResult =
getIntegrationAccountResultToKotlin(getIntegrationAccountPlain(argument.toJava()).await())
/**
* @see [getIntegrationAccount].
* @param name The name of this Logic App Integration Account.
* @param resourceGroupName The name of the Resource Group where the Logic App Integration Account exists.
* @return A collection of values returned by getIntegrationAccount.
*/
public suspend fun getIntegrationAccount(name: String, resourceGroupName: String): GetIntegrationAccountResult {
val argument = GetIntegrationAccountPlainArgs(
name = name,
resourceGroupName = resourceGroupName,
)
return getIntegrationAccountResultToKotlin(getIntegrationAccountPlain(argument.toJava()).await())
}
/**
* @see [getIntegrationAccount].
* @param argument Builder for [com.pulumi.azure.logicapps.kotlin.inputs.GetIntegrationAccountPlainArgs].
* @return A collection of values returned by getIntegrationAccount.
*/
public suspend fun getIntegrationAccount(argument: suspend GetIntegrationAccountPlainArgsBuilder.() -> Unit): GetIntegrationAccountResult {
val builder = GetIntegrationAccountPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getIntegrationAccountResultToKotlin(getIntegrationAccountPlain(builtArgument.toJava()).await())
}
/**
* Use this data source to access information about an existing Logic App Standard instance.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
* const example = azure.logicapps.getStandard({
* name: "logicappstd",
* resourceGroupName: "example-rg",
* });
* export const id = example.then(example => example.id);
* ```
* ```python
* import pulumi
* import pulumi_azure as azure
* example = azure.logicapps.get_standard(name="logicappstd",
* resource_group_name="example-rg")
* pulumi.export("id", example.id)
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Azure = Pulumi.Azure;
* return await Deployment.RunAsync(() =>
* {
* var example = Azure.LogicApps.GetStandard.Invoke(new()
* {
* Name = "logicappstd",
* ResourceGroupName = "example-rg",
* });
* return new Dictionary
* {
* ["id"] = example.Apply(getStandardResult => getStandardResult.Id),
* };
* });
* ```
* ```go
* package main
* import (
* "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 := logicapps.LookupStandard(ctx, &logicapps.LookupStandardArgs{
* Name: "logicappstd",
* ResourceGroupName: "example-rg",
* }, nil)
* if err != nil {
* return err
* }
* ctx.Export("id", example.Id)
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azure.logicapps.LogicappsFunctions;
* import com.pulumi.azure.logicapps.inputs.GetStandardArgs;
* 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) {
* final var example = LogicappsFunctions.getStandard(GetStandardArgs.builder()
* .name("logicappstd")
* .resourceGroupName("example-rg")
* .build());
* ctx.export("id", example.applyValue(getStandardResult -> getStandardResult.id()));
* }
* }
* ```
* ```yaml
* variables:
* example:
* fn::invoke:
* Function: azure:logicapps:getStandard
* Arguments:
* name: logicappstd
* resourceGroupName: example-rg
* outputs:
* id: ${example.id}
* ```
*
* @param argument A collection of arguments for invoking getStandard.
* @return A collection of values returned by getStandard.
*/
public suspend fun getStandard(argument: GetStandardPlainArgs): GetStandardResult =
getStandardResultToKotlin(getStandardPlain(argument.toJava()).await())
/**
* @see [getStandard].
* @param name The name of this Logic App.
* @param resourceGroupName The name of the Resource Group where the Logic App exists.
* @param siteConfig
* @param tags
* @return A collection of values returned by getStandard.
*/
public suspend fun getStandard(
name: String,
resourceGroupName: String,
siteConfig: GetStandardSiteConfig? = null,
tags: Map? = null,
): GetStandardResult {
val argument = GetStandardPlainArgs(
name = name,
resourceGroupName = resourceGroupName,
siteConfig = siteConfig,
tags = tags,
)
return getStandardResultToKotlin(getStandardPlain(argument.toJava()).await())
}
/**
* @see [getStandard].
* @param argument Builder for [com.pulumi.azure.logicapps.kotlin.inputs.GetStandardPlainArgs].
* @return A collection of values returned by getStandard.
*/
public suspend fun getStandard(argument: suspend GetStandardPlainArgsBuilder.() -> Unit): GetStandardResult {
val builder = GetStandardPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getStandardResultToKotlin(getStandardPlain(builtArgument.toJava()).await())
}
/**
* Use this data source to access information about an existing Logic App Workflow.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
* const example = azure.logicapps.getWorkflow({
* name: "workflow1",
* resourceGroupName: "my-resource-group",
* });
* export const accessEndpoint = example.then(example => example.accessEndpoint);
* ```
* ```python
* import pulumi
* import pulumi_azure as azure
* example = azure.logicapps.get_workflow(name="workflow1",
* resource_group_name="my-resource-group")
* pulumi.export("accessEndpoint", example.access_endpoint)
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Azure = Pulumi.Azure;
* return await Deployment.RunAsync(() =>
* {
* var example = Azure.LogicApps.GetWorkflow.Invoke(new()
* {
* Name = "workflow1",
* ResourceGroupName = "my-resource-group",
* });
* return new Dictionary
* {
* ["accessEndpoint"] = example.Apply(getWorkflowResult => getWorkflowResult.AccessEndpoint),
* };
* });
* ```
* ```go
* package main
* import (
* "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 := logicapps.LookupWorkflow(ctx, &logicapps.LookupWorkflowArgs{
* Name: "workflow1",
* ResourceGroupName: "my-resource-group",
* }, nil)
* if err != nil {
* return err
* }
* ctx.Export("accessEndpoint", example.AccessEndpoint)
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azure.logicapps.LogicappsFunctions;
* import com.pulumi.azure.logicapps.inputs.GetWorkflowArgs;
* 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) {
* final var example = LogicappsFunctions.getWorkflow(GetWorkflowArgs.builder()
* .name("workflow1")
* .resourceGroupName("my-resource-group")
* .build());
* ctx.export("accessEndpoint", example.applyValue(getWorkflowResult -> getWorkflowResult.accessEndpoint()));
* }
* }
* ```
* ```yaml
* variables:
* example:
* fn::invoke:
* Function: azure:logicapps:getWorkflow
* Arguments:
* name: workflow1
* resourceGroupName: my-resource-group
* outputs:
* accessEndpoint: ${example.accessEndpoint}
* ```
*
* @param argument A collection of arguments for invoking getWorkflow.
* @return A collection of values returned by getWorkflow.
*/
public suspend fun getWorkflow(argument: GetWorkflowPlainArgs): GetWorkflowResult =
getWorkflowResultToKotlin(getWorkflowPlain(argument.toJava()).await())
/**
* @see [getWorkflow].
* @param name The name of the Logic App Workflow.
* @param resourceGroupName The name of the Resource Group in which the Logic App Workflow exists.
* @return A collection of values returned by getWorkflow.
*/
public suspend fun getWorkflow(name: String, resourceGroupName: String): GetWorkflowResult {
val argument = GetWorkflowPlainArgs(
name = name,
resourceGroupName = resourceGroupName,
)
return getWorkflowResultToKotlin(getWorkflowPlain(argument.toJava()).await())
}
/**
* @see [getWorkflow].
* @param argument Builder for [com.pulumi.azure.logicapps.kotlin.inputs.GetWorkflowPlainArgs].
* @return A collection of values returned by getWorkflow.
*/
public suspend fun getWorkflow(argument: suspend GetWorkflowPlainArgsBuilder.() -> Unit): GetWorkflowResult {
val builder = GetWorkflowPlainArgsBuilder()
builder.argument()
val builtArgument = builder.build()
return getWorkflowResultToKotlin(getWorkflowPlain(builtArgument.toJava()).await())
}
}