interface LogConfig
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.AppSync.LogConfig |
Java | software.amazon.awscdk.services.appsync.LogConfig |
Python | aws_cdk.aws_appsync.LogConfig |
TypeScript (source) | @aws-cdk/aws-appsync » LogConfig |
Logging configuration for AppSync.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as appsync from '@aws-cdk/aws-appsync';
import * as iam from '@aws-cdk/aws-iam';
declare const role: iam.Role;
const logConfig: appsync.LogConfig = {
excludeVerboseContent: false,
fieldLogLevel: appsync.FieldLogLevel.NONE,
role: role,
};
Properties
Name | Type | Description |
---|---|---|
exclude | boolean | IResolvable | exclude verbose content. |
field | Field | log level for fields. |
role? | IRole | The role for CloudWatch Logs. |
excludeVerboseContent?
Type:
boolean |
IResolvable
(optional, default: false)
exclude verbose content.
fieldLogLevel?
Type:
Field
(optional, default: Use AppSync default)
log level for fields.
role?
Type:
IRole
(optional, default: None)
The role for CloudWatch Logs.