amazon_spapi/models/notifications/
event_bridge_resource_specification.rs

1/*
2 * Selling Partner API for Notifications
3 *
4 * The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner's business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more.  For more information, refer to the [Notifications Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide).
5 *
6 * The version of the OpenAPI document: v1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// EventBridgeResourceSpecification : The information required to create an Amazon EventBridge destination.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct EventBridgeResourceSpecification {
17    /// The AWS region in which you will be receiving the notifications.
18    #[serde(rename = "region")]
19    pub region: String,
20    /// The identifier for the AWS account that is responsible for charges related to receiving notifications.
21    #[serde(rename = "accountId")]
22    pub account_id: String,
23}
24
25impl EventBridgeResourceSpecification {
26    /// The information required to create an Amazon EventBridge destination.
27    pub fn new(region: String, account_id: String) -> EventBridgeResourceSpecification {
28        EventBridgeResourceSpecification {
29            region,
30            account_id,
31        }
32    }
33}
34