/*
 * Orvanta API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.2.0
 * Contact: contact@orvanta.cloud
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct AwsSecretsManagerSettings {
    /// AWS region (e.g., us-east-1)
    #[serde(rename = "region")]
    pub region: String,
    /// AWS Access Key ID (optional, uses default credential chain if not provided)
    #[serde(rename = "access_key_id", skip_serializing_if = "Option::is_none")]
    pub access_key_id: Option<String>,
    /// AWS Secret Access Key (optional)
    #[serde(rename = "secret_access_key", skip_serializing_if = "Option::is_none")]
    pub secret_access_key: Option<String>,
    /// Custom endpoint URL for testing (e.g., LocalStack)
    #[serde(rename = "endpoint_url", skip_serializing_if = "Option::is_none")]
    pub endpoint_url: Option<String>,
    /// Prefix for secret names (e.g., orvanta/)
    #[serde(rename = "prefix", skip_serializing_if = "Option::is_none")]
    pub prefix: Option<String>,
}

impl AwsSecretsManagerSettings {
    pub fn new(region: String) -> AwsSecretsManagerSettings {
        AwsSecretsManagerSettings {
            region,
            access_key_id: None,
            secret_access_key: None,
            endpoint_url: None,
            prefix: None,
        }
    }
}

