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",
});
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")
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
})
}
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",
});
});
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());
}
}
resources:
modifyAccountRemarkOperation:
type: tencentcloud:PostgresqlModifyAccountRemarkOperation
properties:
dbInstanceId: ${local.pgsql_id}
userName: root
remark: hello_world
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 string
- The unique name of the resource.
- args PostgresqlModifyAccountRemarkOperationArgs
- 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 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 string
- The unique name of the resource.
- args PostgresqlModifyAccountRemarkOperationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PostgresqlModifyAccountRemarkOperationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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:
- Db
Instance stringId - Instance ID in the format of postgres-4wdeb0zv.
- Remark string
- New remarks corresponding to user
UserName
. - User
Name string - Instance username.
- Postgresql
Modify stringAccount Remark Operation Id - ID of the resource.
- Db
Instance stringId - Instance ID in the format of postgres-4wdeb0zv.
- Remark string
- New remarks corresponding to user
UserName
. - User
Name string - Instance username.
- Postgresql
Modify stringAccount Remark Operation Id - ID of the resource.
- db
Instance StringId - Instance ID in the format of postgres-4wdeb0zv.
- remark String
- New remarks corresponding to user
UserName
. - user
Name String - Instance username.
- postgresql
Modify StringAccount Remark Operation Id - ID of the resource.
- db
Instance stringId - Instance ID in the format of postgres-4wdeb0zv.
- remark string
- New remarks corresponding to user
UserName
. - user
Name string - Instance username.
- postgresql
Modify stringAccount Remark Operation Id - ID of the resource.
- db_
instance_ strid - Instance ID in the format of postgres-4wdeb0zv.
- remark str
- New remarks corresponding to user
UserName
. - user_
name str - Instance username.
- postgresql_
modify_ straccount_ remark_ operation_ id - ID of the resource.
- db
Instance StringId - Instance ID in the format of postgres-4wdeb0zv.
- remark String
- New remarks corresponding to user
UserName
. - user
Name String - Instance username.
- postgresql
Modify StringAccount Remark Operation Id - 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
- 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.
- Postgresql
Modify stringAccount Remark Operation Id - ID of the resource.
- Remark string
- New remarks corresponding to user
UserName
. - User
Name string - Instance username.
- Db
Instance stringId - Instance ID in the format of postgres-4wdeb0zv.
- Postgresql
Modify stringAccount Remark Operation Id - ID of the resource.
- Remark string
- New remarks corresponding to user
UserName
. - User
Name string - Instance username.
- db
Instance StringId - Instance ID in the format of postgres-4wdeb0zv.
- postgresql
Modify StringAccount Remark Operation Id - ID of the resource.
- remark String
- New remarks corresponding to user
UserName
. - user
Name String - Instance username.
- db
Instance stringId - Instance ID in the format of postgres-4wdeb0zv.
- postgresql
Modify stringAccount Remark Operation Id - ID of the resource.
- remark string
- New remarks corresponding to user
UserName
. - user
Name string - Instance username.
- db_
instance_ strid - Instance ID in the format of postgres-4wdeb0zv.
- postgresql_
modify_ straccount_ remark_ operation_ id - ID of the resource.
- remark str
- New remarks corresponding to user
UserName
. - user_
name str - Instance username.
- db
Instance StringId - Instance ID in the format of postgres-4wdeb0zv.
- postgresql
Modify StringAccount Remark Operation Id - ID of the resource.
- remark String
- New remarks corresponding to user
UserName
. - user
Name String - Instance username.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.