public static final class ModifyMaskingRulesRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
ModifyMaskingRulesRequest |
build() |
ModifyMaskingRulesRequest.Builder |
DBClusterId(String DBClusterId)
The ID of the cluster.
|
ModifyMaskingRulesRequest.Builder |
enable(String enable)
Specifies whether to enable the specified masking rule.
|
ModifyMaskingRulesRequest.Builder |
ruleConfig(String ruleConfig)
The parameter that is used to specify the masking rule that you want to modify and the value in the JSON format.
|
ModifyMaskingRulesRequest.Builder |
ruleName(String ruleName)
The name of the data masking rule.
|
ModifyMaskingRulesRequest.Builder |
ruleNameList(String ruleNameList)
The list of masking rule names.
|
public ModifyMaskingRulesRequest.Builder DBClusterId(String DBClusterId)
> You can call the [DescribeDBClusters](~~98094~~) operation to query the details of the clusters that belong to your Alibaba Cloud account, such as cluster IDs.
public ModifyMaskingRulesRequest.Builder enable(String enable)
* **true** * **false** > This parameter is valid only when the `RuleNameList` parameter is specfied.
public ModifyMaskingRulesRequest.Builder ruleConfig(String ruleConfig)
* `"auto"`: specifies that the dynamic masking algorithm is supported. This parameter is required. * `"databases"`: Optional. The names of databases to which the masking rule is applied. Separate the names with commas (,). If you leave this parameter empty, the masking rule applies to all databases in the cluster. * `"tables"`: Optional. The names of tables to which the masking rule is applied. Separate the names with commas (,). If you leave this parameter empty, the rule applies to all tables in the cluster. * `"columns"`: Required. The names of fields to which the masking rule is applied. Separate the names with commas (,). * `"description"`: Optional. The description of the masking rule. The description can be up to 64 characters in length. * `"enabled"`: Required. Specifies whether to enable the masking rule. Valid values: **true** and **false**. * `"applies_to"`: The names of database accounts to which the masking rule is applied. Separate the names with commas (,). * `"exempted"`: The names of database accounts to which the masking rule is not applied. Separate the names with commas (,). >- If you specify `RuleName`, `RuleConfig` parameter is required. >- You need to select either `"applies_to"` or `"exempted"`.
public ModifyMaskingRulesRequest.Builder ruleName(String ruleName)
>- You can call the [DescribeMaskingRules](~~212573~~) operation to query the details of all masking rules for a specified cluster, such as the names of the masking rules. >- If the rule name does not exist in the cluster, the system automatically creates a masking rule based on the name and the value of `RuleConfig`.
public ModifyMaskingRulesRequest.Builder ruleNameList(String ruleNameList)
> You must specify either the `RuleName` or `RuleNameList` parameter.
public ModifyMaskingRulesRequest build()
Copyright © 2023. All rights reserved.