com.pulumi.azure.logicapps.kotlin.TriggerHttpRequestArgs.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.TriggerHttpRequestArgs.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 HTTP Request Trigger within 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,
* });
* const exampleTriggerHttpRequest = new azure.logicapps.TriggerHttpRequest("example", {
* name: "some-http-trigger",
* logicAppId: exampleWorkflow.id,
* schema: `{
* "type": "object",
* "properties": {
* "hello": {
* "type": "string"
* }
* }
* }
* `,
* });
* ```
* ```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)
* example_trigger_http_request = azure.logicapps.TriggerHttpRequest("example",
* name="some-http-trigger",
* logic_app_id=example_workflow.id,
* schema="""{
* "type": "object",
* "properties": {
* "hello": {
* "type": "string"
* }
* }
* }
* """)
* ```
* ```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,
* });
* var exampleTriggerHttpRequest = new Azure.LogicApps.TriggerHttpRequest("example", new()
* {
* Name = "some-http-trigger",
* LogicAppId = exampleWorkflow.Id,
* Schema = @"{
* ""type"": ""object"",
* ""properties"": {
* ""hello"": {
* ""type"": ""string""
* }
* }
* }
* ",
* });
* });
* ```
* ```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
* }
* exampleWorkflow, err := logicapps.NewWorkflow(ctx, "example", &logicapps.WorkflowArgs{
* Name: pulumi.String("workflow1"),
* Location: example.Location,
* ResourceGroupName: example.Name,
* })
* if err != nil {
* return err
* }
* _, err = logicapps.NewTriggerHttpRequest(ctx, "example", &logicapps.TriggerHttpRequestArgs{
* Name: pulumi.String("some-http-trigger"),
* LogicAppId: exampleWorkflow.ID(),
* Schema: pulumi.String(`{
* "type": "object",
* "properties": {
* "hello": {
* "type": "string"
* }
* }
* }
* `),
* })
* 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 com.pulumi.azure.logicapps.TriggerHttpRequest;
* import com.pulumi.azure.logicapps.TriggerHttpRequestArgs;
* 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());
* var exampleTriggerHttpRequest = new TriggerHttpRequest("exampleTriggerHttpRequest", TriggerHttpRequestArgs.builder()
* .name("some-http-trigger")
* .logicAppId(exampleWorkflow.id())
* .schema("""
* {
* "type": "object",
* "properties": {
* "hello": {
* "type": "string"
* }
* }
* }
* """)
* .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}
* exampleTriggerHttpRequest:
* type: azure:logicapps:TriggerHttpRequest
* name: example
* properties:
* name: some-http-trigger
* logicAppId: ${exampleWorkflow.id}
* schema: |
* {
* "type": "object",
* "properties": {
* "hello": {
* "type": "string"
* }
* }
* }
* ```
*
* ## Import
* Logic App HTTP Request Triggers can be imported using the `resource id`, e.g.
* ```sh
* $ pulumi import azure:logicapps/triggerHttpRequest:TriggerHttpRequest request1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Logic/workflows/workflow1/triggers/request1
* ```
* @property logicAppId Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created.
* @property method Specifies the HTTP Method which the request be using. Possible values include `DELETE`, `GET`, `PATCH`, `POST` or `PUT`.
* @property name Specifies the name of the HTTP Request Trigger to be created within the Logic App Workflow. Changing this forces a new resource to be created.
* > **NOTE:** This name must be unique across all Triggers within the Logic App Workflow.
* @property relativePath Specifies the Relative Path used for this Request.
* > **NOTE:** When `relative_path` is set a `method` must also be set.
* @property schema A JSON Blob defining the Schema of the incoming request. This needs to be valid JSON.
*/
public data class TriggerHttpRequestArgs(
public val logicAppId: Output? = null,
public val method: Output? = null,
public val name: Output? = null,
public val relativePath: Output? = null,
public val schema: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.logicapps.TriggerHttpRequestArgs =
com.pulumi.azure.logicapps.TriggerHttpRequestArgs.builder()
.logicAppId(logicAppId?.applyValue({ args0 -> args0 }))
.method(method?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.relativePath(relativePath?.applyValue({ args0 -> args0 }))
.schema(schema?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [TriggerHttpRequestArgs].
*/
@PulumiTagMarker
public class TriggerHttpRequestArgsBuilder internal constructor() {
private var logicAppId: Output? = null
private var method: Output? = null
private var name: Output? = null
private var relativePath: Output? = null
private var schema: Output? = null
/**
* @param value Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created.
*/
@JvmName("fbpdjuefgaerkgoh")
public suspend fun logicAppId(`value`: Output) {
this.logicAppId = value
}
/**
* @param value Specifies the HTTP Method which the request be using. Possible values include `DELETE`, `GET`, `PATCH`, `POST` or `PUT`.
*/
@JvmName("kckyikgmnoqaflst")
public suspend fun method(`value`: Output) {
this.method = value
}
/**
* @param value Specifies the name of the HTTP Request Trigger to be created within the Logic App Workflow. Changing this forces a new resource to be created.
* > **NOTE:** This name must be unique across all Triggers within the Logic App Workflow.
*/
@JvmName("dwabynfypbfneipw")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Specifies the Relative Path used for this Request.
* > **NOTE:** When `relative_path` is set a `method` must also be set.
*/
@JvmName("yjjelcysevvdrwvb")
public suspend fun relativePath(`value`: Output) {
this.relativePath = value
}
/**
* @param value A JSON Blob defining the Schema of the incoming request. This needs to be valid JSON.
*/
@JvmName("euxpdqwducvhbpvk")
public suspend fun schema(`value`: Output) {
this.schema = value
}
/**
* @param value Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created.
*/
@JvmName("mbqtlbqxkpbvgyny")
public suspend fun logicAppId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.logicAppId = mapped
}
/**
* @param value Specifies the HTTP Method which the request be using. Possible values include `DELETE`, `GET`, `PATCH`, `POST` or `PUT`.
*/
@JvmName("xmdjnmqqbhuxwtkj")
public suspend fun method(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.method = mapped
}
/**
* @param value Specifies the name of the HTTP Request Trigger to be created within the Logic App Workflow. Changing this forces a new resource to be created.
* > **NOTE:** This name must be unique across all Triggers within the Logic App Workflow.
*/
@JvmName("abpuibgersugxola")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value Specifies the Relative Path used for this Request.
* > **NOTE:** When `relative_path` is set a `method` must also be set.
*/
@JvmName("twjvihihqmqxagjp")
public suspend fun relativePath(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.relativePath = mapped
}
/**
* @param value A JSON Blob defining the Schema of the incoming request. This needs to be valid JSON.
*/
@JvmName("yvuonhnlqkiwjldf")
public suspend fun schema(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.schema = mapped
}
internal fun build(): TriggerHttpRequestArgs = TriggerHttpRequestArgs(
logicAppId = logicAppId,
method = method,
name = name,
relativePath = relativePath,
schema = schema,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy