# VendedLogParserProps

Properties for creating AWS vended log parsers.

Extends: [BaseProcessorProps](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.BaseProcessorProps.html)
Used as props by: [VendedLogParser](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.VendedLogParser.html)

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

## Example

TypeScript:

```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 vendedLogParserProps: logs.VendedLogParserProps = {
  logType: logs.VendedLogType.CLOUDFRONT,

  // the properties below are optional
  source: 'source',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_logs as logs

vended_log_parser_props = logs.VendedLogParserProps(
    log_type=logs.VendedLogType.CLOUDFRONT,

    # the properties below are optional
    source="source"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.logs.*;

VendedLogParserProps vendedLogParserProps = VendedLogParserProps.builder()
        .logType(VendedLogType.CLOUDFRONT)

        // the properties below are optional
        .source("source")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Logs;

var vendedLogParserProps = new VendedLogParserProps {
    LogType = VendedLogType.CLOUDFRONT,

    // the properties below are optional
    Source = "source"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

vendedLogParserProps := &VendedLogParserProps{
	LogType: awscdk.Aws_logs.VendedLogType_CLOUDFRONT,

	// the properties below are optional
	Source: jsii.String("source"),
}
```

## Properties

- `logType`: [VendedLogType](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.VendedLogType.html) (required) — The type of AWS vended log to parse.

- `source`: string — Source field to parse.
