databricks.DatabaseInstance
Explore with Pulumi AI
Lakebase Database Instances are managed Postgres instances, composed of a primary Postgres compute instance and 0 or more read replica instances.
Example Usage
Basic Example
This example creates a simple Database Instance with the specified name and capacity.
import * as pulumi from "@pulumi/pulumi";
import * as databricks from "@pulumi/databricks";
const _this = new databricks.DatabaseInstance("this", {
name: "my-database-instance",
capacity: "CU_2",
});
import pulumi
import pulumi_databricks as databricks
this = databricks.DatabaseInstance("this",
name="my-database-instance",
capacity="CU_2")
package main
import (
"github.com/pulumi/pulumi-databricks/sdk/go/databricks"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := databricks.NewDatabaseInstance(ctx, "this", &databricks.DatabaseInstanceArgs{
Name: pulumi.String("my-database-instance"),
Capacity: pulumi.String("CU_2"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Databricks = Pulumi.Databricks;
return await Deployment.RunAsync(() =>
{
var @this = new Databricks.DatabaseInstance("this", new()
{
Name = "my-database-instance",
Capacity = "CU_2",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.databricks.DatabaseInstance;
import com.pulumi.databricks.DatabaseInstanceArgs;
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 this_ = new DatabaseInstance("this", DatabaseInstanceArgs.builder()
.name("my-database-instance")
.capacity("CU_2")
.build());
}
}
resources:
this:
type: databricks:DatabaseInstance
properties:
name: my-database-instance
capacity: CU_2
Example with Readable Secondaries
This example creates a Database Instance with readable secondaries (and HA) enabled.
import * as pulumi from "@pulumi/pulumi";
import * as databricks from "@pulumi/databricks";
const _this = new databricks.DatabaseInstance("this", {
name: "my-database-instance",
capacity: "CU_2",
nodeCount: 2,
enableReadableSecondaries: true,
});
import pulumi
import pulumi_databricks as databricks
this = databricks.DatabaseInstance("this",
name="my-database-instance",
capacity="CU_2",
node_count=2,
enable_readable_secondaries=True)
package main
import (
"github.com/pulumi/pulumi-databricks/sdk/go/databricks"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := databricks.NewDatabaseInstance(ctx, "this", &databricks.DatabaseInstanceArgs{
Name: pulumi.String("my-database-instance"),
Capacity: pulumi.String("CU_2"),
NodeCount: pulumi.Int(2),
EnableReadableSecondaries: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Databricks = Pulumi.Databricks;
return await Deployment.RunAsync(() =>
{
var @this = new Databricks.DatabaseInstance("this", new()
{
Name = "my-database-instance",
Capacity = "CU_2",
NodeCount = 2,
EnableReadableSecondaries = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.databricks.DatabaseInstance;
import com.pulumi.databricks.DatabaseInstanceArgs;
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 this_ = new DatabaseInstance("this", DatabaseInstanceArgs.builder()
.name("my-database-instance")
.capacity("CU_2")
.nodeCount(2)
.enableReadableSecondaries(true)
.build());
}
}
resources:
this:
type: databricks:DatabaseInstance
properties:
name: my-database-instance
capacity: CU_2
nodeCount: 2
enableReadableSecondaries: true
Example Child Instance Created From Parent
This example creates a child Database Instance from a specified parent Database Instance at the current point in time.
import * as pulumi from "@pulumi/pulumi";
import * as databricks from "@pulumi/databricks";
const child = new databricks.DatabaseInstance("child", {
name: "my-database-instance",
capacity: "CU_2",
parentInstanceRef: {
name: "my-parent-instance",
},
});
import pulumi
import pulumi_databricks as databricks
child = databricks.DatabaseInstance("child",
name="my-database-instance",
capacity="CU_2",
parent_instance_ref={
"name": "my-parent-instance",
})
package main
import (
"github.com/pulumi/pulumi-databricks/sdk/go/databricks"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := databricks.NewDatabaseInstance(ctx, "child", &databricks.DatabaseInstanceArgs{
Name: pulumi.String("my-database-instance"),
Capacity: pulumi.String("CU_2"),
ParentInstanceRef: &databricks.DatabaseInstanceParentInstanceRefArgs{
Name: pulumi.String("my-parent-instance"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Databricks = Pulumi.Databricks;
return await Deployment.RunAsync(() =>
{
var child = new Databricks.DatabaseInstance("child", new()
{
Name = "my-database-instance",
Capacity = "CU_2",
ParentInstanceRef = new Databricks.Inputs.DatabaseInstanceParentInstanceRefArgs
{
Name = "my-parent-instance",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.databricks.DatabaseInstance;
import com.pulumi.databricks.DatabaseInstanceArgs;
import com.pulumi.databricks.inputs.DatabaseInstanceParentInstanceRefArgs;
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 child = new DatabaseInstance("child", DatabaseInstanceArgs.builder()
.name("my-database-instance")
.capacity("CU_2")
.parentInstanceRef(DatabaseInstanceParentInstanceRefArgs.builder()
.name("my-parent-instance")
.build())
.build());
}
}
resources:
child:
type: databricks:DatabaseInstance
properties:
name: my-database-instance
capacity: CU_2
parentInstanceRef:
name: my-parent-instance
Create DatabaseInstance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DatabaseInstance(name: string, args?: DatabaseInstanceArgs, opts?: CustomResourceOptions);
@overload
def DatabaseInstance(resource_name: str,
args: Optional[DatabaseInstanceArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def DatabaseInstance(resource_name: str,
opts: Optional[ResourceOptions] = None,
capacity: Optional[str] = None,
enable_readable_secondaries: Optional[bool] = None,
name: Optional[str] = None,
node_count: Optional[int] = None,
parent_instance_ref: Optional[DatabaseInstanceParentInstanceRefArgs] = None,
purge_on_delete: Optional[bool] = None,
retention_window_in_days: Optional[int] = None,
stopped: Optional[bool] = None)
func NewDatabaseInstance(ctx *Context, name string, args *DatabaseInstanceArgs, opts ...ResourceOption) (*DatabaseInstance, error)
public DatabaseInstance(string name, DatabaseInstanceArgs? args = null, CustomResourceOptions? opts = null)
public DatabaseInstance(String name, DatabaseInstanceArgs args)
public DatabaseInstance(String name, DatabaseInstanceArgs args, CustomResourceOptions options)
type: databricks:DatabaseInstance
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args DatabaseInstanceArgs
- 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 DatabaseInstanceArgs
- 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 DatabaseInstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DatabaseInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DatabaseInstanceArgs
- 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 databaseInstanceResource = new Databricks.DatabaseInstance("databaseInstanceResource", new()
{
Capacity = "string",
EnableReadableSecondaries = false,
Name = "string",
NodeCount = 0,
ParentInstanceRef = new Databricks.Inputs.DatabaseInstanceParentInstanceRefArgs
{
BranchTime = "string",
EffectiveLsn = "string",
Lsn = "string",
Name = "string",
Uid = "string",
},
PurgeOnDelete = false,
RetentionWindowInDays = 0,
Stopped = false,
});
example, err := databricks.NewDatabaseInstance(ctx, "databaseInstanceResource", &databricks.DatabaseInstanceArgs{
Capacity: pulumi.String("string"),
EnableReadableSecondaries: pulumi.Bool(false),
Name: pulumi.String("string"),
NodeCount: pulumi.Int(0),
ParentInstanceRef: &databricks.DatabaseInstanceParentInstanceRefArgs{
BranchTime: pulumi.String("string"),
EffectiveLsn: pulumi.String("string"),
Lsn: pulumi.String("string"),
Name: pulumi.String("string"),
Uid: pulumi.String("string"),
},
PurgeOnDelete: pulumi.Bool(false),
RetentionWindowInDays: pulumi.Int(0),
Stopped: pulumi.Bool(false),
})
var databaseInstanceResource = new DatabaseInstance("databaseInstanceResource", DatabaseInstanceArgs.builder()
.capacity("string")
.enableReadableSecondaries(false)
.name("string")
.nodeCount(0)
.parentInstanceRef(DatabaseInstanceParentInstanceRefArgs.builder()
.branchTime("string")
.effectiveLsn("string")
.lsn("string")
.name("string")
.uid("string")
.build())
.purgeOnDelete(false)
.retentionWindowInDays(0)
.stopped(false)
.build());
database_instance_resource = databricks.DatabaseInstance("databaseInstanceResource",
capacity="string",
enable_readable_secondaries=False,
name="string",
node_count=0,
parent_instance_ref={
"branch_time": "string",
"effective_lsn": "string",
"lsn": "string",
"name": "string",
"uid": "string",
},
purge_on_delete=False,
retention_window_in_days=0,
stopped=False)
const databaseInstanceResource = new databricks.DatabaseInstance("databaseInstanceResource", {
capacity: "string",
enableReadableSecondaries: false,
name: "string",
nodeCount: 0,
parentInstanceRef: {
branchTime: "string",
effectiveLsn: "string",
lsn: "string",
name: "string",
uid: "string",
},
purgeOnDelete: false,
retentionWindowInDays: 0,
stopped: false,
});
type: databricks:DatabaseInstance
properties:
capacity: string
enableReadableSecondaries: false
name: string
nodeCount: 0
parentInstanceRef:
branchTime: string
effectiveLsn: string
lsn: string
name: string
uid: string
purgeOnDelete: false
retentionWindowInDays: 0
stopped: false
DatabaseInstance 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 DatabaseInstance resource accepts the following input properties:
- Capacity string
- The sku of the instance. Valid values are "CU_1", "CU_2", "CU_4", "CU_8"
- Enable
Readable boolSecondaries - Whether to enable secondaries to serve read-only traffic. Defaults to false
- Name string
- The name of the instance. This is the unique identifier for the instance
- Node
Count int - The number of nodes in the instance, composed of 1 primary and 0 or more secondaries. Defaults to 1 primary and 0 secondaries
- Parent
Instance DatabaseRef Instance Parent Instance Ref - The ref of the parent instance. This is only available if the instance is child instance. Input: For specifying the parent instance to create a child instance. Optional. Output: Only populated if provided as input to create a child instance
- Purge
On boolDelete - Purge the resource on delete
- Retention
Window intIn Days - The retention window for the instance. This is the time window in days for which the historical data is retained. The default value is 7 days. Valid values are 2 to 35 days
- Stopped bool
- Whether the instance is stopped
- Capacity string
- The sku of the instance. Valid values are "CU_1", "CU_2", "CU_4", "CU_8"
- Enable
Readable boolSecondaries - Whether to enable secondaries to serve read-only traffic. Defaults to false
- Name string
- The name of the instance. This is the unique identifier for the instance
- Node
Count int - The number of nodes in the instance, composed of 1 primary and 0 or more secondaries. Defaults to 1 primary and 0 secondaries
- Parent
Instance DatabaseRef Instance Parent Instance Ref Args - The ref of the parent instance. This is only available if the instance is child instance. Input: For specifying the parent instance to create a child instance. Optional. Output: Only populated if provided as input to create a child instance
- Purge
On boolDelete - Purge the resource on delete
- Retention
Window intIn Days - The retention window for the instance. This is the time window in days for which the historical data is retained. The default value is 7 days. Valid values are 2 to 35 days
- Stopped bool
- Whether the instance is stopped
- capacity String
- The sku of the instance. Valid values are "CU_1", "CU_2", "CU_4", "CU_8"
- enable
Readable BooleanSecondaries - Whether to enable secondaries to serve read-only traffic. Defaults to false
- name String
- The name of the instance. This is the unique identifier for the instance
- node
Count Integer - The number of nodes in the instance, composed of 1 primary and 0 or more secondaries. Defaults to 1 primary and 0 secondaries
- parent
Instance DatabaseRef Instance Parent Instance Ref - The ref of the parent instance. This is only available if the instance is child instance. Input: For specifying the parent instance to create a child instance. Optional. Output: Only populated if provided as input to create a child instance
- purge
On BooleanDelete - Purge the resource on delete
- retention
Window IntegerIn Days - The retention window for the instance. This is the time window in days for which the historical data is retained. The default value is 7 days. Valid values are 2 to 35 days
- stopped Boolean
- Whether the instance is stopped
- capacity string
- The sku of the instance. Valid values are "CU_1", "CU_2", "CU_4", "CU_8"
- enable
Readable booleanSecondaries - Whether to enable secondaries to serve read-only traffic. Defaults to false
- name string
- The name of the instance. This is the unique identifier for the instance
- node
Count number - The number of nodes in the instance, composed of 1 primary and 0 or more secondaries. Defaults to 1 primary and 0 secondaries
- parent
Instance DatabaseRef Instance Parent Instance Ref - The ref of the parent instance. This is only available if the instance is child instance. Input: For specifying the parent instance to create a child instance. Optional. Output: Only populated if provided as input to create a child instance
- purge
On booleanDelete - Purge the resource on delete
- retention
Window numberIn Days - The retention window for the instance. This is the time window in days for which the historical data is retained. The default value is 7 days. Valid values are 2 to 35 days
- stopped boolean
- Whether the instance is stopped
- capacity str
- The sku of the instance. Valid values are "CU_1", "CU_2", "CU_4", "CU_8"
- enable_
readable_ boolsecondaries - Whether to enable secondaries to serve read-only traffic. Defaults to false
- name str
- The name of the instance. This is the unique identifier for the instance
- node_
count int - The number of nodes in the instance, composed of 1 primary and 0 or more secondaries. Defaults to 1 primary and 0 secondaries
- parent_
instance_ Databaseref Instance Parent Instance Ref Args - The ref of the parent instance. This is only available if the instance is child instance. Input: For specifying the parent instance to create a child instance. Optional. Output: Only populated if provided as input to create a child instance
- purge_
on_ booldelete - Purge the resource on delete
- retention_
window_ intin_ days - The retention window for the instance. This is the time window in days for which the historical data is retained. The default value is 7 days. Valid values are 2 to 35 days
- stopped bool
- Whether the instance is stopped
- capacity String
- The sku of the instance. Valid values are "CU_1", "CU_2", "CU_4", "CU_8"
- enable
Readable BooleanSecondaries - Whether to enable secondaries to serve read-only traffic. Defaults to false
- name String
- The name of the instance. This is the unique identifier for the instance
- node
Count Number - The number of nodes in the instance, composed of 1 primary and 0 or more secondaries. Defaults to 1 primary and 0 secondaries
- parent
Instance Property MapRef - The ref of the parent instance. This is only available if the instance is child instance. Input: For specifying the parent instance to create a child instance. Optional. Output: Only populated if provided as input to create a child instance
- purge
On BooleanDelete - Purge the resource on delete
- retention
Window NumberIn Days - The retention window for the instance. This is the time window in days for which the historical data is retained. The default value is 7 days. Valid values are 2 to 35 days
- stopped Boolean
- Whether the instance is stopped
Outputs
All input properties are implicitly available as output properties. Additionally, the DatabaseInstance resource produces the following output properties:
- Child
Instance List<DatabaseRefs Instance Child Instance Ref> - (list of DatabaseInstanceRef) - The refs of the child instances. This is only available if the instance is parent instance
- Creation
Time string - (string) - The timestamp when the instance was created
- Creator string
- (string) - The email of the creator of the instance
- Effective
Enable boolReadable Secondaries - (boolean) - xref AIP-129.
enable_readable_secondaries
is owned by the client, whileeffective_enable_readable_secondaries
is owned by the server.enable_readable_secondaries
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_enable_readable_secondaries
on the other hand will always bet set in all response messages (Create/Update/Get/List) - Effective
Node intCount - (integer) - xref AIP-129.
node_count
is owned by the client, whileeffective_node_count
is owned by the server.node_count
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_node_count
on the other hand will always bet set in all response messages (Create/Update/Get/List) - Effective
Retention intWindow In Days - (integer) - xref AIP-129.
retention_window_in_days
is owned by the client, whileeffective_retention_window_in_days
is owned by the server.retention_window_in_days
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_retention_window_in_days
on the other hand will always bet set in all response messages (Create/Update/Get/List) - Effective
Stopped bool - (boolean) - xref AIP-129.
stopped
is owned by the client, whileeffective_stopped
is owned by the server.stopped
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_stopped
on the other hand will always bet set in all response messages (Create/Update/Get/List) - Id string
- The provider-assigned unique ID for this managed resource.
- Pg
Version string - (string) - The version of Postgres running on the instance
- Read
Only stringDns - (string) - The DNS endpoint to connect to the instance for read only access. This is only available if enable_readable_secondaries is true
- Read
Write stringDns - (string) - The DNS endpoint to connect to the instance for read+write access
- State string
- (string) - The current state of the instance. Possible values are:
AVAILABLE
,DELETING
,FAILING_OVER
,STARTING
,STOPPED
,UPDATING
- Uid string
- (string) - Id of the ref database instance
- Child
Instance []DatabaseRefs Instance Child Instance Ref - (list of DatabaseInstanceRef) - The refs of the child instances. This is only available if the instance is parent instance
- Creation
Time string - (string) - The timestamp when the instance was created
- Creator string
- (string) - The email of the creator of the instance
- Effective
Enable boolReadable Secondaries - (boolean) - xref AIP-129.
enable_readable_secondaries
is owned by the client, whileeffective_enable_readable_secondaries
is owned by the server.enable_readable_secondaries
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_enable_readable_secondaries
on the other hand will always bet set in all response messages (Create/Update/Get/List) - Effective
Node intCount - (integer) - xref AIP-129.
node_count
is owned by the client, whileeffective_node_count
is owned by the server.node_count
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_node_count
on the other hand will always bet set in all response messages (Create/Update/Get/List) - Effective
Retention intWindow In Days - (integer) - xref AIP-129.
retention_window_in_days
is owned by the client, whileeffective_retention_window_in_days
is owned by the server.retention_window_in_days
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_retention_window_in_days
on the other hand will always bet set in all response messages (Create/Update/Get/List) - Effective
Stopped bool - (boolean) - xref AIP-129.
stopped
is owned by the client, whileeffective_stopped
is owned by the server.stopped
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_stopped
on the other hand will always bet set in all response messages (Create/Update/Get/List) - Id string
- The provider-assigned unique ID for this managed resource.
- Pg
Version string - (string) - The version of Postgres running on the instance
- Read
Only stringDns - (string) - The DNS endpoint to connect to the instance for read only access. This is only available if enable_readable_secondaries is true
- Read
Write stringDns - (string) - The DNS endpoint to connect to the instance for read+write access
- State string
- (string) - The current state of the instance. Possible values are:
AVAILABLE
,DELETING
,FAILING_OVER
,STARTING
,STOPPED
,UPDATING
- Uid string
- (string) - Id of the ref database instance
- child
Instance List<DatabaseRefs Instance Child Instance Ref> - (list of DatabaseInstanceRef) - The refs of the child instances. This is only available if the instance is parent instance
- creation
Time String - (string) - The timestamp when the instance was created
- creator String
- (string) - The email of the creator of the instance
- effective
Enable BooleanReadable Secondaries - (boolean) - xref AIP-129.
enable_readable_secondaries
is owned by the client, whileeffective_enable_readable_secondaries
is owned by the server.enable_readable_secondaries
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_enable_readable_secondaries
on the other hand will always bet set in all response messages (Create/Update/Get/List) - effective
Node IntegerCount - (integer) - xref AIP-129.
node_count
is owned by the client, whileeffective_node_count
is owned by the server.node_count
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_node_count
on the other hand will always bet set in all response messages (Create/Update/Get/List) - effective
Retention IntegerWindow In Days - (integer) - xref AIP-129.
retention_window_in_days
is owned by the client, whileeffective_retention_window_in_days
is owned by the server.retention_window_in_days
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_retention_window_in_days
on the other hand will always bet set in all response messages (Create/Update/Get/List) - effective
Stopped Boolean - (boolean) - xref AIP-129.
stopped
is owned by the client, whileeffective_stopped
is owned by the server.stopped
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_stopped
on the other hand will always bet set in all response messages (Create/Update/Get/List) - id String
- The provider-assigned unique ID for this managed resource.
- pg
Version String - (string) - The version of Postgres running on the instance
- read
Only StringDns - (string) - The DNS endpoint to connect to the instance for read only access. This is only available if enable_readable_secondaries is true
- read
Write StringDns - (string) - The DNS endpoint to connect to the instance for read+write access
- state String
- (string) - The current state of the instance. Possible values are:
AVAILABLE
,DELETING
,FAILING_OVER
,STARTING
,STOPPED
,UPDATING
- uid String
- (string) - Id of the ref database instance
- child
Instance DatabaseRefs Instance Child Instance Ref[] - (list of DatabaseInstanceRef) - The refs of the child instances. This is only available if the instance is parent instance
- creation
Time string - (string) - The timestamp when the instance was created
- creator string
- (string) - The email of the creator of the instance
- effective
Enable booleanReadable Secondaries - (boolean) - xref AIP-129.
enable_readable_secondaries
is owned by the client, whileeffective_enable_readable_secondaries
is owned by the server.enable_readable_secondaries
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_enable_readable_secondaries
on the other hand will always bet set in all response messages (Create/Update/Get/List) - effective
Node numberCount - (integer) - xref AIP-129.
node_count
is owned by the client, whileeffective_node_count
is owned by the server.node_count
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_node_count
on the other hand will always bet set in all response messages (Create/Update/Get/List) - effective
Retention numberWindow In Days - (integer) - xref AIP-129.
retention_window_in_days
is owned by the client, whileeffective_retention_window_in_days
is owned by the server.retention_window_in_days
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_retention_window_in_days
on the other hand will always bet set in all response messages (Create/Update/Get/List) - effective
Stopped boolean - (boolean) - xref AIP-129.
stopped
is owned by the client, whileeffective_stopped
is owned by the server.stopped
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_stopped
on the other hand will always bet set in all response messages (Create/Update/Get/List) - id string
- The provider-assigned unique ID for this managed resource.
- pg
Version string - (string) - The version of Postgres running on the instance
- read
Only stringDns - (string) - The DNS endpoint to connect to the instance for read only access. This is only available if enable_readable_secondaries is true
- read
Write stringDns - (string) - The DNS endpoint to connect to the instance for read+write access
- state string
- (string) - The current state of the instance. Possible values are:
AVAILABLE
,DELETING
,FAILING_OVER
,STARTING
,STOPPED
,UPDATING
- uid string
- (string) - Id of the ref database instance
- child_
instance_ Sequence[Databaserefs Instance Child Instance Ref] - (list of DatabaseInstanceRef) - The refs of the child instances. This is only available if the instance is parent instance
- creation_
time str - (string) - The timestamp when the instance was created
- creator str
- (string) - The email of the creator of the instance
- effective_
enable_ boolreadable_ secondaries - (boolean) - xref AIP-129.
enable_readable_secondaries
is owned by the client, whileeffective_enable_readable_secondaries
is owned by the server.enable_readable_secondaries
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_enable_readable_secondaries
on the other hand will always bet set in all response messages (Create/Update/Get/List) - effective_
node_ intcount - (integer) - xref AIP-129.
node_count
is owned by the client, whileeffective_node_count
is owned by the server.node_count
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_node_count
on the other hand will always bet set in all response messages (Create/Update/Get/List) - effective_
retention_ intwindow_ in_ days - (integer) - xref AIP-129.
retention_window_in_days
is owned by the client, whileeffective_retention_window_in_days
is owned by the server.retention_window_in_days
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_retention_window_in_days
on the other hand will always bet set in all response messages (Create/Update/Get/List) - effective_
stopped bool - (boolean) - xref AIP-129.
stopped
is owned by the client, whileeffective_stopped
is owned by the server.stopped
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_stopped
on the other hand will always bet set in all response messages (Create/Update/Get/List) - id str
- The provider-assigned unique ID for this managed resource.
- pg_
version str - (string) - The version of Postgres running on the instance
- read_
only_ strdns - (string) - The DNS endpoint to connect to the instance for read only access. This is only available if enable_readable_secondaries is true
- read_
write_ strdns - (string) - The DNS endpoint to connect to the instance for read+write access
- state str
- (string) - The current state of the instance. Possible values are:
AVAILABLE
,DELETING
,FAILING_OVER
,STARTING
,STOPPED
,UPDATING
- uid str
- (string) - Id of the ref database instance
- child
Instance List<Property Map>Refs - (list of DatabaseInstanceRef) - The refs of the child instances. This is only available if the instance is parent instance
- creation
Time String - (string) - The timestamp when the instance was created
- creator String
- (string) - The email of the creator of the instance
- effective
Enable BooleanReadable Secondaries - (boolean) - xref AIP-129.
enable_readable_secondaries
is owned by the client, whileeffective_enable_readable_secondaries
is owned by the server.enable_readable_secondaries
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_enable_readable_secondaries
on the other hand will always bet set in all response messages (Create/Update/Get/List) - effective
Node NumberCount - (integer) - xref AIP-129.
node_count
is owned by the client, whileeffective_node_count
is owned by the server.node_count
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_node_count
on the other hand will always bet set in all response messages (Create/Update/Get/List) - effective
Retention NumberWindow In Days - (integer) - xref AIP-129.
retention_window_in_days
is owned by the client, whileeffective_retention_window_in_days
is owned by the server.retention_window_in_days
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_retention_window_in_days
on the other hand will always bet set in all response messages (Create/Update/Get/List) - effective
Stopped Boolean - (boolean) - xref AIP-129.
stopped
is owned by the client, whileeffective_stopped
is owned by the server.stopped
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_stopped
on the other hand will always bet set in all response messages (Create/Update/Get/List) - id String
- The provider-assigned unique ID for this managed resource.
- pg
Version String - (string) - The version of Postgres running on the instance
- read
Only StringDns - (string) - The DNS endpoint to connect to the instance for read only access. This is only available if enable_readable_secondaries is true
- read
Write StringDns - (string) - The DNS endpoint to connect to the instance for read+write access
- state String
- (string) - The current state of the instance. Possible values are:
AVAILABLE
,DELETING
,FAILING_OVER
,STARTING
,STOPPED
,UPDATING
- uid String
- (string) - Id of the ref database instance
Look up Existing DatabaseInstance Resource
Get an existing DatabaseInstance 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?: DatabaseInstanceState, opts?: CustomResourceOptions): DatabaseInstance
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
capacity: Optional[str] = None,
child_instance_refs: Optional[Sequence[DatabaseInstanceChildInstanceRefArgs]] = None,
creation_time: Optional[str] = None,
creator: Optional[str] = None,
effective_enable_readable_secondaries: Optional[bool] = None,
effective_node_count: Optional[int] = None,
effective_retention_window_in_days: Optional[int] = None,
effective_stopped: Optional[bool] = None,
enable_readable_secondaries: Optional[bool] = None,
name: Optional[str] = None,
node_count: Optional[int] = None,
parent_instance_ref: Optional[DatabaseInstanceParentInstanceRefArgs] = None,
pg_version: Optional[str] = None,
purge_on_delete: Optional[bool] = None,
read_only_dns: Optional[str] = None,
read_write_dns: Optional[str] = None,
retention_window_in_days: Optional[int] = None,
state: Optional[str] = None,
stopped: Optional[bool] = None,
uid: Optional[str] = None) -> DatabaseInstance
func GetDatabaseInstance(ctx *Context, name string, id IDInput, state *DatabaseInstanceState, opts ...ResourceOption) (*DatabaseInstance, error)
public static DatabaseInstance Get(string name, Input<string> id, DatabaseInstanceState? state, CustomResourceOptions? opts = null)
public static DatabaseInstance get(String name, Output<String> id, DatabaseInstanceState state, CustomResourceOptions options)
resources: _: type: databricks:DatabaseInstance get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Capacity string
- The sku of the instance. Valid values are "CU_1", "CU_2", "CU_4", "CU_8"
- Child
Instance List<DatabaseRefs Instance Child Instance Ref> - (list of DatabaseInstanceRef) - The refs of the child instances. This is only available if the instance is parent instance
- Creation
Time string - (string) - The timestamp when the instance was created
- Creator string
- (string) - The email of the creator of the instance
- Effective
Enable boolReadable Secondaries - (boolean) - xref AIP-129.
enable_readable_secondaries
is owned by the client, whileeffective_enable_readable_secondaries
is owned by the server.enable_readable_secondaries
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_enable_readable_secondaries
on the other hand will always bet set in all response messages (Create/Update/Get/List) - Effective
Node intCount - (integer) - xref AIP-129.
node_count
is owned by the client, whileeffective_node_count
is owned by the server.node_count
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_node_count
on the other hand will always bet set in all response messages (Create/Update/Get/List) - Effective
Retention intWindow In Days - (integer) - xref AIP-129.
retention_window_in_days
is owned by the client, whileeffective_retention_window_in_days
is owned by the server.retention_window_in_days
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_retention_window_in_days
on the other hand will always bet set in all response messages (Create/Update/Get/List) - Effective
Stopped bool - (boolean) - xref AIP-129.
stopped
is owned by the client, whileeffective_stopped
is owned by the server.stopped
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_stopped
on the other hand will always bet set in all response messages (Create/Update/Get/List) - Enable
Readable boolSecondaries - Whether to enable secondaries to serve read-only traffic. Defaults to false
- Name string
- The name of the instance. This is the unique identifier for the instance
- Node
Count int - The number of nodes in the instance, composed of 1 primary and 0 or more secondaries. Defaults to 1 primary and 0 secondaries
- Parent
Instance DatabaseRef Instance Parent Instance Ref - The ref of the parent instance. This is only available if the instance is child instance. Input: For specifying the parent instance to create a child instance. Optional. Output: Only populated if provided as input to create a child instance
- Pg
Version string - (string) - The version of Postgres running on the instance
- Purge
On boolDelete - Purge the resource on delete
- Read
Only stringDns - (string) - The DNS endpoint to connect to the instance for read only access. This is only available if enable_readable_secondaries is true
- Read
Write stringDns - (string) - The DNS endpoint to connect to the instance for read+write access
- Retention
Window intIn Days - The retention window for the instance. This is the time window in days for which the historical data is retained. The default value is 7 days. Valid values are 2 to 35 days
- State string
- (string) - The current state of the instance. Possible values are:
AVAILABLE
,DELETING
,FAILING_OVER
,STARTING
,STOPPED
,UPDATING
- Stopped bool
- Whether the instance is stopped
- Uid string
- (string) - Id of the ref database instance
- Capacity string
- The sku of the instance. Valid values are "CU_1", "CU_2", "CU_4", "CU_8"
- Child
Instance []DatabaseRefs Instance Child Instance Ref Args - (list of DatabaseInstanceRef) - The refs of the child instances. This is only available if the instance is parent instance
- Creation
Time string - (string) - The timestamp when the instance was created
- Creator string
- (string) - The email of the creator of the instance
- Effective
Enable boolReadable Secondaries - (boolean) - xref AIP-129.
enable_readable_secondaries
is owned by the client, whileeffective_enable_readable_secondaries
is owned by the server.enable_readable_secondaries
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_enable_readable_secondaries
on the other hand will always bet set in all response messages (Create/Update/Get/List) - Effective
Node intCount - (integer) - xref AIP-129.
node_count
is owned by the client, whileeffective_node_count
is owned by the server.node_count
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_node_count
on the other hand will always bet set in all response messages (Create/Update/Get/List) - Effective
Retention intWindow In Days - (integer) - xref AIP-129.
retention_window_in_days
is owned by the client, whileeffective_retention_window_in_days
is owned by the server.retention_window_in_days
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_retention_window_in_days
on the other hand will always bet set in all response messages (Create/Update/Get/List) - Effective
Stopped bool - (boolean) - xref AIP-129.
stopped
is owned by the client, whileeffective_stopped
is owned by the server.stopped
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_stopped
on the other hand will always bet set in all response messages (Create/Update/Get/List) - Enable
Readable boolSecondaries - Whether to enable secondaries to serve read-only traffic. Defaults to false
- Name string
- The name of the instance. This is the unique identifier for the instance
- Node
Count int - The number of nodes in the instance, composed of 1 primary and 0 or more secondaries. Defaults to 1 primary and 0 secondaries
- Parent
Instance DatabaseRef Instance Parent Instance Ref Args - The ref of the parent instance. This is only available if the instance is child instance. Input: For specifying the parent instance to create a child instance. Optional. Output: Only populated if provided as input to create a child instance
- Pg
Version string - (string) - The version of Postgres running on the instance
- Purge
On boolDelete - Purge the resource on delete
- Read
Only stringDns - (string) - The DNS endpoint to connect to the instance for read only access. This is only available if enable_readable_secondaries is true
- Read
Write stringDns - (string) - The DNS endpoint to connect to the instance for read+write access
- Retention
Window intIn Days - The retention window for the instance. This is the time window in days for which the historical data is retained. The default value is 7 days. Valid values are 2 to 35 days
- State string
- (string) - The current state of the instance. Possible values are:
AVAILABLE
,DELETING
,FAILING_OVER
,STARTING
,STOPPED
,UPDATING
- Stopped bool
- Whether the instance is stopped
- Uid string
- (string) - Id of the ref database instance
- capacity String
- The sku of the instance. Valid values are "CU_1", "CU_2", "CU_4", "CU_8"
- child
Instance List<DatabaseRefs Instance Child Instance Ref> - (list of DatabaseInstanceRef) - The refs of the child instances. This is only available if the instance is parent instance
- creation
Time String - (string) - The timestamp when the instance was created
- creator String
- (string) - The email of the creator of the instance
- effective
Enable BooleanReadable Secondaries - (boolean) - xref AIP-129.
enable_readable_secondaries
is owned by the client, whileeffective_enable_readable_secondaries
is owned by the server.enable_readable_secondaries
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_enable_readable_secondaries
on the other hand will always bet set in all response messages (Create/Update/Get/List) - effective
Node IntegerCount - (integer) - xref AIP-129.
node_count
is owned by the client, whileeffective_node_count
is owned by the server.node_count
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_node_count
on the other hand will always bet set in all response messages (Create/Update/Get/List) - effective
Retention IntegerWindow In Days - (integer) - xref AIP-129.
retention_window_in_days
is owned by the client, whileeffective_retention_window_in_days
is owned by the server.retention_window_in_days
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_retention_window_in_days
on the other hand will always bet set in all response messages (Create/Update/Get/List) - effective
Stopped Boolean - (boolean) - xref AIP-129.
stopped
is owned by the client, whileeffective_stopped
is owned by the server.stopped
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_stopped
on the other hand will always bet set in all response messages (Create/Update/Get/List) - enable
Readable BooleanSecondaries - Whether to enable secondaries to serve read-only traffic. Defaults to false
- name String
- The name of the instance. This is the unique identifier for the instance
- node
Count Integer - The number of nodes in the instance, composed of 1 primary and 0 or more secondaries. Defaults to 1 primary and 0 secondaries
- parent
Instance DatabaseRef Instance Parent Instance Ref - The ref of the parent instance. This is only available if the instance is child instance. Input: For specifying the parent instance to create a child instance. Optional. Output: Only populated if provided as input to create a child instance
- pg
Version String - (string) - The version of Postgres running on the instance
- purge
On BooleanDelete - Purge the resource on delete
- read
Only StringDns - (string) - The DNS endpoint to connect to the instance for read only access. This is only available if enable_readable_secondaries is true
- read
Write StringDns - (string) - The DNS endpoint to connect to the instance for read+write access
- retention
Window IntegerIn Days - The retention window for the instance. This is the time window in days for which the historical data is retained. The default value is 7 days. Valid values are 2 to 35 days
- state String
- (string) - The current state of the instance. Possible values are:
AVAILABLE
,DELETING
,FAILING_OVER
,STARTING
,STOPPED
,UPDATING
- stopped Boolean
- Whether the instance is stopped
- uid String
- (string) - Id of the ref database instance
- capacity string
- The sku of the instance. Valid values are "CU_1", "CU_2", "CU_4", "CU_8"
- child
Instance DatabaseRefs Instance Child Instance Ref[] - (list of DatabaseInstanceRef) - The refs of the child instances. This is only available if the instance is parent instance
- creation
Time string - (string) - The timestamp when the instance was created
- creator string
- (string) - The email of the creator of the instance
- effective
Enable booleanReadable Secondaries - (boolean) - xref AIP-129.
enable_readable_secondaries
is owned by the client, whileeffective_enable_readable_secondaries
is owned by the server.enable_readable_secondaries
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_enable_readable_secondaries
on the other hand will always bet set in all response messages (Create/Update/Get/List) - effective
Node numberCount - (integer) - xref AIP-129.
node_count
is owned by the client, whileeffective_node_count
is owned by the server.node_count
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_node_count
on the other hand will always bet set in all response messages (Create/Update/Get/List) - effective
Retention numberWindow In Days - (integer) - xref AIP-129.
retention_window_in_days
is owned by the client, whileeffective_retention_window_in_days
is owned by the server.retention_window_in_days
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_retention_window_in_days
on the other hand will always bet set in all response messages (Create/Update/Get/List) - effective
Stopped boolean - (boolean) - xref AIP-129.
stopped
is owned by the client, whileeffective_stopped
is owned by the server.stopped
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_stopped
on the other hand will always bet set in all response messages (Create/Update/Get/List) - enable
Readable booleanSecondaries - Whether to enable secondaries to serve read-only traffic. Defaults to false
- name string
- The name of the instance. This is the unique identifier for the instance
- node
Count number - The number of nodes in the instance, composed of 1 primary and 0 or more secondaries. Defaults to 1 primary and 0 secondaries
- parent
Instance DatabaseRef Instance Parent Instance Ref - The ref of the parent instance. This is only available if the instance is child instance. Input: For specifying the parent instance to create a child instance. Optional. Output: Only populated if provided as input to create a child instance
- pg
Version string - (string) - The version of Postgres running on the instance
- purge
On booleanDelete - Purge the resource on delete
- read
Only stringDns - (string) - The DNS endpoint to connect to the instance for read only access. This is only available if enable_readable_secondaries is true
- read
Write stringDns - (string) - The DNS endpoint to connect to the instance for read+write access
- retention
Window numberIn Days - The retention window for the instance. This is the time window in days for which the historical data is retained. The default value is 7 days. Valid values are 2 to 35 days
- state string
- (string) - The current state of the instance. Possible values are:
AVAILABLE
,DELETING
,FAILING_OVER
,STARTING
,STOPPED
,UPDATING
- stopped boolean
- Whether the instance is stopped
- uid string
- (string) - Id of the ref database instance
- capacity str
- The sku of the instance. Valid values are "CU_1", "CU_2", "CU_4", "CU_8"
- child_
instance_ Sequence[Databaserefs Instance Child Instance Ref Args] - (list of DatabaseInstanceRef) - The refs of the child instances. This is only available if the instance is parent instance
- creation_
time str - (string) - The timestamp when the instance was created
- creator str
- (string) - The email of the creator of the instance
- effective_
enable_ boolreadable_ secondaries - (boolean) - xref AIP-129.
enable_readable_secondaries
is owned by the client, whileeffective_enable_readable_secondaries
is owned by the server.enable_readable_secondaries
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_enable_readable_secondaries
on the other hand will always bet set in all response messages (Create/Update/Get/List) - effective_
node_ intcount - (integer) - xref AIP-129.
node_count
is owned by the client, whileeffective_node_count
is owned by the server.node_count
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_node_count
on the other hand will always bet set in all response messages (Create/Update/Get/List) - effective_
retention_ intwindow_ in_ days - (integer) - xref AIP-129.
retention_window_in_days
is owned by the client, whileeffective_retention_window_in_days
is owned by the server.retention_window_in_days
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_retention_window_in_days
on the other hand will always bet set in all response messages (Create/Update/Get/List) - effective_
stopped bool - (boolean) - xref AIP-129.
stopped
is owned by the client, whileeffective_stopped
is owned by the server.stopped
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_stopped
on the other hand will always bet set in all response messages (Create/Update/Get/List) - enable_
readable_ boolsecondaries - Whether to enable secondaries to serve read-only traffic. Defaults to false
- name str
- The name of the instance. This is the unique identifier for the instance
- node_
count int - The number of nodes in the instance, composed of 1 primary and 0 or more secondaries. Defaults to 1 primary and 0 secondaries
- parent_
instance_ Databaseref Instance Parent Instance Ref Args - The ref of the parent instance. This is only available if the instance is child instance. Input: For specifying the parent instance to create a child instance. Optional. Output: Only populated if provided as input to create a child instance
- pg_
version str - (string) - The version of Postgres running on the instance
- purge_
on_ booldelete - Purge the resource on delete
- read_
only_ strdns - (string) - The DNS endpoint to connect to the instance for read only access. This is only available if enable_readable_secondaries is true
- read_
write_ strdns - (string) - The DNS endpoint to connect to the instance for read+write access
- retention_
window_ intin_ days - The retention window for the instance. This is the time window in days for which the historical data is retained. The default value is 7 days. Valid values are 2 to 35 days
- state str
- (string) - The current state of the instance. Possible values are:
AVAILABLE
,DELETING
,FAILING_OVER
,STARTING
,STOPPED
,UPDATING
- stopped bool
- Whether the instance is stopped
- uid str
- (string) - Id of the ref database instance
- capacity String
- The sku of the instance. Valid values are "CU_1", "CU_2", "CU_4", "CU_8"
- child
Instance List<Property Map>Refs - (list of DatabaseInstanceRef) - The refs of the child instances. This is only available if the instance is parent instance
- creation
Time String - (string) - The timestamp when the instance was created
- creator String
- (string) - The email of the creator of the instance
- effective
Enable BooleanReadable Secondaries - (boolean) - xref AIP-129.
enable_readable_secondaries
is owned by the client, whileeffective_enable_readable_secondaries
is owned by the server.enable_readable_secondaries
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_enable_readable_secondaries
on the other hand will always bet set in all response messages (Create/Update/Get/List) - effective
Node NumberCount - (integer) - xref AIP-129.
node_count
is owned by the client, whileeffective_node_count
is owned by the server.node_count
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_node_count
on the other hand will always bet set in all response messages (Create/Update/Get/List) - effective
Retention NumberWindow In Days - (integer) - xref AIP-129.
retention_window_in_days
is owned by the client, whileeffective_retention_window_in_days
is owned by the server.retention_window_in_days
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_retention_window_in_days
on the other hand will always bet set in all response messages (Create/Update/Get/List) - effective
Stopped Boolean - (boolean) - xref AIP-129.
stopped
is owned by the client, whileeffective_stopped
is owned by the server.stopped
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_stopped
on the other hand will always bet set in all response messages (Create/Update/Get/List) - enable
Readable BooleanSecondaries - Whether to enable secondaries to serve read-only traffic. Defaults to false
- name String
- The name of the instance. This is the unique identifier for the instance
- node
Count Number - The number of nodes in the instance, composed of 1 primary and 0 or more secondaries. Defaults to 1 primary and 0 secondaries
- parent
Instance Property MapRef - The ref of the parent instance. This is only available if the instance is child instance. Input: For specifying the parent instance to create a child instance. Optional. Output: Only populated if provided as input to create a child instance
- pg
Version String - (string) - The version of Postgres running on the instance
- purge
On BooleanDelete - Purge the resource on delete
- read
Only StringDns - (string) - The DNS endpoint to connect to the instance for read only access. This is only available if enable_readable_secondaries is true
- read
Write StringDns - (string) - The DNS endpoint to connect to the instance for read+write access
- retention
Window NumberIn Days - The retention window for the instance. This is the time window in days for which the historical data is retained. The default value is 7 days. Valid values are 2 to 35 days
- state String
- (string) - The current state of the instance. Possible values are:
AVAILABLE
,DELETING
,FAILING_OVER
,STARTING
,STOPPED
,UPDATING
- stopped Boolean
- Whether the instance is stopped
- uid String
- (string) - Id of the ref database instance
Supporting Types
DatabaseInstanceChildInstanceRef, DatabaseInstanceChildInstanceRefArgs
- Branch
Time string - Branch time of the ref database instance. For a parent ref instance, this is the point in time on the parent instance from which the instance was created. For a child ref instance, this is the point in time on the instance from which the child instance was created. Input: For specifying the point in time to create a child instance. Optional. Output: Only populated if provided as input to create a child instance
- Effective
Lsn string - (string) - xref AIP-129.
lsn
is owned by the client, whileeffective_lsn
is owned by the server.lsn
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_lsn
on the other hand will always bet set in all response messages (Create/Update/Get/List). For a parent ref instance, this is the LSN on the parent instance from which the instance was created. For a child ref instance, this is the LSN on the instance from which the child instance was created - Lsn string
User-specified WAL LSN of the ref database instance.
Input: For specifying the WAL LSN to create a child instance. Optional. Output: Only populated if provided as input to create a child instance
- Name string
- The name of the instance. This is the unique identifier for the instance
- Uid string
- (string) - Id of the ref database instance
- Branch
Time string - Branch time of the ref database instance. For a parent ref instance, this is the point in time on the parent instance from which the instance was created. For a child ref instance, this is the point in time on the instance from which the child instance was created. Input: For specifying the point in time to create a child instance. Optional. Output: Only populated if provided as input to create a child instance
- Effective
Lsn string - (string) - xref AIP-129.
lsn
is owned by the client, whileeffective_lsn
is owned by the server.lsn
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_lsn
on the other hand will always bet set in all response messages (Create/Update/Get/List). For a parent ref instance, this is the LSN on the parent instance from which the instance was created. For a child ref instance, this is the LSN on the instance from which the child instance was created - Lsn string
User-specified WAL LSN of the ref database instance.
Input: For specifying the WAL LSN to create a child instance. Optional. Output: Only populated if provided as input to create a child instance
- Name string
- The name of the instance. This is the unique identifier for the instance
- Uid string
- (string) - Id of the ref database instance
- branch
Time String - Branch time of the ref database instance. For a parent ref instance, this is the point in time on the parent instance from which the instance was created. For a child ref instance, this is the point in time on the instance from which the child instance was created. Input: For specifying the point in time to create a child instance. Optional. Output: Only populated if provided as input to create a child instance
- effective
Lsn String - (string) - xref AIP-129.
lsn
is owned by the client, whileeffective_lsn
is owned by the server.lsn
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_lsn
on the other hand will always bet set in all response messages (Create/Update/Get/List). For a parent ref instance, this is the LSN on the parent instance from which the instance was created. For a child ref instance, this is the LSN on the instance from which the child instance was created - lsn String
User-specified WAL LSN of the ref database instance.
Input: For specifying the WAL LSN to create a child instance. Optional. Output: Only populated if provided as input to create a child instance
- name String
- The name of the instance. This is the unique identifier for the instance
- uid String
- (string) - Id of the ref database instance
- branch
Time string - Branch time of the ref database instance. For a parent ref instance, this is the point in time on the parent instance from which the instance was created. For a child ref instance, this is the point in time on the instance from which the child instance was created. Input: For specifying the point in time to create a child instance. Optional. Output: Only populated if provided as input to create a child instance
- effective
Lsn string - (string) - xref AIP-129.
lsn
is owned by the client, whileeffective_lsn
is owned by the server.lsn
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_lsn
on the other hand will always bet set in all response messages (Create/Update/Get/List). For a parent ref instance, this is the LSN on the parent instance from which the instance was created. For a child ref instance, this is the LSN on the instance from which the child instance was created - lsn string
User-specified WAL LSN of the ref database instance.
Input: For specifying the WAL LSN to create a child instance. Optional. Output: Only populated if provided as input to create a child instance
- name string
- The name of the instance. This is the unique identifier for the instance
- uid string
- (string) - Id of the ref database instance
- branch_
time str - Branch time of the ref database instance. For a parent ref instance, this is the point in time on the parent instance from which the instance was created. For a child ref instance, this is the point in time on the instance from which the child instance was created. Input: For specifying the point in time to create a child instance. Optional. Output: Only populated if provided as input to create a child instance
- effective_
lsn str - (string) - xref AIP-129.
lsn
is owned by the client, whileeffective_lsn
is owned by the server.lsn
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_lsn
on the other hand will always bet set in all response messages (Create/Update/Get/List). For a parent ref instance, this is the LSN on the parent instance from which the instance was created. For a child ref instance, this is the LSN on the instance from which the child instance was created - lsn str
User-specified WAL LSN of the ref database instance.
Input: For specifying the WAL LSN to create a child instance. Optional. Output: Only populated if provided as input to create a child instance
- name str
- The name of the instance. This is the unique identifier for the instance
- uid str
- (string) - Id of the ref database instance
- branch
Time String - Branch time of the ref database instance. For a parent ref instance, this is the point in time on the parent instance from which the instance was created. For a child ref instance, this is the point in time on the instance from which the child instance was created. Input: For specifying the point in time to create a child instance. Optional. Output: Only populated if provided as input to create a child instance
- effective
Lsn String - (string) - xref AIP-129.
lsn
is owned by the client, whileeffective_lsn
is owned by the server.lsn
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_lsn
on the other hand will always bet set in all response messages (Create/Update/Get/List). For a parent ref instance, this is the LSN on the parent instance from which the instance was created. For a child ref instance, this is the LSN on the instance from which the child instance was created - lsn String
User-specified WAL LSN of the ref database instance.
Input: For specifying the WAL LSN to create a child instance. Optional. Output: Only populated if provided as input to create a child instance
- name String
- The name of the instance. This is the unique identifier for the instance
- uid String
- (string) - Id of the ref database instance
DatabaseInstanceParentInstanceRef, DatabaseInstanceParentInstanceRefArgs
- Branch
Time string - Branch time of the ref database instance. For a parent ref instance, this is the point in time on the parent instance from which the instance was created. For a child ref instance, this is the point in time on the instance from which the child instance was created. Input: For specifying the point in time to create a child instance. Optional. Output: Only populated if provided as input to create a child instance
- Effective
Lsn string - (string) - xref AIP-129.
lsn
is owned by the client, whileeffective_lsn
is owned by the server.lsn
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_lsn
on the other hand will always bet set in all response messages (Create/Update/Get/List). For a parent ref instance, this is the LSN on the parent instance from which the instance was created. For a child ref instance, this is the LSN on the instance from which the child instance was created - Lsn string
User-specified WAL LSN of the ref database instance.
Input: For specifying the WAL LSN to create a child instance. Optional. Output: Only populated if provided as input to create a child instance
- Name string
- The name of the instance. This is the unique identifier for the instance
- Uid string
- (string) - Id of the ref database instance
- Branch
Time string - Branch time of the ref database instance. For a parent ref instance, this is the point in time on the parent instance from which the instance was created. For a child ref instance, this is the point in time on the instance from which the child instance was created. Input: For specifying the point in time to create a child instance. Optional. Output: Only populated if provided as input to create a child instance
- Effective
Lsn string - (string) - xref AIP-129.
lsn
is owned by the client, whileeffective_lsn
is owned by the server.lsn
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_lsn
on the other hand will always bet set in all response messages (Create/Update/Get/List). For a parent ref instance, this is the LSN on the parent instance from which the instance was created. For a child ref instance, this is the LSN on the instance from which the child instance was created - Lsn string
User-specified WAL LSN of the ref database instance.
Input: For specifying the WAL LSN to create a child instance. Optional. Output: Only populated if provided as input to create a child instance
- Name string
- The name of the instance. This is the unique identifier for the instance
- Uid string
- (string) - Id of the ref database instance
- branch
Time String - Branch time of the ref database instance. For a parent ref instance, this is the point in time on the parent instance from which the instance was created. For a child ref instance, this is the point in time on the instance from which the child instance was created. Input: For specifying the point in time to create a child instance. Optional. Output: Only populated if provided as input to create a child instance
- effective
Lsn String - (string) - xref AIP-129.
lsn
is owned by the client, whileeffective_lsn
is owned by the server.lsn
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_lsn
on the other hand will always bet set in all response messages (Create/Update/Get/List). For a parent ref instance, this is the LSN on the parent instance from which the instance was created. For a child ref instance, this is the LSN on the instance from which the child instance was created - lsn String
User-specified WAL LSN of the ref database instance.
Input: For specifying the WAL LSN to create a child instance. Optional. Output: Only populated if provided as input to create a child instance
- name String
- The name of the instance. This is the unique identifier for the instance
- uid String
- (string) - Id of the ref database instance
- branch
Time string - Branch time of the ref database instance. For a parent ref instance, this is the point in time on the parent instance from which the instance was created. For a child ref instance, this is the point in time on the instance from which the child instance was created. Input: For specifying the point in time to create a child instance. Optional. Output: Only populated if provided as input to create a child instance
- effective
Lsn string - (string) - xref AIP-129.
lsn
is owned by the client, whileeffective_lsn
is owned by the server.lsn
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_lsn
on the other hand will always bet set in all response messages (Create/Update/Get/List). For a parent ref instance, this is the LSN on the parent instance from which the instance was created. For a child ref instance, this is the LSN on the instance from which the child instance was created - lsn string
User-specified WAL LSN of the ref database instance.
Input: For specifying the WAL LSN to create a child instance. Optional. Output: Only populated if provided as input to create a child instance
- name string
- The name of the instance. This is the unique identifier for the instance
- uid string
- (string) - Id of the ref database instance
- branch_
time str - Branch time of the ref database instance. For a parent ref instance, this is the point in time on the parent instance from which the instance was created. For a child ref instance, this is the point in time on the instance from which the child instance was created. Input: For specifying the point in time to create a child instance. Optional. Output: Only populated if provided as input to create a child instance
- effective_
lsn str - (string) - xref AIP-129.
lsn
is owned by the client, whileeffective_lsn
is owned by the server.lsn
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_lsn
on the other hand will always bet set in all response messages (Create/Update/Get/List). For a parent ref instance, this is the LSN on the parent instance from which the instance was created. For a child ref instance, this is the LSN on the instance from which the child instance was created - lsn str
User-specified WAL LSN of the ref database instance.
Input: For specifying the WAL LSN to create a child instance. Optional. Output: Only populated if provided as input to create a child instance
- name str
- The name of the instance. This is the unique identifier for the instance
- uid str
- (string) - Id of the ref database instance
- branch
Time String - Branch time of the ref database instance. For a parent ref instance, this is the point in time on the parent instance from which the instance was created. For a child ref instance, this is the point in time on the instance from which the child instance was created. Input: For specifying the point in time to create a child instance. Optional. Output: Only populated if provided as input to create a child instance
- effective
Lsn String - (string) - xref AIP-129.
lsn
is owned by the client, whileeffective_lsn
is owned by the server.lsn
will only be set in Create/Update response messages if and only if the user provides the field via the request.effective_lsn
on the other hand will always bet set in all response messages (Create/Update/Get/List). For a parent ref instance, this is the LSN on the parent instance from which the instance was created. For a child ref instance, this is the LSN on the instance from which the child instance was created - lsn String
User-specified WAL LSN of the ref database instance.
Input: For specifying the WAL LSN to create a child instance. Optional. Output: Only populated if provided as input to create a child instance
- name String
- The name of the instance. This is the unique identifier for the instance
- uid String
- (string) - Id of the ref database instance
Import
As of Pulumi v1.5, resources can be imported through configuration.
hcl
import {
id = name
to = databricks_database_instance.this
}
If you are using an older version of Pulumi, import the resource using the pulumi import
command as follows:
$ pulumi import databricks:index/databaseInstance:DatabaseInstance databricks_database_instance name
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- databricks pulumi/pulumi-databricks
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
databricks
Terraform Provider.