use chrono::{DateTime, Utc};
#[derive(Debug, Clone)]
pub struct Subscription {
pub start_time: DateTime<Utc>,
pub end_time: Option<DateTime<Utc>>,
pub time_commitment_in_seconds: i64,
pub auto_renew: AutoRenew,
pub subscription_arn: String,
}
#[derive(Debug, Clone, PartialEq)]
pub enum AutoRenew {
Enabled,
Disabled,
}
impl AutoRenew {
pub fn as_str(&self) -> &str {
match self {
AutoRenew::Enabled => "ENABLED",
AutoRenew::Disabled => "DISABLED",
}
}
}
#[derive(Debug, Clone)]
pub struct Protection {
pub id: String,
pub name: String,
pub resource_arn: String,
pub protection_arn: String,
pub health_check_ids: Vec<String>,
pub tags: Vec<Tag>,
}
#[derive(Debug, Clone)]
pub struct Tag {
pub key: String,
pub value: String,
}