RepositoryWebhook
Create a RepositoryWebhook Resource
new RepositoryWebhook(name: string, args: RepositoryWebhookArgs, opts?: CustomResourceOptions);def RepositoryWebhook(resource_name, opts=None, active=None, configuration=None, events=None, repository=None, __props__=None);func NewRepositoryWebhook(ctx *Context, name string, args RepositoryWebhookArgs, opts ...ResourceOption) (*RepositoryWebhook, error)public RepositoryWebhook(string name, RepositoryWebhookArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args RepositoryWebhookArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args RepositoryWebhookArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RepositoryWebhookArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
RepositoryWebhook Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The RepositoryWebhook resource accepts the following input properties:
- Events List<string>
A list of events which should trigger the webhook. See a list of available events.
- Repository string
The repository of the webhook.
- Active bool
Indicate of the webhook should receive events. Defaults to
true.- Configuration
Repository
Webhook Configuration Args key/value pair of configuration for this webhook. Available keys are
url,content_type,secretandinsecure_ssl.secretis the shared secret, see API documentation.
- Events []string
A list of events which should trigger the webhook. See a list of available events.
- Repository string
The repository of the webhook.
- Active bool
Indicate of the webhook should receive events. Defaults to
true.- Configuration
Repository
Webhook Configuration key/value pair of configuration for this webhook. Available keys are
url,content_type,secretandinsecure_ssl.secretis the shared secret, see API documentation.
- events string[]
A list of events which should trigger the webhook. See a list of available events.
- repository string
The repository of the webhook.
- active boolean
Indicate of the webhook should receive events. Defaults to
true.- configuration
Repository
Webhook Configuration key/value pair of configuration for this webhook. Available keys are
url,content_type,secretandinsecure_ssl.secretis the shared secret, see API documentation.
- events List[str]
A list of events which should trigger the webhook. See a list of available events.
- repository str
The repository of the webhook.
- active bool
Indicate of the webhook should receive events. Defaults to
true.- configuration
Dict[Repository
Webhook Configuration] key/value pair of configuration for this webhook. Available keys are
url,content_type,secretandinsecure_ssl.secretis the shared secret, see API documentation.
Outputs
All input properties are implicitly available as output properties. Additionally, the RepositoryWebhook resource produces the following output properties:
Look up an Existing RepositoryWebhook Resource
Get an existing RepositoryWebhook resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: RepositoryWebhookState, opts?: CustomResourceOptions): RepositoryWebhookstatic get(resource_name, id, opts=None, active=None, configuration=None, etag=None, events=None, repository=None, url=None, __props__=None);func GetRepositoryWebhook(ctx *Context, name string, id IDInput, state *RepositoryWebhookState, opts ...ResourceOption) (*RepositoryWebhook, error)public static RepositoryWebhook Get(string name, Input<string> id, RepositoryWebhookState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Active bool
Indicate of the webhook should receive events. Defaults to
true.- Configuration
Repository
Webhook Configuration Args key/value pair of configuration for this webhook. Available keys are
url,content_type,secretandinsecure_ssl.secretis the shared secret, see API documentation.- Etag string
- Events List<string>
A list of events which should trigger the webhook. See a list of available events.
- Repository string
The repository of the webhook.
- Url string
URL of the webhook
- Active bool
Indicate of the webhook should receive events. Defaults to
true.- Configuration
Repository
Webhook Configuration key/value pair of configuration for this webhook. Available keys are
url,content_type,secretandinsecure_ssl.secretis the shared secret, see API documentation.- Etag string
- Events []string
A list of events which should trigger the webhook. See a list of available events.
- Repository string
The repository of the webhook.
- Url string
URL of the webhook
- active boolean
Indicate of the webhook should receive events. Defaults to
true.- configuration
Repository
Webhook Configuration key/value pair of configuration for this webhook. Available keys are
url,content_type,secretandinsecure_ssl.secretis the shared secret, see API documentation.- etag string
- events string[]
A list of events which should trigger the webhook. See a list of available events.
- repository string
The repository of the webhook.
- url string
URL of the webhook
- active bool
Indicate of the webhook should receive events. Defaults to
true.- configuration
Dict[Repository
Webhook Configuration] key/value pair of configuration for this webhook. Available keys are
url,content_type,secretandinsecure_ssl.secretis the shared secret, see API documentation.- etag str
- events List[str]
A list of events which should trigger the webhook. See a list of available events.
- repository str
The repository of the webhook.
- url str
URL of the webhook
Supporting Types
RepositoryWebhookConfiguration
- Url string
URL of the webhook
- Content
Type string - Insecure
Ssl bool - Secret string
- Url string
URL of the webhook
- Content
Type string - Insecure
Ssl bool - Secret string
- url string
URL of the webhook
- content
Type string - insecure
Ssl boolean - secret string
- url str
URL of the webhook
- content
Type str - insecure
Ssl bool - secret str
Package Details
- Repository
- https://github.com/pulumi/pulumi-github
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
githubTerraform Provider.