class StringMutatorProcessor
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Logs.StringMutatorProcessor |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awslogs#StringMutatorProcessor |
![]() | software.amazon.awscdk.services.logs.StringMutatorProcessor |
![]() | aws_cdk.aws_logs.StringMutatorProcessor |
![]() | aws-cdk-lib » aws_logs » StringMutatorProcessor |
Implements
IProcessor
Processor for string mutation operations.
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 stringMutatorProcessor = new logs.StringMutatorProcessor({
type: logs.StringMutatorType.LOWER_CASE,
// the properties below are optional
lowerCaseKeys: ['lowerCaseKeys'],
splitOptions: {
entries: [{
delimiter: logs.DelimiterCharacter.COMMA,
source: 'source',
}],
},
substituteOptions: {
entries: [{
from: 'from',
source: 'source',
to: 'to',
}],
},
trimKeys: ['trimKeys'],
upperCaseKeys: ['upperCaseKeys'],
});
Initializer
new StringMutatorProcessor(props: StringMutatorProps)
Parameters
- props
String
Mutator Props
Creates a new string mutator processor.
Properties
Name | Type | Description |
---|---|---|
type | String | The type of string mutation operation. |
type
Type:
String
The type of string mutation operation.