Webhook Args
    data class WebhookArgs(val automationAccountName: Output<String>? = null, val expiryTime: Output<String>? = null, val isEnabled: Output<Boolean>? = null, val name: Output<String>? = null, val parameters: Output<Map<String, String>>? = null, val resourceGroupName: Output<String>? = null, val runOn: Output<String>? = null, val runbook: Output<RunbookAssociationPropertyArgs>? = null, val uri: Output<String>? = null, val webhookName: Output<String>? = null) : ConvertibleToJava<WebhookArgs> 
Definition of the webhook type. Azure REST API version: 2015-10-31. Prior API version in Azure Native 1.x: 2015-10-31. Other available API versions: 2023-05-15-preview.
Example Usage
Create or update webhook
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
    var webhook = new AzureNative.Automation.Webhook("webhook", new()
    {
        AutomationAccountName = "myAutomationAccount33",
        ExpiryTime = "2018-03-29T22:18:13.7002872Z",
        IsEnabled = true,
        Name = "TestWebhook",
        ResourceGroupName = "rg",
        Runbook = new AzureNative.Automation.Inputs.RunbookAssociationPropertyArgs
        {
            Name = "TestRunbook",
        },
        Uri = "<uri>",
        WebhookName = "TestWebhook",
    });
});Content copied to clipboard
package main
import (
	"github.com/pulumi/pulumi-azure-native-sdk/automation/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := automation.NewWebhook(ctx, "webhook", &automation.WebhookArgs{
			AutomationAccountName: pulumi.String("myAutomationAccount33"),
			ExpiryTime:            pulumi.String("2018-03-29T22:18:13.7002872Z"),
			IsEnabled:             pulumi.Bool(true),
			Name:                  pulumi.String("TestWebhook"),
			ResourceGroupName:     pulumi.String("rg"),
			Runbook: &automation.RunbookAssociationPropertyArgs{
				Name: pulumi.String("TestRunbook"),
			},
			Uri:         pulumi.String("<uri>"),
			WebhookName: pulumi.String("TestWebhook"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.automation.Webhook;
import com.pulumi.azurenative.automation.WebhookArgs;
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 webhook = new Webhook("webhook", WebhookArgs.builder()
            .automationAccountName("myAutomationAccount33")
            .expiryTime("2018-03-29T22:18:13.7002872Z")
            .isEnabled(true)
            .name("TestWebhook")
            .resourceGroupName("rg")
            .runbook(Map.of("name", "TestRunbook"))
            .uri("<uri>")
            .webhookName("TestWebhook")
            .build());
    }
}Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:automation:Webhook TestWebhook /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/webhooks/{webhookName}Content copied to clipboard
Constructors
Link copied to clipboard
                fun WebhookArgs(automationAccountName: Output<String>? = null, expiryTime: Output<String>? = null, isEnabled: Output<Boolean>? = null, name: Output<String>? = null, parameters: Output<Map<String, String>>? = null, resourceGroupName: Output<String>? = null, runOn: Output<String>? = null, runbook: Output<RunbookAssociationPropertyArgs>? = null, uri: Output<String>? = null, webhookName: Output<String>? = null)