CustomPattern - Amazon WorkSpaces Secure Browser

CustomPattern

The pattern configuration for redacting custom data types in session.

Contents

patternName

The pattern name for the custom pattern.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 20.

Pattern: ^[_\-\d\w]+$

Required: Yes

patternRegex

The pattern regex for the customer pattern. 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”.

Type: String

Length Constraints: Minimum length of 0. Maximum length of 300.

Pattern: ^\/((?:[^\n])+)\/([gimsuyvd]{0,8})$

Required: Yes

keywordRegex

The keyword regex for the customer pattern. 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”

Type: String

Length Constraints: Minimum length of 0. Maximum length of 300.

Pattern: ^\/((?:[^\n])+)\/([gimsuyvd]{0,8})$

Required: No

patternDescription

The pattern description for the customer pattern.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 256.

Pattern: ^[ _\-\d\w]+$

Required: No

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: