1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. CdhInstance
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.CdhInstance

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to manage CDH instance.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const config = new pulumi.Config();
    const availabilityZone = config.get("availabilityZone") || "ap-guangzhou-3";
    const foo = new tencentcloud.CdhInstance("foo", {
        availabilityZone: availabilityZone,
        hostType: "HC20",
        chargeType: "PREPAID",
        prepaidPeriod: 1,
        hostName: "test",
        prepaidRenewFlag: "NOTIFY_AND_MANUAL_RENEW",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    config = pulumi.Config()
    availability_zone = config.get("availabilityZone")
    if availability_zone is None:
        availability_zone = "ap-guangzhou-3"
    foo = tencentcloud.CdhInstance("foo",
        availability_zone=availability_zone,
        host_type="HC20",
        charge_type="PREPAID",
        prepaid_period=1,
        host_name="test",
        prepaid_renew_flag="NOTIFY_AND_MANUAL_RENEW")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		availabilityZone := "ap-guangzhou-3"
    		if param := cfg.Get("availabilityZone"); param != "" {
    			availabilityZone = param
    		}
    		_, err := tencentcloud.NewCdhInstance(ctx, "foo", &tencentcloud.CdhInstanceArgs{
    			AvailabilityZone: pulumi.String(availabilityZone),
    			HostType:         pulumi.String("HC20"),
    			ChargeType:       pulumi.String("PREPAID"),
    			PrepaidPeriod:    pulumi.Float64(1),
    			HostName:         pulumi.String("test"),
    			PrepaidRenewFlag: pulumi.String("NOTIFY_AND_MANUAL_RENEW"),
    		})
    		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 config = new Config();
        var availabilityZone = config.Get("availabilityZone") ?? "ap-guangzhou-3";
        var foo = new Tencentcloud.CdhInstance("foo", new()
        {
            AvailabilityZone = availabilityZone,
            HostType = "HC20",
            ChargeType = "PREPAID",
            PrepaidPeriod = 1,
            HostName = "test",
            PrepaidRenewFlag = "NOTIFY_AND_MANUAL_RENEW",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.CdhInstance;
    import com.pulumi.tencentcloud.CdhInstanceArgs;
    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) {
            final var config = ctx.config();
            final var availabilityZone = config.get("availabilityZone").orElse("ap-guangzhou-3");
            var foo = new CdhInstance("foo", CdhInstanceArgs.builder()
                .availabilityZone(availabilityZone)
                .hostType("HC20")
                .chargeType("PREPAID")
                .prepaidPeriod(1)
                .hostName("test")
                .prepaidRenewFlag("NOTIFY_AND_MANUAL_RENEW")
                .build());
    
        }
    }
    
    configuration:
      availabilityZone:
        type: string
        default: ap-guangzhou-3
    resources:
      foo:
        type: tencentcloud:CdhInstance
        properties:
          availabilityZone: ${availabilityZone}
          hostType: HC20
          chargeType: PREPAID
          prepaidPeriod: 1
          hostName: test
          prepaidRenewFlag: NOTIFY_AND_MANUAL_RENEW
    

    Create CdhInstance Resource

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

    Constructor syntax

    new CdhInstance(name: string, args: CdhInstanceArgs, opts?: CustomResourceOptions);
    @overload
    def CdhInstance(resource_name: str,
                    args: CdhInstanceArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def CdhInstance(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    availability_zone: Optional[str] = None,
                    cdh_instance_id: Optional[str] = None,
                    charge_type: Optional[str] = None,
                    host_name: Optional[str] = None,
                    host_type: Optional[str] = None,
                    prepaid_period: Optional[float] = None,
                    prepaid_renew_flag: Optional[str] = None,
                    project_id: Optional[float] = None)
    func NewCdhInstance(ctx *Context, name string, args CdhInstanceArgs, opts ...ResourceOption) (*CdhInstance, error)
    public CdhInstance(string name, CdhInstanceArgs args, CustomResourceOptions? opts = null)
    public CdhInstance(String name, CdhInstanceArgs args)
    public CdhInstance(String name, CdhInstanceArgs args, CustomResourceOptions options)
    
    type: tencentcloud:CdhInstance
    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 CdhInstanceArgs
    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 CdhInstanceArgs
    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 CdhInstanceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CdhInstanceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CdhInstanceArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    AvailabilityZone string
    The available zone for the CDH instance.
    CdhInstanceId string
    ID of the resource.
    ChargeType string
    The charge type of instance. Valid values are PREPAID. The default is PREPAID.
    HostName string
    The name of the CDH instance. The max length of host_name is 60.
    HostType string
    The type of the CDH instance.
    PrepaidPeriod double
    The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when charge_type is set to PREPAID. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36.
    PrepaidRenewFlag string
    Auto renewal flag. Valid values: NOTIFY_AND_AUTO_RENEW: notify upon expiration and renew automatically, NOTIFY_AND_MANUAL_RENEW: notify upon expiration but do not renew automatically, DISABLE_NOTIFY_AND_MANUAL_RENEW: neither notify upon expiration nor renew automatically. Default value: NOTIFY_AND_MANUAL_RENEW. If this parameter is specified as NOTIFY_AND_AUTO_RENEW, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. NOTE: it only works when charge_type is set to PREPAID.
    ProjectId double
    The project the instance belongs to, default to 0.
    AvailabilityZone string
    The available zone for the CDH instance.
    CdhInstanceId string
    ID of the resource.
    ChargeType string
    The charge type of instance. Valid values are PREPAID. The default is PREPAID.
    HostName string
    The name of the CDH instance. The max length of host_name is 60.
    HostType string
    The type of the CDH instance.
    PrepaidPeriod float64
    The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when charge_type is set to PREPAID. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36.
    PrepaidRenewFlag string
    Auto renewal flag. Valid values: NOTIFY_AND_AUTO_RENEW: notify upon expiration and renew automatically, NOTIFY_AND_MANUAL_RENEW: notify upon expiration but do not renew automatically, DISABLE_NOTIFY_AND_MANUAL_RENEW: neither notify upon expiration nor renew automatically. Default value: NOTIFY_AND_MANUAL_RENEW. If this parameter is specified as NOTIFY_AND_AUTO_RENEW, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. NOTE: it only works when charge_type is set to PREPAID.
    ProjectId float64
    The project the instance belongs to, default to 0.
    availabilityZone String
    The available zone for the CDH instance.
    cdhInstanceId String
    ID of the resource.
    chargeType String
    The charge type of instance. Valid values are PREPAID. The default is PREPAID.
    hostName String
    The name of the CDH instance. The max length of host_name is 60.
    hostType String
    The type of the CDH instance.
    prepaidPeriod Double
    The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when charge_type is set to PREPAID. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36.
    prepaidRenewFlag String
    Auto renewal flag. Valid values: NOTIFY_AND_AUTO_RENEW: notify upon expiration and renew automatically, NOTIFY_AND_MANUAL_RENEW: notify upon expiration but do not renew automatically, DISABLE_NOTIFY_AND_MANUAL_RENEW: neither notify upon expiration nor renew automatically. Default value: NOTIFY_AND_MANUAL_RENEW. If this parameter is specified as NOTIFY_AND_AUTO_RENEW, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. NOTE: it only works when charge_type is set to PREPAID.
    projectId Double
    The project the instance belongs to, default to 0.
    availabilityZone string
    The available zone for the CDH instance.
    cdhInstanceId string
    ID of the resource.
    chargeType string
    The charge type of instance. Valid values are PREPAID. The default is PREPAID.
    hostName string
    The name of the CDH instance. The max length of host_name is 60.
    hostType string
    The type of the CDH instance.
    prepaidPeriod number
    The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when charge_type is set to PREPAID. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36.
    prepaidRenewFlag string
    Auto renewal flag. Valid values: NOTIFY_AND_AUTO_RENEW: notify upon expiration and renew automatically, NOTIFY_AND_MANUAL_RENEW: notify upon expiration but do not renew automatically, DISABLE_NOTIFY_AND_MANUAL_RENEW: neither notify upon expiration nor renew automatically. Default value: NOTIFY_AND_MANUAL_RENEW. If this parameter is specified as NOTIFY_AND_AUTO_RENEW, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. NOTE: it only works when charge_type is set to PREPAID.
    projectId number
    The project the instance belongs to, default to 0.
    availability_zone str
    The available zone for the CDH instance.
    cdh_instance_id str
    ID of the resource.
    charge_type str
    The charge type of instance. Valid values are PREPAID. The default is PREPAID.
    host_name str
    The name of the CDH instance. The max length of host_name is 60.
    host_type str
    The type of the CDH instance.
    prepaid_period float
    The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when charge_type is set to PREPAID. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36.
    prepaid_renew_flag str
    Auto renewal flag. Valid values: NOTIFY_AND_AUTO_RENEW: notify upon expiration and renew automatically, NOTIFY_AND_MANUAL_RENEW: notify upon expiration but do not renew automatically, DISABLE_NOTIFY_AND_MANUAL_RENEW: neither notify upon expiration nor renew automatically. Default value: NOTIFY_AND_MANUAL_RENEW. If this parameter is specified as NOTIFY_AND_AUTO_RENEW, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. NOTE: it only works when charge_type is set to PREPAID.
    project_id float
    The project the instance belongs to, default to 0.
    availabilityZone String
    The available zone for the CDH instance.
    cdhInstanceId String
    ID of the resource.
    chargeType String
    The charge type of instance. Valid values are PREPAID. The default is PREPAID.
    hostName String
    The name of the CDH instance. The max length of host_name is 60.
    hostType String
    The type of the CDH instance.
    prepaidPeriod Number
    The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when charge_type is set to PREPAID. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36.
    prepaidRenewFlag String
    Auto renewal flag. Valid values: NOTIFY_AND_AUTO_RENEW: notify upon expiration and renew automatically, NOTIFY_AND_MANUAL_RENEW: notify upon expiration but do not renew automatically, DISABLE_NOTIFY_AND_MANUAL_RENEW: neither notify upon expiration nor renew automatically. Default value: NOTIFY_AND_MANUAL_RENEW. If this parameter is specified as NOTIFY_AND_AUTO_RENEW, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. NOTE: it only works when charge_type is set to PREPAID.
    projectId Number
    The project the instance belongs to, default to 0.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CdhInstance resource produces the following output properties:

    CreateTime string
    Create time of the instance.
    CvmInstanceIds List<string>
    Id of CVM instances that have been created on the CDH instance.
    ExpiredTime string
    Expired time of the instance.
    HostResources List<CdhInstanceHostResource>
    An information list of host resource. Each element contains the following attributes:
    HostState string
    State of the CDH instance.
    Id string
    The provider-assigned unique ID for this managed resource.
    CreateTime string
    Create time of the instance.
    CvmInstanceIds []string
    Id of CVM instances that have been created on the CDH instance.
    ExpiredTime string
    Expired time of the instance.
    HostResources []CdhInstanceHostResource
    An information list of host resource. Each element contains the following attributes:
    HostState string
    State of the CDH instance.
    Id string
    The provider-assigned unique ID for this managed resource.
    createTime String
    Create time of the instance.
    cvmInstanceIds List<String>
    Id of CVM instances that have been created on the CDH instance.
    expiredTime String
    Expired time of the instance.
    hostResources List<CdhInstanceHostResource>
    An information list of host resource. Each element contains the following attributes:
    hostState String
    State of the CDH instance.
    id String
    The provider-assigned unique ID for this managed resource.
    createTime string
    Create time of the instance.
    cvmInstanceIds string[]
    Id of CVM instances that have been created on the CDH instance.
    expiredTime string
    Expired time of the instance.
    hostResources CdhInstanceHostResource[]
    An information list of host resource. Each element contains the following attributes:
    hostState string
    State of the CDH instance.
    id string
    The provider-assigned unique ID for this managed resource.
    create_time str
    Create time of the instance.
    cvm_instance_ids Sequence[str]
    Id of CVM instances that have been created on the CDH instance.
    expired_time str
    Expired time of the instance.
    host_resources Sequence[CdhInstanceHostResource]
    An information list of host resource. Each element contains the following attributes:
    host_state str
    State of the CDH instance.
    id str
    The provider-assigned unique ID for this managed resource.
    createTime String
    Create time of the instance.
    cvmInstanceIds List<String>
    Id of CVM instances that have been created on the CDH instance.
    expiredTime String
    Expired time of the instance.
    hostResources List<Property Map>
    An information list of host resource. Each element contains the following attributes:
    hostState String
    State of the CDH instance.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing CdhInstance Resource

    Get an existing CdhInstance 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?: CdhInstanceState, opts?: CustomResourceOptions): CdhInstance
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            availability_zone: Optional[str] = None,
            cdh_instance_id: Optional[str] = None,
            charge_type: Optional[str] = None,
            create_time: Optional[str] = None,
            cvm_instance_ids: Optional[Sequence[str]] = None,
            expired_time: Optional[str] = None,
            host_name: Optional[str] = None,
            host_resources: Optional[Sequence[CdhInstanceHostResourceArgs]] = None,
            host_state: Optional[str] = None,
            host_type: Optional[str] = None,
            prepaid_period: Optional[float] = None,
            prepaid_renew_flag: Optional[str] = None,
            project_id: Optional[float] = None) -> CdhInstance
    func GetCdhInstance(ctx *Context, name string, id IDInput, state *CdhInstanceState, opts ...ResourceOption) (*CdhInstance, error)
    public static CdhInstance Get(string name, Input<string> id, CdhInstanceState? state, CustomResourceOptions? opts = null)
    public static CdhInstance get(String name, Output<String> id, CdhInstanceState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:CdhInstance    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:
    AvailabilityZone string
    The available zone for the CDH instance.
    CdhInstanceId string
    ID of the resource.
    ChargeType string
    The charge type of instance. Valid values are PREPAID. The default is PREPAID.
    CreateTime string
    Create time of the instance.
    CvmInstanceIds List<string>
    Id of CVM instances that have been created on the CDH instance.
    ExpiredTime string
    Expired time of the instance.
    HostName string
    The name of the CDH instance. The max length of host_name is 60.
    HostResources List<CdhInstanceHostResource>
    An information list of host resource. Each element contains the following attributes:
    HostState string
    State of the CDH instance.
    HostType string
    The type of the CDH instance.
    PrepaidPeriod double
    The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when charge_type is set to PREPAID. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36.
    PrepaidRenewFlag string
    Auto renewal flag. Valid values: NOTIFY_AND_AUTO_RENEW: notify upon expiration and renew automatically, NOTIFY_AND_MANUAL_RENEW: notify upon expiration but do not renew automatically, DISABLE_NOTIFY_AND_MANUAL_RENEW: neither notify upon expiration nor renew automatically. Default value: NOTIFY_AND_MANUAL_RENEW. If this parameter is specified as NOTIFY_AND_AUTO_RENEW, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. NOTE: it only works when charge_type is set to PREPAID.
    ProjectId double
    The project the instance belongs to, default to 0.
    AvailabilityZone string
    The available zone for the CDH instance.
    CdhInstanceId string
    ID of the resource.
    ChargeType string
    The charge type of instance. Valid values are PREPAID. The default is PREPAID.
    CreateTime string
    Create time of the instance.
    CvmInstanceIds []string
    Id of CVM instances that have been created on the CDH instance.
    ExpiredTime string
    Expired time of the instance.
    HostName string
    The name of the CDH instance. The max length of host_name is 60.
    HostResources []CdhInstanceHostResourceArgs
    An information list of host resource. Each element contains the following attributes:
    HostState string
    State of the CDH instance.
    HostType string
    The type of the CDH instance.
    PrepaidPeriod float64
    The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when charge_type is set to PREPAID. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36.
    PrepaidRenewFlag string
    Auto renewal flag. Valid values: NOTIFY_AND_AUTO_RENEW: notify upon expiration and renew automatically, NOTIFY_AND_MANUAL_RENEW: notify upon expiration but do not renew automatically, DISABLE_NOTIFY_AND_MANUAL_RENEW: neither notify upon expiration nor renew automatically. Default value: NOTIFY_AND_MANUAL_RENEW. If this parameter is specified as NOTIFY_AND_AUTO_RENEW, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. NOTE: it only works when charge_type is set to PREPAID.
    ProjectId float64
    The project the instance belongs to, default to 0.
    availabilityZone String
    The available zone for the CDH instance.
    cdhInstanceId String
    ID of the resource.
    chargeType String
    The charge type of instance. Valid values are PREPAID. The default is PREPAID.
    createTime String
    Create time of the instance.
    cvmInstanceIds List<String>
    Id of CVM instances that have been created on the CDH instance.
    expiredTime String
    Expired time of the instance.
    hostName String
    The name of the CDH instance. The max length of host_name is 60.
    hostResources List<CdhInstanceHostResource>
    An information list of host resource. Each element contains the following attributes:
    hostState String
    State of the CDH instance.
    hostType String
    The type of the CDH instance.
    prepaidPeriod Double
    The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when charge_type is set to PREPAID. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36.
    prepaidRenewFlag String
    Auto renewal flag. Valid values: NOTIFY_AND_AUTO_RENEW: notify upon expiration and renew automatically, NOTIFY_AND_MANUAL_RENEW: notify upon expiration but do not renew automatically, DISABLE_NOTIFY_AND_MANUAL_RENEW: neither notify upon expiration nor renew automatically. Default value: NOTIFY_AND_MANUAL_RENEW. If this parameter is specified as NOTIFY_AND_AUTO_RENEW, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. NOTE: it only works when charge_type is set to PREPAID.
    projectId Double
    The project the instance belongs to, default to 0.
    availabilityZone string
    The available zone for the CDH instance.
    cdhInstanceId string
    ID of the resource.
    chargeType string
    The charge type of instance. Valid values are PREPAID. The default is PREPAID.
    createTime string
    Create time of the instance.
    cvmInstanceIds string[]
    Id of CVM instances that have been created on the CDH instance.
    expiredTime string
    Expired time of the instance.
    hostName string
    The name of the CDH instance. The max length of host_name is 60.
    hostResources CdhInstanceHostResource[]
    An information list of host resource. Each element contains the following attributes:
    hostState string
    State of the CDH instance.
    hostType string
    The type of the CDH instance.
    prepaidPeriod number
    The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when charge_type is set to PREPAID. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36.
    prepaidRenewFlag string
    Auto renewal flag. Valid values: NOTIFY_AND_AUTO_RENEW: notify upon expiration and renew automatically, NOTIFY_AND_MANUAL_RENEW: notify upon expiration but do not renew automatically, DISABLE_NOTIFY_AND_MANUAL_RENEW: neither notify upon expiration nor renew automatically. Default value: NOTIFY_AND_MANUAL_RENEW. If this parameter is specified as NOTIFY_AND_AUTO_RENEW, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. NOTE: it only works when charge_type is set to PREPAID.
    projectId number
    The project the instance belongs to, default to 0.
    availability_zone str
    The available zone for the CDH instance.
    cdh_instance_id str
    ID of the resource.
    charge_type str
    The charge type of instance. Valid values are PREPAID. The default is PREPAID.
    create_time str
    Create time of the instance.
    cvm_instance_ids Sequence[str]
    Id of CVM instances that have been created on the CDH instance.
    expired_time str
    Expired time of the instance.
    host_name str
    The name of the CDH instance. The max length of host_name is 60.
    host_resources Sequence[CdhInstanceHostResourceArgs]
    An information list of host resource. Each element contains the following attributes:
    host_state str
    State of the CDH instance.
    host_type str
    The type of the CDH instance.
    prepaid_period float
    The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when charge_type is set to PREPAID. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36.
    prepaid_renew_flag str
    Auto renewal flag. Valid values: NOTIFY_AND_AUTO_RENEW: notify upon expiration and renew automatically, NOTIFY_AND_MANUAL_RENEW: notify upon expiration but do not renew automatically, DISABLE_NOTIFY_AND_MANUAL_RENEW: neither notify upon expiration nor renew automatically. Default value: NOTIFY_AND_MANUAL_RENEW. If this parameter is specified as NOTIFY_AND_AUTO_RENEW, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. NOTE: it only works when charge_type is set to PREPAID.
    project_id float
    The project the instance belongs to, default to 0.
    availabilityZone String
    The available zone for the CDH instance.
    cdhInstanceId String
    ID of the resource.
    chargeType String
    The charge type of instance. Valid values are PREPAID. The default is PREPAID.
    createTime String
    Create time of the instance.
    cvmInstanceIds List<String>
    Id of CVM instances that have been created on the CDH instance.
    expiredTime String
    Expired time of the instance.
    hostName String
    The name of the CDH instance. The max length of host_name is 60.
    hostResources List<Property Map>
    An information list of host resource. Each element contains the following attributes:
    hostState String
    State of the CDH instance.
    hostType String
    The type of the CDH instance.
    prepaidPeriod Number
    The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when charge_type is set to PREPAID. Valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36.
    prepaidRenewFlag String
    Auto renewal flag. Valid values: NOTIFY_AND_AUTO_RENEW: notify upon expiration and renew automatically, NOTIFY_AND_MANUAL_RENEW: notify upon expiration but do not renew automatically, DISABLE_NOTIFY_AND_MANUAL_RENEW: neither notify upon expiration nor renew automatically. Default value: NOTIFY_AND_MANUAL_RENEW. If this parameter is specified as NOTIFY_AND_AUTO_RENEW, the instance will be automatically renewed on a monthly basis if the account balance is sufficient. NOTE: it only works when charge_type is set to PREPAID.
    projectId Number
    The project the instance belongs to, default to 0.

    Supporting Types

    CdhInstanceHostResource, CdhInstanceHostResourceArgs

    CpuAvailableNum double
    The number of available CPU cores of the instance.
    CpuTotalNum double
    The number of total CPU cores of the instance.
    DiskAvailableSize double
    Instance disk available capacity, unit in GB.
    DiskTotalSize double
    Instance disk total capacity, unit in GB.
    DiskType string
    Type of the disk.
    MemoryAvailableSize double
    Instance memory available capacity, unit in GB.
    MemoryTotalSize double
    Instance memory total capacity, unit in GB.
    CpuAvailableNum float64
    The number of available CPU cores of the instance.
    CpuTotalNum float64
    The number of total CPU cores of the instance.
    DiskAvailableSize float64
    Instance disk available capacity, unit in GB.
    DiskTotalSize float64
    Instance disk total capacity, unit in GB.
    DiskType string
    Type of the disk.
    MemoryAvailableSize float64
    Instance memory available capacity, unit in GB.
    MemoryTotalSize float64
    Instance memory total capacity, unit in GB.
    cpuAvailableNum Double
    The number of available CPU cores of the instance.
    cpuTotalNum Double
    The number of total CPU cores of the instance.
    diskAvailableSize Double
    Instance disk available capacity, unit in GB.
    diskTotalSize Double
    Instance disk total capacity, unit in GB.
    diskType String
    Type of the disk.
    memoryAvailableSize Double
    Instance memory available capacity, unit in GB.
    memoryTotalSize Double
    Instance memory total capacity, unit in GB.
    cpuAvailableNum number
    The number of available CPU cores of the instance.
    cpuTotalNum number
    The number of total CPU cores of the instance.
    diskAvailableSize number
    Instance disk available capacity, unit in GB.
    diskTotalSize number
    Instance disk total capacity, unit in GB.
    diskType string
    Type of the disk.
    memoryAvailableSize number
    Instance memory available capacity, unit in GB.
    memoryTotalSize number
    Instance memory total capacity, unit in GB.
    cpu_available_num float
    The number of available CPU cores of the instance.
    cpu_total_num float
    The number of total CPU cores of the instance.
    disk_available_size float
    Instance disk available capacity, unit in GB.
    disk_total_size float
    Instance disk total capacity, unit in GB.
    disk_type str
    Type of the disk.
    memory_available_size float
    Instance memory available capacity, unit in GB.
    memory_total_size float
    Instance memory total capacity, unit in GB.
    cpuAvailableNum Number
    The number of available CPU cores of the instance.
    cpuTotalNum Number
    The number of total CPU cores of the instance.
    diskAvailableSize Number
    Instance disk available capacity, unit in GB.
    diskTotalSize Number
    Instance disk total capacity, unit in GB.
    diskType String
    Type of the disk.
    memoryAvailableSize Number
    Instance memory available capacity, unit in GB.
    memoryTotalSize Number
    Instance memory total capacity, unit in GB.

    Import

    CDH instance can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/cdhInstance:CdhInstance foo host-d6s7i5q4
    

    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
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack