Webhook constructor
Webhook(
- String name, {
- WebhookArgs? args,
- CustomResourceOptions? options,
Creates a new Webhook.
name The Pulumi resource name.
args Arguments used to configure this Webhook. The set of arguments for Webhook.
options Resource options controlling this resource's behavior.
Implementation
Webhook(
String name, {
WebhookArgs? args,
pulumi.CustomResourceOptions? options,
}) : super(
'pulumiservice:index:Webhook',
name,
pulumi.Input.mapToInputs(args?.toMap() ?? const {}),
options ?? pulumi.CustomResourceOptions(),
) {
active = registerOutput<bool>('active');
displayName = registerOutput<String>('displayName');
environmentName = registerOutput<String?>('environmentName');
filters = registerOutput<List<WebhookFilters>?>('filters', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeList<WebhookFilters>(guardedValue, (value) => WebhookFilters.fromValue(value as String)); });
format = registerOutput<WebhookFormat>('format', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return WebhookFormat.fromValue(guardedValue as String); });
groups = registerOutput<List<WebhookGroup>?>('groups', decoder: (raw) { final guardedValue = raw; if (guardedValue == null) return null; return pulumi.Input.decodeList<WebhookGroup>(guardedValue, (value) => WebhookGroup.fromValue(value as String)); });
this.name = registerOutput<String>('name');
organizationName = registerOutput<String>('organizationName');
payloadUrl = registerOutput<String>('payloadUrl');
projectName = registerOutput<String?>('projectName');
secret = registerOutput<String?>('secret');
stackName = registerOutput<String?>('stackName');
}