macro_rules! cloudwatch_error { ($code:ident) => { ... }; ($code:ident, $msg:expr) => { ... }; }
Create an CloudWatchError from an error code.
CloudWatchError
let err = cloudwatch_error!(ConcurrentModificationException); assert_eq!(err.code, CloudWatchErrorCode::ConcurrentModificationException);