published on Friday, Nov 6, 2026 by tencentcloudstack
published on Friday, Nov 6, 2026 by tencentcloudstack
Provides a resource to manage which FWM (Cloud Firewall Management) organization account group a member belongs to.
NOTE: When
group_idis non-empty, the member must have been managed by cloud firewall (atencentcloud_fwm_cfw_managedresource withcfw_managed = 1), so the example below usesdepends_onto ensure the member is managed first. There is a reverse coupling withtencentcloud_fwm_cfw_managed: disabling management (cfw_managed 1->0) will automatically move the member out of the group on the server side. If you manage both resources at the same time, setgroup_idto empty before disabling management, otherwise unexpected state drift may occur.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.FwmMemberGroupConfig("example", {
userMemberId: "mem-tencent-26afe1f469a10371",
groupId: "acg-rqjwnsnc",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.FwmMemberGroupConfig("example",
user_member_id="mem-tencent-26afe1f469a10371",
group_id="acg-rqjwnsnc")
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.NewFwmMemberGroupConfig(ctx, "example", &tencentcloud.FwmMemberGroupConfigArgs{
UserMemberId: pulumi.String("mem-tencent-26afe1f469a10371"),
GroupId: pulumi.String("acg-rqjwnsnc"),
})
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.FwmMemberGroupConfig("example", new()
{
UserMemberId = "mem-tencent-26afe1f469a10371",
GroupId = "acg-rqjwnsnc",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.FwmMemberGroupConfig;
import com.pulumi.tencentcloud.FwmMemberGroupConfigArgs;
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 FwmMemberGroupConfig("example", FwmMemberGroupConfigArgs.builder()
.userMemberId("mem-tencent-26afe1f469a10371")
.groupId("acg-rqjwnsnc")
.build());
}
}
resources:
example:
type: tencentcloud:FwmMemberGroupConfig
properties:
userMemberId: mem-tencent-26afe1f469a10371
groupId: acg-rqjwnsnc
Example coming soon!
API Reference
This resource interacts with the following TencentCloud APIs:
- Read: DescribeOrganMembers
- Update: ModifyMemberGroup
Create FwmMemberGroupConfig Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new FwmMemberGroupConfig(name: string, args: FwmMemberGroupConfigArgs, opts?: CustomResourceOptions);@overload
def FwmMemberGroupConfig(resource_name: str,
args: FwmMemberGroupConfigArgs,
opts: Optional[ResourceOptions] = None)
@overload
def FwmMemberGroupConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
user_member_id: Optional[str] = None,
fwm_member_group_config_id: Optional[str] = None,
group_id: Optional[str] = None)func NewFwmMemberGroupConfig(ctx *Context, name string, args FwmMemberGroupConfigArgs, opts ...ResourceOption) (*FwmMemberGroupConfig, error)public FwmMemberGroupConfig(string name, FwmMemberGroupConfigArgs args, CustomResourceOptions? opts = null)
public FwmMemberGroupConfig(String name, FwmMemberGroupConfigArgs args)
public FwmMemberGroupConfig(String name, FwmMemberGroupConfigArgs args, CustomResourceOptions options)
type: tencentcloud:FwmMemberGroupConfig
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "tencentcloud_fwm_member_group_config" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args FwmMemberGroupConfigArgs
- 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 FwmMemberGroupConfigArgs
- 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 FwmMemberGroupConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FwmMemberGroupConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FwmMemberGroupConfigArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
FwmMemberGroupConfig 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 FwmMemberGroupConfig resource accepts the following input properties:
- User
Member stringId - Member ID of the FWM organization member, such as
mem-xxxx. - Fwm
Member stringGroup Config Id - ID of the resource.
- Group
Id string - Account group ID that the member belongs to. Empty string means the member is not grouped (moved out). A member can belong to at most one group.
- User
Member stringId - Member ID of the FWM organization member, such as
mem-xxxx. - Fwm
Member stringGroup Config Id - ID of the resource.
- Group
Id string - Account group ID that the member belongs to. Empty string means the member is not grouped (moved out). A member can belong to at most one group.
- user_
member_ stringid - Member ID of the FWM organization member, such as
mem-xxxx. - fwm_
member_ stringgroup_ config_ id - ID of the resource.
- group_
id string - Account group ID that the member belongs to. Empty string means the member is not grouped (moved out). A member can belong to at most one group.
- user
Member StringId - Member ID of the FWM organization member, such as
mem-xxxx. - fwm
Member StringGroup Config Id - ID of the resource.
- group
Id String - Account group ID that the member belongs to. Empty string means the member is not grouped (moved out). A member can belong to at most one group.
- user
Member stringId - Member ID of the FWM organization member, such as
mem-xxxx. - fwm
Member stringGroup Config Id - ID of the resource.
- group
Id string - Account group ID that the member belongs to. Empty string means the member is not grouped (moved out). A member can belong to at most one group.
- user_
member_ strid - Member ID of the FWM organization member, such as
mem-xxxx. - fwm_
member_ strgroup_ config_ id - ID of the resource.
- group_
id str - Account group ID that the member belongs to. Empty string means the member is not grouped (moved out). A member can belong to at most one group.
- user
Member StringId - Member ID of the FWM organization member, such as
mem-xxxx. - fwm
Member StringGroup Config Id - ID of the resource.
- group
Id String - Account group ID that the member belongs to. Empty string means the member is not grouped (moved out). A member can belong to at most one group.
Outputs
All input properties are implicitly available as output properties. Additionally, the FwmMemberGroupConfig 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 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 FwmMemberGroupConfig Resource
Get an existing FwmMemberGroupConfig 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?: FwmMemberGroupConfigState, opts?: CustomResourceOptions): FwmMemberGroupConfig@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
fwm_member_group_config_id: Optional[str] = None,
group_id: Optional[str] = None,
user_member_id: Optional[str] = None) -> FwmMemberGroupConfigfunc GetFwmMemberGroupConfig(ctx *Context, name string, id IDInput, state *FwmMemberGroupConfigState, opts ...ResourceOption) (*FwmMemberGroupConfig, error)public static FwmMemberGroupConfig Get(string name, Input<string> id, FwmMemberGroupConfigState? state, CustomResourceOptions? opts = null)public static FwmMemberGroupConfig get(String name, Output<String> id, FwmMemberGroupConfigState state, CustomResourceOptions options)resources: _: type: tencentcloud:FwmMemberGroupConfig get: id: ${id}import {
to = tencentcloud_fwm_member_group_config.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
Member stringGroup Config Id - ID of the resource.
- Group
Id string - Account group ID that the member belongs to. Empty string means the member is not grouped (moved out). A member can belong to at most one group.
- User
Member stringId - Member ID of the FWM organization member, such as
mem-xxxx.
- Fwm
Member stringGroup Config Id - ID of the resource.
- Group
Id string - Account group ID that the member belongs to. Empty string means the member is not grouped (moved out). A member can belong to at most one group.
- User
Member stringId - Member ID of the FWM organization member, such as
mem-xxxx.
- fwm_
member_ stringgroup_ config_ id - ID of the resource.
- group_
id string - Account group ID that the member belongs to. Empty string means the member is not grouped (moved out). A member can belong to at most one group.
- user_
member_ stringid - Member ID of the FWM organization member, such as
mem-xxxx.
- fwm
Member StringGroup Config Id - ID of the resource.
- group
Id String - Account group ID that the member belongs to. Empty string means the member is not grouped (moved out). A member can belong to at most one group.
- user
Member StringId - Member ID of the FWM organization member, such as
mem-xxxx.
- fwm
Member stringGroup Config Id - ID of the resource.
- group
Id string - Account group ID that the member belongs to. Empty string means the member is not grouped (moved out). A member can belong to at most one group.
- user
Member stringId - Member ID of the FWM organization member, such as
mem-xxxx.
- fwm_
member_ strgroup_ config_ id - ID of the resource.
- group_
id str - Account group ID that the member belongs to. Empty string means the member is not grouped (moved out). A member can belong to at most one group.
- user_
member_ strid - Member ID of the FWM organization member, such as
mem-xxxx.
- fwm
Member StringGroup Config Id - ID of the resource.
- group
Id String - Account group ID that the member belongs to. Empty string means the member is not grouped (moved out). A member can belong to at most one group.
- user
Member StringId - Member ID of the FWM organization member, such as
mem-xxxx.
Import
FWM member group resource can be imported using the id, e.g.
$ pulumi import tencentcloud:index/fwmMemberGroupConfig:FwmMemberGroupConfig example mem-tencent-26afe1f469a10371
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