vaultrs/api/aws/
responses.rsuse serde::{Deserialize, Serialize};
#[derive(Deserialize, Debug, Serialize)]
pub struct GetConfigurationResponse {
pub access_key: String,
pub region: String,
pub iam_endpoint: String,
pub sts_endpoint: String,
pub max_retries: u32,
}
#[derive(Deserialize, Debug, Serialize)]
pub struct RotateRootCredentialsResponse {
pub access_key: String,
}
#[derive(Deserialize, Debug, Serialize)]
pub struct ReadLeaseResponse {
pub lease: String,
pub lease_max: String,
}
#[derive(Deserialize, Debug, Serialize)]
pub struct ReadRoleResponse {
pub policy_document: Option<String>,
pub policy_arns: Option<Vec<String>>,
pub credential_type: String,
pub role_arns: Option<Vec<String>>,
pub iam_groups: Option<Vec<String>>,
}
#[derive(Deserialize, Debug, Serialize)]
pub struct ListRolesResponse {
pub keys: Vec<String>,
}
#[derive(Deserialize, Debug, Serialize)]
pub struct GenerateCredentialsResponse {
pub access_key: String,
pub secret_key: String,
pub security_token: Option<String>,
pub arn: String,
}