#[non_exhaustive]pub struct Parser {
pub pipeline_options: PipelineOptions,
pub profile_map: Option<Arc<ProfileMap>>,
pub default_region: Option<Region>,
pub strict_providers: bool,
}Expand description
High-level wrapper around DefaultPipeline + ParquetExporter.
Configure via Parser::builder; run via Parser::parse (workspace
only) or Parser::parse_and_export (workspace plus Parquet output).
The struct is cheap to clone (every field is an Arc or Copy).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.pipeline_options: PipelineOptionsPipeline-level configuration (workspace root, limits, env mode, vars).
profile_map: Option<Arc<ProfileMap>>Optional AWS profile-map driving the provider resolver.
default_region: Option<Region>Default region used when neither provider blocks nor Terragrunt cascade supply one.
strict_providers: boolWhether the provider resolver fails when a referenced profile is
missing from profile_map.
Implementations§
Source§impl Parser
impl Parser
Sourcepub fn builder() -> ParserBuilder
pub fn builder() -> ParserBuilder
Start a builder. workspace_root(...) is the only required field.
Sourcepub fn parse_and_export(
&self,
opts: &ExportOptions,
) -> Result<(Workspace, ExportReport)>
pub fn parse_and_export( &self, opts: &ExportOptions, ) -> Result<(Workspace, ExportReport)>
Run the pipeline then write the four canonical Parquet tables.
Equivalent to parse() + ParquetExporter::new().export(&ws, opts),
folded into a single call that hands back both the in-memory
Workspace and the exporter’s ExportReport.
§Errors
Returns Error::Export when the writer fails; otherwise as
Self::parse.