amazon_spapi/models/notifications/event_bridge_resource.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/// EventBridgeResource : The Amazon EventBridge destination.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct EventBridgeResource {
17 /// The name of the partner event source associated with the destination.
18 #[serde(rename = "name")]
19 pub name: String,
20 /// The AWS region in which you receive the notifications. For AWS regions that are supported in Amazon EventBridge, refer to [Amazon EventBridge endpoints and quotas](https://docs.aws.amazon.com/general/latest/gr/ev.html).
21 #[serde(rename = "region")]
22 pub region: String,
23 /// The identifier for the AWS account that is responsible for charges related to receiving notifications.
24 #[serde(rename = "accountId")]
25 pub account_id: String,
26}
27
28impl EventBridgeResource {
29 /// The Amazon EventBridge destination.
30 pub fn new(name: String, region: String, account_id: String) -> EventBridgeResource {
31 EventBridgeResource {
32 name,
33 region,
34 account_id,
35 }
36 }
37}
38