OptionalretriggerOptionalstatusEnable/disable flag. Defaults to "enabled" when absent (backend default).
Adds an action target to this automation. The instance is updated only after the API call succeeds.
The action target to add.
A promise that resolves with the API response.
Adds a condition (trigger id) to this automation. The instance is updated only after the API call succeeds.
The trigger id to add to conditions.
A promise that resolves with the API response.
Deletes this automation. After a successful delete, the instance is stale — callers should discard it.
Calls DELETE /v1/groups/{groupId}/service/automations/{automationId}.
A promise that resolves with the API response when the automation is successfully deleted.
Removes an action from this automation by index. The instance is updated only after the API call succeeds.
The index of the action to remove.
A promise that resolves with the API response.
Removes a condition (trigger id) from this automation. The instance is updated only after the API call succeeds.
The trigger id to remove from conditions.
A promise that resolves with the API response.
Updates this automation with partial changes. id cannot be changed.
Calls PUT /v1/groups/{groupId}/service/automations/{automationId}.
Partial automation fields to update.
A promise that resolves with the API response when the automation is successfully updated.
Represents an automation in the ESP Rainmaker Neo SDK. Provides instance methods for automation operations.