instance

package
v0.1.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetTypesArgs

type GetTypesArgs struct {
	AvailabilityZone *string          `pulumi:"availabilityZone"`
	CpuCoreCount     *int             `pulumi:"cpuCoreCount"`
	ExcludeSoldOut   *bool            `pulumi:"excludeSoldOut"`
	Filters          []GetTypesFilter `pulumi:"filters"`
	GpuCoreCount     *int             `pulumi:"gpuCoreCount"`
	MemorySize       *int             `pulumi:"memorySize"`
	ResultOutputFile *string          `pulumi:"resultOutputFile"`
}

A collection of arguments for invoking getTypes.

type GetTypesFilter

type GetTypesFilter struct {
	Name   string   `pulumi:"name"`
	Values []string `pulumi:"values"`
}

type GetTypesFilterArgs

type GetTypesFilterArgs struct {
	Name   pulumi.StringInput      `pulumi:"name"`
	Values pulumi.StringArrayInput `pulumi:"values"`
}

func (GetTypesFilterArgs) ElementType

func (GetTypesFilterArgs) ElementType() reflect.Type

func (GetTypesFilterArgs) ToGetTypesFilterOutput

func (i GetTypesFilterArgs) ToGetTypesFilterOutput() GetTypesFilterOutput

func (GetTypesFilterArgs) ToGetTypesFilterOutputWithContext

func (i GetTypesFilterArgs) ToGetTypesFilterOutputWithContext(ctx context.Context) GetTypesFilterOutput

type GetTypesFilterArray

type GetTypesFilterArray []GetTypesFilterInput

func (GetTypesFilterArray) ElementType

func (GetTypesFilterArray) ElementType() reflect.Type

func (GetTypesFilterArray) ToGetTypesFilterArrayOutput

func (i GetTypesFilterArray) ToGetTypesFilterArrayOutput() GetTypesFilterArrayOutput

func (GetTypesFilterArray) ToGetTypesFilterArrayOutputWithContext

func (i GetTypesFilterArray) ToGetTypesFilterArrayOutputWithContext(ctx context.Context) GetTypesFilterArrayOutput

type GetTypesFilterArrayInput

type GetTypesFilterArrayInput interface {
	pulumi.Input

	ToGetTypesFilterArrayOutput() GetTypesFilterArrayOutput
	ToGetTypesFilterArrayOutputWithContext(context.Context) GetTypesFilterArrayOutput
}

GetTypesFilterArrayInput is an input type that accepts GetTypesFilterArray and GetTypesFilterArrayOutput values. You can construct a concrete instance of `GetTypesFilterArrayInput` via:

GetTypesFilterArray{ GetTypesFilterArgs{...} }

type GetTypesFilterArrayOutput

type GetTypesFilterArrayOutput struct{ *pulumi.OutputState }

func (GetTypesFilterArrayOutput) ElementType

func (GetTypesFilterArrayOutput) ElementType() reflect.Type

func (GetTypesFilterArrayOutput) Index

func (GetTypesFilterArrayOutput) ToGetTypesFilterArrayOutput

func (o GetTypesFilterArrayOutput) ToGetTypesFilterArrayOutput() GetTypesFilterArrayOutput

func (GetTypesFilterArrayOutput) ToGetTypesFilterArrayOutputWithContext

func (o GetTypesFilterArrayOutput) ToGetTypesFilterArrayOutputWithContext(ctx context.Context) GetTypesFilterArrayOutput

type GetTypesFilterInput

type GetTypesFilterInput interface {
	pulumi.Input

	ToGetTypesFilterOutput() GetTypesFilterOutput
	ToGetTypesFilterOutputWithContext(context.Context) GetTypesFilterOutput
}

GetTypesFilterInput is an input type that accepts GetTypesFilterArgs and GetTypesFilterOutput values. You can construct a concrete instance of `GetTypesFilterInput` via:

GetTypesFilterArgs{...}

type GetTypesFilterOutput

type GetTypesFilterOutput struct{ *pulumi.OutputState }

func (GetTypesFilterOutput) ElementType

func (GetTypesFilterOutput) ElementType() reflect.Type

func (GetTypesFilterOutput) Name

func (GetTypesFilterOutput) ToGetTypesFilterOutput

func (o GetTypesFilterOutput) ToGetTypesFilterOutput() GetTypesFilterOutput

func (GetTypesFilterOutput) ToGetTypesFilterOutputWithContext

func (o GetTypesFilterOutput) ToGetTypesFilterOutputWithContext(ctx context.Context) GetTypesFilterOutput

func (GetTypesFilterOutput) Values

type GetTypesInstanceType

type GetTypesInstanceType struct {
	AvailabilityZone   string `pulumi:"availabilityZone"`
	CpuCoreCount       int    `pulumi:"cpuCoreCount"`
	Family             string `pulumi:"family"`
	GpuCoreCount       int    `pulumi:"gpuCoreCount"`
	InstanceChargeType string `pulumi:"instanceChargeType"`
	InstanceType       string `pulumi:"instanceType"`
	MemorySize         int    `pulumi:"memorySize"`
	Status             string `pulumi:"status"`
}

type GetTypesInstanceTypeArgs

type GetTypesInstanceTypeArgs struct {
	AvailabilityZone   pulumi.StringInput `pulumi:"availabilityZone"`
	CpuCoreCount       pulumi.IntInput    `pulumi:"cpuCoreCount"`
	Family             pulumi.StringInput `pulumi:"family"`
	GpuCoreCount       pulumi.IntInput    `pulumi:"gpuCoreCount"`
	InstanceChargeType pulumi.StringInput `pulumi:"instanceChargeType"`
	InstanceType       pulumi.StringInput `pulumi:"instanceType"`
	MemorySize         pulumi.IntInput    `pulumi:"memorySize"`
	Status             pulumi.StringInput `pulumi:"status"`
}

func (GetTypesInstanceTypeArgs) ElementType

func (GetTypesInstanceTypeArgs) ElementType() reflect.Type

func (GetTypesInstanceTypeArgs) ToGetTypesInstanceTypeOutput

func (i GetTypesInstanceTypeArgs) ToGetTypesInstanceTypeOutput() GetTypesInstanceTypeOutput

func (GetTypesInstanceTypeArgs) ToGetTypesInstanceTypeOutputWithContext

func (i GetTypesInstanceTypeArgs) ToGetTypesInstanceTypeOutputWithContext(ctx context.Context) GetTypesInstanceTypeOutput

type GetTypesInstanceTypeArray

type GetTypesInstanceTypeArray []GetTypesInstanceTypeInput

func (GetTypesInstanceTypeArray) ElementType

func (GetTypesInstanceTypeArray) ElementType() reflect.Type

func (GetTypesInstanceTypeArray) ToGetTypesInstanceTypeArrayOutput

func (i GetTypesInstanceTypeArray) ToGetTypesInstanceTypeArrayOutput() GetTypesInstanceTypeArrayOutput

func (GetTypesInstanceTypeArray) ToGetTypesInstanceTypeArrayOutputWithContext

func (i GetTypesInstanceTypeArray) ToGetTypesInstanceTypeArrayOutputWithContext(ctx context.Context) GetTypesInstanceTypeArrayOutput

type GetTypesInstanceTypeArrayInput

type GetTypesInstanceTypeArrayInput interface {
	pulumi.Input

	ToGetTypesInstanceTypeArrayOutput() GetTypesInstanceTypeArrayOutput
	ToGetTypesInstanceTypeArrayOutputWithContext(context.Context) GetTypesInstanceTypeArrayOutput
}

GetTypesInstanceTypeArrayInput is an input type that accepts GetTypesInstanceTypeArray and GetTypesInstanceTypeArrayOutput values. You can construct a concrete instance of `GetTypesInstanceTypeArrayInput` via:

GetTypesInstanceTypeArray{ GetTypesInstanceTypeArgs{...} }

type GetTypesInstanceTypeArrayOutput

type GetTypesInstanceTypeArrayOutput struct{ *pulumi.OutputState }

func (GetTypesInstanceTypeArrayOutput) ElementType

func (GetTypesInstanceTypeArrayOutput) Index

func (GetTypesInstanceTypeArrayOutput) ToGetTypesInstanceTypeArrayOutput

func (o GetTypesInstanceTypeArrayOutput) ToGetTypesInstanceTypeArrayOutput() GetTypesInstanceTypeArrayOutput

func (GetTypesInstanceTypeArrayOutput) ToGetTypesInstanceTypeArrayOutputWithContext

func (o GetTypesInstanceTypeArrayOutput) ToGetTypesInstanceTypeArrayOutputWithContext(ctx context.Context) GetTypesInstanceTypeArrayOutput

type GetTypesInstanceTypeInput

type GetTypesInstanceTypeInput interface {
	pulumi.Input

	ToGetTypesInstanceTypeOutput() GetTypesInstanceTypeOutput
	ToGetTypesInstanceTypeOutputWithContext(context.Context) GetTypesInstanceTypeOutput
}

GetTypesInstanceTypeInput is an input type that accepts GetTypesInstanceTypeArgs and GetTypesInstanceTypeOutput values. You can construct a concrete instance of `GetTypesInstanceTypeInput` via:

GetTypesInstanceTypeArgs{...}

type GetTypesInstanceTypeOutput

type GetTypesInstanceTypeOutput struct{ *pulumi.OutputState }

func (GetTypesInstanceTypeOutput) AvailabilityZone

func (o GetTypesInstanceTypeOutput) AvailabilityZone() pulumi.StringOutput

func (GetTypesInstanceTypeOutput) CpuCoreCount

func (o GetTypesInstanceTypeOutput) CpuCoreCount() pulumi.IntOutput

func (GetTypesInstanceTypeOutput) ElementType

func (GetTypesInstanceTypeOutput) ElementType() reflect.Type

func (GetTypesInstanceTypeOutput) Family

func (GetTypesInstanceTypeOutput) GpuCoreCount

func (o GetTypesInstanceTypeOutput) GpuCoreCount() pulumi.IntOutput

func (GetTypesInstanceTypeOutput) InstanceChargeType

func (o GetTypesInstanceTypeOutput) InstanceChargeType() pulumi.StringOutput

func (GetTypesInstanceTypeOutput) InstanceType

func (GetTypesInstanceTypeOutput) MemorySize

func (GetTypesInstanceTypeOutput) Status

func (GetTypesInstanceTypeOutput) ToGetTypesInstanceTypeOutput

func (o GetTypesInstanceTypeOutput) ToGetTypesInstanceTypeOutput() GetTypesInstanceTypeOutput

func (GetTypesInstanceTypeOutput) ToGetTypesInstanceTypeOutputWithContext

func (o GetTypesInstanceTypeOutput) ToGetTypesInstanceTypeOutputWithContext(ctx context.Context) GetTypesInstanceTypeOutput

type GetTypesOutputArgs

type GetTypesOutputArgs struct {
	AvailabilityZone pulumi.StringPtrInput    `pulumi:"availabilityZone"`
	CpuCoreCount     pulumi.IntPtrInput       `pulumi:"cpuCoreCount"`
	ExcludeSoldOut   pulumi.BoolPtrInput      `pulumi:"excludeSoldOut"`
	Filters          GetTypesFilterArrayInput `pulumi:"filters"`
	GpuCoreCount     pulumi.IntPtrInput       `pulumi:"gpuCoreCount"`
	MemorySize       pulumi.IntPtrInput       `pulumi:"memorySize"`
	ResultOutputFile pulumi.StringPtrInput    `pulumi:"resultOutputFile"`
}

