Documentation
¶
Index ¶
- type GetTypesArgs
- type GetTypesFilter
- type GetTypesFilterArgs
- type GetTypesFilterArray
- type GetTypesFilterArrayInput
- type GetTypesFilterArrayOutput
- func (GetTypesFilterArrayOutput) ElementType() reflect.Type
- func (o GetTypesFilterArrayOutput) Index(i pulumi.IntInput) GetTypesFilterOutput
- func (o GetTypesFilterArrayOutput) ToGetTypesFilterArrayOutput() GetTypesFilterArrayOutput
- func (o GetTypesFilterArrayOutput) ToGetTypesFilterArrayOutputWithContext(ctx context.Context) GetTypesFilterArrayOutput
- type GetTypesFilterInput
- type GetTypesFilterOutput
- func (GetTypesFilterOutput) ElementType() reflect.Type
- func (o GetTypesFilterOutput) Name() pulumi.StringOutput
- func (o GetTypesFilterOutput) ToGetTypesFilterOutput() GetTypesFilterOutput
- func (o GetTypesFilterOutput) ToGetTypesFilterOutputWithContext(ctx context.Context) GetTypesFilterOutput
- func (o GetTypesFilterOutput) Values() pulumi.StringArrayOutput
- type GetTypesInstanceType
- type GetTypesInstanceTypeArgs
- type GetTypesInstanceTypeArray
- type GetTypesInstanceTypeArrayInput
- type GetTypesInstanceTypeArrayOutput
- func (GetTypesInstanceTypeArrayOutput) ElementType() reflect.Type
- func (o GetTypesInstanceTypeArrayOutput) Index(i pulumi.IntInput) GetTypesInstanceTypeOutput
- func (o GetTypesInstanceTypeArrayOutput) ToGetTypesInstanceTypeArrayOutput() GetTypesInstanceTypeArrayOutput
- func (o GetTypesInstanceTypeArrayOutput) ToGetTypesInstanceTypeArrayOutputWithContext(ctx context.Context) GetTypesInstanceTypeArrayOutput
- type GetTypesInstanceTypeInput
- type GetTypesInstanceTypeOutput
- func (o GetTypesInstanceTypeOutput) AvailabilityZone() pulumi.StringOutput
- func (o GetTypesInstanceTypeOutput) CpuCoreCount() pulumi.IntOutput
- func (GetTypesInstanceTypeOutput) ElementType() reflect.Type
- func (o GetTypesInstanceTypeOutput) Family() pulumi.StringOutput
- func (o GetTypesInstanceTypeOutput) GpuCoreCount() pulumi.IntOutput
- func (o GetTypesInstanceTypeOutput) InstanceChargeType() pulumi.StringOutput
- func (o GetTypesInstanceTypeOutput) InstanceType() pulumi.StringOutput
- func (o GetTypesInstanceTypeOutput) MemorySize() pulumi.IntOutput
- func (o GetTypesInstanceTypeOutput) Status() pulumi.StringOutput
- func (o GetTypesInstanceTypeOutput) ToGetTypesInstanceTypeOutput() GetTypesInstanceTypeOutput
- func (o GetTypesInstanceTypeOutput) ToGetTypesInstanceTypeOutputWithContext(ctx context.Context) GetTypesInstanceTypeOutput
- type GetTypesOutputArgs
- type GetTypesResult
- type GetTypesResultOutput
- func (o GetTypesResultOutput) AvailabilityZone() pulumi.StringPtrOutput
- func (o GetTypesResultOutput) CpuCoreCount() pulumi.IntPtrOutput
- func (GetTypesResultOutput) ElementType() reflect.Type
- func (o GetTypesResultOutput) ExcludeSoldOut() pulumi.BoolPtrOutput
- func (o GetTypesResultOutput) Filters() GetTypesFilterArrayOutput
- func (o GetTypesResultOutput) GpuCoreCount() pulumi.IntPtrOutput
- func (o GetTypesResultOutput) Id() pulumi.StringOutput
- func (o GetTypesResultOutput) InstanceTypes() GetTypesInstanceTypeArrayOutput
- func (o GetTypesResultOutput) MemorySize() pulumi.IntPtrOutput
- func (o GetTypesResultOutput) ResultOutputFile() pulumi.StringPtrOutput
- func (o GetTypesResultOutput) ToGetTypesResultOutput() GetTypesResultOutput
- func (o GetTypesResultOutput) ToGetTypesResultOutputWithContext(ctx context.Context) GetTypesResultOutput
- type Instance
- type InstanceArgs
- type InstanceArray
- type InstanceArrayInput
- type InstanceArrayOutput
- type InstanceDataDisk
- type InstanceDataDiskArgs
- type InstanceDataDiskArray
- type InstanceDataDiskArrayInput
- type InstanceDataDiskArrayOutput
- func (InstanceDataDiskArrayOutput) ElementType() reflect.Type
- func (o InstanceDataDiskArrayOutput) Index(i pulumi.IntInput) InstanceDataDiskOutput
- func (o InstanceDataDiskArrayOutput) ToInstanceDataDiskArrayOutput() InstanceDataDiskArrayOutput
- func (o InstanceDataDiskArrayOutput) ToInstanceDataDiskArrayOutputWithContext(ctx context.Context) InstanceDataDiskArrayOutput
- type InstanceDataDiskInput
- type InstanceDataDiskOutput
- func (o InstanceDataDiskOutput) DataDiskId() pulumi.StringPtrOutput
- func (o InstanceDataDiskOutput) DataDiskSize() pulumi.IntOutput
- func (o InstanceDataDiskOutput) DataDiskSnapshotId() pulumi.StringPtrOutput
- func (o InstanceDataDiskOutput) DataDiskType() pulumi.StringOutput
- func (o InstanceDataDiskOutput) DeleteWithInstance() pulumi.BoolPtrOutput
- func (InstanceDataDiskOutput) ElementType() reflect.Type
- func (o InstanceDataDiskOutput) Encrypt() pulumi.BoolPtrOutput
- func (o InstanceDataDiskOutput) ThroughputPerformance() pulumi.IntPtrOutput
- func (o InstanceDataDiskOutput) ToInstanceDataDiskOutput() InstanceDataDiskOutput
- func (o InstanceDataDiskOutput) ToInstanceDataDiskOutputWithContext(ctx context.Context) InstanceDataDiskOutput
- type InstanceInput
- type InstanceMap
- type InstanceMapInput
- type InstanceMapOutput
- type InstanceOutput
- func (o InstanceOutput) AllocatePublicIp() pulumi.BoolPtrOutput
- func (o InstanceOutput) AvailabilityZone() pulumi.StringOutput
- func (o InstanceOutput) BandwidthPackageId() pulumi.StringPtrOutput
- func (o InstanceOutput) CamRoleName() pulumi.StringPtrOutput
- func (o InstanceOutput) CdhHostId() pulumi.StringPtrOutput
- func (o InstanceOutput) CdhInstanceType() pulumi.StringPtrOutput
- func (o InstanceOutput) Cpu() pulumi.IntOutput
- func (o InstanceOutput) CreateTime() pulumi.StringOutput
- func (o InstanceOutput) DataDisks() InstanceDataDiskArrayOutput
- func (o InstanceOutput) DisableApiTermination() pulumi.BoolPtrOutput
- func (o InstanceOutput) DisableMonitorService() pulumi.BoolPtrOutput
- func (o InstanceOutput) DisableSecurityService() pulumi.BoolPtrOutput
- func (InstanceOutput) ElementType() reflect.Type
- func (o InstanceOutput) ExpiredTime() pulumi.StringOutput
- func (o InstanceOutput) ForceDelete() pulumi.BoolPtrOutput
- func (o InstanceOutput) Hostname() pulumi.StringPtrOutput
- func (o InstanceOutput) ImageId() pulumi.StringOutput
- func (o InstanceOutput) InstanceChargeType() pulumi.StringPtrOutput
- func (o InstanceOutput) InstanceChargeTypePrepaidPeriod() pulumi.IntPtrOutput
- func (o InstanceOutput) InstanceChargeTypePrepaidRenewFlag() pulumi.StringOutput
- func (o InstanceOutput) InstanceCount() pulumi.IntPtrOutputdeprecated
- func (o InstanceOutput) InstanceName() pulumi.StringPtrOutput
- func (o InstanceOutput) InstanceStatus() pulumi.StringOutput
- func (o InstanceOutput) InstanceType() pulumi.StringOutput
- func (o InstanceOutput) InternetChargeType() pulumi.StringOutput
- func (o InstanceOutput) InternetMaxBandwidthOut() pulumi.IntOutput
- func (o InstanceOutput) KeepImageLogin() pulumi.BoolPtrOutput
- func (o InstanceOutput) KeyIds() pulumi.StringArrayOutput
- func (o InstanceOutput) KeyName() pulumi.StringOutputdeprecated
- func (o InstanceOutput) Memory() pulumi.IntOutput
- func (o InstanceOutput) OrderlySecurityGroups() pulumi.StringArrayOutput
- func (o InstanceOutput) OsName() pulumi.StringOutput
- func (o InstanceOutput) Password() pulumi.StringPtrOutput
- func (o InstanceOutput) PlacementGroupId() pulumi.StringPtrOutput
- func (o InstanceOutput) PrivateIp() pulumi.StringOutput
- func (o InstanceOutput) ProjectId() pulumi.IntPtrOutput
- func (o InstanceOutput) PublicIp() pulumi.StringOutput
- func (o InstanceOutput) RunningFlag() pulumi.BoolPtrOutput
- func (o InstanceOutput) SecurityGroups() pulumi.StringArrayOutputdeprecated
- func (o InstanceOutput) SpotInstanceType() pulumi.StringPtrOutput
- func (o InstanceOutput) SpotMaxPrice() pulumi.StringPtrOutput
- func (o InstanceOutput) StoppedMode() pulumi.StringPtrOutput
- func (o InstanceOutput) SubnetId() pulumi.StringOutput
- func (o InstanceOutput) SystemDiskId() pulumi.StringOutput
- func (o InstanceOutput) SystemDiskSize() pulumi.IntPtrOutput
- func (o InstanceOutput) SystemDiskType() pulumi.StringPtrOutput
- func (o InstanceOutput) Tags() pulumi.MapOutput
- func (o InstanceOutput) ToInstanceOutput() InstanceOutput
- func (o InstanceOutput) ToInstanceOutputWithContext(ctx context.Context) InstanceOutput
- func (o InstanceOutput) UserData() pulumi.StringPtrOutput
- func (o InstanceOutput) UserDataRaw() pulumi.StringPtrOutput
- func (o InstanceOutput) Uuid() pulumi.StringOutput
- func (o InstanceOutput) VpcId() pulumi.StringOutput
- type InstanceState
- type Set
- type SetArgs
- type SetArray
- type SetArrayInput
- type SetArrayOutput
- type SetInput
- type SetMap
- type SetMapInput
- type SetMapOutput
- type SetOutput
- func (o SetOutput) AllocatePublicIp() pulumi.BoolPtrOutput
- func (o SetOutput) AvailabilityZone() pulumi.StringOutput
- func (o SetOutput) BandwidthPackageId() pulumi.StringPtrOutput
- func (o SetOutput) CamRoleName() pulumi.StringPtrOutput
- func (o SetOutput) CreateTime() pulumi.StringOutput
- func (o SetOutput) DisableMonitorService() pulumi.BoolPtrOutput
- func (o SetOutput) DisableSecurityService() pulumi.BoolPtrOutput
- func (SetOutput) ElementType() reflect.Type
- func (o SetOutput) ExcludeInstanceIds() pulumi.StringArrayOutput
- func (o SetOutput) ExpiredTime() pulumi.StringOutput
- func (o SetOutput) Hostname() pulumi.StringPtrOutput
- func (o SetOutput) ImageId() pulumi.StringOutput
- func (o SetOutput) InstanceChargeType() pulumi.StringPtrOutput
- func (o SetOutput) InstanceCount() pulumi.IntPtrOutput
- func (o SetOutput) InstanceIds() pulumi.StringArrayOutput
- func (o SetOutput) InstanceName() pulumi.StringPtrOutput
- func (o SetOutput) InstanceStatus() pulumi.StringOutput
- func (o SetOutput) InstanceType() pulumi.StringOutput
- func (o SetOutput) InternetChargeType() pulumi.StringOutput
- func (o SetOutput) InternetMaxBandwidthOut() pulumi.IntOutput
- func (o SetOutput) KeepImageLogin() pulumi.BoolPtrOutput
- func (o SetOutput) KeyName() pulumi.StringOutput
- func (o SetOutput) Password() pulumi.StringPtrOutput
- func (o SetOutput) PlacementGroupId() pulumi.StringPtrOutput
- func (o SetOutput) PrivateIp() pulumi.StringOutput
- func (o SetOutput) ProjectId() pulumi.IntPtrOutput
- func (o SetOutput) PublicIp() pulumi.StringOutput
- func (o SetOutput) SecurityGroups() pulumi.StringArrayOutput
- func (o SetOutput) SubnetId() pulumi.StringOutput
- func (o SetOutput) SystemDiskId() pulumi.StringOutput
- func (o SetOutput) SystemDiskSize() pulumi.IntPtrOutput
- func (o SetOutput) SystemDiskType() pulumi.StringPtrOutput
- func (o SetOutput) ToSetOutput() SetOutput
- func (o SetOutput) ToSetOutputWithContext(ctx context.Context) SetOutput
- func (o SetOutput) UserData() pulumi.StringPtrOutput
- func (o SetOutput) UserDataRaw() pulumi.StringPtrOutput
- func (o SetOutput) VpcId() pulumi.StringOutput
- type SetState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetTypesArgs ¶
type GetTypesArgs struct { // The available zone that the CVM instance locates at. This field is conflict with `filter`. AvailabilityZone *string `pulumi:"availabilityZone"` // The number of CPU cores of the instance. CpuCoreCount *int `pulumi:"cpuCoreCount"` // Indicate to filter instances types that is sold out or not, default is false. ExcludeSoldOut *bool `pulumi:"excludeSoldOut"` // One or more name/value pairs to filter. This field is conflict with `availabilityZone`. Filters []GetTypesFilter `pulumi:"filters"` // The number of GPU cores of the instance. GpuCoreCount *int `pulumi:"gpuCoreCount"` // Instance memory capacity, unit in GB. MemorySize *int `pulumi:"memorySize"` // Used to save results. ResultOutputFile *string `pulumi:"resultOutputFile"` }
A collection of arguments for invoking getTypes.
type GetTypesFilter ¶
type GetTypesFilterArgs ¶
type GetTypesFilterArgs struct { // The filter name. Valid values: `zone`, `instance-family` and `instance-charge-type`. Name pulumi.StringInput `pulumi:"name"` // The filter values. 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 (o GetTypesFilterArrayOutput) Index(i pulumi.IntInput) GetTypesFilterOutput
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 (o GetTypesFilterOutput) Name() pulumi.StringOutput
The filter name. Valid values: `zone`, `instance-family` and `instance-charge-type`.
func (GetTypesFilterOutput) ToGetTypesFilterOutput ¶
func (o GetTypesFilterOutput) ToGetTypesFilterOutput() GetTypesFilterOutput
func (GetTypesFilterOutput) ToGetTypesFilterOutputWithContext ¶
func (o GetTypesFilterOutput) ToGetTypesFilterOutputWithContext(ctx context.Context) GetTypesFilterOutput
func (GetTypesFilterOutput) Values ¶
func (o GetTypesFilterOutput) Values() pulumi.StringArrayOutput
The filter values.
type GetTypesInstanceType ¶
type GetTypesInstanceType struct { // The available zone that the CVM instance locates at. This field is conflict with `filter`. AvailabilityZone string `pulumi:"availabilityZone"` // The number of CPU cores of the instance. CpuCoreCount int `pulumi:"cpuCoreCount"` // Type series of the instance. Family string `pulumi:"family"` // The number of GPU cores of the instance. GpuCoreCount int `pulumi:"gpuCoreCount"` // Charge type of the instance. InstanceChargeType string `pulumi:"instanceChargeType"` // Type of the instance. InstanceType string `pulumi:"instanceType"` // Instance memory capacity, unit in GB. MemorySize int `pulumi:"memorySize"` // Sell status of the instance. Status string `pulumi:"status"` }
type GetTypesInstanceTypeArgs ¶
type GetTypesInstanceTypeArgs struct { // The available zone that the CVM instance locates at. This field is conflict with `filter`. AvailabilityZone pulumi.StringInput `pulumi:"availabilityZone"` // The number of CPU cores of the instance. CpuCoreCount pulumi.IntInput `pulumi:"cpuCoreCount"` // Type series of the instance. Family pulumi.StringInput `pulumi:"family"` // The number of GPU cores of the instance. GpuCoreCount pulumi.IntInput `pulumi:"gpuCoreCount"` // Charge type of the instance. InstanceChargeType pulumi.StringInput `pulumi:"instanceChargeType"` // Type of the instance. InstanceType pulumi.StringInput `pulumi:"instanceType"` // Instance memory capacity, unit in GB. MemorySize pulumi.IntInput `pulumi:"memorySize"` // Sell status of the instance. 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) ElementType() reflect.Type
func (GetTypesInstanceTypeArrayOutput) Index ¶
func (o GetTypesInstanceTypeArrayOutput) Index(i pulumi.IntInput) GetTypesInstanceTypeOutput
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
The available zone that the CVM instance locates at. This field is conflict with `filter`.
func (GetTypesInstanceTypeOutput) CpuCoreCount ¶
func (o GetTypesInstanceTypeOutput) CpuCoreCount() pulumi.IntOutput
The number of CPU cores of the instance.
func (GetTypesInstanceTypeOutput) ElementType ¶
func (GetTypesInstanceTypeOutput) ElementType() reflect.Type
func (GetTypesInstanceTypeOutput) Family ¶
func (o GetTypesInstanceTypeOutput) Family() pulumi.StringOutput
Type series of the instance.
func (GetTypesInstanceTypeOutput) GpuCoreCount ¶
func (o GetTypesInstanceTypeOutput) GpuCoreCount() pulumi.IntOutput
The number of GPU cores of the instance.
func (GetTypesInstanceTypeOutput) InstanceChargeType ¶
func (o GetTypesInstanceTypeOutput) InstanceChargeType() pulumi.StringOutput
Charge type of the instance.
func (GetTypesInstanceTypeOutput) InstanceType ¶
func (o GetTypesInstanceTypeOutput) InstanceType() pulumi.StringOutput
Type of the instance.
func (GetTypesInstanceTypeOutput) MemorySize ¶
func (o GetTypesInstanceTypeOutput) MemorySize() pulumi.IntOutput
Instance memory capacity, unit in GB.
func (GetTypesInstanceTypeOutput) Status ¶
func (o GetTypesInstanceTypeOutput) Status() pulumi.StringOutput
Sell status of the instance.
func (GetTypesInstanceTypeOutput) ToGetTypesInstanceTypeOutput ¶
func (o GetTypesInstanceTypeOutput) ToGetTypesInstanceTypeOutput() GetTypesInstanceTypeOutput
func (GetTypesInstanceTypeOutput) ToGetTypesInstanceTypeOutputWithContext ¶
func (o GetTypesInstanceTypeOutput) ToGetTypesInstanceTypeOutputWithContext(ctx context.Context) GetTypesInstanceTypeOutput
type GetTypesOutputArgs ¶
type GetTypesOutputArgs struct { // The available zone that the CVM instance locates at. This field is conflict with `filter`. AvailabilityZone pulumi.StringPtrInput `pulumi:"availabilityZone"` // The number of CPU cores of the instance. CpuCoreCount pulumi.IntPtrInput `pulumi:"cpuCoreCount"` // Indicate to filter instances types that is sold out or not, default is false. ExcludeSoldOut pulumi.BoolPtrInput `pulumi:"excludeSoldOut"` // One or more name/value pairs to filter. This field is conflict with `availabilityZone`. Filters GetTypesFilterArrayInput `pulumi:"filters"` // The number of GPU cores of the instance. GpuCoreCount pulumi.IntPtrInput `pulumi:"gpuCoreCount"` // Instance memory capacity, unit in GB. MemorySize pulumi.IntPtrInput `pulumi:"memorySize"` // Used to save results. 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 { // The available zone that the CVM instance locates at. AvailabilityZone *string `pulumi:"availabilityZone"` // The number of CPU cores of the instance. CpuCoreCount *int `pulumi:"cpuCoreCount"` ExcludeSoldOut *bool `pulumi:"excludeSoldOut"` Filters []GetTypesFilter `pulumi:"filters"` // The number of GPU cores of the instance. GpuCoreCount *int `pulumi:"gpuCoreCount"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // An information list of cvm instance. Each element contains the following attributes: InstanceTypes []GetTypesInstanceType `pulumi:"instanceTypes"` // Instance memory capacity, unit in GB. 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)
Use this data source to query instances type.
## Example Usage
<!--Start PulumiCodeChooser --> ```go package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Instance"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := Instance.GetTypes(ctx, &instance.GetTypesArgs{ AvailabilityZone: pulumi.StringRef("ap-guangzhou-6"), CpuCoreCount: pulumi.IntRef(4), MemorySize: pulumi.IntRef(8), }, nil) if err != nil { return err } return nil }) }
``` <!--End PulumiCodeChooser -->
### Complete Example
<!--Start PulumiCodeChooser --> ```go package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi" "github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Instance"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := Instance.GetTypes(ctx, &instance.GetTypesArgs{ CpuCoreCount: pulumi.IntRef(4), ExcludeSoldOut: pulumi.BoolRef(true), Filters: []instance.GetTypesFilter{ { Name: "instance-family", Values: []string{ "SA2", }, }, { Name: "zone", Values: []string{ "ap-guangzhou-6", }, }, }, MemorySize: pulumi.IntRef(8), }, nil) if err != nil { return err } return nil }) }
``` <!--End PulumiCodeChooser -->
type GetTypesResultOutput ¶
type GetTypesResultOutput struct{ *pulumi.OutputState }
A collection of values returned by getTypes.
func GetTypesOutput ¶
func GetTypesOutput(ctx *pulumi.Context, args GetTypesOutputArgs, opts ...pulumi.InvokeOption) GetTypesResultOutput
func (GetTypesResultOutput) AvailabilityZone ¶
func (o GetTypesResultOutput) AvailabilityZone() pulumi.StringPtrOutput
The available zone that the CVM instance locates at.
func (GetTypesResultOutput) CpuCoreCount ¶
func (o GetTypesResultOutput) CpuCoreCount() pulumi.IntPtrOutput
The number of CPU cores of the instance.
func (GetTypesResultOutput) ElementType ¶
func (GetTypesResultOutput) ElementType() reflect.Type
func (GetTypesResultOutput) ExcludeSoldOut ¶
func (o GetTypesResultOutput) ExcludeSoldOut() pulumi.BoolPtrOutput
func (GetTypesResultOutput) Filters ¶
func (o GetTypesResultOutput) Filters() GetTypesFilterArrayOutput
func (GetTypesResultOutput) GpuCoreCount ¶
func (o GetTypesResultOutput) GpuCoreCount() pulumi.IntPtrOutput
The number of GPU cores of the instance.
func (GetTypesResultOutput) Id ¶
func (o GetTypesResultOutput) Id() pulumi.StringOutput
The provider-assigned unique ID for this managed resource.
func (GetTypesResultOutput) InstanceTypes ¶
func (o GetTypesResultOutput) InstanceTypes() GetTypesInstanceTypeArrayOutput
An information list of cvm instance. Each element contains the following attributes:
func (GetTypesResultOutput) MemorySize ¶
func (o GetTypesResultOutput) MemorySize() pulumi.IntPtrOutput
Instance memory capacity, unit in GB.
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 bandwidthPackageId 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 instanceChargeType 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 instanceChargeType is set to `CDHPAID`. CdhInstanceType pulumi.StringPtrOutput `pulumi:"cdhInstanceType"` // The number of CPU cores of the instance. Cpu pulumi.IntOutput `pulumi:"cpu"` // 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 `imageId` will cause the instance reset. ImageId pulumi.StringOutput `pulumi:"imageId"` // The charge type of instance. Valid values are `PREPAID`, `POSTPAID_BY_HOUR`, `SPOTPAID`, `CDHPAID` and `CDCPAID`. 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 `spotInstanceType` and `spotMaxPrice` at the same time. `CDHPAID` instance must set `cdhInstanceType` and `cdhHostId`. InstanceChargeType pulumi.StringPtrOutput `pulumi:"instanceChargeType"` // The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when instanceChargeType is set to `PREPAID`. Valid values are `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`, `11`, `12`, `24`, `36`, `48`, `60`. 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 instanceChargeType is set to `PREPAID`. InstanceChargeTypePrepaidRenewFlag pulumi.StringOutput `pulumi:"instanceChargeTypePrepaidRenewFlag"` // It has been deprecated from version 1.59.18. Use built-in `count` instead. 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 `allocatePublicIp` 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 `allocatePublicIp` 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"` // Please use `keyIds` instead. The key pair to use for the instance, it looks like `skey-16jig7tx`. Modifying will cause the instance reset. // // Deprecated: Please use `keyIds` instead. KeyName pulumi.StringOutput `pulumi:"keyName"` // Instance memory capacity, unit in GB. Memory pulumi.IntOutput `pulumi:"memory"` // A list of orderly security group IDs to associate with. OrderlySecurityGroups pulumi.StringArrayOutput `pulumi:"orderlySecurityGroups"` // Instance os name. OsName pulumi.StringOutput `pulumi:"osName"` // 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"` // It will be deprecated. Use `orderlySecurityGroups` instead. A list of security group IDs to associate with. // // Deprecated: It will be deprecated. Use `orderlySecurityGroups` instead. SecurityGroups pulumi.StringArrayOutput `pulumi:"securityGroups"` // Type of spot instance, only support `ONE-TIME` now. Note: it only works when instanceChargeType 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 instanceChargeType 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 `userData`. Up to 16 KB after base64 encoded. UserDataRaw pulumi.StringPtrOutput `pulumi:"userDataRaw"` // Globally unique ID of the instance. Uuid pulumi.StringOutput `pulumi:"uuid"` // 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"` }
Provides a CVM instance resource.
> **NOTE:** You can launch an CVM instance for a VPC network via specifying parameter `vpcId`. One instance can only belong to one VPC.
> **NOTE:** At present, 'PREPAID' instance cannot be deleted directly and must wait it to be outdated and released automatically.
## Import
CVM instance can be imported using the id, e.g.
```sh $ pulumi import tencentcloud:Instance/instance:Instance foo ins-2qol3a80 ```
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) 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 bandwidthPackageId 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 instanceChargeType 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 instanceChargeType 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 `imageId` will cause the instance reset. ImageId pulumi.StringInput // The charge type of instance. Valid values are `PREPAID`, `POSTPAID_BY_HOUR`, `SPOTPAID`, `CDHPAID` and `CDCPAID`. 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 `spotInstanceType` and `spotMaxPrice` at the same time. `CDHPAID` instance must set `cdhInstanceType` and `cdhHostId`. InstanceChargeType pulumi.StringPtrInput // The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when instanceChargeType is set to `PREPAID`. Valid values are `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`, `11`, `12`, `24`, `36`, `48`, `60`. 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 instanceChargeType is set to `PREPAID`. InstanceChargeTypePrepaidRenewFlag pulumi.StringPtrInput // It has been deprecated from version 1.59.18. Use built-in `count` instead. 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 `allocatePublicIp` 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 `allocatePublicIp` 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 // Please use `keyIds` instead. The key pair to use for the instance, it looks like `skey-16jig7tx`. Modifying will cause the instance reset. // // Deprecated: Please use `keyIds` 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 // It will be deprecated. Use `orderlySecurityGroups` instead. A list of security group IDs to associate with. // // Deprecated: It will be deprecated. Use `orderlySecurityGroups` instead. SecurityGroups pulumi.StringArrayInput // Type of spot instance, only support `ONE-TIME` now. Note: it only works when instanceChargeType 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 instanceChargeType 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 `userData`. 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 (o InstanceArrayOutput) Index(i pulumi.IntInput) InstanceOutput
func (InstanceArrayOutput) ToInstanceArrayOutput ¶
func (o InstanceArrayOutput) ToInstanceArrayOutput() InstanceArrayOutput
func (InstanceArrayOutput) ToInstanceArrayOutputWithContext ¶
func (o InstanceArrayOutput) ToInstanceArrayOutputWithContext(ctx context.Context) InstanceArrayOutput
type InstanceDataDisk ¶
type InstanceDataDisk struct { // Data disk ID used to initialize the data disk. When data disk type is `LOCAL_BASIC` and `LOCAL_SSD`, disk id is not supported. DataDiskId *string `pulumi:"dataDiskId"` // Size of the data disk, and unit is GB. DataDiskSize int `pulumi:"dataDiskSize"` // Snapshot ID of the data disk. The selected data disk snapshot size must be smaller than the data disk size. DataDiskSnapshotId *string `pulumi:"dataDiskSnapshotId"` // Data disk type. For more information about limits on different data 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, LOCAL_NVME: local NVME disk, specified in the InstanceType, LOCAL_PRO: local HDD disk, specified in the InstanceType, CLOUD_BASIC: HDD cloud disk, CLOUD_PREMIUM: Premium Cloud Storage, CLOUD_SSD: SSD, CLOUD_HSSD: Enhanced SSD, CLOUD_TSSD: Tremendous SSD, CLOUD_BSSD: Balanced SSD. DataDiskType string `pulumi:"dataDiskType"` // Decides whether the disk is deleted with instance(only applied to `CLOUD_BASIC`, `CLOUD_SSD` and `CLOUD_PREMIUM` disk with `POSTPAID_BY_HOUR` instance), default is true. DeleteWithInstance *bool `pulumi:"deleteWithInstance"` // Decides whether the disk is encrypted. Default is `false`. Encrypt *bool `pulumi:"encrypt"` // Add extra performance to the data disk. Only works when disk type is `CLOUD_TSSD` or `CLOUD_HSSD`. ThroughputPerformance *int `pulumi:"throughputPerformance"` }
type InstanceDataDiskArgs ¶
type InstanceDataDiskArgs struct { // Data disk ID used to initialize the data disk. When data disk type is `LOCAL_BASIC` and `LOCAL_SSD`, disk id is not supported. DataDiskId pulumi.StringPtrInput `pulumi:"dataDiskId"` // Size of the data disk, and unit is GB. DataDiskSize pulumi.IntInput `pulumi:"dataDiskSize"` // Snapshot ID of the data disk. The selected data disk snapshot size must be smaller than the data disk size. DataDiskSnapshotId pulumi.StringPtrInput `pulumi:"dataDiskSnapshotId"` // Data disk type. For more information about limits on different data 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, LOCAL_NVME: local NVME disk, specified in the InstanceType, LOCAL_PRO: local HDD disk, specified in the InstanceType, CLOUD_BASIC: HDD cloud disk, CLOUD_PREMIUM: Premium Cloud Storage, CLOUD_SSD: SSD, CLOUD_HSSD: Enhanced SSD, CLOUD_TSSD: Tremendous SSD, CLOUD_BSSD: Balanced SSD. DataDiskType pulumi.StringInput `pulumi:"dataDiskType"` // Decides whether the disk is deleted with instance(only applied to `CLOUD_BASIC`, `CLOUD_SSD` and `CLOUD_PREMIUM` disk with `POSTPAID_BY_HOUR` instance), default is true. DeleteWithInstance pulumi.BoolPtrInput `pulumi:"deleteWithInstance"` // Decides whether the disk is encrypted. Default is `false`. Encrypt pulumi.BoolPtrInput `pulumi:"encrypt"` // Add extra performance to the data disk. Only works when disk type is `CLOUD_TSSD` or `CLOUD_HSSD`. 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) ElementType() reflect.Type
func (InstanceDataDiskArrayOutput) Index ¶
func (o InstanceDataDiskArrayOutput) Index(i pulumi.IntInput) InstanceDataDiskOutput
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 (o InstanceDataDiskOutput) DataDiskId() pulumi.StringPtrOutput
Data disk ID used to initialize the data disk. When data disk type is `LOCAL_BASIC` and `LOCAL_SSD`, disk id is not supported.
func (InstanceDataDiskOutput) DataDiskSize ¶
func (o InstanceDataDiskOutput) DataDiskSize() pulumi.IntOutput
Size of the data disk, and unit is GB.
func (InstanceDataDiskOutput) DataDiskSnapshotId ¶
func (o InstanceDataDiskOutput) DataDiskSnapshotId() pulumi.StringPtrOutput
Snapshot ID of the data disk. The selected data disk snapshot size must be smaller than the data disk size.
func (InstanceDataDiskOutput) DataDiskType ¶
func (o InstanceDataDiskOutput) DataDiskType() pulumi.StringOutput
Data disk type. For more information about limits on different data 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, LOCAL_NVME: local NVME disk, specified in the InstanceType, LOCAL_PRO: local HDD disk, specified in the InstanceType, CLOUD_BASIC: HDD cloud disk, CLOUD_PREMIUM: Premium Cloud Storage, CLOUD_SSD: SSD, CLOUD_HSSD: Enhanced SSD, CLOUD_TSSD: Tremendous SSD, CLOUD_BSSD: Balanced SSD.
func (InstanceDataDiskOutput) DeleteWithInstance ¶
func (o InstanceDataDiskOutput) DeleteWithInstance() pulumi.BoolPtrOutput
Decides whether the disk is deleted with instance(only applied to `CLOUD_BASIC`, `CLOUD_SSD` and `CLOUD_PREMIUM` disk with `POSTPAID_BY_HOUR` instance), default is true.
func (InstanceDataDiskOutput) ElementType ¶
func (InstanceDataDiskOutput) ElementType() reflect.Type
func (InstanceDataDiskOutput) Encrypt ¶
func (o InstanceDataDiskOutput) Encrypt() pulumi.BoolPtrOutput
Decides whether the disk is encrypted. Default is `false`.
func (InstanceDataDiskOutput) ThroughputPerformance ¶
func (o InstanceDataDiskOutput) ThroughputPerformance() pulumi.IntPtrOutput
Add extra performance to the data disk. Only works when disk type is `CLOUD_TSSD` or `CLOUD_HSSD`.
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 (o InstanceMapOutput) MapIndex(k pulumi.StringInput) InstanceOutput
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 bandwidthPackageId 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 instanceChargeType 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 instanceChargeType is set to `CDHPAID`.
func (InstanceOutput) Cpu ¶ added in v0.1.9
func (o InstanceOutput) Cpu() pulumi.IntOutput
The number of CPU cores of the instance.
func (InstanceOutput) CreateTime ¶
func (o InstanceOutput) CreateTime() pulumi.StringOutput
Create time of the instance.
func (InstanceOutput) DataDisks ¶
func (o InstanceOutput) DataDisks() InstanceDataDiskArrayOutput
Settings for data disks.
func (InstanceOutput) DisableApiTermination ¶ added in v0.1.3
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 `imageId` 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`, `CDHPAID` and `CDCPAID`. 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 `spotInstanceType` and `spotMaxPrice` at the same time. `CDHPAID` instance must set `cdhInstanceType` and `cdhHostId`.
func (InstanceOutput) InstanceChargeTypePrepaidPeriod ¶
func (o InstanceOutput) InstanceChargeTypePrepaidPeriod() pulumi.IntPtrOutput
The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when instanceChargeType is set to `PREPAID`. Valid values are `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`, `11`, `12`, `24`, `36`, `48`, `60`.
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 instanceChargeType is set to `PREPAID`.
func (InstanceOutput) InstanceCount
deprecated
func (o InstanceOutput) InstanceCount() pulumi.IntPtrOutput
It has been deprecated from version 1.59.18. Use built-in `count` instead. 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 `allocatePublicIp` 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 `allocatePublicIp` 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 ¶ added in v0.1.3
func (o InstanceOutput) KeyIds() pulumi.StringArrayOutput
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
Please use `keyIds` instead. The key pair to use for the instance, it looks like `skey-16jig7tx`. Modifying will cause the instance reset.
Deprecated: Please use `keyIds` instead.
func (InstanceOutput) Memory ¶ added in v0.1.9
func (o InstanceOutput) Memory() pulumi.IntOutput
Instance memory capacity, unit in GB.
func (InstanceOutput) OrderlySecurityGroups ¶ added in v0.1.3
func (o InstanceOutput) OrderlySecurityGroups() pulumi.StringArrayOutput
A list of orderly security group IDs to associate with.
func (InstanceOutput) OsName ¶ added in v0.1.9
func (o InstanceOutput) OsName() pulumi.StringOutput
Instance os name.
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
It will be deprecated. Use `orderlySecurityGroups` instead. A list of security group IDs to associate with.
Deprecated: It will be deprecated. Use `orderlySecurityGroups` instead.
func (InstanceOutput) SpotInstanceType ¶
func (o InstanceOutput) SpotInstanceType() pulumi.StringPtrOutput
Type of spot instance, only support `ONE-TIME` now. Note: it only works when instanceChargeType 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 instanceChargeType 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 `userData`. Up to 16 KB after base64 encoded.
func (InstanceOutput) Uuid ¶ added in v0.1.9
func (o InstanceOutput) Uuid() pulumi.StringOutput
Globally unique ID of the instance.
func (InstanceOutput) VpcId ¶
func (o InstanceOutput) 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 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 bandwidthPackageId 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 instanceChargeType 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 instanceChargeType is set to `CDHPAID`. CdhInstanceType pulumi.StringPtrInput // The number of CPU cores of the instance. Cpu pulumi.IntPtrInput // 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 `imageId` will cause the instance reset. ImageId pulumi.StringPtrInput // The charge type of instance. Valid values are `PREPAID`, `POSTPAID_BY_HOUR`, `SPOTPAID`, `CDHPAID` and `CDCPAID`. 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 `spotInstanceType` and `spotMaxPrice` at the same time. `CDHPAID` instance must set `cdhInstanceType` and `cdhHostId`. InstanceChargeType pulumi.StringPtrInput // The tenancy (time unit is month) of the prepaid instance, NOTE: it only works when instanceChargeType is set to `PREPAID`. Valid values are `1`, `2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`, `10`, `11`, `12`, `24`, `36`, `48`, `60`. 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 instanceChargeType is set to `PREPAID`. InstanceChargeTypePrepaidRenewFlag pulumi.StringPtrInput // It has been deprecated from version 1.59.18. Use built-in `count` instead. 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 `allocatePublicIp` 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 `allocatePublicIp` 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 // Please use `keyIds` instead. The key pair to use for the instance, it looks like `skey-16jig7tx`. Modifying will cause the instance reset. // // Deprecated: Please use `keyIds` instead. KeyName pulumi.StringPtrInput // Instance memory capacity, unit in GB. Memory pulumi.IntPtrInput // A list of orderly security group IDs to associate with. OrderlySecurityGroups pulumi.StringArrayInput // Instance os name. OsName 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 // Set instance to running or stop. Default value is true, the instance will shutdown when this flag is false. RunningFlag pulumi.BoolPtrInput // It will be deprecated. Use `orderlySecurityGroups` instead. A list of security group IDs to associate with. // // Deprecated: It will be deprecated. Use `orderlySecurityGroups` instead. SecurityGroups pulumi.StringArrayInput // Type of spot instance, only support `ONE-TIME` now. Note: it only works when instanceChargeType 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 instanceChargeType 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 `userData`. Up to 16 KB after base64 encoded. UserDataRaw pulumi.StringPtrInput // Globally unique ID of the instance. Uuid 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 bandwidthPackageId 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 `imageId` 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 `allocatePublicIp` 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 `allocatePublicIp` 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 `userData`. 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"` }
Provides a CVM instance set resource.
> **NOTE:** You can launch an CVM instance for a VPC network via specifying parameter `vpcId`. One instance can only belong to one VPC.
> **NOTE:** This resource is designed to cater for the scenario of creating CVM in large batches.
> **NOTE:** After run command `pulumi up`, must wait all cvms is ready, then run command `pulumi preview`, either it will cause state change.
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) ToSetOutput ¶
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 bandwidthPackageId 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 `imageId` 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 `allocatePublicIp` 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 `allocatePublicIp` 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 `userData`. 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 ¶
type SetArray ¶
type SetArray []SetInput
func (SetArray) ElementType ¶
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) ToSetArrayOutput ¶
func (o SetArrayOutput) ToSetArrayOutput() SetArrayOutput
func (SetArrayOutput) ToSetArrayOutputWithContext ¶
func (o SetArrayOutput) ToSetArrayOutputWithContext(ctx context.Context) SetArrayOutput
type SetMap ¶
func (SetMap) ElementType ¶
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 bandwidthPackageId 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) 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 `imageId` 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 `allocatePublicIp` is false.
func (SetOutput) InternetMaxBandwidthOut ¶
Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bits per second). This value does not need to be set when `allocatePublicIp` 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 (SetOutput) ToSetOutputWithContext ¶
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 `userData`. 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 bandwidthPackageId 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 `imageId` 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 `allocatePublicIp` 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 `allocatePublicIp` 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 `userData`. 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 }