1. Registry
  2. Packages
  3. Tencentcloud Provider
  4. API Docs
  5. FwmRuleGroup
Viewing docs for tencentcloud 1.83.41
published on Friday, Nov 6, 2026 by tencentcloudstack
tencentcloud
Viewing docs for tencentcloud 1.83.41
published on Friday, Nov 6, 2026 by tencentcloudstack

    Provides a resource to create a FWM rule group

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.FwmRuleGroup("example", {
        groupName: "tf-example",
        product: "enterprise_sg",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.FwmRuleGroup("example",
        group_name="tf-example",
        product="enterprise_sg")
    
    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.NewFwmRuleGroup(ctx, "example", &tencentcloud.FwmRuleGroupArgs{
    			GroupName: pulumi.String("tf-example"),
    			Product:   pulumi.String("enterprise_sg"),
    		})
    		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.FwmRuleGroup("example", new()
        {
            GroupName = "tf-example",
            Product = "enterprise_sg",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.FwmRuleGroup;
    import com.pulumi.tencentcloud.FwmRuleGroupArgs;
    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 FwmRuleGroup("example", FwmRuleGroupArgs.builder()
                .groupName("tf-example")
                .product("enterprise_sg")
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:FwmRuleGroup
        properties:
          groupName: tf-example
          product: enterprise_sg
    
    Example coming soon!
    

    API Reference

    This resource interacts with the following TencentCloud APIs:

    Create FwmRuleGroup Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new FwmRuleGroup(name: string, args: FwmRuleGroupArgs, opts?: CustomResourceOptions);
    @overload
    def FwmRuleGroup(resource_name: str,
                     args: FwmRuleGroupArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def FwmRuleGroup(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     group_name: Optional[str] = None,
                     product: Optional[str] = None,
                     fwm_rule_group_id: Optional[str] = None)
    func NewFwmRuleGroup(ctx *Context, name string, args FwmRuleGroupArgs, opts ...ResourceOption) (*FwmRuleGroup, error)
    public FwmRuleGroup(string name, FwmRuleGroupArgs args, CustomResourceOptions? opts = null)
    public FwmRuleGroup(String name, FwmRuleGroupArgs args)
    public FwmRuleGroup(String name, FwmRuleGroupArgs args, CustomResourceOptions options)
    
    type: tencentcloud:FwmRuleGroup
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "tencentcloud_fwm_rule_group" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args FwmRuleGroupArgs
    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 FwmRuleGroupArgs
    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 FwmRuleGroupArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args FwmRuleGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args FwmRuleGroupArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    FwmRuleGroup 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 FwmRuleGroup resource accepts the following input properties:

    GroupName string
    Rule group name, cannot be empty, up to 50 characters.
    Product string
    Product the rule group belongs to. Valid values: enterprise_sg (enterprise security group), cfw_vpc_acl (VPC border firewall), cfw_nat_acl (NAT border firewall), cfw_edge_acl (internet border firewall).
    FwmRuleGroupId string
    ID of the resource.
    GroupName string
    Rule group name, cannot be empty, up to 50 characters.
    Product string
    Product the rule group belongs to. Valid values: enterprise_sg (enterprise security group), cfw_vpc_acl (VPC border firewall), cfw_nat_acl (NAT border firewall), cfw_edge_acl (internet border firewall).
    FwmRuleGroupId string
    ID of the resource.
    group_name string
    Rule group name, cannot be empty, up to 50 characters.
    product string
    Product the rule group belongs to. Valid values: enterprise_sg (enterprise security group), cfw_vpc_acl (VPC border firewall), cfw_nat_acl (NAT border firewall), cfw_edge_acl (internet border firewall).
    fwm_rule_group_id string
    ID of the resource.
    groupName String
    Rule group name, cannot be empty, up to 50 characters.
    product String
    Product the rule group belongs to. Valid values: enterprise_sg (enterprise security group), cfw_vpc_acl (VPC border firewall), cfw_nat_acl (NAT border firewall), cfw_edge_acl (internet border firewall).
    fwmRuleGroupId String
    ID of the resource.
    groupName string
    Rule group name, cannot be empty, up to 50 characters.
    product string
    Product the rule group belongs to. Valid values: enterprise_sg (enterprise security group), cfw_vpc_acl (VPC border firewall), cfw_nat_acl (NAT border firewall), cfw_edge_acl (internet border firewall).
    fwmRuleGroupId string
    ID of the resource.
    group_name str
    Rule group name, cannot be empty, up to 50 characters.
    product str
    Product the rule group belongs to. Valid values: enterprise_sg (enterprise security group), cfw_vpc_acl (VPC border firewall), cfw_nat_acl (NAT border firewall), cfw_edge_acl (internet border firewall).
    fwm_rule_group_id str
    ID of the resource.
    groupName String
    Rule group name, cannot be empty, up to 50 characters.
    product String
    Product the rule group belongs to. Valid values: enterprise_sg (enterprise security group), cfw_vpc_acl (VPC border firewall), cfw_nat_acl (NAT border firewall), cfw_edge_acl (internet border firewall).
    fwmRuleGroupId String
    ID of the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the FwmRuleGroup resource produces the following output properties:

    GroupId string
    Rule group ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    GroupId string
    Rule group ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    group_id string
    Rule group ID.
    id string
    The provider-assigned unique ID for this managed resource.
    groupId String
    Rule group ID.
    id String
    The provider-assigned unique ID for this managed resource.
    groupId string
    Rule group ID.
    id string
    The provider-assigned unique ID for this managed resource.
    group_id str
    Rule group ID.
    id str
    The provider-assigned unique ID for this managed resource.
    groupId String
    Rule group ID.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing FwmRuleGroup Resource

    Get an existing FwmRuleGroup 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?: FwmRuleGroupState, opts?: CustomResourceOptions): FwmRuleGroup
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            fwm_rule_group_id: Optional[str] = None,
            group_id: Optional[str] = None,
            group_name: Optional[str] = None,
            product: Optional[str] = None) -> FwmRuleGroup
    func GetFwmRuleGroup(ctx *Context, name string, id IDInput, state *FwmRuleGroupState, opts ...ResourceOption) (*FwmRuleGroup, error)
    public static FwmRuleGroup Get(string name, Input<string> id, FwmRuleGroupState? state, CustomResourceOptions? opts = null)
    public static FwmRuleGroup get(String name, Output<String> id, FwmRuleGroupState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:FwmRuleGroup    get:      id: ${id}
    import {
      to = tencentcloud_fwm_rule_group.example
      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:
    FwmRuleGroupId string
    ID of the resource.
    GroupId string
    Rule group ID.
    GroupName string
    Rule group name, cannot be empty, up to 50 characters.
    Product string
    Product the rule group belongs to. Valid values: enterprise_sg (enterprise security group), cfw_vpc_acl (VPC border firewall), cfw_nat_acl (NAT border firewall), cfw_edge_acl (internet border firewall).
    FwmRuleGroupId string
    ID of the resource.
    GroupId string
    Rule group ID.
    GroupName string
    Rule group name, cannot be empty, up to 50 characters.
    Product string
    Product the rule group belongs to. Valid values: enterprise_sg (enterprise security group), cfw_vpc_acl (VPC border firewall), cfw_nat_acl (NAT border firewall), cfw_edge_acl (internet border firewall).
    fwm_rule_group_id string
    ID of the resource.
    group_id string
    Rule group ID.
    group_name string
    Rule group name, cannot be empty, up to 50 characters.
    product string
    Product the rule group belongs to. Valid values: enterprise_sg (enterprise security group), cfw_vpc_acl (VPC border firewall), cfw_nat_acl (NAT border firewall), cfw_edge_acl (internet border firewall).
    fwmRuleGroupId String
    ID of the resource.
    groupId String
    Rule group ID.
    groupName String
    Rule group name, cannot be empty, up to 50 characters.
    product String
    Product the rule group belongs to. Valid values: enterprise_sg (enterprise security group), cfw_vpc_acl (VPC border firewall), cfw_nat_acl (NAT border firewall), cfw_edge_acl (internet border firewall).
    fwmRuleGroupId string
    ID of the resource.
    groupId string
    Rule group ID.
    groupName string
    Rule group name, cannot be empty, up to 50 characters.
    product string
    Product the rule group belongs to. Valid values: enterprise_sg (enterprise security group), cfw_vpc_acl (VPC border firewall), cfw_nat_acl (NAT border firewall), cfw_edge_acl (internet border firewall).
    fwm_rule_group_id str
    ID of the resource.
    group_id str
    Rule group ID.
    group_name str
    Rule group name, cannot be empty, up to 50 characters.
    product str
    Product the rule group belongs to. Valid values: enterprise_sg (enterprise security group), cfw_vpc_acl (VPC border firewall), cfw_nat_acl (NAT border firewall), cfw_edge_acl (internet border firewall).
    fwmRuleGroupId String
    ID of the resource.
    groupId String
    Rule group ID.
    groupName String
    Rule group name, cannot be empty, up to 50 characters.
    product String
    Product the rule group belongs to. Valid values: enterprise_sg (enterprise security group), cfw_vpc_acl (VPC border firewall), cfw_nat_acl (NAT border firewall), cfw_edge_acl (internet border firewall).

    Import

    FWM rule group can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/fwmRuleGroup:FwmRuleGroup example fwmrg-3r5c8tzb47
    

    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
    Viewing docs for tencentcloud 1.83.41
    published on Friday, Nov 6, 2026 by tencentcloudstack

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial