MmResourceOverrides class

Output of the Magic Modules YAML parser.

Only the fields we currently consume are populated:

  • forceNew (from immutable: true)
  • regex, minLength, maxLength (from validation)
  • enumValues (from enum_values)
  • deprecationMessage (from deprecation_message)

Constructors

MmResourceOverrides({required Map<String, Constraints> fieldOverrides, String? description, String? product, List<List<String>> exactlyOneOfGroups = const []})
const

Properties

description String?
Top-level YAML description, if any.
final
exactlyOneOfGroups List<List<String>>
exactly_one_of groups (top-level + nested merged into one flat list). Each inner list is one mutually-exclusive set of property names, recorded in snake_case Terraform path form (e.g. 'foo.foo_a' for a nested group). Consumed by terradart wrap-promote to generate sealed-class skeletons in the prelude block.
final
fieldOverrides Map<String, Constraints>
Keyed by Terraform snake_case path: a flat field is 'name', a nested field is 'schema_settings.encoding'. Each value carries only the constraint bits MM YAML actually contributes.
final
hashCode int
The hash code for this object.
no setterinherited
product String?
Top-level YAML product field, if any. Used by terradart wrap-init to derive outputDir defaults from the Magic Modules product folder.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited