datadog.SensitiveDataScannerRule
Explore with Pulumi AI
Provides a Datadog SensitiveDataScannerRule resource. This can be used to create and manage Datadog sensitive_data_scanner_rule. Setting the create_before_destroy
lifecycle Meta-argument to true
is highly recommended if modifying the included_keyword_configuration
field to avoid unexpectedly disabling Sensitive Data Scanner groups.
Create SensitiveDataScannerRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SensitiveDataScannerRule(name: string, args: SensitiveDataScannerRuleArgs, opts?: CustomResourceOptions);
@overload
def SensitiveDataScannerRule(resource_name: str,
args: SensitiveDataScannerRuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SensitiveDataScannerRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
group_id: Optional[str] = None,
description: Optional[str] = None,
excluded_namespaces: Optional[Sequence[str]] = None,
included_keyword_configuration: Optional[SensitiveDataScannerRuleIncludedKeywordConfigurationArgs] = None,
is_enabled: Optional[bool] = None,
name: Optional[str] = None,
namespaces: Optional[Sequence[str]] = None,
pattern: Optional[str] = None,
priority: Optional[int] = None,
standard_pattern_id: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
text_replacement: Optional[SensitiveDataScannerRuleTextReplacementArgs] = None)
func NewSensitiveDataScannerRule(ctx *Context, name string, args SensitiveDataScannerRuleArgs, opts ...ResourceOption) (*SensitiveDataScannerRule, error)
public SensitiveDataScannerRule(string name, SensitiveDataScannerRuleArgs args, CustomResourceOptions? opts = null)
public SensitiveDataScannerRule(String name, SensitiveDataScannerRuleArgs args)
public SensitiveDataScannerRule(String name, SensitiveDataScannerRuleArgs args, CustomResourceOptions options)
type: datadog:SensitiveDataScannerRule
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 SensitiveDataScannerRuleArgs
- 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 SensitiveDataScannerRuleArgs
- 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 SensitiveDataScannerRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SensitiveDataScannerRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SensitiveDataScannerRuleArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var sensitiveDataScannerRuleResource = new Datadog.SensitiveDataScannerRule("sensitiveDataScannerRuleResource", new()
{
GroupId = "string",
Description = "string",
ExcludedNamespaces = new[]
{
"string",
},
IncludedKeywordConfiguration = new Datadog.Inputs.SensitiveDataScannerRuleIncludedKeywordConfigurationArgs
{
CharacterCount = 0,
Keywords = new[]
{
"string",
},
},
IsEnabled = false,
Name = "string",
Namespaces = new[]
{
"string",
},
Pattern = "string",
Priority = 0,
StandardPatternId = "string",
Tags = new[]
{
"string",
},
TextReplacement = new Datadog.Inputs.SensitiveDataScannerRuleTextReplacementArgs
{
Type = "string",
NumberOfChars = 0,
ReplacementString = "string",
},
});
example, err := datadog.NewSensitiveDataScannerRule(ctx, "sensitiveDataScannerRuleResource", &datadog.SensitiveDataScannerRuleArgs{
GroupId: pulumi.String("string"),
Description: pulumi.String("string"),
ExcludedNamespaces: pulumi.StringArray{
pulumi.String("string"),
},
IncludedKeywordConfiguration: &datadog.SensitiveDataScannerRuleIncludedKeywordConfigurationArgs{
CharacterCount: pulumi.Int(0),
Keywords: pulumi.StringArray{
pulumi.String("string"),
},
},
IsEnabled: pulumi.Bool(false),
Name: pulumi.String("string"),
Namespaces: pulumi.StringArray{
pulumi.String("string"),
},
Pattern: pulumi.String("string"),
Priority: pulumi.Int(0),
StandardPatternId: pulumi.String("string"),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
TextReplacement: &datadog.SensitiveDataScannerRuleTextReplacementArgs{
Type: pulumi.String("string"),
NumberOfChars: pulumi.Int(0),
ReplacementString: pulumi.String("string"),
},
})
var sensitiveDataScannerRuleResource = new SensitiveDataScannerRule("sensitiveDataScannerRuleResource", SensitiveDataScannerRuleArgs.builder()
.groupId("string")
.description("string")
.excludedNamespaces("string")
.includedKeywordConfiguration(SensitiveDataScannerRuleIncludedKeywordConfigurationArgs.builder()
.characterCount(0)
.keywords("string")
.build())
.isEnabled(false)
.name("string")
.namespaces("string")
.pattern("string")
.priority(0)
.standardPatternId("string")
.tags("string")
.textReplacement(SensitiveDataScannerRuleTextReplacementArgs.builder()
.type("string")
.numberOfChars(0)
.replacementString("string")
.build())
.build());
sensitive_data_scanner_rule_resource = datadog.SensitiveDataScannerRule("sensitiveDataScannerRuleResource",
group_id="string",
description="string",
excluded_namespaces=["string"],
included_keyword_configuration={
"character_count": 0,
"keywords": ["string"],
},
is_enabled=False,
name="string",
namespaces=["string"],
pattern="string",
priority=0,
standard_pattern_id="string",
tags=["string"],
text_replacement={
"type": "string",
"number_of_chars": 0,
"replacement_string": "string",
})
const sensitiveDataScannerRuleResource = new datadog.SensitiveDataScannerRule("sensitiveDataScannerRuleResource", {
groupId: "string",
description: "string",
excludedNamespaces: ["string"],
includedKeywordConfiguration: {
characterCount: 0,
keywords: ["string"],
},
isEnabled: false,
name: "string",
namespaces: ["string"],
pattern: "string",
priority: 0,
standardPatternId: "string",
tags: ["string"],
textReplacement: {
type: "string",
numberOfChars: 0,
replacementString: "string",
},
});
type: datadog:SensitiveDataScannerRule
properties:
description: string
excludedNamespaces:
- string
groupId: string
includedKeywordConfiguration:
characterCount: 0
keywords:
- string
isEnabled: false
name: string
namespaces:
- string
pattern: string
priority: 0
standardPatternId: string
tags:
- string
textReplacement:
numberOfChars: 0
replacementString: string
type: string
SensitiveDataScannerRule 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 SensitiveDataScannerRule resource accepts the following input properties:
- Group
Id string - Id of the scanning group the rule belongs to.
- Description string
- Description of the rule.
- Excluded
Namespaces List<string> - Attributes excluded from the scan. If namespaces is provided, it has to be a sub-path of the namespaces array.
- Included
Keyword SensitiveConfiguration Data Scanner Rule Included Keyword Configuration - Object defining a set of keywords and a number of characters that help reduce noise. You can provide a list of keywords you would like to check within a defined proximity of the matching pattern. If any of the keywords are found within the proximity check then the match is kept. If none are found, the match is discarded. Setting the
create_before_destroy
lifecycle Meta-argument totrue
is highly recommended if modifying this field to avoid unexpectedly disabling Sensitive Data Scanner groups. - Is
Enabled bool - Whether or not the rule is enabled.
- Name string
- Name of the rule.
- Namespaces List<string>
- Attributes included in the scan. If namespaces is empty or missing, all attributes except excluded_namespaces are scanned. If both are missing the whole event is scanned.
- Pattern string
- Not included if there is a relationship to a standard pattern.
- Priority int
- Priority level of the rule (optional). Used to order sensitive data discovered in the sds summary page. It must be between 1 and 5 (1 being the most important).
- Standard
Pattern stringId - Id of the standard pattern the rule refers to. If provided, then pattern must not be provided.
- List<string>
- List of tags.
- Text
Replacement SensitiveData Scanner Rule Text Replacement - Object describing how the scanned event will be replaced. Defaults to
type: none
- Group
Id string - Id of the scanning group the rule belongs to.
- Description string
- Description of the rule.
- Excluded
Namespaces []string - Attributes excluded from the scan. If namespaces is provided, it has to be a sub-path of the namespaces array.
- Included
Keyword SensitiveConfiguration Data Scanner Rule Included Keyword Configuration Args - Object defining a set of keywords and a number of characters that help reduce noise. You can provide a list of keywords you would like to check within a defined proximity of the matching pattern. If any of the keywords are found within the proximity check then the match is kept. If none are found, the match is discarded. Setting the
create_before_destroy
lifecycle Meta-argument totrue
is highly recommended if modifying this field to avoid unexpectedly disabling Sensitive Data Scanner groups. - Is
Enabled bool - Whether or not the rule is enabled.
- Name string
- Name of the rule.
- Namespaces []string
- Attributes included in the scan. If namespaces is empty or missing, all attributes except excluded_namespaces are scanned. If both are missing the whole event is scanned.
- Pattern string
- Not included if there is a relationship to a standard pattern.
- Priority int
- Priority level of the rule (optional). Used to order sensitive data discovered in the sds summary page. It must be between 1 and 5 (1 being the most important).
- Standard
Pattern stringId - Id of the standard pattern the rule refers to. If provided, then pattern must not be provided.
- []string
- List of tags.
- Text
Replacement SensitiveData Scanner Rule Text Replacement Args - Object describing how the scanned event will be replaced. Defaults to
type: none
- group
Id String - Id of the scanning group the rule belongs to.
- description String
- Description of the rule.
- excluded
Namespaces List<String> - Attributes excluded from the scan. If namespaces is provided, it has to be a sub-path of the namespaces array.
- included
Keyword SensitiveConfiguration Data Scanner Rule Included Keyword Configuration - Object defining a set of keywords and a number of characters that help reduce noise. You can provide a list of keywords you would like to check within a defined proximity of the matching pattern. If any of the keywords are found within the proximity check then the match is kept. If none are found, the match is discarded. Setting the
create_before_destroy
lifecycle Meta-argument totrue
is highly recommended if modifying this field to avoid unexpectedly disabling Sensitive Data Scanner groups. - is
Enabled Boolean - Whether or not the rule is enabled.
- name String
- Name of the rule.
- namespaces List<String>
- Attributes included in the scan. If namespaces is empty or missing, all attributes except excluded_namespaces are scanned. If both are missing the whole event is scanned.
- pattern String
- Not included if there is a relationship to a standard pattern.
- priority Integer
- Priority level of the rule (optional). Used to order sensitive data discovered in the sds summary page. It must be between 1 and 5 (1 being the most important).
- standard
Pattern StringId - Id of the standard pattern the rule refers to. If provided, then pattern must not be provided.
- List<String>
- List of tags.
- text
Replacement SensitiveData Scanner Rule Text Replacement - Object describing how the scanned event will be replaced. Defaults to
type: none
- group
Id string - Id of the scanning group the rule belongs to.
- description string
- Description of the rule.
- excluded
Namespaces string[] - Attributes excluded from the scan. If namespaces is provided, it has to be a sub-path of the namespaces array.
- included
Keyword SensitiveConfiguration Data Scanner Rule Included Keyword Configuration - Object defining a set of keywords and a number of characters that help reduce noise. You can provide a list of keywords you would like to check within a defined proximity of the matching pattern. If any of the keywords are found within the proximity check then the match is kept. If none are found, the match is discarded. Setting the
create_before_destroy
lifecycle Meta-argument totrue
is highly recommended if modifying this field to avoid unexpectedly disabling Sensitive Data Scanner groups. - is
Enabled boolean - Whether or not the rule is enabled.
- name string
- Name of the rule.
- namespaces string[]
- Attributes included in the scan. If namespaces is empty or missing, all attributes except excluded_namespaces are scanned. If both are missing the whole event is scanned.
- pattern string
- Not included if there is a relationship to a standard pattern.
- priority number
- Priority level of the rule (optional). Used to order sensitive data discovered in the sds summary page. It must be between 1 and 5 (1 being the most important).
- standard
Pattern stringId - Id of the standard pattern the rule refers to. If provided, then pattern must not be provided.
- string[]
- List of tags.
- text
Replacement SensitiveData Scanner Rule Text Replacement - Object describing how the scanned event will be replaced. Defaults to
type: none
- group_
id str - Id of the scanning group the rule belongs to.
- description str
- Description of the rule.
- excluded_
namespaces Sequence[str] - Attributes excluded from the scan. If namespaces is provided, it has to be a sub-path of the namespaces array.
- included_
keyword_ Sensitiveconfiguration Data Scanner Rule Included Keyword Configuration Args - Object defining a set of keywords and a number of characters that help reduce noise. You can provide a list of keywords you would like to check within a defined proximity of the matching pattern. If any of the keywords are found within the proximity check then the match is kept. If none are found, the match is discarded. Setting the
create_before_destroy
lifecycle Meta-argument totrue
is highly recommended if modifying this field to avoid unexpectedly disabling Sensitive Data Scanner groups. - is_
enabled bool - Whether or not the rule is enabled.
- name str
- Name of the rule.
- namespaces Sequence[str]
- Attributes included in the scan. If namespaces is empty or missing, all attributes except excluded_namespaces are scanned. If both are missing the whole event is scanned.
- pattern str
- Not included if there is a relationship to a standard pattern.
- priority int
- Priority level of the rule (optional). Used to order sensitive data discovered in the sds summary page. It must be between 1 and 5 (1 being the most important).
- standard_
pattern_ strid - Id of the standard pattern the rule refers to. If provided, then pattern must not be provided.
- Sequence[str]
- List of tags.
- text_
replacement SensitiveData Scanner Rule Text Replacement Args - Object describing how the scanned event will be replaced. Defaults to
type: none
- group
Id String - Id of the scanning group the rule belongs to.
- description String
- Description of the rule.
- excluded
Namespaces List<String> - Attributes excluded from the scan. If namespaces is provided, it has to be a sub-path of the namespaces array.
- included
Keyword Property MapConfiguration - Object defining a set of keywords and a number of characters that help reduce noise. You can provide a list of keywords you would like to check within a defined proximity of the matching pattern. If any of the keywords are found within the proximity check then the match is kept. If none are found, the match is discarded. Setting the
create_before_destroy
lifecycle Meta-argument totrue
is highly recommended if modifying this field to avoid unexpectedly disabling Sensitive Data Scanner groups. - is
Enabled Boolean - Whether or not the rule is enabled.
- name String
- Name of the rule.
- namespaces List<String>
- Attributes included in the scan. If namespaces is empty or missing, all attributes except excluded_namespaces are scanned. If both are missing the whole event is scanned.
- pattern String
- Not included if there is a relationship to a standard pattern.
- priority Number
- Priority level of the rule (optional). Used to order sensitive data discovered in the sds summary page. It must be between 1 and 5 (1 being the most important).
- standard
Pattern StringId - Id of the standard pattern the rule refers to. If provided, then pattern must not be provided.
- List<String>
- List of tags.
- text
Replacement Property Map - Object describing how the scanned event will be replaced. Defaults to
type: none
Outputs
All input properties are implicitly available as output properties. Additionally, the SensitiveDataScannerRule 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 SensitiveDataScannerRule Resource
Get an existing SensitiveDataScannerRule 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?: SensitiveDataScannerRuleState, opts?: CustomResourceOptions): SensitiveDataScannerRule
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
excluded_namespaces: Optional[Sequence[str]] = None,
group_id: Optional[str] = None,
included_keyword_configuration: Optional[SensitiveDataScannerRuleIncludedKeywordConfigurationArgs] = None,
is_enabled: Optional[bool] = None,
name: Optional[str] = None,
namespaces: Optional[Sequence[str]] = None,
pattern: Optional[str] = None,
priority: Optional[int] = None,
standard_pattern_id: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
text_replacement: Optional[SensitiveDataScannerRuleTextReplacementArgs] = None) -> SensitiveDataScannerRule
func GetSensitiveDataScannerRule(ctx *Context, name string, id IDInput, state *SensitiveDataScannerRuleState, opts ...ResourceOption) (*SensitiveDataScannerRule, error)
public static SensitiveDataScannerRule Get(string name, Input<string> id, SensitiveDataScannerRuleState? state, CustomResourceOptions? opts = null)
public static SensitiveDataScannerRule get(String name, Output<String> id, SensitiveDataScannerRuleState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Description string
- Description of the rule.
- Excluded
Namespaces List<string> - Attributes excluded from the scan. If namespaces is provided, it has to be a sub-path of the namespaces array.
- Group
Id string - Id of the scanning group the rule belongs to.
- Included
Keyword SensitiveConfiguration Data Scanner Rule Included Keyword Configuration - Object defining a set of keywords and a number of characters that help reduce noise. You can provide a list of keywords you would like to check within a defined proximity of the matching pattern. If any of the keywords are found within the proximity check then the match is kept. If none are found, the match is discarded. Setting the
create_before_destroy
lifecycle Meta-argument totrue
is highly recommended if modifying this field to avoid unexpectedly disabling Sensitive Data Scanner groups. - Is
Enabled bool - Whether or not the rule is enabled.
- Name string
- Name of the rule.
- Namespaces List<string>
- Attributes included in the scan. If namespaces is empty or missing, all attributes except excluded_namespaces are scanned. If both are missing the whole event is scanned.
- Pattern string
- Not included if there is a relationship to a standard pattern.
- Priority int
- Priority level of the rule (optional). Used to order sensitive data discovered in the sds summary page. It must be between 1 and 5 (1 being the most important).
- Standard
Pattern stringId - Id of the standard pattern the rule refers to. If provided, then pattern must not be provided.
- List<string>
- List of tags.
- Text
Replacement SensitiveData Scanner Rule Text Replacement - Object describing how the scanned event will be replaced. Defaults to
type: none
- Description string
- Description of the rule.
- Excluded
Namespaces []string - Attributes excluded from the scan. If namespaces is provided, it has to be a sub-path of the namespaces array.
- Group
Id string - Id of the scanning group the rule belongs to.
- Included
Keyword SensitiveConfiguration Data Scanner Rule Included Keyword Configuration Args - Object defining a set of keywords and a number of characters that help reduce noise. You can provide a list of keywords you would like to check within a defined proximity of the matching pattern. If any of the keywords are found within the proximity check then the match is kept. If none are found, the match is discarded. Setting the
create_before_destroy
lifecycle Meta-argument totrue
is highly recommended if modifying this field to avoid unexpectedly disabling Sensitive Data Scanner groups. - Is
Enabled bool - Whether or not the rule is enabled.
- Name string
- Name of the rule.
- Namespaces []string
- Attributes included in the scan. If namespaces is empty or missing, all attributes except excluded_namespaces are scanned. If both are missing the whole event is scanned.
- Pattern string
- Not included if there is a relationship to a standard pattern.
- Priority int
- Priority level of the rule (optional). Used to order sensitive data discovered in the sds summary page. It must be between 1 and 5 (1 being the most important).
- Standard
Pattern stringId - Id of the standard pattern the rule refers to. If provided, then pattern must not be provided.
- []string
- List of tags.
- Text
Replacement SensitiveData Scanner Rule Text Replacement Args - Object describing how the scanned event will be replaced. Defaults to
type: none
- description String
- Description of the rule.
- excluded
Namespaces List<String> - Attributes excluded from the scan. If namespaces is provided, it has to be a sub-path of the namespaces array.
- group
Id String - Id of the scanning group the rule belongs to.
- included
Keyword SensitiveConfiguration Data Scanner Rule Included Keyword Configuration - Object defining a set of keywords and a number of characters that help reduce noise. You can provide a list of keywords you would like to check within a defined proximity of the matching pattern. If any of the keywords are found within the proximity check then the match is kept. If none are found, the match is discarded. Setting the
create_before_destroy
lifecycle Meta-argument totrue
is highly recommended if modifying this field to avoid unexpectedly disabling Sensitive Data Scanner groups. - is
Enabled Boolean - Whether or not the rule is enabled.
- name String
- Name of the rule.
- namespaces List<String>
- Attributes included in the scan. If namespaces is empty or missing, all attributes except excluded_namespaces are scanned. If both are missing the whole event is scanned.
- pattern String
- Not included if there is a relationship to a standard pattern.
- priority Integer
- Priority level of the rule (optional). Used to order sensitive data discovered in the sds summary page. It must be between 1 and 5 (1 being the most important).
- standard
Pattern StringId - Id of the standard pattern the rule refers to. If provided, then pattern must not be provided.
- List<String>
- List of tags.
- text
Replacement SensitiveData Scanner Rule Text Replacement - Object describing how the scanned event will be replaced. Defaults to
type: none
- description string
- Description of the rule.
- excluded
Namespaces string[] - Attributes excluded from the scan. If namespaces is provided, it has to be a sub-path of the namespaces array.
- group
Id string - Id of the scanning group the rule belongs to.
- included
Keyword SensitiveConfiguration Data Scanner Rule Included Keyword Configuration - Object defining a set of keywords and a number of characters that help reduce noise. You can provide a list of keywords you would like to check within a defined proximity of the matching pattern. If any of the keywords are found within the proximity check then the match is kept. If none are found, the match is discarded. Setting the
create_before_destroy
lifecycle Meta-argument totrue
is highly recommended if modifying this field to avoid unexpectedly disabling Sensitive Data Scanner groups. - is
Enabled boolean - Whether or not the rule is enabled.
- name string
- Name of the rule.
- namespaces string[]
- Attributes included in the scan. If namespaces is empty or missing, all attributes except excluded_namespaces are scanned. If both are missing the whole event is scanned.
- pattern string
- Not included if there is a relationship to a standard pattern.
- priority number
- Priority level of the rule (optional). Used to order sensitive data discovered in the sds summary page. It must be between 1 and 5 (1 being the most important).
- standard
Pattern stringId - Id of the standard pattern the rule refers to. If provided, then pattern must not be provided.
- string[]
- List of tags.
- text
Replacement SensitiveData Scanner Rule Text Replacement - Object describing how the scanned event will be replaced. Defaults to
type: none
- description str
- Description of the rule.
- excluded_
namespaces Sequence[str] - Attributes excluded from the scan. If namespaces is provided, it has to be a sub-path of the namespaces array.
- group_
id str - Id of the scanning group the rule belongs to.
- included_
keyword_ Sensitiveconfiguration Data Scanner Rule Included Keyword Configuration Args - Object defining a set of keywords and a number of characters that help reduce noise. You can provide a list of keywords you would like to check within a defined proximity of the matching pattern. If any of the keywords are found within the proximity check then the match is kept. If none are found, the match is discarded. Setting the
create_before_destroy
lifecycle Meta-argument totrue
is highly recommended if modifying this field to avoid unexpectedly disabling Sensitive Data Scanner groups. - is_
enabled bool - Whether or not the rule is enabled.
- name str
- Name of the rule.
- namespaces Sequence[str]
- Attributes included in the scan. If namespaces is empty or missing, all attributes except excluded_namespaces are scanned. If both are missing the whole event is scanned.
- pattern str
- Not included if there is a relationship to a standard pattern.
- priority int
- Priority level of the rule (optional). Used to order sensitive data discovered in the sds summary page. It must be between 1 and 5 (1 being the most important).
- standard_
pattern_ strid - Id of the standard pattern the rule refers to. If provided, then pattern must not be provided.
- Sequence[str]
- List of tags.
- text_
replacement SensitiveData Scanner Rule Text Replacement Args - Object describing how the scanned event will be replaced. Defaults to
type: none
- description String
- Description of the rule.
- excluded
Namespaces List<String> - Attributes excluded from the scan. If namespaces is provided, it has to be a sub-path of the namespaces array.
- group
Id String - Id of the scanning group the rule belongs to.
- included
Keyword Property MapConfiguration - Object defining a set of keywords and a number of characters that help reduce noise. You can provide a list of keywords you would like to check within a defined proximity of the matching pattern. If any of the keywords are found within the proximity check then the match is kept. If none are found, the match is discarded. Setting the
create_before_destroy
lifecycle Meta-argument totrue
is highly recommended if modifying this field to avoid unexpectedly disabling Sensitive Data Scanner groups. - is
Enabled Boolean - Whether or not the rule is enabled.
- name String
- Name of the rule.
- namespaces List<String>
- Attributes included in the scan. If namespaces is empty or missing, all attributes except excluded_namespaces are scanned. If both are missing the whole event is scanned.
- pattern String
- Not included if there is a relationship to a standard pattern.
- priority Number
- Priority level of the rule (optional). Used to order sensitive data discovered in the sds summary page. It must be between 1 and 5 (1 being the most important).
- standard
Pattern StringId - Id of the standard pattern the rule refers to. If provided, then pattern must not be provided.
- List<String>
- List of tags.
- text
Replacement Property Map - Object describing how the scanned event will be replaced. Defaults to
type: none
Supporting Types
SensitiveDataScannerRuleIncludedKeywordConfiguration, SensitiveDataScannerRuleIncludedKeywordConfigurationArgs
- Character
Count int - Number of characters before the match to find a keyword validating the match. It must be between 1 and 50 (inclusive).
- Keywords List<string>
- Keyword list that is checked during scanning in order to validate a match. The number of keywords in the list must be lower than or equal to 30.
- Character
Count int - Number of characters before the match to find a keyword validating the match. It must be between 1 and 50 (inclusive).
- Keywords []string
- Keyword list that is checked during scanning in order to validate a match. The number of keywords in the list must be lower than or equal to 30.
- character
Count Integer - Number of characters before the match to find a keyword validating the match. It must be between 1 and 50 (inclusive).
- keywords List<String>
- Keyword list that is checked during scanning in order to validate a match. The number of keywords in the list must be lower than or equal to 30.
- character
Count number - Number of characters before the match to find a keyword validating the match. It must be between 1 and 50 (inclusive).
- keywords string[]
- Keyword list that is checked during scanning in order to validate a match. The number of keywords in the list must be lower than or equal to 30.
- character_
count int - Number of characters before the match to find a keyword validating the match. It must be between 1 and 50 (inclusive).
- keywords Sequence[str]
- Keyword list that is checked during scanning in order to validate a match. The number of keywords in the list must be lower than or equal to 30.
- character
Count Number - Number of characters before the match to find a keyword validating the match. It must be between 1 and 50 (inclusive).
- keywords List<String>
- Keyword list that is checked during scanning in order to validate a match. The number of keywords in the list must be lower than or equal to 30.
SensitiveDataScannerRuleTextReplacement, SensitiveDataScannerRuleTextReplacementArgs
- Type string
- Type of the replacement text. None means no replacement. hash means the data will be stubbed. replacementstring means that one can chose a text to replace the data. partialreplacementfrombeginning allows a user to partially replace the data from the beginning, and partialreplacementfrom_end on the other hand, allows to replace data from the end. Valid values are
none
,hash
,replacement_string
,partial_replacement_from_beginning
,partial_replacement_from_end
. - Number
Of intChars - Required if type == 'partialreplacementfrombeginning' or 'partialreplacementfromend'. It must be > 0.
- Replacement
String string - Required if type == 'replacement_string'.
- Type string
- Type of the replacement text. None means no replacement. hash means the data will be stubbed. replacementstring means that one can chose a text to replace the data. partialreplacementfrombeginning allows a user to partially replace the data from the beginning, and partialreplacementfrom_end on the other hand, allows to replace data from the end. Valid values are
none
,hash
,replacement_string
,partial_replacement_from_beginning
,partial_replacement_from_end
. - Number
Of intChars - Required if type == 'partialreplacementfrombeginning' or 'partialreplacementfromend'. It must be > 0.
- Replacement
String string - Required if type == 'replacement_string'.
- type String
- Type of the replacement text. None means no replacement. hash means the data will be stubbed. replacementstring means that one can chose a text to replace the data. partialreplacementfrombeginning allows a user to partially replace the data from the beginning, and partialreplacementfrom_end on the other hand, allows to replace data from the end. Valid values are
none
,hash
,replacement_string
,partial_replacement_from_beginning
,partial_replacement_from_end
. - number
Of IntegerChars - Required if type == 'partialreplacementfrombeginning' or 'partialreplacementfromend'. It must be > 0.
- replacement
String String - Required if type == 'replacement_string'.
- type string
- Type of the replacement text. None means no replacement. hash means the data will be stubbed. replacementstring means that one can chose a text to replace the data. partialreplacementfrombeginning allows a user to partially replace the data from the beginning, and partialreplacementfrom_end on the other hand, allows to replace data from the end. Valid values are
none
,hash
,replacement_string
,partial_replacement_from_beginning
,partial_replacement_from_end
. - number
Of numberChars - Required if type == 'partialreplacementfrombeginning' or 'partialreplacementfromend'. It must be > 0.
- replacement
String string - Required if type == 'replacement_string'.
- type str
- Type of the replacement text. None means no replacement. hash means the data will be stubbed. replacementstring means that one can chose a text to replace the data. partialreplacementfrombeginning allows a user to partially replace the data from the beginning, and partialreplacementfrom_end on the other hand, allows to replace data from the end. Valid values are
none
,hash
,replacement_string
,partial_replacement_from_beginning
,partial_replacement_from_end
. - number_
of_ intchars - Required if type == 'partialreplacementfrombeginning' or 'partialreplacementfromend'. It must be > 0.
- replacement_
string str - Required if type == 'replacement_string'.
- type String
- Type of the replacement text. None means no replacement. hash means the data will be stubbed. replacementstring means that one can chose a text to replace the data. partialreplacementfrombeginning allows a user to partially replace the data from the beginning, and partialreplacementfrom_end on the other hand, allows to replace data from the end. Valid values are
none
,hash
,replacement_string
,partial_replacement_from_beginning
,partial_replacement_from_end
. - number
Of NumberChars - Required if type == 'partialreplacementfrombeginning' or 'partialreplacementfromend'. It must be > 0.
- replacement
String String - Required if type == 'replacement_string'.
Import
$ pulumi import datadog:index/sensitiveDataScannerRule:SensitiveDataScannerRule new_list "<rule_id>"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Datadog pulumi/pulumi-datadog
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
datadog
Terraform Provider.