tencentcloud_postgresql_readonly_instance_v2Nivis Nix constructor for the tencentcloud_postgresql_readonly_instance_v2 resource (provider tencentcloud). This reference is derived from the provider binary's own schema via nivis gen — it always matches the real provider.
Constructor
{
name,
master_db_instance_id,
spec_code,
storage,
zone,
auto_renew_flag ? null,
auto_voucher ? null,
dedicated_cluster_id ? null,
deletion_protection ? null,
id ? null,
instance_charge_type ? null,
cfg_name ? null,
need_support_ipv6 ? null,
period ? null,
project_id ? null,
read_only_group_id ? null,
security_group_ids ? null,
subnet_id ? null,
tags ? null,
voucher_ids ? null,
vpc_id ? null,
timeouts ? null,
overrides ? {}
}Required arguments
master_db_instance_idspec_codestoragezone
Optional arguments
auto_renew_flag(defaults tonull)auto_voucher(defaults tonull)dedicated_cluster_id(defaults tonull)deletion_protection(defaults tonull)id(defaults tonull)instance_charge_type(defaults tonull)cfg_name(defaults tonull)need_support_ipv6(defaults tonull)period(defaults tonull)project_id(defaults tonull)read_only_group_id(defaults tonull)security_group_ids(defaults tonull)subnet_id(defaults tonull)tags(defaults tonull)voucher_ids(defaults tonull)vpc_id(defaults tonull)timeouts(defaults tonull)
Computed outputs
Read these from the resource's refAttr:
cpudb_instance_idmemory
Example
tencentcloud_postgresql_readonly_instance_v2 {
name = "postgresql_readonly_instance_v2";
master_db_instance_id = …; # required
spec_code = …; # required
storage = …; # required
zone = …; # required
}The reference for every provider is generated from the provider's own schema, not copied from its documentation.