InstanceGroupArgs

data class InstanceGroupArgs(val description: Output<String>? = null, val instances: Output<List<String>>? = null, val name: Output<String>? = null, val namedPorts: Output<List<InstanceGroupNamedPortArgs>>? = null, val network: Output<String>? = null, val project: Output<String>? = null, val zone: Output<String>? = null) : ConvertibleToJava<InstanceGroupArgs>

Import

Instance group can be imported using the zone and name with an optional project, e.g.

$ pulumi import gcp:compute/instanceGroup:InstanceGroup webservers us-central1-a/terraform-webservers
$ pulumi import gcp:compute/instanceGroup:InstanceGroup webservers big-project/us-central1-a/terraform-webservers
$ pulumi import gcp:compute/instanceGroup:InstanceGroup webservers projects/big-project/zones/us-central1-a/instanceGroups/terraform-webservers

Constructors

Link copied to clipboard
fun InstanceGroupArgs(description: Output<String>? = null, instances: Output<List<String>>? = null, name: Output<String>? = null, namedPorts: Output<List<InstanceGroupNamedPortArgs>>? = null, network: Output<String>? = null, project: Output<String>? = null, zone: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): InstanceGroupArgs

Properties

Link copied to clipboard
val description: Output<String>? = null

An optional textual description of the instance group.

Link copied to clipboard
val instances: Output<List<String>>? = null

The list of instances in the group, in self_link format. When adding instances they must all be in the same network and zone as the instance group.

Link copied to clipboard
val name: Output<String>? = null

The name of the instance group. Must be 1-63 characters long and comply with RFC1035. Supported characters include lowercase letters, numbers, and hyphens.

Link copied to clipboard

The named port configuration. See the section below for details on configuration. Structure is documented below.

Link copied to clipboard
val network: Output<String>? = null

The URL of the network the instance group is in. If this is different from the network where the instances are in, the creation fails. Defaults to the network where the instances are in (if neither network nor instances is specified, this field will be blank).

Link copied to clipboard
val project: Output<String>? = null

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Link copied to clipboard
val zone: Output<String>? = null

The zone that this instance group should be created in.