tencentcloud.PostgresqlDisisolateDbInstanceOperation
Explore with Pulumi AI
Provides a resource to create a postgresql disisolate_db_instance_operation
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const disisolateDbInstanceOperation = new tencentcloud.PostgresqlDisisolateDbInstanceOperation("disisolateDbInstanceOperation", {
dbInstanceIdSets: [local.pgsql_id],
period: 1,
autoVoucher: false,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
disisolate_db_instance_operation = tencentcloud.PostgresqlDisisolateDbInstanceOperation("disisolateDbInstanceOperation",
db_instance_id_sets=[local["pgsql_id"]],
period=1,
auto_voucher=False)
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.NewPostgresqlDisisolateDbInstanceOperation(ctx, "disisolateDbInstanceOperation", &tencentcloud.PostgresqlDisisolateDbInstanceOperationArgs{
DbInstanceIdSets: pulumi.StringArray{
local.Pgsql_id,
},
Period: pulumi.Float64(1),
AutoVoucher: pulumi.Bool(false),
})
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 disisolateDbInstanceOperation = new Tencentcloud.PostgresqlDisisolateDbInstanceOperation("disisolateDbInstanceOperation", new()
{
DbInstanceIdSets = new[]
{
local.Pgsql_id,
},
Period = 1,
AutoVoucher = false,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.PostgresqlDisisolateDbInstanceOperation;
import com.pulumi.tencentcloud.PostgresqlDisisolateDbInstanceOperationArgs;
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 disisolateDbInstanceOperation = new PostgresqlDisisolateDbInstanceOperation("disisolateDbInstanceOperation", PostgresqlDisisolateDbInstanceOperationArgs.builder()
.dbInstanceIdSets(local.pgsql_id())
.period(1)
.autoVoucher(false)
.build());
}
}
resources:
disisolateDbInstanceOperation:
type: tencentcloud:PostgresqlDisisolateDbInstanceOperation
properties:
dbInstanceIdSets:
- ${local.pgsql_id}
period: 1
autoVoucher: false
Create PostgresqlDisisolateDbInstanceOperation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PostgresqlDisisolateDbInstanceOperation(name: string, args: PostgresqlDisisolateDbInstanceOperationArgs, opts?: CustomResourceOptions);
@overload
def PostgresqlDisisolateDbInstanceOperation(resource_name: str,
args: PostgresqlDisisolateDbInstanceOperationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PostgresqlDisisolateDbInstanceOperation(resource_name: str,
opts: Optional[ResourceOptions] = None,
db_instance_id_sets: Optional[Sequence[str]] = None,
auto_voucher: Optional[bool] = None,
period: Optional[float] = None,
postgresql_disisolate_db_instance_operation_id: Optional[str] = None,
voucher_ids: Optional[Sequence[str]] = None)
func NewPostgresqlDisisolateDbInstanceOperation(ctx *Context, name string, args PostgresqlDisisolateDbInstanceOperationArgs, opts ...ResourceOption) (*PostgresqlDisisolateDbInstanceOperation, error)
public PostgresqlDisisolateDbInstanceOperation(string name, PostgresqlDisisolateDbInstanceOperationArgs args, CustomResourceOptions? opts = null)
public PostgresqlDisisolateDbInstanceOperation(String name, PostgresqlDisisolateDbInstanceOperationArgs args)
public PostgresqlDisisolateDbInstanceOperation(String name, PostgresqlDisisolateDbInstanceOperationArgs args, CustomResourceOptions options)
type: tencentcloud:PostgresqlDisisolateDbInstanceOperation
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 PostgresqlDisisolateDbInstanceOperationArgs
- 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 PostgresqlDisisolateDbInstanceOperationArgs
- 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 PostgresqlDisisolateDbInstanceOperationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PostgresqlDisisolateDbInstanceOperationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PostgresqlDisisolateDbInstanceOperationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
PostgresqlDisisolateDbInstanceOperation 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 PostgresqlDisisolateDbInstanceOperation resource accepts the following input properties:
- Db
Instance List<string>Id Sets - List of resource IDs. Note that currently you cannot remove multiple instances from isolation at the same time. Only one instance ID can be passed in here.
- Auto
Voucher bool - Whether to use vouchers. Valid values:true (yes), false (no). Default value:false.
- Period double
- The valid period (in months) of the monthly-subscribed instance when removing it from isolation.
- Postgresql
Disisolate stringDb Instance Operation Id - ID of the resource.
- Voucher
Ids List<string> - Voucher ID list.
- Db
Instance []stringId Sets - List of resource IDs. Note that currently you cannot remove multiple instances from isolation at the same time. Only one instance ID can be passed in here.
- Auto
Voucher bool - Whether to use vouchers. Valid values:true (yes), false (no). Default value:false.
- Period float64
- The valid period (in months) of the monthly-subscribed instance when removing it from isolation.
- Postgresql
Disisolate stringDb Instance Operation Id - ID of the resource.
- Voucher
Ids []string - Voucher ID list.
- db
Instance List<String>Id Sets - List of resource IDs. Note that currently you cannot remove multiple instances from isolation at the same time. Only one instance ID can be passed in here.
- auto
Voucher Boolean - Whether to use vouchers. Valid values:true (yes), false (no). Default value:false.
- period Double
- The valid period (in months) of the monthly-subscribed instance when removing it from isolation.
- postgresql
Disisolate StringDb Instance Operation Id - ID of the resource.
- voucher
Ids List<String> - Voucher ID list.
- db
Instance string[]Id Sets - List of resource IDs. Note that currently you cannot remove multiple instances from isolation at the same time. Only one instance ID can be passed in here.
- auto
Voucher boolean - Whether to use vouchers. Valid values:true (yes), false (no). Default value:false.
- period number
- The valid period (in months) of the monthly-subscribed instance when removing it from isolation.
- postgresql
Disisolate stringDb Instance Operation Id - ID of the resource.
- voucher
Ids string[] - Voucher ID list.
- db_
instance_ Sequence[str]id_ sets - List of resource IDs. Note that currently you cannot remove multiple instances from isolation at the same time. Only one instance ID can be passed in here.
- auto_
voucher bool - Whether to use vouchers. Valid values:true (yes), false (no). Default value:false.
- period float
- The valid period (in months) of the monthly-subscribed instance when removing it from isolation.
- postgresql_
disisolate_ strdb_ instance_ operation_ id - ID of the resource.
- voucher_
ids Sequence[str] - Voucher ID list.
- db
Instance List<String>Id Sets - List of resource IDs. Note that currently you cannot remove multiple instances from isolation at the same time. Only one instance ID can be passed in here.
- auto
Voucher Boolean - Whether to use vouchers. Valid values:true (yes), false (no). Default value:false.
- period Number
- The valid period (in months) of the monthly-subscribed instance when removing it from isolation.
- postgresql
Disisolate StringDb Instance Operation Id - ID of the resource.
- voucher
Ids List<String> - Voucher ID list.
Outputs
All input properties are implicitly available as output properties. Additionally, the PostgresqlDisisolateDbInstanceOperation 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 PostgresqlDisisolateDbInstanceOperation Resource
Get an existing PostgresqlDisisolateDbInstanceOperation 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?: PostgresqlDisisolateDbInstanceOperationState, opts?: CustomResourceOptions): PostgresqlDisisolateDbInstanceOperation
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
auto_voucher: Optional[bool] = None,
db_instance_id_sets: Optional[Sequence[str]] = None,
period: Optional[float] = None,
postgresql_disisolate_db_instance_operation_id: Optional[str] = None,
voucher_ids: Optional[Sequence[str]] = None) -> PostgresqlDisisolateDbInstanceOperation
func GetPostgresqlDisisolateDbInstanceOperation(ctx *Context, name string, id IDInput, state *PostgresqlDisisolateDbInstanceOperationState, opts ...ResourceOption) (*PostgresqlDisisolateDbInstanceOperation, error)
public static PostgresqlDisisolateDbInstanceOperation Get(string name, Input<string> id, PostgresqlDisisolateDbInstanceOperationState? state, CustomResourceOptions? opts = null)
public static PostgresqlDisisolateDbInstanceOperation get(String name, Output<String> id, PostgresqlDisisolateDbInstanceOperationState state, CustomResourceOptions options)
resources: _: type: tencentcloud:PostgresqlDisisolateDbInstanceOperation 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.
- Auto
Voucher bool - Whether to use vouchers. Valid values:true (yes), false (no). Default value:false.
- Db
Instance List<string>Id Sets - List of resource IDs. Note that currently you cannot remove multiple instances from isolation at the same time. Only one instance ID can be passed in here.
- Period double
- The valid period (in months) of the monthly-subscribed instance when removing it from isolation.
- Postgresql
Disisolate stringDb Instance Operation Id - ID of the resource.
- Voucher
Ids List<string> - Voucher ID list.
- Auto
Voucher bool - Whether to use vouchers. Valid values:true (yes), false (no). Default value:false.
- Db
Instance []stringId Sets - List of resource IDs. Note that currently you cannot remove multiple instances from isolation at the same time. Only one instance ID can be passed in here.
- Period float64
- The valid period (in months) of the monthly-subscribed instance when removing it from isolation.
- Postgresql
Disisolate stringDb Instance Operation Id - ID of the resource.
- Voucher
Ids []string - Voucher ID list.
- auto
Voucher Boolean - Whether to use vouchers. Valid values:true (yes), false (no). Default value:false.
- db
Instance List<String>Id Sets - List of resource IDs. Note that currently you cannot remove multiple instances from isolation at the same time. Only one instance ID can be passed in here.
- period Double
- The valid period (in months) of the monthly-subscribed instance when removing it from isolation.
- postgresql
Disisolate StringDb Instance Operation Id - ID of the resource.
- voucher
Ids List<String> - Voucher ID list.
- auto
Voucher boolean - Whether to use vouchers. Valid values:true (yes), false (no). Default value:false.
- db
Instance string[]Id Sets - List of resource IDs. Note that currently you cannot remove multiple instances from isolation at the same time. Only one instance ID can be passed in here.
- period number
- The valid period (in months) of the monthly-subscribed instance when removing it from isolation.
- postgresql
Disisolate stringDb Instance Operation Id - ID of the resource.
- voucher
Ids string[] - Voucher ID list.
- auto_
voucher bool - Whether to use vouchers. Valid values:true (yes), false (no). Default value:false.
- db_
instance_ Sequence[str]id_ sets - List of resource IDs. Note that currently you cannot remove multiple instances from isolation at the same time. Only one instance ID can be passed in here.
- period float
- The valid period (in months) of the monthly-subscribed instance when removing it from isolation.
- postgresql_
disisolate_ strdb_ instance_ operation_ id - ID of the resource.
- voucher_
ids Sequence[str] - Voucher ID list.
- auto
Voucher Boolean - Whether to use vouchers. Valid values:true (yes), false (no). Default value:false.
- db
Instance List<String>Id Sets - List of resource IDs. Note that currently you cannot remove multiple instances from isolation at the same time. Only one instance ID can be passed in here.
- period Number
- The valid period (in months) of the monthly-subscribed instance when removing it from isolation.
- postgresql
Disisolate StringDb Instance Operation Id - ID of the resource.
- voucher
Ids List<String> - Voucher ID list.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.