Class CfnDataProtectionSettings.InlineRedactionPatternProperty
The set of patterns that determine the data types redacted in session.
Inheritance
Namespace: Amazon.CDK.AwsWorkspacesweb
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class InlineRedactionPatternProperty : Object, CfnDataProtectionSettings.IInlineRedactionPatternProperty
Syntax (vb)
Public Class InlineRedactionPatternProperty
Inherits Object
Implements CfnDataProtectionSettings.IInlineRedactionPatternProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Aws_workspacesweb;
var inlineRedactionPatternProperty = new InlineRedactionPatternProperty {
RedactionPlaceHolder = new RedactionPlaceHolderProperty {
RedactionPlaceHolderType = "redactionPlaceHolderType",
// the properties below are optional
RedactionPlaceHolderText = "redactionPlaceHolderText"
},
// the properties below are optional
BuiltInPatternId = "builtInPatternId",
ConfidenceLevel = 123,
CustomPattern = new CustomPatternProperty {
PatternName = "patternName",
PatternRegex = "patternRegex",
// the properties below are optional
KeywordRegex = "keywordRegex",
PatternDescription = "patternDescription"
},
EnforcedUrls = new [] { "enforcedUrls" },
ExemptUrls = new [] { "exemptUrls" }
};
Synopsis
Constructors
InlineRedactionPatternProperty() |
Properties
BuiltInPatternId | The built-in pattern from the list of preconfigured patterns. |
ConfidenceLevel | The confidence level for inline redaction pattern. |
CustomPattern | The configuration for a custom pattern. |
EnforcedUrls | The enforced URL configuration for the inline redaction pattern. |
ExemptUrls | The exempt URL configuration for the inline redaction pattern. |
RedactionPlaceHolder | The redaction placeholder that will replace the redacted text in session for the inline redaction pattern. |
Constructors
InlineRedactionPatternProperty()
public InlineRedactionPatternProperty()
Properties
BuiltInPatternId
The built-in pattern from the list of preconfigured patterns.
public string BuiltInPatternId { get; set; }
Property Value
System.String
Remarks
Either a customPattern or builtInPatternId is required. To view the entire list of data types and their corresponding built-in pattern IDs, see Base inline redaction .
ConfidenceLevel
The confidence level for inline redaction pattern.
public Nullable<double> ConfidenceLevel { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
This indicates the certainty of data type matches in the redaction process. Confidence level 3 means high confidence, and requires a formatted text pattern match in order for content to be redacted. Confidence level 2 means medium confidence, and redaction considers both formatted and unformatted text, and adds keyword associate to the logic. Confidence level 1 means low confidence, and redaction is enforced for both formatted pattern + unformatted pattern without keyword. This overrides the global confidence level.
CustomPattern
The configuration for a custom pattern.
public object CustomPattern { get; set; }
Property Value
System.Object
Remarks
Either a customPattern or builtInPatternId is required.
EnforcedUrls
The enforced URL configuration for the inline redaction pattern.
public string[] EnforcedUrls { get; set; }
Property Value
System.String[]
Remarks
This will override the global enforced URL configuration.
ExemptUrls
The exempt URL configuration for the inline redaction pattern.
public string[] ExemptUrls { get; set; }
Property Value
System.String[]
Remarks
This will override the global exempt URL configuration for the inline redaction pattern.
RedactionPlaceHolder
The redaction placeholder that will replace the redacted text in session for the inline redaction pattern.
public object RedactionPlaceHolder { get; set; }
Property Value
System.Object