RegionInstanceGroupManagerArgs constructor

const RegionInstanceGroupManagerArgs({
  1. Input<InstanceGroupManagerAllInstancesConfig>? allInstancesConfig,
  2. Input<List<InstanceGroupManagerAutoHealingPolicy>>? autoHealingPolicies,
  3. Input<String>? baseInstanceName,
  4. Input<String>? description,
  5. Input<DistributionPolicy>? distributionPolicy,
  6. Input<RegionInstanceGroupManagerFailoverAction>? failoverAction,
  7. Input<InstanceGroupManagerInstanceFlexibilityPolicy>? instanceFlexibilityPolicy,
  8. Input<InstanceGroupManagerInstanceLifecyclePolicy>? instanceLifecyclePolicy,
  9. Input<String>? instanceTemplate,
  10. Input<RegionInstanceGroupManagerListManagedInstancesResults>? listManagedInstancesResults,
  11. Input<String>? name,
  12. Input<List<NamedPort>>? namedPorts,
  13. Input<String>? project,
  14. required Input<String> region,
  15. Input<String>? requestId,
  16. Input<String>? serviceAccount,
  17. Input<InstanceGroupManagerStandbyPolicy>? standbyPolicy,
  18. Input<StatefulPolicy>? statefulPolicy,
  19. Input<List<String>>? targetPools,
  20. Input<int>? targetSize,
  21. Input<RegionInstanceGroupManagerTargetSizeUnit>? targetSizeUnit,
  22. Input<int>? targetStoppedSize,
  23. Input<int>? targetSuspendedSize,
  24. Input<InstanceGroupManagerUpdatePolicy>? updatePolicy,
  25. Input<List<InstanceGroupManagerVersion>>? versions,
})

Creates a new RegionInstanceGroupManagerArgs. allInstancesConfig Specifies configuration that overrides the instance template configuration for the group. autoHealingPolicies The autohealing policy for this managed instance group. You can specify only one value. baseInstanceName The base instance name to use for instances in this group. The value must be 1-58 characters long. Instances are named by appending a hyphen and a random four-character string to the base instance name. The base instance name must comply with RFC1035. description An optional description of this resource. distributionPolicy Policy specifying the intended distribution of managed instances across zones in a regional managed instance group. failoverAction The action to perform in case of zone failure. Only one value is supported, NO_FAILOVER. The default is NO_FAILOVER. instanceFlexibilityPolicy Instance flexibility allowing MIG to create VMs from multiple types of machines. Instance flexibility configuration on MIG overrides instance template configuration. instanceLifecyclePolicy The repair policy for this managed instance group. instanceTemplate The URL of the instance template that is specified for this managed instance group. The group uses this template to create all new instances in the managed instance group. The templates for existing instances in the group do not change unless you run recreateInstances, run applyUpdatesToInstances, or set the group's updatePolicy.type to PROACTIVE. listManagedInstancesResults Pagination behavior of the listManagedInstances API method for this managed instance group. name The name of the managed instance group. The name must be 1-63 characters long, and comply with RFC1035. namedPorts Named ports configured for the Instance Groups complementary to this Instance Group Manager. project Optional. region Required. requestId An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000). serviceAccount The service account to be used as credentials for all operations performed by the managed instance group on instances. The service accounts needs all permissions required to create and delete instances. By default, the service account {projectNumber}@cloudservices.gserviceaccount.com is used. standbyPolicy Standby policy for stopped and suspended instances. statefulPolicy Stateful configuration for this Instanced Group Manager targetPools The URLs for all TargetPool resources to which instances in the instanceGroup field are added. The target pools automatically apply to all of the instances in the managed instance group. targetSize The target number of running instances for this managed instance group. You can reduce this number by using the instanceGroupManager deleteInstances or abandonInstances methods. Resizing the group also changes this number. targetSizeUnit The unit of measure for the target size. targetStoppedSize The target number of stopped instances for this managed instance group. This number changes when you: - Stop instance using the stopInstances method or start instances using the startInstances method. - Manually change the targetStoppedSize using the update method. targetSuspendedSize The target number of suspended instances for this managed instance group. This number changes when you: - Suspend instance using the suspendInstances method or resume instances using the resumeInstances method. - Manually change the targetSuspendedSize using the update method. updatePolicy The update policy for this managed instance group. versions Specifies the instance templates used by this managed instance group to create instances. Each version is defined by an instanceTemplate and a name. Every version can appear at most once per instance group. This field overrides the top-level instanceTemplate field. Read more about the relationships between these fields. Exactly one version must leave the targetSize field unset. That version will be applied to all remaining instances. For more information, read about canary updates.

Implementation

const RegionInstanceGroupManagerArgs({
  this.allInstancesConfig,
  this.autoHealingPolicies,
  this.baseInstanceName,
  this.description,
  this.distributionPolicy,
  this.failoverAction,
  this.instanceFlexibilityPolicy,
  this.instanceLifecyclePolicy,
  this.instanceTemplate,
  this.listManagedInstancesResults,
  this.name,
  this.namedPorts,
  this.project,
  required this.region,
  this.requestId,
  this.serviceAccount,
  this.standbyPolicy,
  this.statefulPolicy,
  this.targetPools,
  this.targetSize,
  this.targetSizeUnit,
  this.targetStoppedSize,
  this.targetSuspendedSize,
  this.updatePolicy,
  this.versions,
});