1414
1515
1616if TYPE_CHECKING :
17+ from datadog_api_client .v2 .model .sensitive_data_scanner_included_keyword_configuration import (
18+ SensitiveDataScannerIncludedKeywordConfiguration ,
19+ )
1720 from datadog_api_client .v2 .model .sensitive_data_scanner_text_replacement import SensitiveDataScannerTextReplacement
1821
1922
@@ -27,13 +30,17 @@ class SensitiveDataScannerRuleAttributes(ModelNormal):
2730
2831 @cached_property
2932 def openapi_types (_ ):
33+ from datadog_api_client .v2 .model .sensitive_data_scanner_included_keyword_configuration import (
34+ SensitiveDataScannerIncludedKeywordConfiguration ,
35+ )
3036 from datadog_api_client .v2 .model .sensitive_data_scanner_text_replacement import (
3137 SensitiveDataScannerTextReplacement ,
3238 )
3339
3440 return {
3541 "description" : (str ,),
3642 "excluded_namespaces" : ([str ],),
43+ "included_keyword_configuration" : (SensitiveDataScannerIncludedKeywordConfiguration ,),
3744 "is_enabled" : (bool ,),
3845 "name" : (str ,),
3946 "namespaces" : ([str ],),
@@ -46,6 +53,7 @@ def openapi_types(_):
4653 attribute_map = {
4754 "description" : "description" ,
4855 "excluded_namespaces" : "excluded_namespaces" ,
56+ "included_keyword_configuration" : "included_keyword_configuration" ,
4957 "is_enabled" : "is_enabled" ,
5058 "name" : "name" ,
5159 "namespaces" : "namespaces" ,
@@ -59,6 +67,7 @@ def __init__(
5967 self_ ,
6068 description : Union [str , UnsetType ] = unset ,
6169 excluded_namespaces : Union [List [str ], UnsetType ] = unset ,
70+ included_keyword_configuration : Union [SensitiveDataScannerIncludedKeywordConfiguration , UnsetType ] = unset ,
6271 is_enabled : Union [bool , UnsetType ] = unset ,
6372 name : Union [str , UnsetType ] = unset ,
6473 namespaces : Union [List [str ], UnsetType ] = unset ,
@@ -77,6 +86,12 @@ def __init__(
7786 :param excluded_namespaces: Attributes excluded from the scan. If namespaces is provided, it has to be a sub-path of the namespaces array.
7887 :type excluded_namespaces: [str], optional
7988
89+ :param included_keyword_configuration: Object defining a set of keywords and a number of characters that help reduce noise.
90+ You can provide a list of keywords you would like to check within a defined proximity of the matching pattern.
91+ If any of the keywords are found within the proximity check, the match is kept.
92+ If none are found, the match is discarded.
93+ :type included_keyword_configuration: SensitiveDataScannerIncludedKeywordConfiguration, optional
94+
8095 :param is_enabled: Whether or not the rule is enabled.
8196 :type is_enabled: bool, optional
8297
@@ -103,6 +118,8 @@ def __init__(
103118 kwargs ["description" ] = description
104119 if excluded_namespaces is not unset :
105120 kwargs ["excluded_namespaces" ] = excluded_namespaces
121+ if included_keyword_configuration is not unset :
122+ kwargs ["included_keyword_configuration" ] = included_keyword_configuration
106123 if is_enabled is not unset :
107124 kwargs ["is_enabled" ] = is_enabled
108125 if name is not unset :
0 commit comments