published on Thursday, May 7, 2026 by Pulumi
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:
- API documentation
- How-to Guides
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.
- 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 InstancePartition Autoscaling Config - 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 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 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 InstancePartition Autoscaling Config Args - 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 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 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.
- 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 InstancePartition Autoscaling Config - 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 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.
- processing
Units 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.
- 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 InstancePartition Autoscaling Config - 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 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 InstancePartition Autoscaling Config Args - 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.
- 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 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].
- 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.
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) -> InstancePartitionfunc 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.
- Autoscaling
Config InstancePartition Autoscaling Config - 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 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 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 InstancePartition Autoscaling Config Args - 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 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 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.
- autoscaling
Config InstancePartition Autoscaling Config - 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 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.
- processing
Units 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.
- autoscaling
Config InstancePartition Autoscaling Config - 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.
- autoscaling_
config InstancePartition Autoscaling Config Args - 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.
- autoscaling
Config 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.
- 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.
Supporting Types
InstancePartitionAutoscalingConfig, InstancePartitionAutoscalingConfigArgs
- Autoscaling
Limits InstancePartition Autoscaling 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 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 InstancePartition Autoscaling 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.
- Autoscaling
Limits InstancePartition Autoscaling 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 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 InstancePartition Autoscaling 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.
- 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.
- autoscaling
Limits InstancePartition Autoscaling 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 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 InstancePartition Autoscaling 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.
- autoscaling
Limits InstancePartition Autoscaling 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 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 InstancePartition Autoscaling 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.
- autoscaling_
limits InstancePartition Autoscaling 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 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 InstancePartition Autoscaling 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.
- autoscaling
Limits 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.
- autoscaling
Targets 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
- 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 intUnits - 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 intUnits - 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 intUnits - 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 intUnits - 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_ numberunits - 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_ numberunits - Specifies minimum number of processing units allocated to the instance partition. If set, this number should be multiples of 1000.
- max
Nodes Integer - 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 IntegerUnits - 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 Integer - Specifies number of nodes allocated to the instance partition. If set, this number should be greater than or equal to 1.
- min
Processing IntegerUnits - 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 numberUnits - 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 numberUnits - 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_ intunits - 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_ intunits - 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 NumberUnits - 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 NumberUnits - Specifies minimum number of processing units allocated to the instance partition. If set, this number should be multiples of 1000.
InstancePartitionAutoscalingConfigAutoscalingTargets, InstancePartitionAutoscalingConfigAutoscalingTargetsArgs
- High
Priority intCpu Utilization Percent - 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 intPercent - 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 intUtilization Percent - 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 intCpu Utilization Percent - 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 intPercent - 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 intUtilization Percent - 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_ numbercpu_ utilization_ percent - 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_ numberpercent - 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_ numberutilization_ percent - 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 IntegerCpu Utilization Percent - 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 IntegerPercent - 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 IntegerUtilization Percent - 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 numberCpu Utilization Percent - 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 numberPercent - 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 numberUtilization Percent - 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_ intcpu_ utilization_ percent - 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_ intpercent - 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_ intutilization_ percent - 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 NumberCpu Utilization Percent - 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 NumberPercent - 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 NumberUtilization Percent - 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-betaTerraform Provider.
published on Thursday, May 7, 2026 by Pulumi