A collection of arguments for invoking getTypes.

func (GetTypesOutputArgs) ElementType

func (GetTypesOutputArgs) ElementType() reflect.Type

type GetTypesResult

type GetTypesResult struct {
	AvailabilityZone *string          `pulumi:"availabilityZone"`
	CpuCoreCount     *int             `pulumi:"cpuCoreCount"`
	ExcludeSoldOut   *bool            `pulumi:"excludeSoldOut"`
	Filters          []GetTypesFilter `pulumi:"filters"`
	GpuCoreCount     *int             `pulumi:"gpuCoreCount"`
	// The provider-assigned unique ID for this managed resource.
	Id               string                 `pulumi:"id"`
	InstanceTypes    []GetTypesInstanceType `pulumi:"instanceTypes"`
	MemorySize       *int                   `pulumi:"memorySize"`
	ResultOutputFile *string                `pulumi:"resultOutputFile"`
}

A collection of values returned by getTypes.

func GetTypes

func GetTypes(ctx *pulumi.Context, args *GetTypesArgs, opts ...pulumi.InvokeOption) (*GetTypesResult, error)

type GetTypesResultOutput

type GetTypesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getTypes.

func (GetTypesResultOutput) AvailabilityZone

func (o GetTypesResultOutput) AvailabilityZone() pulumi.StringPtrOutput

func (GetTypesResultOutput) CpuCoreCount

func (o GetTypesResultOutput) CpuCoreCount() pulumi.IntPtrOutput

func (GetTypesResultOutput) ElementType

func (GetTypesResultOutput) ElementType() reflect.Type

func (GetTypesResultOutput) ExcludeSoldOut

func (o GetTypesResultOutput) ExcludeSoldOut() pulumi.BoolPtrOutput

func (GetTypesResultOutput) Filters

func (GetTypesResultOutput) GpuCoreCount

func (o GetTypesResultOutput) GpuCoreCount() pulumi.IntPtrOutput

func (GetTypesResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetTypesResultOutput) InstanceTypes

func (GetTypesResultOutput) MemorySize

func (o GetTypesResultOutput) MemorySize() pulumi.IntPtrOutput

func (GetTypesResultOutput) ResultOutputFile

func (o GetTypesResultOutput) ResultOutputFile() pulumi.StringPtrOutput

func (GetTypesResultOutput) ToGetTypesResultOutput

func (o GetTypesResultOutput) ToGetTypesResultOutput() GetTypesResultOutput

func (GetTypesResultOutput) ToGetTypesResultOutputWithContext

func (o GetTypesResultOutput) ToGetTypesResultOutputWithContext(ctx context.Context) GetTypesResultOutput

type Instance

type Instance struct {
	pulumi.CustomResourceState

	// Associate a public IP address with an instance in a VPC or Classic. Boolean value, Default is false.
	AllocatePublicIp pulumi.BoolPtrOutput `pulumi:"allocatePublicIp"`
	// The available zone for the CVM instance.
	AvailabilityZone pulumi.StringOutput `pulumi:"availabilityZone"`
	// bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has
	// bandwidth_package_id.
	BandwidthPackageId pulumi.StringPtrOutput `pulumi:"bandwidthPackageId"`
	// CAM role name authorized to access.
	CamRoleName pulumi.StringPtrOutput `pulumi:"camRoleName"`
	// Id of cdh instance. Note: it only works when instance_charge_type is set to `CDHPAID`.
	CdhHostId pulumi.StringPtrOutput `pulumi:"cdhHostId"`
	// Type of instance created on cdh, the value of this parameter is in the format of CDH_XCXG based on the number of CPU
	// cores and memory capacity. Note: it only works when instance_charge_type is set to `CDHPAID`.
	CdhInstanceType pulumi.StringPtrOutput `pulumi:"cdhInstanceType"`
	// Create time of the instance.
	CreateTime pulumi.StringOutput `pulumi:"createTime"`
	// Settings for data disks.
	DataDisks InstanceDataDiskArrayOutput `pulumi:"dataDisks"`
	// Whether the termination protection is enabled. Default is `false`. If set true, which means that this instance can not
	// be deleted by an API action.
	DisableApiTermination pulumi.BoolPtrOutput `pulumi:"disableApiTermination"`
	// Disable enhance service for monitor, it is enabled by default. When this options is set, monitor agent won't be
	// installed. Modifying will cause the instance reset.
	DisableMonitorService pulumi.BoolPtrOutput `pulumi:"disableMonitorService"`
	// Disable enhance service for security, it is enabled by default. When this options is set, security agent won't be
	// installed. Modifying will cause the instance reset.
	DisableSecurityService pulumi.BoolPtrOutput `pulumi:"disableSecurityService"`
	// Expired time of the instance.
	ExpiredTime pulumi.StringOutput `pulumi:"expiredTime"`
	// Indicate whether to force delete the instance. Default is `false`. If set true, the instance will be permanently deleted
	// instead of being moved into the recycle bin. Note: only works for `PREPAID` instance.
	ForceDelete pulumi.BoolPtrOutput `pulumi:"forceDelete"`
	// The hostname of the instance. Windows instance: The name should be a combination of 2 to 15 characters comprised of
	// letters (case insensitive), numbers, and hyphens (-). Period (.) is not supported, and the name cannot be a string of
	// pure numbers. Other types (such as Linux) of instances: The name should be a combination of 2 to 60 characters,
	// supporting multiple periods (.). The piece between two periods is composed of letters (case insensitive), numbers, and
	// hyphens (-). Modifying will cause the instance reset.
	Hostname pulumi.StringPtrOutput `pulumi:"hostname"`
	// The image to use for the instance. Changing `image_id` will cause the instance reset.
	ImageId pulumi.StringOutput `pulumi:"imageId"`
	// The charge type of instance. Valid values are `PREPAID`, `POSTPAID_BY_HOUR`, `SPOTPAID` and `CDHPAID`. The default is
	// `POSTPAID_BY_HOUR`. Note: TencentCloud International only supports `POSTPAID_BY_HOUR` and `CDHPAID`. `PREPAID` instance
	// may not allow to delete before expired. `SPOTPAID` instance must set `spot_instance_type` and `spot_max_price` at the
	// same time. `CDHPAID` instance must set `cdh_instance_type` and `cdh_host_id`.
	InstanceChargeType pulumi.StringPtrOutput `pulumi:"instanceChargeType"`
	// The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when instance_charge_type is set to
	// `PREPAID`. Valid values are `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`, `11`, `12`, `24`, `36`.
	InstanceChargeTypePrepaidPeriod pulumi.IntPtrOutput `pulumi:"instanceChargeTypePrepaidPeriod"`
	// 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 instance_charge_type is set to `PREPAID`.
	InstanceChargeTypePrepaidRenewFlag pulumi.StringOutput `pulumi:"instanceChargeTypePrepaidRenewFlag"`
	// The number of instances to be purchased. Value range:[1,100]; default value: 1.
	//
	// Deprecated: It has been deprecated from version 1.59.18. Use built-in `count` instead.
	InstanceCount pulumi.IntPtrOutput `pulumi:"instanceCount"`
	// The name of the instance. The max length of instance_name is 60, and default value is `Terraform-CVM-Instance`.
	InstanceName pulumi.StringPtrOutput `pulumi:"instanceName"`
	// Current status of the instance.
	InstanceStatus pulumi.StringOutput `pulumi:"instanceStatus"`
	// The type of the instance.
	InstanceType pulumi.StringOutput `pulumi:"instanceType"`
	// Internet charge type of the instance, Valid values are `BANDWIDTH_PREPAID`, `TRAFFIC_POSTPAID_BY_HOUR`,
	// `BANDWIDTH_POSTPAID_BY_HOUR` and `BANDWIDTH_PACKAGE`. If not set, internet charge type are consistent with the cvm
	// charge type by default. This value takes NO Effect when changing and does not need to be set when `allocate_public_ip`
	// is false.
	InternetChargeType pulumi.StringOutput `pulumi:"internetChargeType"`
	// Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bits per second). This value does not need to
	// be set when `allocate_public_ip` is false.
	InternetMaxBandwidthOut pulumi.IntOutput `pulumi:"internetMaxBandwidthOut"`
	// Whether to keep image login or not, default is `false`. When the image type is private or shared or imported, this
	// parameter can be set `true`. Modifying will cause the instance reset.
	KeepImageLogin pulumi.BoolPtrOutput `pulumi:"keepImageLogin"`
	// The key pair to use for the instance, it looks like `skey-16jig7tx`. Modifying will cause the instance reset.
	KeyIds pulumi.StringArrayOutput `pulumi:"keyIds"`
	// The key pair to use for the instance, it looks like `skey-16jig7tx`. Modifying will cause the instance reset.
	//
	// Deprecated: Please use `key_ids` instead.
	KeyName pulumi.StringOutput `pulumi:"keyName"`
	// A list of orderly security group IDs to associate with.
	OrderlySecurityGroups pulumi.StringArrayOutput `pulumi:"orderlySecurityGroups"`
	// Password for the instance. In order for the new password to take effect, the instance will be restarted after the
	// password change. Modifying will cause the instance reset.
	Password pulumi.StringPtrOutput `pulumi:"password"`
	// The ID of a placement group.
	PlacementGroupId pulumi.StringPtrOutput `pulumi:"placementGroupId"`
	// The private IP to be assigned to this instance, must be in the provided subnet and available.
	PrivateIp pulumi.StringOutput `pulumi:"privateIp"`
	// The project the instance belongs to, default to 0.
	ProjectId pulumi.IntPtrOutput `pulumi:"projectId"`
	// Public IP of the instance.
	PublicIp pulumi.StringOutput `pulumi:"publicIp"`
	// Set instance to running or stop. Default value is true, the instance will shutdown when this flag is false.
	RunningFlag pulumi.BoolPtrOutput `pulumi:"runningFlag"`
	// A list of security group IDs to associate with.
	//
	// Deprecated: It will be deprecated. Use `orderly_security_groups` instead.
	SecurityGroups pulumi.StringArrayOutput `pulumi:"securityGroups"`
	// Type of spot instance, only support `ONE-TIME` now. Note: it only works when instance_charge_type is set to `SPOTPAID`.
	SpotInstanceType pulumi.StringPtrOutput `pulumi:"spotInstanceType"`
	// Max price of a spot instance, is the format of decimal string, for example "0.50". Note: it only works when
	// instance_charge_type is set to `SPOTPAID`.
	SpotMaxPrice pulumi.StringPtrOutput `pulumi:"spotMaxPrice"`
	// Billing method of a pay-as-you-go instance after shutdown. Available values: `KEEP_CHARGING`,`STOP_CHARGING`. Default
	// `KEEP_CHARGING`.
	StoppedMode pulumi.StringPtrOutput `pulumi:"stoppedMode"`
	// The ID of a VPC subnet. If you want to create instances in a VPC network, this parameter must be set.
	SubnetId pulumi.StringOutput `pulumi:"subnetId"`
	// System disk snapshot ID used to initialize the system disk. When system disk type is `LOCAL_BASIC` and `LOCAL_SSD`, disk
	// id is not supported.
	SystemDiskId pulumi.StringOutput `pulumi:"systemDiskId"`
	// Size of the system disk. unit is GB, Default is 50GB. If modified, the instance may force stop.
	SystemDiskSize pulumi.IntPtrOutput `pulumi:"systemDiskSize"`
	// System disk type. For more information on limits of system disk types, see [Storage
	// Overview](https://intl.cloud.tencent.com/document/product/213/4952). Valid values: `LOCAL_BASIC`: local disk,
	// `LOCAL_SSD`: local SSD disk, `CLOUD_BASIC`: cloud disk, `CLOUD_SSD`: cloud SSD disk, `CLOUD_PREMIUM`: Premium Cloud
	// Storage, `CLOUD_BSSD`: Basic SSD, `CLOUD_HSSD`: Enhanced SSD, `CLOUD_TSSD`: Tremendous SSD. NOTE: If modified, the
	// instance may force stop.
	SystemDiskType pulumi.StringPtrOutput `pulumi:"systemDiskType"`
	// A mapping of tags to assign to the resource. For tag limits, please refer to [Use
	// Limits](https://intl.cloud.tencent.com/document/product/651/13354).
	Tags pulumi.MapOutput `pulumi:"tags"`
	// The user data to be injected into this instance. Must be base64 encoded and up to 16 KB.
	UserData pulumi.StringPtrOutput `pulumi:"userData"`
	// The user data to be injected into this instance, in plain text. Conflicts with `user_data`. Up to 16 KB after base64
	// encoded.
	UserDataRaw pulumi.StringPtrOutput `pulumi:"userDataRaw"`
	// The ID of a VPC network. If you want to create instances in a VPC network, this parameter must be set.
	VpcId pulumi.StringOutput `pulumi:"vpcId"`
}

