1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. PostgresqlModifyAccountRemarkOperation
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack

tencentcloud.PostgresqlModifyAccountRemarkOperation

Explore with Pulumi AI

Provides a resource to create a postgresql modify_account_remark_operation

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";

const modifyAccountRemarkOperation = new tencentcloud.PostgresqlModifyAccountRemarkOperation("modifyAccountRemarkOperation", {
    dbInstanceId: local.pgsql_id,
    userName: "root",
    remark: "hello_world",
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

modify_account_remark_operation = tencentcloud.PostgresqlModifyAccountRemarkOperation("modifyAccountRemarkOperation",
    db_instance_id=local["pgsql_id"],
    user_name="root",
    remark="hello_world")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := tencentcloud.NewPostgresqlModifyAccountRemarkOperation(ctx, "modifyAccountRemarkOperation", &tencentcloud.PostgresqlModifyAccountRemarkOperationArgs{
			DbInstanceId: pulumi.Any(local.Pgsql_id),
			UserName:     pulumi.String("root"),
			Remark:       pulumi.String("hello_world"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;

return await Deployment.RunAsync(() => 
{
    var modifyAccountRemarkOperation = new Tencentcloud.PostgresqlModifyAccountRemarkOperation("modifyAccountRemarkOperation", new()
    {
        DbInstanceId = local.Pgsql_id,
        UserName = "root",
        Remark = "hello_world",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.PostgresqlModifyAccountRemarkOperation;
import com.pulumi.tencentcloud.PostgresqlModifyAccountRemarkOperationArgs;
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 modifyAccountRemarkOperation = new PostgresqlModifyAccountRemarkOperation("modifyAccountRemarkOperation", PostgresqlModifyAccountRemarkOperationArgs.builder()
            .dbInstanceId(local.pgsql_id())
            .userName("root")
            .remark("hello_world")
            .build());

    }
}
Copy
resources:
  modifyAccountRemarkOperation:
    type: tencentcloud:PostgresqlModifyAccountRemarkOperation
    properties:
      dbInstanceId: ${local.pgsql_id}
      userName: root
      remark: hello_world
Copy

Create PostgresqlModifyAccountRemarkOperation Resource

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

Constructor syntax

new PostgresqlModifyAccountRemarkOperation(name: string, args: PostgresqlModifyAccountRemarkOperationArgs, opts?: CustomResourceOptions);
@overload
def PostgresqlModifyAccountRemarkOperation(resource_name: str,
                                           args: PostgresqlModifyAccountRemarkOperationArgs,
                                           opts: Optional[ResourceOptions] = None)

@overload
def PostgresqlModifyAccountRemarkOperation(resource_name: str,
                                           opts: Optional[ResourceOptions] = None,
                                           db_instance_id: Optional[str] = None,
                                           remark: Optional[str] = None,
                                           user_name: Optional[str] = None,
                                           postgresql_modify_account_remark_operation_id: Optional[str] = None)
func NewPostgresqlModifyAccountRemarkOperation(ctx *Context, name string, args PostgresqlModifyAccountRemarkOperationArgs, opts ...ResourceOption) (*PostgresqlModifyAccountRemarkOperation, error)
public PostgresqlModifyAccountRemarkOperation(string name, PostgresqlModifyAccountRemarkOperationArgs args, CustomResourceOptions? opts = null)
public PostgresqlModifyAccountRemarkOperation(String name, PostgresqlModifyAccountRemarkOperationArgs args)
public PostgresqlModifyAccountRemarkOperation(String name, PostgresqlModifyAccountRemarkOperationArgs args, CustomResourceOptions options)
type: tencentcloud:PostgresqlModifyAccountRemarkOperation
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. PostgresqlModifyAccountRemarkOperationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. PostgresqlModifyAccountRemarkOperationArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. PostgresqlModifyAccountRemarkOperationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. PostgresqlModifyAccountRemarkOperationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. PostgresqlModifyAccountRemarkOperationArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

DbInstanceId This property is required. string
Instance ID in the format of postgres-4wdeb0zv.
Remark This property is required. string
New remarks corresponding to user UserName.
UserName This property is required. string
Instance username.
PostgresqlModifyAccountRemarkOperationId string
ID of the resource.
DbInstanceId This property is required. string
Instance ID in the format of postgres-4wdeb0zv.
Remark This property is required. string
New remarks corresponding to user UserName.
UserName This property is required. string
Instance username.
PostgresqlModifyAccountRemarkOperationId string
ID of the resource.
dbInstanceId This property is required. String
Instance ID in the format of postgres-4wdeb0zv.
remark This property is required. String
New remarks corresponding to user UserName.
userName This property is required. String
Instance username.
postgresqlModifyAccountRemarkOperationId String
ID of the resource.
dbInstanceId This property is required. string
Instance ID in the format of postgres-4wdeb0zv.
remark This property is required. string
New remarks corresponding to user UserName.
userName This property is required. string
Instance username.
postgresqlModifyAccountRemarkOperationId string
ID of the resource.
db_instance_id This property is required. str
Instance ID in the format of postgres-4wdeb0zv.
remark This property is required. str
New remarks corresponding to user UserName.
user_name This property is required. str
Instance username.
postgresql_modify_account_remark_operation_id str
ID of the resource.
dbInstanceId This property is required. String
Instance ID in the format of postgres-4wdeb0zv.
remark This property is required. String
New remarks corresponding to user UserName.
userName This property is required. String
Instance username.
postgresqlModifyAccountRemarkOperationId String
ID of the resource.

Outputs

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

Get an existing PostgresqlModifyAccountRemarkOperation 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?: PostgresqlModifyAccountRemarkOperationState, opts?: CustomResourceOptions): PostgresqlModifyAccountRemarkOperation
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        db_instance_id: Optional[str] = None,
        postgresql_modify_account_remark_operation_id: Optional[str] = None,
        remark: Optional[str] = None,
        user_name: Optional[str] = None) -> PostgresqlModifyAccountRemarkOperation
func GetPostgresqlModifyAccountRemarkOperation(ctx *Context, name string, id IDInput, state *PostgresqlModifyAccountRemarkOperationState, opts ...ResourceOption) (*PostgresqlModifyAccountRemarkOperation, error)
public static PostgresqlModifyAccountRemarkOperation Get(string name, Input<string> id, PostgresqlModifyAccountRemarkOperationState? state, CustomResourceOptions? opts = null)
public static PostgresqlModifyAccountRemarkOperation get(String name, Output<String> id, PostgresqlModifyAccountRemarkOperationState state, CustomResourceOptions options)
resources:  _:    type: tencentcloud:PostgresqlModifyAccountRemarkOperation    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
PostgresqlModifyAccountRemarkOperationId string
ID of the resource.
Remark string
New remarks corresponding to user UserName.
UserName string
Instance username.
DbInstanceId string
Instance ID in the format of postgres-4wdeb0zv.
PostgresqlModifyAccountRemarkOperationId string
ID of the resource.
Remark string
New remarks corresponding to user UserName.
UserName string
Instance username.
dbInstanceId String
Instance ID in the format of postgres-4wdeb0zv.
postgresqlModifyAccountRemarkOperationId String
ID of the resource.
remark String
New remarks corresponding to user UserName.
userName String
Instance username.
dbInstanceId string
Instance ID in the format of postgres-4wdeb0zv.
postgresqlModifyAccountRemarkOperationId string
ID of the resource.
remark string
New remarks corresponding to user UserName.
userName string
Instance username.
db_instance_id str
Instance ID in the format of postgres-4wdeb0zv.
postgresql_modify_account_remark_operation_id str
ID of the resource.
remark str
New remarks corresponding to user UserName.
user_name str
Instance username.
dbInstanceId String
Instance ID in the format of postgres-4wdeb0zv.
postgresqlModifyAccountRemarkOperationId String
ID of the resource.
remark String
New remarks corresponding to user UserName.
userName String
Instance username.

Package Details

Repository
tencentcloud tencentcloudstack/terraform-provider-tencentcloud
License
Notes
This Pulumi package is based on the tencentcloud Terraform Provider.