Enum FieldLogLevel

java.lang.Object
java.lang.Enum<FieldLogLevel>
software.amazon.awscdk.services.appsync.FieldLogLevel
All Implemented Interfaces:
Serializable, Comparable<FieldLogLevel>, java.lang.constant.Constable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2025-01-15T21:09:14.666Z") @Stability(Stable) public enum FieldLogLevel extends Enum<FieldLogLevel>
log-level for fields in 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();
 
  • Enum Constant Details

    • NONE

      @Stability(Stable) public static final FieldLogLevel NONE
      Resolver logging is disabled.
    • ERROR

      @Stability(Stable) public static final FieldLogLevel ERROR
      Only Error messages appear in logs.
    • INFO

      @Stability(Stable) public static final FieldLogLevel INFO
      Info and Error messages appear in logs.
    • DEBUG

      @Stability(Stable) public static final FieldLogLevel DEBUG
      Debug, Info, and Error messages, appear in logs.
    • ALL

      @Stability(Stable) public static final FieldLogLevel ALL
      All messages (Debug, Error, Info, and Trace) appear in logs.
  • Method Details

    • values

      public static FieldLogLevel[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static FieldLogLevel valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null