Show / Hide Table of Contents

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",
        },
    });
}

}
Inheritance
System.Object
Resource
CustomResource
OrganizationWebhook
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Github
Assembly: Pulumi.Github.dll
Syntax
public class OrganizationWebhook : CustomResource

Constructors

View Source

OrganizationWebhook(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 Source

Active

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>>
View Source

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>
View Source

Etag

Declaration
public Output<string> Etag { get; }
Property Value
Type Description
Output<System.String>
View Source

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>>
View Source

Url

URL of the webhook

Declaration
public Output<string> Url { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.