# EventLogConfigProperty

Describes the CloudWatch Logs configuration for the Event API.

- Source: Generated at build time
- Type last changed: v2.166.0 · 7 Nov 2024

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_appsync as appsync } from 'aws-cdk-lib';
const eventLogConfigProperty: appsync.CfnApi.EventLogConfigProperty = {
  cloudWatchLogsRoleArn: 'cloudWatchLogsRoleArn',
  logLevel: 'logLevel',
};
```

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_appsync as appsync

event_log_config_property = appsync.CfnApi.EventLogConfigProperty(
    cloud_watch_logs_role_arn="cloudWatchLogsRoleArn",
    log_level="logLevel"
)
```

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.appsync.*;

EventLogConfigProperty eventLogConfigProperty = EventLogConfigProperty.builder()
        .cloudWatchLogsRoleArn("cloudWatchLogsRoleArn")
        .logLevel("logLevel")
        .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.AppSync;

var eventLogConfigProperty = new EventLogConfigProperty {
    CloudWatchLogsRoleArn = "cloudWatchLogsRoleArn",
    LogLevel = "logLevel"
};
```

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"

eventLogConfigProperty := &EventLogConfigProperty{
	CloudWatchLogsRoleArn: jsii.String("cloudWatchLogsRoleArn"),
	LogLevel: jsii.String("logLevel"),
}
```

## Properties

- `cloudWatchLogsRoleArn`: string (required) — The IAM service role that AWS AppSync assumes to publish CloudWatch Logs in your account.

- `logLevel`: string (required) — The type of information to log for the Event API.
