Class: Aws::WorkSpacesWeb::Types::CustomPattern

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-workspacesweb/types.rb

Overview

The pattern configuration for redacting custom data types in session.

Constant Summary collapse

SENSITIVE =
[:keyword_regex, :pattern_description, :pattern_name, :pattern_regex]

Instance Attribute Summary collapse

Instance Attribute Details

#keyword_regexString

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”

Returns:

  • (String)


1151
1152
1153
1154
1155
1156
1157
1158
# File 'lib/aws-sdk-workspacesweb/types.rb', line 1151

class CustomPattern < Struct.new(
  :keyword_regex,
  :pattern_description,
  :pattern_name,
  :pattern_regex)
  SENSITIVE = [:keyword_regex, :pattern_description, :pattern_name, :pattern_regex]
  include Aws::Structure
end

#pattern_descriptionString

The pattern description for the customer pattern.

Returns:

  • (String)


1151
1152
1153
1154
1155
1156
1157
1158
# File 'lib/aws-sdk-workspacesweb/types.rb', line 1151

class CustomPattern < Struct.new(
  :keyword_regex,
  :pattern_description,
  :pattern_name,
  :pattern_regex)
  SENSITIVE = [:keyword_regex, :pattern_description, :pattern_name, :pattern_regex]
  include Aws::Structure
end

#pattern_nameString

The pattern name for the custom pattern.

Returns:

  • (String)


1151
1152
1153
1154
1155
1156
1157
1158
# File 'lib/aws-sdk-workspacesweb/types.rb', line 1151

class CustomPattern < Struct.new(
  :keyword_regex,
  :pattern_description,
  :pattern_name,
  :pattern_regex)
  SENSITIVE = [:keyword_regex, :pattern_description, :pattern_name, :pattern_regex]
  include Aws::Structure
end

#pattern_regexString

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”.

Returns:

  • (String)


1151
1152
1153
1154
1155
1156
1157
1158
# File 'lib/aws-sdk-workspacesweb/types.rb', line 1151

class CustomPattern < Struct.new(
  :keyword_regex,
  :pattern_description,
  :pattern_name,
  :pattern_regex)
  SENSITIVE = [:keyword_regex, :pattern_description, :pattern_name, :pattern_regex]
  include Aws::Structure
end