pub trait ProviderResolver:
Send
+ Sync
+ Debug {
// Required method
fn resolve(&self, ws: &mut Workspace, ctx: &ProviderContext) -> Result<()>;
}Expand description
Trait the orchestrator (Phase 9 CLI) calls. Phase 7 ships exactly one
implementation, DefaultProviderResolver; downstream tests may
swap in a stub.
Required Methods§
Sourcefn resolve(&self, ws: &mut Workspace, ctx: &ProviderContext) -> Result<()>
fn resolve(&self, ws: &mut Workspace, ctx: &ProviderContext) -> Result<()>
Fill account_id / account_name / region (resources) and
state_account_id / state_region (state backends) per spec § 4.
§Errors
Returns ProviderError::StrictUnresolved only when
ctx.strict == true and at least one profile cannot be mapped.
All other anomalies (alias-not-found, malformed role ARN) attach
to ws.diagnostics and the call returns Ok(()).