OrganizationWebhookArgs

data class OrganizationWebhookArgs(val active: Output<Boolean>? = null, val configuration: Output<OrganizationWebhookConfigurationArgs>? = null, val events: Output<List<String>>? = null) : ConvertibleToJava<OrganizationWebhookArgs>

This resource allows you to create and manage webhooks for GitHub organization.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.github.OrganizationWebhook;
import com.pulumi.github.OrganizationWebhookArgs;
import com.pulumi.github.inputs.OrganizationWebhookConfigurationArgs;
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 foo = new OrganizationWebhook("foo", OrganizationWebhookArgs.builder()
.active(false)
.configuration(OrganizationWebhookConfigurationArgs.builder()
.contentType("form")
.insecureSsl(false)
.url("https://google.de/")
.build())
.events("issues")
.build());
}
}

Import

Organization webhooks can be imported using the id of the webhook. The id of the webhook can be found in the URL of the webhook. For example, "https://github.com/organizations/foo-org/settings/hooks/123456789".

$ pulumi import github:index/organizationWebhook:OrganizationWebhook terraform 123456789

If secret is populated in the webhook's configuration, the value will be imported as "********".

Constructors

Link copied to clipboard
constructor(active: Output<Boolean>? = null, configuration: Output<OrganizationWebhookConfigurationArgs>? = null, events: Output<List<String>>? = null)

Properties

Link copied to clipboard
val active: Output<Boolean>? = null

Indicate of the webhook should receive events. Defaults to true.

Link copied to clipboard

key/value pair of configuration for this webhook. Available keys are url, content_type, secret and insecure_ssl.

Link copied to clipboard
val events: Output<List<String>>? = null

A list of events which should trigger the webhook. See a list of available events

Functions

Link copied to clipboard
open override fun toJava(): OrganizationWebhookArgs