![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.logicapps.kotlin.Workflow.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.logicapps.kotlin
import com.pulumi.azure.logicapps.kotlin.outputs.WorkflowAccessControl
import com.pulumi.azure.logicapps.kotlin.outputs.WorkflowIdentity
import com.pulumi.core.Output
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import com.pulumi.azure.logicapps.kotlin.outputs.WorkflowAccessControl.Companion.toKotlin as workflowAccessControlToKotlin
import com.pulumi.azure.logicapps.kotlin.outputs.WorkflowIdentity.Companion.toKotlin as workflowIdentityToKotlin
/**
* Builder for [Workflow].
*/
@PulumiTagMarker
public class WorkflowResourceBuilder internal constructor() {
public var name: String? = null
public var args: WorkflowArgs = WorkflowArgs()
public var opts: CustomResourceOptions = CustomResourceOptions()
/**
* @param name The _unique_ name of the resulting resource.
*/
public fun name(`value`: String) {
this.name = value
}
/**
* @param block The arguments to use to populate this resource's properties.
*/
public suspend fun args(block: suspend WorkflowArgsBuilder.() -> Unit) {
val builder = WorkflowArgsBuilder()
block(builder)
this.args = builder.build()
}
/**
* @param block A bag of options that control this resource's behavior.
*/
public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
}
internal fun build(): Workflow {
val builtJavaResource = com.pulumi.azure.logicapps.Workflow(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return Workflow(builtJavaResource)
}
}
/**
* Manages a Logic App Workflow.
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as azure from "@pulumi/azure";
* const example = new azure.core.ResourceGroup("example", {
* name: "workflow-resources",
* location: "West Europe",
* });
* const exampleWorkflow = new azure.logicapps.Workflow("example", {
* name: "workflow1",
* location: example.location,
* resourceGroupName: example.name,
* });
* ```
* ```python
* import pulumi
* import pulumi_azure as azure
* example = azure.core.ResourceGroup("example",
* name="workflow-resources",
* location="West Europe")
* example_workflow = azure.logicapps.Workflow("example",
* name="workflow1",
* location=example.location,
* resource_group_name=example.name)
* ```
* ```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 = "workflow-resources",
* Location = "West Europe",
* });
* var exampleWorkflow = new Azure.LogicApps.Workflow("example", new()
* {
* Name = "workflow1",
* Location = example.Location,
* ResourceGroupName = example.Name,
* });
* });
* ```
* ```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("workflow-resources"),
* Location: pulumi.String("West Europe"),
* })
* if err != nil {
* return err
* }
* _, err = logicapps.NewWorkflow(ctx, "example", &logicapps.WorkflowArgs{
* Name: pulumi.String("workflow1"),
* Location: example.Location,
* ResourceGroupName: example.Name,
* })
* 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.Workflow;
* import com.pulumi.azure.logicapps.WorkflowArgs;
* 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("workflow-resources")
* .location("West Europe")
* .build());
* var exampleWorkflow = new Workflow("exampleWorkflow", WorkflowArgs.builder()
* .name("workflow1")
* .location(example.location())
* .resourceGroupName(example.name())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: azure:core:ResourceGroup
* properties:
* name: workflow-resources
* location: West Europe
* exampleWorkflow:
* type: azure:logicapps:Workflow
* name: example
* properties:
* name: workflow1
* location: ${example.location}
* resourceGroupName: ${example.name}
* ```
*
* ## Import
* Logic App Workflows can be imported using the `resource id`, e.g.
* ```sh
* $ pulumi import azure:logicapps/workflow:Workflow workflow1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Logic/workflows/workflow1
* ```
*/
public class Workflow internal constructor(
override val javaResource: com.pulumi.azure.logicapps.Workflow,
) : KotlinCustomResource(javaResource, WorkflowMapper) {
/**
* A `access_control` block as defined below.
*/
public val accessControl: Output?
get() = javaResource.accessControl().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> workflowAccessControlToKotlin(args0) })
}).orElse(null)
})
/**
* The Access Endpoint for the Logic App Workflow.
*/
public val accessEndpoint: Output
get() = javaResource.accessEndpoint().applyValue({ args0 -> args0 })
/**
* The list of access endpoint IP addresses of connector.
*/
public val connectorEndpointIpAddresses: Output>
get() = javaResource.connectorEndpointIpAddresses().applyValue({ args0 ->
args0.map({ args0 ->
args0
})
})
/**
* The list of outgoing IP addresses of connector.
*/
public val connectorOutboundIpAddresses: Output>
get() = javaResource.connectorOutboundIpAddresses().applyValue({ args0 ->
args0.map({ args0 ->
args0
})
})
/**
* Is the Logic App Workflow enabled? Defaults to `true`.
*/
public val enabled: Output?
get() = javaResource.enabled().applyValue({ args0 -> args0.map({ args0 -> args0 }).orElse(null) })
/**
* An `identity` block as defined below.
*/
public val identity: Output?
get() = javaResource.identity().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
workflowIdentityToKotlin(args0)
})
}).orElse(null)
})
/**
* The ID of the Integration Service Environment to which this Logic App Workflow belongs. Changing this forces a new Logic App Workflow to be created.
*/
public val integrationServiceEnvironmentId: Output?
get() = javaResource.integrationServiceEnvironmentId().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Specifies the supported Azure location where the Logic App Workflow exists. Changing this forces a new resource to be created.
*/
public val location: Output
get() = javaResource.location().applyValue({ args0 -> args0 })
/**
* The ID of the integration account linked by this Logic App Workflow.
*/
public val logicAppIntegrationAccountId: Output?
get() = javaResource.logicAppIntegrationAccountId().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Specifies the name of the Logic App Workflow. Changing this forces a new resource to be created.
*/
public val name: Output
get() = javaResource.name().applyValue({ args0 -> args0 })
/**
* A map of Key-Value pairs.
* > **NOTE:** Any parameters specified must exist in the Schema defined in `workflow_parameters`.
*/
public val parameters: Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy