gcp.spanner.Instance
Explore with Pulumi AI
An isolated set of Cloud Spanner resources on which databases can be hosted.
To get more information about Instance, see:
- API documentation
- How-to Guides
Example Usage
Spanner Instance Basic
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const example = new gcp.spanner.Instance("example", {
    config: "regional-us-central1",
    displayName: "Test Spanner Instance",
    numNodes: 2,
    edition: "STANDARD",
    defaultBackupScheduleType: "AUTOMATIC",
    labels: {
        foo: "bar",
    },
});
import pulumi
import pulumi_gcp as gcp
example = gcp.spanner.Instance("example",
    config="regional-us-central1",
    display_name="Test Spanner Instance",
    num_nodes=2,
    edition="STANDARD",
    default_backup_schedule_type="AUTOMATIC",
    labels={
        "foo": "bar",
    })
package main
import (
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/spanner"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := spanner.NewInstance(ctx, "example", &spanner.InstanceArgs{
			Config:                    pulumi.String("regional-us-central1"),
			DisplayName:               pulumi.String("Test Spanner Instance"),
			NumNodes:                  pulumi.Int(2),
			Edition:                   pulumi.String("STANDARD"),
			DefaultBackupScheduleType: pulumi.String("AUTOMATIC"),
			Labels: pulumi.StringMap{
				"foo": pulumi.String("bar"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() => 
{
    var example = new Gcp.Spanner.Instance("example", new()
    {
        Config = "regional-us-central1",
        DisplayName = "Test Spanner Instance",
        NumNodes = 2,
        Edition = "STANDARD",
        DefaultBackupScheduleType = "AUTOMATIC",
        Labels = 
        {
            { "foo", "bar" },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.spanner.Instance;
import com.pulumi.gcp.spanner.InstanceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        var example = new Instance("example", InstanceArgs.builder()
            .config("regional-us-central1")
            .displayName("Test Spanner Instance")
            .numNodes(2)
            .edition("STANDARD")
            .defaultBackupScheduleType("AUTOMATIC")
            .labels(Map.of("foo", "bar"))
            .build());
    }
}
resources:
  example:
    type: gcp:spanner:Instance
    properties:
      config: regional-us-central1
      displayName: Test Spanner Instance
      numNodes: 2
      edition: STANDARD
      defaultBackupScheduleType: AUTOMATIC
      labels:
        foo: bar
Spanner Instance Processing Units
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const example = new gcp.spanner.Instance("example", {
    config: "regional-us-central1",
    displayName: "Test Spanner Instance",
    processingUnits: 200,
    labels: {
        foo: "bar",
    },
});
import pulumi
import pulumi_gcp as gcp
example = gcp.spanner.Instance("example",
    config="regional-us-central1",
    display_name="Test Spanner Instance",
    processing_units=200,
    labels={
        "foo": "bar",
    })
package main
import (
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/spanner"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := spanner.NewInstance(ctx, "example", &spanner.InstanceArgs{
			Config:          pulumi.String("regional-us-central1"),
			DisplayName:     pulumi.String("Test Spanner Instance"),
			ProcessingUnits: pulumi.Int(200),
			Labels: pulumi.StringMap{
				"foo": pulumi.String("bar"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() => 
{
    var example = new Gcp.Spanner.Instance("example", new()
    {
        Config = "regional-us-central1",
        DisplayName = "Test Spanner Instance",
        ProcessingUnits = 200,
        Labels = 
        {
            { "foo", "bar" },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.spanner.Instance;
import com.pulumi.gcp.spanner.InstanceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        var example = new Instance("example", InstanceArgs.builder()
            .config("regional-us-central1")
            .displayName("Test Spanner Instance")
            .processingUnits(200)
            .labels(Map.of("foo", "bar"))
            .build());
    }
}
resources:
  example:
    type: gcp:spanner:Instance
    properties:
      config: regional-us-central1
      displayName: Test Spanner Instance
      processingUnits: 200
      labels:
        foo: bar
Spanner Instance Multi Regional
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const example = new gcp.spanner.Instance("example", {
    config: "nam-eur-asia1",
    displayName: "Multi Regional Instance",
    numNodes: 2,
    labels: {
        foo: "bar",
    },
});
import pulumi
import pulumi_gcp as gcp
example = gcp.spanner.Instance("example",
    config="nam-eur-asia1",
    display_name="Multi Regional Instance",
    num_nodes=2,
    labels={
        "foo": "bar",
    })
package main
import (
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/spanner"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := spanner.NewInstance(ctx, "example", &spanner.InstanceArgs{
			Config:      pulumi.String("nam-eur-asia1"),
			DisplayName: pulumi.String("Multi Regional Instance"),
			NumNodes:    pulumi.Int(2),
			Labels: pulumi.StringMap{
				"foo": pulumi.String("bar"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() => 
{
    var example = new Gcp.Spanner.Instance("example", new()
    {
        Config = "nam-eur-asia1",
        DisplayName = "Multi Regional Instance",
        NumNodes = 2,
        Labels = 
        {
            { "foo", "bar" },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.spanner.Instance;
import com.pulumi.gcp.spanner.InstanceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        var example = new Instance("example", InstanceArgs.builder()
            .config("nam-eur-asia1")
            .displayName("Multi Regional Instance")
            .numNodes(2)
            .labels(Map.of("foo", "bar"))
            .build());
    }
}
resources:
  example:
    type: gcp:spanner:Instance
    properties:
      config: nam-eur-asia1
      displayName: Multi Regional Instance
      numNodes: 2
      labels:
        foo: bar
Create Instance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Instance(name: string, args: InstanceArgs, opts?: CustomResourceOptions);@overload
def Instance(resource_name: str,
             args: InstanceArgs,
             opts: Optional[ResourceOptions] = None)
@overload
def Instance(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             config: Optional[str] = None,
             display_name: Optional[str] = None,
             autoscaling_config: Optional[InstanceAutoscalingConfigArgs] = None,
             default_backup_schedule_type: Optional[str] = None,
             edition: Optional[str] = None,
             force_destroy: Optional[bool] = None,
             labels: Optional[Mapping[str, str]] = None,
             name: Optional[str] = None,
             num_nodes: Optional[int] = None,
             processing_units: Optional[int] = None,
             project: Optional[str] = None)func NewInstance(ctx *Context, name string, args InstanceArgs, opts ...ResourceOption) (*Instance, error)public Instance(string name, InstanceArgs args, CustomResourceOptions? opts = null)
public Instance(String name, InstanceArgs args)
public Instance(String name, InstanceArgs args, CustomResourceOptions options)
type: gcp:spanner:Instance
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var exampleinstanceResourceResourceFromSpannerinstance = new Gcp.Spanner.Instance("exampleinstanceResourceResourceFromSpannerinstance", new()
{
    Config = "string",
    DisplayName = "string",
    AutoscalingConfig = new Gcp.Spanner.Inputs.InstanceAutoscalingConfigArgs
    {
        AsymmetricAutoscalingOptions = new[]
        {
            new Gcp.Spanner.Inputs.InstanceAutoscalingConfigAsymmetricAutoscalingOptionArgs
            {
                Overrides = new Gcp.Spanner.Inputs.InstanceAutoscalingConfigAsymmetricAutoscalingOptionOverridesArgs
                {
                    AutoscalingLimits = new Gcp.Spanner.Inputs.InstanceAutoscalingConfigAsymmetricAutoscalingOptionOverridesAutoscalingLimitsArgs
                    {
                        MaxNodes = 0,
                        MinNodes = 0,
                    },
                },
                ReplicaSelection = new Gcp.Spanner.Inputs.InstanceAutoscalingConfigAsymmetricAutoscalingOptionReplicaSelectionArgs
                {
                    Location = "string",
                },
            },
        },
        AutoscalingLimits = new Gcp.Spanner.Inputs.InstanceAutoscalingConfigAutoscalingLimitsArgs
        {
            MaxNodes = 0,
            MaxProcessingUnits = 0,
            MinNodes = 0,
            MinProcessingUnits = 0,
        },
        AutoscalingTargets = new Gcp.Spanner.Inputs.InstanceAutoscalingConfigAutoscalingTargetsArgs
        {
            HighPriorityCpuUtilizationPercent = 0,
            StorageUtilizationPercent = 0,
        },
    },
    DefaultBackupScheduleType = "string",
    Edition = "string",
    ForceDestroy = false,
    Labels = 
    {
        { "string", "string" },
    },
    Name = "string",
    NumNodes = 0,
    ProcessingUnits = 0,
    Project = "string",
});
example, err := spanner.NewInstance(ctx, "exampleinstanceResourceResourceFromSpannerinstance", &spanner.InstanceArgs{
	Config:      pulumi.String("string"),
	DisplayName: pulumi.String("string"),
	AutoscalingConfig: &spanner.InstanceAutoscalingConfigArgs{
		AsymmetricAutoscalingOptions: spanner.InstanceAutoscalingConfigAsymmetricAutoscalingOptionArray{
			&spanner.InstanceAutoscalingConfigAsymmetricAutoscalingOptionArgs{
				Overrides: &spanner.InstanceAutoscalingConfigAsymmetricAutoscalingOptionOverridesArgs{
					AutoscalingLimits: &spanner.InstanceAutoscalingConfigAsymmetricAutoscalingOptionOverridesAutoscalingLimitsArgs{
						MaxNodes: pulumi.Int(0),
						MinNodes: pulumi.Int(0),
					},
				},
				ReplicaSelection: &spanner.InstanceAutoscalingConfigAsymmetricAutoscalingOptionReplicaSelectionArgs{
					Location: pulumi.String("string"),
				},
			},
		},
		AutoscalingLimits: &spanner.InstanceAutoscalingConfigAutoscalingLimitsArgs{
			MaxNodes:           pulumi.Int(0),
			MaxProcessingUnits: pulumi.Int(0),
			MinNodes:           pulumi.Int(0),
			MinProcessingUnits: pulumi.Int(0),
		},
		AutoscalingTargets: &spanner.InstanceAutoscalingConfigAutoscalingTargetsArgs{
			HighPriorityCpuUtilizationPercent: pulumi.Int(0),
			StorageUtilizationPercent:         pulumi.Int(0),
		},
	},
	DefaultBackupScheduleType: pulumi.String("string"),
	Edition:                   pulumi.String("string"),
	ForceDestroy:              pulumi.Bool(false),
	Labels: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Name:            pulumi.String("string"),
	NumNodes:        pulumi.Int(0),
	ProcessingUnits: pulumi.Int(0),
	Project:         pulumi.String("string"),
})
var exampleinstanceResourceResourceFromSpannerinstance = new Instance("exampleinstanceResourceResourceFromSpannerinstance", InstanceArgs.builder()
    .config("string")
    .displayName("string")
    .autoscalingConfig(InstanceAutoscalingConfigArgs.builder()
        .asymmetricAutoscalingOptions(InstanceAutoscalingConfigAsymmetricAutoscalingOptionArgs.builder()
            .overrides(InstanceAutoscalingConfigAsymmetricAutoscalingOptionOverridesArgs.builder()
                .autoscalingLimits(InstanceAutoscalingConfigAsymmetricAutoscalingOptionOverridesAutoscalingLimitsArgs.builder()
                    .maxNodes(0)
                    .minNodes(0)
                    .build())
                .build())
            .replicaSelection(InstanceAutoscalingConfigAsymmetricAutoscalingOptionReplicaSelectionArgs.builder()
                .location("string")
                .build())
            .build())
        .autoscalingLimits(InstanceAutoscalingConfigAutoscalingLimitsArgs.builder()
            .maxNodes(0)
            .maxProcessingUnits(0)
            .minNodes(0)
            .minProcessingUnits(0)
            .build())
        .autoscalingTargets(InstanceAutoscalingConfigAutoscalingTargetsArgs.builder()
            .highPriorityCpuUtilizationPercent(0)
            .storageUtilizationPercent(0)
            .build())
        .build())
    .defaultBackupScheduleType("string")
    .edition("string")
    .forceDestroy(false)
    .labels(Map.of("string", "string"))
    .name("string")
    .numNodes(0)
    .processingUnits(0)
    .project("string")
    .build());
exampleinstance_resource_resource_from_spannerinstance = gcp.spanner.Instance("exampleinstanceResourceResourceFromSpannerinstance",
    config="string",
    display_name="string",
    autoscaling_config={
        "asymmetric_autoscaling_options": [{
            "overrides": {
                "autoscaling_limits": {
                    "max_nodes": 0,
                    "min_nodes": 0,
                },
            },
            "replica_selection": {
                "location": "string",
            },
        }],
        "autoscaling_limits": {
            "max_nodes": 0,
            "max_processing_units": 0,
            "min_nodes": 0,
            "min_processing_units": 0,
        },
        "autoscaling_targets": {
            "high_priority_cpu_utilization_percent": 0,
            "storage_utilization_percent": 0,
        },
    },
    default_backup_schedule_type="string",
    edition="string",
    force_destroy=False,
    labels={
        "string": "string",
    },
    name="string",
    num_nodes=0,
    processing_units=0,
    project="string")
const exampleinstanceResourceResourceFromSpannerinstance = new gcp.spanner.Instance("exampleinstanceResourceResourceFromSpannerinstance", {
    config: "string",
    displayName: "string",
    autoscalingConfig: {
        asymmetricAutoscalingOptions: [{
            overrides: {
                autoscalingLimits: {
                    maxNodes: 0,
                    minNodes: 0,
                },
            },
            replicaSelection: {
                location: "string",
            },
        }],
        autoscalingLimits: {
            maxNodes: 0,
            maxProcessingUnits: 0,
            minNodes: 0,
            minProcessingUnits: 0,
        },
        autoscalingTargets: {
            highPriorityCpuUtilizationPercent: 0,
            storageUtilizationPercent: 0,
        },
    },
    defaultBackupScheduleType: "string",
    edition: "string",
    forceDestroy: false,
    labels: {
        string: "string",
    },
    name: "string",
    numNodes: 0,
    processingUnits: 0,
    project: "string",
});
type: gcp:spanner:Instance
properties:
    autoscalingConfig:
        asymmetricAutoscalingOptions:
            - overrides:
                autoscalingLimits:
                    maxNodes: 0
                    minNodes: 0
              replicaSelection:
                location: string
        autoscalingLimits:
            maxNodes: 0
            maxProcessingUnits: 0
            minNodes: 0
            minProcessingUnits: 0
        autoscalingTargets:
            highPriorityCpuUtilizationPercent: 0
            storageUtilizationPercent: 0
    config: string
    defaultBackupScheduleType: string
    displayName: string
    edition: string
    forceDestroy: false
    labels:
        string: string
    name: string
    numNodes: 0
    processingUnits: 0
    project: string
Instance Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Instance resource accepts the following input properties:
- Config string
- The name of the instance's configuration (similar but not
quite the same as a region) which defines the geographic placement and
replication of your databases in this instance. It determines where your data
is stored. Values are typically of the form regional-europe-west1,us-centraletc. In order to obtain a valid list please consult the Configuration section of the docs.
- DisplayName string
- The descriptive name for this instance as it appears in UIs. Must be
unique per project and between 4 and 30 characters in length.
- AutoscalingConfig InstanceAutoscaling Config 
- The autoscaling configuration. Autoscaling is enabled if this field is set. When autoscaling is enabled, num_nodes and processing_units are treated as, OUTPUT_ONLY fields and reflect the current compute capacity allocated to the instance. Structure is documented below.
- DefaultBackup stringSchedule Type 
- Controls the default backup behavior for new databases within the instance.
Note that AUTOMATICis not permitted for free instances, as backups and backup schedules are not allowed for free instances. if unset or NONE, no default backup schedule will be created for new databases within the instance. Possible values are:NONE,AUTOMATIC.
- Edition string
- The edition selected for this instance. Different editions provide different capabilities at different price points.
Possible values are: EDITION_UNSPECIFIED,STANDARD,ENTERPRISE,ENTERPRISE_PLUS.
- ForceDestroy bool
- When deleting a spanner instance, this boolean option will delete all backups of this instance. This must be set to true if you created a backup manually in the console.
- Labels Dictionary<string, string>
- An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }. - Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field - effective_labelsfor all of the labels present on the resource.
- Name string
- A unique identifier for the instance, which cannot be changed after
the instance is created. The name must be between 6 and 30 characters
in length.
If not provided, a random string starting with tf-will be selected.
- NumNodes int
- ProcessingUnits int
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Config string
- The name of the instance's configuration (similar but not
quite the same as a region) which defines the geographic placement and
replication of your databases in this instance. It determines where your data
is stored. Values are typically of the form regional-europe-west1,us-centraletc. In order to obtain a valid list please consult the Configuration section of the docs.
- DisplayName string
- The descriptive name for this instance as it appears in UIs. Must be
unique per project and between 4 and 30 characters in length.
- AutoscalingConfig InstanceAutoscaling Config Args 
- The autoscaling configuration. Autoscaling is enabled if this field is set. When autoscaling is enabled, num_nodes and processing_units are treated as, OUTPUT_ONLY fields and reflect the current compute capacity allocated to the instance. Structure is documented below.
- DefaultBackup stringSchedule Type 
- Controls the default backup behavior for new databases within the instance.
Note that AUTOMATICis not permitted for free instances, as backups and backup schedules are not allowed for free instances. if unset or NONE, no default backup schedule will be created for new databases within the instance. Possible values are:NONE,AUTOMATIC.
- Edition string
- The edition selected for this instance. Different editions provide different capabilities at different price points.
Possible values are: EDITION_UNSPECIFIED,STANDARD,ENTERPRISE,ENTERPRISE_PLUS.
- ForceDestroy bool
- When deleting a spanner instance, this boolean option will delete all backups of this instance. This must be set to true if you created a backup manually in the console.
- Labels map[string]string
- An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }. - Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field - effective_labelsfor all of the labels present on the resource.
- Name string
- A unique identifier for the instance, which cannot be changed after
the instance is created. The name must be between 6 and 30 characters
in length.
If not provided, a random string starting with tf-will be selected.
- NumNodes int
- ProcessingUnits int
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- config String
- The name of the instance's configuration (similar but not
quite the same as a region) which defines the geographic placement and
replication of your databases in this instance. It determines where your data
is stored. Values are typically of the form regional-europe-west1,us-centraletc. In order to obtain a valid list please consult the Configuration section of the docs.
- displayName String
- The descriptive name for this instance as it appears in UIs. Must be
unique per project and between 4 and 30 characters in length.
- autoscalingConfig InstanceAutoscaling Config 
- The autoscaling configuration. Autoscaling is enabled if this field is set. When autoscaling is enabled, num_nodes and processing_units are treated as, OUTPUT_ONLY fields and reflect the current compute capacity allocated to the instance. Structure is documented below.
- defaultBackup StringSchedule Type 
- Controls the default backup behavior for new databases within the instance.
Note that AUTOMATICis not permitted for free instances, as backups and backup schedules are not allowed for free instances. if unset or NONE, no default backup schedule will be created for new databases within the instance. Possible values are:NONE,AUTOMATIC.
- edition String
- The edition selected for this instance. Different editions provide different capabilities at different price points.
Possible values are: EDITION_UNSPECIFIED,STANDARD,ENTERPRISE,ENTERPRISE_PLUS.
- forceDestroy Boolean
- When deleting a spanner instance, this boolean option will delete all backups of this instance. This must be set to true if you created a backup manually in the console.
- labels Map<String,String>
- An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }. - Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field - effective_labelsfor all of the labels present on the resource.
- name String
- A unique identifier for the instance, which cannot be changed after
the instance is created. The name must be between 6 and 30 characters
in length.
If not provided, a random string starting with tf-will be selected.
- numNodes Integer
- processingUnits Integer
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- config string
- The name of the instance's configuration (similar but not
quite the same as a region) which defines the geographic placement and
replication of your databases in this instance. It determines where your data
is stored. Values are typically of the form regional-europe-west1,us-centraletc. In order to obtain a valid list please consult the Configuration section of the docs.
- displayName string
- The descriptive name for this instance as it appears in UIs. Must be
unique per project and between 4 and 30 characters in length.
- autoscalingConfig InstanceAutoscaling Config 
- The autoscaling configuration. Autoscaling is enabled if this field is set. When autoscaling is enabled, num_nodes and processing_units are treated as, OUTPUT_ONLY fields and reflect the current compute capacity allocated to the instance. Structure is documented below.
- defaultBackup stringSchedule Type 
- Controls the default backup behavior for new databases within the instance.
Note that AUTOMATICis not permitted for free instances, as backups and backup schedules are not allowed for free instances. if unset or NONE, no default backup schedule will be created for new databases within the instance. Possible values are:NONE,AUTOMATIC.
- edition string
- The edition selected for this instance. Different editions provide different capabilities at different price points.
Possible values are: EDITION_UNSPECIFIED,STANDARD,ENTERPRISE,ENTERPRISE_PLUS.
- forceDestroy boolean
- When deleting a spanner instance, this boolean option will delete all backups of this instance. This must be set to true if you created a backup manually in the console.
- labels {[key: string]: string}
- An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }. - Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field - effective_labelsfor all of the labels present on the resource.
- name string
- A unique identifier for the instance, which cannot be changed after
the instance is created. The name must be between 6 and 30 characters
in length.
If not provided, a random string starting with tf-will be selected.
- numNodes number
- processingUnits number
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- config str
- The name of the instance's configuration (similar but not
quite the same as a region) which defines the geographic placement and
replication of your databases in this instance. It determines where your data
is stored. Values are typically of the form regional-europe-west1,us-centraletc. In order to obtain a valid list please consult the Configuration section of the docs.
- display_name str
- The descriptive name for this instance as it appears in UIs. Must be
unique per project and between 4 and 30 characters in length.
- autoscaling_config InstanceAutoscaling Config Args 
- The autoscaling configuration. Autoscaling is enabled if this field is set. When autoscaling is enabled, num_nodes and processing_units are treated as, OUTPUT_ONLY fields and reflect the current compute capacity allocated to the instance. Structure is documented below.
- default_backup_ strschedule_ type 
- Controls the default backup behavior for new databases within the instance.
Note that AUTOMATICis not permitted for free instances, as backups and backup schedules are not allowed for free instances. if unset or NONE, no default backup schedule will be created for new databases within the instance. Possible values are:NONE,AUTOMATIC.
- edition str
- The edition selected for this instance. Different editions provide different capabilities at different price points.
Possible values are: EDITION_UNSPECIFIED,STANDARD,ENTERPRISE,ENTERPRISE_PLUS.
- force_destroy bool
- When deleting a spanner instance, this boolean option will delete all backups of this instance. This must be set to true if you created a backup manually in the console.
- labels Mapping[str, str]
- An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }. - Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field - effective_labelsfor all of the labels present on the resource.
- name str
- A unique identifier for the instance, which cannot be changed after
the instance is created. The name must be between 6 and 30 characters
in length.
If not provided, a random string starting with tf-will be selected.
- num_nodes int
- processing_units int
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- config String
- The name of the instance's configuration (similar but not
quite the same as a region) which defines the geographic placement and
replication of your databases in this instance. It determines where your data
is stored. Values are typically of the form regional-europe-west1,us-centraletc. In order to obtain a valid list please consult the Configuration section of the docs.
- displayName String
- The descriptive name for this instance as it appears in UIs. Must be
unique per project and between 4 and 30 characters in length.
- autoscalingConfig Property Map
- The autoscaling configuration. Autoscaling is enabled if this field is set. When autoscaling is enabled, num_nodes and processing_units are treated as, OUTPUT_ONLY fields and reflect the current compute capacity allocated to the instance. Structure is documented below.
- defaultBackup StringSchedule Type 
- Controls the default backup behavior for new databases within the instance.
Note that AUTOMATICis not permitted for free instances, as backups and backup schedules are not allowed for free instances. if unset or NONE, no default backup schedule will be created for new databases within the instance. Possible values are:NONE,AUTOMATIC.
- edition String
- The edition selected for this instance. Different editions provide different capabilities at different price points.
Possible values are: EDITION_UNSPECIFIED,STANDARD,ENTERPRISE,ENTERPRISE_PLUS.
- forceDestroy Boolean
- When deleting a spanner instance, this boolean option will delete all backups of this instance. This must be set to true if you created a backup manually in the console.
- labels Map<String>
- An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }. - Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field - effective_labelsfor all of the labels present on the resource.
- name String
- A unique identifier for the instance, which cannot be changed after
the instance is created. The name must be between 6 and 30 characters
in length.
If not provided, a random string starting with tf-will be selected.
- numNodes Number
- processingUnits Number
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Outputs
All input properties are implicitly available as output properties. Additionally, the Instance resource produces the following output properties:
- EffectiveLabels Dictionary<string, string>
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Id string
- The provider-assigned unique ID for this managed resource.
- PulumiLabels Dictionary<string, string>
- The combination of labels configured directly on the resource and default labels configured on the provider.
- State string
- Instance status: CREATINGorREADY.
- EffectiveLabels map[string]string
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- Id string
- The provider-assigned unique ID for this managed resource.
- PulumiLabels map[string]string
- The combination of labels configured directly on the resource and default labels configured on the provider.
- State string
- Instance status: CREATINGorREADY.
- effectiveLabels Map<String,String>
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id String
- The provider-assigned unique ID for this managed resource.
- pulumiLabels Map<String,String>
- The combination of labels configured directly on the resource and default labels configured on the provider.
- state String
- Instance status: CREATINGorREADY.
- effectiveLabels {[key: string]: string}
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id string
- The provider-assigned unique ID for this managed resource.
- pulumiLabels {[key: string]: string}
- The combination of labels configured directly on the resource and default labels configured on the provider.
- state string
- Instance status: CREATINGorREADY.
- effective_labels Mapping[str, str]
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id str
- The provider-assigned unique ID for this managed resource.
- pulumi_labels Mapping[str, str]
- The combination of labels configured directly on the resource and default labels configured on the provider.
- state str
- Instance status: CREATINGorREADY.
- effectiveLabels Map<String>
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- id String
- The provider-assigned unique ID for this managed resource.
- pulumiLabels Map<String>
- The combination of labels configured directly on the resource and default labels configured on the provider.
- state String
- Instance status: CREATINGorREADY.
Look up Existing Instance Resource
Get an existing Instance resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: InstanceState, opts?: CustomResourceOptions): Instance@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        autoscaling_config: Optional[InstanceAutoscalingConfigArgs] = None,
        config: Optional[str] = None,
        default_backup_schedule_type: Optional[str] = None,
        display_name: Optional[str] = None,
        edition: Optional[str] = None,
        effective_labels: Optional[Mapping[str, str]] = None,
        force_destroy: Optional[bool] = None,
        labels: Optional[Mapping[str, str]] = None,
        name: Optional[str] = None,
        num_nodes: Optional[int] = None,
        processing_units: Optional[int] = None,
        project: Optional[str] = None,
        pulumi_labels: Optional[Mapping[str, str]] = None,
        state: Optional[str] = None) -> Instancefunc GetInstance(ctx *Context, name string, id IDInput, state *InstanceState, opts ...ResourceOption) (*Instance, error)public static Instance Get(string name, Input<string> id, InstanceState? state, CustomResourceOptions? opts = null)public static Instance get(String name, Output<String> id, InstanceState state, CustomResourceOptions options)resources:  _:    type: gcp:spanner:Instance    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- AutoscalingConfig InstanceAutoscaling Config 
- The autoscaling configuration. Autoscaling is enabled if this field is set. When autoscaling is enabled, num_nodes and processing_units are treated as, OUTPUT_ONLY fields and reflect the current compute capacity allocated to the instance. Structure is documented below.
- Config string
- The name of the instance's configuration (similar but not
quite the same as a region) which defines the geographic placement and
replication of your databases in this instance. It determines where your data
is stored. Values are typically of the form regional-europe-west1,us-centraletc. In order to obtain a valid list please consult the Configuration section of the docs.
- DefaultBackup stringSchedule Type 
- Controls the default backup behavior for new databases within the instance.
Note that AUTOMATICis not permitted for free instances, as backups and backup schedules are not allowed for free instances. if unset or NONE, no default backup schedule will be created for new databases within the instance. Possible values are:NONE,AUTOMATIC.
- DisplayName string
- The descriptive name for this instance as it appears in UIs. Must be
unique per project and between 4 and 30 characters in length.
- Edition string
- The edition selected for this instance. Different editions provide different capabilities at different price points.
Possible values are: EDITION_UNSPECIFIED,STANDARD,ENTERPRISE,ENTERPRISE_PLUS.
- EffectiveLabels Dictionary<string, string>
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- ForceDestroy bool
- When deleting a spanner instance, this boolean option will delete all backups of this instance. This must be set to true if you created a backup manually in the console.
- Labels Dictionary<string, string>
- An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }. - Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field - effective_labelsfor all of the labels present on the resource.
- Name string
- A unique identifier for the instance, which cannot be changed after
the instance is created. The name must be between 6 and 30 characters
in length.
If not provided, a random string starting with tf-will be selected.
- NumNodes int
- ProcessingUnits int
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- PulumiLabels Dictionary<string, string>
- The combination of labels configured directly on the resource and default labels configured on the provider.
- State string
- Instance status: CREATINGorREADY.
- AutoscalingConfig InstanceAutoscaling Config Args 
- The autoscaling configuration. Autoscaling is enabled if this field is set. When autoscaling is enabled, num_nodes and processing_units are treated as, OUTPUT_ONLY fields and reflect the current compute capacity allocated to the instance. Structure is documented below.
- Config string
- The name of the instance's configuration (similar but not
quite the same as a region) which defines the geographic placement and
replication of your databases in this instance. It determines where your data
is stored. Values are typically of the form regional-europe-west1,us-centraletc. In order to obtain a valid list please consult the Configuration section of the docs.
- DefaultBackup stringSchedule Type 
- Controls the default backup behavior for new databases within the instance.
Note that AUTOMATICis not permitted for free instances, as backups and backup schedules are not allowed for free instances. if unset or NONE, no default backup schedule will be created for new databases within the instance. Possible values are:NONE,AUTOMATIC.
- DisplayName string
- The descriptive name for this instance as it appears in UIs. Must be
unique per project and between 4 and 30 characters in length.
- Edition string
- The edition selected for this instance. Different editions provide different capabilities at different price points.
Possible values are: EDITION_UNSPECIFIED,STANDARD,ENTERPRISE,ENTERPRISE_PLUS.
- EffectiveLabels map[string]string
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- ForceDestroy bool
- When deleting a spanner instance, this boolean option will delete all backups of this instance. This must be set to true if you created a backup manually in the console.
- Labels map[string]string
- An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }. - Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field - effective_labelsfor all of the labels present on the resource.
- Name string
- A unique identifier for the instance, which cannot be changed after
the instance is created. The name must be between 6 and 30 characters
in length.
If not provided, a random string starting with tf-will be selected.
- NumNodes int
- ProcessingUnits int
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- PulumiLabels map[string]string
- The combination of labels configured directly on the resource and default labels configured on the provider.
- State string
- Instance status: CREATINGorREADY.
- autoscalingConfig InstanceAutoscaling Config 
- The autoscaling configuration. Autoscaling is enabled if this field is set. When autoscaling is enabled, num_nodes and processing_units are treated as, OUTPUT_ONLY fields and reflect the current compute capacity allocated to the instance. Structure is documented below.
- config String
- The name of the instance's configuration (similar but not
quite the same as a region) which defines the geographic placement and
replication of your databases in this instance. It determines where your data
is stored. Values are typically of the form regional-europe-west1,us-centraletc. In order to obtain a valid list please consult the Configuration section of the docs.
- defaultBackup StringSchedule Type 
- Controls the default backup behavior for new databases within the instance.
Note that AUTOMATICis not permitted for free instances, as backups and backup schedules are not allowed for free instances. if unset or NONE, no default backup schedule will be created for new databases within the instance. Possible values are:NONE,AUTOMATIC.
- displayName String
- The descriptive name for this instance as it appears in UIs. Must be
unique per project and between 4 and 30 characters in length.
- edition String
- The edition selected for this instance. Different editions provide different capabilities at different price points.
Possible values are: EDITION_UNSPECIFIED,STANDARD,ENTERPRISE,ENTERPRISE_PLUS.
- effectiveLabels Map<String,String>
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- forceDestroy Boolean
- When deleting a spanner instance, this boolean option will delete all backups of this instance. This must be set to true if you created a backup manually in the console.
- labels Map<String,String>
- An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }. - Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field - effective_labelsfor all of the labels present on the resource.
- name String
- A unique identifier for the instance, which cannot be changed after
the instance is created. The name must be between 6 and 30 characters
in length.
If not provided, a random string starting with tf-will be selected.
- numNodes Integer
- processingUnits Integer
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumiLabels Map<String,String>
- The combination of labels configured directly on the resource and default labels configured on the provider.
- state String
- Instance status: CREATINGorREADY.
- autoscalingConfig InstanceAutoscaling Config 
- The autoscaling configuration. Autoscaling is enabled if this field is set. When autoscaling is enabled, num_nodes and processing_units are treated as, OUTPUT_ONLY fields and reflect the current compute capacity allocated to the instance. Structure is documented below.
- config string
- The name of the instance's configuration (similar but not
quite the same as a region) which defines the geographic placement and
replication of your databases in this instance. It determines where your data
is stored. Values are typically of the form regional-europe-west1,us-centraletc. In order to obtain a valid list please consult the Configuration section of the docs.
- defaultBackup stringSchedule Type 
- Controls the default backup behavior for new databases within the instance.
Note that AUTOMATICis not permitted for free instances, as backups and backup schedules are not allowed for free instances. if unset or NONE, no default backup schedule will be created for new databases within the instance. Possible values are:NONE,AUTOMATIC.
- displayName string
- The descriptive name for this instance as it appears in UIs. Must be
unique per project and between 4 and 30 characters in length.
- edition string
- The edition selected for this instance. Different editions provide different capabilities at different price points.
Possible values are: EDITION_UNSPECIFIED,STANDARD,ENTERPRISE,ENTERPRISE_PLUS.
- effectiveLabels {[key: string]: string}
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- forceDestroy boolean
- When deleting a spanner instance, this boolean option will delete all backups of this instance. This must be set to true if you created a backup manually in the console.
- labels {[key: string]: string}
- An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }. - Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field - effective_labelsfor all of the labels present on the resource.
- name string
- A unique identifier for the instance, which cannot be changed after
the instance is created. The name must be between 6 and 30 characters
in length.
If not provided, a random string starting with tf-will be selected.
- numNodes number
- processingUnits number
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumiLabels {[key: string]: string}
- The combination of labels configured directly on the resource and default labels configured on the provider.
- state string
- Instance status: CREATINGorREADY.
- autoscaling_config InstanceAutoscaling Config Args 
- The autoscaling configuration. Autoscaling is enabled if this field is set. When autoscaling is enabled, num_nodes and processing_units are treated as, OUTPUT_ONLY fields and reflect the current compute capacity allocated to the instance. Structure is documented below.
- config str
- The name of the instance's configuration (similar but not
quite the same as a region) which defines the geographic placement and
replication of your databases in this instance. It determines where your data
is stored. Values are typically of the form regional-europe-west1,us-centraletc. In order to obtain a valid list please consult the Configuration section of the docs.
- default_backup_ strschedule_ type 
- Controls the default backup behavior for new databases within the instance.
Note that AUTOMATICis not permitted for free instances, as backups and backup schedules are not allowed for free instances. if unset or NONE, no default backup schedule will be created for new databases within the instance. Possible values are:NONE,AUTOMATIC.
- display_name str
- The descriptive name for this instance as it appears in UIs. Must be
unique per project and between 4 and 30 characters in length.
- edition str
- The edition selected for this instance. Different editions provide different capabilities at different price points.
Possible values are: EDITION_UNSPECIFIED,STANDARD,ENTERPRISE,ENTERPRISE_PLUS.
- effective_labels Mapping[str, str]
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- force_destroy bool
- When deleting a spanner instance, this boolean option will delete all backups of this instance. This must be set to true if you created a backup manually in the console.
- labels Mapping[str, str]
- An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }. - Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field - effective_labelsfor all of the labels present on the resource.
- name str
- A unique identifier for the instance, which cannot be changed after
the instance is created. The name must be between 6 and 30 characters
in length.
If not provided, a random string starting with tf-will be selected.
- num_nodes int
- processing_units int
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumi_labels Mapping[str, str]
- The combination of labels configured directly on the resource and default labels configured on the provider.
- state str
- Instance status: CREATINGorREADY.
- autoscalingConfig Property Map
- The autoscaling configuration. Autoscaling is enabled if this field is set. When autoscaling is enabled, num_nodes and processing_units are treated as, OUTPUT_ONLY fields and reflect the current compute capacity allocated to the instance. Structure is documented below.
- config String
- The name of the instance's configuration (similar but not
quite the same as a region) which defines the geographic placement and
replication of your databases in this instance. It determines where your data
is stored. Values are typically of the form regional-europe-west1,us-centraletc. In order to obtain a valid list please consult the Configuration section of the docs.
- defaultBackup StringSchedule Type 
- Controls the default backup behavior for new databases within the instance.
Note that AUTOMATICis not permitted for free instances, as backups and backup schedules are not allowed for free instances. if unset or NONE, no default backup schedule will be created for new databases within the instance. Possible values are:NONE,AUTOMATIC.
- displayName String
- The descriptive name for this instance as it appears in UIs. Must be
unique per project and between 4 and 30 characters in length.
- edition String
- The edition selected for this instance. Different editions provide different capabilities at different price points.
Possible values are: EDITION_UNSPECIFIED,STANDARD,ENTERPRISE,ENTERPRISE_PLUS.
- effectiveLabels Map<String>
- All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
- forceDestroy Boolean
- When deleting a spanner instance, this boolean option will delete all backups of this instance. This must be set to true if you created a backup manually in the console.
- labels Map<String>
- An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }. - Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field - effective_labelsfor all of the labels present on the resource.
- name String
- A unique identifier for the instance, which cannot be changed after
the instance is created. The name must be between 6 and 30 characters
in length.
If not provided, a random string starting with tf-will be selected.
- numNodes Number
- processingUnits Number
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- pulumiLabels Map<String>
- The combination of labels configured directly on the resource and default labels configured on the provider.
- state String
- Instance status: CREATINGorREADY.
Supporting Types
InstanceAutoscalingConfig, InstanceAutoscalingConfigArgs      
- AsymmetricAutoscaling List<InstanceOptions Autoscaling Config Asymmetric Autoscaling Option> 
- Asymmetric autoscaling options for specific replicas. Structure is documented below.
- AutoscalingLimits InstanceAutoscaling Config Autoscaling Limits 
- Defines scale in controls to reduce the risk of response latency and outages due to abrupt scale-in events. Users can define the minimum and maximum compute capacity allocated to the instance, and the autoscaler will only scale within that range. Users can either use nodes or processing units to specify the limits, but should use the same unit to set both the min_limit and max_limit. Structure is documented below.
- AutoscalingTargets InstanceAutoscaling Config Autoscaling Targets 
- Defines scale in controls to reduce the risk of response latency and outages due to abrupt scale-in events Structure is documented below.
- AsymmetricAutoscaling []InstanceOptions Autoscaling Config Asymmetric Autoscaling Option 
- Asymmetric autoscaling options for specific replicas. Structure is documented below.
- AutoscalingLimits InstanceAutoscaling Config Autoscaling Limits 
- Defines scale in controls to reduce the risk of response latency and outages due to abrupt scale-in events. Users can define the minimum and maximum compute capacity allocated to the instance, and the autoscaler will only scale within that range. Users can either use nodes or processing units to specify the limits, but should use the same unit to set both the min_limit and max_limit. Structure is documented below.
- AutoscalingTargets InstanceAutoscaling Config Autoscaling Targets 
- Defines scale in controls to reduce the risk of response latency and outages due to abrupt scale-in events Structure is documented below.
- asymmetricAutoscaling List<InstanceOptions Autoscaling Config Asymmetric Autoscaling Option> 
- Asymmetric autoscaling options for specific replicas. Structure is documented below.
- autoscalingLimits InstanceAutoscaling Config Autoscaling Limits 
- Defines scale in controls to reduce the risk of response latency and outages due to abrupt scale-in events. Users can define the minimum and maximum compute capacity allocated to the instance, and the autoscaler will only scale within that range. Users can either use nodes or processing units to specify the limits, but should use the same unit to set both the min_limit and max_limit. Structure is documented below.
- autoscalingTargets InstanceAutoscaling Config Autoscaling Targets 
- Defines scale in controls to reduce the risk of response latency and outages due to abrupt scale-in events Structure is documented below.
- asymmetricAutoscaling InstanceOptions Autoscaling Config Asymmetric Autoscaling Option[] 
- Asymmetric autoscaling options for specific replicas. Structure is documented below.
- autoscalingLimits InstanceAutoscaling Config Autoscaling Limits 
- Defines scale in controls to reduce the risk of response latency and outages due to abrupt scale-in events. Users can define the minimum and maximum compute capacity allocated to the instance, and the autoscaler will only scale within that range. Users can either use nodes or processing units to specify the limits, but should use the same unit to set both the min_limit and max_limit. Structure is documented below.
- autoscalingTargets InstanceAutoscaling Config Autoscaling Targets 
- Defines scale in controls to reduce the risk of response latency and outages due to abrupt scale-in events Structure is documented below.
- asymmetric_autoscaling_ Sequence[Instanceoptions Autoscaling Config Asymmetric Autoscaling Option] 
- Asymmetric autoscaling options for specific replicas. Structure is documented below.
- autoscaling_limits InstanceAutoscaling Config Autoscaling Limits 
- Defines scale in controls to reduce the risk of response latency and outages due to abrupt scale-in events. Users can define the minimum and maximum compute capacity allocated to the instance, and the autoscaler will only scale within that range. Users can either use nodes or processing units to specify the limits, but should use the same unit to set both the min_limit and max_limit. Structure is documented below.
- autoscaling_targets InstanceAutoscaling Config Autoscaling Targets 
- Defines scale in controls to reduce the risk of response latency and outages due to abrupt scale-in events Structure is documented below.
- asymmetricAutoscaling List<Property Map>Options 
- Asymmetric autoscaling options for specific replicas. Structure is documented below.
- autoscalingLimits Property Map
- Defines scale in controls to reduce the risk of response latency and outages due to abrupt scale-in events. Users can define the minimum and maximum compute capacity allocated to the instance, and the autoscaler will only scale within that range. Users can either use nodes or processing units to specify the limits, but should use the same unit to set both the min_limit and max_limit. Structure is documented below.
- autoscalingTargets Property Map
- Defines scale in controls to reduce the risk of response latency and outages due to abrupt scale-in events Structure is documented below.
InstanceAutoscalingConfigAsymmetricAutoscalingOption, InstanceAutoscalingConfigAsymmetricAutoscalingOptionArgs            
- Overrides
InstanceAutoscaling Config Asymmetric Autoscaling Option Overrides 
- A nested object resource. Structure is documented below.
- ReplicaSelection InstanceAutoscaling Config Asymmetric Autoscaling Option Replica Selection 
- A nested object resource. Structure is documented below.
- Overrides
InstanceAutoscaling Config Asymmetric Autoscaling Option Overrides 
- A nested object resource. Structure is documented below.
- ReplicaSelection InstanceAutoscaling Config Asymmetric Autoscaling Option Replica Selection 
- A nested object resource. Structure is documented below.
- overrides
InstanceAutoscaling Config Asymmetric Autoscaling Option Overrides 
- A nested object resource. Structure is documented below.
- replicaSelection InstanceAutoscaling Config Asymmetric Autoscaling Option Replica Selection 
- A nested object resource. Structure is documented below.
- overrides
InstanceAutoscaling Config Asymmetric Autoscaling Option Overrides 
- A nested object resource. Structure is documented below.
- replicaSelection InstanceAutoscaling Config Asymmetric Autoscaling Option Replica Selection 
- A nested object resource. Structure is documented below.
- overrides
InstanceAutoscaling Config Asymmetric Autoscaling Option Overrides 
- A nested object resource. Structure is documented below.
- replica_selection InstanceAutoscaling Config Asymmetric Autoscaling Option Replica Selection 
- A nested object resource. Structure is documented below.
- overrides Property Map
- A nested object resource. Structure is documented below.
- replicaSelection Property Map
- A nested object resource. Structure is documented below.
InstanceAutoscalingConfigAsymmetricAutoscalingOptionOverrides, InstanceAutoscalingConfigAsymmetricAutoscalingOptionOverridesArgs              
- AutoscalingLimits InstanceAutoscaling Config Asymmetric Autoscaling Option Overrides Autoscaling Limits 
- A nested object resource. Structure is documented below.
- AutoscalingLimits InstanceAutoscaling Config Asymmetric Autoscaling Option Overrides Autoscaling Limits 
- A nested object resource. Structure is documented below.
- autoscalingLimits InstanceAutoscaling Config Asymmetric Autoscaling Option Overrides Autoscaling Limits 
- A nested object resource. Structure is documented below.
- autoscalingLimits InstanceAutoscaling Config Asymmetric Autoscaling Option Overrides Autoscaling Limits 
- A nested object resource. Structure is documented below.
- autoscaling_limits InstanceAutoscaling Config Asymmetric Autoscaling Option Overrides Autoscaling Limits 
- A nested object resource. Structure is documented below.
- autoscalingLimits Property Map
- A nested object resource. Structure is documented below.
InstanceAutoscalingConfigAsymmetricAutoscalingOptionOverridesAutoscalingLimits, InstanceAutoscalingConfigAsymmetricAutoscalingOptionOverridesAutoscalingLimitsArgs                  
InstanceAutoscalingConfigAsymmetricAutoscalingOptionReplicaSelection, InstanceAutoscalingConfigAsymmetricAutoscalingOptionReplicaSelectionArgs                
- Location string
- The location of the replica to apply asymmetric autoscaling options.
- Location string
- The location of the replica to apply asymmetric autoscaling options.
- location String
- The location of the replica to apply asymmetric autoscaling options.
- location string
- The location of the replica to apply asymmetric autoscaling options.
- location str
- The location of the replica to apply asymmetric autoscaling options.
- location String
- The location of the replica to apply asymmetric autoscaling options.
InstanceAutoscalingConfigAutoscalingLimits, InstanceAutoscalingConfigAutoscalingLimitsArgs          
- MaxNodes int
- The maximum number of nodes for this specific replica.
- MaxProcessing intUnits 
- Specifies maximum number of processing units allocated to the instance. If set, this number should be multiples of 1000 and be greater than or equal to min_processing_units.
- MinNodes int
- The minimum number of nodes for this specific replica.
- MinProcessing intUnits 
- Specifies minimum number of processing units allocated to the instance. If set, this number should be multiples of 1000.
- MaxNodes int
- The maximum number of nodes for this specific replica.
- MaxProcessing intUnits 
- Specifies maximum number of processing units allocated to the instance. If set, this number should be multiples of 1000 and be greater than or equal to min_processing_units.
- MinNodes int
- The minimum number of nodes for this specific replica.
- MinProcessing intUnits 
- Specifies minimum number of processing units allocated to the instance. If set, this number should be multiples of 1000.
- maxNodes Integer
- The maximum number of nodes for this specific replica.
- maxProcessing IntegerUnits 
- Specifies maximum number of processing units allocated to the instance. If set, this number should be multiples of 1000 and be greater than or equal to min_processing_units.
- minNodes Integer
- The minimum number of nodes for this specific replica.
- minProcessing IntegerUnits 
- Specifies minimum number of processing units allocated to the instance. If set, this number should be multiples of 1000.
- maxNodes number
- The maximum number of nodes for this specific replica.
- maxProcessing numberUnits 
- Specifies maximum number of processing units allocated to the instance. If set, this number should be multiples of 1000 and be greater than or equal to min_processing_units.
- minNodes number
- The minimum number of nodes for this specific replica.
- minProcessing numberUnits 
- Specifies minimum number of processing units allocated to the instance. If set, this number should be multiples of 1000.
- max_nodes int
- The maximum number of nodes for this specific replica.
- max_processing_ intunits 
- Specifies maximum number of processing units allocated to the instance. If set, this number should be multiples of 1000 and be greater than or equal to min_processing_units.
- min_nodes int
- The minimum number of nodes for this specific replica.
- min_processing_ intunits 
- Specifies minimum number of processing units allocated to the instance. If set, this number should be multiples of 1000.
- maxNodes Number
- The maximum number of nodes for this specific replica.
- maxProcessing NumberUnits 
- Specifies maximum number of processing units allocated to the instance. If set, this number should be multiples of 1000 and be greater than or equal to min_processing_units.
- minNodes Number
- The minimum number of nodes for this specific replica.
- minProcessing NumberUnits 
- Specifies minimum number of processing units allocated to the instance. If set, this number should be multiples of 1000.
InstanceAutoscalingConfigAutoscalingTargets, InstanceAutoscalingConfigAutoscalingTargetsArgs          
- HighPriority intCpu Utilization Percent 
- Specifies the target high priority cpu utilization percentage that the autoscaler should be trying to achieve for the instance. This number is on a scale from 0 (no utilization) to 100 (full utilization)..
- StorageUtilization intPercent 
- Specifies the target storage utilization percentage that the autoscaler should be trying to achieve for the instance. This number is on a scale from 0 (no utilization) to 100 (full utilization).
- HighPriority intCpu Utilization Percent 
- Specifies the target high priority cpu utilization percentage that the autoscaler should be trying to achieve for the instance. This number is on a scale from 0 (no utilization) to 100 (full utilization)..
- StorageUtilization intPercent 
- Specifies the target storage utilization percentage that the autoscaler should be trying to achieve for the instance. This number is on a scale from 0 (no utilization) to 100 (full utilization).
- highPriority IntegerCpu Utilization Percent 
- Specifies the target high priority cpu utilization percentage that the autoscaler should be trying to achieve for the instance. This number is on a scale from 0 (no utilization) to 100 (full utilization)..
- storageUtilization IntegerPercent 
- Specifies the target storage utilization percentage that the autoscaler should be trying to achieve for the instance. This number is on a scale from 0 (no utilization) to 100 (full utilization).
- highPriority numberCpu Utilization Percent 
- Specifies the target high priority cpu utilization percentage that the autoscaler should be trying to achieve for the instance. This number is on a scale from 0 (no utilization) to 100 (full utilization)..
- storageUtilization numberPercent 
- Specifies the target storage utilization percentage that the autoscaler should be trying to achieve for the instance. This number is on a scale from 0 (no utilization) to 100 (full utilization).
- high_priority_ intcpu_ utilization_ percent 
- Specifies the target high priority cpu utilization percentage that the autoscaler should be trying to achieve for the instance. This number is on a scale from 0 (no utilization) to 100 (full utilization)..
- storage_utilization_ intpercent 
- Specifies the target storage utilization percentage that the autoscaler should be trying to achieve for the instance. This number is on a scale from 0 (no utilization) to 100 (full utilization).
- highPriority NumberCpu Utilization Percent 
- Specifies the target high priority cpu utilization percentage that the autoscaler should be trying to achieve for the instance. This number is on a scale from 0 (no utilization) to 100 (full utilization)..
- storageUtilization NumberPercent 
- Specifies the target storage utilization percentage that the autoscaler should be trying to achieve for the instance. This number is on a scale from 0 (no utilization) to 100 (full utilization).
Import
Instance can be imported using any of these accepted formats:
- projects/{{project}}/instances/{{name}}
- {{project}}/{{name}}
- {{name}}
When using the pulumi import command, Instance can be imported using one of the formats above. For example:
$ pulumi import gcp:spanner/instance:Instance default projects/{{project}}/instances/{{name}}
$ pulumi import gcp:spanner/instance:Instance default {{project}}/{{name}}
$ pulumi import gcp:spanner/instance:Instance default {{name}}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the google-betaTerraform Provider.