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

resources:
foo:
type: github:OrganizationWebhook
properties:
name: web
configuration:
url: https://google.de/
contentType: form
insecureSsl: false
active: false
events:
- issues

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