Class: Aws::CloudWatchLogs::Types::SubstituteStringEntry

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

Overview

This object defines one log field key that will be replaced using the

substituteString][1

processor.

[1]: docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation.html#CloudWatch-Logs-Transformation-substituteString

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#fromString

The regular expression string to be replaced. Special regex characters such as [ and ] must be escaped using \\ when using double quotes and with \ when using single quotes. For more information, see [ Class Pattern] on the Oracle web site.

[1]: docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/regex/Pattern.html

Returns:

  • (String)


6707
6708
6709
6710
6711
6712
6713
# File 'lib/aws-sdk-cloudwatchlogs/types.rb', line 6707

class SubstituteStringEntry < Struct.new(
  :source,
  :from,
  :to)
  SENSITIVE = []
  include Aws::Structure
end

#sourceString

The key to modify

Returns:

  • (String)


6707
6708
6709
6710
6711
6712
6713
# File 'lib/aws-sdk-cloudwatchlogs/types.rb', line 6707

class SubstituteStringEntry < Struct.new(
  :source,
  :from,
  :to)
  SENSITIVE = []
  include Aws::Structure
end

#toString

The string to be substituted for each match of ‘from`

Returns:

  • (String)


6707
6708
6709
6710
6711
6712
6713
# File 'lib/aws-sdk-cloudwatchlogs/types.rb', line 6707

class SubstituteStringEntry < Struct.new(
  :source,
  :from,
  :to)
  SENSITIVE = []
  include Aws::Structure
end