1. Packages
  2. Volcenginecc Provider
  3. API Docs
  4. rdspostgresql
  5. Schema
Viewing docs for volcenginecc v0.0.28
published on Thursday, Mar 26, 2026 by Volcengine
volcenginecc logo
Viewing docs for volcenginecc v0.0.28
published on Thursday, Mar 26, 2026 by Volcengine

    RDS PostgreSQL Schema 资源类型

    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:

    DbName string
    数据库名称
    InstanceId string
    实例 ID
    Owner string
    Schema 的 owner。说明实例只读账号、被禁用了 DDL 权限的高权限账号或被禁用了 DDL 权限的普通账号不能作为 Schema 的 owner。
    SchemaName string
    Schema 名称。长度 2~63 个字符。由字母、数字、下划线()或中划线(-)组成。以字母开头,字母或数字结尾。不能使用保留关键字,所有被禁用的关键词请参见禁用关键词。不能以 pg 开头
    DbName string
    数据库名称
    InstanceId string
    实例 ID
    Owner string
    Schema 的 owner。说明实例只读账号、被禁用了 DDL 权限的高权限账号或被禁用了 DDL 权限的普通账号不能作为 Schema 的 owner。
    SchemaName string
    Schema 名称。长度 2~63 个字符。由字母、数字、下划线()或中划线(-)组成。以字母开头,字母或数字结尾。不能使用保留关键字,所有被禁用的关键词请参见禁用关键词。不能以 pg 开头
    dbName String
    数据库名称
    instanceId String
    实例 ID
    owner String
    Schema 的 owner。说明实例只读账号、被禁用了 DDL 权限的高权限账号或被禁用了 DDL 权限的普通账号不能作为 Schema 的 owner。
    schemaName String
    Schema 名称。长度 2~63 个字符。由字母、数字、下划线()或中划线(-)组成。以字母开头,字母或数字结尾。不能使用保留关键字,所有被禁用的关键词请参见禁用关键词。不能以 pg 开头
    dbName string
    数据库名称
    instanceId string
    实例 ID
    owner string
    Schema 的 owner。说明实例只读账号、被禁用了 DDL 权限的高权限账号或被禁用了 DDL 权限的普通账号不能作为 Schema 的 owner。
    schemaName string
    Schema 名称。长度 2~63 个字符。由字母、数字、下划线()或中划线(-)组成。以字母开头,字母或数字结尾。不能使用保留关键字,所有被禁用的关键词请参见禁用关键词。不能以 pg 开头
    db_name str
    数据库名称
    instance_id str
    实例 ID
    owner str
    Schema 的 owner。说明实例只读账号、被禁用了 DDL 权限的高权限账号或被禁用了 DDL 权限的普通账号不能作为 Schema 的 owner。
    schema_name str
    Schema 名称。长度 2~63 个字符。由字母、数字、下划线()或中划线(-)组成。以字母开头,字母或数字结尾。不能使用保留关键字,所有被禁用的关键词请参见禁用关键词。不能以 pg 开头
    dbName String
    数据库名称
    instanceId String
    实例 ID
    owner String
    Schema 的 owner。说明实例只读账号、被禁用了 DDL 权限的高权限账号或被禁用了 DDL 权限的普通账号不能作为 Schema 的 owner。
    schemaName String
    Schema 名称。长度 2~63 个字符。由字母、数字、下划线()或中划线(-)组成。以字母开头,字母或数字结尾。不能使用保留关键字,所有被禁用的关键词请参见禁用关键词。不能以 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) -> Schema
    func 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.
    The following state arguments are supported:
    DbName string
    数据库名称
    InstanceId string
    实例 ID
    Owner string
    Schema 的 owner。说明实例只读账号、被禁用了 DDL 权限的高权限账号或被禁用了 DDL 权限的普通账号不能作为 Schema 的 owner。
    SchemaName string
    Schema 名称。长度 2~63 个字符。由字母、数字、下划线()或中划线(-)组成。以字母开头,字母或数字结尾。不能使用保留关键字,所有被禁用的关键词请参见禁用关键词。不能以 pg 开头
    DbName string
    数据库名称
    InstanceId string
    实例 ID
    Owner string
    Schema 的 owner。说明实例只读账号、被禁用了 DDL 权限的高权限账号或被禁用了 DDL 权限的普通账号不能作为 Schema 的 owner。
    SchemaName string
    Schema 名称。长度 2~63 个字符。由字母、数字、下划线()或中划线(-)组成。以字母开头,字母或数字结尾。不能使用保留关键字,所有被禁用的关键词请参见禁用关键词。不能以 pg 开头
    dbName String
    数据库名称
    instanceId String
    实例 ID
    owner String
    Schema 的 owner。说明实例只读账号、被禁用了 DDL 权限的高权限账号或被禁用了 DDL 权限的普通账号不能作为 Schema 的 owner。
    schemaName String
    Schema 名称。长度 2~63 个字符。由字母、数字、下划线()或中划线(-)组成。以字母开头,字母或数字结尾。不能使用保留关键字,所有被禁用的关键词请参见禁用关键词。不能以 pg 开头
    dbName string
    数据库名称
    instanceId string
    实例 ID
    owner string
    Schema 的 owner。说明实例只读账号、被禁用了 DDL 权限的高权限账号或被禁用了 DDL 权限的普通账号不能作为 Schema 的 owner。
    schemaName string
    Schema 名称。长度 2~63 个字符。由字母、数字、下划线()或中划线(-)组成。以字母开头,字母或数字结尾。不能使用保留关键字,所有被禁用的关键词请参见禁用关键词。不能以 pg 开头
    db_name str
    数据库名称
    instance_id str
    实例 ID
    owner str
    Schema 的 owner。说明实例只读账号、被禁用了 DDL 权限的高权限账号或被禁用了 DDL 权限的普通账号不能作为 Schema 的 owner。
    schema_name str
    Schema 名称。长度 2~63 个字符。由字母、数字、下划线()或中划线(-)组成。以字母开头,字母或数字结尾。不能使用保留关键字,所有被禁用的关键词请参见禁用关键词。不能以 pg 开头
    dbName String
    数据库名称
    instanceId String
    实例 ID
    owner String
    Schema 的 owner。说明实例只读账号、被禁用了 DDL 权限的高权限账号或被禁用了 DDL 权限的普通账号不能作为 Schema 的 owner。
    schemaName String
    Schema 名称。长度 2~63 个字符。由字母、数字、下划线()或中划线(-)组成。以字母开头,字母或数字结尾。不能使用保留关键字,所有被禁用的关键词请参见禁用关键词。不能以 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 volcenginecc Terraform Provider.
    volcenginecc logo
    Viewing docs for volcenginecc v0.0.28
    published on Thursday, Mar 26, 2026 by Volcengine
      Try Pulumi Cloud free. Your team will thank you.