interface StringMutatorProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Logs.StringMutatorProps |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awslogs#StringMutatorProps |
![]() | software.amazon.awscdk.services.logs.StringMutatorProps |
![]() | aws_cdk.aws_logs.StringMutatorProps |
![]() | aws-cdk-lib » aws_logs » StringMutatorProps |
Properties for creating string mutator processors.
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 stringMutatorProps: logs.StringMutatorProps = {
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'],
};
Properties
Name | Type | Description |
---|---|---|
type | String | The type of string mutation operation. |
lower | string[] | Keys for strings to convert to lowercase. |
split | Split | Options for string splitting. |
substitute | Substitute | Options for string substitution. |
trim | string[] | Keys for strings to trim. |
upper | string[] | Keys for strings to convert to uppercase. |
type
Type:
String
The type of string mutation operation.
lowerCaseKeys?
Type:
string[]
(optional, default: No lowercase processor is created if props not set)
Keys for strings to convert to lowercase.
Required when type is LOWER_CASE.
splitOptions?
Type:
Split
(optional, default: No string splitting processor is created if props not set)
Options for string splitting.
Required when type is SPLIT.
substituteOptions?
Type:
Substitute
(optional, default: No string substitution processor is created if props not set)
Options for string substitution.
Required when type is SUBSTITUTE.
trimKeys?
Type:
string[]
(optional, default: No trim processor is created if props not set)
Keys for strings to trim.
Required when type is TRIM.
upperCaseKeys?
Type:
string[]
(optional, default: No uppercase processor is created if props not set)
Keys for strings to convert to uppercase.
Required when type is UPPER_CASE.