1. Packages
  2. Packages
  3. Tencentcloud Provider
  4. API Docs
  5. PostgresqlAccountPrivilegesOperation
Viewing docs for tencentcloud 1.82.91
published on Friday, May 1, 2026 by tencentcloudstack
Viewing docs for tencentcloud 1.82.91
published on Friday, May 1, 2026 by tencentcloudstack

    Create PostgresqlAccountPrivilegesOperation Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new PostgresqlAccountPrivilegesOperation(name: string, args: PostgresqlAccountPrivilegesOperationArgs, opts?: CustomResourceOptions);
    @overload
    def PostgresqlAccountPrivilegesOperation(resource_name: str,
                                             args: PostgresqlAccountPrivilegesOperationArgs,
                                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def PostgresqlAccountPrivilegesOperation(resource_name: str,
                                             opts: Optional[ResourceOptions] = None,
                                             db_instance_id: Optional[str] = None,
                                             modify_privilege_sets: Optional[Sequence[PostgresqlAccountPrivilegesOperationModifyPrivilegeSetArgs]] = None,
                                             user_name: Optional[str] = None,
                                             postgresql_account_privileges_operation_id: Optional[str] = None)
    func NewPostgresqlAccountPrivilegesOperation(ctx *Context, name string, args PostgresqlAccountPrivilegesOperationArgs, opts ...ResourceOption) (*PostgresqlAccountPrivilegesOperation, error)
    public PostgresqlAccountPrivilegesOperation(string name, PostgresqlAccountPrivilegesOperationArgs args, CustomResourceOptions? opts = null)
    public PostgresqlAccountPrivilegesOperation(String name, PostgresqlAccountPrivilegesOperationArgs args)
    public PostgresqlAccountPrivilegesOperation(String name, PostgresqlAccountPrivilegesOperationArgs args, CustomResourceOptions options)
    
    type: tencentcloud:PostgresqlAccountPrivilegesOperation
    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 PostgresqlAccountPrivilegesOperationArgs
    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 PostgresqlAccountPrivilegesOperationArgs
    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 PostgresqlAccountPrivilegesOperationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PostgresqlAccountPrivilegesOperationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PostgresqlAccountPrivilegesOperationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    PostgresqlAccountPrivilegesOperation 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 PostgresqlAccountPrivilegesOperation resource accepts the following input properties:

    DbInstanceId string
    Instance ID in the format of postgres-4wdeb0zv.
    ModifyPrivilegeSets List<PostgresqlAccountPrivilegesOperationModifyPrivilegeSet>
    Privileges to modify. Batch modification supported, up to 50 entries at a time.
    UserName string
    Instance username.
    PostgresqlAccountPrivilegesOperationId string
    DbInstanceId string
    Instance ID in the format of postgres-4wdeb0zv.
    ModifyPrivilegeSets []PostgresqlAccountPrivilegesOperationModifyPrivilegeSetArgs
    Privileges to modify. Batch modification supported, up to 50 entries at a time.
    UserName string
    Instance username.
    PostgresqlAccountPrivilegesOperationId string
    dbInstanceId String
    Instance ID in the format of postgres-4wdeb0zv.
    modifyPrivilegeSets List<PostgresqlAccountPrivilegesOperationModifyPrivilegeSet>
    Privileges to modify. Batch modification supported, up to 50 entries at a time.
    userName String
    Instance username.
    postgresqlAccountPrivilegesOperationId String
    dbInstanceId string
    Instance ID in the format of postgres-4wdeb0zv.
    modifyPrivilegeSets PostgresqlAccountPrivilegesOperationModifyPrivilegeSet[]
    Privileges to modify. Batch modification supported, up to 50 entries at a time.
    userName string
    Instance username.
    postgresqlAccountPrivilegesOperationId string
    db_instance_id str
    Instance ID in the format of postgres-4wdeb0zv.
    modify_privilege_sets Sequence[PostgresqlAccountPrivilegesOperationModifyPrivilegeSetArgs]
    Privileges to modify. Batch modification supported, up to 50 entries at a time.
    user_name str
    Instance username.
    postgresql_account_privileges_operation_id str
    dbInstanceId String
    Instance ID in the format of postgres-4wdeb0zv.
    modifyPrivilegeSets List<Property Map>
    Privileges to modify. Batch modification supported, up to 50 entries at a time.
    userName String
    Instance username.
    postgresqlAccountPrivilegesOperationId String

    Outputs

    All input properties are implicitly available as output properties. Additionally, the PostgresqlAccountPrivilegesOperation 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 PostgresqlAccountPrivilegesOperation Resource

    Get an existing PostgresqlAccountPrivilegesOperation 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?: PostgresqlAccountPrivilegesOperationState, opts?: CustomResourceOptions): PostgresqlAccountPrivilegesOperation
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            db_instance_id: Optional[str] = None,
            modify_privilege_sets: Optional[Sequence[PostgresqlAccountPrivilegesOperationModifyPrivilegeSetArgs]] = None,
            postgresql_account_privileges_operation_id: Optional[str] = None,
            user_name: Optional[str] = None) -> PostgresqlAccountPrivilegesOperation
    func GetPostgresqlAccountPrivilegesOperation(ctx *Context, name string, id IDInput, state *PostgresqlAccountPrivilegesOperationState, opts ...ResourceOption) (*PostgresqlAccountPrivilegesOperation, error)
    public static PostgresqlAccountPrivilegesOperation Get(string name, Input<string> id, PostgresqlAccountPrivilegesOperationState? state, CustomResourceOptions? opts = null)
    public static PostgresqlAccountPrivilegesOperation get(String name, Output<String> id, PostgresqlAccountPrivilegesOperationState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:PostgresqlAccountPrivilegesOperation    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:
    DbInstanceId string
    Instance ID in the format of postgres-4wdeb0zv.
    ModifyPrivilegeSets List<PostgresqlAccountPrivilegesOperationModifyPrivilegeSet>
    Privileges to modify. Batch modification supported, up to 50 entries at a time.
    PostgresqlAccountPrivilegesOperationId string
    UserName string
    Instance username.
    DbInstanceId string
    Instance ID in the format of postgres-4wdeb0zv.
    ModifyPrivilegeSets []PostgresqlAccountPrivilegesOperationModifyPrivilegeSetArgs
    Privileges to modify. Batch modification supported, up to 50 entries at a time.
    PostgresqlAccountPrivilegesOperationId string
    UserName string
    Instance username.
    dbInstanceId String
    Instance ID in the format of postgres-4wdeb0zv.
    modifyPrivilegeSets List<PostgresqlAccountPrivilegesOperationModifyPrivilegeSet>
    Privileges to modify. Batch modification supported, up to 50 entries at a time.
    postgresqlAccountPrivilegesOperationId String
    userName String
    Instance username.
    dbInstanceId string
    Instance ID in the format of postgres-4wdeb0zv.
    modifyPrivilegeSets PostgresqlAccountPrivilegesOperationModifyPrivilegeSet[]
    Privileges to modify. Batch modification supported, up to 50 entries at a time.
    postgresqlAccountPrivilegesOperationId string
    userName string
    Instance username.
    db_instance_id str
    Instance ID in the format of postgres-4wdeb0zv.
    modify_privilege_sets Sequence[PostgresqlAccountPrivilegesOperationModifyPrivilegeSetArgs]
    Privileges to modify. Batch modification supported, up to 50 entries at a time.
    postgresql_account_privileges_operation_id str
    user_name str
    Instance username.
    dbInstanceId String
    Instance ID in the format of postgres-4wdeb0zv.
    modifyPrivilegeSets List<Property Map>
    Privileges to modify. Batch modification supported, up to 50 entries at a time.
    postgresqlAccountPrivilegesOperationId String
    userName String
    Instance username.

    Supporting Types

    PostgresqlAccountPrivilegesOperationModifyPrivilegeSet, PostgresqlAccountPrivilegesOperationModifyPrivilegeSetArgs

    DatabasePrivilege PostgresqlAccountPrivilegesOperationModifyPrivilegeSetDatabasePrivilege
    Database objects and the user permissions on these objects. Note: This field may return null, indicating that no valid value can be obtained.
    IsCascade bool
    Required only when ModifyType is revokeObject. When the parameter is true, revoking permissions will cascade. The default value is false.
    ModifyType string
    Supported modification method: grantObject, revokeObject, alterRole. grantObject represents granting permissions on object, revokeObject represents revoking permissions on object, and alterRole represents modifying the account type.
    DatabasePrivilege PostgresqlAccountPrivilegesOperationModifyPrivilegeSetDatabasePrivilege
    Database objects and the user permissions on these objects. Note: This field may return null, indicating that no valid value can be obtained.
    IsCascade bool
    Required only when ModifyType is revokeObject. When the parameter is true, revoking permissions will cascade. The default value is false.
    ModifyType string
    Supported modification method: grantObject, revokeObject, alterRole. grantObject represents granting permissions on object, revokeObject represents revoking permissions on object, and alterRole represents modifying the account type.
    databasePrivilege PostgresqlAccountPrivilegesOperationModifyPrivilegeSetDatabasePrivilege
    Database objects and the user permissions on these objects. Note: This field may return null, indicating that no valid value can be obtained.
    isCascade Boolean
    Required only when ModifyType is revokeObject. When the parameter is true, revoking permissions will cascade. The default value is false.
    modifyType String
    Supported modification method: grantObject, revokeObject, alterRole. grantObject represents granting permissions on object, revokeObject represents revoking permissions on object, and alterRole represents modifying the account type.
    databasePrivilege PostgresqlAccountPrivilegesOperationModifyPrivilegeSetDatabasePrivilege
    Database objects and the user permissions on these objects. Note: This field may return null, indicating that no valid value can be obtained.
    isCascade boolean
    Required only when ModifyType is revokeObject. When the parameter is true, revoking permissions will cascade. The default value is false.
    modifyType string
    Supported modification method: grantObject, revokeObject, alterRole. grantObject represents granting permissions on object, revokeObject represents revoking permissions on object, and alterRole represents modifying the account type.
    database_privilege PostgresqlAccountPrivilegesOperationModifyPrivilegeSetDatabasePrivilege
    Database objects and the user permissions on these objects. Note: This field may return null, indicating that no valid value can be obtained.
    is_cascade bool
    Required only when ModifyType is revokeObject. When the parameter is true, revoking permissions will cascade. The default value is false.
    modify_type str
    Supported modification method: grantObject, revokeObject, alterRole. grantObject represents granting permissions on object, revokeObject represents revoking permissions on object, and alterRole represents modifying the account type.
    databasePrivilege Property Map
    Database objects and the user permissions on these objects. Note: This field may return null, indicating that no valid value can be obtained.
    isCascade Boolean
    Required only when ModifyType is revokeObject. When the parameter is true, revoking permissions will cascade. The default value is false.
    modifyType String
    Supported modification method: grantObject, revokeObject, alterRole. grantObject represents granting permissions on object, revokeObject represents revoking permissions on object, and alterRole represents modifying the account type.

    PostgresqlAccountPrivilegesOperationModifyPrivilegeSetDatabasePrivilege, PostgresqlAccountPrivilegesOperationModifyPrivilegeSetDatabasePrivilegeArgs

    Object PostgresqlAccountPrivilegesOperationModifyPrivilegeSetDatabasePrivilegeObject
    Database object.If ObjectType is database, DatabaseName/SchemaName/TableName can be null.If ObjectType is schema, SchemaName/TableName can be null.If ObjectType is table, TableName can be null.If ObjectType is column, DatabaseName/SchemaName/TableName can&#39;t be null.In all other cases, DatabaseName/SchemaName/TableName can be null. Note: This field may return null, indicating that no valid value can be obtained.
    PrivilegeSets List<string>
    Privileges the specific account has on database object. Note: This field may return null, indicating that no valid value can be obtained.
    Object PostgresqlAccountPrivilegesOperationModifyPrivilegeSetDatabasePrivilegeObject
    Database object.If ObjectType is database, DatabaseName/SchemaName/TableName can be null.If ObjectType is schema, SchemaName/TableName can be null.If ObjectType is table, TableName can be null.If ObjectType is column, DatabaseName/SchemaName/TableName can&#39;t be null.In all other cases, DatabaseName/SchemaName/TableName can be null. Note: This field may return null, indicating that no valid value can be obtained.
    PrivilegeSets []string
    Privileges the specific account has on database object. Note: This field may return null, indicating that no valid value can be obtained.
    object PostgresqlAccountPrivilegesOperationModifyPrivilegeSetDatabasePrivilegeObject
    Database object.If ObjectType is database, DatabaseName/SchemaName/TableName can be null.If ObjectType is schema, SchemaName/TableName can be null.If ObjectType is table, TableName can be null.If ObjectType is column, DatabaseName/SchemaName/TableName can&#39;t be null.In all other cases, DatabaseName/SchemaName/TableName can be null. Note: This field may return null, indicating that no valid value can be obtained.
    privilegeSets List<String>
    Privileges the specific account has on database object. Note: This field may return null, indicating that no valid value can be obtained.
    object PostgresqlAccountPrivilegesOperationModifyPrivilegeSetDatabasePrivilegeObject
    Database object.If ObjectType is database, DatabaseName/SchemaName/TableName can be null.If ObjectType is schema, SchemaName/TableName can be null.If ObjectType is table, TableName can be null.If ObjectType is column, DatabaseName/SchemaName/TableName can&#39;t be null.In all other cases, DatabaseName/SchemaName/TableName can be null. Note: This field may return null, indicating that no valid value can be obtained.
    privilegeSets string[]
    Privileges the specific account has on database object. Note: This field may return null, indicating that no valid value can be obtained.
    object PostgresqlAccountPrivilegesOperationModifyPrivilegeSetDatabasePrivilegeObject
    Database object.If ObjectType is database, DatabaseName/SchemaName/TableName can be null.If ObjectType is schema, SchemaName/TableName can be null.If ObjectType is table, TableName can be null.If ObjectType is column, DatabaseName/SchemaName/TableName can&#39;t be null.In all other cases, DatabaseName/SchemaName/TableName can be null. Note: This field may return null, indicating that no valid value can be obtained.
    privilege_sets Sequence[str]
    Privileges the specific account has on database object. Note: This field may return null, indicating that no valid value can be obtained.
    object Property Map
    Database object.If ObjectType is database, DatabaseName/SchemaName/TableName can be null.If ObjectType is schema, SchemaName/TableName can be null.If ObjectType is table, TableName can be null.If ObjectType is column, DatabaseName/SchemaName/TableName can&#39;t be null.In all other cases, DatabaseName/SchemaName/TableName can be null. Note: This field may return null, indicating that no valid value can be obtained.
    privilegeSets List<String>
    Privileges the specific account has on database object. Note: This field may return null, indicating that no valid value can be obtained.

    PostgresqlAccountPrivilegesOperationModifyPrivilegeSetDatabasePrivilegeObject, PostgresqlAccountPrivilegesOperationModifyPrivilegeSetDatabasePrivilegeObjectArgs

    ObjectName string
    Database object Name. Note: This field may return null, indicating that no valid value can be obtained.
    ObjectType string
    Supported database object types: account, database, schema, sequence, procedure, type, function, table, view, matview, column. Note: This field may return null, indicating that no valid value can be obtained.
    DatabaseName string
    Database name to which the database object belongs. This parameter is mandatory when ObjectType is not database. Note: This field may return null, indicating that no valid value can be obtained.
    SchemaName string
    Schema name to which the database object belongs. This parameter is mandatory when ObjectType is not database or schema. Note: This field may return null, indicating that no valid value can be obtained.
    TableName string
    Table name to which the database object belongs. This parameter is mandatory when ObjectType is column. Note: This field may return null, indicating that no valid value can be obtained.
    ObjectName string
    Database object Name. Note: This field may return null, indicating that no valid value can be obtained.
    ObjectType string
    Supported database object types: account, database, schema, sequence, procedure, type, function, table, view, matview, column. Note: This field may return null, indicating that no valid value can be obtained.
    DatabaseName string
    Database name to which the database object belongs. This parameter is mandatory when ObjectType is not database. Note: This field may return null, indicating that no valid value can be obtained.
    SchemaName string
    Schema name to which the database object belongs. This parameter is mandatory when ObjectType is not database or schema. Note: This field may return null, indicating that no valid value can be obtained.
    TableName string
    Table name to which the database object belongs. This parameter is mandatory when ObjectType is column. Note: This field may return null, indicating that no valid value can be obtained.
    objectName String
    Database object Name. Note: This field may return null, indicating that no valid value can be obtained.
    objectType String
    Supported database object types: account, database, schema, sequence, procedure, type, function, table, view, matview, column. Note: This field may return null, indicating that no valid value can be obtained.
    databaseName String
    Database name to which the database object belongs. This parameter is mandatory when ObjectType is not database. Note: This field may return null, indicating that no valid value can be obtained.
    schemaName String
    Schema name to which the database object belongs. This parameter is mandatory when ObjectType is not database or schema. Note: This field may return null, indicating that no valid value can be obtained.
    tableName String
    Table name to which the database object belongs. This parameter is mandatory when ObjectType is column. Note: This field may return null, indicating that no valid value can be obtained.
    objectName string
    Database object Name. Note: This field may return null, indicating that no valid value can be obtained.
    objectType string
    Supported database object types: account, database, schema, sequence, procedure, type, function, table, view, matview, column. Note: This field may return null, indicating that no valid value can be obtained.
    databaseName string
    Database name to which the database object belongs. This parameter is mandatory when ObjectType is not database. Note: This field may return null, indicating that no valid value can be obtained.
    schemaName string
    Schema name to which the database object belongs. This parameter is mandatory when ObjectType is not database or schema. Note: This field may return null, indicating that no valid value can be obtained.
    tableName string
    Table name to which the database object belongs. This parameter is mandatory when ObjectType is column. Note: This field may return null, indicating that no valid value can be obtained.
    object_name str
    Database object Name. Note: This field may return null, indicating that no valid value can be obtained.
    object_type str
    Supported database object types: account, database, schema, sequence, procedure, type, function, table, view, matview, column. Note: This field may return null, indicating that no valid value can be obtained.
    database_name str
    Database name to which the database object belongs. This parameter is mandatory when ObjectType is not database. Note: This field may return null, indicating that no valid value can be obtained.
    schema_name str
    Schema name to which the database object belongs. This parameter is mandatory when ObjectType is not database or schema. Note: This field may return null, indicating that no valid value can be obtained.
    table_name str
    Table name to which the database object belongs. This parameter is mandatory when ObjectType is column. Note: This field may return null, indicating that no valid value can be obtained.
    objectName String
    Database object Name. Note: This field may return null, indicating that no valid value can be obtained.
    objectType String
    Supported database object types: account, database, schema, sequence, procedure, type, function, table, view, matview, column. Note: This field may return null, indicating that no valid value can be obtained.
    databaseName String
    Database name to which the database object belongs. This parameter is mandatory when ObjectType is not database. Note: This field may return null, indicating that no valid value can be obtained.
    schemaName String
    Schema name to which the database object belongs. This parameter is mandatory when ObjectType is not database or schema. Note: This field may return null, indicating that no valid value can be obtained.
    tableName String
    Table name to which the database object belongs. This parameter is mandatory when ObjectType is column. Note: This field may return null, indicating that no valid value can be obtained.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    Viewing docs for tencentcloud 1.82.91
    published on Friday, May 1, 2026 by tencentcloudstack
      Try Pulumi Cloud free. Your team will thank you.