Skip to main content

aws_lambda_events/event/cloudwatch_events/
codedeploy.rs

1#[cfg(feature = "builders")]
2use bon::Builder;
3use serde::{Deserialize, Serialize};
4#[cfg(feature = "catch-all-fields")]
5use serde_json::Value;
6
7#[non_exhaustive]
8#[cfg_attr(feature = "builders", derive(Builder))]
9#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
10#[serde(rename_all = "camelCase")]
11pub struct StateChangeNotification {
12    pub instance_group_id: String,
13    pub region: String,
14    pub application: String,
15    pub deployment_id: String,
16    pub state: String,
17    pub deployment_group: String,
18    /// Catchall to catch any additional fields that were present but not explicitly defined by this struct.
19    /// Enabled with Cargo feature `catch-all-fields`.
20    /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored.
21    #[cfg(feature = "catch-all-fields")]
22    #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))]
23    #[serde(flatten)]
24    #[cfg_attr(feature = "builders", builder(default))]
25    pub other: serde_json::Map<String, Value>,
26}
27
28#[non_exhaustive]
29#[cfg_attr(feature = "builders", derive(Builder))]
30#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
31#[serde(rename_all = "camelCase")]
32pub struct DeploymentStateChangeNotification {
33    pub instance_id: String,
34    pub region: String,
35    pub state: String,
36    pub application: String,
37    pub deployment_id: String,
38    pub instance_group_id: String,
39    pub deployment_group: String,
40    /// Catchall to catch any additional fields that were present but not explicitly defined by this struct.
41    /// Enabled with Cargo feature `catch-all-fields`.
42    /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored.
43    #[cfg(feature = "catch-all-fields")]
44    #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))]
45    #[serde(flatten)]
46    #[cfg_attr(feature = "builders", builder(default))]
47    pub other: serde_json::Map<String, Value>,
48}
49
50#[non_exhaustive]
51#[cfg_attr(feature = "builders", derive(Builder))]
52#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
53#[serde(rename_all = "camelCase")]
54pub struct InstanceStateChangeNotification {
55    pub pipeline: String,
56    pub version: String,
57    pub state: String,
58    #[serde(rename = "execution-id")]
59    pub execution_id: String,
60    /// Catchall to catch any additional fields that were present but not explicitly defined by this struct.
61    /// Enabled with Cargo feature `catch-all-fields`.
62    /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored.
63    #[cfg(feature = "catch-all-fields")]
64    #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))]
65    #[serde(flatten)]
66    #[cfg_attr(feature = "builders", builder(default))]
67    pub other: serde_json::Map<String, Value>,
68}