Class OrganizationWebhook
This resource allows you to create and manage webhooks for GitHub organization.
Example Usage
using Pulumi;
using Github = Pulumi.Github;
class MyStack : Stack
{
public MyStack()
{
var foo = new Github.OrganizationWebhook("foo", new Github.OrganizationWebhookArgs
{
Active = false,
Configuration = new Github.Inputs.OrganizationWebhookConfigurationArgs
{
ContentType = "form",
InsecureSsl = false,
Url = "https://google.de/",
},
Events =
{
"issues",
},
});
}
}
Inherited Members
Namespace: Pulumi.Github
Assembly: Pulumi.Github.dll
Syntax
public class OrganizationWebhook : CustomResource
Constructors
View SourceOrganizationWebhook(String, OrganizationWebhookArgs, CustomResourceOptions)
Create a OrganizationWebhook resource with the given unique name, arguments, and options.
Declaration
public OrganizationWebhook(string name, OrganizationWebhookArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| OrganizationWebhookArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceActive
Indicate of the webhook should receive events. Defaults to true.
Declaration
public Output<bool?> Active { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
Configuration
key/value pair of configuration for this webhook. Available keys are url, content_type, secret and insecure_ssl.
Declaration
public Output<OrganizationWebhookConfiguration> Configuration { get; }
Property Value
| Type | Description |
|---|---|
| Output<OrganizationWebhookConfiguration> |
Etag
Declaration
public Output<string> Etag { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Events
A list of events which should trigger the webhook. See a list of available events
Declaration
public Output<ImmutableArray<string>> Events { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
Url
URL of the webhook
Declaration
public Output<string> Url { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, OrganizationWebhookState, CustomResourceOptions)
Get an existing OrganizationWebhook resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static OrganizationWebhook Get(string name, Input<string> id, OrganizationWebhookState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| OrganizationWebhookState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| OrganizationWebhook |