interface DataConverterProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Logs.DataConverterProps |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awslogs#DataConverterProps |
![]() | software.amazon.awscdk.services.logs.DataConverterProps |
![]() | aws_cdk.aws_logs.DataConverterProps |
![]() | aws-cdk-lib » aws_logs » DataConverterProps |
Properties for creating data converter 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 dataConverterProps: logs.DataConverterProps = {
type: logs.DataConverterType.TYPE_CONVERTER,
// the properties below are optional
dateTimeConverterOptions: {
locale: 'locale',
matchPatterns: ['matchPatterns'],
source: 'source',
target: 'target',
// the properties below are optional
sourceTimezone: 'sourceTimezone',
targetFormat: 'targetFormat',
targetTimezone: 'targetTimezone',
},
typeConverterOptions: {
entries: [{
key: 'key',
type: logs.TypeConverterType.BOOLEAN,
}],
},
};
Properties
Name | Type | Description |
---|---|---|
type | Data | The type of data conversion operation. |
date | Date | Options for datetime conversion. |
type | Type | Options for type conversion. |
type
Type:
Data
The type of data conversion operation.
dateTimeConverterOptions?
Type:
Date
(optional, default: No date time converter processor is created if not set)
Options for datetime conversion.
Required when type is DATETIME_CONVERTER.
typeConverterOptions?
Type:
Type
(optional, default: No type convertor processor is created if not set)
Options for type conversion.
Required when type is TYPE_CONVERTER.