rusty-cdk-macros 0.4.1

Macros of the rusty-cdk
Documentation

This crate provides compile-time validation macros for AWS cloud infrastructure configuration. These macros ensure type safety and enforce AWS service limits at build time, preventing runtime errors from invalid configurations.

Overview

All macros perform validation at compile time and generate wrapper types that encapsulate validated values.

The macros always return a newtype 'wrapper'. You should import those from the rusty_cdk::wrappers directory, as seen in the below example.

Usage Example

use rusty_cdk::wrappers::Memory; // import the wrapper
use rusty_cdk::memory;

// Lambda memory configuration with validated limit
let mem = memory!(512);        // 512 MB (128-10240 range)