interface CfnTransformerMixinProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Logs.Mixins.CfnTransformerMixinProps |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awslogs/mixins#CfnTransformerMixinProps |
Java | software.amazon.awscdk.mixins.preview.services.logs.mixins.CfnTransformerMixinProps |
Python | aws_cdk.mixins_preview.aws_logs.mixins.CfnTransformerMixinProps |
TypeScript | @aws-cdk/mixins-preview » aws_logs » mixins » CfnTransformerMixinProps |
Properties for CfnTransformerPropsMixin.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-transformer.html
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 cfnTransformerMixinProps: logs_mixins.CfnTransformerMixinProps = {
logGroupIdentifier: 'logGroupIdentifier',
transformerConfig: [{
addKeys: {
entries: [{
key: 'key',
overwriteIfExists: false,
value: 'value',
}],
},
copyValue: {
entries: [{
overwriteIfExists: false,
source: 'source',
target: 'target',
}],
},
csv: {
columns: ['columns'],
delimiter: 'delimiter',
quoteCharacter: 'quoteCharacter',
source: 'source',
},
dateTimeConverter: {
locale: 'locale',
matchPatterns: ['matchPatterns'],
source: 'source',
sourceTimezone: 'sourceTimezone',
target: 'target',
targetFormat: 'targetFormat',
targetTimezone: 'targetTimezone',
},
deleteKeys: {
withKeys: ['withKeys'],
},
grok: {
match: 'match',
source: 'source',
},
listToMap: {
flatten: false,
flattenedElement: 'flattenedElement',
key: 'key',
source: 'source',
target: 'target',
valueKey: 'valueKey',
},
lowerCaseString: {
withKeys: ['withKeys'],
},
moveKeys: {
entries: [{
overwriteIfExists: false,
source: 'source',
target: 'target',
}],
},
parseCloudfront: {
source: 'source',
},
parseJson: {
destination: 'destination',
source: 'source',
},
parseKeyValue: {
destination: 'destination',
fieldDelimiter: 'fieldDelimiter',
keyPrefix: 'keyPrefix',
keyValueDelimiter: 'keyValueDelimiter',
nonMatchValue: 'nonMatchValue',
overwriteIfExists: false,
source: 'source',
},
parsePostgres: {
source: 'source',
},
parseRoute53: {
source: 'source',
},
parseToOcsf: {
eventSource: 'eventSource',
mappingVersion: 'mappingVersion',
ocsfVersion: 'ocsfVersion',
source: 'source',
},
parseVpc: {
source: 'source',
},
parseWaf: {
source: 'source',
},
renameKeys: {
entries: [{
key: 'key',
overwriteIfExists: false,
renameTo: 'renameTo',
}],
},
splitString: {
entries: [{
delimiter: 'delimiter',
source: 'source',
}],
},
substituteString: {
entries: [{
from: 'from',
source: 'source',
to: 'to',
}],
},
trimString: {
withKeys: ['withKeys'],
},
typeConverter: {
entries: [{
key: 'key',
type: 'type',
}],
},
upperCaseString: {
withKeys: ['withKeys'],
},
}],
};
Properties
| Name | Type | Description |
|---|---|---|
| log | string | Specify either the name or ARN of the log group to create the transformer for. |
| transformer | IResolvable | (IResolvable | Processor)[] | This structure is an array that contains the configuration of this log transformer. |
logGroupIdentifier?
Type:
string
(optional)
Specify either the name or ARN of the log group to create the transformer for.
transformerConfig?
Type:
IResolvable | (IResolvable | Processor)[]
(optional)
This structure is an array that contains the configuration of this log transformer.
A log transformer is an array of processors, where each processor applies one type of transformation to the log events that are ingested.

.NET
Go
Java
Python
TypeScript