# NewNatsTrigger
## Properties
**path** | **String** | The unique path identifier for this trigger |
**script_path** | **String** | Path to the script or flow to execute when a message is received |
**is_flow** | **bool** | True if script_path points to a flow, false if it points to a script |
**nats_resource_path** | **String** | Path to the NATS resource containing connection configuration |
**use_jetstream** | **bool** | If true, uses NATS JetStream for durable message delivery |
**stream_name** | Option<**String**> | JetStream stream name (required when use_jetstream is true) | [optional]
**consumer_name** | Option<**String**> | JetStream consumer name (required when use_jetstream is true) | [optional]
**subjects** | **Vec<String>** | Array of NATS subjects to subscribe to |
**mode** | Option<[**models::TriggerMode**](TriggerMode.md)> | | [optional]
**error_handler_path** | Option<**String**> | Path to a script or flow to run when the triggered job fails | [optional]
**error_handler_args** | Option<[**std::collections::HashMap<String, serde_json::Value>**](serde_json::Value.md)> | The arguments to pass to the script or flow | [optional]
**retry** | Option<[**models::Retry**](Retry.md)> | | [optional]
**permissioned_as** | Option<**String**> | The user or group this trigger runs as. Used during deployment to preserve the original trigger owner. | [optional]
**preserve_permissioned_as** | Option<**bool**> | When true and the caller is a member of the 'wm_deployers' group, preserves the original permissioned_as value instead of overwriting it. | [optional]
**labels** | Option<**Vec<String>**> | | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)