Skip to content
v2.278.0

EventLogConfigProperty Struct ​

Describes the CloudWatch Logs configuration for the Event API.

Example ​

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
# 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
// 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();
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"
};
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 ​

cloudWatchLogsRoleArnstringcloud_watch_logs_role_arnstrcloudWatchLogsRoleArnStringCloudWatchLogsRoleArnstringCloudWatchLogsRoleArn*string required #
The IAM service role that AWS AppSync assumes to publish CloudWatch Logs in your account.
logLevelstringlog_levelstrlogLevelStringLogLevelstringLogLevel*string required #
The type of information to log for the Event API.