Example Usage
Basic Branch Creation
import * as pulumi from "@pulumi/pulumi";
import * as databricks from "@pulumi/databricks";
const _this = new databricks.PostgresProject("this", {
projectId: "my-project",
spec: {
pgVersion: 17,
displayName: "My Project",
},
});
const dev = new databricks.PostgresBranch("dev", {
branchId: "dev-branch",
parent: _this.name,
spec: {
noExpiry: true,
},
});
import pulumi
import pulumi_databricks as databricks
this = databricks.PostgresProject("this",
project_id="my-project",
spec={
"pg_version": 17,
"display_name": "My Project",
})
dev = databricks.PostgresBranch("dev",
branch_id="dev-branch",
parent=this.name,
spec={
"no_expiry": 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 {
this, err := databricks.NewPostgresProject(ctx, "this", &databricks.PostgresProjectArgs{
ProjectId: pulumi.String("my-project"),
Spec: &databricks.PostgresProjectSpecArgs{
PgVersion: pulumi.Int(17),
DisplayName: pulumi.String("My Project"),
},
})
if err != nil {
return err
}
_, err = databricks.NewPostgresBranch(ctx, "dev", &databricks.PostgresBranchArgs{
BranchId: pulumi.String("dev-branch"),
Parent: this.Name,
Spec: &databricks.PostgresBranchSpecArgs{
NoExpiry: 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.PostgresProject("this", new()
{
ProjectId = "my-project",
Spec = new Databricks.Inputs.PostgresProjectSpecArgs
{
PgVersion = 17,
DisplayName = "My Project",
},
});
var dev = new Databricks.PostgresBranch("dev", new()
{
BranchId = "dev-branch",
Parent = @this.Name,
Spec = new Databricks.Inputs.PostgresBranchSpecArgs
{
NoExpiry = true,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.databricks.PostgresProject;
import com.pulumi.databricks.PostgresProjectArgs;
import com.pulumi.databricks.inputs.PostgresProjectSpecArgs;
import com.pulumi.databricks.PostgresBranch;
import com.pulumi.databricks.PostgresBranchArgs;
import com.pulumi.databricks.inputs.PostgresBranchSpecArgs;
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 PostgresProject("this", PostgresProjectArgs.builder()
.projectId("my-project")
.spec(PostgresProjectSpecArgs.builder()
.pgVersion(17)
.displayName("My Project")
.build())
.build());
var dev = new PostgresBranch("dev", PostgresBranchArgs.builder()
.branchId("dev-branch")
.parent(this_.name())
.spec(PostgresBranchSpecArgs.builder()
.noExpiry(true)
.build())
.build());
}
}
resources:
this:
type: databricks:PostgresProject
properties:
projectId: my-project
spec:
pgVersion: 17
displayName: My Project
dev:
type: databricks:PostgresBranch
properties:
branchId: dev-branch
parent: ${this.name}
spec:
noExpiry: true
Protected Branch
import * as pulumi from "@pulumi/pulumi";
import * as databricks from "@pulumi/databricks";
const production = new databricks.PostgresBranch("production", {
branchId: "production",
parent: _this.name,
spec: {
isProtected: true,
noExpiry: true,
},
});
import pulumi
import pulumi_databricks as databricks
production = databricks.PostgresBranch("production",
branch_id="production",
parent=this["name"],
spec={
"is_protected": True,
"no_expiry": 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.NewPostgresBranch(ctx, "production", &databricks.PostgresBranchArgs{
BranchId: pulumi.String("production"),
Parent: pulumi.Any(this.Name),
Spec: &databricks.PostgresBranchSpecArgs{
IsProtected: pulumi.Bool(true),
NoExpiry: 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 production = new Databricks.PostgresBranch("production", new()
{
BranchId = "production",
Parent = @this.Name,
Spec = new Databricks.Inputs.PostgresBranchSpecArgs
{
IsProtected = true,
NoExpiry = true,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.databricks.PostgresBranch;
import com.pulumi.databricks.PostgresBranchArgs;
import com.pulumi.databricks.inputs.PostgresBranchSpecArgs;
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 production = new PostgresBranch("production", PostgresBranchArgs.builder()
.branchId("production")
.parent(this_.name())
.spec(PostgresBranchSpecArgs.builder()
.isProtected(true)
.noExpiry(true)
.build())
.build());
}
}
resources:
production:
type: databricks:PostgresBranch
properties:
branchId: production
parent: ${this.name}
spec:
isProtected: true
noExpiry: true
Branch with Expiration (TTL)
import * as pulumi from "@pulumi/pulumi";
import * as databricks from "@pulumi/databricks";
const temporary = new databricks.PostgresBranch("temporary", {
branchId: "temp-feature-test",
parent: _this.name,
spec: {
ttl: "604800s",
},
});
import pulumi
import pulumi_databricks as databricks
temporary = databricks.PostgresBranch("temporary",
branch_id="temp-feature-test",
parent=this["name"],
spec={
"ttl": "604800s",
})
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.NewPostgresBranch(ctx, "temporary", &databricks.PostgresBranchArgs{
BranchId: pulumi.String("temp-feature-test"),
Parent: pulumi.Any(this.Name),
Spec: &databricks.PostgresBranchSpecArgs{
Ttl: pulumi.String("604800s"),
},
})
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 temporary = new Databricks.PostgresBranch("temporary", new()
{
BranchId = "temp-feature-test",
Parent = @this.Name,
Spec = new Databricks.Inputs.PostgresBranchSpecArgs
{
Ttl = "604800s",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.databricks.PostgresBranch;
import com.pulumi.databricks.PostgresBranchArgs;
import com.pulumi.databricks.inputs.PostgresBranchSpecArgs;
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 temporary = new PostgresBranch("temporary", PostgresBranchArgs.builder()
.branchId("temp-feature-test")
.parent(this_.name())
.spec(PostgresBranchSpecArgs.builder()
.ttl("604800s")
.build())
.build());
}
}
resources:
temporary:
type: databricks:PostgresBranch
properties:
branchId: temp-feature-test
parent: ${this.name}
spec:
ttl: 604800s
Create PostgresBranch Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PostgresBranch(name: string, args: PostgresBranchArgs, opts?: CustomResourceOptions);@overload
def PostgresBranch(resource_name: str,
args: PostgresBranchArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PostgresBranch(resource_name: str,
opts: Optional[ResourceOptions] = None,
branch_id: Optional[str] = None,
parent: Optional[str] = None,
spec: Optional[PostgresBranchSpecArgs] = None)func NewPostgresBranch(ctx *Context, name string, args PostgresBranchArgs, opts ...ResourceOption) (*PostgresBranch, error)public PostgresBranch(string name, PostgresBranchArgs args, CustomResourceOptions? opts = null)
public PostgresBranch(String name, PostgresBranchArgs args)
public PostgresBranch(String name, PostgresBranchArgs args, CustomResourceOptions options)
type: databricks:PostgresBranch
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 PostgresBranchArgs
- 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 PostgresBranchArgs
- 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 PostgresBranchArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PostgresBranchArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PostgresBranchArgs
- 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 postgresBranchResource = new Databricks.PostgresBranch("postgresBranchResource", new()
{
BranchId = "string",
Parent = "string",
Spec = new Databricks.Inputs.PostgresBranchSpecArgs
{
ExpireTime = "string",
IsProtected = false,
NoExpiry = false,
SourceBranch = "string",
SourceBranchLsn = "string",
SourceBranchTime = "string",
Ttl = "string",
},
});
example, err := databricks.NewPostgresBranch(ctx, "postgresBranchResource", &databricks.PostgresBranchArgs{
BranchId: pulumi.String("string"),
Parent: pulumi.String("string"),
Spec: &databricks.PostgresBranchSpecArgs{
ExpireTime: pulumi.String("string"),
IsProtected: pulumi.Bool(false),
NoExpiry: pulumi.Bool(false),
SourceBranch: pulumi.String("string"),
SourceBranchLsn: pulumi.String("string"),
SourceBranchTime: pulumi.String("string"),
Ttl: pulumi.String("string"),
},
})
var postgresBranchResource = new PostgresBranch("postgresBranchResource", PostgresBranchArgs.builder()
.branchId("string")
.parent("string")
.spec(PostgresBranchSpecArgs.builder()
.expireTime("string")
.isProtected(false)
.noExpiry(false)
.sourceBranch("string")
.sourceBranchLsn("string")
.sourceBranchTime("string")
.ttl("string")
.build())
.build());
postgres_branch_resource = databricks.PostgresBranch("postgresBranchResource",
branch_id="string",
parent="string",
spec={
"expire_time": "string",
"is_protected": False,
"no_expiry": False,
"source_branch": "string",
"source_branch_lsn": "string",
"source_branch_time": "string",
"ttl": "string",
})
const postgresBranchResource = new databricks.PostgresBranch("postgresBranchResource", {
branchId: "string",
parent: "string",
spec: {
expireTime: "string",
isProtected: false,
noExpiry: false,
sourceBranch: "string",
sourceBranchLsn: "string",
sourceBranchTime: "string",
ttl: "string",
},
});
type: databricks:PostgresBranch
properties:
branchId: string
parent: string
spec:
expireTime: string
isProtected: false
noExpiry: false
sourceBranch: string
sourceBranchLsn: string
sourceBranchTime: string
ttl: string
PostgresBranch 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 PostgresBranch resource accepts the following input properties:
- Branch
Id string - The ID to use for the Branch. This becomes the final component of the branch's resource name.
The ID must be 1-63 characters long, start with a lowercase letter, and contain only lowercase letters, numbers, and hyphens (RFC 1123).
Examples:
- With custom ID:
staging→ name becomesprojects/{project_id}/branches/staging - Without custom ID: system generates slug → name becomes
projects/{project_id}/branches/br-example-name-x1y2z3a4
- With custom ID:
- Parent string
The project containing this branch (API resource hierarchy). Format: projects/{project_id}
Note: This field indicates where the branch exists in the resource hierarchy. For point-in-time branching from another branch, see
spec.source_branch- Spec
Postgres
Branch Spec - The spec contains the branch configuration
- Branch
Id string - The ID to use for the Branch. This becomes the final component of the branch's resource name.
The ID must be 1-63 characters long, start with a lowercase letter, and contain only lowercase letters, numbers, and hyphens (RFC 1123).
Examples:
- With custom ID:
staging→ name becomesprojects/{project_id}/branches/staging - Without custom ID: system generates slug → name becomes
projects/{project_id}/branches/br-example-name-x1y2z3a4
- With custom ID:
- Parent string
The project containing this branch (API resource hierarchy). Format: projects/{project_id}
Note: This field indicates where the branch exists in the resource hierarchy. For point-in-time branching from another branch, see
spec.source_branch- Spec
Postgres
Branch Spec Args - The spec contains the branch configuration
- branch
Id String - The ID to use for the Branch. This becomes the final component of the branch's resource name.
The ID must be 1-63 characters long, start with a lowercase letter, and contain only lowercase letters, numbers, and hyphens (RFC 1123).
Examples:
- With custom ID:
staging→ name becomesprojects/{project_id}/branches/staging - Without custom ID: system generates slug → name becomes
projects/{project_id}/branches/br-example-name-x1y2z3a4
- With custom ID:
- parent String
The project containing this branch (API resource hierarchy). Format: projects/{project_id}
Note: This field indicates where the branch exists in the resource hierarchy. For point-in-time branching from another branch, see
spec.source_branch- spec
Postgres
Branch Spec - The spec contains the branch configuration
- branch
Id string - The ID to use for the Branch. This becomes the final component of the branch's resource name.
The ID must be 1-63 characters long, start with a lowercase letter, and contain only lowercase letters, numbers, and hyphens (RFC 1123).
Examples:
- With custom ID:
staging→ name becomesprojects/{project_id}/branches/staging - Without custom ID: system generates slug → name becomes
projects/{project_id}/branches/br-example-name-x1y2z3a4
- With custom ID:
- parent string
The project containing this branch (API resource hierarchy). Format: projects/{project_id}
Note: This field indicates where the branch exists in the resource hierarchy. For point-in-time branching from another branch, see
spec.source_branch- spec
Postgres
Branch Spec - The spec contains the branch configuration
- branch_
id str - The ID to use for the Branch. This becomes the final component of the branch's resource name.
The ID must be 1-63 characters long, start with a lowercase letter, and contain only lowercase letters, numbers, and hyphens (RFC 1123).
Examples:
- With custom ID:
staging→ name becomesprojects/{project_id}/branches/staging - Without custom ID: system generates slug → name becomes
projects/{project_id}/branches/br-example-name-x1y2z3a4
- With custom ID:
- parent str
The project containing this branch (API resource hierarchy). Format: projects/{project_id}
Note: This field indicates where the branch exists in the resource hierarchy. For point-in-time branching from another branch, see
spec.source_branch- spec
Postgres
Branch Spec Args - The spec contains the branch configuration
- branch
Id String - The ID to use for the Branch. This becomes the final component of the branch's resource name.
The ID must be 1-63 characters long, start with a lowercase letter, and contain only lowercase letters, numbers, and hyphens (RFC 1123).
Examples:
- With custom ID:
staging→ name becomesprojects/{project_id}/branches/staging - Without custom ID: system generates slug → name becomes
projects/{project_id}/branches/br-example-name-x1y2z3a4
- With custom ID:
- parent String
The project containing this branch (API resource hierarchy). Format: projects/{project_id}
Note: This field indicates where the branch exists in the resource hierarchy. For point-in-time branching from another branch, see
spec.source_branch- spec Property Map
- The spec contains the branch configuration
Outputs
All input properties are implicitly available as output properties. Additionally, the PostgresBranch resource produces the following output properties:
- Create
Time string - (string) - A timestamp indicating when the branch was created
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- (string) - The resource name of the branch. This field is output-only and constructed by the system.
Format:
projects/{project_id}/branches/{branch_id} - Status
Postgres
Branch Status - (BranchStatus) - The current status of a Branch
- Uid string
- (string) - System-generated unique ID for the branch
- Update
Time string - (string) - A timestamp indicating when the branch was last updated
- Create
Time string - (string) - A timestamp indicating when the branch was created
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- (string) - The resource name of the branch. This field is output-only and constructed by the system.
Format:
projects/{project_id}/branches/{branch_id} - Status
Postgres
Branch Status - (BranchStatus) - The current status of a Branch
- Uid string
- (string) - System-generated unique ID for the branch
- Update
Time string - (string) - A timestamp indicating when the branch was last updated
- create
Time String - (string) - A timestamp indicating when the branch was created
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- (string) - The resource name of the branch. This field is output-only and constructed by the system.
Format:
projects/{project_id}/branches/{branch_id} - status
Postgres
Branch Status - (BranchStatus) - The current status of a Branch
- uid String
- (string) - System-generated unique ID for the branch
- update
Time String - (string) - A timestamp indicating when the branch was last updated
- create
Time string - (string) - A timestamp indicating when the branch was created
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- (string) - The resource name of the branch. This field is output-only and constructed by the system.
Format:
projects/{project_id}/branches/{branch_id} - status
Postgres
Branch Status - (BranchStatus) - The current status of a Branch
- uid string
- (string) - System-generated unique ID for the branch
- update
Time string - (string) - A timestamp indicating when the branch was last updated
- create_
time str - (string) - A timestamp indicating when the branch was created
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- (string) - The resource name of the branch. This field is output-only and constructed by the system.
Format:
projects/{project_id}/branches/{branch_id} - status
Postgres
Branch Status - (BranchStatus) - The current status of a Branch
- uid str
- (string) - System-generated unique ID for the branch
- update_
time str - (string) - A timestamp indicating when the branch was last updated
- create
Time String - (string) - A timestamp indicating when the branch was created
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- (string) - The resource name of the branch. This field is output-only and constructed by the system.
Format:
projects/{project_id}/branches/{branch_id} - status Property Map
- (BranchStatus) - The current status of a Branch
- uid String
- (string) - System-generated unique ID for the branch
- update
Time String - (string) - A timestamp indicating when the branch was last updated
Look up Existing PostgresBranch Resource
Get an existing PostgresBranch 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?: PostgresBranchState, opts?: CustomResourceOptions): PostgresBranch@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
branch_id: Optional[str] = None,
create_time: Optional[str] = None,
name: Optional[str] = None,
parent: Optional[str] = None,
spec: Optional[PostgresBranchSpecArgs] = None,
status: Optional[PostgresBranchStatusArgs] = None,
uid: Optional[str] = None,
update_time: Optional[str] = None) -> PostgresBranchfunc GetPostgresBranch(ctx *Context, name string, id IDInput, state *PostgresBranchState, opts ...ResourceOption) (*PostgresBranch, error)public static PostgresBranch Get(string name, Input<string> id, PostgresBranchState? state, CustomResourceOptions? opts = null)public static PostgresBranch get(String name, Output<String> id, PostgresBranchState state, CustomResourceOptions options)resources: _: type: databricks:PostgresBranch 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.
- Branch
Id string - The ID to use for the Branch. This becomes the final component of the branch's resource name.
The ID must be 1-63 characters long, start with a lowercase letter, and contain only lowercase letters, numbers, and hyphens (RFC 1123).
Examples:
- With custom ID:
staging→ name becomesprojects/{project_id}/branches/staging - Without custom ID: system generates slug → name becomes
projects/{project_id}/branches/br-example-name-x1y2z3a4
- With custom ID:
- Create
Time string - (string) - A timestamp indicating when the branch was created
- Name string
- (string) - The resource name of the branch. This field is output-only and constructed by the system.
Format:
projects/{project_id}/branches/{branch_id} - Parent string
The project containing this branch (API resource hierarchy). Format: projects/{project_id}
Note: This field indicates where the branch exists in the resource hierarchy. For point-in-time branching from another branch, see
spec.source_branch- Spec
Postgres
Branch Spec - The spec contains the branch configuration
- Status
Postgres
Branch Status - (BranchStatus) - The current status of a Branch
- Uid string
- (string) - System-generated unique ID for the branch
- Update
Time string - (string) - A timestamp indicating when the branch was last updated
- Branch
Id string - The ID to use for the Branch. This becomes the final component of the branch's resource name.
The ID must be 1-63 characters long, start with a lowercase letter, and contain only lowercase letters, numbers, and hyphens (RFC 1123).
Examples:
- With custom ID:
staging→ name becomesprojects/{project_id}/branches/staging - Without custom ID: system generates slug → name becomes
projects/{project_id}/branches/br-example-name-x1y2z3a4
- With custom ID:
- Create
Time string - (string) - A timestamp indicating when the branch was created
- Name string
- (string) - The resource name of the branch. This field is output-only and constructed by the system.
Format:
projects/{project_id}/branches/{branch_id} - Parent string
The project containing this branch (API resource hierarchy). Format: projects/{project_id}
Note: This field indicates where the branch exists in the resource hierarchy. For point-in-time branching from another branch, see
spec.source_branch- Spec
Postgres
Branch Spec Args - The spec contains the branch configuration
- Status
Postgres
Branch Status Args - (BranchStatus) - The current status of a Branch
- Uid string
- (string) - System-generated unique ID for the branch
- Update
Time string - (string) - A timestamp indicating when the branch was last updated
- branch
Id String - The ID to use for the Branch. This becomes the final component of the branch's resource name.
The ID must be 1-63 characters long, start with a lowercase letter, and contain only lowercase letters, numbers, and hyphens (RFC 1123).
Examples:
- With custom ID:
staging→ name becomesprojects/{project_id}/branches/staging - Without custom ID: system generates slug → name becomes
projects/{project_id}/branches/br-example-name-x1y2z3a4
- With custom ID:
- create
Time String - (string) - A timestamp indicating when the branch was created
- name String
- (string) - The resource name of the branch. This field is output-only and constructed by the system.
Format:
projects/{project_id}/branches/{branch_id} - parent String
The project containing this branch (API resource hierarchy). Format: projects/{project_id}
Note: This field indicates where the branch exists in the resource hierarchy. For point-in-time branching from another branch, see
spec.source_branch- spec
Postgres
Branch Spec - The spec contains the branch configuration
- status
Postgres
Branch Status - (BranchStatus) - The current status of a Branch
- uid String
- (string) - System-generated unique ID for the branch
- update
Time String - (string) - A timestamp indicating when the branch was last updated
- branch
Id string - The ID to use for the Branch. This becomes the final component of the branch's resource name.
The ID must be 1-63 characters long, start with a lowercase letter, and contain only lowercase letters, numbers, and hyphens (RFC 1123).
Examples:
- With custom ID:
staging→ name becomesprojects/{project_id}/branches/staging - Without custom ID: system generates slug → name becomes
projects/{project_id}/branches/br-example-name-x1y2z3a4
- With custom ID:
- create
Time string - (string) - A timestamp indicating when the branch was created
- name string
- (string) - The resource name of the branch. This field is output-only and constructed by the system.
Format:
projects/{project_id}/branches/{branch_id} - parent string
The project containing this branch (API resource hierarchy). Format: projects/{project_id}
Note: This field indicates where the branch exists in the resource hierarchy. For point-in-time branching from another branch, see
spec.source_branch- spec
Postgres
Branch Spec - The spec contains the branch configuration
- status
Postgres
Branch Status - (BranchStatus) - The current status of a Branch
- uid string
- (string) - System-generated unique ID for the branch
- update
Time string - (string) - A timestamp indicating when the branch was last updated
- branch_
id str - The ID to use for the Branch. This becomes the final component of the branch's resource name.
The ID must be 1-63 characters long, start with a lowercase letter, and contain only lowercase letters, numbers, and hyphens (RFC 1123).
Examples:
- With custom ID:
staging→ name becomesprojects/{project_id}/branches/staging - Without custom ID: system generates slug → name becomes
projects/{project_id}/branches/br-example-name-x1y2z3a4
- With custom ID:
- create_
time str - (string) - A timestamp indicating when the branch was created
- name str
- (string) - The resource name of the branch. This field is output-only and constructed by the system.
Format:
projects/{project_id}/branches/{branch_id} - parent str
The project containing this branch (API resource hierarchy). Format: projects/{project_id}
Note: This field indicates where the branch exists in the resource hierarchy. For point-in-time branching from another branch, see
spec.source_branch- spec
Postgres
Branch Spec Args - The spec contains the branch configuration
- status
Postgres
Branch Status Args - (BranchStatus) - The current status of a Branch
- uid str
- (string) - System-generated unique ID for the branch
- update_
time str - (string) - A timestamp indicating when the branch was last updated
- branch
Id String - The ID to use for the Branch. This becomes the final component of the branch's resource name.
The ID must be 1-63 characters long, start with a lowercase letter, and contain only lowercase letters, numbers, and hyphens (RFC 1123).
Examples:
- With custom ID:
staging→ name becomesprojects/{project_id}/branches/staging - Without custom ID: system generates slug → name becomes
projects/{project_id}/branches/br-example-name-x1y2z3a4
- With custom ID:
- create
Time String - (string) - A timestamp indicating when the branch was created
- name String
- (string) - The resource name of the branch. This field is output-only and constructed by the system.
Format:
projects/{project_id}/branches/{branch_id} - parent String
The project containing this branch (API resource hierarchy). Format: projects/{project_id}
Note: This field indicates where the branch exists in the resource hierarchy. For point-in-time branching from another branch, see
spec.source_branch- spec Property Map
- The spec contains the branch configuration
- status Property Map
- (BranchStatus) - The current status of a Branch
- uid String
- (string) - System-generated unique ID for the branch
- update
Time String - (string) - A timestamp indicating when the branch was last updated
Supporting Types
PostgresBranchSpec, PostgresBranchSpecArgs
- Expire
Time string - (string) - Absolute expiration time for the branch. Empty if expiration is disabled
- Is
Protected bool - (boolean) - Whether the branch is protected
- No
Expiry bool - Explicitly disable expiration. When set to true, the branch will not expire. If set to false, the request is invalid; provide either ttl or expire_time instead
- Source
Branch string - (string) - The name of the source branch from which this branch was created. Format: projects/{project_id}/branches/{branch_id}
- Source
Branch stringLsn - (string) - The Log Sequence Number (LSN) on the source branch from which this branch was created
- Source
Branch stringTime - (string) - The point in time on the source branch from which this branch was created
- Ttl string
- Relative time-to-live duration. When set, the branch will expire at creation_time + ttl
- Expire
Time string - (string) - Absolute expiration time for the branch. Empty if expiration is disabled
- Is
Protected bool - (boolean) - Whether the branch is protected
- No
Expiry bool - Explicitly disable expiration. When set to true, the branch will not expire. If set to false, the request is invalid; provide either ttl or expire_time instead
- Source
Branch string - (string) - The name of the source branch from which this branch was created. Format: projects/{project_id}/branches/{branch_id}
- Source
Branch stringLsn - (string) - The Log Sequence Number (LSN) on the source branch from which this branch was created
- Source
Branch stringTime - (string) - The point in time on the source branch from which this branch was created
- Ttl string
- Relative time-to-live duration. When set, the branch will expire at creation_time + ttl
- expire
Time String - (string) - Absolute expiration time for the branch. Empty if expiration is disabled
- is
Protected Boolean - (boolean) - Whether the branch is protected
- no
Expiry Boolean - Explicitly disable expiration. When set to true, the branch will not expire. If set to false, the request is invalid; provide either ttl or expire_time instead
- source
Branch String - (string) - The name of the source branch from which this branch was created. Format: projects/{project_id}/branches/{branch_id}
- source
Branch StringLsn - (string) - The Log Sequence Number (LSN) on the source branch from which this branch was created
- source
Branch StringTime - (string) - The point in time on the source branch from which this branch was created
- ttl String
- Relative time-to-live duration. When set, the branch will expire at creation_time + ttl
- expire
Time string - (string) - Absolute expiration time for the branch. Empty if expiration is disabled
- is
Protected boolean - (boolean) - Whether the branch is protected
- no
Expiry boolean - Explicitly disable expiration. When set to true, the branch will not expire. If set to false, the request is invalid; provide either ttl or expire_time instead
- source
Branch string - (string) - The name of the source branch from which this branch was created. Format: projects/{project_id}/branches/{branch_id}
- source
Branch stringLsn - (string) - The Log Sequence Number (LSN) on the source branch from which this branch was created
- source
Branch stringTime - (string) - The point in time on the source branch from which this branch was created
- ttl string
- Relative time-to-live duration. When set, the branch will expire at creation_time + ttl
- expire_
time str - (string) - Absolute expiration time for the branch. Empty if expiration is disabled
- is_
protected bool - (boolean) - Whether the branch is protected
- no_
expiry bool - Explicitly disable expiration. When set to true, the branch will not expire. If set to false, the request is invalid; provide either ttl or expire_time instead
- source_
branch str - (string) - The name of the source branch from which this branch was created. Format: projects/{project_id}/branches/{branch_id}
- source_
branch_ strlsn - (string) - The Log Sequence Number (LSN) on the source branch from which this branch was created
- source_
branch_ strtime - (string) - The point in time on the source branch from which this branch was created
- ttl str
- Relative time-to-live duration. When set, the branch will expire at creation_time + ttl
- expire
Time String - (string) - Absolute expiration time for the branch. Empty if expiration is disabled
- is
Protected Boolean - (boolean) - Whether the branch is protected
- no
Expiry Boolean - Explicitly disable expiration. When set to true, the branch will not expire. If set to false, the request is invalid; provide either ttl or expire_time instead
- source
Branch String - (string) - The name of the source branch from which this branch was created. Format: projects/{project_id}/branches/{branch_id}
- source
Branch StringLsn - (string) - The Log Sequence Number (LSN) on the source branch from which this branch was created
- source
Branch StringTime - (string) - The point in time on the source branch from which this branch was created
- ttl String
- Relative time-to-live duration. When set, the branch will expire at creation_time + ttl
PostgresBranchStatus, PostgresBranchStatusArgs
- Current
State string - (string) - The branch's state, indicating if it is initializing, ready for use, or archived. Possible values are:
ARCHIVED,IMPORTING,INIT,READY,RESETTING - Default bool
- (boolean) - Whether the branch is the project's default branch
- Expire
Time string - (string) - Absolute expiration time for the branch. Empty if expiration is disabled
- Is
Protected bool - (boolean) - Whether the branch is protected
- Logical
Size intBytes - (integer) - The logical size of the branch
- Pending
State string - (string) - The pending state of the branch, if a state transition is in progress. Possible values are:
ARCHIVED,IMPORTING,INIT,READY,RESETTING - Source
Branch string - (string) - The name of the source branch from which this branch was created. Format: projects/{project_id}/branches/{branch_id}
- Source
Branch stringLsn - (string) - The Log Sequence Number (LSN) on the source branch from which this branch was created
- Source
Branch stringTime - (string) - The point in time on the source branch from which this branch was created
- State
Change stringTime - (string) - A timestamp indicating when the
current_statebegan
- Current
State string - (string) - The branch's state, indicating if it is initializing, ready for use, or archived. Possible values are:
ARCHIVED,IMPORTING,INIT,READY,RESETTING - Default bool
- (boolean) - Whether the branch is the project's default branch
- Expire
Time string - (string) - Absolute expiration time for the branch. Empty if expiration is disabled
- Is
Protected bool - (boolean) - Whether the branch is protected
- Logical
Size intBytes - (integer) - The logical size of the branch
- Pending
State string - (string) - The pending state of the branch, if a state transition is in progress. Possible values are:
ARCHIVED,IMPORTING,INIT,READY,RESETTING - Source
Branch string - (string) - The name of the source branch from which this branch was created. Format: projects/{project_id}/branches/{branch_id}
- Source
Branch stringLsn - (string) - The Log Sequence Number (LSN) on the source branch from which this branch was created
- Source
Branch stringTime - (string) - The point in time on the source branch from which this branch was created
- State
Change stringTime - (string) - A timestamp indicating when the
current_statebegan
- current
State String - (string) - The branch's state, indicating if it is initializing, ready for use, or archived. Possible values are:
ARCHIVED,IMPORTING,INIT,READY,RESETTING - default_ Boolean
- (boolean) - Whether the branch is the project's default branch
- expire
Time String - (string) - Absolute expiration time for the branch. Empty if expiration is disabled
- is
Protected Boolean - (boolean) - Whether the branch is protected
- logical
Size IntegerBytes - (integer) - The logical size of the branch
- pending
State String - (string) - The pending state of the branch, if a state transition is in progress. Possible values are:
ARCHIVED,IMPORTING,INIT,READY,RESETTING - source
Branch String - (string) - The name of the source branch from which this branch was created. Format: projects/{project_id}/branches/{branch_id}
- source
Branch StringLsn - (string) - The Log Sequence Number (LSN) on the source branch from which this branch was created
- source
Branch StringTime - (string) - The point in time on the source branch from which this branch was created
- state
Change StringTime - (string) - A timestamp indicating when the
current_statebegan
- current
State string - (string) - The branch's state, indicating if it is initializing, ready for use, or archived. Possible values are:
ARCHIVED,IMPORTING,INIT,READY,RESETTING - default boolean
- (boolean) - Whether the branch is the project's default branch
- expire
Time string - (string) - Absolute expiration time for the branch. Empty if expiration is disabled
- is
Protected boolean - (boolean) - Whether the branch is protected
- logical
Size numberBytes - (integer) - The logical size of the branch
- pending
State string - (string) - The pending state of the branch, if a state transition is in progress. Possible values are:
ARCHIVED,IMPORTING,INIT,READY,RESETTING - source
Branch string - (string) - The name of the source branch from which this branch was created. Format: projects/{project_id}/branches/{branch_id}
- source
Branch stringLsn - (string) - The Log Sequence Number (LSN) on the source branch from which this branch was created
- source
Branch stringTime - (string) - The point in time on the source branch from which this branch was created
- state
Change stringTime - (string) - A timestamp indicating when the
current_statebegan
- current_
state str - (string) - The branch's state, indicating if it is initializing, ready for use, or archived. Possible values are:
ARCHIVED,IMPORTING,INIT,READY,RESETTING - default bool
- (boolean) - Whether the branch is the project's default branch
- expire_
time str - (string) - Absolute expiration time for the branch. Empty if expiration is disabled
- is_
protected bool - (boolean) - Whether the branch is protected
- logical_
size_ intbytes - (integer) - The logical size of the branch
- pending_
state str - (string) - The pending state of the branch, if a state transition is in progress. Possible values are:
ARCHIVED,IMPORTING,INIT,READY,RESETTING - source_
branch str - (string) - The name of the source branch from which this branch was created. Format: projects/{project_id}/branches/{branch_id}
- source_
branch_ strlsn - (string) - The Log Sequence Number (LSN) on the source branch from which this branch was created
- source_
branch_ strtime - (string) - The point in time on the source branch from which this branch was created
- state_
change_ strtime - (string) - A timestamp indicating when the
current_statebegan
- current
State String - (string) - The branch's state, indicating if it is initializing, ready for use, or archived. Possible values are:
ARCHIVED,IMPORTING,INIT,READY,RESETTING - default Boolean
- (boolean) - Whether the branch is the project's default branch
- expire
Time String - (string) - Absolute expiration time for the branch. Empty if expiration is disabled
- is
Protected Boolean - (boolean) - Whether the branch is protected
- logical
Size NumberBytes - (integer) - The logical size of the branch
- pending
State String - (string) - The pending state of the branch, if a state transition is in progress. Possible values are:
ARCHIVED,IMPORTING,INIT,READY,RESETTING - source
Branch String - (string) - The name of the source branch from which this branch was created. Format: projects/{project_id}/branches/{branch_id}
- source
Branch StringLsn - (string) - The Log Sequence Number (LSN) on the source branch from which this branch was created
- source
Branch StringTime - (string) - The point in time on the source branch from which this branch was created
- state
Change StringTime - (string) - A timestamp indicating when the
current_statebegan
Import
As of Pulumi v1.5, resources can be imported through configuration.
hcl
import {
id = “name”
to = databricks_postgres_branch.this
}
If you are using an older version of Pulumi, import the resource using the pulumi import command as follows:
$ pulumi import databricks:index/postgresBranch:PostgresBranch this "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
databricksTerraform Provider.