func GetInstance

func GetInstance(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *InstanceState, opts ...pulumi.ResourceOption) (*Instance, error)

GetInstance gets an existing Instance resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewInstance

func NewInstance(ctx *pulumi.Context,
	name string, args *InstanceArgs, opts ...pulumi.ResourceOption) (*Instance, error)

NewInstance registers a new resource with the given unique name, arguments, and options.

func (*Instance) ElementType

func (*Instance) ElementType() reflect.Type

func (*Instance) ToInstanceOutput

func (i *Instance) ToInstanceOutput() InstanceOutput

func (*Instance) ToInstanceOutputWithContext

func (i *Instance) ToInstanceOutputWithContext(ctx context.Context) InstanceOutput

type InstanceArgs

type InstanceArgs struct {
	// Associate a public IP address with an instance in a VPC or Classic. Boolean value, Default is false.
	AllocatePublicIp pulumi.BoolPtrInput
	// The available zone for the CVM instance.
	AvailabilityZone pulumi.StringInput
	// bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has
	// bandwidth_package_id.
	BandwidthPackageId pulumi.StringPtrInput
	// CAM role name authorized to access.
	CamRoleName pulumi.StringPtrInput
	// Id of cdh instance. Note: it only works when instance_charge_type is set to `CDHPAID`.
	CdhHostId pulumi.StringPtrInput
	// Type of instance created on cdh, the value of this parameter is in the format of CDH_XCXG based on the number of CPU
	// cores and memory capacity. Note: it only works when instance_charge_type is set to `CDHPAID`.
	CdhInstanceType pulumi.StringPtrInput
	// Settings for data disks.
	DataDisks InstanceDataDiskArrayInput
	// Whether the termination protection is enabled. Default is `false`. If set true, which means that this instance can not
	// be deleted by an API action.
	DisableApiTermination pulumi.BoolPtrInput
	// Disable enhance service for monitor, it is enabled by default. When this options is set, monitor agent won't be
	// installed. Modifying will cause the instance reset.
	DisableMonitorService pulumi.BoolPtrInput
	// Disable enhance service for security, it is enabled by default. When this options is set, security agent won't be
	// installed. Modifying will cause the instance reset.
	DisableSecurityService pulumi.BoolPtrInput
	// Indicate whether to force delete the instance. Default is `false`. If set true, the instance will be permanently deleted
	// instead of being moved into the recycle bin. Note: only works for `PREPAID` instance.
	ForceDelete pulumi.BoolPtrInput
	// The hostname of the instance. Windows instance: The name should be a combination of 2 to 15 characters comprised of
	// letters (case insensitive), numbers, and hyphens (-). Period (.) is not supported, and the name cannot be a string of
	// pure numbers. Other types (such as Linux) of instances: The name should be a combination of 2 to 60 characters,
	// supporting multiple periods (.). The piece between two periods is composed of letters (case insensitive), numbers, and
	// hyphens (-). Modifying will cause the instance reset.
	Hostname pulumi.StringPtrInput
	// The image to use for the instance. Changing `image_id` will cause the instance reset.
	ImageId pulumi.StringInput
	// The charge type of instance. Valid values are `PREPAID`, `POSTPAID_BY_HOUR`, `SPOTPAID` and `CDHPAID`. The default is
	// `POSTPAID_BY_HOUR`. Note: TencentCloud International only supports `POSTPAID_BY_HOUR` and `CDHPAID`. `PREPAID` instance
	// may not allow to delete before expired. `SPOTPAID` instance must set `spot_instance_type` and `spot_max_price` at the
	// same time. `CDHPAID` instance must set `cdh_instance_type` and `cdh_host_id`.
	InstanceChargeType pulumi.StringPtrInput
	// The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when instance_charge_type is set to
	// `PREPAID`. Valid values are `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`, `11`, `12`, `24`, `36`.
	InstanceChargeTypePrepaidPeriod pulumi.IntPtrInput
	// 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 instance_charge_type is set to `PREPAID`.
	InstanceChargeTypePrepaidRenewFlag pulumi.StringPtrInput
	// The number of instances to be purchased. Value range:[1,100]; default value: 1.
	//
	// Deprecated: It has been deprecated from version 1.59.18. Use built-in `count` instead.
	InstanceCount pulumi.IntPtrInput
	// The name of the instance. The max length of instance_name is 60, and default value is `Terraform-CVM-Instance`.
	InstanceName pulumi.StringPtrInput
	// The type of the instance.
	InstanceType pulumi.StringPtrInput
	// Internet charge type of the instance, Valid values are `BANDWIDTH_PREPAID`, `TRAFFIC_POSTPAID_BY_HOUR`,
	// `BANDWIDTH_POSTPAID_BY_HOUR` and `BANDWIDTH_PACKAGE`. If not set, internet charge type are consistent with the cvm
	// charge type by default. This value takes NO Effect when changing and does not need to be set when `allocate_public_ip`
	// is false.
	InternetChargeType pulumi.StringPtrInput
	// Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bits per second). This value does not need to
	// be set when `allocate_public_ip` is false.
	InternetMaxBandwidthOut pulumi.IntPtrInput
	// Whether to keep image login or not, default is `false`. When the image type is private or shared or imported, this
	// parameter can be set `true`. Modifying will cause the instance reset.
	KeepImageLogin pulumi.BoolPtrInput
	// The key pair to use for the instance, it looks like `skey-16jig7tx`. Modifying will cause the instance reset.
	KeyIds pulumi.StringArrayInput
	// The key pair to use for the instance, it looks like `skey-16jig7tx`. Modifying will cause the instance reset.
	//
	// Deprecated: Please use `key_ids` instead.
	KeyName pulumi.StringPtrInput
	// A list of orderly security group IDs to associate with.
	OrderlySecurityGroups pulumi.StringArrayInput
	// Password for the instance. In order for the new password to take effect, the instance will be restarted after the
	// password change. Modifying will cause the instance reset.
	Password pulumi.StringPtrInput
	// The ID of a placement group.
	PlacementGroupId pulumi.StringPtrInput
	// The private IP to be assigned to this instance, must be in the provided subnet and available.
	PrivateIp pulumi.StringPtrInput
	// The project the instance belongs to, default to 0.
	ProjectId pulumi.IntPtrInput
	// Set instance to running or stop. Default value is true, the instance will shutdown when this flag is false.
	RunningFlag pulumi.BoolPtrInput
	// A list of security group IDs to associate with.
	//
	// Deprecated: It will be deprecated. Use `orderly_security_groups` instead.
	SecurityGroups pulumi.StringArrayInput
	// Type of spot instance, only support `ONE-TIME` now. Note: it only works when instance_charge_type is set to `SPOTPAID`.
	SpotInstanceType pulumi.StringPtrInput
	// Max price of a spot instance, is the format of decimal string, for example "0.50". Note: it only works when
	// instance_charge_type is set to `SPOTPAID`.
	SpotMaxPrice pulumi.StringPtrInput
	// Billing method of a pay-as-you-go instance after shutdown. Available values: `KEEP_CHARGING`,`STOP_CHARGING`. Default
	// `KEEP_CHARGING`.
	StoppedMode pulumi.StringPtrInput
	// The ID of a VPC subnet. If you want to create instances in a VPC network, this parameter must be set.
	SubnetId pulumi.StringPtrInput
	// System disk snapshot ID used to initialize the system disk. When system disk type is `LOCAL_BASIC` and `LOCAL_SSD`, disk
	// id is not supported.
	SystemDiskId pulumi.StringPtrInput
	// Size of the system disk. unit is GB, Default is 50GB. If modified, the instance may force stop.
	SystemDiskSize pulumi.IntPtrInput
	// System disk type. For more information on limits of system disk types, see [Storage
	// Overview](https://intl.cloud.tencent.com/document/product/213/4952). Valid values: `LOCAL_BASIC`: local disk,
	// `LOCAL_SSD`: local SSD disk, `CLOUD_BASIC`: cloud disk, `CLOUD_SSD`: cloud SSD disk, `CLOUD_PREMIUM`: Premium Cloud
	// Storage, `CLOUD_BSSD`: Basic SSD, `CLOUD_HSSD`: Enhanced SSD, `CLOUD_TSSD`: Tremendous SSD. NOTE: If modified, the
	// instance may force stop.
	SystemDiskType pulumi.StringPtrInput
	// A mapping of tags to assign to the resource. For tag limits, please refer to [Use
	// Limits](https://intl.cloud.tencent.com/document/product/651/13354).
	Tags pulumi.MapInput
	// The user data to be injected into this instance. Must be base64 encoded and up to 16 KB.
	UserData pulumi.StringPtrInput
	// The user data to be injected into this instance, in plain text. Conflicts with `user_data`. Up to 16 KB after base64
	// encoded.
	UserDataRaw pulumi.StringPtrInput
	// The ID of a VPC network. If you want to create instances in a VPC network, this parameter must be set.
	VpcId pulumi.StringPtrInput
}

The set of arguments for constructing a Instance resource.

func (InstanceArgs) ElementType

func (InstanceArgs) ElementType() reflect.Type

type InstanceArray

type InstanceArray []InstanceInput

func (InstanceArray) ElementType

func (InstanceArray) ElementType() reflect.Type

func (InstanceArray) ToInstanceArrayOutput

func (i InstanceArray) ToInstanceArrayOutput() InstanceArrayOutput

func (InstanceArray) ToInstanceArrayOutputWithContext

func (i InstanceArray) ToInstanceArrayOutputWithContext(ctx context.Context) InstanceArrayOutput

