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
{
Default = false,
IsProtected = false,
SourceBranch = "string",
SourceBranchLsn = "string",
SourceBranchTime = "string",
},
});
example, err := databricks.NewPostgresBranch(ctx, "postgresBranchResource", &databricks.PostgresBranchArgs{
BranchId: pulumi.String("string"),
Parent: pulumi.String("string"),
Spec: &databricks.PostgresBranchSpecArgs{
Default: pulumi.Bool(false),
IsProtected: pulumi.Bool(false),
SourceBranch: pulumi.String("string"),
SourceBranchLsn: pulumi.String("string"),
SourceBranchTime: pulumi.String("string"),
},
})
var postgresBranchResource = new PostgresBranch("postgresBranchResource", PostgresBranchArgs.builder()
.branchId("string")
.parent("string")
.spec(PostgresBranchSpecArgs.builder()
.default_(false)
.isProtected(false)
.sourceBranch("string")
.sourceBranchLsn("string")
.sourceBranchTime("string")
.build())
.build());
postgres_branch_resource = databricks.PostgresBranch("postgresBranchResource",
branch_id="string",
parent="string",
spec={
"default": False,
"is_protected": False,
"source_branch": "string",
"source_branch_lsn": "string",
"source_branch_time": "string",
})
const postgresBranchResource = new databricks.PostgresBranch("postgresBranchResource", {
branchId: "string",
parent: "string",
spec: {
"default": false,
isProtected: false,
sourceBranch: "string",
sourceBranchLsn: "string",
sourceBranchTime: "string",
},
});
type: databricks:PostgresBranch
properties:
branchId: string
parent: string
spec:
default: false
isProtected: false
sourceBranch: string
sourceBranchLsn: string
sourceBranchTime: 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, which will become the final component of the branch's resource name.
This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/
- Parent string
- The project containing this branch. Format: projects/{project_id}
- Spec
Postgres
Branch Spec - The desired state of a Branch
- Branch
Id string The ID to use for the Branch, which will become the final component of the branch's resource name.
This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/
- Parent string
- The project containing this branch. Format: projects/{project_id}
- Spec
Postgres
Branch Spec Args - The desired state of a Branch
- branch
Id String The ID to use for the Branch, which will become the final component of the branch's resource name.
This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/
- parent String
- The project containing this branch. Format: projects/{project_id}
- spec
Postgres
Branch Spec - The desired state of a Branch
- branch
Id string The ID to use for the Branch, which will become the final component of the branch's resource name.
This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/
- parent string
- The project containing this branch. Format: projects/{project_id}
- spec
Postgres
Branch Spec - The desired state of a Branch
- branch_
id str The ID to use for the Branch, which will become the final component of the branch's resource name.
This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/
- parent str
- The project containing this branch. Format: projects/{project_id}
- spec
Postgres
Branch Spec Args - The desired state of a Branch
- branch
Id String The ID to use for the Branch, which will become the final component of the branch's resource name.
This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/
- parent String
- The project containing this branch. Format: projects/{project_id}
- spec Property Map
- The desired state of a Branch
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. 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. 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. 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. 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. 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. 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, which will become the final component of the branch's resource name.
This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/
- Create
Time string - (string) - A timestamp indicating when the branch was created
- Name string
- (string) - The resource name of the branch. Format: projects/{project_id}/branches/{branch_id}
- Parent string
- The project containing this branch. Format: projects/{project_id}
- Spec
Postgres
Branch Spec - The desired state of a Branch
- 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, which will become the final component of the branch's resource name.
This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/
- Create
Time string - (string) - A timestamp indicating when the branch was created
- Name string
- (string) - The resource name of the branch. Format: projects/{project_id}/branches/{branch_id}
- Parent string
- The project containing this branch. Format: projects/{project_id}
- Spec
Postgres
Branch Spec Args - The desired state of a Branch
- 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, which will become the final component of the branch's resource name.
This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/
- create
Time String - (string) - A timestamp indicating when the branch was created
- name String
- (string) - The resource name of the branch. Format: projects/{project_id}/branches/{branch_id}
- parent String
- The project containing this branch. Format: projects/{project_id}
- spec
Postgres
Branch Spec - The desired state of a Branch
- 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, which will become the final component of the branch's resource name.
This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/
- create
Time string - (string) - A timestamp indicating when the branch was created
- name string
- (string) - The resource name of the branch. Format: projects/{project_id}/branches/{branch_id}
- parent string
- The project containing this branch. Format: projects/{project_id}
- spec
Postgres
Branch Spec - The desired state of a Branch
- 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, which will become the final component of the branch's resource name.
This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/
- create_
time str - (string) - A timestamp indicating when the branch was created
- name str
- (string) - The resource name of the branch. Format: projects/{project_id}/branches/{branch_id}
- parent str
- The project containing this branch. Format: projects/{project_id}
- spec
Postgres
Branch Spec Args - The desired state of a Branch
- 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, which will become the final component of the branch's resource name.
This value should be 4-63 characters, and valid characters are /[a-z][0-9]-/
- create
Time String - (string) - A timestamp indicating when the branch was created
- name String
- (string) - The resource name of the branch. Format: projects/{project_id}/branches/{branch_id}
- parent String
- The project containing this branch. Format: projects/{project_id}
- spec Property Map
- The desired state of a Branch
- 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
- Default bool
- (boolean) - Whether the branch is the project's default branch
- Is
Protected bool - (boolean) - Whether the branch is protected
- 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
- Default bool
- (boolean) - Whether the branch is the project's default branch
- Is
Protected bool - (boolean) - Whether the branch is protected
- 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
- default_ Boolean
- (boolean) - Whether the branch is the project's default branch
- is
Protected Boolean - (boolean) - Whether the branch is protected
- 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
- default boolean
- (boolean) - Whether the branch is the project's default branch
- is
Protected boolean - (boolean) - Whether the branch is protected
- 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
- default bool
- (boolean) - Whether the branch is the project's default branch
- is_
protected bool - (boolean) - Whether the branch is protected
- 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
- default Boolean
- (boolean) - Whether the branch is the project's default branch
- is
Protected Boolean - (boolean) - Whether the branch is protected
- 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
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
- 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
- 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
- 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
- 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
- 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
- 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.
