Skip to content
v2.273.0

SubstituteStringProperty Struct ​

This processor matches a key's value against a regular expression and replaces all matches with a replacement string.

For more information about this processor including examples, see substituteString in the CloudWatch Logs User Guide.

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 substituteStringProperty: logs.SubstituteStringProperty = {
  entries: [{
    from: 'from',
    source: 'source',
    to: 'to',
  }],
};

Properties ​

An array of objects, where each object contains information about one key to match and replace.