tencentcloud.DlcDataMaskStrategy
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:
- Dlc
Data stringMask Strategy Id - ID of the resource.
- Strategy
Dlc
Data Mask Strategy Strategy - The data masking strategy.
- Dlc
Data stringMask Strategy Id - ID of the resource.
- Strategy
Dlc
Data Mask Strategy Strategy Args - The data masking strategy.
- dlc
Data StringMask Strategy Id - ID of the resource.
- strategy
Dlc
Data Mask Strategy Strategy - The data masking strategy.
- dlc
Data stringMask Strategy Id - ID of the resource.
- strategy
Dlc
Data Mask Strategy Strategy - The data masking strategy.
- dlc_
data_ strmask_ strategy_ id - ID of the resource.
- strategy
Dlc
Data Mask Strategy Strategy Args - The data masking strategy.
- dlc
Data StringMask Strategy Id - 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.
- Dlc
Data stringMask Strategy Id - ID of the resource.
- Strategy
Dlc
Data Mask Strategy Strategy - The data masking strategy.
- Dlc
Data stringMask Strategy Id - ID of the resource.
- Strategy
Dlc
Data Mask Strategy Strategy Args - The data masking strategy.
- dlc
Data StringMask Strategy Id - ID of the resource.
- strategy
Dlc
Data Mask Strategy Strategy - The data masking strategy.
- dlc
Data stringMask Strategy Id - ID of the resource.
- strategy
Dlc
Data Mask Strategy Strategy - The data masking strategy.
- dlc_
data_ strmask_ strategy_ id - ID of the resource.
- strategy
Dlc
Data Mask Strategy Strategy Args - The data masking strategy.
- dlc
Data StringMask Strategy Id - ID of the resource.
- strategy Property Map
- The data masking strategy.
Supporting Types
DlcDataMaskStrategyStrategy, DlcDataMaskStrategyStrategyArgs
- Groups
List<Dlc
Data Mask Strategy Strategy Group> - Collection of bound working groups.
- Strategy
Desc string - The description of the data masking strategy.
- Strategy
Id string - The ID of the data masking strategy.
- Strategy
Name string - The name of the data masking strategy.
- Groups
[]Dlc
Data Mask Strategy Strategy Group - Collection of bound working groups.
- Strategy
Desc string - The description of the data masking strategy.
- Strategy
Id string - The ID of the data masking strategy.
- Strategy
Name string - The name of the data masking strategy.
- groups
List<Dlc
Data Mask Strategy Strategy Group> - Collection of bound working groups.
- strategy
Desc String - The description of the data masking strategy.
- strategy
Id String - The ID of the data masking strategy.
- strategy
Name String - The name of the data masking strategy.
- groups
Dlc
Data Mask Strategy Strategy Group[] - Collection of bound working groups.
- strategy
Desc string - The description of the data masking strategy.
- strategy
Id string - The ID of the data masking strategy.
- strategy
Name string - The name of the data masking strategy.
- groups
Sequence[Dlc
Data Mask Strategy Strategy Group] - 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.
- strategy
Desc String - The description of the data masking strategy.
- strategy
Id String - The ID of the data masking strategy.
- strategy
Name String - The name of the data masking strategy.
DlcDataMaskStrategyStrategyGroup, DlcDataMaskStrategyStrategyGroupArgs
- Strategy
Type 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.
- Work
Group doubleId - The unique ID of the work group.
- Strategy
Type 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.
- Work
Group float64Id - The unique ID of the work group.
- strategy
Type 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.
- work
Group DoubleId - The unique ID of the work group.
- strategy
Type 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.
- work
Group numberId - 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_ floatid - The unique ID of the work group.
- strategy
Type 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.
- work
Group NumberId - 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.