cumulus 0.0.6

AWS CloudFormation Template Generator
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use thiserror::Error;

#[derive(Debug, Error)]
pub enum Error {
    #[error("Invalid instance type ({0})")]
    InvalidInstanceType(String),
}

impl Error {
    pub(crate) fn invalid_instance_type(r#type: &str) -> Self {
        let r#type = r#type.to_string();
        Self::InvalidInstanceType(r#type)
    }
}