1. Registry
  2. Packages
  3. Tencentcloud Provider
  4. API Docs
  5. FwmStrategy
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 (Firewall Manager) strategy.

    Example Usage

    Create pre strategy

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.FwmStrategy("example", {
        product: "cfw_edge_acl",
        receiveAccounts: ["100011949846"],
        receiveGroups: [
            "acg-y5tocz3d",
            "acg-e6cvbls1",
        ],
        preStrategy: {
            groupId: "fwmrg-qww1luux7z",
        },
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.FwmStrategy("example",
        product="cfw_edge_acl",
        receive_accounts=["100011949846"],
        receive_groups=[
            "acg-y5tocz3d",
            "acg-e6cvbls1",
        ],
        pre_strategy={
            "group_id": "fwmrg-qww1luux7z",
        })
    
    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.NewFwmStrategy(ctx, "example", &tencentcloud.FwmStrategyArgs{
    			Product: pulumi.String("cfw_edge_acl"),
    			ReceiveAccounts: pulumi.StringArray{
    				pulumi.String("100011949846"),
    			},
    			ReceiveGroups: pulumi.StringArray{
    				pulumi.String("acg-y5tocz3d"),
    				pulumi.String("acg-e6cvbls1"),
    			},
    			PreStrategy: &tencentcloud.FwmStrategyPreStrategyArgs{
    				GroupId: pulumi.String("fwmrg-qww1luux7z"),
    			},
    		})
    		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.FwmStrategy("example", new()
        {
            Product = "cfw_edge_acl",
            ReceiveAccounts = new[]
            {
                "100011949846",
            },
            ReceiveGroups = new[]
            {
                "acg-y5tocz3d",
                "acg-e6cvbls1",
            },
            PreStrategy = new Tencentcloud.Inputs.FwmStrategyPreStrategyArgs
            {
                GroupId = "fwmrg-qww1luux7z",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.FwmStrategy;
    import com.pulumi.tencentcloud.FwmStrategyArgs;
    import com.pulumi.tencentcloud.inputs.FwmStrategyPreStrategyArgs;
    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 FwmStrategy("example", FwmStrategyArgs.builder()
                .product("cfw_edge_acl")
                .receiveAccounts("100011949846")
                .receiveGroups(            
                    "acg-y5tocz3d",
                    "acg-e6cvbls1")
                .preStrategy(FwmStrategyPreStrategyArgs.builder()
                    .groupId("fwmrg-qww1luux7z")
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:FwmStrategy
        properties:
          product: cfw_edge_acl
          receiveAccounts:
            - '100011949846'
          receiveGroups:
            - acg-y5tocz3d
            - acg-e6cvbls1
          preStrategy:
            groupId: fwmrg-qww1luux7z
    
    Example coming soon!
    

    Create post strategy

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.FwmStrategy("example", {
        product: "cfw_edge_acl",
        receiveAccounts: [
            "100011949846",
            "100049315301",
        ],
        receiveGroups: ["acg-y5tocz3d"],
        postStrategy: {
            groupId: "fwmrg-qww1luux7z",
        },
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.FwmStrategy("example",
        product="cfw_edge_acl",
        receive_accounts=[
            "100011949846",
            "100049315301",
        ],
        receive_groups=["acg-y5tocz3d"],
        post_strategy={
            "group_id": "fwmrg-qww1luux7z",
        })
    
    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.NewFwmStrategy(ctx, "example", &tencentcloud.FwmStrategyArgs{
    			Product: pulumi.String("cfw_edge_acl"),
    			ReceiveAccounts: pulumi.StringArray{
    				pulumi.String("100011949846"),
    				pulumi.String("100049315301"),
    			},
    			ReceiveGroups: pulumi.StringArray{
    				pulumi.String("acg-y5tocz3d"),
    			},
    			PostStrategy: &tencentcloud.FwmStrategyPostStrategyArgs{
    				GroupId: pulumi.String("fwmrg-qww1luux7z"),
    			},
    		})
    		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.FwmStrategy("example", new()
        {
            Product = "cfw_edge_acl",
            ReceiveAccounts = new[]
            {
                "100011949846",
                "100049315301",
            },
            ReceiveGroups = new[]
            {
                "acg-y5tocz3d",
            },
            PostStrategy = new Tencentcloud.Inputs.FwmStrategyPostStrategyArgs
            {
                GroupId = "fwmrg-qww1luux7z",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.FwmStrategy;
    import com.pulumi.tencentcloud.FwmStrategyArgs;
    import com.pulumi.tencentcloud.inputs.FwmStrategyPostStrategyArgs;
    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 FwmStrategy("example", FwmStrategyArgs.builder()
                .product("cfw_edge_acl")
                .receiveAccounts(            
                    "100011949846",
                    "100049315301")
                .receiveGroups("acg-y5tocz3d")
                .postStrategy(FwmStrategyPostStrategyArgs.builder()
                    .groupId("fwmrg-qww1luux7z")
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:FwmStrategy
        properties:
          product: cfw_edge_acl
          receiveAccounts:
            - '100011949846'
            - '100049315301'
          receiveGroups:
            - acg-y5tocz3d
          postStrategy:
            groupId: fwmrg-qww1luux7z
    
    Example coming soon!
    

    API Reference

    This resource interacts with the following TencentCloud APIs:

    Create FwmStrategy Resource

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

    Constructor syntax

    new FwmStrategy(name: string, args: FwmStrategyArgs, opts?: CustomResourceOptions);
    @overload
    def FwmStrategy(resource_name: str,
                    args: FwmStrategyArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def FwmStrategy(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    product: Optional[str] = None,
                    fwm_strategy_id: Optional[str] = None,
                    post_strategy: Optional[FwmStrategyPostStrategyArgs] = None,
                    pre_strategy: Optional[FwmStrategyPreStrategyArgs] = None,
                    receive_accounts: Optional[Sequence[str]] = None,
                    receive_groups: Optional[Sequence[str]] = None)
    func NewFwmStrategy(ctx *Context, name string, args FwmStrategyArgs, opts ...ResourceOption) (*FwmStrategy, error)
    public FwmStrategy(string name, FwmStrategyArgs args, CustomResourceOptions? opts = null)
    public FwmStrategy(String name, FwmStrategyArgs args)
    public FwmStrategy(String name, FwmStrategyArgs args, CustomResourceOptions options)
    
    type: tencentcloud:FwmStrategy
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "tencentcloud_fwm_strategy" "name" {
        # resource properties
    }

    Parameters

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

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

    Product string
    Product type, e.g. enterprise_sg / cfw_vpc_acl / cfw_nat_acl / cfw_edge_acl.
    FwmStrategyId string
    ID of the resource.
    PostStrategy FwmStrategyPostStrategy
    Post Rule Group.
    PreStrategy FwmStrategyPreStrategy
    Pre Rule Group.
    ReceiveAccounts List<string>
    List of receive account UINs.
    ReceiveGroups List<string>
    List of receive account group IDs.
    Product string
    Product type, e.g. enterprise_sg / cfw_vpc_acl / cfw_nat_acl / cfw_edge_acl.
    FwmStrategyId string
    ID of the resource.
    PostStrategy FwmStrategyPostStrategyArgs
    Post Rule Group.
    PreStrategy FwmStrategyPreStrategyArgs
    Pre Rule Group.
    ReceiveAccounts []string
    List of receive account UINs.
    ReceiveGroups []string
    List of receive account group IDs.
    product string
    Product type, e.g. enterprise_sg / cfw_vpc_acl / cfw_nat_acl / cfw_edge_acl.
    fwm_strategy_id string
    ID of the resource.
    post_strategy object
    Post Rule Group.
    pre_strategy object
    Pre Rule Group.
    receive_accounts list(string)
    List of receive account UINs.
    receive_groups list(string)
    List of receive account group IDs.
    product String
    Product type, e.g. enterprise_sg / cfw_vpc_acl / cfw_nat_acl / cfw_edge_acl.
    fwmStrategyId String
    ID of the resource.
    postStrategy FwmStrategyPostStrategy
    Post Rule Group.
    preStrategy FwmStrategyPreStrategy
    Pre Rule Group.
    receiveAccounts List<String>
    List of receive account UINs.
    receiveGroups List<String>
    List of receive account group IDs.
    product string
    Product type, e.g. enterprise_sg / cfw_vpc_acl / cfw_nat_acl / cfw_edge_acl.
    fwmStrategyId string
    ID of the resource.
    postStrategy FwmStrategyPostStrategy
    Post Rule Group.
    preStrategy FwmStrategyPreStrategy
    Pre Rule Group.
    receiveAccounts string[]
    List of receive account UINs.
    receiveGroups string[]
    List of receive account group IDs.
    product str
    Product type, e.g. enterprise_sg / cfw_vpc_acl / cfw_nat_acl / cfw_edge_acl.
    fwm_strategy_id str
    ID of the resource.
    post_strategy FwmStrategyPostStrategyArgs
    Post Rule Group.
    pre_strategy FwmStrategyPreStrategyArgs
    Pre Rule Group.
    receive_accounts Sequence[str]
    List of receive account UINs.
    receive_groups Sequence[str]
    List of receive account group IDs.
    product String
    Product type, e.g. enterprise_sg / cfw_vpc_acl / cfw_nat_acl / cfw_edge_acl.
    fwmStrategyId String
    ID of the resource.
    postStrategy Property Map
    Post Rule Group.
    preStrategy Property Map
    Pre Rule Group.
    receiveAccounts List<String>
    List of receive account UINs.
    receiveGroups List<String>
    List of receive account group IDs.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    StrategyId string
    Strategy ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    StrategyId string
    Strategy ID.
    id string
    The provider-assigned unique ID for this managed resource.
    strategy_id string
    Strategy ID.
    id String
    The provider-assigned unique ID for this managed resource.
    strategyId String
    Strategy ID.
    id string
    The provider-assigned unique ID for this managed resource.
    strategyId string
    Strategy ID.
    id str
    The provider-assigned unique ID for this managed resource.
    strategy_id str
    Strategy ID.
    id String
    The provider-assigned unique ID for this managed resource.
    strategyId String
    Strategy ID.

    Look up Existing FwmStrategy Resource

    Get an existing FwmStrategy 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?: FwmStrategyState, opts?: CustomResourceOptions): FwmStrategy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            fwm_strategy_id: Optional[str] = None,
            post_strategy: Optional[FwmStrategyPostStrategyArgs] = None,
            pre_strategy: Optional[FwmStrategyPreStrategyArgs] = None,
            product: Optional[str] = None,
            receive_accounts: Optional[Sequence[str]] = None,
            receive_groups: Optional[Sequence[str]] = None,
            strategy_id: Optional[str] = None) -> FwmStrategy
    func GetFwmStrategy(ctx *Context, name string, id IDInput, state *FwmStrategyState, opts ...ResourceOption) (*FwmStrategy, error)
    public static FwmStrategy Get(string name, Input<string> id, FwmStrategyState? state, CustomResourceOptions? opts = null)
    public static FwmStrategy get(String name, Output<String> id, FwmStrategyState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:FwmStrategy    get:      id: ${id}
    import {
      to = tencentcloud_fwm_strategy.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:
    FwmStrategyId string
    ID of the resource.
    PostStrategy FwmStrategyPostStrategy
    Post Rule Group.
    PreStrategy FwmStrategyPreStrategy
    Pre Rule Group.
    Product string
    Product type, e.g. enterprise_sg / cfw_vpc_acl / cfw_nat_acl / cfw_edge_acl.
    ReceiveAccounts List<string>
    List of receive account UINs.
    ReceiveGroups List<string>
    List of receive account group IDs.
    StrategyId string
    Strategy ID.
    FwmStrategyId string
    ID of the resource.
    PostStrategy FwmStrategyPostStrategyArgs
    Post Rule Group.
    PreStrategy FwmStrategyPreStrategyArgs
    Pre Rule Group.
    Product string
    Product type, e.g. enterprise_sg / cfw_vpc_acl / cfw_nat_acl / cfw_edge_acl.
    ReceiveAccounts []string
    List of receive account UINs.
    ReceiveGroups []string
    List of receive account group IDs.
    StrategyId string
    Strategy ID.
    fwm_strategy_id string
    ID of the resource.
    post_strategy object
    Post Rule Group.
    pre_strategy object
    Pre Rule Group.
    product string
    Product type, e.g. enterprise_sg / cfw_vpc_acl / cfw_nat_acl / cfw_edge_acl.
    receive_accounts list(string)
    List of receive account UINs.
    receive_groups list(string)
    List of receive account group IDs.
    strategy_id string
    Strategy ID.
    fwmStrategyId String
    ID of the resource.
    postStrategy FwmStrategyPostStrategy
    Post Rule Group.
    preStrategy FwmStrategyPreStrategy
    Pre Rule Group.
    product String
    Product type, e.g. enterprise_sg / cfw_vpc_acl / cfw_nat_acl / cfw_edge_acl.
    receiveAccounts List<String>
    List of receive account UINs.
    receiveGroups List<String>
    List of receive account group IDs.
    strategyId String
    Strategy ID.
    fwmStrategyId string
    ID of the resource.
    postStrategy FwmStrategyPostStrategy
    Post Rule Group.
    preStrategy FwmStrategyPreStrategy
    Pre Rule Group.
    product string
    Product type, e.g. enterprise_sg / cfw_vpc_acl / cfw_nat_acl / cfw_edge_acl.
    receiveAccounts string[]
    List of receive account UINs.
    receiveGroups string[]
    List of receive account group IDs.
    strategyId string
    Strategy ID.
    fwm_strategy_id str
    ID of the resource.
    post_strategy FwmStrategyPostStrategyArgs
    Post Rule Group.
    pre_strategy FwmStrategyPreStrategyArgs
    Pre Rule Group.
    product str
    Product type, e.g. enterprise_sg / cfw_vpc_acl / cfw_nat_acl / cfw_edge_acl.
    receive_accounts Sequence[str]
    List of receive account UINs.
    receive_groups Sequence[str]
    List of receive account group IDs.
    strategy_id str
    Strategy ID.
    fwmStrategyId String
    ID of the resource.
    postStrategy Property Map
    Post Rule Group.
    preStrategy Property Map
    Pre Rule Group.
    product String
    Product type, e.g. enterprise_sg / cfw_vpc_acl / cfw_nat_acl / cfw_edge_acl.
    receiveAccounts List<String>
    List of receive account UINs.
    receiveGroups List<String>
    List of receive account group IDs.
    strategyId String
    Strategy ID.

    Supporting Types

    FwmStrategyPostStrategy, FwmStrategyPostStrategyArgs

    GroupId string
    Rule group ID.
    Sequence double
    Priority.
    GroupId string
    Rule group ID.
    Sequence float64
    Priority.
    group_id string
    Rule group ID.
    sequence number
    Priority.
    groupId String
    Rule group ID.
    sequence Double
    Priority.
    groupId string
    Rule group ID.
    sequence number
    Priority.
    group_id str
    Rule group ID.
    sequence float
    Priority.
    groupId String
    Rule group ID.
    sequence Number
    Priority.

    FwmStrategyPreStrategy, FwmStrategyPreStrategyArgs

    GroupId string
    Rule group ID.
    Sequence double
    Priority.
    GroupId string
    Rule group ID.
    Sequence float64
    Priority.
    group_id string
    Rule group ID.
    sequence number
    Priority.
    groupId String
    Rule group ID.
    sequence Double
    Priority.
    groupId string
    Rule group ID.
    sequence number
    Priority.
    group_id str
    Rule group ID.
    sequence float
    Priority.
    groupId String
    Rule group ID.
    sequence Number
    Priority.

    Import

    FWM strategy can be imported using the StrategyId, e.g.

    $ pulumi import tencentcloud:index/fwmStrategy:FwmStrategy example fwms-s1d49yaf
    

    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