Class RepositoryWebhook
Inherited Members
Namespace: Pulumi.Github
Assembly: Pulumi.Github.dll
Syntax
public class RepositoryWebhook : CustomResource
Constructors
View SourceRepositoryWebhook(String, RepositoryWebhookArgs, CustomResourceOptions)
Create a RepositoryWebhook resource with the given unique name, arguments, and options.
Declaration
public RepositoryWebhook(string name, RepositoryWebhookArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| RepositoryWebhookArgs | 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. secret is the shared secret, see API documentation.
Declaration
public Output<RepositoryWebhookConfiguration> Configuration { get; }
Property Value
| Type | Description |
|---|---|
| Output<RepositoryWebhookConfiguration> |
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>> |
Repository
The repository of the webhook.
Declaration
public Output<string> Repository { get; }
Property Value
| Type | Description |
|---|---|
| Output<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>, RepositoryWebhookState, CustomResourceOptions)
Get an existing RepositoryWebhook resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static RepositoryWebhook Get(string name, Input<string> id, RepositoryWebhookState 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. |
| RepositoryWebhookState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| RepositoryWebhook |