tencentcloud.CdhInstance
Explore with Pulumi AI
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:
- Availability
Zone string - The available zone for the CDH instance.
- Cdh
Instance stringId - ID of the resource.
- Charge
Type string - The charge type of instance. Valid values are
PREPAID
. The default isPREPAID
. - Host
Name string - The name of the CDH instance. The max length of host_name is 60.
- Host
Type string - The type of the CDH instance.
- Prepaid
Period double - The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when charge_type is set to
PREPAID
. Valid values are1
,2
,3
,4
,5
,6
,7
,8
,9
,10
,11
,12
,24
,36
. - Prepaid
Renew stringFlag - 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 asNOTIFY_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 toPREPAID
. - Project
Id double - The project the instance belongs to, default to 0.
- Availability
Zone string - The available zone for the CDH instance.
- Cdh
Instance stringId - ID of the resource.
- Charge
Type string - The charge type of instance. Valid values are
PREPAID
. The default isPREPAID
. - Host
Name string - The name of the CDH instance. The max length of host_name is 60.
- Host
Type string - The type of the CDH instance.
- Prepaid
Period float64 - The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when charge_type is set to
PREPAID
. Valid values are1
,2
,3
,4
,5
,6
,7
,8
,9
,10
,11
,12
,24
,36
. - Prepaid
Renew stringFlag - 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 asNOTIFY_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 toPREPAID
. - Project
Id float64 - The project the instance belongs to, default to 0.
- availability
Zone String - The available zone for the CDH instance.
- cdh
Instance StringId - ID of the resource.
- charge
Type String - The charge type of instance. Valid values are
PREPAID
. The default isPREPAID
. - host
Name String - The name of the CDH instance. The max length of host_name is 60.
- host
Type String - The type of the CDH instance.
- prepaid
Period Double - The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when charge_type is set to
PREPAID
. Valid values are1
,2
,3
,4
,5
,6
,7
,8
,9
,10
,11
,12
,24
,36
. - prepaid
Renew StringFlag - 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 asNOTIFY_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 toPREPAID
. - project
Id Double - The project the instance belongs to, default to 0.
- availability
Zone string - The available zone for the CDH instance.
- cdh
Instance stringId - ID of the resource.
- charge
Type string - The charge type of instance. Valid values are
PREPAID
. The default isPREPAID
. - host
Name string - The name of the CDH instance. The max length of host_name is 60.
- host
Type string - The type of the CDH instance.
- prepaid
Period number - The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when charge_type is set to
PREPAID
. Valid values are1
,2
,3
,4
,5
,6
,7
,8
,9
,10
,11
,12
,24
,36
. - prepaid
Renew stringFlag - 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 asNOTIFY_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 toPREPAID
. - project
Id number - The project the instance belongs to, default to 0.
- availability_
zone str - The available zone for the CDH instance.
- cdh_
instance_ strid - ID of the resource.
- charge_
type str - The charge type of instance. Valid values are
PREPAID
. The default isPREPAID
. - 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 are1
,2
,3
,4
,5
,6
,7
,8
,9
,10
,11
,12
,24
,36
. - prepaid_
renew_ strflag - 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 asNOTIFY_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 toPREPAID
. - project_
id float - The project the instance belongs to, default to 0.
- availability
Zone String - The available zone for the CDH instance.
- cdh
Instance StringId - ID of the resource.
- charge
Type String - The charge type of instance. Valid values are
PREPAID
. The default isPREPAID
. - host
Name String - The name of the CDH instance. The max length of host_name is 60.
- host
Type String - The type of the CDH instance.
- prepaid
Period Number - The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when charge_type is set to
PREPAID
. Valid values are1
,2
,3
,4
,5
,6
,7
,8
,9
,10
,11
,12
,24
,36
. - prepaid
Renew StringFlag - 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 asNOTIFY_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 toPREPAID
. - project
Id 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:
- Create
Time string - Create time of the instance.
- Cvm
Instance List<string>Ids - Id of CVM instances that have been created on the CDH instance.
- Expired
Time string - Expired time of the instance.
- Host
Resources List<CdhInstance Host Resource> - An information list of host resource. Each element contains the following attributes:
- Host
State string - State of the CDH instance.
- Id string
- The provider-assigned unique ID for this managed resource.
- Create
Time string - Create time of the instance.
- Cvm
Instance []stringIds - Id of CVM instances that have been created on the CDH instance.
- Expired
Time string - Expired time of the instance.
- Host
Resources []CdhInstance Host Resource - An information list of host resource. Each element contains the following attributes:
- Host
State string - State of the CDH instance.
- Id string
- The provider-assigned unique ID for this managed resource.
- create
Time String - Create time of the instance.
- cvm
Instance List<String>Ids - Id of CVM instances that have been created on the CDH instance.
- expired
Time String - Expired time of the instance.
- host
Resources List<CdhInstance Host Resource> - An information list of host resource. Each element contains the following attributes:
- host
State String - State of the CDH instance.
- id String
- The provider-assigned unique ID for this managed resource.
- create
Time string - Create time of the instance.
- cvm
Instance string[]Ids - Id of CVM instances that have been created on the CDH instance.
- expired
Time string - Expired time of the instance.
- host
Resources CdhInstance Host Resource[] - An information list of host resource. Each element contains the following attributes:
- host
State 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_ Sequence[str]ids - Id of CVM instances that have been created on the CDH instance.
- expired_
time str - Expired time of the instance.
- host_
resources Sequence[CdhInstance Host Resource] - 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.
- create
Time String - Create time of the instance.
- cvm
Instance List<String>Ids - Id of CVM instances that have been created on the CDH instance.
- expired
Time String - Expired time of the instance.
- host
Resources List<Property Map> - An information list of host resource. Each element contains the following attributes:
- host
State 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.
- Availability
Zone string - The available zone for the CDH instance.
- Cdh
Instance stringId - ID of the resource.
- Charge
Type string - The charge type of instance. Valid values are
PREPAID
. The default isPREPAID
. - Create
Time string - Create time of the instance.
- Cvm
Instance List<string>Ids - Id of CVM instances that have been created on the CDH instance.
- Expired
Time string - Expired time of the instance.
- Host
Name string - The name of the CDH instance. The max length of host_name is 60.
- Host
Resources List<CdhInstance Host Resource> - An information list of host resource. Each element contains the following attributes:
- Host
State string - State of the CDH instance.
- Host
Type string - The type of the CDH instance.
- Prepaid
Period double - The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when charge_type is set to
PREPAID
. Valid values are1
,2
,3
,4
,5
,6
,7
,8
,9
,10
,11
,12
,24
,36
. - Prepaid
Renew stringFlag - 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 asNOTIFY_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 toPREPAID
. - Project
Id double - The project the instance belongs to, default to 0.
- Availability
Zone string - The available zone for the CDH instance.
- Cdh
Instance stringId - ID of the resource.
- Charge
Type string - The charge type of instance. Valid values are
PREPAID
. The default isPREPAID
. - Create
Time string - Create time of the instance.
- Cvm
Instance []stringIds - Id of CVM instances that have been created on the CDH instance.
- Expired
Time string - Expired time of the instance.
- Host
Name string - The name of the CDH instance. The max length of host_name is 60.
- Host
Resources []CdhInstance Host Resource Args - An information list of host resource. Each element contains the following attributes:
- Host
State string - State of the CDH instance.
- Host
Type string - The type of the CDH instance.
- Prepaid
Period float64 - The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when charge_type is set to
PREPAID
. Valid values are1
,2
,3
,4
,5
,6
,7
,8
,9
,10
,11
,12
,24
,36
. - Prepaid
Renew stringFlag - 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 asNOTIFY_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 toPREPAID
. - Project
Id float64 - The project the instance belongs to, default to 0.
- availability
Zone String - The available zone for the CDH instance.
- cdh
Instance StringId - ID of the resource.
- charge
Type String - The charge type of instance. Valid values are
PREPAID
. The default isPREPAID
. - create
Time String - Create time of the instance.
- cvm
Instance List<String>Ids - Id of CVM instances that have been created on the CDH instance.
- expired
Time String - Expired time of the instance.
- host
Name String - The name of the CDH instance. The max length of host_name is 60.
- host
Resources List<CdhInstance Host Resource> - An information list of host resource. Each element contains the following attributes:
- host
State String - State of the CDH instance.
- host
Type String - The type of the CDH instance.
- prepaid
Period Double - The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when charge_type is set to
PREPAID
. Valid values are1
,2
,3
,4
,5
,6
,7
,8
,9
,10
,11
,12
,24
,36
. - prepaid
Renew StringFlag - 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 asNOTIFY_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 toPREPAID
. - project
Id Double - The project the instance belongs to, default to 0.
- availability
Zone string - The available zone for the CDH instance.
- cdh
Instance stringId - ID of the resource.
- charge
Type string - The charge type of instance. Valid values are
PREPAID
. The default isPREPAID
. - create
Time string - Create time of the instance.
- cvm
Instance string[]Ids - Id of CVM instances that have been created on the CDH instance.
- expired
Time string - Expired time of the instance.
- host
Name string - The name of the CDH instance. The max length of host_name is 60.
- host
Resources CdhInstance Host Resource[] - An information list of host resource. Each element contains the following attributes:
- host
State string - State of the CDH instance.
- host
Type string - The type of the CDH instance.
- prepaid
Period number - The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when charge_type is set to
PREPAID
. Valid values are1
,2
,3
,4
,5
,6
,7
,8
,9
,10
,11
,12
,24
,36
. - prepaid
Renew stringFlag - 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 asNOTIFY_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 toPREPAID
. - project
Id number - The project the instance belongs to, default to 0.
- availability_
zone str - The available zone for the CDH instance.
- cdh_
instance_ strid - ID of the resource.
- charge_
type str - The charge type of instance. Valid values are
PREPAID
. The default isPREPAID
. - create_
time str - Create time of the instance.
- cvm_
instance_ Sequence[str]ids - 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[CdhInstance Host Resource Args] - 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 are1
,2
,3
,4
,5
,6
,7
,8
,9
,10
,11
,12
,24
,36
. - prepaid_
renew_ strflag - 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 asNOTIFY_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 toPREPAID
. - project_
id float - The project the instance belongs to, default to 0.
- availability
Zone String - The available zone for the CDH instance.
- cdh
Instance StringId - ID of the resource.
- charge
Type String - The charge type of instance. Valid values are
PREPAID
. The default isPREPAID
. - create
Time String - Create time of the instance.
- cvm
Instance List<String>Ids - Id of CVM instances that have been created on the CDH instance.
- expired
Time String - Expired time of the instance.
- host
Name String - The name of the CDH instance. The max length of host_name is 60.
- host
Resources List<Property Map> - An information list of host resource. Each element contains the following attributes:
- host
State String - State of the CDH instance.
- host
Type String - The type of the CDH instance.
- prepaid
Period Number - The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when charge_type is set to
PREPAID
. Valid values are1
,2
,3
,4
,5
,6
,7
,8
,9
,10
,11
,12
,24
,36
. - prepaid
Renew StringFlag - 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 asNOTIFY_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 toPREPAID
. - project
Id Number - The project the instance belongs to, default to 0.
Supporting Types
CdhInstanceHostResource, CdhInstanceHostResourceArgs
- Cpu
Available doubleNum - The number of available CPU cores of the instance.
- Cpu
Total doubleNum - The number of total CPU cores of the instance.
- Disk
Available doubleSize - Instance disk available capacity, unit in GB.
- Disk
Total doubleSize - Instance disk total capacity, unit in GB.
- Disk
Type string - Type of the disk.
- Memory
Available doubleSize - Instance memory available capacity, unit in GB.
- Memory
Total doubleSize - Instance memory total capacity, unit in GB.
- Cpu
Available float64Num - The number of available CPU cores of the instance.
- Cpu
Total float64Num - The number of total CPU cores of the instance.
- Disk
Available float64Size - Instance disk available capacity, unit in GB.
- Disk
Total float64Size - Instance disk total capacity, unit in GB.
- Disk
Type string - Type of the disk.
- Memory
Available float64Size - Instance memory available capacity, unit in GB.
- Memory
Total float64Size - Instance memory total capacity, unit in GB.
- cpu
Available DoubleNum - The number of available CPU cores of the instance.
- cpu
Total DoubleNum - The number of total CPU cores of the instance.
- disk
Available DoubleSize - Instance disk available capacity, unit in GB.
- disk
Total DoubleSize - Instance disk total capacity, unit in GB.
- disk
Type String - Type of the disk.
- memory
Available DoubleSize - Instance memory available capacity, unit in GB.
- memory
Total DoubleSize - Instance memory total capacity, unit in GB.
- cpu
Available numberNum - The number of available CPU cores of the instance.
- cpu
Total numberNum - The number of total CPU cores of the instance.
- disk
Available numberSize - Instance disk available capacity, unit in GB.
- disk
Total numberSize - Instance disk total capacity, unit in GB.
- disk
Type string - Type of the disk.
- memory
Available numberSize - Instance memory available capacity, unit in GB.
- memory
Total numberSize - Instance memory total capacity, unit in GB.
- cpu_
available_ floatnum - The number of available CPU cores of the instance.
- cpu_
total_ floatnum - The number of total CPU cores of the instance.
- disk_
available_ floatsize - Instance disk available capacity, unit in GB.
- disk_
total_ floatsize - Instance disk total capacity, unit in GB.
- disk_
type str - Type of the disk.
- memory_
available_ floatsize - Instance memory available capacity, unit in GB.
- memory_
total_ floatsize - Instance memory total capacity, unit in GB.
- cpu
Available NumberNum - The number of available CPU cores of the instance.
- cpu
Total NumberNum - The number of total CPU cores of the instance.
- disk
Available NumberSize - Instance disk available capacity, unit in GB.
- disk
Total NumberSize - Instance disk total capacity, unit in GB.
- disk
Type String - Type of the disk.
- memory
Available NumberSize - Instance memory available capacity, unit in GB.
- memory
Total NumberSize - 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.