published on Thursday, Jul 9, 2026 by planetscale
published on Thursday, Jul 9, 2026 by planetscale
PostgresRedactedBranchRole Resource
Create PostgresRedactedBranchRole Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PostgresRedactedBranchRole(name: string, args: PostgresRedactedBranchRoleArgs, opts?: CustomResourceOptions);@overload
def PostgresRedactedBranchRole(resource_name: str,
args: PostgresRedactedBranchRoleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PostgresRedactedBranchRole(resource_name: str,
opts: Optional[ResourceOptions] = None,
branch: Optional[str] = None,
database: Optional[str] = None,
organization: Optional[str] = None,
inherited_roles: Optional[Sequence[str]] = None,
name: Optional[str] = None,
successor: Optional[str] = None,
ttl: Optional[float] = None,
with_replication: Optional[bool] = None)func NewPostgresRedactedBranchRole(ctx *Context, name string, args PostgresRedactedBranchRoleArgs, opts ...ResourceOption) (*PostgresRedactedBranchRole, error)public PostgresRedactedBranchRole(string name, PostgresRedactedBranchRoleArgs args, CustomResourceOptions? opts = null)
public PostgresRedactedBranchRole(String name, PostgresRedactedBranchRoleArgs args)
public PostgresRedactedBranchRole(String name, PostgresRedactedBranchRoleArgs args, CustomResourceOptions options)
type: planetscale:PostgresRedactedBranchRole
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "planetscale_postgresredactedbranchrole" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args PostgresRedactedBranchRoleArgs
- 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 PostgresRedactedBranchRoleArgs
- 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 PostgresRedactedBranchRoleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PostgresRedactedBranchRoleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PostgresRedactedBranchRoleArgs
- 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 postgresRedactedBranchRoleResource = new Planetscale.PostgresRedactedBranchRole("postgresRedactedBranchRoleResource", new()
{
Branch = "string",
Database = "string",
Organization = "string",
InheritedRoles = new[]
{
"string",
},
Name = "string",
Successor = "string",
Ttl = 0,
WithReplication = false,
});
example, err := planetscale.NewPostgresRedactedBranchRole(ctx, "postgresRedactedBranchRoleResource", &planetscale.PostgresRedactedBranchRoleArgs{
Branch: pulumi.String("string"),
Database: pulumi.String("string"),
Organization: pulumi.String("string"),
InheritedRoles: pulumi.StringArray{
pulumi.String("string"),
},
Name: pulumi.String("string"),
Successor: pulumi.String("string"),
Ttl: pulumi.Float64(0),
WithReplication: pulumi.Bool(false),
})
resource "planetscale_postgresredactedbranchrole" "postgresRedactedBranchRoleResource" {
branch = "string"
database = "string"
organization = "string"
inherited_roles = ["string"]
name = "string"
successor = "string"
ttl = 0
with_replication = false
}
var postgresRedactedBranchRoleResource = new PostgresRedactedBranchRole("postgresRedactedBranchRoleResource", PostgresRedactedBranchRoleArgs.builder()
.branch("string")
.database("string")
.organization("string")
.inheritedRoles("string")
.name("string")
.successor("string")
.ttl(0.0)
.withReplication(false)
.build());
postgres_redacted_branch_role_resource = planetscale.PostgresRedactedBranchRole("postgresRedactedBranchRoleResource",
branch="string",
database="string",
organization="string",
inherited_roles=["string"],
name="string",
successor="string",
ttl=float(0),
with_replication=False)
const postgresRedactedBranchRoleResource = new planetscale.PostgresRedactedBranchRole("postgresRedactedBranchRoleResource", {
branch: "string",
database: "string",
organization: "string",
inheritedRoles: ["string"],
name: "string",
successor: "string",
ttl: 0,
withReplication: false,
});
type: planetscale:PostgresRedactedBranchRole
properties:
branch: string
database: string
inheritedRoles:
- string
name: string
organization: string
successor: string
ttl: 0
withReplication: false
PostgresRedactedBranchRole 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 PostgresRedactedBranchRole resource accepts the following input properties:
- Branch string
- Branch name from
list_branches. Example:main. - Database string
- Database name slug from
list_databases. Example:app-db. - Organization string
- Organization name slug from
list_organizations. Example:acme. - Inherited
Roles List<string> - Roles to inherit from. Requires replacement if changed.
- Name string
- The name of the role
- Successor string
- The optional role to reassign ownership to before dropping
- Ttl double
- Time to live in seconds. Requires replacement if changed.
- With
Replication bool - Whether the role should have the REPLICATION attribute. Requires replacement if changed.
- Branch string
- Branch name from
list_branches. Example:main. - Database string
- Database name slug from
list_databases. Example:app-db. - Organization string
- Organization name slug from
list_organizations. Example:acme. - Inherited
Roles []string - Roles to inherit from. Requires replacement if changed.
- Name string
- The name of the role
- Successor string
- The optional role to reassign ownership to before dropping
- Ttl float64
- Time to live in seconds. Requires replacement if changed.
- With
Replication bool - Whether the role should have the REPLICATION attribute. Requires replacement if changed.
- branch string
- Branch name from
list_branches. Example:main. - database string
- Database name slug from
list_databases. Example:app-db. - organization string
- Organization name slug from
list_organizations. Example:acme. - inherited_
roles list(string) - Roles to inherit from. Requires replacement if changed.
- name string
- The name of the role
- successor string
- The optional role to reassign ownership to before dropping
- ttl number
- Time to live in seconds. Requires replacement if changed.
- with_
replication bool - Whether the role should have the REPLICATION attribute. Requires replacement if changed.
- branch String
- Branch name from
list_branches. Example:main. - database String
- Database name slug from
list_databases. Example:app-db. - organization String
- Organization name slug from
list_organizations. Example:acme. - inherited
Roles List<String> - Roles to inherit from. Requires replacement if changed.
- name String
- The name of the role
- successor String
- The optional role to reassign ownership to before dropping
- ttl Double
- Time to live in seconds. Requires replacement if changed.
- with
Replication Boolean - Whether the role should have the REPLICATION attribute. Requires replacement if changed.
- branch string
- Branch name from
list_branches. Example:main. - database string
- Database name slug from
list_databases. Example:app-db. - organization string
- Organization name slug from
list_organizations. Example:acme. - inherited
Roles string[] - Roles to inherit from. Requires replacement if changed.
- name string
- The name of the role
- successor string
- The optional role to reassign ownership to before dropping
- ttl number
- Time to live in seconds. Requires replacement if changed.
- with
Replication boolean - Whether the role should have the REPLICATION attribute. Requires replacement if changed.
- branch str
- Branch name from
list_branches. Example:main. - database str
- Database name slug from
list_databases. Example:app-db. - organization str
- Organization name slug from
list_organizations. Example:acme. - inherited_
roles Sequence[str] - Roles to inherit from. Requires replacement if changed.
- name str
- The name of the role
- successor str
- The optional role to reassign ownership to before dropping
- ttl float
- Time to live in seconds. Requires replacement if changed.
- with_
replication bool - Whether the role should have the REPLICATION attribute. Requires replacement if changed.
- branch String
- Branch name from
list_branches. Example:main. - database String
- Database name slug from
list_databases. Example:app-db. - organization String
- Organization name slug from
list_organizations. Example:acme. - inherited
Roles List<String> - Roles to inherit from. Requires replacement if changed.
- name String
- The name of the role
- successor String
- The optional role to reassign ownership to before dropping
- ttl Number
- Time to live in seconds. Requires replacement if changed.
- with
Replication Boolean - Whether the role should have the REPLICATION attribute. Requires replacement if changed.
Outputs
All input properties are implicitly available as output properties. Additionally, the PostgresRedactedBranchRole resource produces the following output properties:
- Access
Host stringUrl - The database connection string
- Actor
Data PostgresRedacted Branch Role Actor Data - Base
Username string - The base username without branch routing suffix
- Branch
Data PostgresRedacted Branch Role Branch Data - Created
At string - When the role was created
- Database
Name string - The database name
- Default bool
- Whether the role is the default postgres user
- Deleted
At string - When the role was deleted
- Disabled
At string - When the role was disabled
- Drop
Failed string - Error message available when dropping the role fails
- Dropped
At string - When the role was dropped
- Expired bool
- True if the credentials are expired
- Expires
At string - When the role expires
- Id string
- The provider-assigned unique ID for this managed resource.
- Private
Access stringHost Url - The database connection string for private connections
- Private
Connection stringService Name - The service name to set up private connectivity
- Query
Safety PostgresSettings Redacted Branch Role Query Safety Settings - Updated
At string - When the role was updated
- Username string
- The database user name
- Access
Host stringUrl - The database connection string
- Actor
Data PostgresRedacted Branch Role Actor Data - Base
Username string - The base username without branch routing suffix
- Branch
Data PostgresRedacted Branch Role Branch Data - Created
At string - When the role was created
- Database
Name string - The database name
- Default bool
- Whether the role is the default postgres user
- Deleted
At string - When the role was deleted
- Disabled
At string - When the role was disabled
- Drop
Failed string - Error message available when dropping the role fails
- Dropped
At string - When the role was dropped
- Expired bool
- True if the credentials are expired
- Expires
At string - When the role expires
- Id string
- The provider-assigned unique ID for this managed resource.
- Private
Access stringHost Url - The database connection string for private connections
- Private
Connection stringService Name - The service name to set up private connectivity
- Query
Safety PostgresSettings Redacted Branch Role Query Safety Settings - Updated
At string - When the role was updated
- Username string
- The database user name
- access_
host_ stringurl - The database connection string
- actor_
data object - base_
username string - The base username without branch routing suffix
- branch_
data object - created_
at string - When the role was created
- database_
name string - The database name
- default bool
- Whether the role is the default postgres user
- deleted_
at string - When the role was deleted
- disabled_
at string - When the role was disabled
- drop_
failed string - Error message available when dropping the role fails
- dropped_
at string - When the role was dropped
- expired bool
- True if the credentials are expired
- expires_
at string - When the role expires
- id string
- The provider-assigned unique ID for this managed resource.
- private_
access_ stringhost_ url - The database connection string for private connections
- private_
connection_ stringservice_ name - The service name to set up private connectivity
- query_
safety_ objectsettings - updated_
at string - When the role was updated
- username string
- The database user name
- access
Host StringUrl - The database connection string
- actor
Data PostgresRedacted Branch Role Actor Data - base
Username String - The base username without branch routing suffix
- branch
Data PostgresRedacted Branch Role Branch Data - created
At String - When the role was created
- database
Name String - The database name
- default_ Boolean
- Whether the role is the default postgres user
- deleted
At String - When the role was deleted
- disabled
At String - When the role was disabled
- drop
Failed String - Error message available when dropping the role fails
- dropped
At String - When the role was dropped
- expired Boolean
- True if the credentials are expired
- expires
At String - When the role expires
- id String
- The provider-assigned unique ID for this managed resource.
- private
Access StringHost Url - The database connection string for private connections
- private
Connection StringService Name - The service name to set up private connectivity
- query
Safety PostgresSettings Redacted Branch Role Query Safety Settings - updated
At String - When the role was updated
- username String
- The database user name
- access
Host stringUrl - The database connection string
- actor
Data PostgresRedacted Branch Role Actor Data - base
Username string - The base username without branch routing suffix
- branch
Data PostgresRedacted Branch Role Branch Data - created
At string - When the role was created
- database
Name string - The database name
- default boolean
- Whether the role is the default postgres user
- deleted
At string - When the role was deleted
- disabled
At string - When the role was disabled
- drop
Failed string - Error message available when dropping the role fails
- dropped
At string - When the role was dropped
- expired boolean
- True if the credentials are expired
- expires
At string - When the role expires
- id string
- The provider-assigned unique ID for this managed resource.
- private
Access stringHost Url - The database connection string for private connections
- private
Connection stringService Name - The service name to set up private connectivity
- query
Safety PostgresSettings Redacted Branch Role Query Safety Settings - updated
At string - When the role was updated
- username string
- The database user name
- access_
host_ strurl - The database connection string
- actor_
data PostgresRedacted Branch Role Actor Data - base_
username str - The base username without branch routing suffix
- branch_
data PostgresRedacted Branch Role Branch Data - created_
at str - When the role was created
- database_
name str - The database name
- default bool
- Whether the role is the default postgres user
- deleted_
at str - When the role was deleted
- disabled_
at str - When the role was disabled
- drop_
failed str - Error message available when dropping the role fails
- dropped_
at str - When the role was dropped
- expired bool
- True if the credentials are expired
- expires_
at str - When the role expires
- id str
- The provider-assigned unique ID for this managed resource.
- private_
access_ strhost_ url - The database connection string for private connections
- private_
connection_ strservice_ name - The service name to set up private connectivity
- query_
safety_ Postgressettings Redacted Branch Role Query Safety Settings - updated_
at str - When the role was updated
- username str
- The database user name
- access
Host StringUrl - The database connection string
- actor
Data Property Map - base
Username String - The base username without branch routing suffix
- branch
Data Property Map - created
At String - When the role was created
- database
Name String - The database name
- default Boolean
- Whether the role is the default postgres user
- deleted
At String - When the role was deleted
- disabled
At String - When the role was disabled
- drop
Failed String - Error message available when dropping the role fails
- dropped
At String - When the role was dropped
- expired Boolean
- True if the credentials are expired
- expires
At String - When the role expires
- id String
- The provider-assigned unique ID for this managed resource.
- private
Access StringHost Url - The database connection string for private connections
- private
Connection StringService Name - The service name to set up private connectivity
- query
Safety Property MapSettings - updated
At String - When the role was updated
- username String
- The database user name
Look up Existing PostgresRedactedBranchRole Resource
Get an existing PostgresRedactedBranchRole 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?: PostgresRedactedBranchRoleState, opts?: CustomResourceOptions): PostgresRedactedBranchRole@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
access_host_url: Optional[str] = None,
actor_data: Optional[PostgresRedactedBranchRoleActorDataArgs] = None,
base_username: Optional[str] = None,
branch: Optional[str] = None,
branch_data: Optional[PostgresRedactedBranchRoleBranchDataArgs] = None,
created_at: Optional[str] = None,
database: Optional[str] = None,
database_name: Optional[str] = None,
default: Optional[bool] = None,
deleted_at: Optional[str] = None,
disabled_at: Optional[str] = None,
drop_failed: Optional[str] = None,
dropped_at: Optional[str] = None,
expired: Optional[bool] = None,
expires_at: Optional[str] = None,
inherited_roles: Optional[Sequence[str]] = None,
name: Optional[str] = None,
organization: Optional[str] = None,
private_access_host_url: Optional[str] = None,
private_connection_service_name: Optional[str] = None,
query_safety_settings: Optional[PostgresRedactedBranchRoleQuerySafetySettingsArgs] = None,
successor: Optional[str] = None,
ttl: Optional[float] = None,
updated_at: Optional[str] = None,
username: Optional[str] = None,
with_replication: Optional[bool] = None) -> PostgresRedactedBranchRolefunc GetPostgresRedactedBranchRole(ctx *Context, name string, id IDInput, state *PostgresRedactedBranchRoleState, opts ...ResourceOption) (*PostgresRedactedBranchRole, error)public static PostgresRedactedBranchRole Get(string name, Input<string> id, PostgresRedactedBranchRoleState? state, CustomResourceOptions? opts = null)public static PostgresRedactedBranchRole get(String name, Output<String> id, PostgresRedactedBranchRoleState state, CustomResourceOptions options)resources: _: type: planetscale:PostgresRedactedBranchRole get: id: ${id}import {
to = planetscale_postgresredactedbranchrole.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Access
Host stringUrl - The database connection string
- Actor
Data PostgresRedacted Branch Role Actor Data - Base
Username string - The base username without branch routing suffix
- Branch string
- Branch name from
list_branches. Example:main. - Branch
Data PostgresRedacted Branch Role Branch Data - Created
At string - When the role was created
- Database string
- Database name slug from
list_databases. Example:app-db. - Database
Name string - The database name
- Default bool
- Whether the role is the default postgres user
- Deleted
At string - When the role was deleted
- Disabled
At string - When the role was disabled
- Drop
Failed string - Error message available when dropping the role fails
- Dropped
At string - When the role was dropped
- Expired bool
- True if the credentials are expired
- Expires
At string - When the role expires
- Inherited
Roles List<string> - Roles to inherit from. Requires replacement if changed.
- Name string
- The name of the role
- Organization string
- Organization name slug from
list_organizations. Example:acme. - Private
Access stringHost Url - The database connection string for private connections
- Private
Connection stringService Name - The service name to set up private connectivity
- Query
Safety PostgresSettings Redacted Branch Role Query Safety Settings - Successor string
- The optional role to reassign ownership to before dropping
- Ttl double
- Time to live in seconds. Requires replacement if changed.
- Updated
At string - When the role was updated
- Username string
- The database user name
- With
Replication bool - Whether the role should have the REPLICATION attribute. Requires replacement if changed.
- Access
Host stringUrl - The database connection string
- Actor
Data PostgresRedacted Branch Role Actor Data Args - Base
Username string - The base username without branch routing suffix
- Branch string
- Branch name from
list_branches. Example:main. - Branch
Data PostgresRedacted Branch Role Branch Data Args - Created
At string - When the role was created
- Database string
- Database name slug from
list_databases. Example:app-db. - Database
Name string - The database name
- Default bool
- Whether the role is the default postgres user
- Deleted
At string - When the role was deleted
- Disabled
At string - When the role was disabled
- Drop
Failed string - Error message available when dropping the role fails
- Dropped
At string - When the role was dropped
- Expired bool
- True if the credentials are expired
- Expires
At string - When the role expires
- Inherited
Roles []string - Roles to inherit from. Requires replacement if changed.
- Name string
- The name of the role
- Organization string
- Organization name slug from
list_organizations. Example:acme. - Private
Access stringHost Url - The database connection string for private connections
- Private
Connection stringService Name - The service name to set up private connectivity
- Query
Safety PostgresSettings Redacted Branch Role Query Safety Settings Args - Successor string
- The optional role to reassign ownership to before dropping
- Ttl float64
- Time to live in seconds. Requires replacement if changed.
- Updated
At string - When the role was updated
- Username string
- The database user name
- With
Replication bool - Whether the role should have the REPLICATION attribute. Requires replacement if changed.
- access_
host_ stringurl - The database connection string
- actor_
data object - base_
username string - The base username without branch routing suffix
- branch string
- Branch name from
list_branches. Example:main. - branch_
data object - created_
at string - When the role was created
- database string
- Database name slug from
list_databases. Example:app-db. - database_
name string - The database name
- default bool
- Whether the role is the default postgres user
- deleted_
at string - When the role was deleted
- disabled_
at string - When the role was disabled
- drop_
failed string - Error message available when dropping the role fails
- dropped_
at string - When the role was dropped
- expired bool
- True if the credentials are expired
- expires_
at string - When the role expires
- inherited_
roles list(string) - Roles to inherit from. Requires replacement if changed.
- name string
- The name of the role
- organization string
- Organization name slug from
list_organizations. Example:acme. - private_
access_ stringhost_ url - The database connection string for private connections
- private_
connection_ stringservice_ name - The service name to set up private connectivity
- query_
safety_ objectsettings - successor string
- The optional role to reassign ownership to before dropping
- ttl number
- Time to live in seconds. Requires replacement if changed.
- updated_
at string - When the role was updated
- username string
- The database user name
- with_
replication bool - Whether the role should have the REPLICATION attribute. Requires replacement if changed.
- access
Host StringUrl - The database connection string
- actor
Data PostgresRedacted Branch Role Actor Data - base
Username String - The base username without branch routing suffix
- branch String
- Branch name from
list_branches. Example:main. - branch
Data PostgresRedacted Branch Role Branch Data - created
At String - When the role was created
- database String
- Database name slug from
list_databases. Example:app-db. - database
Name String - The database name
- default_ Boolean
- Whether the role is the default postgres user
- deleted
At String - When the role was deleted
- disabled
At String - When the role was disabled
- drop
Failed String - Error message available when dropping the role fails
- dropped
At String - When the role was dropped
- expired Boolean
- True if the credentials are expired
- expires
At String - When the role expires
- inherited
Roles List<String> - Roles to inherit from. Requires replacement if changed.
- name String
- The name of the role
- organization String
- Organization name slug from
list_organizations. Example:acme. - private
Access StringHost Url - The database connection string for private connections
- private
Connection StringService Name - The service name to set up private connectivity
- query
Safety PostgresSettings Redacted Branch Role Query Safety Settings - successor String
- The optional role to reassign ownership to before dropping
- ttl Double
- Time to live in seconds. Requires replacement if changed.
- updated
At String - When the role was updated
- username String
- The database user name
- with
Replication Boolean - Whether the role should have the REPLICATION attribute. Requires replacement if changed.
- access
Host stringUrl - The database connection string
- actor
Data PostgresRedacted Branch Role Actor Data - base
Username string - The base username without branch routing suffix
- branch string
- Branch name from
list_branches. Example:main. - branch
Data PostgresRedacted Branch Role Branch Data - created
At string - When the role was created
- database string
- Database name slug from
list_databases. Example:app-db. - database
Name string - The database name
- default boolean
- Whether the role is the default postgres user
- deleted
At string - When the role was deleted
- disabled
At string - When the role was disabled
- drop
Failed string - Error message available when dropping the role fails
- dropped
At string - When the role was dropped
- expired boolean
- True if the credentials are expired
- expires
At string - When the role expires
- inherited
Roles string[] - Roles to inherit from. Requires replacement if changed.
- name string
- The name of the role
- organization string
- Organization name slug from
list_organizations. Example:acme. - private
Access stringHost Url - The database connection string for private connections
- private
Connection stringService Name - The service name to set up private connectivity
- query
Safety PostgresSettings Redacted Branch Role Query Safety Settings - successor string
- The optional role to reassign ownership to before dropping
- ttl number
- Time to live in seconds. Requires replacement if changed.
- updated
At string - When the role was updated
- username string
- The database user name
- with
Replication boolean - Whether the role should have the REPLICATION attribute. Requires replacement if changed.
- access_
host_ strurl - The database connection string
- actor_
data PostgresRedacted Branch Role Actor Data Args - base_
username str - The base username without branch routing suffix
- branch str
- Branch name from
list_branches. Example:main. - branch_
data PostgresRedacted Branch Role Branch Data Args - created_
at str - When the role was created
- database str
- Database name slug from
list_databases. Example:app-db. - database_
name str - The database name
- default bool
- Whether the role is the default postgres user
- deleted_
at str - When the role was deleted
- disabled_
at str - When the role was disabled
- drop_
failed str - Error message available when dropping the role fails
- dropped_
at str - When the role was dropped
- expired bool
- True if the credentials are expired
- expires_
at str - When the role expires
- inherited_
roles Sequence[str] - Roles to inherit from. Requires replacement if changed.
- name str
- The name of the role
- organization str
- Organization name slug from
list_organizations. Example:acme. - private_
access_ strhost_ url - The database connection string for private connections
- private_
connection_ strservice_ name - The service name to set up private connectivity
- query_
safety_ Postgressettings Redacted Branch Role Query Safety Settings Args - successor str
- The optional role to reassign ownership to before dropping
- ttl float
- Time to live in seconds. Requires replacement if changed.
- updated_
at str - When the role was updated
- username str
- The database user name
- with_
replication bool - Whether the role should have the REPLICATION attribute. Requires replacement if changed.
- access
Host StringUrl - The database connection string
- actor
Data Property Map - base
Username String - The base username without branch routing suffix
- branch String
- Branch name from
list_branches. Example:main. - branch
Data Property Map - created
At String - When the role was created
- database String
- Database name slug from
list_databases. Example:app-db. - database
Name String - The database name
- default Boolean
- Whether the role is the default postgres user
- deleted
At String - When the role was deleted
- disabled
At String - When the role was disabled
- drop
Failed String - Error message available when dropping the role fails
- dropped
At String - When the role was dropped
- expired Boolean
- True if the credentials are expired
- expires
At String - When the role expires
- inherited
Roles List<String> - Roles to inherit from. Requires replacement if changed.
- name String
- The name of the role
- organization String
- Organization name slug from
list_organizations. Example:acme. - private
Access StringHost Url - The database connection string for private connections
- private
Connection StringService Name - The service name to set up private connectivity
- query
Safety Property MapSettings - successor String
- The optional role to reassign ownership to before dropping
- ttl Number
- Time to live in seconds. Requires replacement if changed.
- updated
At String - When the role was updated
- username String
- The database user name
- with
Replication Boolean - Whether the role should have the REPLICATION attribute. Requires replacement if changed.
Supporting Types
PostgresRedactedBranchRoleActorData, PostgresRedactedBranchRoleActorDataArgs
- Avatar
Url string - The URL of the actor's avatar
- Display
Name string - The name of the actor
- Id string
- The ID of the actor
- Avatar
Url string - The URL of the actor's avatar
- Display
Name string - The name of the actor
- Id string
- The ID of the actor
- avatar_
url string - The URL of the actor's avatar
- display_
name string - The name of the actor
- id string
- The ID of the actor
- avatar
Url String - The URL of the actor's avatar
- display
Name String - The name of the actor
- id String
- The ID of the actor
- avatar
Url string - The URL of the actor's avatar
- display
Name string - The name of the actor
- id string
- The ID of the actor
- avatar_
url str - The URL of the actor's avatar
- display_
name str - The name of the actor
- id str
- The ID of the actor
- avatar
Url String - The URL of the actor's avatar
- display
Name String - The name of the actor
- id String
- The ID of the actor
PostgresRedactedBranchRoleBranchData, PostgresRedactedBranchRoleBranchDataArgs
- deleted_
at string - When the resource was deleted, if deleted
- id string
- The ID for the resource
- name string
- The name for the resource
- deleted_
at str - When the resource was deleted, if deleted
- id str
- The ID for the resource
- name str
- The name for the resource
PostgresRedactedBranchRoleQuerySafetySettings, PostgresRedactedBranchRoleQuerySafetySettingsArgs
- Require
Where stringOn Delete - Require WHERE clause on DELETE statements
- Require
Where stringOn Update - Require WHERE clause on UPDATE statements
- Require
Where stringOn Delete - Require WHERE clause on DELETE statements
- Require
Where stringOn Update - Require WHERE clause on UPDATE statements
- require_
where_ stringon_ delete - Require WHERE clause on DELETE statements
- require_
where_ stringon_ update - Require WHERE clause on UPDATE statements
- require
Where StringOn Delete - Require WHERE clause on DELETE statements
- require
Where StringOn Update - Require WHERE clause on UPDATE statements
- require
Where stringOn Delete - Require WHERE clause on DELETE statements
- require
Where stringOn Update - Require WHERE clause on UPDATE statements
- require_
where_ stron_ delete - Require WHERE clause on DELETE statements
- require_
where_ stron_ update - Require WHERE clause on UPDATE statements
- require
Where StringOn Delete - Require WHERE clause on DELETE statements
- require
Where StringOn Update - Require WHERE clause on UPDATE statements
Import
In Terraform v1.5.0 and later, the import block can be used with the id attribute, for example:
terraform
import {
to = planetscale_postgres_redacted_branch_role.my_planetscale_postgres_redacted_branch_role
id = jsonencode({
branch = "..."
database = "..."
id = "..."
organization = "..."
})
}
The pulumi import command can be used, for example:
$ pulumi import planetscale:index/postgresRedactedBranchRole:PostgresRedactedBranchRole my_planetscale_postgres_redacted_branch_role '{"branch": "...", "database": "...", "id": "...", "organization": "..."}'
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- planetscale planetscale/terraform-provider-planetscale
- License
- Notes
- This Pulumi package is based on the
planetscaleTerraform Provider.
published on Thursday, Jul 9, 2026 by planetscale