interface SubstituteStringEntryProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Logs.Mixins.CfnTransformerPropsMixin.SubstituteStringEntryProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awslogs/mixins#CfnTransformerPropsMixin_SubstituteStringEntryProperty |
Java | software.amazon.awscdk.mixins.preview.services.logs.mixins.CfnTransformerPropsMixin.SubstituteStringEntryProperty |
Python | aws_cdk.mixins_preview.aws_logs.mixins.CfnTransformerPropsMixin.SubstituteStringEntryProperty |
TypeScript | @aws-cdk/mixins-preview » aws_logs » mixins » CfnTransformerPropsMixin » 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 { mixins as logs_mixins } from '@aws-cdk/mixins-preview/aws-logs';
const substituteStringEntryProperty: logs_mixins.CfnTransformerPropsMixin.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
(optional)
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
(optional)
The key to modify.
to?
Type:
string
(optional)
The string to be substituted for each match of from.

.NET
Go
Java
Python
TypeScript