Constraints class final
Per-attribute constraints derived from schema-json + MM YAML.
The fields are populated as follows:
- schema-json: required, optional, computed, sensitive, writeOnly, deprecationMessage
- MM YAML: forceNew (
immutable: true), enumValues, regex, minLength, maxLength, min, max
Constructors
Properties
- computed → bool
-
final
- computedOnly → bool
-
Output-only attribute: the provider computes it and the user cannot set
it (
computedwith neitheroptionalnorrequired). These are excluded from the constructor and exposed asTfRefoutput getters (Phase A3).no setter - deprecationMessage → String?
-
schema-json
deprecated: trueplus optional message; MM YAML may supply a richer string.final -
enumValues
→ List<
String> ? -
Enum members in MM YAML order. Stage 1 emits a Dart enum when non-null.
final
- forceNew → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- max → num?
-
final
- maxLength → int?
-
final
- min → num?
-
final
- minLength → int?
-
final
- optional → bool
-
final
- optionalAndComputed → bool
-
no setter
- regex → String?
-
MM YAML
validators.regex(raw Terraform regex, mapped 1:1 to@StringField(pattern: ...)).final - required → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sensitive → bool
-
final
- writeOnly → bool
-
final
Methods
-
copyWith(
{bool? required, bool? optional, bool? computed, bool? sensitive, bool? writeOnly, bool? forceNew, List< String> ? enumValues, String? regex, num? min, num? max, int? minLength, int? maxLength, String? deprecationMessage}) → Constraints -
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