Interface LogConfig

All Superinterfaces:
All Known Implementing Classes:

@Generated(value="jsii-pacmak/1.99.0 (build 8f757e4)", date="2024-06-13T18:49:14.678Z") @Stability(Stable) public interface LogConfig extends
Logging configuration for AppSync.


 LogConfig logConfig = LogConfig.builder()
 GraphqlApi.Builder.create(this, "api")
         .definition(Definition.fromFile(join(__dirname, "myApi.graphql")))
  • Method Details

    • getExcludeVerboseContent

      @Stability(Stable) @Nullable default Object getExcludeVerboseContent()
      exclude verbose content.

      Default: false

    • getFieldLogLevel

      @Stability(Stable) @Nullable default FieldLogLevel getFieldLogLevel()
      log level for fields.

      Default: - Use AppSync default

    • getRetention

      @Stability(Stable) @Nullable default RetentionDays 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

      @Stability(Stable) @Nullable default IRole getRole()
      The role for CloudWatch Logs.

      Default: - None

    • builder

      @Stability(Stable) static LogConfig.Builder builder()
      a LogConfig.Builder of LogConfig