Webhook class
Pulumi Webhooks allow you to notify external services of events happening within your Pulumi organization or stack. For example, you can trigger a notification whenever a stack is updated. Whenever an event occurs, Pulumi will send an HTTP POST request to all registered webhooks. The webhook can then be used to emit some notification, start running integration tests, or even update additional stacks.
Import
Pulumi webhooks can be imported using the id, which for webhooks is {org}/{project}/{stack}/{webhook-name} e.g.,
$ pulumi import pulumiservice:index:Webhook my_webhook my-org/my-project/my-stack/4b0d0671
Constructors
- Webhook(String name, {WebhookArgs? args, CustomResourceOptions? options})
-
Creates a new Webhook.
nameThe Pulumi resource name.argsArguments used to configure this Webhook. The set of arguments for Webhook.optionsResource options controlling this resource's behavior.
Properties
-
active
↔ Output<
bool> -
Indicates whether this webhook is enabled or not.
latefinal
-
childResources
→ Set<
Resource> -
finalinherited
-
completionSources
↔ Map<
String, IOutputCompletionSource> -
latefinalinherited
-
displayName
↔ Output<
String> -
The friendly name displayed in the Pulumi Cloud.
latefinal
-
environmentName
↔ Output<
String?> -
Name of the environment. Only specified if this is an environment webhook.
latefinal
-
filters
↔ Output<
List< WebhookFilters> ?> -
Optional set of filters to apply to the webhook. See webhook docs for more information.
latefinal
-
format
↔ Output<
WebhookFormat> -
Format of the webhook payload. Can be either
raw,slack,ms_teamsorpulumi_deployments. Defaults toraw.latefinal -
groups
↔ Output<
List< WebhookGroup> ?> -
Optional set of filter groups to apply to the webhook. See webhook docs for more information.
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
-
id
↔ Output<
String> -
getter/setter pairinherited
- isCustom → bool
-
Returns whether this resource is provider-managed.
no setterinherited
- isProtected → bool
-
Returns whether this resource is protected from deletion.
no setterinherited
- isRemote → bool
-
Whether this resource is registered as remote.
no setterinherited
- isResourceReference → bool
-
Whether this instance represents a resource value returned over RPC.
finalinherited
-
name
↔ Output<
String> -
Webhook identifier generated by Pulumi Cloud.
latefinal
-
organizationName
↔ Output<
String> -
Name of the organization.
latefinal
-
payloadUrl
↔ Output<
String> -
URL to send request to.
latefinal
-
projectName
↔ Output<
String?> -
Name of the project. Only specified if this is a stack or environment webhook.
latefinal
-
resourceTransforms
→ List<
ResourceTransform> -
Inherited/explicit async transforms.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
secret
↔ Output<
String?> -
Optional. secret used as the HMAC key. See webhook docs for more information.
latefinal
-
stackName
↔ Output<
String?> -
Name of the stack. Only needed if this is a stack webhook.
latefinal
-
transformations
→ List<
ResourceTransformation> -
Inherited/explicit legacy transformations.
no setterinherited
-
urn
↔ Output<
String> -
latefinalinherited
Methods
-
failId(
Object error) → void -
Completes this resource ID with an error when registration fails.
inherited
-
failOutputs(
Object error) → void -
Completes all output properties with
error.inherited -
failUrn(
Object error) → void -
Completes this resource URN with an error when registration fails.
inherited
-
getProvider(
String moduleMember) → ProviderResource? -
Returns provider for
moduleMember's package, if configured.inherited -
getResourceName(
) → String -
Returns this resource's logical name.
inherited
-
getResourceType(
) → String -
Returns this resource's Pulumi type token.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerOutput<
T> (String propertyName, {Object? decoder(Object?)?, bool isSecret = false}) → Output< T> -
Registers a dynamic output property for this resource.
inherited
-
resolveId(
String? value, {required bool isKnown}) → void -
Resolves the provider-assigned ID for this resource.
inherited
-
resolveOutputs(
Struct outputs) → void -
Resolves all output properties from a monitor response payload.
inherited
-
resolveUrn(
String value) → void -
Resolves this resource's URN once assigned by the engine.
inherited
-
serializeProperties(
Map< String, dynamic> properties) → Future<Struct> -
Serializes resource properties for RPC transmission.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited