published on Friday, May 1, 2026 by tencentcloudstack
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:
- Db
Instance stringId - Instance ID in the format of postgres-4wdeb0zv.
- Modify
Privilege List<PostgresqlSets Account Privileges Operation Modify Privilege Set> - Privileges to modify. Batch modification supported, up to 50 entries at a time.
- User
Name string - Instance username.
- Postgresql
Account stringPrivileges Operation Id
- Db
Instance stringId - Instance ID in the format of postgres-4wdeb0zv.
- Modify
Privilege []PostgresqlSets Account Privileges Operation Modify Privilege Set Args - Privileges to modify. Batch modification supported, up to 50 entries at a time.
- User
Name string - Instance username.
- Postgresql
Account stringPrivileges Operation Id
- db
Instance StringId - Instance ID in the format of postgres-4wdeb0zv.
- modify
Privilege List<PostgresqlSets Account Privileges Operation Modify Privilege Set> - Privileges to modify. Batch modification supported, up to 50 entries at a time.
- user
Name String - Instance username.
- postgresql
Account StringPrivileges Operation Id
- db
Instance stringId - Instance ID in the format of postgres-4wdeb0zv.
- modify
Privilege PostgresqlSets Account Privileges Operation Modify Privilege Set[] - Privileges to modify. Batch modification supported, up to 50 entries at a time.
- user
Name string - Instance username.
- postgresql
Account stringPrivileges Operation Id
- db_
instance_ strid - Instance ID in the format of postgres-4wdeb0zv.
- modify_
privilege_ Sequence[Postgresqlsets Account Privileges Operation Modify Privilege Set Args] - Privileges to modify. Batch modification supported, up to 50 entries at a time.
- user_
name str - Instance username.
- postgresql_
account_ strprivileges_ operation_ id
- db
Instance StringId - Instance ID in the format of postgres-4wdeb0zv.
- modify
Privilege List<Property Map>Sets - Privileges to modify. Batch modification supported, up to 50 entries at a time.
- user
Name String - Instance username.
- postgresql
Account StringPrivileges Operation Id
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) -> PostgresqlAccountPrivilegesOperationfunc 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.
- Db
Instance stringId - Instance ID in the format of postgres-4wdeb0zv.
- Modify
Privilege List<PostgresqlSets Account Privileges Operation Modify Privilege Set> - Privileges to modify. Batch modification supported, up to 50 entries at a time.
- Postgresql
Account stringPrivileges Operation Id - User
Name string - Instance username.
- Db
Instance stringId - Instance ID in the format of postgres-4wdeb0zv.
- Modify
Privilege []PostgresqlSets Account Privileges Operation Modify Privilege Set Args - Privileges to modify. Batch modification supported, up to 50 entries at a time.
- Postgresql
Account stringPrivileges Operation Id - User
Name string - Instance username.
- db
Instance StringId - Instance ID in the format of postgres-4wdeb0zv.
- modify
Privilege List<PostgresqlSets Account Privileges Operation Modify Privilege Set> - Privileges to modify. Batch modification supported, up to 50 entries at a time.
- postgresql
Account StringPrivileges Operation Id - user
Name String - Instance username.
- db
Instance stringId - Instance ID in the format of postgres-4wdeb0zv.
- modify
Privilege PostgresqlSets Account Privileges Operation Modify Privilege Set[] - Privileges to modify. Batch modification supported, up to 50 entries at a time.
- postgresql
Account stringPrivileges Operation Id - user
Name string - Instance username.
- db_
instance_ strid - Instance ID in the format of postgres-4wdeb0zv.
- modify_
privilege_ Sequence[Postgresqlsets Account Privileges Operation Modify Privilege Set Args] - Privileges to modify. Batch modification supported, up to 50 entries at a time.
- postgresql_
account_ strprivileges_ operation_ id - user_
name str - Instance username.
- db
Instance StringId - Instance ID in the format of postgres-4wdeb0zv.
- modify
Privilege List<Property Map>Sets - Privileges to modify. Batch modification supported, up to 50 entries at a time.
- postgresql
Account StringPrivileges Operation Id - user
Name String - Instance username.
Supporting Types
PostgresqlAccountPrivilegesOperationModifyPrivilegeSet, PostgresqlAccountPrivilegesOperationModifyPrivilegeSetArgs
- Database
Privilege PostgresqlAccount Privileges Operation Modify Privilege Set Database Privilege - 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 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 PostgresqlAccount Privileges Operation Modify Privilege Set Database Privilege - 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 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 PostgresqlAccount Privileges Operation Modify Privilege Set Database Privilege - 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 Boolean - Required only when ModifyType is revokeObject. When the parameter is true, revoking permissions will cascade. The default value is false.
- modify
Type 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 PostgresqlAccount Privileges Operation Modify Privilege Set Database Privilege - 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 boolean - Required only when ModifyType is revokeObject. When the parameter is true, revoking permissions will cascade. The default value is false.
- modify
Type 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 PostgresqlAccount Privileges Operation Modify Privilege Set Database Privilege - 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.
- database
Privilege 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.
- is
Cascade Boolean - Required only when ModifyType is revokeObject. When the parameter is true, revoking permissions will cascade. The default value is false.
- modify
Type 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
Postgresql
Account Privileges Operation Modify Privilege Set Database Privilege Object - 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'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 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
Postgresql
Account Privileges Operation Modify Privilege Set Database Privilege Object - 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'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 []string - Privileges the specific account has on database object. Note: This field may return null, indicating that no valid value can be obtained.
- object
Postgresql
Account Privileges Operation Modify Privilege Set Database Privilege Object - 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'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 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
Postgresql
Account Privileges Operation Modify Privilege Set Database Privilege Object - 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'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 string[] - Privileges the specific account has on database object. Note: This field may return null, indicating that no valid value can be obtained.
- object
Postgresql
Account Privileges Operation Modify Privilege Set Database Privilege Object - 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'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'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 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
- Object
Name string - Database object Name. Note: This field may return null, indicating that no valid value can be obtained.
- Object
Type 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.
- Database
Name 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.
- Schema
Name 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.
- Table
Name 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 string - Database object Name. Note: This field may return null, indicating that no valid value can be obtained.
- Object
Type 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.
- Database
Name 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.
- Schema
Name 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.
- Table
Name 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 String - Database object Name. Note: This field may return null, indicating that no valid value can be obtained.
- object
Type 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.
- database
Name 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.
- schema
Name 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.
- table
Name 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 string - Database object Name. Note: This field may return null, indicating that no valid value can be obtained.
- object
Type 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.
- database
Name 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.
- schema
Name 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.
- table
Name 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.
- object
Name String - Database object Name. Note: This field may return null, indicating that no valid value can be obtained.
- object
Type 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.
- database
Name 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.
- schema
Name 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.
- table
Name 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
tencentcloudTerraform Provider.
published on Friday, May 1, 2026 by tencentcloudstack
