import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../../types/input"; import * as outputs from "../../types/output"; /** * Creates an instance group in the specified project using the parameters that are included in the request. */ export declare class InstanceGroup extends pulumi.CustomResource { /** * Get an existing InstanceGroup 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): InstanceGroup; /** * Returns true if the given object is an instance of InstanceGroup. 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 InstanceGroup; /** * The creation timestamp for this instance group in RFC3339 text format. */ readonly creationTimestamp: pulumi.Output; /** * An optional description of this resource. Provide this property when you create the resource. */ readonly description: pulumi.Output; /** * The fingerprint of the named ports. The system uses this fingerprint to detect conflicts when multiple users change the named ports concurrently. */ readonly fingerprint: pulumi.Output; /** * The resource type, which is always compute#instanceGroup for instance groups. */ readonly kind: pulumi.Output; /** * The name of the instance group. The name must be 1-63 characters long, and comply with RFC1035. */ readonly name: pulumi.Output; /** * Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group. */ readonly namedPorts: pulumi.Output; /** * The URL of the network to which all instances in the instance group belong. If your instance has multiple network interfaces, then the network and subnetwork fields only refer to the network and subnet used by your primary interface (nic0). */ readonly network: pulumi.Output; readonly project: pulumi.Output; /** * The URL of the region where the instance group is located (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 instance group. The server generates this URL. */ readonly selfLink: pulumi.Output; /** * Server-defined URL for this resource with the resource id. */ readonly selfLinkWithId: pulumi.Output; /** * The total number of instances in the instance group. */ readonly size: pulumi.Output; /** * The URL of the subnetwork to which all instances in the instance group belong. If your instance has multiple network interfaces, then the network and subnetwork fields only refer to the network and subnet used by your primary interface (nic0). */ readonly subnetwork: pulumi.Output; readonly zone: pulumi.Output; /** * Create a InstanceGroup 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?: InstanceGroupArgs, opts?: pulumi.CustomResourceOptions); } /** * The set of arguments for constructing a InstanceGroup resource. */ export interface InstanceGroupArgs { /** * An optional description of this resource. Provide this property when you create the resource. */ description?: pulumi.Input; /** * The name of the instance group. The name must be 1-63 characters long, and comply with RFC1035. */ name?: pulumi.Input; /** * Assigns a name to a port number. For example: {name: "http", port: 80} This allows the system to reference ports by the assigned name instead of a port number. Named ports can also contain multiple ports. For example: [{name: "app1", port: 8080}, {name: "app1", port: 8081}, {name: "app2", port: 8082}] Named ports apply to all instances in this instance group. */ 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; zone?: pulumi.Input; }