1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. PostgresqlParameterTemplateConfig
Viewing docs for tencentcloud 1.82.79
published on Friday, Mar 27, 2026 by tencentcloudstack
tencentcloud logo
Viewing docs for tencentcloud 1.82.79
published on Friday, Mar 27, 2026 by tencentcloudstack

    Provides a resource to create a PostgreSQL parameter template config

    NOTE: The tencentcloud.PostgresqlParameterTemplateConfig and tencentcloud.PostgresqlParameterTemplate resources are mutually exclusive: if one is used to configure a parameter template, the other cannot be used simultaneously.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.PostgresqlParameterTemplate("example", {
        templateName: "tf-example",
        dbMajorVersion: "18",
        dbEngine: "postgresql",
        templateDescription: "remark.",
    });
    const examplePostgresqlParameterTemplateConfig = new tencentcloud.PostgresqlParameterTemplateConfig("example", {
        templateId: example.postgresqlParameterTemplateId,
        modifyParamEntrySets: [
            {
                name: "min_parallel_index_scan_size",
                expectedValue: "64",
            },
            {
                name: "enable_async_append",
                expectedValue: "on",
            },
            {
                name: "enable_group_by_reordering",
                expectedValue: "on",
            },
        ],
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.PostgresqlParameterTemplate("example",
        template_name="tf-example",
        db_major_version="18",
        db_engine="postgresql",
        template_description="remark.")
    example_postgresql_parameter_template_config = tencentcloud.PostgresqlParameterTemplateConfig("example",
        template_id=example.postgresql_parameter_template_id,
        modify_param_entry_sets=[
            {
                "name": "min_parallel_index_scan_size",
                "expected_value": "64",
            },
            {
                "name": "enable_async_append",
                "expected_value": "on",
            },
            {
                "name": "enable_group_by_reordering",
                "expected_value": "on",
            },
        ])
    
    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 {
    		example, err := tencentcloud.NewPostgresqlParameterTemplate(ctx, "example", &tencentcloud.PostgresqlParameterTemplateArgs{
    			TemplateName:        pulumi.String("tf-example"),
    			DbMajorVersion:      pulumi.String("18"),
    			DbEngine:            pulumi.String("postgresql"),
    			TemplateDescription: pulumi.String("remark."),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = tencentcloud.NewPostgresqlParameterTemplateConfig(ctx, "example", &tencentcloud.PostgresqlParameterTemplateConfigArgs{
    			TemplateId: example.PostgresqlParameterTemplateId,
    			ModifyParamEntrySets: tencentcloud.PostgresqlParameterTemplateConfigModifyParamEntrySetArray{
    				&tencentcloud.PostgresqlParameterTemplateConfigModifyParamEntrySetArgs{
    					Name:          pulumi.String("min_parallel_index_scan_size"),
    					ExpectedValue: pulumi.String("64"),
    				},
    				&tencentcloud.PostgresqlParameterTemplateConfigModifyParamEntrySetArgs{
    					Name:          pulumi.String("enable_async_append"),
    					ExpectedValue: pulumi.String("on"),
    				},
    				&tencentcloud.PostgresqlParameterTemplateConfigModifyParamEntrySetArgs{
    					Name:          pulumi.String("enable_group_by_reordering"),
    					ExpectedValue: pulumi.String("on"),
    				},
    			},
    		})
    		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 example = new Tencentcloud.PostgresqlParameterTemplate("example", new()
        {
            TemplateName = "tf-example",
            DbMajorVersion = "18",
            DbEngine = "postgresql",
            TemplateDescription = "remark.",
        });
    
        var examplePostgresqlParameterTemplateConfig = new Tencentcloud.PostgresqlParameterTemplateConfig("example", new()
        {
            TemplateId = example.PostgresqlParameterTemplateId,
            ModifyParamEntrySets = new[]
            {
                new Tencentcloud.Inputs.PostgresqlParameterTemplateConfigModifyParamEntrySetArgs
                {
                    Name = "min_parallel_index_scan_size",
                    ExpectedValue = "64",
                },
                new Tencentcloud.Inputs.PostgresqlParameterTemplateConfigModifyParamEntrySetArgs
                {
                    Name = "enable_async_append",
                    ExpectedValue = "on",
                },
                new Tencentcloud.Inputs.PostgresqlParameterTemplateConfigModifyParamEntrySetArgs
                {
                    Name = "enable_group_by_reordering",
                    ExpectedValue = "on",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.PostgresqlParameterTemplate;
    import com.pulumi.tencentcloud.PostgresqlParameterTemplateArgs;
    import com.pulumi.tencentcloud.PostgresqlParameterTemplateConfig;
    import com.pulumi.tencentcloud.PostgresqlParameterTemplateConfigArgs;
    import com.pulumi.tencentcloud.inputs.PostgresqlParameterTemplateConfigModifyParamEntrySetArgs;
    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 example = new PostgresqlParameterTemplate("example", PostgresqlParameterTemplateArgs.builder()
                .templateName("tf-example")
                .dbMajorVersion("18")
                .dbEngine("postgresql")
                .templateDescription("remark.")
                .build());
    
            var examplePostgresqlParameterTemplateConfig = new PostgresqlParameterTemplateConfig("examplePostgresqlParameterTemplateConfig", PostgresqlParameterTemplateConfigArgs.builder()
                .templateId(example.postgresqlParameterTemplateId())
                .modifyParamEntrySets(            
                    PostgresqlParameterTemplateConfigModifyParamEntrySetArgs.builder()
                        .name("min_parallel_index_scan_size")
                        .expectedValue("64")
                        .build(),
                    PostgresqlParameterTemplateConfigModifyParamEntrySetArgs.builder()
                        .name("enable_async_append")
                        .expectedValue("on")
                        .build(),
                    PostgresqlParameterTemplateConfigModifyParamEntrySetArgs.builder()
                        .name("enable_group_by_reordering")
                        .expectedValue("on")
                        .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:PostgresqlParameterTemplate
        properties:
          templateName: tf-example
          dbMajorVersion: '18'
          dbEngine: postgresql
          templateDescription: remark.
      examplePostgresqlParameterTemplateConfig:
        type: tencentcloud:PostgresqlParameterTemplateConfig
        name: example
        properties:
          templateId: ${example.postgresqlParameterTemplateId}
          modifyParamEntrySets:
            - name: min_parallel_index_scan_size
              expectedValue: '64'
            - name: enable_async_append
              expectedValue: on
            - name: enable_group_by_reordering
              expectedValue: on
    

    Create PostgresqlParameterTemplateConfig Resource

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

    Constructor syntax

    new PostgresqlParameterTemplateConfig(name: string, args: PostgresqlParameterTemplateConfigArgs, opts?: CustomResourceOptions);
    @overload
    def PostgresqlParameterTemplateConfig(resource_name: str,
                                          args: PostgresqlParameterTemplateConfigArgs,
                                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def PostgresqlParameterTemplateConfig(resource_name: str,
                                          opts: Optional[ResourceOptions] = None,
                                          template_id: Optional[str] = None,
                                          modify_param_entry_sets: Optional[Sequence[PostgresqlParameterTemplateConfigModifyParamEntrySetArgs]] = None,
                                          postgresql_parameter_template_config_id: Optional[str] = None)
    func NewPostgresqlParameterTemplateConfig(ctx *Context, name string, args PostgresqlParameterTemplateConfigArgs, opts ...ResourceOption) (*PostgresqlParameterTemplateConfig, error)
    public PostgresqlParameterTemplateConfig(string name, PostgresqlParameterTemplateConfigArgs args, CustomResourceOptions? opts = null)
    public PostgresqlParameterTemplateConfig(String name, PostgresqlParameterTemplateConfigArgs args)
    public PostgresqlParameterTemplateConfig(String name, PostgresqlParameterTemplateConfigArgs args, CustomResourceOptions options)
    
    type: tencentcloud:PostgresqlParameterTemplateConfig
    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 PostgresqlParameterTemplateConfigArgs
    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 PostgresqlParameterTemplateConfigArgs
    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 PostgresqlParameterTemplateConfigArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PostgresqlParameterTemplateConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PostgresqlParameterTemplateConfigArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    TemplateId string
    Specifies the parameter template ID, which uniquely identifies the parameter template and cannot be modified. it can be obtained through the api DescribeParameterTemplates.
    ModifyParamEntrySets List<PostgresqlParameterTemplateConfigModifyParamEntrySet>
    The set of parameters to be modified or added.
    PostgresqlParameterTemplateConfigId string
    ID of the resource.
    TemplateId string
    Specifies the parameter template ID, which uniquely identifies the parameter template and cannot be modified. it can be obtained through the api DescribeParameterTemplates.
    ModifyParamEntrySets []PostgresqlParameterTemplateConfigModifyParamEntrySetArgs
    The set of parameters to be modified or added.
    PostgresqlParameterTemplateConfigId string
    ID of the resource.
    templateId String
    Specifies the parameter template ID, which uniquely identifies the parameter template and cannot be modified. it can be obtained through the api DescribeParameterTemplates.
    modifyParamEntrySets List<PostgresqlParameterTemplateConfigModifyParamEntrySet>
    The set of parameters to be modified or added.
    postgresqlParameterTemplateConfigId String
    ID of the resource.
    templateId string
    Specifies the parameter template ID, which uniquely identifies the parameter template and cannot be modified. it can be obtained through the api DescribeParameterTemplates.
    modifyParamEntrySets PostgresqlParameterTemplateConfigModifyParamEntrySet[]
    The set of parameters to be modified or added.
    postgresqlParameterTemplateConfigId string
    ID of the resource.
    template_id str
    Specifies the parameter template ID, which uniquely identifies the parameter template and cannot be modified. it can be obtained through the api DescribeParameterTemplates.
    modify_param_entry_sets Sequence[PostgresqlParameterTemplateConfigModifyParamEntrySetArgs]
    The set of parameters to be modified or added.
    postgresql_parameter_template_config_id str
    ID of the resource.
    templateId String
    Specifies the parameter template ID, which uniquely identifies the parameter template and cannot be modified. it can be obtained through the api DescribeParameterTemplates.
    modifyParamEntrySets List<Property Map>
    The set of parameters to be modified or added.
    postgresqlParameterTemplateConfigId String
    ID of the resource.

    Outputs

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

    Get an existing PostgresqlParameterTemplateConfig 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?: PostgresqlParameterTemplateConfigState, opts?: CustomResourceOptions): PostgresqlParameterTemplateConfig
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            modify_param_entry_sets: Optional[Sequence[PostgresqlParameterTemplateConfigModifyParamEntrySetArgs]] = None,
            postgresql_parameter_template_config_id: Optional[str] = None,
            template_id: Optional[str] = None) -> PostgresqlParameterTemplateConfig
    func GetPostgresqlParameterTemplateConfig(ctx *Context, name string, id IDInput, state *PostgresqlParameterTemplateConfigState, opts ...ResourceOption) (*PostgresqlParameterTemplateConfig, error)
    public static PostgresqlParameterTemplateConfig Get(string name, Input<string> id, PostgresqlParameterTemplateConfigState? state, CustomResourceOptions? opts = null)
    public static PostgresqlParameterTemplateConfig get(String name, Output<String> id, PostgresqlParameterTemplateConfigState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:PostgresqlParameterTemplateConfig    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:
    ModifyParamEntrySets List<PostgresqlParameterTemplateConfigModifyParamEntrySet>
    The set of parameters to be modified or added.
    PostgresqlParameterTemplateConfigId string
    ID of the resource.
    TemplateId string
    Specifies the parameter template ID, which uniquely identifies the parameter template and cannot be modified. it can be obtained through the api DescribeParameterTemplates.
    ModifyParamEntrySets []PostgresqlParameterTemplateConfigModifyParamEntrySetArgs
    The set of parameters to be modified or added.
    PostgresqlParameterTemplateConfigId string
    ID of the resource.
    TemplateId string
    Specifies the parameter template ID, which uniquely identifies the parameter template and cannot be modified. it can be obtained through the api DescribeParameterTemplates.
    modifyParamEntrySets List<PostgresqlParameterTemplateConfigModifyParamEntrySet>
    The set of parameters to be modified or added.
    postgresqlParameterTemplateConfigId String
    ID of the resource.
    templateId String
    Specifies the parameter template ID, which uniquely identifies the parameter template and cannot be modified. it can be obtained through the api DescribeParameterTemplates.
    modifyParamEntrySets PostgresqlParameterTemplateConfigModifyParamEntrySet[]
    The set of parameters to be modified or added.
    postgresqlParameterTemplateConfigId string
    ID of the resource.
    templateId string
    Specifies the parameter template ID, which uniquely identifies the parameter template and cannot be modified. it can be obtained through the api DescribeParameterTemplates.
    modify_param_entry_sets Sequence[PostgresqlParameterTemplateConfigModifyParamEntrySetArgs]
    The set of parameters to be modified or added.
    postgresql_parameter_template_config_id str
    ID of the resource.
    template_id str
    Specifies the parameter template ID, which uniquely identifies the parameter template and cannot be modified. it can be obtained through the api DescribeParameterTemplates.
    modifyParamEntrySets List<Property Map>
    The set of parameters to be modified or added.
    postgresqlParameterTemplateConfigId String
    ID of the resource.
    templateId String
    Specifies the parameter template ID, which uniquely identifies the parameter template and cannot be modified. it can be obtained through the api DescribeParameterTemplates.

    Supporting Types

    PostgresqlParameterTemplateConfigModifyParamEntrySet, PostgresqlParameterTemplateConfigModifyParamEntrySetArgs

    ExpectedValue string
    The new value to which the parameter will be modified. When this parameter is used as an input parameter, its value must be a string, such as 0.1 (decimal), 1000 (integer), and replica (enum).
    Name string
    Parameter name.
    ExpectedValue string
    The new value to which the parameter will be modified. When this parameter is used as an input parameter, its value must be a string, such as 0.1 (decimal), 1000 (integer), and replica (enum).
    Name string
    Parameter name.
    expectedValue String
    The new value to which the parameter will be modified. When this parameter is used as an input parameter, its value must be a string, such as 0.1 (decimal), 1000 (integer), and replica (enum).
    name String
    Parameter name.
    expectedValue string
    The new value to which the parameter will be modified. When this parameter is used as an input parameter, its value must be a string, such as 0.1 (decimal), 1000 (integer), and replica (enum).
    name string
    Parameter name.
    expected_value str
    The new value to which the parameter will be modified. When this parameter is used as an input parameter, its value must be a string, such as 0.1 (decimal), 1000 (integer), and replica (enum).
    name str
    Parameter name.
    expectedValue String
    The new value to which the parameter will be modified. When this parameter is used as an input parameter, its value must be a string, such as 0.1 (decimal), 1000 (integer), and replica (enum).
    name String
    Parameter name.

    Import

    PostgreSQL parameter template config can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/postgresqlParameterTemplateConfig:PostgresqlParameterTemplateConfig example 0c595485-c1b8-518b-bd87-dfe44a530fa5
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

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