type InstanceArrayInput

type InstanceArrayInput interface {
	pulumi.Input

	ToInstanceArrayOutput() InstanceArrayOutput
	ToInstanceArrayOutputWithContext(context.Context) InstanceArrayOutput
}

InstanceArrayInput is an input type that accepts InstanceArray and InstanceArrayOutput values. You can construct a concrete instance of `InstanceArrayInput` via:

InstanceArray{ InstanceArgs{...} }

type InstanceArrayOutput

type InstanceArrayOutput struct{ *pulumi.OutputState }

func (InstanceArrayOutput) ElementType

func (InstanceArrayOutput) ElementType() reflect.Type

func (InstanceArrayOutput) Index

func (InstanceArrayOutput) ToInstanceArrayOutput

func (o InstanceArrayOutput) ToInstanceArrayOutput() InstanceArrayOutput

func (InstanceArrayOutput) ToInstanceArrayOutputWithContext

func (o InstanceArrayOutput) ToInstanceArrayOutputWithContext(ctx context.Context) InstanceArrayOutput

type InstanceDataDisk

type InstanceDataDisk struct {
	DataDiskId            *string `pulumi:"dataDiskId"`
	DataDiskSize          int     `pulumi:"dataDiskSize"`
	DataDiskSnapshotId    *string `pulumi:"dataDiskSnapshotId"`
	DataDiskType          string  `pulumi:"dataDiskType"`
	DeleteWithInstance    *bool   `pulumi:"deleteWithInstance"`
	Encrypt               *bool   `pulumi:"encrypt"`
	ThroughputPerformance *int    `pulumi:"throughputPerformance"`
}

type InstanceDataDiskArgs

type InstanceDataDiskArgs struct {
	DataDiskId            pulumi.StringPtrInput `pulumi:"dataDiskId"`
	DataDiskSize          pulumi.IntInput       `pulumi:"dataDiskSize"`
	DataDiskSnapshotId    pulumi.StringPtrInput `pulumi:"dataDiskSnapshotId"`
	DataDiskType          pulumi.StringInput    `pulumi:"dataDiskType"`
	DeleteWithInstance    pulumi.BoolPtrInput   `pulumi:"deleteWithInstance"`
	Encrypt               pulumi.BoolPtrInput   `pulumi:"encrypt"`
	ThroughputPerformance pulumi.IntPtrInput    `pulumi:"throughputPerformance"`
}

func (InstanceDataDiskArgs) ElementType

func (InstanceDataDiskArgs) ElementType() reflect.Type

func (InstanceDataDiskArgs) ToInstanceDataDiskOutput

func (i InstanceDataDiskArgs) ToInstanceDataDiskOutput() InstanceDataDiskOutput

func (InstanceDataDiskArgs) ToInstanceDataDiskOutputWithContext

func (i InstanceDataDiskArgs) ToInstanceDataDiskOutputWithContext(ctx context.Context) InstanceDataDiskOutput

type InstanceDataDiskArray

type InstanceDataDiskArray []InstanceDataDiskInput

func (InstanceDataDiskArray) ElementType

func (InstanceDataDiskArray) ElementType() reflect.Type

func (InstanceDataDiskArray) ToInstanceDataDiskArrayOutput

func (i InstanceDataDiskArray) ToInstanceDataDiskArrayOutput() InstanceDataDiskArrayOutput

func (InstanceDataDiskArray) ToInstanceDataDiskArrayOutputWithContext

func (i InstanceDataDiskArray) ToInstanceDataDiskArrayOutputWithContext(ctx context.Context) InstanceDataDiskArrayOutput

type InstanceDataDiskArrayInput

type InstanceDataDiskArrayInput interface {
	pulumi.Input

	ToInstanceDataDiskArrayOutput() InstanceDataDiskArrayOutput
	ToInstanceDataDiskArrayOutputWithContext(context.Context) InstanceDataDiskArrayOutput
}

InstanceDataDiskArrayInput is an input type that accepts InstanceDataDiskArray and InstanceDataDiskArrayOutput values. You can construct a concrete instance of `InstanceDataDiskArrayInput` via:

InstanceDataDiskArray{ InstanceDataDiskArgs{...} }

type InstanceDataDiskArrayOutput

type InstanceDataDiskArrayOutput struct{ *pulumi.OutputState }

func (InstanceDataDiskArrayOutput) ElementType

func (InstanceDataDiskArrayOutput) Index

func (InstanceDataDiskArrayOutput) ToInstanceDataDiskArrayOutput

func (o InstanceDataDiskArrayOutput) ToInstanceDataDiskArrayOutput() InstanceDataDiskArrayOutput

func (InstanceDataDiskArrayOutput) ToInstanceDataDiskArrayOutputWithContext

func (o InstanceDataDiskArrayOutput) ToInstanceDataDiskArrayOutputWithContext(ctx context.Context) InstanceDataDiskArrayOutput

type InstanceDataDiskInput

type InstanceDataDiskInput interface {
	pulumi.Input

	ToInstanceDataDiskOutput() InstanceDataDiskOutput
	ToInstanceDataDiskOutputWithContext(context.Context) InstanceDataDiskOutput
}

InstanceDataDiskInput is an input type that accepts InstanceDataDiskArgs and InstanceDataDiskOutput values. You can construct a concrete instance of `InstanceDataDiskInput` via:

InstanceDataDiskArgs{...}

type InstanceDataDiskOutput

type InstanceDataDiskOutput struct{ *pulumi.OutputState }

func (InstanceDataDiskOutput) DataDiskId

func (InstanceDataDiskOutput) DataDiskSize

func (o InstanceDataDiskOutput) DataDiskSize() pulumi.IntOutput

func (InstanceDataDiskOutput) DataDiskSnapshotId

func (o InstanceDataDiskOutput) DataDiskSnapshotId() pulumi.StringPtrOutput

func (InstanceDataDiskOutput) DataDiskType

func (o InstanceDataDiskOutput) DataDiskType() pulumi.StringOutput

func (InstanceDataDiskOutput) DeleteWithInstance

func (o InstanceDataDiskOutput) DeleteWithInstance() pulumi.BoolPtrOutput

func (InstanceDataDiskOutput) ElementType

func (InstanceDataDiskOutput) ElementType() reflect.Type

func (InstanceDataDiskOutput) Encrypt

func (InstanceDataDiskOutput) ThroughputPerformance

func (o InstanceDataDiskOutput) ThroughputPerformance() pulumi.IntPtrOutput

func (InstanceDataDiskOutput) ToInstanceDataDiskOutput

func (o InstanceDataDiskOutput) ToInstanceDataDiskOutput() InstanceDataDiskOutput

func (InstanceDataDiskOutput) ToInstanceDataDiskOutputWithContext

func (o InstanceDataDiskOutput) ToInstanceDataDiskOutputWithContext(ctx context.Context) InstanceDataDiskOutput

type InstanceInput

type InstanceInput interface {
	pulumi.Input

	ToInstanceOutput() InstanceOutput
	ToInstanceOutputWithContext(ctx context.Context) InstanceOutput
}

type InstanceMap

type InstanceMap map[string]InstanceInput

func (InstanceMap) ElementType

func (InstanceMap) ElementType() reflect.Type

func (InstanceMap) ToInstanceMapOutput

func (i InstanceMap) ToInstanceMapOutput() InstanceMapOutput

func (InstanceMap) ToInstanceMapOutputWithContext

func (i InstanceMap) ToInstanceMapOutputWithContext(ctx context.Context) InstanceMapOutput

type InstanceMapInput

type InstanceMapInput interface {
	pulumi.Input

	ToInstanceMapOutput() InstanceMapOutput
	ToInstanceMapOutputWithContext(context.Context) InstanceMapOutput
}

InstanceMapInput is an input type that accepts InstanceMap and InstanceMapOutput values. You can construct a concrete instance of `InstanceMapInput` via:

InstanceMap{ "key": InstanceArgs{...} }

type InstanceMapOutput

type InstanceMapOutput struct{ *pulumi.OutputState }

func (InstanceMapOutput) ElementType

func (InstanceMapOutput) ElementType() reflect.Type

func (InstanceMapOutput) MapIndex

func (InstanceMapOutput) ToInstanceMapOutput

func (o InstanceMapOutput) ToInstanceMapOutput() InstanceMapOutput

func (InstanceMapOutput) ToInstanceMapOutputWithContext

func (o InstanceMapOutput) ToInstanceMapOutputWithContext(ctx context.Context) InstanceMapOutput

type InstanceOutput

type InstanceOutput struct{ *pulumi.OutputState }

func (InstanceOutput) AllocatePublicIp

func (o InstanceOutput) AllocatePublicIp() pulumi.BoolPtrOutput

Associate a public IP address with an instance in a VPC or Classic. Boolean value, Default is false.

func (InstanceOutput) AvailabilityZone

func (o InstanceOutput) AvailabilityZone() pulumi.StringOutput

The available zone for the CVM instance.

func (InstanceOutput) BandwidthPackageId

func (o InstanceOutput) BandwidthPackageId() pulumi.StringPtrOutput

bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has bandwidth_package_id.

func (InstanceOutput) CamRoleName

func (o InstanceOutput) CamRoleName() pulumi.StringPtrOutput

CAM role name authorized to access.

func (InstanceOutput) CdhHostId

func (o InstanceOutput) CdhHostId() pulumi.StringPtrOutput

Id of cdh instance. Note: it only works when instance_charge_type is set to `CDHPAID`.

func (InstanceOutput) CdhInstanceType

func (o InstanceOutput) CdhInstanceType() pulumi.StringPtrOutput

Type of instance created on cdh, the value of this parameter is in the format of CDH_XCXG based on the number of CPU cores and memory capacity. Note: it only works when instance_charge_type is set to `CDHPAID`.

func (InstanceOutput) CreateTime

func (o InstanceOutput) CreateTime() pulumi.StringOutput

Create time of the instance.

func (InstanceOutput) DataDisks

Settings for data disks.

func (InstanceOutput) DisableApiTermination

func (o InstanceOutput) DisableApiTermination() pulumi.BoolPtrOutput

Whether the termination protection is enabled. Default is `false`. If set true, which means that this instance can not be deleted by an API action.

func (InstanceOutput) DisableMonitorService

func (o InstanceOutput) DisableMonitorService() pulumi.BoolPtrOutput

Disable enhance service for monitor, it is enabled by default. When this options is set, monitor agent won't be installed. Modifying will cause the instance reset.

func (InstanceOutput) DisableSecurityService

func (o InstanceOutput) DisableSecurityService() pulumi.BoolPtrOutput

Disable enhance service for security, it is enabled by default. When this options is set, security agent won't be installed. Modifying will cause the instance reset.

func (InstanceOutput) ElementType

func (InstanceOutput) ElementType() reflect.Type

func (InstanceOutput) ExpiredTime

func (o InstanceOutput) ExpiredTime() pulumi.StringOutput

Expired time of the instance.

func (InstanceOutput) ForceDelete

func (o InstanceOutput) ForceDelete() pulumi.BoolPtrOutput

Indicate whether to force delete the instance. Default is `false`. If set true, the instance will be permanently deleted instead of being moved into the recycle bin. Note: only works for `PREPAID` instance.

func (InstanceOutput) Hostname

