# DataConverterProps

Properties for creating data converter processors.

Extends: DataConverterProps
Extends: BaseProcessorProps
Used as props by: DataConverterProcessor

- Source: [`aws-logs/lib/transformer.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-logs/lib/transformer.ts#L658)
- Type last changed: v2.207.0 · 24 Jul 2025

## 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 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

- `dateTimeConverterOptions`: [DateTimeConverterProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DateTimeConverterProperty.html) — Options for datetime conversion.

  **Default:** No date time converter processor is created if not set

  Required when type is DATETIME_CONVERTER.

- `type`: [DataConverterType](/cdk/api/v2/docs/aws-cdk-lib.aws_logs.DataConverterType.html) (required) — The type of data conversion operation.

- `typeConverterOptions`: [TypeConverterProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_logs.TypeConverterProperty.html) — Options for type conversion.

  **Default:** No type convertor processor is created if not set

  Required when type is TYPE_CONVERTER.
