Interface LogConfig
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
LogConfig.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-12-27T17:01:57.338Z")
@Stability(Stable)
public interface LogConfig
extends software.amazon.jsii.JsiiSerializable
Logging configuration for AppSync.
Example:
import software.amazon.awscdk.services.logs.*; GraphqlApi.Builder.create(this, "api") .authorizationConfig(AuthorizationConfig.builder().build()) .name("myApi") .definition(Definition.fromFile(join(__dirname, "myApi.graphql"))) .logConfig(LogConfig.builder() .fieldLogLevel(FieldLogLevel.INFO) .retention(RetentionDays.ONE_WEEK) .build()) .build();
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic LogConfig.Builder
builder()
default Object
exclude verbose content.default FieldLogLevel
log level for fields.default RetentionDays
The number of days log events are kept in CloudWatch Logs.default IRole
getRole()
The role for CloudWatch Logs.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getExcludeVerboseContent
exclude verbose content.Default: false
-
getFieldLogLevel
log level for fields.Default: - Use AppSync default
-
getRetention
The number of days log events are kept in CloudWatch Logs.By default AppSync keeps the logs infinitely. When updating this property, unsetting it doesn't remove the log retention policy. To remove the retention policy, set the value to
INFINITE
Default: RetentionDays.INFINITE
-
getRole
The role for CloudWatch Logs.Default: - None
-
builder
- Returns:
- a
LogConfig.Builder
ofLogConfig
-