tencentcloud.CfwVpcInstance
Explore with Pulumi AI
Provides a resource to create a cfw vpc_instance
Example Usage
If mode is 0
Coming soon!
Coming soon!
Coming soon!
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CfwVpcInstance;
import com.pulumi.tencentcloud.CfwVpcInstanceArgs;
import com.pulumi.tencentcloud.inputs.CfwVpcInstanceVpcFwInstanceArgs;
import com.pulumi.tencentcloud.inputs.CfwVpcInstanceVpcFwInstanceFwDeployArgs;
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 CfwVpcInstance("example", CfwVpcInstanceArgs.builder()
.fwVpcCidr("auto")
.mode(0)
.switchMode(1)
.vpcFwInstances(CfwVpcInstanceVpcFwInstanceArgs.builder()
.fwDeploy(CfwVpcInstanceVpcFwInstanceFwDeployArgs.builder()
.crossAZone(1)
.deployRegion("ap-guangzhou")
.width(1024)
.zoneSet(
"ap-guangzhou-6",
"ap-guangzhou-7")
.build())
.name("fw_ins_example")
.vpcIds(
"vpc-291vnoeu",
"vpc-39ixq9ci")
.build())
.build());
}
}
resources:
example:
type: tencentcloud:CfwVpcInstance
properties:
fwVpcCidr: auto
mode: 0
switchMode: 1
vpcFwInstances:
- fwDeploy:
crossAZone: 1
deployRegion: ap-guangzhou
width: 1024
zoneSet:
- ap-guangzhou-6
- ap-guangzhou-7
name: fw_ins_example
vpcIds:
- vpc-291vnoeu
- vpc-39ixq9ci
If mode is 1
Coming soon!
Coming soon!
Coming soon!
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CfwVpcInstance;
import com.pulumi.tencentcloud.CfwVpcInstanceArgs;
import com.pulumi.tencentcloud.inputs.CfwVpcInstanceVpcFwInstanceArgs;
import com.pulumi.tencentcloud.inputs.CfwVpcInstanceVpcFwInstanceFwDeployArgs;
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 CfwVpcInstance("example", CfwVpcInstanceArgs.builder()
.ccnId("ccn-peihfqo7")
.fwVpcCidr("auto")
.mode(1)
.switchMode(1)
.vpcFwInstances(CfwVpcInstanceVpcFwInstanceArgs.builder()
.fwDeploy(CfwVpcInstanceVpcFwInstanceFwDeployArgs.builder()
.crossAZone(0)
.deployRegion("ap-guangzhou")
.width(1024)
.zoneSet("ap-guangzhou-6")
.build())
.name("fw_ins_example")
.build())
.build());
}
}
resources:
example:
type: tencentcloud:CfwVpcInstance
properties:
ccnId: ccn-peihfqo7
fwVpcCidr: auto
mode: 1
switchMode: 1
vpcFwInstances:
- fwDeploy:
crossAZone: 0
deployRegion: ap-guangzhou
width: 1024
zoneSet:
- ap-guangzhou-6
name: fw_ins_example
Create CfwVpcInstance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CfwVpcInstance(name: string, args: CfwVpcInstanceArgs, opts?: CustomResourceOptions);
@overload
def CfwVpcInstance(resource_name: str,
args: CfwVpcInstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CfwVpcInstance(resource_name: str,
opts: Optional[ResourceOptions] = None,
mode: Optional[float] = None,
switch_mode: Optional[float] = None,
vpc_fw_instances: Optional[Sequence[CfwVpcInstanceVpcFwInstanceArgs]] = None,
ccn_id: Optional[str] = None,
cfw_vpc_instance_id: Optional[str] = None,
fw_vpc_cidr: Optional[str] = None,
name: Optional[str] = None)
func NewCfwVpcInstance(ctx *Context, name string, args CfwVpcInstanceArgs, opts ...ResourceOption) (*CfwVpcInstance, error)
public CfwVpcInstance(string name, CfwVpcInstanceArgs args, CustomResourceOptions? opts = null)
public CfwVpcInstance(String name, CfwVpcInstanceArgs args)
public CfwVpcInstance(String name, CfwVpcInstanceArgs args, CustomResourceOptions options)
type: tencentcloud:CfwVpcInstance
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 CfwVpcInstanceArgs
- 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 CfwVpcInstanceArgs
- 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 CfwVpcInstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CfwVpcInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CfwVpcInstanceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
CfwVpcInstance 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 CfwVpcInstance resource accepts the following input properties:
- Mode double
- Mode 0: private network mode; 1: CCN cloud networking mode.
- Switch
Mode double - Switch mode of firewall instance. 1: Single point intercommunication; 2: Multi-point communication; 4: Custom Routing.
- Vpc
Fw List<CfwInstances Vpc Instance Vpc Fw Instance> - List of firewall instances under firewall (group).
- Ccn
Id string - Cloud networking id, suitable for cloud networking mode.
- Cfw
Vpc stringInstance Id - ID of the resource.
- Fw
Vpc stringCidr - auto Automatically select the firewall network segment; 10.10.10.0/24 The firewall network segment entered by the user.
- Name string
- VPC firewall (group) name.
- Mode float64
- Mode 0: private network mode; 1: CCN cloud networking mode.
- Switch
Mode float64 - Switch mode of firewall instance. 1: Single point intercommunication; 2: Multi-point communication; 4: Custom Routing.
- Vpc
Fw []CfwInstances Vpc Instance Vpc Fw Instance Args - List of firewall instances under firewall (group).
- Ccn
Id string - Cloud networking id, suitable for cloud networking mode.
- Cfw
Vpc stringInstance Id - ID of the resource.
- Fw
Vpc stringCidr - auto Automatically select the firewall network segment; 10.10.10.0/24 The firewall network segment entered by the user.
- Name string
- VPC firewall (group) name.
- mode Double
- Mode 0: private network mode; 1: CCN cloud networking mode.
- switch
Mode Double - Switch mode of firewall instance. 1: Single point intercommunication; 2: Multi-point communication; 4: Custom Routing.
- vpc
Fw List<CfwInstances Vpc Instance Vpc Fw Instance> - List of firewall instances under firewall (group).
- ccn
Id String - Cloud networking id, suitable for cloud networking mode.
- cfw
Vpc StringInstance Id - ID of the resource.
- fw
Vpc StringCidr - auto Automatically select the firewall network segment; 10.10.10.0/24 The firewall network segment entered by the user.
- name String
- VPC firewall (group) name.
- mode number
- Mode 0: private network mode; 1: CCN cloud networking mode.
- switch
Mode number - Switch mode of firewall instance. 1: Single point intercommunication; 2: Multi-point communication; 4: Custom Routing.
- vpc
Fw CfwInstances Vpc Instance Vpc Fw Instance[] - List of firewall instances under firewall (group).
- ccn
Id string - Cloud networking id, suitable for cloud networking mode.
- cfw
Vpc stringInstance Id - ID of the resource.
- fw
Vpc stringCidr - auto Automatically select the firewall network segment; 10.10.10.0/24 The firewall network segment entered by the user.
- name string
- VPC firewall (group) name.
- mode float
- Mode 0: private network mode; 1: CCN cloud networking mode.
- switch_
mode float - Switch mode of firewall instance. 1: Single point intercommunication; 2: Multi-point communication; 4: Custom Routing.
- vpc_
fw_ Sequence[Cfwinstances Vpc Instance Vpc Fw Instance Args] - List of firewall instances under firewall (group).
- ccn_
id str - Cloud networking id, suitable for cloud networking mode.
- cfw_
vpc_ strinstance_ id - ID of the resource.
- fw_
vpc_ strcidr - auto Automatically select the firewall network segment; 10.10.10.0/24 The firewall network segment entered by the user.
- name str
- VPC firewall (group) name.
- mode Number
- Mode 0: private network mode; 1: CCN cloud networking mode.
- switch
Mode Number - Switch mode of firewall instance. 1: Single point intercommunication; 2: Multi-point communication; 4: Custom Routing.
- vpc
Fw List<Property Map>Instances - List of firewall instances under firewall (group).
- ccn
Id String - Cloud networking id, suitable for cloud networking mode.
- cfw
Vpc StringInstance Id - ID of the resource.
- fw
Vpc StringCidr - auto Automatically select the firewall network segment; 10.10.10.0/24 The firewall network segment entered by the user.
- name String
- VPC firewall (group) name.
Outputs
All input properties are implicitly available as output properties. Additionally, the CfwVpcInstance 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 CfwVpcInstance Resource
Get an existing CfwVpcInstance 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?: CfwVpcInstanceState, opts?: CustomResourceOptions): CfwVpcInstance
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
ccn_id: Optional[str] = None,
cfw_vpc_instance_id: Optional[str] = None,
fw_vpc_cidr: Optional[str] = None,
mode: Optional[float] = None,
name: Optional[str] = None,
switch_mode: Optional[float] = None,
vpc_fw_instances: Optional[Sequence[CfwVpcInstanceVpcFwInstanceArgs]] = None) -> CfwVpcInstance
func GetCfwVpcInstance(ctx *Context, name string, id IDInput, state *CfwVpcInstanceState, opts ...ResourceOption) (*CfwVpcInstance, error)
public static CfwVpcInstance Get(string name, Input<string> id, CfwVpcInstanceState? state, CustomResourceOptions? opts = null)
public static CfwVpcInstance get(String name, Output<String> id, CfwVpcInstanceState state, CustomResourceOptions options)
resources: _: type: tencentcloud:CfwVpcInstance 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.
- Ccn
Id string - Cloud networking id, suitable for cloud networking mode.
- Cfw
Vpc stringInstance Id - ID of the resource.
- Fw
Vpc stringCidr - auto Automatically select the firewall network segment; 10.10.10.0/24 The firewall network segment entered by the user.
- Mode double
- Mode 0: private network mode; 1: CCN cloud networking mode.
- Name string
- VPC firewall (group) name.
- Switch
Mode double - Switch mode of firewall instance. 1: Single point intercommunication; 2: Multi-point communication; 4: Custom Routing.
- Vpc
Fw List<CfwInstances Vpc Instance Vpc Fw Instance> - List of firewall instances under firewall (group).
- Ccn
Id string - Cloud networking id, suitable for cloud networking mode.
- Cfw
Vpc stringInstance Id - ID of the resource.
- Fw
Vpc stringCidr - auto Automatically select the firewall network segment; 10.10.10.0/24 The firewall network segment entered by the user.
- Mode float64
- Mode 0: private network mode; 1: CCN cloud networking mode.
- Name string
- VPC firewall (group) name.
- Switch
Mode float64 - Switch mode of firewall instance. 1: Single point intercommunication; 2: Multi-point communication; 4: Custom Routing.
- Vpc
Fw []CfwInstances Vpc Instance Vpc Fw Instance Args - List of firewall instances under firewall (group).
- ccn
Id String - Cloud networking id, suitable for cloud networking mode.
- cfw
Vpc StringInstance Id - ID of the resource.
- fw
Vpc StringCidr - auto Automatically select the firewall network segment; 10.10.10.0/24 The firewall network segment entered by the user.
- mode Double
- Mode 0: private network mode; 1: CCN cloud networking mode.
- name String
- VPC firewall (group) name.
- switch
Mode Double - Switch mode of firewall instance. 1: Single point intercommunication; 2: Multi-point communication; 4: Custom Routing.
- vpc
Fw List<CfwInstances Vpc Instance Vpc Fw Instance> - List of firewall instances under firewall (group).
- ccn
Id string - Cloud networking id, suitable for cloud networking mode.
- cfw
Vpc stringInstance Id - ID of the resource.
- fw
Vpc stringCidr - auto Automatically select the firewall network segment; 10.10.10.0/24 The firewall network segment entered by the user.
- mode number
- Mode 0: private network mode; 1: CCN cloud networking mode.
- name string
- VPC firewall (group) name.
- switch
Mode number - Switch mode of firewall instance. 1: Single point intercommunication; 2: Multi-point communication; 4: Custom Routing.
- vpc
Fw CfwInstances Vpc Instance Vpc Fw Instance[] - List of firewall instances under firewall (group).
- ccn_
id str - Cloud networking id, suitable for cloud networking mode.
- cfw_
vpc_ strinstance_ id - ID of the resource.
- fw_
vpc_ strcidr - auto Automatically select the firewall network segment; 10.10.10.0/24 The firewall network segment entered by the user.
- mode float
- Mode 0: private network mode; 1: CCN cloud networking mode.
- name str
- VPC firewall (group) name.
- switch_
mode float - Switch mode of firewall instance. 1: Single point intercommunication; 2: Multi-point communication; 4: Custom Routing.
- vpc_
fw_ Sequence[Cfwinstances Vpc Instance Vpc Fw Instance Args] - List of firewall instances under firewall (group).
- ccn
Id String - Cloud networking id, suitable for cloud networking mode.
- cfw
Vpc StringInstance Id - ID of the resource.
- fw
Vpc StringCidr - auto Automatically select the firewall network segment; 10.10.10.0/24 The firewall network segment entered by the user.
- mode Number
- Mode 0: private network mode; 1: CCN cloud networking mode.
- name String
- VPC firewall (group) name.
- switch
Mode Number - Switch mode of firewall instance. 1: Single point intercommunication; 2: Multi-point communication; 4: Custom Routing.
- vpc
Fw List<Property Map>Instances - List of firewall instances under firewall (group).
Supporting Types
CfwVpcInstanceVpcFwInstance, CfwVpcInstanceVpcFwInstanceArgs
- Fw
Deploy CfwVpc Instance Vpc Fw Instance Fw Deploy - Deploy regional information.
- Name string
- Firewall instance name.
- Fw
Ins stringId - Firewall instance ID (passed in editing scenario).
- Vpc
Ids List<string> - List of VpcIds accessed in private network mode; only used in private network mode.
- Fw
Deploy CfwVpc Instance Vpc Fw Instance Fw Deploy - Deploy regional information.
- Name string
- Firewall instance name.
- Fw
Ins stringId - Firewall instance ID (passed in editing scenario).
- Vpc
Ids []string - List of VpcIds accessed in private network mode; only used in private network mode.
- fw
Deploy CfwVpc Instance Vpc Fw Instance Fw Deploy - Deploy regional information.
- name String
- Firewall instance name.
- fw
Ins StringId - Firewall instance ID (passed in editing scenario).
- vpc
Ids List<String> - List of VpcIds accessed in private network mode; only used in private network mode.
- fw
Deploy CfwVpc Instance Vpc Fw Instance Fw Deploy - Deploy regional information.
- name string
- Firewall instance name.
- fw
Ins stringId - Firewall instance ID (passed in editing scenario).
- vpc
Ids string[] - List of VpcIds accessed in private network mode; only used in private network mode.
- fw_
deploy CfwVpc Instance Vpc Fw Instance Fw Deploy - Deploy regional information.
- name str
- Firewall instance name.
- fw_
ins_ strid - Firewall instance ID (passed in editing scenario).
- vpc_
ids Sequence[str] - List of VpcIds accessed in private network mode; only used in private network mode.
- fw
Deploy Property Map - Deploy regional information.
- name String
- Firewall instance name.
- fw
Ins StringId - Firewall instance ID (passed in editing scenario).
- vpc
Ids List<String> - List of VpcIds accessed in private network mode; only used in private network mode.
CfwVpcInstanceVpcFwInstanceFwDeploy, CfwVpcInstanceVpcFwInstanceFwDeployArgs
- Deploy
Region string - Firewall Deployment Region.
- Width double
- Bandwidth, unit: Mbps.
- Zone
Sets List<string> - Zone list.
- Cross
AZone double - Off-site disaster recovery 1: use off-site disaster recovery; 0: do not use off-site disaster recovery; if it is empty, off-site disaster recovery will not be used by default.
- Deploy
Region string - Firewall Deployment Region.
- Width float64
- Bandwidth, unit: Mbps.
- Zone
Sets []string - Zone list.
- Cross
AZone float64 - Off-site disaster recovery 1: use off-site disaster recovery; 0: do not use off-site disaster recovery; if it is empty, off-site disaster recovery will not be used by default.
- deploy
Region String - Firewall Deployment Region.
- width Double
- Bandwidth, unit: Mbps.
- zone
Sets List<String> - Zone list.
- cross
AZone Double - Off-site disaster recovery 1: use off-site disaster recovery; 0: do not use off-site disaster recovery; if it is empty, off-site disaster recovery will not be used by default.
- deploy
Region string - Firewall Deployment Region.
- width number
- Bandwidth, unit: Mbps.
- zone
Sets string[] - Zone list.
- cross
AZone number - Off-site disaster recovery 1: use off-site disaster recovery; 0: do not use off-site disaster recovery; if it is empty, off-site disaster recovery will not be used by default.
- deploy_
region str - Firewall Deployment Region.
- width float
- Bandwidth, unit: Mbps.
- zone_
sets Sequence[str] - Zone list.
- cross_
a_ floatzone - Off-site disaster recovery 1: use off-site disaster recovery; 0: do not use off-site disaster recovery; if it is empty, off-site disaster recovery will not be used by default.
- deploy
Region String - Firewall Deployment Region.
- width Number
- Bandwidth, unit: Mbps.
- zone
Sets List<String> - Zone list.
- cross
AZone Number - Off-site disaster recovery 1: use off-site disaster recovery; 0: do not use off-site disaster recovery; if it is empty, off-site disaster recovery will not be used by default.
Import
cfw vpc_instance can be imported using the id, e.g.
$ pulumi import tencentcloud:index/cfwVpcInstance:CfwVpcInstance example cfwg-4ee69507
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.