import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../../types/input"; import * as outputs from "../../types/output"; import * as enums from "../../types/enums"; /** * Creates a managed instance group using the information that you specify in the request. After the group is created, instances in the group are created using the specified instance template. This operation is marked as DONE when the group is created even if the instances in the group have not yet been created. You must separately verify the status of the individual instances with the listmanagedinstances method. A managed instance group can have up to 1000 VM instances per group. Please contact Cloud Support if you need an increase in this limit. */ export declare class InstanceGroupManager extends pulumi.CustomResource { /** * Get an existing InstanceGroupManager resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, opts?: pulumi.CustomResourceOptions): InstanceGroupManager; /** * Returns true if the given object is an instance of InstanceGroupManager. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is InstanceGroupManager; /** * Specifies configuration that overrides the instance template configuration for the group. */ readonly allInstancesConfig: pulumi.Output; /** * The autohealing policy for this managed instance group. You can specify only one value. */ readonly autoHealingPolicies: pulumi.Output; /** * 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. */ readonly baseInstanceName: pulumi.Output; /** * The creation timestamp for this managed instance group in RFC3339 text format. */ readonly creationTimestamp: pulumi.Output; /** * The list of instance actions and the number of instances in this managed instance group that are scheduled for each of those actions. */ readonly currentActions: pulumi.Output; /** * An optional description of this resource. */ readonly description: pulumi.Output; /** * Policy specifying the intended distribution of managed instances across zones in a regional managed instance group. */ readonly distributionPolicy: pulumi.Output; /** * The action to perform in case of zone failure. Only one value is supported, NO_FAILOVER. The default is NO_FAILOVER. */ readonly failoverAction: pulumi.Output; /** * Fingerprint of this resource. This field may be used in optimistic locking. It will be ignored when inserting an InstanceGroupManager. An up-to-date fingerprint must be provided in order to update the InstanceGroupManager, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve an InstanceGroupManager. */ readonly fingerprint: pulumi.Output; /** * Instance flexibility allowing MIG to create VMs from multiple types of machines. Instance flexibility configuration on MIG overrides instance template configuration. */ readonly instanceFlexibilityPolicy: pulumi.Output; /** * The URL of the Instance Group resource. */ readonly instanceGroup: pulumi.Output; /** * The repair policy for this managed instance group. */ readonly instanceLifecyclePolicy: pulumi.Output; /** * 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. */ readonly instanceTemplate: pulumi.Output; /** * The resource type, which is always compute#instanceGroupManager for managed instance groups. */ readonly kind: pulumi.Output; /** * Pagination behavior of the listManagedInstances API method for this managed instance group. */ readonly listManagedInstancesResults: pulumi.Output; /** * The name of the managed instance group. The name must be 1-63 characters long, and comply with RFC1035. */ readonly name: pulumi.Output; /** * Named ports configured for the Instance Groups complementary to this Instance Group Manager. */ readonly namedPorts: pulumi.Output; readonly project: pulumi.Output; /** * The URL of the region where the managed instance group resides (for regional resources). */ readonly region: pulumi.Output; /** * 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). */ readonly requestId: pulumi.Output; /** * The URL for this managed instance group. The server defines this URL. */ readonly selfLink: pulumi.Output; /** * Server-defined URL for this resource with the resource id. */ readonly selfLinkWithId: pulumi.Output; /** * 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. */ readonly serviceAccount: pulumi.Output; /** * Standby policy for stopped and suspended instances. */ readonly standbyPolicy: pulumi.Output; /** * Stateful configuration for this Instanced Group Manager */ readonly statefulPolicy: pulumi.Output; /** * The status of this managed instance group. */ readonly status: pulumi.Output; /** * 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. */ readonly targetPools: pulumi.Output; /** * 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. */ readonly targetSize: pulumi.Output; /** * The unit of measure for the target size. */ readonly targetSizeUnit: pulumi.Output; /** * 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. */ readonly targetStoppedSize: pulumi.Output; /** * 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. */ readonly targetSuspendedSize: pulumi.Output; /** * The update policy for this managed instance group. */ readonly updatePolicy: pulumi.Output; /** * 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. */ readonly versions: pulumi.Output; readonly zone: pulumi.Output; /** * Create a InstanceGroupManager resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args?: InstanceGroupManagerArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a InstanceGroupManager resource. */ export interface InstanceGroupManagerArgs { /** * Specifies configuration that overrides the instance template configuration for the group. */ allInstancesConfig?: pulumi.Input; /** * The autohealing policy for this managed instance group. You can specify only one value. */ autoHealingPolicies?: pulumi.Input[]>; /** * 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. */ baseInstanceName?: pulumi.Input; /** * An optional description of this resource. */ description?: pulumi.Input; /** * Policy specifying the intended distribution of managed instances across zones in a regional managed instance group. */ distributionPolicy?: pulumi.Input; /** * The action to perform in case of zone failure. Only one value is supported, NO_FAILOVER. The default is NO_FAILOVER. */ failoverAction?: pulumi.Input; /** * Instance flexibility allowing MIG to create VMs from multiple types of machines. Instance flexibility configuration on MIG overrides instance template configuration. */ instanceFlexibilityPolicy?: pulumi.Input; /** * The repair policy for this managed instance group. */ instanceLifecyclePolicy?: pulumi.Input; /** * 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. */ instanceTemplate?: pulumi.Input; /** * Pagination behavior of the listManagedInstances API method for this managed instance group. */ listManagedInstancesResults?: pulumi.Input; /** * The name of the managed instance group. The name must be 1-63 characters long, and comply with RFC1035. */ name?: pulumi.Input; /** * Named ports configured for the Instance Groups complementary to this Instance Group Manager. */ namedPorts?: pulumi.Input[]>; project?: pulumi.Input; /** * 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). */ requestId?: pulumi.Input; /** * 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. */ serviceAccount?: pulumi.Input; /** * Standby policy for stopped and suspended instances. */ standbyPolicy?: pulumi.Input; /** * Stateful configuration for this Instanced Group Manager */ statefulPolicy?: pulumi.Input; /** * 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. */ targetPools?: pulumi.Input[]>; /** * 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. */ targetSize?: pulumi.Input; /** * The unit of measure for the target size. */ targetSizeUnit?: pulumi.Input; /** * 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. */ targetStoppedSize?: pulumi.Input; /** * 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. */ targetSuspendedSize?: pulumi.Input; /** * The update policy for this managed instance group. */ updatePolicy?: pulumi.Input; /** * 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. */ versions?: pulumi.Input[]>; zone?: pulumi.Input; }