Skip to main content

winterbaume_accessanalyzer/
types.rs

1use std::collections::HashMap;
2
3/// An IAM Access Analyzer analyzer.
4#[derive(Debug, Clone)]
5pub struct Analyzer {
6    pub arn: String,
7    pub name: String,
8    pub analyzer_type: String,
9    pub status: String,
10    pub created_at: String,
11    pub tags: HashMap<String, String>,
12}
13
14/// An archive rule associated with an analyzer.
15#[derive(Debug, Clone)]
16pub struct ArchiveRule {
17    pub rule_name: String,
18    pub filter: HashMap<String, CriterionValue>,
19    pub created_at: String,
20    pub updated_at: String,
21}
22
23/// A filter criterion value used in archive rules.
24#[derive(Debug, Clone)]
25pub struct CriterionValue {
26    pub eq: Option<Vec<String>>,
27    pub neq: Option<Vec<String>>,
28    pub contains: Option<Vec<String>>,
29    pub exists: Option<bool>,
30}