Class CfnDataProtectionSettings.CustomPatternProperty
The pattern configuration for redacting custom data types in session.
Inheritance
Namespace: Amazon.CDK.AwsWorkspacesweb
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CustomPatternProperty : Object, CfnDataProtectionSettings.ICustomPatternProperty
Syntax (vb)
Public Class CustomPatternProperty
Inherits Object
Implements CfnDataProtectionSettings.ICustomPatternProperty
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 customPatternProperty = new CustomPatternProperty {
PatternName = "patternName",
PatternRegex = "patternRegex",
// the properties below are optional
KeywordRegex = "keywordRegex",
PatternDescription = "patternDescription"
};
Synopsis
Constructors
CustomPatternProperty() |
Properties
KeywordRegex | The keyword regex for the customer pattern. |
PatternDescription | The pattern description for the customer pattern. |
PatternName | The pattern name for the custom pattern. |
PatternRegex | The pattern regex for the customer pattern. |
Constructors
CustomPatternProperty()
public CustomPatternProperty()
Properties
KeywordRegex
The keyword regex for the customer pattern.
public string KeywordRegex { get; set; }
Property Value
System.String
Remarks
After there is a match to the pattern regex, the keyword regex is used to search within the proximity of the match. If there is a keyword match, then the match is confirmed. If no keyword regex is provided, the pattern regex match will automatically be confirmed. The format must follow JavaScript regex format. The pattern must be enclosed between slashes, and can have flags behind the second slash. For example, “/ab+c/gi”
PatternDescription
The pattern description for the customer pattern.
public string PatternDescription { get; set; }
Property Value
System.String
Remarks
PatternName
The pattern name for the custom pattern.
public string PatternName { get; set; }
Property Value
System.String
Remarks
PatternRegex
The pattern regex for the customer pattern.
public string PatternRegex { get; set; }
Property Value
System.String
Remarks
The format must follow JavaScript regex format. The pattern must be enclosed between slashes, and can have flags behind the second slash. For example: “/ab+c/gi”.