StringMutatorProps Struct
Properties for creating string mutator processors.
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 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
lowerCaseKeysstring[]lower_case_keystyping.List[str]lowerCaseKeysList<String>LowerCaseKeysstring[]LowerCaseKeys*[]*string= No lowercase processor is create…#Keys for strings to convert to lowercase.
Required when type is LOWER_CASE.
default
Default: No lowercase processor is created if props not set
splitOptionsSplitStringPropertysplit_optionsSplitStringPropertysplitOptionsSplitStringPropertySplitOptionsSplitStringPropertySplitOptionsSplitStringProperty= No string splitting processor is…#Options for string splitting.
Required when type is SPLIT.
default
Default: No string splitting processor is created if props not set
substituteOptionsSubstituteStringPropertysubstitute_optionsSubstituteStringPropertysubstituteOptionsSubstituteStringPropertySubstituteOptionsSubstituteStringPropertySubstituteOptionsSubstituteStringProperty= No string substitution processor…#Options for string substitution.
Required when type is SUBSTITUTE.
default
Default: No string substitution processor is created if props not set
trimKeysstring[]trim_keystyping.List[str]trimKeysList<String>TrimKeysstring[]TrimKeys*[]*string= No trim processor is created if …#Keys for strings to trim.
Required when type is TRIM.
default
Default: No trim processor is created if props not set
typeStringMutatorTypetypeStringMutatorTypetypeStringMutatorTypeTypeStringMutatorTypeTypeStringMutatorTyperequired#The type of string mutation operation.
upperCaseKeysstring[]upper_case_keystyping.List[str]upperCaseKeysList<String>UpperCaseKeysstring[]UpperCaseKeys*[]*string= No uppercase processor is create…#Keys for strings to convert to uppercase.
Required when type is UPPER_CASE.
default
Default: No uppercase processor is created if props not set