Skip to main content

akeyless_api/models/
awsiam_access_rules.rs

1/*
2 * Akeyless API
3 *
4 * The purpose of this application is to provide access to Akeyless API.
5 *
6 * The version of the OpenAPI document: 3.0
7 * Contact: support@akeyless.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct AwsiamAccessRules {
16    /// The list of account ids that the login is restricted to.
17    #[serde(rename = "account_id", skip_serializing_if = "Option::is_none")]
18    pub account_id: Option<Vec<String>>,
19    /// The list of ARNs that the login is restricted to.
20    #[serde(rename = "arn", skip_serializing_if = "Option::is_none")]
21    pub arn: Option<Vec<String>>,
22    /// The list of resource ids that the login is restricted to.
23    #[serde(rename = "resource_id", skip_serializing_if = "Option::is_none")]
24    pub resource_id: Option<Vec<String>>,
25    /// The list of role ids that the login is restricted to.
26    #[serde(rename = "role_id", skip_serializing_if = "Option::is_none")]
27    pub role_id: Option<Vec<String>>,
28    /// The list of role names that the login is restricted to.
29    #[serde(rename = "role_name", skip_serializing_if = "Option::is_none")]
30    pub role_name: Option<Vec<String>>,
31    /// The sts URL.
32    #[serde(rename = "sts_endpoint", skip_serializing_if = "Option::is_none")]
33    pub sts_endpoint: Option<String>,
34    /// A unique identifier to distinguish different users
35    #[serde(rename = "unique_identifier", skip_serializing_if = "Option::is_none")]
36    pub unique_identifier: Option<String>,
37    /// The list of user ids that the login is restricted to.
38    #[serde(rename = "user_id", skip_serializing_if = "Option::is_none")]
39    pub user_id: Option<Vec<String>>,
40    /// The list of user names that the login is restricted to.
41    #[serde(rename = "user_name", skip_serializing_if = "Option::is_none")]
42    pub user_name: Option<Vec<String>>,
43}
44
45impl AwsiamAccessRules {
46    pub fn new() -> AwsiamAccessRules {
47        AwsiamAccessRules {
48            account_id: None,
49            arn: None,
50            resource_id: None,
51            role_id: None,
52            role_name: None,
53            sts_endpoint: None,
54            unique_identifier: None,
55            user_id: None,
56            user_name: None,
57        }
58    }
59}
60