func (o InstanceOutput) Hostname() pulumi.StringPtrOutput

The hostname of the instance. Windows instance: The name should be a combination of 2 to 15 characters comprised of letters (case insensitive), numbers, and hyphens (-). Period (.) is not supported, and the name cannot be a string of pure numbers. Other types (such as Linux) of instances: The name should be a combination of 2 to 60 characters, supporting multiple periods (.). The piece between two periods is composed of letters (case insensitive), numbers, and hyphens (-). Modifying will cause the instance reset.

func (InstanceOutput) ImageId

func (o InstanceOutput) ImageId() pulumi.StringOutput

The image to use for the instance. Changing `image_id` will cause the instance reset.

func (InstanceOutput) InstanceChargeType

func (o InstanceOutput) InstanceChargeType() pulumi.StringPtrOutput

The charge type of instance. Valid values are `PREPAID`, `POSTPAID_BY_HOUR`, `SPOTPAID` and `CDHPAID`. The default is `POSTPAID_BY_HOUR`. Note: TencentCloud International only supports `POSTPAID_BY_HOUR` and `CDHPAID`. `PREPAID` instance may not allow to delete before expired. `SPOTPAID` instance must set `spot_instance_type` and `spot_max_price` at the same time. `CDHPAID` instance must set `cdh_instance_type` and `cdh_host_id`.

func (InstanceOutput) InstanceChargeTypePrepaidPeriod

func (o InstanceOutput) InstanceChargeTypePrepaidPeriod() pulumi.IntPtrOutput

The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when instance_charge_type is set to `PREPAID`. Valid values are `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`, `11`, `12`, `24`, `36`.

func (InstanceOutput) InstanceChargeTypePrepaidRenewFlag

func (o InstanceOutput) InstanceChargeTypePrepaidRenewFlag() pulumi.StringOutput

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 instance_charge_type is set to `PREPAID`.

func (InstanceOutput) InstanceCount deprecated

func (o InstanceOutput) InstanceCount() pulumi.IntPtrOutput

The number of instances to be purchased. Value range:[1,100]; default value: 1.

Deprecated: It has been deprecated from version 1.59.18. Use built-in `count` instead.

func (InstanceOutput) InstanceName

func (o InstanceOutput) InstanceName() pulumi.StringPtrOutput

The name of the instance. The max length of instance_name is 60, and default value is `Terraform-CVM-Instance`.

func (InstanceOutput) InstanceStatus

func (o InstanceOutput) InstanceStatus() pulumi.StringOutput

Current status of the instance.

func (InstanceOutput) InstanceType

func (o InstanceOutput) InstanceType() pulumi.StringOutput

The type of the instance.

func (InstanceOutput) InternetChargeType

func (o InstanceOutput) InternetChargeType() pulumi.StringOutput

Internet charge type of the instance, Valid values are `BANDWIDTH_PREPAID`, `TRAFFIC_POSTPAID_BY_HOUR`, `BANDWIDTH_POSTPAID_BY_HOUR` and `BANDWIDTH_PACKAGE`. If not set, internet charge type are consistent with the cvm charge type by default. This value takes NO Effect when changing and does not need to be set when `allocate_public_ip` is false.

func (InstanceOutput) InternetMaxBandwidthOut

func (o InstanceOutput) InternetMaxBandwidthOut() pulumi.IntOutput

Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bits per second). This value does not need to be set when `allocate_public_ip` is false.

func (InstanceOutput) KeepImageLogin

func (o InstanceOutput) KeepImageLogin() pulumi.BoolPtrOutput

Whether to keep image login or not, default is `false`. When the image type is private or shared or imported, this parameter can be set `true`. Modifying will cause the instance reset.

func (InstanceOutput) KeyIds

The key pair to use for the instance, it looks like `skey-16jig7tx`. Modifying will cause the instance reset.

func (InstanceOutput) KeyName deprecated

func (o InstanceOutput) KeyName() pulumi.StringOutput

The key pair to use for the instance, it looks like `skey-16jig7tx`. Modifying will cause the instance reset.

Deprecated: Please use `key_ids` instead.

func (InstanceOutput) OrderlySecurityGroups

func (o InstanceOutput) OrderlySecurityGroups() pulumi.StringArrayOutput

A list of orderly security group IDs to associate with.

func (InstanceOutput) Password

func (o InstanceOutput) Password() pulumi.StringPtrOutput

Password for the instance. In order for the new password to take effect, the instance will be restarted after the password change. Modifying will cause the instance reset.

func (InstanceOutput) PlacementGroupId

func (o InstanceOutput) PlacementGroupId() pulumi.StringPtrOutput

The ID of a placement group.

func (InstanceOutput) PrivateIp

func (o InstanceOutput) PrivateIp() pulumi.StringOutput

The private IP to be assigned to this instance, must be in the provided subnet and available.

func (InstanceOutput) ProjectId

func (o InstanceOutput) ProjectId() pulumi.IntPtrOutput

The project the instance belongs to, default to 0.

func (InstanceOutput) PublicIp

func (o InstanceOutput) PublicIp() pulumi.StringOutput

Public IP of the instance.

func (InstanceOutput) RunningFlag

func (o InstanceOutput) RunningFlag() pulumi.BoolPtrOutput

Set instance to running or stop. Default value is true, the instance will shutdown when this flag is false.

func (InstanceOutput) SecurityGroups deprecated

func (o InstanceOutput) SecurityGroups() pulumi.StringArrayOutput

A list of security group IDs to associate with.

Deprecated: It will be deprecated. Use `orderly_security_groups` instead.

func (InstanceOutput) SpotInstanceType

func (o InstanceOutput) SpotInstanceType() pulumi.StringPtrOutput

Type of spot instance, only support `ONE-TIME` now. Note: it only works when instance_charge_type is set to `SPOTPAID`.

func (InstanceOutput) SpotMaxPrice

func (o InstanceOutput) SpotMaxPrice() pulumi.StringPtrOutput

Max price of a spot instance, is the format of decimal string, for example "0.50". Note: it only works when instance_charge_type is set to `SPOTPAID`.

func (InstanceOutput) StoppedMode

func (o InstanceOutput) StoppedMode() pulumi.StringPtrOutput

Billing method of a pay-as-you-go instance after shutdown. Available values: `KEEP_CHARGING`,`STOP_CHARGING`. Default `KEEP_CHARGING`.

func (InstanceOutput) SubnetId

func (o InstanceOutput) SubnetId() pulumi.StringOutput

The ID of a VPC subnet. If you want to create instances in a VPC network, this parameter must be set.

func (InstanceOutput) SystemDiskId

func (o InstanceOutput) SystemDiskId() pulumi.StringOutput

System disk snapshot ID used to initialize the system disk. When system disk type is `LOCAL_BASIC` and `LOCAL_SSD`, disk id is not supported.

func (InstanceOutput) SystemDiskSize

func (o InstanceOutput) SystemDiskSize() pulumi.IntPtrOutput

Size of the system disk. unit is GB, Default is 50GB. If modified, the instance may force stop.

func (InstanceOutput) SystemDiskType

func (o InstanceOutput) SystemDiskType() pulumi.StringPtrOutput

