wami-core
Core primitives shared across the WAMI workspace. This crate contains the fundamental building blocks that other crates depend on, such as ARN parsing, execution context, error handling, and shared types.
Features
- ARN System – Builders, parsers, and transformers for multi-cloud WAMI ARNs (AWS, GCP, Azure, Scaleway, custom).
- Execution Context –
WamiContextand session metadata used to scope operations. - Error Handling –
AmiError, helper utilities, and theResultalias used across the workspace. - Shared Types – Strongly typed structures for policies, pagination, provider metadata, and more.
Modules
arn– Builders, parsers, and transformers for WAMI ARNs.context– Authentication/authorization context and session info.error– Core error types and helper utilities.types– Shared data structures (policy documents, pagination, etc.).
Usage
Add the dependency in your Cargo.toml:
[]
= { = "../wami-core" }
Example:
use ;
use WamiContext;
let context = builder
.instance_id
.tenant_path
.caller_arn
.is_root
.build
.unwrap;
License
Licensed under MIT. See ../LICENSE for details.