1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. CfwVpcInstance
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.CfwVpcInstance

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    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.
    SwitchMode double
    Switch mode of firewall instance. 1: Single point intercommunication; 2: Multi-point communication; 4: Custom Routing.
    VpcFwInstances List<CfwVpcInstanceVpcFwInstance>
    List of firewall instances under firewall (group).
    CcnId string
    Cloud networking id, suitable for cloud networking mode.
    CfwVpcInstanceId string
    ID of the resource.
    FwVpcCidr string
    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.
    SwitchMode float64
    Switch mode of firewall instance. 1: Single point intercommunication; 2: Multi-point communication; 4: Custom Routing.
    VpcFwInstances []CfwVpcInstanceVpcFwInstanceArgs
    List of firewall instances under firewall (group).
    CcnId string
    Cloud networking id, suitable for cloud networking mode.
    CfwVpcInstanceId string
    ID of the resource.
    FwVpcCidr string
    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.
    switchMode Double
    Switch mode of firewall instance. 1: Single point intercommunication; 2: Multi-point communication; 4: Custom Routing.
    vpcFwInstances List<CfwVpcInstanceVpcFwInstance>
    List of firewall instances under firewall (group).
    ccnId String
    Cloud networking id, suitable for cloud networking mode.
    cfwVpcInstanceId String
    ID of the resource.
    fwVpcCidr String
    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.
    switchMode number
    Switch mode of firewall instance. 1: Single point intercommunication; 2: Multi-point communication; 4: Custom Routing.
    vpcFwInstances CfwVpcInstanceVpcFwInstance[]
    List of firewall instances under firewall (group).
    ccnId string
    Cloud networking id, suitable for cloud networking mode.
    cfwVpcInstanceId string
    ID of the resource.
    fwVpcCidr string
    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_instances Sequence[CfwVpcInstanceVpcFwInstanceArgs]
    List of firewall instances under firewall (group).
    ccn_id str
    Cloud networking id, suitable for cloud networking mode.
    cfw_vpc_instance_id str
    ID of the resource.
    fw_vpc_cidr str
    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.
    switchMode Number
    Switch mode of firewall instance. 1: Single point intercommunication; 2: Multi-point communication; 4: Custom Routing.
    vpcFwInstances List<Property Map>
    List of firewall instances under firewall (group).
    ccnId String
    Cloud networking id, suitable for cloud networking mode.
    cfwVpcInstanceId String
    ID of the resource.
    fwVpcCidr String
    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.
    The following state arguments are supported:
    CcnId string
    Cloud networking id, suitable for cloud networking mode.
    CfwVpcInstanceId string
    ID of the resource.
    FwVpcCidr string
    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.
    SwitchMode double
    Switch mode of firewall instance. 1: Single point intercommunication; 2: Multi-point communication; 4: Custom Routing.
    VpcFwInstances List<CfwVpcInstanceVpcFwInstance>
    List of firewall instances under firewall (group).
    CcnId string
    Cloud networking id, suitable for cloud networking mode.
    CfwVpcInstanceId string
    ID of the resource.
    FwVpcCidr string
    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.
    SwitchMode float64
    Switch mode of firewall instance. 1: Single point intercommunication; 2: Multi-point communication; 4: Custom Routing.
    VpcFwInstances []CfwVpcInstanceVpcFwInstanceArgs
    List of firewall instances under firewall (group).
    ccnId String
    Cloud networking id, suitable for cloud networking mode.
    cfwVpcInstanceId String
    ID of the resource.
    fwVpcCidr String
    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.
    switchMode Double
    Switch mode of firewall instance. 1: Single point intercommunication; 2: Multi-point communication; 4: Custom Routing.
    vpcFwInstances List<CfwVpcInstanceVpcFwInstance>
    List of firewall instances under firewall (group).
    ccnId string
    Cloud networking id, suitable for cloud networking mode.
    cfwVpcInstanceId string
    ID of the resource.
    fwVpcCidr string
    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.
    switchMode number
    Switch mode of firewall instance. 1: Single point intercommunication; 2: Multi-point communication; 4: Custom Routing.
    vpcFwInstances CfwVpcInstanceVpcFwInstance[]
    List of firewall instances under firewall (group).
    ccn_id str
    Cloud networking id, suitable for cloud networking mode.
    cfw_vpc_instance_id str
    ID of the resource.
    fw_vpc_cidr str
    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_instances Sequence[CfwVpcInstanceVpcFwInstanceArgs]
    List of firewall instances under firewall (group).
    ccnId String
    Cloud networking id, suitable for cloud networking mode.
    cfwVpcInstanceId String
    ID of the resource.
    fwVpcCidr String
    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.
    switchMode Number
    Switch mode of firewall instance. 1: Single point intercommunication; 2: Multi-point communication; 4: Custom Routing.
    vpcFwInstances List<Property Map>
    List of firewall instances under firewall (group).

    Supporting Types

    CfwVpcInstanceVpcFwInstance, CfwVpcInstanceVpcFwInstanceArgs

    FwDeploy CfwVpcInstanceVpcFwInstanceFwDeploy
    Deploy regional information.
    Name string
    Firewall instance name.
    FwInsId string
    Firewall instance ID (passed in editing scenario).
    VpcIds List<string>
    List of VpcIds accessed in private network mode; only used in private network mode.
    FwDeploy CfwVpcInstanceVpcFwInstanceFwDeploy
    Deploy regional information.
    Name string
    Firewall instance name.
    FwInsId string
    Firewall instance ID (passed in editing scenario).
    VpcIds []string
    List of VpcIds accessed in private network mode; only used in private network mode.
    fwDeploy CfwVpcInstanceVpcFwInstanceFwDeploy
    Deploy regional information.
    name String
    Firewall instance name.
    fwInsId String
    Firewall instance ID (passed in editing scenario).
    vpcIds List<String>
    List of VpcIds accessed in private network mode; only used in private network mode.
    fwDeploy CfwVpcInstanceVpcFwInstanceFwDeploy
    Deploy regional information.
    name string
    Firewall instance name.
    fwInsId string
    Firewall instance ID (passed in editing scenario).
    vpcIds string[]
    List of VpcIds accessed in private network mode; only used in private network mode.
    fw_deploy CfwVpcInstanceVpcFwInstanceFwDeploy
    Deploy regional information.
    name str
    Firewall instance name.
    fw_ins_id str
    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.
    fwDeploy Property Map
    Deploy regional information.
    name String
    Firewall instance name.
    fwInsId String
    Firewall instance ID (passed in editing scenario).
    vpcIds List<String>
    List of VpcIds accessed in private network mode; only used in private network mode.

    CfwVpcInstanceVpcFwInstanceFwDeploy, CfwVpcInstanceVpcFwInstanceFwDeployArgs

    DeployRegion string
    Firewall Deployment Region.
    Width double
    Bandwidth, unit: Mbps.
    ZoneSets List<string>
    Zone list.
    CrossAZone 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.
    DeployRegion string
    Firewall Deployment Region.
    Width float64
    Bandwidth, unit: Mbps.
    ZoneSets []string
    Zone list.
    CrossAZone 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.
    deployRegion String
    Firewall Deployment Region.
    width Double
    Bandwidth, unit: Mbps.
    zoneSets List<String>
    Zone list.
    crossAZone 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.
    deployRegion string
    Firewall Deployment Region.
    width number
    Bandwidth, unit: Mbps.
    zoneSets string[]
    Zone list.
    crossAZone 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_zone float
    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.
    deployRegion String
    Firewall Deployment Region.
    width Number
    Bandwidth, unit: Mbps.
    zoneSets List<String>
    Zone list.
    crossAZone 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.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack