1. Registry
  2. Packages
  3. Tencentcloud Provider
  4. API Docs
  5. FwmCfwShareRoleConfig
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 cfw_share_role, used to manage the cloud firewall (fwm) share role (sharer/user/none) expectation state of an organization member.

    Example Usage

    Configure the share role as user

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.FwmCfwShareRoleConfig("example", {
        cfwShareRole: "user",
        userMemberId: "mem-tencent-e46e42e79411caf0",
        sharerMemberId: "mem-tencent-d55a312b431535c3",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.FwmCfwShareRoleConfig("example",
        cfw_share_role="user",
        user_member_id="mem-tencent-e46e42e79411caf0",
        sharer_member_id="mem-tencent-d55a312b431535c3")
    
    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.NewFwmCfwShareRoleConfig(ctx, "example", &tencentcloud.FwmCfwShareRoleConfigArgs{
    			CfwShareRole:   pulumi.String("user"),
    			UserMemberId:   pulumi.String("mem-tencent-e46e42e79411caf0"),
    			SharerMemberId: pulumi.String("mem-tencent-d55a312b431535c3"),
    		})
    		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.FwmCfwShareRoleConfig("example", new()
        {
            CfwShareRole = "user",
            UserMemberId = "mem-tencent-e46e42e79411caf0",
            SharerMemberId = "mem-tencent-d55a312b431535c3",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.FwmCfwShareRoleConfig;
    import com.pulumi.tencentcloud.FwmCfwShareRoleConfigArgs;
    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 FwmCfwShareRoleConfig("example", FwmCfwShareRoleConfigArgs.builder()
                .cfwShareRole("user")
                .userMemberId("mem-tencent-e46e42e79411caf0")
                .sharerMemberId("mem-tencent-d55a312b431535c3")
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:FwmCfwShareRoleConfig
        properties:
          cfwShareRole: user
          userMemberId: mem-tencent-e46e42e79411caf0
          sharerMemberId: mem-tencent-d55a312b431535c3
    
    Example coming soon!
    

    Configure the share role as none

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.FwmCfwShareRoleConfig("example", {
        cfwShareRole: "none",
        userMemberId: "mem-tencent-e46e42e79411caf0",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.FwmCfwShareRoleConfig("example",
        cfw_share_role="none",
        user_member_id="mem-tencent-e46e42e79411caf0")
    
    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.NewFwmCfwShareRoleConfig(ctx, "example", &tencentcloud.FwmCfwShareRoleConfigArgs{
    			CfwShareRole: pulumi.String("none"),
    			UserMemberId: pulumi.String("mem-tencent-e46e42e79411caf0"),
    		})
    		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.FwmCfwShareRoleConfig("example", new()
        {
            CfwShareRole = "none",
            UserMemberId = "mem-tencent-e46e42e79411caf0",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.FwmCfwShareRoleConfig;
    import com.pulumi.tencentcloud.FwmCfwShareRoleConfigArgs;
    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 FwmCfwShareRoleConfig("example", FwmCfwShareRoleConfigArgs.builder()
                .cfwShareRole("none")
                .userMemberId("mem-tencent-e46e42e79411caf0")
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:FwmCfwShareRoleConfig
        properties:
          cfwShareRole: none
          userMemberId: mem-tencent-e46e42e79411caf0
    
    Example coming soon!
    

    API Reference

    This resource interacts with the following TencentCloud APIs:

    Create FwmCfwShareRoleConfig Resource

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

    Constructor syntax

    new FwmCfwShareRoleConfig(name: string, args: FwmCfwShareRoleConfigArgs, opts?: CustomResourceOptions);
    @overload
    def FwmCfwShareRoleConfig(resource_name: str,
                              args: FwmCfwShareRoleConfigArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def FwmCfwShareRoleConfig(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              cfw_share_role: Optional[str] = None,
                              user_member_id: Optional[str] = None,
                              fwm_cfw_share_role_config_id: Optional[str] = None,
                              sharer_member_id: Optional[str] = None)
    func NewFwmCfwShareRoleConfig(ctx *Context, name string, args FwmCfwShareRoleConfigArgs, opts ...ResourceOption) (*FwmCfwShareRoleConfig, error)
    public FwmCfwShareRoleConfig(string name, FwmCfwShareRoleConfigArgs args, CustomResourceOptions? opts = null)
    public FwmCfwShareRoleConfig(String name, FwmCfwShareRoleConfigArgs args)
    public FwmCfwShareRoleConfig(String name, FwmCfwShareRoleConfigArgs args, CustomResourceOptions options)
    
    type: tencentcloud:FwmCfwShareRoleConfig
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "tencentcloud_fwm_cfw_share_role_config" "name" {
        # resource properties
    }

    Parameters

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

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

    CfwShareRole string
    Cloud firewall shared roles, with values of sharer, user, and none. Sharer > user prohibited from direct changes, must first be set to none.
    UserMemberId string
    User ID.
    FwmCfwShareRoleConfigId string
    ID of the resource.
    SharerMemberId string
    Sharer account ID, required when CfwShareRole is user.
    CfwShareRole string
    Cloud firewall shared roles, with values of sharer, user, and none. Sharer > user prohibited from direct changes, must first be set to none.
    UserMemberId string
    User ID.
    FwmCfwShareRoleConfigId string
    ID of the resource.
    SharerMemberId string
    Sharer account ID, required when CfwShareRole is user.
    cfw_share_role string
    Cloud firewall shared roles, with values of sharer, user, and none. Sharer > user prohibited from direct changes, must first be set to none.
    user_member_id string
    User ID.
    fwm_cfw_share_role_config_id string
    ID of the resource.
    sharer_member_id string
    Sharer account ID, required when CfwShareRole is user.
    cfwShareRole String
    Cloud firewall shared roles, with values of sharer, user, and none. Sharer > user prohibited from direct changes, must first be set to none.
    userMemberId String
    User ID.
    fwmCfwShareRoleConfigId String
    ID of the resource.
    sharerMemberId String
    Sharer account ID, required when CfwShareRole is user.
    cfwShareRole string
    Cloud firewall shared roles, with values of sharer, user, and none. Sharer > user prohibited from direct changes, must first be set to none.
    userMemberId string
    User ID.
    fwmCfwShareRoleConfigId string
    ID of the resource.
    sharerMemberId string
    Sharer account ID, required when CfwShareRole is user.
    cfw_share_role str
    Cloud firewall shared roles, with values of sharer, user, and none. Sharer > user prohibited from direct changes, must first be set to none.
    user_member_id str
    User ID.
    fwm_cfw_share_role_config_id str
    ID of the resource.
    sharer_member_id str
    Sharer account ID, required when CfwShareRole is user.
    cfwShareRole String
    Cloud firewall shared roles, with values of sharer, user, and none. Sharer > user prohibited from direct changes, must first be set to none.
    userMemberId String
    User ID.
    fwmCfwShareRoleConfigId String
    ID of the resource.
    sharerMemberId String
    Sharer account ID, required when CfwShareRole is user.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the FwmCfwShareRoleConfig 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 FwmCfwShareRoleConfig Resource

    Get an existing FwmCfwShareRoleConfig 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?: FwmCfwShareRoleConfigState, opts?: CustomResourceOptions): FwmCfwShareRoleConfig
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cfw_share_role: Optional[str] = None,
            fwm_cfw_share_role_config_id: Optional[str] = None,
            sharer_member_id: Optional[str] = None,
            user_member_id: Optional[str] = None) -> FwmCfwShareRoleConfig
    func GetFwmCfwShareRoleConfig(ctx *Context, name string, id IDInput, state *FwmCfwShareRoleConfigState, opts ...ResourceOption) (*FwmCfwShareRoleConfig, error)
    public static FwmCfwShareRoleConfig Get(string name, Input<string> id, FwmCfwShareRoleConfigState? state, CustomResourceOptions? opts = null)
    public static FwmCfwShareRoleConfig get(String name, Output<String> id, FwmCfwShareRoleConfigState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:FwmCfwShareRoleConfig    get:      id: ${id}
    import {
      to = tencentcloud_fwm_cfw_share_role_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.
    The following state arguments are supported:
    CfwShareRole string
    Cloud firewall shared roles, with values of sharer, user, and none. Sharer > user prohibited from direct changes, must first be set to none.
    FwmCfwShareRoleConfigId string
    ID of the resource.
    SharerMemberId string
    Sharer account ID, required when CfwShareRole is user.
    UserMemberId string
    User ID.
    CfwShareRole string
    Cloud firewall shared roles, with values of sharer, user, and none. Sharer > user prohibited from direct changes, must first be set to none.
    FwmCfwShareRoleConfigId string
    ID of the resource.
    SharerMemberId string
    Sharer account ID, required when CfwShareRole is user.
    UserMemberId string
    User ID.
    cfw_share_role string
    Cloud firewall shared roles, with values of sharer, user, and none. Sharer > user prohibited from direct changes, must first be set to none.
    fwm_cfw_share_role_config_id string
    ID of the resource.
    sharer_member_id string
    Sharer account ID, required when CfwShareRole is user.
    user_member_id string
    User ID.
    cfwShareRole String
    Cloud firewall shared roles, with values of sharer, user, and none. Sharer > user prohibited from direct changes, must first be set to none.
    fwmCfwShareRoleConfigId String
    ID of the resource.
    sharerMemberId String
    Sharer account ID, required when CfwShareRole is user.
    userMemberId String
    User ID.
    cfwShareRole string
    Cloud firewall shared roles, with values of sharer, user, and none. Sharer > user prohibited from direct changes, must first be set to none.
    fwmCfwShareRoleConfigId string
    ID of the resource.
    sharerMemberId string
    Sharer account ID, required when CfwShareRole is user.
    userMemberId string
    User ID.
    cfw_share_role str
    Cloud firewall shared roles, with values of sharer, user, and none. Sharer > user prohibited from direct changes, must first be set to none.
    fwm_cfw_share_role_config_id str
    ID of the resource.
    sharer_member_id str
    Sharer account ID, required when CfwShareRole is user.
    user_member_id str
    User ID.
    cfwShareRole String
    Cloud firewall shared roles, with values of sharer, user, and none. Sharer > user prohibited from direct changes, must first be set to none.
    fwmCfwShareRoleConfigId String
    ID of the resource.
    sharerMemberId String
    Sharer account ID, required when CfwShareRole is user.
    userMemberId String
    User ID.

    Import

    fwm cfw share role can be imported using id, e.g.

    $ pulumi import tencentcloud:index/fwmCfwShareRoleConfig:FwmCfwShareRoleConfig example mem-tencent-e46e42e79411caf0
    

    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