interface SubstituteStringEntryProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Logs.CfnTransformer.SubstituteStringEntryProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awslogs#CfnTransformer_SubstituteStringEntryProperty |
![]() | software.amazon.awscdk.services.logs.CfnTransformer.SubstituteStringEntryProperty |
![]() | aws_cdk.aws_logs.CfnTransformer.SubstituteStringEntryProperty |
![]() | aws-cdk-lib » aws_logs » CfnTransformer » SubstituteStringEntryProperty |
This object defines one log field key that will be replaced using the substituteString processor.
Example
// 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.CfnTransformer.SubstituteStringEntryProperty = {
from: 'from',
source: 'source',
to: 'to',
};
Properties
Name | Type | Description |
---|---|---|
from | string | The regular expression string to be replaced. |
source | string | The key to modify. |
to | string | The string to be substituted for each match of from . |
from
Type:
string
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.
source
Type:
string
The key to modify.
to
Type:
string
The string to be substituted for each match of from
.