RegionInstanceGroupManagerVersion class

One entry in versions. Each version pins an instanceTemplate (a google_compute_instance_template self-link, typically a within-batch sibling) and optionally caps how many instances run that version via targetSize.

Multiple RegionInstanceGroupManagerVersion entries enable canary rollouts: the MIG splits the total GoogleComputeRegionInstanceGroupManager.targetSize across versions based on each version's targetSize (fixed count or percentage). A version without targetSize absorbs the remainder.

Annotations
  • @immutable

Constructors

RegionInstanceGroupManagerVersion({required TfArg<String> instanceTemplate, TfArg<String>? name, RegionInstanceGroupManagerVersionTargetSize? targetSize})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
instanceTemplate → TfArg<String>
Self-link of the google_compute_instance_template resource used to create members of this version.
final
name → TfArg<String>?
Optional version label. Used in API listings and logs.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
targetSize RegionInstanceGroupManagerVersionTargetSize?
Cap on how many instances run this version (fixed or percent).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toArgMap() Map<String, Object?>
toString() String
A string representation of this object.
inherited

Operators

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