1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. DlcDataMaskStrategy
tencentcloud 1.82.29 published on Friday, Oct 10, 2025 by tencentcloudstack

tencentcloud.DlcDataMaskStrategy

Deploy with Pulumi
tencentcloud logo
tencentcloud 1.82.29 published on Friday, Oct 10, 2025 by tencentcloudstack

    Provides a resource to create a DLC data mask strategy

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.DlcDataMaskStrategy("example", {strategy: {
        groups: [{
            strategyType: "MASK",
            workGroupId: 70220,
        }],
        strategyDesc: "description.",
        strategyName: "tf-example",
    }});
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.DlcDataMaskStrategy("example", strategy={
        "groups": [{
            "strategy_type": "MASK",
            "work_group_id": 70220,
        }],
        "strategy_desc": "description.",
        "strategy_name": "tf-example",
    })
    
    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.NewDlcDataMaskStrategy(ctx, "example", &tencentcloud.DlcDataMaskStrategyArgs{
    			Strategy: &tencentcloud.DlcDataMaskStrategyStrategyArgs{
    				Groups: tencentcloud.DlcDataMaskStrategyStrategyGroupArray{
    					&tencentcloud.DlcDataMaskStrategyStrategyGroupArgs{
    						StrategyType: pulumi.String("MASK"),
    						WorkGroupId:  pulumi.Float64(70220),
    					},
    				},
    				StrategyDesc: pulumi.String("description."),
    				StrategyName: pulumi.String("tf-example"),
    			},
    		})
    		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.DlcDataMaskStrategy("example", new()
        {
            Strategy = new Tencentcloud.Inputs.DlcDataMaskStrategyStrategyArgs
            {
                Groups = new[]
                {
                    new Tencentcloud.Inputs.DlcDataMaskStrategyStrategyGroupArgs
                    {
                        StrategyType = "MASK",
                        WorkGroupId = 70220,
                    },
                },
                StrategyDesc = "description.",
                StrategyName = "tf-example",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.DlcDataMaskStrategy;
    import com.pulumi.tencentcloud.DlcDataMaskStrategyArgs;
    import com.pulumi.tencentcloud.inputs.DlcDataMaskStrategyStrategyArgs;
    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 DlcDataMaskStrategy("example", DlcDataMaskStrategyArgs.builder()
                .strategy(DlcDataMaskStrategyStrategyArgs.builder()
                    .groups(DlcDataMaskStrategyStrategyGroupArgs.builder()
                        .strategyType("MASK")
                        .workGroupId(70220)
                        .build())
                    .strategyDesc("description.")
                    .strategyName("tf-example")
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:DlcDataMaskStrategy
        properties:
          strategy:
            groups:
              - strategyType: MASK
                workGroupId: 70220
            strategyDesc: description.
            strategyName: tf-example
    

    Create DlcDataMaskStrategy Resource

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

    Constructor syntax

    new DlcDataMaskStrategy(name: string, args?: DlcDataMaskStrategyArgs, opts?: CustomResourceOptions);
    @overload
    def DlcDataMaskStrategy(resource_name: str,
                            args: Optional[DlcDataMaskStrategyArgs] = None,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def DlcDataMaskStrategy(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            dlc_data_mask_strategy_id: Optional[str] = None,
                            strategy: Optional[DlcDataMaskStrategyStrategyArgs] = None)
    func NewDlcDataMaskStrategy(ctx *Context, name string, args *DlcDataMaskStrategyArgs, opts ...ResourceOption) (*DlcDataMaskStrategy, error)
    public DlcDataMaskStrategy(string name, DlcDataMaskStrategyArgs? args = null, CustomResourceOptions? opts = null)
    public DlcDataMaskStrategy(String name, DlcDataMaskStrategyArgs args)
    public DlcDataMaskStrategy(String name, DlcDataMaskStrategyArgs args, CustomResourceOptions options)
    
    type: tencentcloud:DlcDataMaskStrategy
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

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

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

    DlcDataMaskStrategyId string
    ID of the resource.
    Strategy DlcDataMaskStrategyStrategy
    The data masking strategy.
    DlcDataMaskStrategyId string
    ID of the resource.
    Strategy DlcDataMaskStrategyStrategyArgs
    The data masking strategy.
    dlcDataMaskStrategyId String
    ID of the resource.
    strategy DlcDataMaskStrategyStrategy
    The data masking strategy.
    dlcDataMaskStrategyId string
    ID of the resource.
    strategy DlcDataMaskStrategyStrategy
    The data masking strategy.
    dlc_data_mask_strategy_id str
    ID of the resource.
    strategy DlcDataMaskStrategyStrategyArgs
    The data masking strategy.
    dlcDataMaskStrategyId String
    ID of the resource.
    strategy Property Map
    The data masking strategy.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the DlcDataMaskStrategy 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 str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing DlcDataMaskStrategy Resource

    Get an existing DlcDataMaskStrategy 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?: DlcDataMaskStrategyState, opts?: CustomResourceOptions): DlcDataMaskStrategy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            dlc_data_mask_strategy_id: Optional[str] = None,
            strategy: Optional[DlcDataMaskStrategyStrategyArgs] = None) -> DlcDataMaskStrategy
    func GetDlcDataMaskStrategy(ctx *Context, name string, id IDInput, state *DlcDataMaskStrategyState, opts ...ResourceOption) (*DlcDataMaskStrategy, error)
    public static DlcDataMaskStrategy Get(string name, Input<string> id, DlcDataMaskStrategyState? state, CustomResourceOptions? opts = null)
    public static DlcDataMaskStrategy get(String name, Output<String> id, DlcDataMaskStrategyState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:DlcDataMaskStrategy    get:      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:
    DlcDataMaskStrategyId string
    ID of the resource.
    Strategy DlcDataMaskStrategyStrategy
    The data masking strategy.
    DlcDataMaskStrategyId string
    ID of the resource.
    Strategy DlcDataMaskStrategyStrategyArgs
    The data masking strategy.
    dlcDataMaskStrategyId String
    ID of the resource.
    strategy DlcDataMaskStrategyStrategy
    The data masking strategy.
    dlcDataMaskStrategyId string
    ID of the resource.
    strategy DlcDataMaskStrategyStrategy
    The data masking strategy.
    dlc_data_mask_strategy_id str
    ID of the resource.
    strategy DlcDataMaskStrategyStrategyArgs
    The data masking strategy.
    dlcDataMaskStrategyId String
    ID of the resource.
    strategy Property Map
    The data masking strategy.

    Supporting Types

    DlcDataMaskStrategyStrategy, DlcDataMaskStrategyStrategyArgs

    Groups List<DlcDataMaskStrategyStrategyGroup>
    Collection of bound working groups.
    StrategyDesc string
    The description of the data masking strategy.
    StrategyId string
    The ID of the data masking strategy.
    StrategyName string
    The name of the data masking strategy.
    Groups []DlcDataMaskStrategyStrategyGroup
    Collection of bound working groups.
    StrategyDesc string
    The description of the data masking strategy.
    StrategyId string
    The ID of the data masking strategy.
    StrategyName string
    The name of the data masking strategy.
    groups List<DlcDataMaskStrategyStrategyGroup>
    Collection of bound working groups.
    strategyDesc String
    The description of the data masking strategy.
    strategyId String
    The ID of the data masking strategy.
    strategyName String
    The name of the data masking strategy.
    groups DlcDataMaskStrategyStrategyGroup[]
    Collection of bound working groups.
    strategyDesc string
    The description of the data masking strategy.
    strategyId string
    The ID of the data masking strategy.
    strategyName string
    The name of the data masking strategy.
    groups Sequence[DlcDataMaskStrategyStrategyGroup]
    Collection of bound working groups.
    strategy_desc str
    The description of the data masking strategy.
    strategy_id str
    The ID of the data masking strategy.
    strategy_name str
    The name of the data masking strategy.
    groups List<Property Map>
    Collection of bound working groups.
    strategyDesc String
    The description of the data masking strategy.
    strategyId String
    The ID of the data masking strategy.
    strategyName String
    The name of the data masking strategy.

    DlcDataMaskStrategyStrategyGroup, DlcDataMaskStrategyStrategyGroupArgs

    StrategyType string
    The type of the data masking strategy. Supported value: MASK/MASK_NONE/MASK_NULL/MASK_HASH/MASK_SHOW_LAST_4/MASK_SHOW_FIRST_4/MASK_DATE_SHOW_YEAR.
    WorkGroupId double
    The unique ID of the work group.
    StrategyType string
    The type of the data masking strategy. Supported value: MASK/MASK_NONE/MASK_NULL/MASK_HASH/MASK_SHOW_LAST_4/MASK_SHOW_FIRST_4/MASK_DATE_SHOW_YEAR.
    WorkGroupId float64
    The unique ID of the work group.
    strategyType String
    The type of the data masking strategy. Supported value: MASK/MASK_NONE/MASK_NULL/MASK_HASH/MASK_SHOW_LAST_4/MASK_SHOW_FIRST_4/MASK_DATE_SHOW_YEAR.
    workGroupId Double
    The unique ID of the work group.
    strategyType string
    The type of the data masking strategy. Supported value: MASK/MASK_NONE/MASK_NULL/MASK_HASH/MASK_SHOW_LAST_4/MASK_SHOW_FIRST_4/MASK_DATE_SHOW_YEAR.
    workGroupId number
    The unique ID of the work group.
    strategy_type str
    The type of the data masking strategy. Supported value: MASK/MASK_NONE/MASK_NULL/MASK_HASH/MASK_SHOW_LAST_4/MASK_SHOW_FIRST_4/MASK_DATE_SHOW_YEAR.
    work_group_id float
    The unique ID of the work group.
    strategyType String
    The type of the data masking strategy. Supported value: MASK/MASK_NONE/MASK_NULL/MASK_HASH/MASK_SHOW_LAST_4/MASK_SHOW_FIRST_4/MASK_DATE_SHOW_YEAR.
    workGroupId Number
    The unique ID of the work group.

    Import

    DLC data mask strategy can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/dlcDataMaskStrategy:DlcDataMaskStrategy example 2fcab650-11a8-44ef-bf58-19c22af601b6
    

    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 logo
    tencentcloud 1.82.29 published on Friday, Oct 10, 2025 by tencentcloudstack
      Meet Neo: Your AI Platform Teammate