System disk type. For more information on limits of system disk types, see [Storage Overview](https://intl.cloud.tencent.com/document/product/213/4952). Valid values: `LOCAL_BASIC`: local disk, `LOCAL_SSD`: local SSD disk, `CLOUD_BASIC`: cloud disk, `CLOUD_SSD`: cloud SSD disk, `CLOUD_PREMIUM`: Premium Cloud Storage, `CLOUD_BSSD`: Basic SSD, `CLOUD_HSSD`: Enhanced SSD, `CLOUD_TSSD`: Tremendous SSD. NOTE: If modified, the instance may force stop.

func (InstanceOutput) Tags

func (o InstanceOutput) Tags() pulumi.MapOutput

A mapping of tags to assign to the resource. For tag limits, please refer to [Use Limits](https://intl.cloud.tencent.com/document/product/651/13354).

func (InstanceOutput) ToInstanceOutput

func (o InstanceOutput) ToInstanceOutput() InstanceOutput

func (InstanceOutput) ToInstanceOutputWithContext

func (o InstanceOutput) ToInstanceOutputWithContext(ctx context.Context) InstanceOutput

func (InstanceOutput) UserData

func (o InstanceOutput) UserData() pulumi.StringPtrOutput

The user data to be injected into this instance. Must be base64 encoded and up to 16 KB.

func (InstanceOutput) UserDataRaw

func (o InstanceOutput) UserDataRaw() pulumi.StringPtrOutput

The user data to be injected into this instance, in plain text. Conflicts with `user_data`. Up to 16 KB after base64 encoded.

func (InstanceOutput) VpcId

The ID of a VPC network. If you want to create instances in a VPC network, this parameter must be set.

type InstanceState

type InstanceState struct {
	// Associate a public IP address with an instance in a VPC or Classic. Boolean value, Default is false.
	AllocatePublicIp pulumi.BoolPtrInput
	// The available zone for the CVM instance.
	AvailabilityZone pulumi.StringPtrInput
	// bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has
	// bandwidth_package_id.
	BandwidthPackageId pulumi.StringPtrInput
	// CAM role name authorized to access.
	CamRoleName pulumi.StringPtrInput
	// Id of cdh instance. Note: it only works when instance_charge_type is set to `CDHPAID`.
	CdhHostId pulumi.StringPtrInput
	// Type of instance created on cdh, the value of this parameter is in the format of CDH_XCXG based on the number of CPU
	// cores and memory capacity. Note: it only works when instance_charge_type is set to `CDHPAID`.
	CdhInstanceType pulumi.StringPtrInput
	// Create time of the instance.
	CreateTime pulumi.StringPtrInput
	// Settings for data disks.
	DataDisks InstanceDataDiskArrayInput
	// Whether the termination protection is enabled. Default is `false`. If set true, which means that this instance can not
	// be deleted by an API action.
	DisableApiTermination pulumi.BoolPtrInput
	// Disable enhance service for monitor, it is enabled by default. When this options is set, monitor agent won't be
	// installed. Modifying will cause the instance reset.
	DisableMonitorService pulumi.BoolPtrInput
	// Disable enhance service for security, it is enabled by default. When this options is set, security agent won't be
	// installed. Modifying will cause the instance reset.
	DisableSecurityService pulumi.BoolPtrInput
	// Expired time of the instance.
	ExpiredTime pulumi.StringPtrInput
	// Indicate whether to force delete the instance. Default is `false`. If set true, the instance will be permanently deleted
	// instead of being moved into the recycle bin. Note: only works for `PREPAID` instance.
	ForceDelete pulumi.BoolPtrInput
	// The hostname of the instance. Windows instance: The name should be a combination of 2 to 15 characters comprised of
	// letters (case insensitive), numbers, and hyphens (-). Period (.) is not supported, and the name cannot be a string of
	// pure numbers. Other types (such as Linux) of instances: The name should be a combination of 2 to 60 characters,
	// supporting multiple periods (.). The piece between two periods is composed of letters (case insensitive), numbers, and
	// hyphens (-). Modifying will cause the instance reset.
	Hostname pulumi.StringPtrInput
	// The image to use for the instance. Changing `image_id` will cause the instance reset.
	ImageId pulumi.StringPtrInput
	// The charge type of instance. Valid values are `PREPAID`, `POSTPAID_BY_HOUR`, `SPOTPAID` and `CDHPAID`. The default is
	// `POSTPAID_BY_HOUR`. Note: TencentCloud International only supports `POSTPAID_BY_HOUR` and `CDHPAID`. `PREPAID` instance
	// may not allow to delete before expired. `SPOTPAID` instance must set `spot_instance_type` and `spot_max_price` at the
	// same time. `CDHPAID` instance must set `cdh_instance_type` and `cdh_host_id`.
	InstanceChargeType pulumi.StringPtrInput
	// The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when instance_charge_type is set to
	// `PREPAID`. Valid values are `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`, `11`, `12`, `24`, `36`.
	InstanceChargeTypePrepaidPeriod pulumi.IntPtrInput
	// 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 instance_charge_type is set to `PREPAID`.
	InstanceChargeTypePrepaidRenewFlag pulumi.StringPtrInput
	// The number of instances to be purchased. Value range:[1,100]; default value: 1.
	//
	// Deprecated: It has been deprecated from version 1.59.18. Use built-in `count` instead.
	InstanceCount pulumi.IntPtrInput
	// The name of the instance. The max length of instance_name is 60, and default value is `Terraform-CVM-Instance`.
	InstanceName pulumi.StringPtrInput
	// Current status of the instance.
	InstanceStatus pulumi.StringPtrInput
	// The type of the instance.
	InstanceType pulumi.StringPtrInput
	// Internet charge type of the instance, Valid values are `BANDWIDTH_PREPAID`, `TRAFFIC_POSTPAID_BY_HOUR`,
	// `BANDWIDTH_POSTPAID_BY_HOUR` and `BANDWIDTH_PACKAGE`. If not set, internet charge type are consistent with the cvm
	// charge type by default. This value takes NO Effect when changing and does not need to be set when `allocate_public_ip`
	// is false.
	InternetChargeType pulumi.StringPtrInput
	// Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bits per second). This value does not need to
	// be set when `allocate_public_ip` is false.
	InternetMaxBandwidthOut pulumi.IntPtrInput
	// Whether to keep image login or not, default is `false`. When the image type is private or shared or imported, this
	// parameter can be set `true`. Modifying will cause the instance reset.
	KeepImageLogin pulumi.BoolPtrInput
	// The key pair to use for the instance, it looks like `skey-16jig7tx`. Modifying will cause the instance reset.
	KeyIds pulumi.StringArrayInput
	// The key pair to use for the instance, it looks like `skey-16jig7tx`. Modifying will cause the instance reset.
	//
	// Deprecated: Please use `key_ids` instead.
	KeyName pulumi.StringPtrInput
	// A list of orderly security group IDs to associate with.
	OrderlySecurityGroups pulumi.StringArrayInput
	// Password for the instance. In order for the new password to take effect, the instance will be restarted after the
	// password change. Modifying will cause the instance reset.
	Password pulumi.StringPtrInput
	// The ID of a placement group.
	PlacementGroupId pulumi.StringPtrInput
	// The private IP to be assigned to this instance, must be in the provided subnet and available.
	PrivateIp pulumi.StringPtrInput
	// The project the instance belongs to, default to 0.
	ProjectId pulumi.IntPtrInput
	// Public IP of the instance.
	PublicIp pulumi.StringPtrInput
	// Set instance to running or stop. Default value is true, the instance will shutdown when this flag is false.
	RunningFlag pulumi.BoolPtrInput
	// A list of security group IDs to associate with.
	//
	// Deprecated: It will be deprecated. Use `orderly_security_groups` instead.
	SecurityGroups pulumi.StringArrayInput
	// Type of spot instance, only support `ONE-TIME` now. Note: it only works when instance_charge_type is set to `SPOTPAID`.
	SpotInstanceType pulumi.StringPtrInput
	// Max price of a spot instance, is the format of decimal string, for example "0.50". Note: it only works when
	// instance_charge_type is set to `SPOTPAID`.
	SpotMaxPrice pulumi.StringPtrInput
	// Billing method of a pay-as-you-go instance after shutdown. Available values: `KEEP_CHARGING`,`STOP_CHARGING`. Default
	// `KEEP_CHARGING`.
	StoppedMode pulumi.StringPtrInput
	// The ID of a VPC subnet. If you want to create instances in a VPC network, this parameter must be set.
	SubnetId pulumi.StringPtrInput
	// System disk snapshot ID used to initialize the system disk. When system disk type is `LOCAL_BASIC` and `LOCAL_SSD`, disk
	// id is not supported.
	SystemDiskId pulumi.StringPtrInput
	// Size of the system disk. unit is GB, Default is 50GB. If modified, the instance may force stop.
	SystemDiskSize pulumi.IntPtrInput
	// System disk type. For more information on limits of system disk types, see [Storage
	// Overview](https://intl.cloud.tencent.com/document/product/213/4952). Valid values: `LOCAL_BASIC`: local disk,
	// `LOCAL_SSD`: local SSD disk, `CLOUD_BASIC`: cloud disk, `CLOUD_SSD`: cloud SSD disk, `CLOUD_PREMIUM`: Premium Cloud
	// Storage, `CLOUD_BSSD`: Basic SSD, `CLOUD_HSSD`: Enhanced SSD, `CLOUD_TSSD`: Tremendous SSD. NOTE: If modified, the
	// instance may force stop.
	SystemDiskType pulumi.StringPtrInput
	// A mapping of tags to assign to the resource. For tag limits, please refer to [Use
	// Limits](https://intl.cloud.tencent.com/document/product/651/13354).
	Tags pulumi.MapInput
	// The user data to be injected into this instance. Must be base64 encoded and up to 16 KB.
	UserData pulumi.StringPtrInput
	// The user data to be injected into this instance, in plain text. Conflicts with `user_data`. Up to 16 KB after base64
	// encoded.
	UserDataRaw pulumi.StringPtrInput
	// The ID of a VPC network. If you want to create instances in a VPC network, this parameter must be set.
	VpcId pulumi.StringPtrInput
}

func (InstanceState) ElementType

func (InstanceState) ElementType() reflect.Type

type Set

type Set struct {
	pulumi.CustomResourceState

	// Associate a public IP address with an instance in a VPC or Classic. Boolean value, Default is false.
	AllocatePublicIp pulumi.BoolPtrOutput `pulumi:"allocatePublicIp"`
	// The available zone for the CVM instance.
	AvailabilityZone pulumi.StringOutput `pulumi:"availabilityZone"`
	// bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has
	// bandwidth_package_id.
	BandwidthPackageId pulumi.StringPtrOutput `pulumi:"bandwidthPackageId"`
	// CAM role name authorized to access.
	CamRoleName pulumi.StringPtrOutput `pulumi:"camRoleName"`
	// Create time of the instance.
	CreateTime pulumi.StringOutput `pulumi:"createTime"`
	// Disable enhance service for monitor, it is enabled by default. When this options is set, monitor agent won't be
	// installed. Modifying will cause the instance reset.
	DisableMonitorService pulumi.BoolPtrOutput `pulumi:"disableMonitorService"`
	// Disable enhance service for security, it is enabled by default. When this options is set, security agent won't be
	// installed. Modifying will cause the instance reset.
	DisableSecurityService pulumi.BoolPtrOutput `pulumi:"disableSecurityService"`
	// instance ids list to exclude.
	ExcludeInstanceIds pulumi.StringArrayOutput `pulumi:"excludeInstanceIds"`
	// Expired time of the instance.
	ExpiredTime pulumi.StringOutput `pulumi:"expiredTime"`
	// The hostname of the instance. Windows instance: The name should be a combination of 2 to 15 characters comprised of
	// letters (case insensitive), numbers, and hyphens (-). Period (.) is not supported, and the name cannot be a string of
	// pure numbers. Other types (such as Linux) of instances: The name should be a combination of 2 to 60 characters,
	// supporting multiple periods (.). The piece between two periods is composed of letters (case insensitive), numbers, and
	// hyphens (-). Modifying will cause the instance reset.
	Hostname pulumi.StringPtrOutput `pulumi:"hostname"`
	// The image to use for the instance. Changing `image_id` will cause the instance reset.
	ImageId pulumi.StringOutput `pulumi:"imageId"`
	// The charge type of instance. Only support `POSTPAID_BY_HOUR`.
	InstanceChargeType pulumi.StringPtrOutput `pulumi:"instanceChargeType"`
	// The number of instances to be purchased. Value range:[1,100]; default value: 1.
	InstanceCount pulumi.IntPtrOutput `pulumi:"instanceCount"`
	// instance id list.
	InstanceIds pulumi.StringArrayOutput `pulumi:"instanceIds"`
	// The name of the instance. The max length of instance_name is 60, and default value is `Terraform-CVM-Instance`.
	InstanceName pulumi.StringPtrOutput `pulumi:"instanceName"`
	// Current status of the instance.
	InstanceStatus pulumi.StringOutput `pulumi:"instanceStatus"`
	// The type of the instance.
	InstanceType pulumi.StringOutput `pulumi:"instanceType"`
	// Internet charge type of the instance, Valid values are `BANDWIDTH_PREPAID`, `TRAFFIC_POSTPAID_BY_HOUR`,
	// `BANDWIDTH_POSTPAID_BY_HOUR` and `BANDWIDTH_PACKAGE`. This value does not need to be set when `allocate_public_ip` is
	// false.
	InternetChargeType pulumi.StringOutput `pulumi:"internetChargeType"`
	// Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bits per second). This value does not need to
	// be set when `allocate_public_ip` is false.
	InternetMaxBandwidthOut pulumi.IntOutput `pulumi:"internetMaxBandwidthOut"`
	// Whether to keep image login or not, default is `false`. When the image type is private or shared or imported, this
	// parameter can be set `true`. Modifying will cause the instance reset.
	KeepImageLogin pulumi.BoolPtrOutput `pulumi:"keepImageLogin"`
	// The key pair to use for the instance, it looks like `skey-16jig7tx`. Modifying will cause the instance reset.
	KeyName pulumi.StringOutput `pulumi:"keyName"`
	// Password for the instance. In order for the new password to take effect, the instance will be restarted after the
	// password change. Modifying will cause the instance reset.
	Password pulumi.StringPtrOutput `pulumi:"password"`
	// The ID of a placement group.
	PlacementGroupId pulumi.StringPtrOutput `pulumi:"placementGroupId"`
	// The private IP to be assigned to this instance, must be in the provided subnet and available.
	PrivateIp pulumi.StringOutput `pulumi:"privateIp"`
	// The project the instance belongs to, default to 0.
	ProjectId pulumi.IntPtrOutput `pulumi:"projectId"`
	// Public IP of the instance.
	PublicIp pulumi.StringOutput `pulumi:"publicIp"`
	// A list of security group IDs to associate with.
	SecurityGroups pulumi.StringArrayOutput `pulumi:"securityGroups"`
	// The ID of a VPC subnet. If you want to create instances in a VPC network, this parameter must be set.
	SubnetId pulumi.StringOutput `pulumi:"subnetId"`
	// System disk snapshot ID used to initialize the system disk. When system disk type is `LOCAL_BASIC` and `LOCAL_SSD`, disk
	// id is not supported.
	SystemDiskId pulumi.StringOutput `pulumi:"systemDiskId"`
	// Size of the system disk. Valid value ranges: (50~1000). and unit is GB. Default is 50GB. If modified, the instance may
	// force stop.
	SystemDiskSize pulumi.IntPtrOutput `pulumi:"systemDiskSize"`
	// System disk type. For more information on limits of system disk types, see [Storage
	// Overview](https://intl.cloud.tencent.com/document/product/213/4952). Valid values: `LOCAL_BASIC`: local disk,
	// `LOCAL_SSD`: local SSD disk, `CLOUD_SSD`: SSD, `CLOUD_PREMIUM`: Premium Cloud Storage, `CLOUD_BSSD`: Basic SSD. NOTE: If
	// modified, the instance may force stop.
	SystemDiskType pulumi.StringPtrOutput `pulumi:"systemDiskType"`
	// The user data to be injected into this instance. Must be base64 encoded and up to 16 KB.
	UserData pulumi.StringPtrOutput `pulumi:"userData"`
	// The user data to be injected into this instance, in plain text. Conflicts with `user_data`. Up to 16 KB after base64
	// encoded.
	UserDataRaw pulumi.StringPtrOutput `pulumi:"userDataRaw"`
	// The ID of a VPC network. If you want to create instances in a VPC network, this parameter must be set.
	VpcId pulumi.StringOutput `pulumi:"vpcId"`
}

func GetSet

func GetSet(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *SetState, opts ...pulumi.ResourceOption) (*Set, error)

GetSet gets an existing Set resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewSet

func NewSet(ctx *pulumi.Context,
	name string, args *SetArgs, opts ...pulumi.ResourceOption) (*Set, error)

NewSet registers a new resource with the given unique name, arguments, and options.

func (*Set) ElementType

func (*Set) ElementType() reflect.Type

func (*Set) ToSetOutput

func (i *Set) ToSetOutput() SetOutput

func (*Set) ToSetOutputWithContext

func (i *Set) ToSetOutputWithContext(ctx context.Context) SetOutput

type SetArgs

type SetArgs struct {
	// Associate a public IP address with an instance in a VPC or Classic. Boolean value, Default is false.
	AllocatePublicIp pulumi.BoolPtrInput
	// The available zone for the CVM instance.
	AvailabilityZone pulumi.StringInput
	// bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has
	// bandwidth_package_id.
	BandwidthPackageId pulumi.StringPtrInput
	// CAM role name authorized to access.
	CamRoleName pulumi.StringPtrInput
	// Disable enhance service for monitor, it is enabled by default. When this options is set, monitor agent won't be
	// installed. Modifying will cause the instance reset.
	DisableMonitorService pulumi.BoolPtrInput
	// Disable enhance service for security, it is enabled by default. When this options is set, security agent won't be
	// installed. Modifying will cause the instance reset.
	DisableSecurityService pulumi.BoolPtrInput
	// instance ids list to exclude.
	ExcludeInstanceIds pulumi.StringArrayInput
	// The hostname of the instance. Windows instance: The name should be a combination of 2 to 15 characters comprised of
	// letters (case insensitive), numbers, and hyphens (-). Period (.) is not supported, and the name cannot be a string of
	// pure numbers. Other types (such as Linux) of instances: The name should be a combination of 2 to 60 characters,
	// supporting multiple periods (.). The piece between two periods is composed of letters (case insensitive), numbers, and
	// hyphens (-). Modifying will cause the instance reset.
	Hostname pulumi.StringPtrInput
	// The image to use for the instance. Changing `image_id` will cause the instance reset.
	ImageId pulumi.StringInput
	// The charge type of instance. Only support `POSTPAID_BY_HOUR`.
	InstanceChargeType pulumi.StringPtrInput
	// The number of instances to be purchased. Value range:[1,100]; default value: 1.
	InstanceCount pulumi.IntPtrInput
	// The name of the instance. The max length of instance_name is 60, and default value is `Terraform-CVM-Instance`.
	InstanceName pulumi.StringPtrInput
	// The type of the instance.
	InstanceType pulumi.StringPtrInput
	// Internet charge type of the instance, Valid values are `BANDWIDTH_PREPAID`, `TRAFFIC_POSTPAID_BY_HOUR`,
	// `BANDWIDTH_POSTPAID_BY_HOUR` and `BANDWIDTH_PACKAGE`. This value does not need to be set when `allocate_public_ip` is
	// false.
	InternetChargeType pulumi.StringPtrInput
	// Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bits per second). This value does not need to
	// be set when `allocate_public_ip` is false.
	InternetMaxBandwidthOut pulumi.IntPtrInput
	// Whether to keep image login or not, default is `false`. When the image type is private or shared or imported, this
	// parameter can be set `true`. Modifying will cause the instance reset.
	KeepImageLogin pulumi.BoolPtrInput
	// The key pair to use for the instance, it looks like `skey-16jig7tx`. Modifying will cause the instance reset.
	KeyName pulumi.StringPtrInput
	// Password for the instance. In order for the new password to take effect, the instance will be restarted after the
	// password change. Modifying will cause the instance reset.
	Password pulumi.StringPtrInput
	// The ID of a placement group.
	PlacementGroupId pulumi.StringPtrInput
	// The private IP to be assigned to this instance, must be in the provided subnet and available.
	PrivateIp pulumi.StringPtrInput
	// The project the instance belongs to, default to 0.
	ProjectId pulumi.IntPtrInput
	// A list of security group IDs to associate with.
	SecurityGroups pulumi.StringArrayInput
	// The ID of a VPC subnet. If you want to create instances in a VPC network, this parameter must be set.
	SubnetId pulumi.StringPtrInput
	// System disk snapshot ID used to initialize the system disk. When system disk type is `LOCAL_BASIC` and `LOCAL_SSD`, disk
	// id is not supported.
	SystemDiskId pulumi.StringPtrInput
	// Size of the system disk. Valid value ranges: (50~1000). and unit is GB. Default is 50GB. If modified, the instance may
	// force stop.
	SystemDiskSize pulumi.IntPtrInput
	// System disk type. For more information on limits of system disk types, see [Storage
	// Overview](https://intl.cloud.tencent.com/document/product/213/4952). Valid values: `LOCAL_BASIC`: local disk,
	// `LOCAL_SSD`: local SSD disk, `CLOUD_SSD`: SSD, `CLOUD_PREMIUM`: Premium Cloud Storage, `CLOUD_BSSD`: Basic SSD. NOTE: If
	// modified, the instance may force stop.
	SystemDiskType pulumi.StringPtrInput
	// The user data to be injected into this instance. Must be base64 encoded and up to 16 KB.
	UserData pulumi.StringPtrInput
	// The user data to be injected into this instance, in plain text. Conflicts with `user_data`. Up to 16 KB after base64
	// encoded.
	UserDataRaw pulumi.StringPtrInput
	// The ID of a VPC network. If you want to create instances in a VPC network, this parameter must be set.
	VpcId pulumi.StringPtrInput
}

The set of arguments for constructing a Set resource.

func (SetArgs) ElementType

func (SetArgs) ElementType() reflect.Type

type SetArray

type SetArray []SetInput

func (SetArray) ElementType

func (SetArray) ElementType() reflect.Type

func (SetArray) ToSetArrayOutput

func (i SetArray) ToSetArrayOutput() SetArrayOutput

func (SetArray) ToSetArrayOutputWithContext

func (i SetArray) ToSetArrayOutputWithContext(ctx context.Context) SetArrayOutput

type SetArrayInput

type SetArrayInput interface {
	pulumi.Input

	ToSetArrayOutput() SetArrayOutput
	ToSetArrayOutputWithContext(context.Context) SetArrayOutput
}

SetArrayInput is an input type that accepts SetArray and SetArrayOutput values. You can construct a concrete instance of `SetArrayInput` via:

SetArray{ SetArgs{...} }

type SetArrayOutput

type SetArrayOutput struct{ *pulumi.OutputState }

func (SetArrayOutput) ElementType

func (SetArrayOutput) ElementType() reflect.Type

func (SetArrayOutput) Index

func (SetArrayOutput) ToSetArrayOutput

func (o SetArrayOutput) ToSetArrayOutput() SetArrayOutput

func (SetArrayOutput) ToSetArrayOutputWithContext

func (o SetArrayOutput) ToSetArrayOutputWithContext(ctx context.Context) SetArrayOutput

type SetInput

type SetInput interface {
	pulumi.Input

	ToSetOutput() SetOutput
	ToSetOutputWithContext(ctx context.Context) SetOutput
}

type SetMap

type SetMap map[string]SetInput

func (SetMap) ElementType

func (SetMap) ElementType() reflect.Type

func (SetMap) ToSetMapOutput

func (i SetMap) ToSetMapOutput() SetMapOutput

func (SetMap) ToSetMapOutputWithContext

func (i SetMap) ToSetMapOutputWithContext(ctx context.Context) SetMapOutput

type SetMapInput

type SetMapInput interface {
	pulumi.Input

	ToSetMapOutput() SetMapOutput
	ToSetMapOutputWithContext(context.Context) SetMapOutput
}

SetMapInput is an input type that accepts SetMap and SetMapOutput values. You can construct a concrete instance of `SetMapInput` via:

SetMap{ "key": SetArgs{...} }

type SetMapOutput

type SetMapOutput struct{ *pulumi.OutputState }

func (SetMapOutput) ElementType

func (SetMapOutput) ElementType() reflect.Type

func (SetMapOutput) MapIndex

func (o SetMapOutput) MapIndex(k pulumi.StringInput) SetOutput

func (SetMapOutput) ToSetMapOutput

func (o SetMapOutput) ToSetMapOutput() SetMapOutput

func (SetMapOutput) ToSetMapOutputWithContext

func (o SetMapOutput) ToSetMapOutputWithContext(ctx context.Context) SetMapOutput

type SetOutput

type SetOutput struct{ *pulumi.OutputState }

func (SetOutput) AllocatePublicIp

func (o SetOutput) AllocatePublicIp() pulumi.BoolPtrOutput

Associate a public IP address with an instance in a VPC or Classic. Boolean value, Default is false.

func (SetOutput) AvailabilityZone

func (o SetOutput) AvailabilityZone() pulumi.StringOutput

The available zone for the CVM instance.

func (SetOutput) BandwidthPackageId

func (o SetOutput) BandwidthPackageId() pulumi.StringPtrOutput

bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has bandwidth_package_id.

func (SetOutput) CamRoleName

func (o SetOutput) CamRoleName() pulumi.StringPtrOutput

CAM role name authorized to access.

func (SetOutput) CreateTime

func (o SetOutput) CreateTime() pulumi.StringOutput

Create time of the instance.

func (SetOutput) DisableMonitorService

func (o SetOutput) DisableMonitorService() pulumi.BoolPtrOutput

Disable enhance service for monitor, it is enabled by default. When this options is set, monitor agent won't be installed. Modifying will cause the instance reset.

func (SetOutput) DisableSecurityService

func (o SetOutput) DisableSecurityService() pulumi.BoolPtrOutput

Disable enhance service for security, it is enabled by default. When this options is set, security agent won't be installed. Modifying will cause the instance reset.

func (SetOutput) ElementType

func (SetOutput) ElementType() reflect.Type

func (SetOutput) ExcludeInstanceIds

func (o SetOutput) ExcludeInstanceIds() pulumi.StringArrayOutput

instance ids list to exclude.

func (SetOutput) ExpiredTime

func (o SetOutput) ExpiredTime() pulumi.StringOutput

Expired time of the instance.

func (SetOutput) Hostname

func (o SetOutput) Hostname() pulumi.StringPtrOutput

The hostname of the instance. Windows instance: The name should be a combination of 2 to 15 characters comprised of letters (case insensitive), numbers, and hyphens (-). Period (.) is not supported, and the name cannot be a string of pure numbers. Other types (such as Linux) of instances: The name should be a combination of 2 to 60 characters, supporting multiple periods (.). The piece between two periods is composed of letters (case insensitive), numbers, and hyphens (-). Modifying will cause the instance reset.

func (SetOutput) ImageId

func (o SetOutput) ImageId() pulumi.StringOutput

The image to use for the instance. Changing `image_id` will cause the instance reset.

func (SetOutput) InstanceChargeType

func (o SetOutput) InstanceChargeType() pulumi.StringPtrOutput

The charge type of instance. Only support `POSTPAID_BY_HOUR`.

func (SetOutput) InstanceCount

func (o SetOutput) InstanceCount() pulumi.IntPtrOutput

The number of instances to be purchased. Value range:[1,100]; default value: 1.

func (SetOutput) InstanceIds

func (o SetOutput) InstanceIds() pulumi.StringArrayOutput

instance id list.

func (SetOutput) InstanceName

func (o SetOutput) InstanceName() pulumi.StringPtrOutput

The name of the instance. The max length of instance_name is 60, and default value is `Terraform-CVM-Instance`.

func (SetOutput) InstanceStatus

func (o SetOutput) InstanceStatus() pulumi.StringOutput

Current status of the instance.

func (SetOutput) InstanceType

func (o SetOutput) InstanceType() pulumi.StringOutput

The type of the instance.

func (SetOutput) InternetChargeType

func (o SetOutput) InternetChargeType() pulumi.StringOutput

Internet charge type of the instance, Valid values are `BANDWIDTH_PREPAID`, `TRAFFIC_POSTPAID_BY_HOUR`, `BANDWIDTH_POSTPAID_BY_HOUR` and `BANDWIDTH_PACKAGE`. This value does not need to be set when `allocate_public_ip` is false.

func (SetOutput) InternetMaxBandwidthOut

func (o SetOutput) InternetMaxBandwidthOut() pulumi.IntOutput

Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bits per second). This value does not need to be set when `allocate_public_ip` is false.

func (SetOutput) KeepImageLogin

func (o SetOutput) KeepImageLogin() pulumi.BoolPtrOutput

Whether to keep image login or not, default is `false`. When the image type is private or shared or imported, this parameter can be set `true`. Modifying will cause the instance reset.

func (SetOutput) KeyName

func (o SetOutput) KeyName() pulumi.StringOutput

The key pair to use for the instance, it looks like `skey-16jig7tx`. Modifying will cause the instance reset.

func (SetOutput) Password

func (o SetOutput) Password() pulumi.StringPtrOutput

Password for the instance. In order for the new password to take effect, the instance will be restarted after the password change. Modifying will cause the instance reset.

func (SetOutput) PlacementGroupId

func (o SetOutput) PlacementGroupId() pulumi.StringPtrOutput

The ID of a placement group.

func (SetOutput) PrivateIp

func (o SetOutput) PrivateIp() pulumi.StringOutput

The private IP to be assigned to this instance, must be in the provided subnet and available.

func (SetOutput) ProjectId

func (o SetOutput) ProjectId() pulumi.IntPtrOutput

The project the instance belongs to, default to 0.

func (SetOutput) PublicIp

func (o SetOutput) PublicIp() pulumi.StringOutput

Public IP of the instance.

func (SetOutput) SecurityGroups

func (o SetOutput) SecurityGroups() pulumi.StringArrayOutput

A list of security group IDs to associate with.

func (SetOutput) SubnetId

func (o SetOutput) SubnetId() pulumi.StringOutput

The ID of a VPC subnet. If you want to create instances in a VPC network, this parameter must be set.

func (SetOutput) SystemDiskId

func (o SetOutput) SystemDiskId() pulumi.StringOutput

System disk snapshot ID used to initialize the system disk. When system disk type is `LOCAL_BASIC` and `LOCAL_SSD`, disk id is not supported.

func (SetOutput) SystemDiskSize

func (o SetOutput) SystemDiskSize() pulumi.IntPtrOutput

Size of the system disk. Valid value ranges: (50~1000). and unit is GB. Default is 50GB. If modified, the instance may force stop.

func (SetOutput) SystemDiskType

func (o SetOutput) SystemDiskType() pulumi.StringPtrOutput

System disk type. For more information on limits of system disk types, see [Storage Overview](https://intl.cloud.tencent.com/document/product/213/4952). Valid values: `LOCAL_BASIC`: local disk, `LOCAL_SSD`: local SSD disk, `CLOUD_SSD`: SSD, `CLOUD_PREMIUM`: Premium Cloud Storage, `CLOUD_BSSD`: Basic SSD. NOTE: If modified, the instance may force stop.

func (SetOutput) ToSetOutput

func (o SetOutput) ToSetOutput() SetOutput

func (SetOutput) ToSetOutputWithContext

func (o SetOutput) ToSetOutputWithContext(ctx context.Context) SetOutput

func (SetOutput) UserData

func (o SetOutput) UserData() pulumi.StringPtrOutput

The user data to be injected into this instance. Must be base64 encoded and up to 16 KB.

func (SetOutput) UserDataRaw

func (o SetOutput) UserDataRaw() pulumi.StringPtrOutput

The user data to be injected into this instance, in plain text. Conflicts with `user_data`. Up to 16 KB after base64 encoded.

func (SetOutput) VpcId

func (o SetOutput) VpcId() pulumi.StringOutput

The ID of a VPC network. If you want to create instances in a VPC network, this parameter must be set.

type SetState

type SetState struct {
	// Associate a public IP address with an instance in a VPC or Classic. Boolean value, Default is false.
	AllocatePublicIp pulumi.BoolPtrInput
	// The available zone for the CVM instance.
	AvailabilityZone pulumi.StringPtrInput
	// bandwidth package id. if user is standard user, then the bandwidth_package_id is needed, or default has
	// bandwidth_package_id.
	BandwidthPackageId pulumi.StringPtrInput
	// CAM role name authorized to access.
	CamRoleName pulumi.StringPtrInput
	// Create time of the instance.
	CreateTime pulumi.StringPtrInput
	// Disable enhance service for monitor, it is enabled by default. When this options is set, monitor agent won't be
	// installed. Modifying will cause the instance reset.
	DisableMonitorService pulumi.BoolPtrInput
	// Disable enhance service for security, it is enabled by default. When this options is set, security agent won't be
	// installed. Modifying will cause the instance reset.
	DisableSecurityService pulumi.BoolPtrInput
	// instance ids list to exclude.
	ExcludeInstanceIds pulumi.StringArrayInput
	// Expired time of the instance.
	ExpiredTime pulumi.StringPtrInput
	// The hostname of the instance. Windows instance: The name should be a combination of 2 to 15 characters comprised of
	// letters (case insensitive), numbers, and hyphens (-). Period (.) is not supported, and the name cannot be a string of
	// pure numbers. Other types (such as Linux) of instances: The name should be a combination of 2 to 60 characters,
	// supporting multiple periods (.). The piece between two periods is composed of letters (case insensitive), numbers, and
	// hyphens (-). Modifying will cause the instance reset.
	Hostname pulumi.StringPtrInput
	// The image to use for the instance. Changing `image_id` will cause the instance reset.
	ImageId pulumi.StringPtrInput
	// The charge type of instance. Only support `POSTPAID_BY_HOUR`.
	InstanceChargeType pulumi.StringPtrInput
	// The number of instances to be purchased. Value range:[1,100]; default value: 1.
	InstanceCount pulumi.IntPtrInput
	// instance id list.
	InstanceIds pulumi.StringArrayInput
	// The name of the instance. The max length of instance_name is 60, and default value is `Terraform-CVM-Instance`.
	InstanceName pulumi.StringPtrInput
	// Current status of the instance.
	InstanceStatus pulumi.StringPtrInput
	// The type of the instance.
	InstanceType pulumi.StringPtrInput
	// Internet charge type of the instance, Valid values are `BANDWIDTH_PREPAID`, `TRAFFIC_POSTPAID_BY_HOUR`,
	// `BANDWIDTH_POSTPAID_BY_HOUR` and `BANDWIDTH_PACKAGE`. This value does not need to be set when `allocate_public_ip` is
	// false.
	InternetChargeType pulumi.StringPtrInput
	// Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bits per second). This value does not need to
	// be set when `allocate_public_ip` is false.
	InternetMaxBandwidthOut pulumi.IntPtrInput
	// Whether to keep image login or not, default is `false`. When the image type is private or shared or imported, this
	// parameter can be set `true`. Modifying will cause the instance reset.
	KeepImageLogin pulumi.BoolPtrInput
	// The key pair to use for the instance, it looks like `skey-16jig7tx`. Modifying will cause the instance reset.
	KeyName pulumi.StringPtrInput
	// Password for the instance. In order for the new password to take effect, the instance will be restarted after the
	// password change. Modifying will cause the instance reset.
	Password pulumi.StringPtrInput
	// The ID of a placement group.
	PlacementGroupId pulumi.StringPtrInput
	// The private IP to be assigned to this instance, must be in the provided subnet and available.
	PrivateIp pulumi.StringPtrInput
	// The project the instance belongs to, default to 0.
	ProjectId pulumi.IntPtrInput
	// Public IP of the instance.
	PublicIp pulumi.StringPtrInput
	// A list of security group IDs to associate with.
	SecurityGroups pulumi.StringArrayInput
	// The ID of a VPC subnet. If you want to create instances in a VPC network, this parameter must be set.
	SubnetId pulumi.StringPtrInput
	// System disk snapshot ID used to initialize the system disk. When system disk type is `LOCAL_BASIC` and `LOCAL_SSD`, disk
	// id is not supported.
	SystemDiskId pulumi.StringPtrInput
	// Size of the system disk. Valid value ranges: (50~1000). and unit is GB. Default is 50GB. If modified, the instance may
	// force stop.
	SystemDiskSize pulumi.IntPtrInput
	// System disk type. For more information on limits of system disk types, see [Storage
	// Overview](https://intl.cloud.tencent.com/document/product/213/4952). Valid values: `LOCAL_BASIC`: local disk,
	// `LOCAL_SSD`: local SSD disk, `CLOUD_SSD`: SSD, `CLOUD_PREMIUM`: Premium Cloud Storage, `CLOUD_BSSD`: Basic SSD. NOTE: If
	// modified, the instance may force stop.
	SystemDiskType pulumi.StringPtrInput
	// The user data to be injected into this instance. Must be base64 encoded and up to 16 KB.
	UserData pulumi.StringPtrInput
	// The user data to be injected into this instance, in plain text. Conflicts with `user_data`. Up to 16 KB after base64
	// encoded.
	UserDataRaw pulumi.StringPtrInput
	// The ID of a VPC network. If you want to create instances in a VPC network, this parameter must be set.
	VpcId pulumi.StringPtrInput
}

func (SetState) ElementType

func (SetState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL