#[non_exhaustive]pub struct TerragruntConfig {
pub component_dir: Arc<Path>,
pub effective_locals: Map,
pub inputs: Map,
pub includes: Vec<IncludePath>,
pub generates: Vec<GenerateBlock>,
pub dependencies: Vec<DependencyBlock>,
pub state_backend: Option<StateBackend>,
pub diagnostics: Vec<Diagnostic>,
}Expand description
Per-component Terragrunt configuration.
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.component_dir: Arc<Path>Component directory (absolute path).
effective_locals: MapLocals post-cascade merge. Drives the evaluator context for the
component’s .tf files.
inputs: MapResolved inputs { ... } from the component’s terragrunt.hcl.
includes: Vec<IncludePath>Include chain (deepest last).
generates: Vec<GenerateBlock>generate "label" { ... } blocks captured for downstream consumers.
dependencies: Vec<DependencyBlock>dependency "label" { ... } blocks.
state_backend: Option<StateBackend>State backend extracted from terraform { backend ... } or
generate "backend".
diagnostics: Vec<Diagnostic>Non-fatal diagnostics emitted during resolution.
Implementations§
Source§impl TerragruntConfig
impl TerragruntConfig
Sourcepub fn builder() -> TerragruntConfigBuilder<((), (), (), (), (), (), (), ())>
pub fn builder() -> TerragruntConfigBuilder<((), (), (), (), (), (), (), ())>
Create a builder for building TerragruntConfig.
On the builder, call .component_dir(...), .effective_locals(...)(optional), .inputs(...)(optional), .includes(...)(optional), .generates(...)(optional), .dependencies(...)(optional), .state_backend(...)(optional), .diagnostics(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of TerragruntConfig.
Trait Implementations§
Source§impl Clone for TerragruntConfig
impl Clone for TerragruntConfig
Source§fn clone(&self) -> TerragruntConfig
fn clone(&self) -> TerragruntConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TerragruntConfig
impl Debug for TerragruntConfig
Source§impl<'de> Deserialize<'de> for TerragruntConfig
impl<'de> Deserialize<'de> for TerragruntConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for TerragruntConfig
impl PartialEq for TerragruntConfig
Source§fn eq(&self, other: &TerragruntConfig) -> bool
fn eq(&self, other: &TerragruntConfig) -> bool
self and other values to be equal, and is used by ==.