# VendedLogParser

Parser processor for AWS vended logs.

Implements: [IProcessor](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.IProcessor.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#L913)
- 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 vendedLogParser = new logs.VendedLogParser({
  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 = logs.VendedLogParser(
    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.*;

VendedLogParser vendedLogParser = VendedLogParser.Builder.create()
        .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 vendedLogParser = new VendedLogParser(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"

vendedLogParser := awscdk.Aws_logs.NewVendedLogParser(&VendedLogParserProps{
	LogType: awscdk.*Aws_logs.VendedLogType_CLOUDFRONT,

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

## Initializer

TypeScript:

```ts
new VendedLogParser(props: VendedLogParserProps)
```

Python:

```python
VendedLogParser(props: VendedLogParserProps)
```

Java:

```java
new VendedLogParser(VendedLogParserProps props)
```

C# / .NET:

```csharp
new VendedLogParser(VendedLogParserProps props)
```

Golang:

```go
NewVendedLogParser(Props VendedLogParserProps)
```

## Properties

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