1. Packages
  2. Packages
  3. Google Cloud (GCP) Classic
  4. API Docs
  5. spanner
  6. InstancePartition
Viewing docs for Google Cloud v9.23.0
published on Thursday, May 7, 2026 by Pulumi
gcp logo
Viewing docs for Google Cloud v9.23.0
published on Thursday, May 7, 2026 by Pulumi

    A Cloud Spanner instance partition is a unit of Cloud Spanner database capacity that can be used to partition data and processing capacity within an instance.

    To get more information about InstancePartition, see:

    Example Usage

    Spanner Instance Partition Basic

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const main = new gcp.spanner.Instance("main", {
        name: "test-instance",
        config: "nam6",
        displayName: "main-instance",
        numNodes: 1,
        edition: "ENTERPRISE_PLUS",
    });
    const partition = new gcp.spanner.InstancePartition("partition", {
        name: "test-partition",
        instance: main.name,
        config: "nam8",
        displayName: "test-spanner-partition",
        nodeCount: 1,
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    main = gcp.spanner.Instance("main",
        name="test-instance",
        config="nam6",
        display_name="main-instance",
        num_nodes=1,
        edition="ENTERPRISE_PLUS")
    partition = gcp.spanner.InstancePartition("partition",
        name="test-partition",
        instance=main.name,
        config="nam8",
        display_name="test-spanner-partition",
        node_count=1)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/spanner"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		main, err := spanner.NewInstance(ctx, "main", &spanner.InstanceArgs{
    			Name:        pulumi.String("test-instance"),
    			Config:      pulumi.String("nam6"),
    			DisplayName: pulumi.String("main-instance"),
    			NumNodes:    pulumi.Int(1),
    			Edition:     pulumi.String("ENTERPRISE_PLUS"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = spanner.NewInstancePartition(ctx, "partition", &spanner.InstancePartitionArgs{
    			Name:        pulumi.String("test-partition"),
    			Instance:    main.Name,
    			Config:      pulumi.String("nam8"),
    			DisplayName: pulumi.String("test-spanner-partition"),
    			NodeCount:   pulumi.Int(1),
    		})
    		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 main = new Gcp.Spanner.Instance("main", new()
        {
            Name = "test-instance",
            Config = "nam6",
            DisplayName = "main-instance",
            NumNodes = 1,
            Edition = "ENTERPRISE_PLUS",
        });
    
        var partition = new Gcp.Spanner.InstancePartition("partition", new()
        {
            Name = "test-partition",
            Instance = main.Name,
            Config = "nam8",
            DisplayName = "test-spanner-partition",
            NodeCount = 1,
        });
    
    });
    
    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 com.pulumi.gcp.spanner.InstancePartition;
    import com.pulumi.gcp.spanner.InstancePartitionArgs;
    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 main = new Instance("main", InstanceArgs.builder()
                .name("test-instance")
                .config("nam6")
                .displayName("main-instance")
                .numNodes(1)
                .edition("ENTERPRISE_PLUS")
                .build());
    
            var partition = new InstancePartition("partition", InstancePartitionArgs.builder()
                .name("test-partition")
                .instance(main.name())
                .config("nam8")
                .displayName("test-spanner-partition")
                .nodeCount(1)
                .build());
    
        }
    }
    
    resources:
      main:
        type: gcp:spanner:Instance
        properties:
          name: test-instance
          config: nam6
          displayName: main-instance
          numNodes: 1
          edition: ENTERPRISE_PLUS
      partition:
        type: gcp:spanner:InstancePartition
        properties:
          name: test-partition
          instance: ${main.name}
          config: nam8
          displayName: test-spanner-partition
          nodeCount: 1
    
    Example coming soon!
    

    Spanner Instance Partition Autoscaling

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const main = new gcp.spanner.Instance("main", {
        name: "test-instance",
        config: "nam6",
        displayName: "main-instance",
        numNodes: 1,
        edition: "ENTERPRISE_PLUS",
    });
    const partition = new gcp.spanner.InstancePartition("partition", {
        name: "test-partition",
        instance: main.name,
        config: "nam8",
        displayName: "test-spanner-partition",
        autoscalingConfig: {
            autoscalingLimits: {
                minProcessingUnits: 1000,
                maxProcessingUnits: 2000,
            },
            autoscalingTargets: {
                highPriorityCpuUtilizationPercent: 65,
                storageUtilizationPercent: 95,
            },
        },
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    main = gcp.spanner.Instance("main",
        name="test-instance",
        config="nam6",
        display_name="main-instance",
        num_nodes=1,
        edition="ENTERPRISE_PLUS")
    partition = gcp.spanner.InstancePartition("partition",
        name="test-partition",
        instance=main.name,
        config="nam8",
        display_name="test-spanner-partition",
        autoscaling_config={
            "autoscaling_limits": {
                "min_processing_units": 1000,
                "max_processing_units": 2000,
            },
            "autoscaling_targets": {
                "high_priority_cpu_utilization_percent": 65,
                "storage_utilization_percent": 95,
            },
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/spanner"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		main, err := spanner.NewInstance(ctx, "main", &spanner.InstanceArgs{
    			Name:        pulumi.String("test-instance"),
    			Config:      pulumi.String("nam6"),
    			DisplayName: pulumi.String("main-instance"),
    			NumNodes:    pulumi.Int(1),
    			Edition:     pulumi.String("ENTERPRISE_PLUS"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = spanner.NewInstancePartition(ctx, "partition", &spanner.InstancePartitionArgs{
    			Name:        pulumi.String("test-partition"),
    			Instance:    main.Name,
    			Config:      pulumi.String("nam8"),
    			DisplayName: pulumi.String("test-spanner-partition"),
    			AutoscalingConfig: &spanner.InstancePartitionAutoscalingConfigArgs{
    				AutoscalingLimits: &spanner.InstancePartitionAutoscalingConfigAutoscalingLimitsArgs{
    					MinProcessingUnits: pulumi.Int(1000),
    					MaxProcessingUnits: pulumi.Int(2000),
    				},
    				AutoscalingTargets: &spanner.InstancePartitionAutoscalingConfigAutoscalingTargetsArgs{
    					HighPriorityCpuUtilizationPercent: pulumi.Int(65),
    					StorageUtilizationPercent:         pulumi.Int(95),
    				},
    			},
    		})
    		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 main = new Gcp.Spanner.Instance("main", new()
        {
            Name = "test-instance",
            Config = "nam6",
            DisplayName = "main-instance",
            NumNodes = 1,
            Edition = "ENTERPRISE_PLUS",
        });
    
        var partition = new Gcp.Spanner.InstancePartition("partition", new()
        {
            Name = "test-partition",
            Instance = main.Name,
            Config = "nam8",
            DisplayName = "test-spanner-partition",
            AutoscalingConfig = new Gcp.Spanner.Inputs.InstancePartitionAutoscalingConfigArgs
            {
                AutoscalingLimits = new Gcp.Spanner.Inputs.InstancePartitionAutoscalingConfigAutoscalingLimitsArgs
                {
                    MinProcessingUnits = 1000,
                    MaxProcessingUnits = 2000,
                },
                AutoscalingTargets = new Gcp.Spanner.Inputs.InstancePartitionAutoscalingConfigAutoscalingTargetsArgs
                {
                    HighPriorityCpuUtilizationPercent = 65,
                    StorageUtilizationPercent = 95,
                },
            },
        });
    
    });
    
    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 com.pulumi.gcp.spanner.InstancePartition;
    import com.pulumi.gcp.spanner.InstancePartitionArgs;
    import com.pulumi.gcp.spanner.inputs.InstancePartitionAutoscalingConfigArgs;
    import com.pulumi.gcp.spanner.inputs.InstancePartitionAutoscalingConfigAutoscalingLimitsArgs;
    import com.pulumi.gcp.spanner.inputs.InstancePartitionAutoscalingConfigAutoscalingTargetsArgs;
    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 main = new Instance("main", InstanceArgs.builder()
                .name("test-instance")
                .config("nam6")
                .displayName("main-instance")
                .numNodes(1)
                .edition("ENTERPRISE_PLUS")
                .build());
    
            var partition = new InstancePartition("partition", InstancePartitionArgs.builder()
                .name("test-partition")
                .instance(main.name())
                .config("nam8")
                .displayName("test-spanner-partition")
                .autoscalingConfig(InstancePartitionAutoscalingConfigArgs.builder()
                    .autoscalingLimits(InstancePartitionAutoscalingConfigAutoscalingLimitsArgs.builder()
                        .minProcessingUnits(1000)
                        .maxProcessingUnits(2000)
                        .build())
                    .autoscalingTargets(InstancePartitionAutoscalingConfigAutoscalingTargetsArgs.builder()
                        .highPriorityCpuUtilizationPercent(65)
                        .storageUtilizationPercent(95)
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      main:
        type: gcp:spanner:Instance
        properties:
          name: test-instance
          config: nam6
          displayName: main-instance
          numNodes: 1
          edition: ENTERPRISE_PLUS
      partition:
        type: gcp:spanner:InstancePartition
        properties:
          name: test-partition
          instance: ${main.name}
          config: nam8
          displayName: test-spanner-partition
          autoscalingConfig:
            autoscalingLimits:
              minProcessingUnits: 1000
              maxProcessingUnits: 2000
            autoscalingTargets:
              highPriorityCpuUtilizationPercent: 65
              storageUtilizationPercent: 95
    
    Example coming soon!
    

    Create InstancePartition Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new InstancePartition(name: string, args: InstancePartitionArgs, opts?: CustomResourceOptions);
    @overload
    def InstancePartition(resource_name: str,
                          args: InstancePartitionArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def InstancePartition(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          config: Optional[str] = None,
                          display_name: Optional[str] = None,
                          instance: Optional[str] = None,
                          autoscaling_config: Optional[InstancePartitionAutoscalingConfigArgs] = None,
                          name: Optional[str] = None,
                          node_count: Optional[int] = None,
                          processing_units: Optional[int] = None,
                          project: Optional[str] = None)
    func NewInstancePartition(ctx *Context, name string, args InstancePartitionArgs, opts ...ResourceOption) (*InstancePartition, error)
    public InstancePartition(string name, InstancePartitionArgs args, CustomResourceOptions? opts = null)
    public InstancePartition(String name, InstancePartitionArgs args)
    public InstancePartition(String name, InstancePartitionArgs args, CustomResourceOptions options)
    
    type: gcp:spanner:InstancePartition
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "gcp_spanner_instancepartition" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args InstancePartitionArgs
    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 InstancePartitionArgs
    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 InstancePartitionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args InstancePartitionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args InstancePartitionArgs
    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 instancePartitionResource = new Gcp.Spanner.InstancePartition("instancePartitionResource", new()
    {
        Config = "string",
        DisplayName = "string",
        Instance = "string",
        AutoscalingConfig = new Gcp.Spanner.Inputs.InstancePartitionAutoscalingConfigArgs
        {
            AutoscalingLimits = new Gcp.Spanner.Inputs.InstancePartitionAutoscalingConfigAutoscalingLimitsArgs
            {
                MaxNodes = 0,
                MaxProcessingUnits = 0,
                MinNodes = 0,
                MinProcessingUnits = 0,
            },
            AutoscalingTargets = new Gcp.Spanner.Inputs.InstancePartitionAutoscalingConfigAutoscalingTargetsArgs
            {
                HighPriorityCpuUtilizationPercent = 0,
                StorageUtilizationPercent = 0,
                TotalCpuUtilizationPercent = 0,
            },
        },
        Name = "string",
        NodeCount = 0,
        ProcessingUnits = 0,
        Project = "string",
    });
    
    example, err := spanner.NewInstancePartition(ctx, "instancePartitionResource", &spanner.InstancePartitionArgs{
    	Config:      pulumi.String("string"),
    	DisplayName: pulumi.String("string"),
    	Instance:    pulumi.String("string"),
    	AutoscalingConfig: &spanner.InstancePartitionAutoscalingConfigArgs{
    		AutoscalingLimits: &spanner.InstancePartitionAutoscalingConfigAutoscalingLimitsArgs{
    			MaxNodes:           pulumi.Int(0),
    			MaxProcessingUnits: pulumi.Int(0),
    			MinNodes:           pulumi.Int(0),
    			MinProcessingUnits: pulumi.Int(0),
    		},
    		AutoscalingTargets: &spanner.InstancePartitionAutoscalingConfigAutoscalingTargetsArgs{
    			HighPriorityCpuUtilizationPercent: pulumi.Int(0),
    			StorageUtilizationPercent:         pulumi.Int(0),
    			TotalCpuUtilizationPercent:        pulumi.Int(0),
    		},
    	},
    	Name:            pulumi.String("string"),
    	NodeCount:       pulumi.Int(0),
    	ProcessingUnits: pulumi.Int(0),
    	Project:         pulumi.String("string"),
    })
    
    resource "gcp_spanner_instancepartition" "instancePartitionResource" {
      config       = "string"
      display_name = "string"
      instance     = "string"
      autoscaling_config = {
        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
          total_cpu_utilization_percent         = 0
        }
      }
      name             = "string"
      node_count       = 0
      processing_units = 0
      project          = "string"
    }
    
    var instancePartitionResource = new InstancePartition("instancePartitionResource", InstancePartitionArgs.builder()
        .config("string")
        .displayName("string")
        .instance("string")
        .autoscalingConfig(InstancePartitionAutoscalingConfigArgs.builder()
            .autoscalingLimits(InstancePartitionAutoscalingConfigAutoscalingLimitsArgs.builder()
                .maxNodes(0)
                .maxProcessingUnits(0)
                .minNodes(0)
                .minProcessingUnits(0)
                .build())
            .autoscalingTargets(InstancePartitionAutoscalingConfigAutoscalingTargetsArgs.builder()
                .highPriorityCpuUtilizationPercent(0)
                .storageUtilizationPercent(0)
                .totalCpuUtilizationPercent(0)
                .build())
            .build())
        .name("string")
        .nodeCount(0)
        .processingUnits(0)
        .project("string")
        .build());
    
    instance_partition_resource = gcp.spanner.InstancePartition("instancePartitionResource",
        config="string",
        display_name="string",
        instance="string",
        autoscaling_config={
            "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,
                "total_cpu_utilization_percent": 0,
            },
        },
        name="string",
        node_count=0,
        processing_units=0,
        project="string")
    
    const instancePartitionResource = new gcp.spanner.InstancePartition("instancePartitionResource", {
        config: "string",
        displayName: "string",
        instance: "string",
        autoscalingConfig: {
            autoscalingLimits: {
                maxNodes: 0,
                maxProcessingUnits: 0,
                minNodes: 0,
                minProcessingUnits: 0,
            },
            autoscalingTargets: {
                highPriorityCpuUtilizationPercent: 0,
                storageUtilizationPercent: 0,
                totalCpuUtilizationPercent: 0,
            },
        },
        name: "string",
        nodeCount: 0,
        processingUnits: 0,
        project: "string",
    });
    
    type: gcp:spanner:InstancePartition
    properties:
        autoscalingConfig:
            autoscalingLimits:
                maxNodes: 0
                maxProcessingUnits: 0
                minNodes: 0
                minProcessingUnits: 0
            autoscalingTargets:
                highPriorityCpuUtilizationPercent: 0
                storageUtilizationPercent: 0
                totalCpuUtilizationPercent: 0
        config: string
        displayName: string
        instance: string
        name: string
        nodeCount: 0
        processingUnits: 0
        project: string
    

    InstancePartition 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 InstancePartition resource accepts the following input properties:

    Config string
    The name of the instance partition's configuration (similar to a region) which defines the geographic placement and replication of data in this instance partition.
    DisplayName string
    The descriptive name for this instance partition as it appears in UIs. Must be unique per project and between 4 and 30 characters in length.
    Instance string
    The instance to create the instance partition in.
    AutoscalingConfig InstancePartitionAutoscalingConfig
    The autoscaling configuration. Autoscaling is enabled if this field is set. Exactly one of either node_count, processing_units, or autoscalingConfig must be present. When autoscaling is enabled, nodeCount and processingUnits are treated as OUTPUT_ONLY fields and reflect the current compute capacity allocated to the instance partition. Structure is documented below.
    Name string
    A unique identifier for the instance partition, which cannot be changed after the instance partition is created. The name must be between 2 and 64 characters and match the regular expression [a-z][a-z0-9\-]{0,61}[a-z0-9].
    NodeCount int
    The number of nodes allocated to this instance partition. One node equals 1000 processing units. Exactly one of either node_count, processing_units, or autoscalingConfig must be present.
    ProcessingUnits int
    The number of processing units allocated to this instance partition. Exactly one of either node_count, processing_units, or autoscalingConfig must be present.
    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 partition's configuration (similar to a region) which defines the geographic placement and replication of data in this instance partition.
    DisplayName string
    The descriptive name for this instance partition as it appears in UIs. Must be unique per project and between 4 and 30 characters in length.
    Instance string
    The instance to create the instance partition in.
    AutoscalingConfig InstancePartitionAutoscalingConfigArgs
    The autoscaling configuration. Autoscaling is enabled if this field is set. Exactly one of either node_count, processing_units, or autoscalingConfig must be present. When autoscaling is enabled, nodeCount and processingUnits are treated as OUTPUT_ONLY fields and reflect the current compute capacity allocated to the instance partition. Structure is documented below.
    Name string
    A unique identifier for the instance partition, which cannot be changed after the instance partition is created. The name must be between 2 and 64 characters and match the regular expression [a-z][a-z0-9\-]{0,61}[a-z0-9].
    NodeCount int
    The number of nodes allocated to this instance partition. One node equals 1000 processing units. Exactly one of either node_count, processing_units, or autoscalingConfig must be present.
    ProcessingUnits int
    The number of processing units allocated to this instance partition. Exactly one of either node_count, processing_units, or autoscalingConfig must be present.
    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 partition's configuration (similar to a region) which defines the geographic placement and replication of data in this instance partition.
    display_name string
    The descriptive name for this instance partition as it appears in UIs. Must be unique per project and between 4 and 30 characters in length.
    instance string
    The instance to create the instance partition in.
    autoscaling_config object
    The autoscaling configuration. Autoscaling is enabled if this field is set. Exactly one of either node_count, processing_units, or autoscalingConfig must be present. When autoscaling is enabled, nodeCount and processingUnits are treated as OUTPUT_ONLY fields and reflect the current compute capacity allocated to the instance partition. Structure is documented below.
    name string
    A unique identifier for the instance partition, which cannot be changed after the instance partition is created. The name must be between 2 and 64 characters and match the regular expression [a-z][a-z0-9\-]{0,61}[a-z0-9].
    node_count number
    The number of nodes allocated to this instance partition. One node equals 1000 processing units. Exactly one of either node_count, processing_units, or autoscalingConfig must be present.
    processing_units number
    The number of processing units allocated to this instance partition. Exactly one of either node_count, processing_units, or autoscalingConfig must be present.
    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 partition's configuration (similar to a region) which defines the geographic placement and replication of data in this instance partition.
    displayName String
    The descriptive name for this instance partition as it appears in UIs. Must be unique per project and between 4 and 30 characters in length.
    instance String
    The instance to create the instance partition in.
    autoscalingConfig InstancePartitionAutoscalingConfig
    The autoscaling configuration. Autoscaling is enabled if this field is set. Exactly one of either node_count, processing_units, or autoscalingConfig must be present. When autoscaling is enabled, nodeCount and processingUnits are treated as OUTPUT_ONLY fields and reflect the current compute capacity allocated to the instance partition. Structure is documented below.
    name String
    A unique identifier for the instance partition, which cannot be changed after the instance partition is created. The name must be between 2 and 64 characters and match the regular expression [a-z][a-z0-9\-]{0,61}[a-z0-9].
    nodeCount Integer
    The number of nodes allocated to this instance partition. One node equals 1000 processing units. Exactly one of either node_count, processing_units, or autoscalingConfig must be present.
    processingUnits Integer
    The number of processing units allocated to this instance partition. Exactly one of either node_count, processing_units, or autoscalingConfig must be present.
    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 partition's configuration (similar to a region) which defines the geographic placement and replication of data in this instance partition.
    displayName string
    The descriptive name for this instance partition as it appears in UIs. Must be unique per project and between 4 and 30 characters in length.
    instance string
    The instance to create the instance partition in.
    autoscalingConfig InstancePartitionAutoscalingConfig
    The autoscaling configuration. Autoscaling is enabled if this field is set. Exactly one of either node_count, processing_units, or autoscalingConfig must be present. When autoscaling is enabled, nodeCount and processingUnits are treated as OUTPUT_ONLY fields and reflect the current compute capacity allocated to the instance partition. Structure is documented below.
    name string
    A unique identifier for the instance partition, which cannot be changed after the instance partition is created. The name must be between 2 and 64 characters and match the regular expression [a-z][a-z0-9\-]{0,61}[a-z0-9].
    nodeCount number
    The number of nodes allocated to this instance partition. One node equals 1000 processing units. Exactly one of either node_count, processing_units, or autoscalingConfig must be present.
    processingUnits number
    The number of processing units allocated to this instance partition. Exactly one of either node_count, processing_units, or autoscalingConfig must be present.
    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 partition's configuration (similar to a region) which defines the geographic placement and replication of data in this instance partition.
    display_name str
    The descriptive name for this instance partition as it appears in UIs. Must be unique per project and between 4 and 30 characters in length.
    instance str
    The instance to create the instance partition in.
    autoscaling_config InstancePartitionAutoscalingConfigArgs
    The autoscaling configuration. Autoscaling is enabled if this field is set. Exactly one of either node_count, processing_units, or autoscalingConfig must be present. When autoscaling is enabled, nodeCount and processingUnits are treated as OUTPUT_ONLY fields and reflect the current compute capacity allocated to the instance partition. Structure is documented below.
    name str
    A unique identifier for the instance partition, which cannot be changed after the instance partition is created. The name must be between 2 and 64 characters and match the regular expression [a-z][a-z0-9\-]{0,61}[a-z0-9].
    node_count int
    The number of nodes allocated to this instance partition. One node equals 1000 processing units. Exactly one of either node_count, processing_units, or autoscalingConfig must be present.
    processing_units int
    The number of processing units allocated to this instance partition. Exactly one of either node_count, processing_units, or autoscalingConfig must be present.
    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 partition's configuration (similar to a region) which defines the geographic placement and replication of data in this instance partition.
    displayName String
    The descriptive name for this instance partition as it appears in UIs. Must be unique per project and between 4 and 30 characters in length.
    instance String
    The instance to create the instance partition in.
    autoscalingConfig Property Map
    The autoscaling configuration. Autoscaling is enabled if this field is set. Exactly one of either node_count, processing_units, or autoscalingConfig must be present. When autoscaling is enabled, nodeCount and processingUnits are treated as OUTPUT_ONLY fields and reflect the current compute capacity allocated to the instance partition. Structure is documented below.
    name String
    A unique identifier for the instance partition, which cannot be changed after the instance partition is created. The name must be between 2 and 64 characters and match the regular expression [a-z][a-z0-9\-]{0,61}[a-z0-9].
    nodeCount Number
    The number of nodes allocated to this instance partition. One node equals 1000 processing units. Exactly one of either node_count, processing_units, or autoscalingConfig must be present.
    processingUnits Number
    The number of processing units allocated to this instance partition. Exactly one of either node_count, processing_units, or autoscalingConfig must be present.
    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 InstancePartition resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    The current instance partition state. Possible values are: CREATING: The instance partition is being created. Resources are being allocated for the instance partition. READY: The instance partition has been allocated resources and is ready for use.
    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    The current instance partition state. Possible values are: CREATING: The instance partition is being created. Resources are being allocated for the instance partition. READY: The instance partition has been allocated resources and is ready for use.
    id string
    The provider-assigned unique ID for this managed resource.
    state string
    The current instance partition state. Possible values are: CREATING: The instance partition is being created. Resources are being allocated for the instance partition. READY: The instance partition has been allocated resources and is ready for use.
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    The current instance partition state. Possible values are: CREATING: The instance partition is being created. Resources are being allocated for the instance partition. READY: The instance partition has been allocated resources and is ready for use.
    id string
    The provider-assigned unique ID for this managed resource.
    state string
    The current instance partition state. Possible values are: CREATING: The instance partition is being created. Resources are being allocated for the instance partition. READY: The instance partition has been allocated resources and is ready for use.
    id str
    The provider-assigned unique ID for this managed resource.
    state str
    The current instance partition state. Possible values are: CREATING: The instance partition is being created. Resources are being allocated for the instance partition. READY: The instance partition has been allocated resources and is ready for use.
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    The current instance partition state. Possible values are: CREATING: The instance partition is being created. Resources are being allocated for the instance partition. READY: The instance partition has been allocated resources and is ready for use.

    Look up Existing InstancePartition Resource

    Get an existing InstancePartition 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?: InstancePartitionState, opts?: CustomResourceOptions): InstancePartition
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            autoscaling_config: Optional[InstancePartitionAutoscalingConfigArgs] = None,
            config: Optional[str] = None,
            display_name: Optional[str] = None,
            instance: Optional[str] = None,
            name: Optional[str] = None,
            node_count: Optional[int] = None,
            processing_units: Optional[int] = None,
            project: Optional[str] = None,
            state: Optional[str] = None) -> InstancePartition
    func GetInstancePartition(ctx *Context, name string, id IDInput, state *InstancePartitionState, opts ...ResourceOption) (*InstancePartition, error)
    public static InstancePartition Get(string name, Input<string> id, InstancePartitionState? state, CustomResourceOptions? opts = null)
    public static InstancePartition get(String name, Output<String> id, InstancePartitionState state, CustomResourceOptions options)
    resources:  _:    type: gcp:spanner:InstancePartition    get:      id: ${id}
    import {
      to = gcp_spanner_instancepartition.example
      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.
    The following state arguments are supported:
    AutoscalingConfig InstancePartitionAutoscalingConfig
    The autoscaling configuration. Autoscaling is enabled if this field is set. Exactly one of either node_count, processing_units, or autoscalingConfig must be present. When autoscaling is enabled, nodeCount and processingUnits are treated as OUTPUT_ONLY fields and reflect the current compute capacity allocated to the instance partition. Structure is documented below.
    Config string
    The name of the instance partition's configuration (similar to a region) which defines the geographic placement and replication of data in this instance partition.
    DisplayName string
    The descriptive name for this instance partition as it appears in UIs. Must be unique per project and between 4 and 30 characters in length.
    Instance string
    The instance to create the instance partition in.
    Name string
    A unique identifier for the instance partition, which cannot be changed after the instance partition is created. The name must be between 2 and 64 characters and match the regular expression [a-z][a-z0-9\-]{0,61}[a-z0-9].
    NodeCount int
    The number of nodes allocated to this instance partition. One node equals 1000 processing units. Exactly one of either node_count, processing_units, or autoscalingConfig must be present.
    ProcessingUnits int
    The number of processing units allocated to this instance partition. Exactly one of either node_count, processing_units, or autoscalingConfig must be present.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    State string
    The current instance partition state. Possible values are: CREATING: The instance partition is being created. Resources are being allocated for the instance partition. READY: The instance partition has been allocated resources and is ready for use.
    AutoscalingConfig InstancePartitionAutoscalingConfigArgs
    The autoscaling configuration. Autoscaling is enabled if this field is set. Exactly one of either node_count, processing_units, or autoscalingConfig must be present. When autoscaling is enabled, nodeCount and processingUnits are treated as OUTPUT_ONLY fields and reflect the current compute capacity allocated to the instance partition. Structure is documented below.
    Config string
    The name of the instance partition's configuration (similar to a region) which defines the geographic placement and replication of data in this instance partition.
    DisplayName string
    The descriptive name for this instance partition as it appears in UIs. Must be unique per project and between 4 and 30 characters in length.
    Instance string
    The instance to create the instance partition in.
    Name string
    A unique identifier for the instance partition, which cannot be changed after the instance partition is created. The name must be between 2 and 64 characters and match the regular expression [a-z][a-z0-9\-]{0,61}[a-z0-9].
    NodeCount int
    The number of nodes allocated to this instance partition. One node equals 1000 processing units. Exactly one of either node_count, processing_units, or autoscalingConfig must be present.
    ProcessingUnits int
    The number of processing units allocated to this instance partition. Exactly one of either node_count, processing_units, or autoscalingConfig must be present.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    State string
    The current instance partition state. Possible values are: CREATING: The instance partition is being created. Resources are being allocated for the instance partition. READY: The instance partition has been allocated resources and is ready for use.
    autoscaling_config object
    The autoscaling configuration. Autoscaling is enabled if this field is set. Exactly one of either node_count, processing_units, or autoscalingConfig must be present. When autoscaling is enabled, nodeCount and processingUnits are treated as OUTPUT_ONLY fields and reflect the current compute capacity allocated to the instance partition. Structure is documented below.
    config string
    The name of the instance partition's configuration (similar to a region) which defines the geographic placement and replication of data in this instance partition.
    display_name string
    The descriptive name for this instance partition as it appears in UIs. Must be unique per project and between 4 and 30 characters in length.
    instance string
    The instance to create the instance partition in.
    name string
    A unique identifier for the instance partition, which cannot be changed after the instance partition is created. The name must be between 2 and 64 characters and match the regular expression [a-z][a-z0-9\-]{0,61}[a-z0-9].
    node_count number
    The number of nodes allocated to this instance partition. One node equals 1000 processing units. Exactly one of either node_count, processing_units, or autoscalingConfig must be present.
    processing_units number
    The number of processing units allocated to this instance partition. Exactly one of either node_count, processing_units, or autoscalingConfig must be present.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    state string
    The current instance partition state. Possible values are: CREATING: The instance partition is being created. Resources are being allocated for the instance partition. READY: The instance partition has been allocated resources and is ready for use.
    autoscalingConfig InstancePartitionAutoscalingConfig
    The autoscaling configuration. Autoscaling is enabled if this field is set. Exactly one of either node_count, processing_units, or autoscalingConfig must be present. When autoscaling is enabled, nodeCount and processingUnits are treated as OUTPUT_ONLY fields and reflect the current compute capacity allocated to the instance partition. Structure is documented below.
    config String
    The name of the instance partition's configuration (similar to a region) which defines the geographic placement and replication of data in this instance partition.
    displayName String
    The descriptive name for this instance partition as it appears in UIs. Must be unique per project and between 4 and 30 characters in length.
    instance String
    The instance to create the instance partition in.
    name String
    A unique identifier for the instance partition, which cannot be changed after the instance partition is created. The name must be between 2 and 64 characters and match the regular expression [a-z][a-z0-9\-]{0,61}[a-z0-9].
    nodeCount Integer
    The number of nodes allocated to this instance partition. One node equals 1000 processing units. Exactly one of either node_count, processing_units, or autoscalingConfig must be present.
    processingUnits Integer
    The number of processing units allocated to this instance partition. Exactly one of either node_count, processing_units, or autoscalingConfig must be present.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    state String
    The current instance partition state. Possible values are: CREATING: The instance partition is being created. Resources are being allocated for the instance partition. READY: The instance partition has been allocated resources and is ready for use.
    autoscalingConfig InstancePartitionAutoscalingConfig
    The autoscaling configuration. Autoscaling is enabled if this field is set. Exactly one of either node_count, processing_units, or autoscalingConfig must be present. When autoscaling is enabled, nodeCount and processingUnits are treated as OUTPUT_ONLY fields and reflect the current compute capacity allocated to the instance partition. Structure is documented below.
    config string
    The name of the instance partition's configuration (similar to a region) which defines the geographic placement and replication of data in this instance partition.
    displayName string
    The descriptive name for this instance partition as it appears in UIs. Must be unique per project and between 4 and 30 characters in length.
    instance string
    The instance to create the instance partition in.
    name string
    A unique identifier for the instance partition, which cannot be changed after the instance partition is created. The name must be between 2 and 64 characters and match the regular expression [a-z][a-z0-9\-]{0,61}[a-z0-9].
    nodeCount number
    The number of nodes allocated to this instance partition. One node equals 1000 processing units. Exactly one of either node_count, processing_units, or autoscalingConfig must be present.
    processingUnits number
    The number of processing units allocated to this instance partition. Exactly one of either node_count, processing_units, or autoscalingConfig must be present.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    state string
    The current instance partition state. Possible values are: CREATING: The instance partition is being created. Resources are being allocated for the instance partition. READY: The instance partition has been allocated resources and is ready for use.
    autoscaling_config InstancePartitionAutoscalingConfigArgs
    The autoscaling configuration. Autoscaling is enabled if this field is set. Exactly one of either node_count, processing_units, or autoscalingConfig must be present. When autoscaling is enabled, nodeCount and processingUnits are treated as OUTPUT_ONLY fields and reflect the current compute capacity allocated to the instance partition. Structure is documented below.
    config str
    The name of the instance partition's configuration (similar to a region) which defines the geographic placement and replication of data in this instance partition.
    display_name str
    The descriptive name for this instance partition as it appears in UIs. Must be unique per project and between 4 and 30 characters in length.
    instance str
    The instance to create the instance partition in.
    name str
    A unique identifier for the instance partition, which cannot be changed after the instance partition is created. The name must be between 2 and 64 characters and match the regular expression [a-z][a-z0-9\-]{0,61}[a-z0-9].
    node_count int
    The number of nodes allocated to this instance partition. One node equals 1000 processing units. Exactly one of either node_count, processing_units, or autoscalingConfig must be present.
    processing_units int
    The number of processing units allocated to this instance partition. Exactly one of either node_count, processing_units, or autoscalingConfig must be present.
    project str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    state str
    The current instance partition state. Possible values are: CREATING: The instance partition is being created. Resources are being allocated for the instance partition. READY: The instance partition has been allocated resources and is ready for use.
    autoscalingConfig Property Map
    The autoscaling configuration. Autoscaling is enabled if this field is set. Exactly one of either node_count, processing_units, or autoscalingConfig must be present. When autoscaling is enabled, nodeCount and processingUnits are treated as OUTPUT_ONLY fields and reflect the current compute capacity allocated to the instance partition. Structure is documented below.
    config String
    The name of the instance partition's configuration (similar to a region) which defines the geographic placement and replication of data in this instance partition.
    displayName String
    The descriptive name for this instance partition as it appears in UIs. Must be unique per project and between 4 and 30 characters in length.
    instance String
    The instance to create the instance partition in.
    name String
    A unique identifier for the instance partition, which cannot be changed after the instance partition is created. The name must be between 2 and 64 characters and match the regular expression [a-z][a-z0-9\-]{0,61}[a-z0-9].
    nodeCount Number
    The number of nodes allocated to this instance partition. One node equals 1000 processing units. Exactly one of either node_count, processing_units, or autoscalingConfig must be present.
    processingUnits Number
    The number of processing units allocated to this instance partition. Exactly one of either node_count, processing_units, or autoscalingConfig must be present.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    state String
    The current instance partition state. Possible values are: CREATING: The instance partition is being created. Resources are being allocated for the instance partition. READY: The instance partition has been allocated resources and is ready for use.

    Supporting Types

    InstancePartitionAutoscalingConfig, InstancePartitionAutoscalingConfigArgs

    AutoscalingLimits InstancePartitionAutoscalingConfigAutoscalingLimits
    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 partition, 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 minLimit and max_limit. Structure is documented below.
    AutoscalingTargets InstancePartitionAutoscalingConfigAutoscalingTargets
    Defines scale in controls to reduce the risk of response latency and outages due to abrupt scale-in events Structure is documented below.
    AutoscalingLimits InstancePartitionAutoscalingConfigAutoscalingLimits
    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 partition, 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 minLimit and max_limit. Structure is documented below.
    AutoscalingTargets InstancePartitionAutoscalingConfigAutoscalingTargets
    Defines scale in controls to reduce the risk of response latency and outages due to abrupt scale-in events Structure is documented below.
    autoscaling_limits object
    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 partition, 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 minLimit and max_limit. Structure is documented below.
    autoscaling_targets object
    Defines scale in controls to reduce the risk of response latency and outages due to abrupt scale-in events Structure is documented below.
    autoscalingLimits InstancePartitionAutoscalingConfigAutoscalingLimits
    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 partition, 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 minLimit and max_limit. Structure is documented below.
    autoscalingTargets InstancePartitionAutoscalingConfigAutoscalingTargets
    Defines scale in controls to reduce the risk of response latency and outages due to abrupt scale-in events Structure is documented below.
    autoscalingLimits InstancePartitionAutoscalingConfigAutoscalingLimits
    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 partition, 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 minLimit and max_limit. Structure is documented below.
    autoscalingTargets InstancePartitionAutoscalingConfigAutoscalingTargets
    Defines scale in controls to reduce the risk of response latency and outages due to abrupt scale-in events Structure is documented below.
    autoscaling_limits InstancePartitionAutoscalingConfigAutoscalingLimits
    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 partition, 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 minLimit and max_limit. Structure is documented below.
    autoscaling_targets InstancePartitionAutoscalingConfigAutoscalingTargets
    Defines scale in controls to reduce the risk of response latency and outages due to abrupt scale-in events 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 partition, 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 minLimit 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.

    InstancePartitionAutoscalingConfigAutoscalingLimits, InstancePartitionAutoscalingConfigAutoscalingLimitsArgs

    MaxNodes int
    Specifies maximum number of nodes allocated to the instance partition. If set, this number should be greater than or equal to min_nodes.
    MaxProcessingUnits int
    Specifies maximum number of processing units allocated to the instance partition. If set, this number should be multiples of 1000 and be greater than or equal to min_processing_units.
    MinNodes int
    Specifies number of nodes allocated to the instance partition. If set, this number should be greater than or equal to 1.
    MinProcessingUnits int
    Specifies minimum number of processing units allocated to the instance partition. If set, this number should be multiples of 1000.
    MaxNodes int
    Specifies maximum number of nodes allocated to the instance partition. If set, this number should be greater than or equal to min_nodes.
    MaxProcessingUnits int
    Specifies maximum number of processing units allocated to the instance partition. If set, this number should be multiples of 1000 and be greater than or equal to min_processing_units.
    MinNodes int
    Specifies number of nodes allocated to the instance partition. If set, this number should be greater than or equal to 1.
    MinProcessingUnits int
    Specifies minimum number of processing units allocated to the instance partition. If set, this number should be multiples of 1000.
    max_nodes number
    Specifies maximum number of nodes allocated to the instance partition. If set, this number should be greater than or equal to min_nodes.
    max_processing_units number
    Specifies maximum number of processing units allocated to the instance partition. If set, this number should be multiples of 1000 and be greater than or equal to min_processing_units.
    min_nodes number
    Specifies number of nodes allocated to the instance partition. If set, this number should be greater than or equal to 1.
    min_processing_units number
    Specifies minimum number of processing units allocated to the instance partition. If set, this number should be multiples of 1000.
    maxNodes Integer
    Specifies maximum number of nodes allocated to the instance partition. If set, this number should be greater than or equal to min_nodes.
    maxProcessingUnits Integer
    Specifies maximum number of processing units allocated to the instance partition. If set, this number should be multiples of 1000 and be greater than or equal to min_processing_units.
    minNodes Integer
    Specifies number of nodes allocated to the instance partition. If set, this number should be greater than or equal to 1.
    minProcessingUnits Integer
    Specifies minimum number of processing units allocated to the instance partition. If set, this number should be multiples of 1000.
    maxNodes number
    Specifies maximum number of nodes allocated to the instance partition. If set, this number should be greater than or equal to min_nodes.
    maxProcessingUnits number
    Specifies maximum number of processing units allocated to the instance partition. If set, this number should be multiples of 1000 and be greater than or equal to min_processing_units.
    minNodes number
    Specifies number of nodes allocated to the instance partition. If set, this number should be greater than or equal to 1.
    minProcessingUnits number
    Specifies minimum number of processing units allocated to the instance partition. If set, this number should be multiples of 1000.
    max_nodes int
    Specifies maximum number of nodes allocated to the instance partition. If set, this number should be greater than or equal to min_nodes.
    max_processing_units int
    Specifies maximum number of processing units allocated to the instance partition. If set, this number should be multiples of 1000 and be greater than or equal to min_processing_units.
    min_nodes int
    Specifies number of nodes allocated to the instance partition. If set, this number should be greater than or equal to 1.
    min_processing_units int
    Specifies minimum number of processing units allocated to the instance partition. If set, this number should be multiples of 1000.
    maxNodes Number
    Specifies maximum number of nodes allocated to the instance partition. If set, this number should be greater than or equal to min_nodes.
    maxProcessingUnits Number
    Specifies maximum number of processing units allocated to the instance partition. If set, this number should be multiples of 1000 and be greater than or equal to min_processing_units.
    minNodes Number
    Specifies number of nodes allocated to the instance partition. If set, this number should be greater than or equal to 1.
    minProcessingUnits Number
    Specifies minimum number of processing units allocated to the instance partition. If set, this number should be multiples of 1000.

    InstancePartitionAutoscalingConfigAutoscalingTargets, InstancePartitionAutoscalingConfigAutoscalingTargetsArgs

    HighPriorityCpuUtilizationPercent int
    Specifies the target high priority cpu utilization percentage that the autoscaler should be trying to achieve for the instance partition. This number is on a scale from 0 (no utilization) to 100 (full utilization).
    StorageUtilizationPercent int
    Specifies the target storage utilization percentage that the autoscaler should be trying to achieve for the instance partition. This number is on a scale from 0 (no utilization) to 100 (full utilization).
    TotalCpuUtilizationPercent int
    Specifies the target total cpu utilization percentage that the autoscaler should be trying to achieve for the instance partition. This number is on a scale from 0 (no utilization) to 100 (full utilization). The valid range is [10, 90] inclusive. If not specified or set to 0, the autoscaler will skip scaling based on total cpu utilization. The value should be higher than highPriorityCpuUtilizationPercent if present.
    HighPriorityCpuUtilizationPercent int
    Specifies the target high priority cpu utilization percentage that the autoscaler should be trying to achieve for the instance partition. This number is on a scale from 0 (no utilization) to 100 (full utilization).
    StorageUtilizationPercent int
    Specifies the target storage utilization percentage that the autoscaler should be trying to achieve for the instance partition. This number is on a scale from 0 (no utilization) to 100 (full utilization).
    TotalCpuUtilizationPercent int
    Specifies the target total cpu utilization percentage that the autoscaler should be trying to achieve for the instance partition. This number is on a scale from 0 (no utilization) to 100 (full utilization). The valid range is [10, 90] inclusive. If not specified or set to 0, the autoscaler will skip scaling based on total cpu utilization. The value should be higher than highPriorityCpuUtilizationPercent if present.
    high_priority_cpu_utilization_percent number
    Specifies the target high priority cpu utilization percentage that the autoscaler should be trying to achieve for the instance partition. This number is on a scale from 0 (no utilization) to 100 (full utilization).
    storage_utilization_percent number
    Specifies the target storage utilization percentage that the autoscaler should be trying to achieve for the instance partition. This number is on a scale from 0 (no utilization) to 100 (full utilization).
    total_cpu_utilization_percent number
    Specifies the target total cpu utilization percentage that the autoscaler should be trying to achieve for the instance partition. This number is on a scale from 0 (no utilization) to 100 (full utilization). The valid range is [10, 90] inclusive. If not specified or set to 0, the autoscaler will skip scaling based on total cpu utilization. The value should be higher than highPriorityCpuUtilizationPercent if present.
    highPriorityCpuUtilizationPercent Integer
    Specifies the target high priority cpu utilization percentage that the autoscaler should be trying to achieve for the instance partition. This number is on a scale from 0 (no utilization) to 100 (full utilization).
    storageUtilizationPercent Integer
    Specifies the target storage utilization percentage that the autoscaler should be trying to achieve for the instance partition. This number is on a scale from 0 (no utilization) to 100 (full utilization).
    totalCpuUtilizationPercent Integer
    Specifies the target total cpu utilization percentage that the autoscaler should be trying to achieve for the instance partition. This number is on a scale from 0 (no utilization) to 100 (full utilization). The valid range is [10, 90] inclusive. If not specified or set to 0, the autoscaler will skip scaling based on total cpu utilization. The value should be higher than highPriorityCpuUtilizationPercent if present.
    highPriorityCpuUtilizationPercent number
    Specifies the target high priority cpu utilization percentage that the autoscaler should be trying to achieve for the instance partition. This number is on a scale from 0 (no utilization) to 100 (full utilization).
    storageUtilizationPercent number
    Specifies the target storage utilization percentage that the autoscaler should be trying to achieve for the instance partition. This number is on a scale from 0 (no utilization) to 100 (full utilization).
    totalCpuUtilizationPercent number
    Specifies the target total cpu utilization percentage that the autoscaler should be trying to achieve for the instance partition. This number is on a scale from 0 (no utilization) to 100 (full utilization). The valid range is [10, 90] inclusive. If not specified or set to 0, the autoscaler will skip scaling based on total cpu utilization. The value should be higher than highPriorityCpuUtilizationPercent if present.
    high_priority_cpu_utilization_percent int
    Specifies the target high priority cpu utilization percentage that the autoscaler should be trying to achieve for the instance partition. This number is on a scale from 0 (no utilization) to 100 (full utilization).
    storage_utilization_percent int
    Specifies the target storage utilization percentage that the autoscaler should be trying to achieve for the instance partition. This number is on a scale from 0 (no utilization) to 100 (full utilization).
    total_cpu_utilization_percent int
    Specifies the target total cpu utilization percentage that the autoscaler should be trying to achieve for the instance partition. This number is on a scale from 0 (no utilization) to 100 (full utilization). The valid range is [10, 90] inclusive. If not specified or set to 0, the autoscaler will skip scaling based on total cpu utilization. The value should be higher than highPriorityCpuUtilizationPercent if present.
    highPriorityCpuUtilizationPercent Number
    Specifies the target high priority cpu utilization percentage that the autoscaler should be trying to achieve for the instance partition. This number is on a scale from 0 (no utilization) to 100 (full utilization).
    storageUtilizationPercent Number
    Specifies the target storage utilization percentage that the autoscaler should be trying to achieve for the instance partition. This number is on a scale from 0 (no utilization) to 100 (full utilization).
    totalCpuUtilizationPercent Number
    Specifies the target total cpu utilization percentage that the autoscaler should be trying to achieve for the instance partition. This number is on a scale from 0 (no utilization) to 100 (full utilization). The valid range is [10, 90] inclusive. If not specified or set to 0, the autoscaler will skip scaling based on total cpu utilization. The value should be higher than highPriorityCpuUtilizationPercent if present.

    Import

    InstancePartition can be imported using any of these accepted formats:

    • projects/{{project}}/instances/{{instance}}/instancePartitions/{{name}}
    • {{project}}/{{instance}}/{{name}}
    • {{instance}}/{{name}}

    When using the pulumi import command, InstancePartition can be imported using one of the formats above. For example:

    $ pulumi import gcp:spanner/instancePartition:InstancePartition default projects/{{project}}/instances/{{instance}}/instancePartitions/{{name}}
    $ pulumi import gcp:spanner/instancePartition:InstancePartition default {{project}}/{{instance}}/{{name}}
    $ pulumi import gcp:spanner/instancePartition:InstancePartition default {{instance}}/{{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-beta Terraform Provider.
    gcp logo
    Viewing docs for Google Cloud v9.23.0
    published on Thursday, May 7, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.