Skip to content
v2.274.0

SubstituteStringEntryProperty Struct ​

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

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_logs as logs } from 'aws-cdk-lib';
const substituteStringEntryProperty: logs.SubstituteStringEntryProperty = {
  from: 'from',
  source: 'source',
  to: 'to',
};

Properties ​

fromstringfromstrfromStringFromstringFrom*stringrequired#
The regular expression string to be replaced.
sourcestringsourcestrsourceStringSourcestringSource*stringrequired#
The key to modify.
tostringtostrtoStringTostringTo*stringrequired#
The string to be substituted for each match of from.