published on Friday, Nov 6, 2026 by tencentcloudstack
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:
- Read: DescribeStrategy
- Update:
- Delete: DeleteStrategy
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.
- Fwm
Strategy stringId - ID of the resource.
- Post
Strategy FwmStrategy Post Strategy - Post Rule Group.
- Pre
Strategy FwmStrategy Pre Strategy - 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.
- Fwm
Strategy stringId - ID of the resource.
- Post
Strategy FwmStrategy Post Strategy Args - Post Rule Group.
- Pre
Strategy FwmStrategy Pre Strategy Args - Pre Rule Group.
- Receive
Accounts []string - List of receive account UINs.
- Receive
Groups []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_ stringid - 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.
- fwm
Strategy StringId - ID of the resource.
- post
Strategy FwmStrategy Post Strategy - Post Rule Group.
- pre
Strategy FwmStrategy Pre Strategy - 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.
- fwm
Strategy stringId - ID of the resource.
- post
Strategy FwmStrategy Post Strategy - Post Rule Group.
- pre
Strategy FwmStrategy Pre Strategy - Pre Rule Group.
- receive
Accounts string[] - List of receive account UINs.
- receive
Groups 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_ strid - ID of the resource.
- post_
strategy FwmStrategy Post Strategy Args - Post Rule Group.
- pre_
strategy FwmStrategy Pre Strategy Args - 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.
- fwm
Strategy StringId - ID of the resource.
- post
Strategy Property Map - Post Rule Group.
- pre
Strategy Property Map - Pre Rule Group.
- receive
Accounts List<String> - List of receive account UINs.
- receive
Groups 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.
- Strategy
Id 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.
- strategy_
id 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.
- strategy
Id 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.
- strategy
Id 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) -> FwmStrategyfunc 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.
- Fwm
Strategy stringId - ID of the resource.
- Post
Strategy FwmStrategy Post Strategy - Post Rule Group.
- Pre
Strategy FwmStrategy Pre Strategy - 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.
- Fwm
Strategy stringId - ID of the resource.
- Post
Strategy FwmStrategy Post Strategy Args - Post Rule Group.
- Pre
Strategy FwmStrategy Pre Strategy Args - Pre Rule Group.
- Product string
- Product type, e.g. enterprise_sg / cfw_vpc_acl / cfw_nat_acl / cfw_edge_acl.
- Receive
Accounts []string - List of receive account UINs.
- Receive
Groups []string - List of receive account group IDs.
- Strategy
Id string - Strategy ID.
- fwm_
strategy_ stringid - 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.
- fwm
Strategy StringId - ID of the resource.
- post
Strategy FwmStrategy Post Strategy - Post Rule Group.
- pre
Strategy FwmStrategy Pre Strategy - 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.
- fwm
Strategy stringId - ID of the resource.
- post
Strategy FwmStrategy Post Strategy - Post Rule Group.
- pre
Strategy FwmStrategy Pre Strategy - Pre Rule Group.
- product string
- Product type, e.g. enterprise_sg / cfw_vpc_acl / cfw_nat_acl / cfw_edge_acl.
- receive
Accounts string[] - List of receive account UINs.
- receive
Groups string[] - List of receive account group IDs.
- strategy
Id string - Strategy ID.
- fwm_
strategy_ strid - ID of the resource.
- post_
strategy FwmStrategy Post Strategy Args - Post Rule Group.
- pre_
strategy FwmStrategy Pre Strategy Args - 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.
- fwm
Strategy StringId - ID of the resource.
- post
Strategy Property Map - Post Rule Group.
- pre
Strategy Property Map - 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.
Supporting Types
FwmStrategyPostStrategy, FwmStrategyPostStrategyArgs
FwmStrategyPreStrategy, FwmStrategyPreStrategyArgs
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
tencentcloudTerraform Provider.
published on Friday, Nov 6, 2026 by tencentcloudstack