windmill_api/models/
edit_sqs_trigger.rs

1/*
2 * Windmill API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.501.1
7 * Contact: contact@windmill.dev
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct EditSqsTrigger {
16    #[serde(rename = "queue_url")]
17    pub queue_url: String,
18    #[serde(rename = "aws_auth_resource_type")]
19    pub aws_auth_resource_type: models::AwsAuthResourceType,
20    #[serde(rename = "aws_resource_path")]
21    pub aws_resource_path: String,
22    #[serde(rename = "message_attributes", skip_serializing_if = "Option::is_none")]
23    pub message_attributes: Option<Vec<String>>,
24    #[serde(rename = "path")]
25    pub path: String,
26    #[serde(rename = "script_path")]
27    pub script_path: String,
28    #[serde(rename = "is_flow")]
29    pub is_flow: bool,
30    #[serde(rename = "enabled")]
31    pub enabled: bool,
32}
33
34impl EditSqsTrigger {
35    pub fn new(queue_url: String, aws_auth_resource_type: models::AwsAuthResourceType, aws_resource_path: String, path: String, script_path: String, is_flow: bool, enabled: bool) -> EditSqsTrigger {
36        EditSqsTrigger {
37            queue_url,
38            aws_auth_resource_type,
39            aws_resource_path,
40            message_attributes: None,
41            path,
42            script_path,
43            is_flow,
44            enabled,
45        }
46    }
47}
48