published on Thursday, Apr 2, 2026 by Volcengine
published on Thursday, Apr 2, 2026 by Volcengine
RDS PostgreSQL Schema resource type
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcenginecc from "@volcengine/pulumi-volcenginecc";
const rDSPostgreSQLSchemaDemo = new volcenginecc.rdspostgresql.Schema("RDSPostgreSQLSchemaDemo", {
instanceId: "postgres-8d1fcxxxxx",
dbName: "ccapi-terraform-1001",
schemaName: "ccapi-terraform-1",
owner: "test",
});
import pulumi
import pulumi_volcenginecc as volcenginecc
r_ds_postgre_sql_schema_demo = volcenginecc.rdspostgresql.Schema("RDSPostgreSQLSchemaDemo",
instance_id="postgres-8d1fcxxxxx",
db_name="ccapi-terraform-1001",
schema_name="ccapi-terraform-1",
owner="test")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcenginecc/sdk/go/volcenginecc/rdspostgresql"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := rdspostgresql.NewSchema(ctx, "RDSPostgreSQLSchemaDemo", &rdspostgresql.SchemaArgs{
InstanceId: pulumi.String("postgres-8d1fcxxxxx"),
DbName: pulumi.String("ccapi-terraform-1001"),
SchemaName: pulumi.String("ccapi-terraform-1"),
Owner: pulumi.String("test"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcenginecc = Volcengine.Pulumi.Volcenginecc;
return await Deployment.RunAsync(() =>
{
var rDSPostgreSQLSchemaDemo = new Volcenginecc.Rdspostgresql.Schema("RDSPostgreSQLSchemaDemo", new()
{
InstanceId = "postgres-8d1fcxxxxx",
DbName = "ccapi-terraform-1001",
SchemaName = "ccapi-terraform-1",
Owner = "test",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.volcengine.volcenginecc.rdspostgresql.Schema;
import com.volcengine.volcenginecc.rdspostgresql.SchemaArgs;
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 rDSPostgreSQLSchemaDemo = new Schema("rDSPostgreSQLSchemaDemo", SchemaArgs.builder()
.instanceId("postgres-8d1fcxxxxx")
.dbName("ccapi-terraform-1001")
.schemaName("ccapi-terraform-1")
.owner("test")
.build());
}
}
resources:
rDSPostgreSQLSchemaDemo:
type: volcenginecc:rdspostgresql:Schema
name: RDSPostgreSQLSchemaDemo
properties:
instanceId: postgres-8d1fcxxxxx
dbName: ccapi-terraform-1001
schemaName: ccapi-terraform-1
owner: test
Create Schema Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Schema(name: string, args: SchemaArgs, opts?: CustomResourceOptions);@overload
def Schema(resource_name: str,
args: SchemaArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Schema(resource_name: str,
opts: Optional[ResourceOptions] = None,
db_name: Optional[str] = None,
instance_id: Optional[str] = None,
owner: Optional[str] = None,
schema_name: Optional[str] = None)func NewSchema(ctx *Context, name string, args SchemaArgs, opts ...ResourceOption) (*Schema, error)public Schema(string name, SchemaArgs args, CustomResourceOptions? opts = null)
public Schema(String name, SchemaArgs args)
public Schema(String name, SchemaArgs args, CustomResourceOptions options)
type: volcenginecc:rdspostgresql:Schema
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 SchemaArgs
- 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 SchemaArgs
- 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 SchemaArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SchemaArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SchemaArgs
- 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 schemaResource = new Volcenginecc.Rdspostgresql.Schema("schemaResource", new()
{
DbName = "string",
InstanceId = "string",
Owner = "string",
SchemaName = "string",
});
example, err := rdspostgresql.NewSchema(ctx, "schemaResource", &rdspostgresql.SchemaArgs{
DbName: pulumi.String("string"),
InstanceId: pulumi.String("string"),
Owner: pulumi.String("string"),
SchemaName: pulumi.String("string"),
})
var schemaResource = new Schema("schemaResource", SchemaArgs.builder()
.dbName("string")
.instanceId("string")
.owner("string")
.schemaName("string")
.build());
schema_resource = volcenginecc.rdspostgresql.Schema("schemaResource",
db_name="string",
instance_id="string",
owner="string",
schema_name="string")
const schemaResource = new volcenginecc.rdspostgresql.Schema("schemaResource", {
dbName: "string",
instanceId: "string",
owner: "string",
schemaName: "string",
});
type: volcenginecc:rdspostgresql:Schema
properties:
dbName: string
instanceId: string
owner: string
schemaName: string
Schema 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 Schema resource accepts the following input properties:
- Db
Name string - Database name
- Instance
Id string - Instance ID
- Owner string
- Schema owner. Note that instance read-only accounts, high-privilege accounts with DDL permissions disabled, or regular accounts with DDL permissions disabled cannot be set as the Schema owner.
- Schema
Name string - Schema name. Length: 2–63 characters. Can contain letters, numbers, underscores (), or hyphens (-). Must start with a letter and end with a letter or number. Reserved keywords are not allowed; for all disabled keywords, see Disabled Keywords. Cannot start with pg
- Db
Name string - Database name
- Instance
Id string - Instance ID
- Owner string
- Schema owner. Note that instance read-only accounts, high-privilege accounts with DDL permissions disabled, or regular accounts with DDL permissions disabled cannot be set as the Schema owner.
- Schema
Name string - Schema name. Length: 2–63 characters. Can contain letters, numbers, underscores (), or hyphens (-). Must start with a letter and end with a letter or number. Reserved keywords are not allowed; for all disabled keywords, see Disabled Keywords. Cannot start with pg
- db
Name String - Database name
- instance
Id String - Instance ID
- owner String
- Schema owner. Note that instance read-only accounts, high-privilege accounts with DDL permissions disabled, or regular accounts with DDL permissions disabled cannot be set as the Schema owner.
- schema
Name String - Schema name. Length: 2–63 characters. Can contain letters, numbers, underscores (), or hyphens (-). Must start with a letter and end with a letter or number. Reserved keywords are not allowed; for all disabled keywords, see Disabled Keywords. Cannot start with pg
- db
Name string - Database name
- instance
Id string - Instance ID
- owner string
- Schema owner. Note that instance read-only accounts, high-privilege accounts with DDL permissions disabled, or regular accounts with DDL permissions disabled cannot be set as the Schema owner.
- schema
Name string - Schema name. Length: 2–63 characters. Can contain letters, numbers, underscores (), or hyphens (-). Must start with a letter and end with a letter or number. Reserved keywords are not allowed; for all disabled keywords, see Disabled Keywords. Cannot start with pg
- db_
name str - Database name
- instance_
id str - Instance ID
- owner str
- Schema owner. Note that instance read-only accounts, high-privilege accounts with DDL permissions disabled, or regular accounts with DDL permissions disabled cannot be set as the Schema owner.
- schema_
name str - Schema name. Length: 2–63 characters. Can contain letters, numbers, underscores (), or hyphens (-). Must start with a letter and end with a letter or number. Reserved keywords are not allowed; for all disabled keywords, see Disabled Keywords. Cannot start with pg
- db
Name String - Database name
- instance
Id String - Instance ID
- owner String
- Schema owner. Note that instance read-only accounts, high-privilege accounts with DDL permissions disabled, or regular accounts with DDL permissions disabled cannot be set as the Schema owner.
- schema
Name String - Schema name. Length: 2–63 characters. Can contain letters, numbers, underscores (), or hyphens (-). Must start with a letter and end with a letter or number. Reserved keywords are not allowed; for all disabled keywords, see Disabled Keywords. Cannot start with pg
Outputs
All input properties are implicitly available as output properties. Additionally, the Schema resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Schema Resource
Get an existing Schema 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?: SchemaState, opts?: CustomResourceOptions): Schema@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
db_name: Optional[str] = None,
instance_id: Optional[str] = None,
owner: Optional[str] = None,
schema_name: Optional[str] = None) -> Schemafunc GetSchema(ctx *Context, name string, id IDInput, state *SchemaState, opts ...ResourceOption) (*Schema, error)public static Schema Get(string name, Input<string> id, SchemaState? state, CustomResourceOptions? opts = null)public static Schema get(String name, Output<String> id, SchemaState state, CustomResourceOptions options)resources: _: type: volcenginecc:rdspostgresql:Schema 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.
- Db
Name string - Database name
- Instance
Id string - Instance ID
- Owner string
- Schema owner. Note that instance read-only accounts, high-privilege accounts with DDL permissions disabled, or regular accounts with DDL permissions disabled cannot be set as the Schema owner.
- Schema
Name string - Schema name. Length: 2–63 characters. Can contain letters, numbers, underscores (), or hyphens (-). Must start with a letter and end with a letter or number. Reserved keywords are not allowed; for all disabled keywords, see Disabled Keywords. Cannot start with pg
- Db
Name string - Database name
- Instance
Id string - Instance ID
- Owner string
- Schema owner. Note that instance read-only accounts, high-privilege accounts with DDL permissions disabled, or regular accounts with DDL permissions disabled cannot be set as the Schema owner.
- Schema
Name string - Schema name. Length: 2–63 characters. Can contain letters, numbers, underscores (), or hyphens (-). Must start with a letter and end with a letter or number. Reserved keywords are not allowed; for all disabled keywords, see Disabled Keywords. Cannot start with pg
- db
Name String - Database name
- instance
Id String - Instance ID
- owner String
- Schema owner. Note that instance read-only accounts, high-privilege accounts with DDL permissions disabled, or regular accounts with DDL permissions disabled cannot be set as the Schema owner.
- schema
Name String - Schema name. Length: 2–63 characters. Can contain letters, numbers, underscores (), or hyphens (-). Must start with a letter and end with a letter or number. Reserved keywords are not allowed; for all disabled keywords, see Disabled Keywords. Cannot start with pg
- db
Name string - Database name
- instance
Id string - Instance ID
- owner string
- Schema owner. Note that instance read-only accounts, high-privilege accounts with DDL permissions disabled, or regular accounts with DDL permissions disabled cannot be set as the Schema owner.
- schema
Name string - Schema name. Length: 2–63 characters. Can contain letters, numbers, underscores (), or hyphens (-). Must start with a letter and end with a letter or number. Reserved keywords are not allowed; for all disabled keywords, see Disabled Keywords. Cannot start with pg
- db_
name str - Database name
- instance_
id str - Instance ID
- owner str
- Schema owner. Note that instance read-only accounts, high-privilege accounts with DDL permissions disabled, or regular accounts with DDL permissions disabled cannot be set as the Schema owner.
- schema_
name str - Schema name. Length: 2–63 characters. Can contain letters, numbers, underscores (), or hyphens (-). Must start with a letter and end with a letter or number. Reserved keywords are not allowed; for all disabled keywords, see Disabled Keywords. Cannot start with pg
- db
Name String - Database name
- instance
Id String - Instance ID
- owner String
- Schema owner. Note that instance read-only accounts, high-privilege accounts with DDL permissions disabled, or regular accounts with DDL permissions disabled cannot be set as the Schema owner.
- schema
Name String - Schema name. Length: 2–63 characters. Can contain letters, numbers, underscores (), or hyphens (-). Must start with a letter and end with a letter or number. Reserved keywords are not allowed; for all disabled keywords, see Disabled Keywords. Cannot start with pg
Import
$ pulumi import volcenginecc:rdspostgresql/schema:Schema example "instance_id|db_name|schema_name"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcenginecc volcengine/pulumi-volcenginecc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
volcengineccTerraform Provider.
published on Thursday, Apr 2, 2026 by Volcengine
