Provides a resource to create a CWP auto open proversion config
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.CwpAutoOpenProversionConfig("example", {
status: "OPEN",
protectType: "FLAGSHIP_PREPAY",
autoRepurchaseRenewSwitch: 1,
autoRepurchaseSwitch: 1,
repurchaseRenewSwitch: 0,
autoBindRaspSwitch: 1,
autoOpenRaspSwitch: 1,
autoDowngradeSwitch: 0,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.CwpAutoOpenProversionConfig("example",
status="OPEN",
protect_type="FLAGSHIP_PREPAY",
auto_repurchase_renew_switch=1,
auto_repurchase_switch=1,
repurchase_renew_switch=0,
auto_bind_rasp_switch=1,
auto_open_rasp_switch=1,
auto_downgrade_switch=0)
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.NewCwpAutoOpenProversionConfig(ctx, "example", &tencentcloud.CwpAutoOpenProversionConfigArgs{
Status: pulumi.String("OPEN"),
ProtectType: pulumi.String("FLAGSHIP_PREPAY"),
AutoRepurchaseRenewSwitch: pulumi.Float64(1),
AutoRepurchaseSwitch: pulumi.Float64(1),
RepurchaseRenewSwitch: pulumi.Float64(0),
AutoBindRaspSwitch: pulumi.Float64(1),
AutoOpenRaspSwitch: pulumi.Float64(1),
AutoDowngradeSwitch: pulumi.Float64(0),
})
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 example = new Tencentcloud.CwpAutoOpenProversionConfig("example", new()
{
Status = "OPEN",
ProtectType = "FLAGSHIP_PREPAY",
AutoRepurchaseRenewSwitch = 1,
AutoRepurchaseSwitch = 1,
RepurchaseRenewSwitch = 0,
AutoBindRaspSwitch = 1,
AutoOpenRaspSwitch = 1,
AutoDowngradeSwitch = 0,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CwpAutoOpenProversionConfig;
import com.pulumi.tencentcloud.CwpAutoOpenProversionConfigArgs;
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 example = new CwpAutoOpenProversionConfig("example", CwpAutoOpenProversionConfigArgs.builder()
.status("OPEN")
.protectType("FLAGSHIP_PREPAY")
.autoRepurchaseRenewSwitch(1.0)
.autoRepurchaseSwitch(1.0)
.repurchaseRenewSwitch(0.0)
.autoBindRaspSwitch(1.0)
.autoOpenRaspSwitch(1.0)
.autoDowngradeSwitch(0.0)
.build());
}
}
resources:
example:
type: tencentcloud:CwpAutoOpenProversionConfig
properties:
status: OPEN
protectType: FLAGSHIP_PREPAY
autoRepurchaseRenewSwitch: 1
autoRepurchaseSwitch: 1
repurchaseRenewSwitch: 0
autoBindRaspSwitch: 1
autoOpenRaspSwitch: 1
autoDowngradeSwitch: 0
Create CwpAutoOpenProversionConfig Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CwpAutoOpenProversionConfig(name: string, args: CwpAutoOpenProversionConfigArgs, opts?: CustomResourceOptions);@overload
def CwpAutoOpenProversionConfig(resource_name: str,
args: CwpAutoOpenProversionConfigArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CwpAutoOpenProversionConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
status: Optional[str] = None,
auto_bind_rasp_switch: Optional[float] = None,
auto_downgrade_switch: Optional[float] = None,
auto_open_rasp_switch: Optional[float] = None,
auto_repurchase_renew_switch: Optional[float] = None,
auto_repurchase_switch: Optional[float] = None,
cwp_auto_open_proversion_config_id: Optional[str] = None,
protect_type: Optional[str] = None,
repurchase_renew_switch: Optional[float] = None)func NewCwpAutoOpenProversionConfig(ctx *Context, name string, args CwpAutoOpenProversionConfigArgs, opts ...ResourceOption) (*CwpAutoOpenProversionConfig, error)public CwpAutoOpenProversionConfig(string name, CwpAutoOpenProversionConfigArgs args, CustomResourceOptions? opts = null)
public CwpAutoOpenProversionConfig(String name, CwpAutoOpenProversionConfigArgs args)
public CwpAutoOpenProversionConfig(String name, CwpAutoOpenProversionConfigArgs args, CustomResourceOptions options)
type: tencentcloud:CwpAutoOpenProversionConfig
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 CwpAutoOpenProversionConfigArgs
- 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 CwpAutoOpenProversionConfigArgs
- 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 CwpAutoOpenProversionConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CwpAutoOpenProversionConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CwpAutoOpenProversionConfigArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
CwpAutoOpenProversionConfig 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 CwpAutoOpenProversionConfig resource accepts the following input properties:
- Status string
- Set the auto-activation status.
- Auto
Bind doubleRasp Switch - Newly added machines will be automatically bound to Rasp. 0: Disabled, 1: Enabled.
- Auto
Downgrade doubleSwitch - Automatic scaling switch: 0 for off, 1 for on.
- Auto
Open doubleRasp Switch - Newly added machines will have automatic Raspberry Pi protection enabled by default. (0: Disabled, 1: Enabled).
- Auto
Repurchase doubleRenew Switch - Auto-renewal or not for auto-purchased orders, 0 by default, 0 for OFF, 1 for ON.
- Auto
Repurchase doubleSwitch - Automatic purchase/expansion authorization switch, 1 by default, 0 for OFF, 1 for ON.
- Cwp
Auto stringOpen Proversion Config Id - ID of the resource.
- Protect
Type string - Enhanced Protection Mode PROVERSION_POSTPAY Professional Edition - Pay-as-you-go PROVERSION_PREPAY Professional Edition - Annual/Monthly Subscription FLAGSHIP_PREPAY Flagship Edition - Annual/Monthly Subscription.
- Repurchase
Renew doubleSwitch - Whether the manually purchased order is automatically renewed (defaults to 0). 0 - off; 1 -on.
- Status string
- Set the auto-activation status.
- Auto
Bind float64Rasp Switch - Newly added machines will be automatically bound to Rasp. 0: Disabled, 1: Enabled.
- Auto
Downgrade float64Switch - Automatic scaling switch: 0 for off, 1 for on.
- Auto
Open float64Rasp Switch - Newly added machines will have automatic Raspberry Pi protection enabled by default. (0: Disabled, 1: Enabled).
- Auto
Repurchase float64Renew Switch - Auto-renewal or not for auto-purchased orders, 0 by default, 0 for OFF, 1 for ON.
- Auto
Repurchase float64Switch - Automatic purchase/expansion authorization switch, 1 by default, 0 for OFF, 1 for ON.
- Cwp
Auto stringOpen Proversion Config Id - ID of the resource.
- Protect
Type string - Enhanced Protection Mode PROVERSION_POSTPAY Professional Edition - Pay-as-you-go PROVERSION_PREPAY Professional Edition - Annual/Monthly Subscription FLAGSHIP_PREPAY Flagship Edition - Annual/Monthly Subscription.
- Repurchase
Renew float64Switch - Whether the manually purchased order is automatically renewed (defaults to 0). 0 - off; 1 -on.
- status String
- Set the auto-activation status.
- auto
Bind DoubleRasp Switch - Newly added machines will be automatically bound to Rasp. 0: Disabled, 1: Enabled.
- auto
Downgrade DoubleSwitch - Automatic scaling switch: 0 for off, 1 for on.
- auto
Open DoubleRasp Switch - Newly added machines will have automatic Raspberry Pi protection enabled by default. (0: Disabled, 1: Enabled).
- auto
Repurchase DoubleRenew Switch - Auto-renewal or not for auto-purchased orders, 0 by default, 0 for OFF, 1 for ON.
- auto
Repurchase DoubleSwitch - Automatic purchase/expansion authorization switch, 1 by default, 0 for OFF, 1 for ON.
- cwp
Auto StringOpen Proversion Config Id - ID of the resource.
- protect
Type String - Enhanced Protection Mode PROVERSION_POSTPAY Professional Edition - Pay-as-you-go PROVERSION_PREPAY Professional Edition - Annual/Monthly Subscription FLAGSHIP_PREPAY Flagship Edition - Annual/Monthly Subscription.
- repurchase
Renew DoubleSwitch - Whether the manually purchased order is automatically renewed (defaults to 0). 0 - off; 1 -on.
- status string
- Set the auto-activation status.
- auto
Bind numberRasp Switch - Newly added machines will be automatically bound to Rasp. 0: Disabled, 1: Enabled.
- auto
Downgrade numberSwitch - Automatic scaling switch: 0 for off, 1 for on.
- auto
Open numberRasp Switch - Newly added machines will have automatic Raspberry Pi protection enabled by default. (0: Disabled, 1: Enabled).
- auto
Repurchase numberRenew Switch - Auto-renewal or not for auto-purchased orders, 0 by default, 0 for OFF, 1 for ON.
- auto
Repurchase numberSwitch - Automatic purchase/expansion authorization switch, 1 by default, 0 for OFF, 1 for ON.
- cwp
Auto stringOpen Proversion Config Id - ID of the resource.
- protect
Type string - Enhanced Protection Mode PROVERSION_POSTPAY Professional Edition - Pay-as-you-go PROVERSION_PREPAY Professional Edition - Annual/Monthly Subscription FLAGSHIP_PREPAY Flagship Edition - Annual/Monthly Subscription.
- repurchase
Renew numberSwitch - Whether the manually purchased order is automatically renewed (defaults to 0). 0 - off; 1 -on.
- status str
- Set the auto-activation status.
- auto_
bind_ floatrasp_ switch - Newly added machines will be automatically bound to Rasp. 0: Disabled, 1: Enabled.
- auto_
downgrade_ floatswitch - Automatic scaling switch: 0 for off, 1 for on.
- auto_
open_ floatrasp_ switch - Newly added machines will have automatic Raspberry Pi protection enabled by default. (0: Disabled, 1: Enabled).
- auto_
repurchase_ floatrenew_ switch - Auto-renewal or not for auto-purchased orders, 0 by default, 0 for OFF, 1 for ON.
- auto_
repurchase_ floatswitch - Automatic purchase/expansion authorization switch, 1 by default, 0 for OFF, 1 for ON.
- cwp_
auto_ stropen_ proversion_ config_ id - ID of the resource.
- protect_
type str - Enhanced Protection Mode PROVERSION_POSTPAY Professional Edition - Pay-as-you-go PROVERSION_PREPAY Professional Edition - Annual/Monthly Subscription FLAGSHIP_PREPAY Flagship Edition - Annual/Monthly Subscription.
- repurchase_
renew_ floatswitch - Whether the manually purchased order is automatically renewed (defaults to 0). 0 - off; 1 -on.
- status String
- Set the auto-activation status.
- auto
Bind NumberRasp Switch - Newly added machines will be automatically bound to Rasp. 0: Disabled, 1: Enabled.
- auto
Downgrade NumberSwitch - Automatic scaling switch: 0 for off, 1 for on.
- auto
Open NumberRasp Switch - Newly added machines will have automatic Raspberry Pi protection enabled by default. (0: Disabled, 1: Enabled).
- auto
Repurchase NumberRenew Switch - Auto-renewal or not for auto-purchased orders, 0 by default, 0 for OFF, 1 for ON.
- auto
Repurchase NumberSwitch - Automatic purchase/expansion authorization switch, 1 by default, 0 for OFF, 1 for ON.
- cwp
Auto StringOpen Proversion Config Id - ID of the resource.
- protect
Type String - Enhanced Protection Mode PROVERSION_POSTPAY Professional Edition - Pay-as-you-go PROVERSION_PREPAY Professional Edition - Annual/Monthly Subscription FLAGSHIP_PREPAY Flagship Edition - Annual/Monthly Subscription.
- repurchase
Renew NumberSwitch - Whether the manually purchased order is automatically renewed (defaults to 0). 0 - off; 1 -on.
Outputs
All input properties are implicitly available as output properties. Additionally, the CwpAutoOpenProversionConfig 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 CwpAutoOpenProversionConfig Resource
Get an existing CwpAutoOpenProversionConfig 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?: CwpAutoOpenProversionConfigState, opts?: CustomResourceOptions): CwpAutoOpenProversionConfig@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
auto_bind_rasp_switch: Optional[float] = None,
auto_downgrade_switch: Optional[float] = None,
auto_open_rasp_switch: Optional[float] = None,
auto_repurchase_renew_switch: Optional[float] = None,
auto_repurchase_switch: Optional[float] = None,
cwp_auto_open_proversion_config_id: Optional[str] = None,
protect_type: Optional[str] = None,
repurchase_renew_switch: Optional[float] = None,
status: Optional[str] = None) -> CwpAutoOpenProversionConfigfunc GetCwpAutoOpenProversionConfig(ctx *Context, name string, id IDInput, state *CwpAutoOpenProversionConfigState, opts ...ResourceOption) (*CwpAutoOpenProversionConfig, error)public static CwpAutoOpenProversionConfig Get(string name, Input<string> id, CwpAutoOpenProversionConfigState? state, CustomResourceOptions? opts = null)public static CwpAutoOpenProversionConfig get(String name, Output<String> id, CwpAutoOpenProversionConfigState state, CustomResourceOptions options)resources: _: type: tencentcloud:CwpAutoOpenProversionConfig 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
Bind doubleRasp Switch - Newly added machines will be automatically bound to Rasp. 0: Disabled, 1: Enabled.
- Auto
Downgrade doubleSwitch - Automatic scaling switch: 0 for off, 1 for on.
- Auto
Open doubleRasp Switch - Newly added machines will have automatic Raspberry Pi protection enabled by default. (0: Disabled, 1: Enabled).
- Auto
Repurchase doubleRenew Switch - Auto-renewal or not for auto-purchased orders, 0 by default, 0 for OFF, 1 for ON.
- Auto
Repurchase doubleSwitch - Automatic purchase/expansion authorization switch, 1 by default, 0 for OFF, 1 for ON.
- Cwp
Auto stringOpen Proversion Config Id - ID of the resource.
- Protect
Type string - Enhanced Protection Mode PROVERSION_POSTPAY Professional Edition - Pay-as-you-go PROVERSION_PREPAY Professional Edition - Annual/Monthly Subscription FLAGSHIP_PREPAY Flagship Edition - Annual/Monthly Subscription.
- Repurchase
Renew doubleSwitch - Whether the manually purchased order is automatically renewed (defaults to 0). 0 - off; 1 -on.
- Status string
- Set the auto-activation status.
- Auto
Bind float64Rasp Switch - Newly added machines will be automatically bound to Rasp. 0: Disabled, 1: Enabled.
- Auto
Downgrade float64Switch - Automatic scaling switch: 0 for off, 1 for on.
- Auto
Open float64Rasp Switch - Newly added machines will have automatic Raspberry Pi protection enabled by default. (0: Disabled, 1: Enabled).
- Auto
Repurchase float64Renew Switch - Auto-renewal or not for auto-purchased orders, 0 by default, 0 for OFF, 1 for ON.
- Auto
Repurchase float64Switch - Automatic purchase/expansion authorization switch, 1 by default, 0 for OFF, 1 for ON.
- Cwp
Auto stringOpen Proversion Config Id - ID of the resource.
- Protect
Type string - Enhanced Protection Mode PROVERSION_POSTPAY Professional Edition - Pay-as-you-go PROVERSION_PREPAY Professional Edition - Annual/Monthly Subscription FLAGSHIP_PREPAY Flagship Edition - Annual/Monthly Subscription.
- Repurchase
Renew float64Switch - Whether the manually purchased order is automatically renewed (defaults to 0). 0 - off; 1 -on.
- Status string
- Set the auto-activation status.
- auto
Bind DoubleRasp Switch - Newly added machines will be automatically bound to Rasp. 0: Disabled, 1: Enabled.
- auto
Downgrade DoubleSwitch - Automatic scaling switch: 0 for off, 1 for on.
- auto
Open DoubleRasp Switch - Newly added machines will have automatic Raspberry Pi protection enabled by default. (0: Disabled, 1: Enabled).
- auto
Repurchase DoubleRenew Switch - Auto-renewal or not for auto-purchased orders, 0 by default, 0 for OFF, 1 for ON.
- auto
Repurchase DoubleSwitch - Automatic purchase/expansion authorization switch, 1 by default, 0 for OFF, 1 for ON.
- cwp
Auto StringOpen Proversion Config Id - ID of the resource.
- protect
Type String - Enhanced Protection Mode PROVERSION_POSTPAY Professional Edition - Pay-as-you-go PROVERSION_PREPAY Professional Edition - Annual/Monthly Subscription FLAGSHIP_PREPAY Flagship Edition - Annual/Monthly Subscription.
- repurchase
Renew DoubleSwitch - Whether the manually purchased order is automatically renewed (defaults to 0). 0 - off; 1 -on.
- status String
- Set the auto-activation status.
- auto
Bind numberRasp Switch - Newly added machines will be automatically bound to Rasp. 0: Disabled, 1: Enabled.
- auto
Downgrade numberSwitch - Automatic scaling switch: 0 for off, 1 for on.
- auto
Open numberRasp Switch - Newly added machines will have automatic Raspberry Pi protection enabled by default. (0: Disabled, 1: Enabled).
- auto
Repurchase numberRenew Switch - Auto-renewal or not for auto-purchased orders, 0 by default, 0 for OFF, 1 for ON.
- auto
Repurchase numberSwitch - Automatic purchase/expansion authorization switch, 1 by default, 0 for OFF, 1 for ON.
- cwp
Auto stringOpen Proversion Config Id - ID of the resource.
- protect
Type string - Enhanced Protection Mode PROVERSION_POSTPAY Professional Edition - Pay-as-you-go PROVERSION_PREPAY Professional Edition - Annual/Monthly Subscription FLAGSHIP_PREPAY Flagship Edition - Annual/Monthly Subscription.
- repurchase
Renew numberSwitch - Whether the manually purchased order is automatically renewed (defaults to 0). 0 - off; 1 -on.
- status string
- Set the auto-activation status.
- auto_
bind_ floatrasp_ switch - Newly added machines will be automatically bound to Rasp. 0: Disabled, 1: Enabled.
- auto_
downgrade_ floatswitch - Automatic scaling switch: 0 for off, 1 for on.
- auto_
open_ floatrasp_ switch - Newly added machines will have automatic Raspberry Pi protection enabled by default. (0: Disabled, 1: Enabled).
- auto_
repurchase_ floatrenew_ switch - Auto-renewal or not for auto-purchased orders, 0 by default, 0 for OFF, 1 for ON.
- auto_
repurchase_ floatswitch - Automatic purchase/expansion authorization switch, 1 by default, 0 for OFF, 1 for ON.
- cwp_
auto_ stropen_ proversion_ config_ id - ID of the resource.
- protect_
type str - Enhanced Protection Mode PROVERSION_POSTPAY Professional Edition - Pay-as-you-go PROVERSION_PREPAY Professional Edition - Annual/Monthly Subscription FLAGSHIP_PREPAY Flagship Edition - Annual/Monthly Subscription.
- repurchase_
renew_ floatswitch - Whether the manually purchased order is automatically renewed (defaults to 0). 0 - off; 1 -on.
- status str
- Set the auto-activation status.
- auto
Bind NumberRasp Switch - Newly added machines will be automatically bound to Rasp. 0: Disabled, 1: Enabled.
- auto
Downgrade NumberSwitch - Automatic scaling switch: 0 for off, 1 for on.
- auto
Open NumberRasp Switch - Newly added machines will have automatic Raspberry Pi protection enabled by default. (0: Disabled, 1: Enabled).
- auto
Repurchase NumberRenew Switch - Auto-renewal or not for auto-purchased orders, 0 by default, 0 for OFF, 1 for ON.
- auto
Repurchase NumberSwitch - Automatic purchase/expansion authorization switch, 1 by default, 0 for OFF, 1 for ON.
- cwp
Auto StringOpen Proversion Config Id - ID of the resource.
- protect
Type String - Enhanced Protection Mode PROVERSION_POSTPAY Professional Edition - Pay-as-you-go PROVERSION_PREPAY Professional Edition - Annual/Monthly Subscription FLAGSHIP_PREPAY Flagship Edition - Annual/Monthly Subscription.
- repurchase
Renew NumberSwitch - Whether the manually purchased order is automatically renewed (defaults to 0). 0 - off; 1 -on.
- status String
- Set the auto-activation status.
Import
CWP auto open proversion config can be imported using the customId(like uuid or base64 string), e.g.
$ pulumi import tencentcloud:index/cwpAutoOpenProversionConfig:CwpAutoOpenProversionConfig example 9n0PnuKR3sEmY8COuKVb7g==
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
