tencentcloud.LighthouseRenewInstance
Explore with Pulumi AI
Provides a resource to create a lighthouse renew_instance
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const renewInstance = new tencentcloud.LighthouseRenewInstance("renewInstance", {
autoVoucher: false,
instanceChargePrepaid: {
period: 1,
renewFlag: "NOTIFY_AND_MANUAL_RENEW",
},
instanceId: "lhins-xxxxxxx",
renewDataDisk: true,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
renew_instance = tencentcloud.LighthouseRenewInstance("renewInstance",
auto_voucher=False,
instance_charge_prepaid={
"period": 1,
"renew_flag": "NOTIFY_AND_MANUAL_RENEW",
},
instance_id="lhins-xxxxxxx",
renew_data_disk=True)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewLighthouseRenewInstance(ctx, "renewInstance", &tencentcloud.LighthouseRenewInstanceArgs{
AutoVoucher: pulumi.Bool(false),
InstanceChargePrepaid: &tencentcloud.LighthouseRenewInstanceInstanceChargePrepaidArgs{
Period: pulumi.Float64(1),
RenewFlag: pulumi.String("NOTIFY_AND_MANUAL_RENEW"),
},
InstanceId: pulumi.String("lhins-xxxxxxx"),
RenewDataDisk: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var renewInstance = new Tencentcloud.LighthouseRenewInstance("renewInstance", new()
{
AutoVoucher = false,
InstanceChargePrepaid = new Tencentcloud.Inputs.LighthouseRenewInstanceInstanceChargePrepaidArgs
{
Period = 1,
RenewFlag = "NOTIFY_AND_MANUAL_RENEW",
},
InstanceId = "lhins-xxxxxxx",
RenewDataDisk = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.LighthouseRenewInstance;
import com.pulumi.tencentcloud.LighthouseRenewInstanceArgs;
import com.pulumi.tencentcloud.inputs.LighthouseRenewInstanceInstanceChargePrepaidArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var renewInstance = new LighthouseRenewInstance("renewInstance", LighthouseRenewInstanceArgs.builder()
.autoVoucher(false)
.instanceChargePrepaid(LighthouseRenewInstanceInstanceChargePrepaidArgs.builder()
.period(1)
.renewFlag("NOTIFY_AND_MANUAL_RENEW")
.build())
.instanceId("lhins-xxxxxxx")
.renewDataDisk(true)
.build());
}
}
resources:
renewInstance:
type: tencentcloud:LighthouseRenewInstance
properties:
autoVoucher: false
instanceChargePrepaid:
period: 1
renewFlag: NOTIFY_AND_MANUAL_RENEW
instanceId: lhins-xxxxxxx
renewDataDisk: true
Create LighthouseRenewInstance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LighthouseRenewInstance(name: string, args: LighthouseRenewInstanceArgs, opts?: CustomResourceOptions);
@overload
def LighthouseRenewInstance(resource_name: str,
args: LighthouseRenewInstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def LighthouseRenewInstance(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_charge_prepaid: Optional[LighthouseRenewInstanceInstanceChargePrepaidArgs] = None,
instance_id: Optional[str] = None,
auto_voucher: Optional[bool] = None,
lighthouse_renew_instance_id: Optional[str] = None,
renew_data_disk: Optional[bool] = None)
func NewLighthouseRenewInstance(ctx *Context, name string, args LighthouseRenewInstanceArgs, opts ...ResourceOption) (*LighthouseRenewInstance, error)
public LighthouseRenewInstance(string name, LighthouseRenewInstanceArgs args, CustomResourceOptions? opts = null)
public LighthouseRenewInstance(String name, LighthouseRenewInstanceArgs args)
public LighthouseRenewInstance(String name, LighthouseRenewInstanceArgs args, CustomResourceOptions options)
type: tencentcloud:LighthouseRenewInstance
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args LighthouseRenewInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args LighthouseRenewInstanceArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args LighthouseRenewInstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LighthouseRenewInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LighthouseRenewInstanceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
LighthouseRenewInstance Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The LighthouseRenewInstance resource accepts the following input properties:
- Instance
Charge LighthousePrepaid Renew Instance Instance Charge Prepaid - Prepaid mode, that is, yearly and monthly subscription related parameter settings. Through this parameter, you can specify attributes such as the purchase duration of the Subscription instance and whether to set automatic renewal.
- Instance
Id string - Instance ID.
- Auto
Voucher bool - Whether to automatically deduct vouchers. Valid values:
- true: Automatically deduct vouchers. -false:Do not automatically deduct vouchers. Default value: false.
- Lighthouse
Renew stringInstance Id - ID of the resource.
- Renew
Data boolDisk - Whether to renew the data disk. Valid values:true: Indicates that the renewal instance also renews the data disk attached to it.false: Indicates that the instance will be renewed and the data disk attached to it will not be renewed at the same time.Default value: true.
- Instance
Charge LighthousePrepaid Renew Instance Instance Charge Prepaid Args - Prepaid mode, that is, yearly and monthly subscription related parameter settings. Through this parameter, you can specify attributes such as the purchase duration of the Subscription instance and whether to set automatic renewal.
- Instance
Id string - Instance ID.
- Auto
Voucher bool - Whether to automatically deduct vouchers. Valid values:
- true: Automatically deduct vouchers. -false:Do not automatically deduct vouchers. Default value: false.
- Lighthouse
Renew stringInstance Id - ID of the resource.
- Renew
Data boolDisk - Whether to renew the data disk. Valid values:true: Indicates that the renewal instance also renews the data disk attached to it.false: Indicates that the instance will be renewed and the data disk attached to it will not be renewed at the same time.Default value: true.
- instance
Charge LighthousePrepaid Renew Instance Instance Charge Prepaid - Prepaid mode, that is, yearly and monthly subscription related parameter settings. Through this parameter, you can specify attributes such as the purchase duration of the Subscription instance and whether to set automatic renewal.
- instance
Id String - Instance ID.
- auto
Voucher Boolean - Whether to automatically deduct vouchers. Valid values:
- true: Automatically deduct vouchers. -false:Do not automatically deduct vouchers. Default value: false.
- lighthouse
Renew StringInstance Id - ID of the resource.
- renew
Data BooleanDisk - Whether to renew the data disk. Valid values:true: Indicates that the renewal instance also renews the data disk attached to it.false: Indicates that the instance will be renewed and the data disk attached to it will not be renewed at the same time.Default value: true.
- instance
Charge LighthousePrepaid Renew Instance Instance Charge Prepaid - Prepaid mode, that is, yearly and monthly subscription related parameter settings. Through this parameter, you can specify attributes such as the purchase duration of the Subscription instance and whether to set automatic renewal.
- instance
Id string - Instance ID.
- auto
Voucher boolean - Whether to automatically deduct vouchers. Valid values:
- true: Automatically deduct vouchers. -false:Do not automatically deduct vouchers. Default value: false.
- lighthouse
Renew stringInstance Id - ID of the resource.
- renew
Data booleanDisk - Whether to renew the data disk. Valid values:true: Indicates that the renewal instance also renews the data disk attached to it.false: Indicates that the instance will be renewed and the data disk attached to it will not be renewed at the same time.Default value: true.
- instance_
charge_ Lighthouseprepaid Renew Instance Instance Charge Prepaid Args - Prepaid mode, that is, yearly and monthly subscription related parameter settings. Through this parameter, you can specify attributes such as the purchase duration of the Subscription instance and whether to set automatic renewal.
- instance_
id str - Instance ID.
- auto_
voucher bool - Whether to automatically deduct vouchers. Valid values:
- true: Automatically deduct vouchers. -false:Do not automatically deduct vouchers. Default value: false.
- lighthouse_
renew_ strinstance_ id - ID of the resource.
- renew_
data_ booldisk - Whether to renew the data disk. Valid values:true: Indicates that the renewal instance also renews the data disk attached to it.false: Indicates that the instance will be renewed and the data disk attached to it will not be renewed at the same time.Default value: true.
- instance
Charge Property MapPrepaid - Prepaid mode, that is, yearly and monthly subscription related parameter settings. Through this parameter, you can specify attributes such as the purchase duration of the Subscription instance and whether to set automatic renewal.
- instance
Id String - Instance ID.
- auto
Voucher Boolean - Whether to automatically deduct vouchers. Valid values:
- true: Automatically deduct vouchers. -false:Do not automatically deduct vouchers. Default value: false.
- lighthouse
Renew StringInstance Id - ID of the resource.
- renew
Data BooleanDisk - Whether to renew the data disk. Valid values:true: Indicates that the renewal instance also renews the data disk attached to it.false: Indicates that the instance will be renewed and the data disk attached to it will not be renewed at the same time.Default value: true.
Outputs
All input properties are implicitly available as output properties. Additionally, the LighthouseRenewInstance resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing LighthouseRenewInstance Resource
Get an existing LighthouseRenewInstance resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: LighthouseRenewInstanceState, opts?: CustomResourceOptions): LighthouseRenewInstance
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
auto_voucher: Optional[bool] = None,
instance_charge_prepaid: Optional[LighthouseRenewInstanceInstanceChargePrepaidArgs] = None,
instance_id: Optional[str] = None,
lighthouse_renew_instance_id: Optional[str] = None,
renew_data_disk: Optional[bool] = None) -> LighthouseRenewInstance
func GetLighthouseRenewInstance(ctx *Context, name string, id IDInput, state *LighthouseRenewInstanceState, opts ...ResourceOption) (*LighthouseRenewInstance, error)
public static LighthouseRenewInstance Get(string name, Input<string> id, LighthouseRenewInstanceState? state, CustomResourceOptions? opts = null)
public static LighthouseRenewInstance get(String name, Output<String> id, LighthouseRenewInstanceState state, CustomResourceOptions options)
resources: _: type: tencentcloud:LighthouseRenewInstance get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Auto
Voucher bool - Whether to automatically deduct vouchers. Valid values:
- true: Automatically deduct vouchers. -false:Do not automatically deduct vouchers. Default value: false.
- Instance
Charge LighthousePrepaid Renew Instance Instance Charge Prepaid - Prepaid mode, that is, yearly and monthly subscription related parameter settings. Through this parameter, you can specify attributes such as the purchase duration of the Subscription instance and whether to set automatic renewal.
- Instance
Id string - Instance ID.
- Lighthouse
Renew stringInstance Id - ID of the resource.
- Renew
Data boolDisk - Whether to renew the data disk. Valid values:true: Indicates that the renewal instance also renews the data disk attached to it.false: Indicates that the instance will be renewed and the data disk attached to it will not be renewed at the same time.Default value: true.
- Auto
Voucher bool - Whether to automatically deduct vouchers. Valid values:
- true: Automatically deduct vouchers. -false:Do not automatically deduct vouchers. Default value: false.
- Instance
Charge LighthousePrepaid Renew Instance Instance Charge Prepaid Args - Prepaid mode, that is, yearly and monthly subscription related parameter settings. Through this parameter, you can specify attributes such as the purchase duration of the Subscription instance and whether to set automatic renewal.
- Instance
Id string - Instance ID.
- Lighthouse
Renew stringInstance Id - ID of the resource.
- Renew
Data boolDisk - Whether to renew the data disk. Valid values:true: Indicates that the renewal instance also renews the data disk attached to it.false: Indicates that the instance will be renewed and the data disk attached to it will not be renewed at the same time.Default value: true.
- auto
Voucher Boolean - Whether to automatically deduct vouchers. Valid values:
- true: Automatically deduct vouchers. -false:Do not automatically deduct vouchers. Default value: false.
- instance
Charge LighthousePrepaid Renew Instance Instance Charge Prepaid - Prepaid mode, that is, yearly and monthly subscription related parameter settings. Through this parameter, you can specify attributes such as the purchase duration of the Subscription instance and whether to set automatic renewal.
- instance
Id String - Instance ID.
- lighthouse
Renew StringInstance Id - ID of the resource.
- renew
Data BooleanDisk - Whether to renew the data disk. Valid values:true: Indicates that the renewal instance also renews the data disk attached to it.false: Indicates that the instance will be renewed and the data disk attached to it will not be renewed at the same time.Default value: true.
- auto
Voucher boolean - Whether to automatically deduct vouchers. Valid values:
- true: Automatically deduct vouchers. -false:Do not automatically deduct vouchers. Default value: false.
- instance
Charge LighthousePrepaid Renew Instance Instance Charge Prepaid - Prepaid mode, that is, yearly and monthly subscription related parameter settings. Through this parameter, you can specify attributes such as the purchase duration of the Subscription instance and whether to set automatic renewal.
- instance
Id string - Instance ID.
- lighthouse
Renew stringInstance Id - ID of the resource.
- renew
Data booleanDisk - Whether to renew the data disk. Valid values:true: Indicates that the renewal instance also renews the data disk attached to it.false: Indicates that the instance will be renewed and the data disk attached to it will not be renewed at the same time.Default value: true.
- auto_
voucher bool - Whether to automatically deduct vouchers. Valid values:
- true: Automatically deduct vouchers. -false:Do not automatically deduct vouchers. Default value: false.
- instance_
charge_ Lighthouseprepaid Renew Instance Instance Charge Prepaid Args - Prepaid mode, that is, yearly and monthly subscription related parameter settings. Through this parameter, you can specify attributes such as the purchase duration of the Subscription instance and whether to set automatic renewal.
- instance_
id str - Instance ID.
- lighthouse_
renew_ strinstance_ id - ID of the resource.
- renew_
data_ booldisk - Whether to renew the data disk. Valid values:true: Indicates that the renewal instance also renews the data disk attached to it.false: Indicates that the instance will be renewed and the data disk attached to it will not be renewed at the same time.Default value: true.
- auto
Voucher Boolean - Whether to automatically deduct vouchers. Valid values:
- true: Automatically deduct vouchers. -false:Do not automatically deduct vouchers. Default value: false.
- instance
Charge Property MapPrepaid - Prepaid mode, that is, yearly and monthly subscription related parameter settings. Through this parameter, you can specify attributes such as the purchase duration of the Subscription instance and whether to set automatic renewal.
- instance
Id String - Instance ID.
- lighthouse
Renew StringInstance Id - ID of the resource.
- renew
Data BooleanDisk - Whether to renew the data disk. Valid values:true: Indicates that the renewal instance also renews the data disk attached to it.false: Indicates that the instance will be renewed and the data disk attached to it will not be renewed at the same time.Default value: true.
Supporting Types
LighthouseRenewInstanceInstanceChargePrepaid, LighthouseRenewInstanceInstanceChargePrepaidArgs
- Period double
- The duration of purchasing an instance. Unit is month. Valid values are (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36, 48, 60).
- Renew
Flag string - Automatic renewal logo. Values:
NOTIFY_AND_AUTO_RENEW
: notify expiration and renew automatically;NOTIFY_AND_MANUAL_RENEW
: notification of expiration does not renew automatically. Users need to renew manually;DISABLE_NOTIFY_AND_AUTO_RENEW
: no automatic renewal and no notification; Default value:NOTIFY_AND_MANUAL_RENEW
. If this parameter is specified asNOTIFY_AND_AUTO_RENEW
, the instance will be automatically renewed on a monthly basis after expiration, when the account balance is sufficient.
- Period float64
- The duration of purchasing an instance. Unit is month. Valid values are (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36, 48, 60).
- Renew
Flag string - Automatic renewal logo. Values:
NOTIFY_AND_AUTO_RENEW
: notify expiration and renew automatically;NOTIFY_AND_MANUAL_RENEW
: notification of expiration does not renew automatically. Users need to renew manually;DISABLE_NOTIFY_AND_AUTO_RENEW
: no automatic renewal and no notification; Default value:NOTIFY_AND_MANUAL_RENEW
. If this parameter is specified asNOTIFY_AND_AUTO_RENEW
, the instance will be automatically renewed on a monthly basis after expiration, when the account balance is sufficient.
- period Double
- The duration of purchasing an instance. Unit is month. Valid values are (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36, 48, 60).
- renew
Flag String - Automatic renewal logo. Values:
NOTIFY_AND_AUTO_RENEW
: notify expiration and renew automatically;NOTIFY_AND_MANUAL_RENEW
: notification of expiration does not renew automatically. Users need to renew manually;DISABLE_NOTIFY_AND_AUTO_RENEW
: no automatic renewal and no notification; Default value:NOTIFY_AND_MANUAL_RENEW
. If this parameter is specified asNOTIFY_AND_AUTO_RENEW
, the instance will be automatically renewed on a monthly basis after expiration, when the account balance is sufficient.
- period number
- The duration of purchasing an instance. Unit is month. Valid values are (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36, 48, 60).
- renew
Flag string - Automatic renewal logo. Values:
NOTIFY_AND_AUTO_RENEW
: notify expiration and renew automatically;NOTIFY_AND_MANUAL_RENEW
: notification of expiration does not renew automatically. Users need to renew manually;DISABLE_NOTIFY_AND_AUTO_RENEW
: no automatic renewal and no notification; Default value:NOTIFY_AND_MANUAL_RENEW
. If this parameter is specified asNOTIFY_AND_AUTO_RENEW
, the instance will be automatically renewed on a monthly basis after expiration, when the account balance is sufficient.
- period float
- The duration of purchasing an instance. Unit is month. Valid values are (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36, 48, 60).
- renew_
flag str - Automatic renewal logo. Values:
NOTIFY_AND_AUTO_RENEW
: notify expiration and renew automatically;NOTIFY_AND_MANUAL_RENEW
: notification of expiration does not renew automatically. Users need to renew manually;DISABLE_NOTIFY_AND_AUTO_RENEW
: no automatic renewal and no notification; Default value:NOTIFY_AND_MANUAL_RENEW
. If this parameter is specified asNOTIFY_AND_AUTO_RENEW
, the instance will be automatically renewed on a monthly basis after expiration, when the account balance is sufficient.
- period Number
- The duration of purchasing an instance. Unit is month. Valid values are (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36, 48, 60).
- renew
Flag String - Automatic renewal logo. Values:
NOTIFY_AND_AUTO_RENEW
: notify expiration and renew automatically;NOTIFY_AND_MANUAL_RENEW
: notification of expiration does not renew automatically. Users need to renew manually;DISABLE_NOTIFY_AND_AUTO_RENEW
: no automatic renewal and no notification; Default value:NOTIFY_AND_MANUAL_RENEW
. If this parameter is specified asNOTIFY_AND_AUTO_RENEW
, the instance will be automatically renewed on a monthly basis after expiration, when the account balance is sufficient.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.