HookOperations
Class Webhook operations.
Properties
| Name | Type | Description |
|---|---|---|
send | Send | - |
Members
constructor
(send: Send) => HookOperations
Parameters
| Name | Type | Description |
|---|---|---|
send | Send | - |
create
(request: { apis: object; hookUrl: string }) => Promise
Registers a hook URL; the endpoint must confirm the SNS subscription.
Parameters
| Name | Type | Description |
|---|---|---|
request | { apis: object; hookUrl: string } | - |
delete
(hookUrl: string) => Promise
Deletes a hook.
Parameters
| Name | Type | Description |
|---|---|---|
hookUrl | string | - |
get
(hookUrl: string) => Promise
Gets one hook by its URL.
Parameters
| Name | Type | Description |
|---|---|---|
hookUrl | string | - |
list
() => Promise
Lists the registered hooks.
update
(hookUrl: string, apis: object) => Promise
Changes which APIs' events are sent to the hook.
Parameters
| Name | Type | Description |
|---|---|---|
hookUrl | string | - |
apis | object | - |
Source: carmen-cloud/index.ts:353