Enum Class OversizePolicy

java.lang.Object
java.lang.Enum<OversizePolicy>
codes.grow.packages.cloudwatchlogs.OversizePolicy
All Implemented Interfaces:
Serializable, Comparable<OversizePolicy>, Constable

public enum OversizePolicy extends Enum<OversizePolicy>
What happens to a log event whose message is larger than maxEventBytes.
  • Enum Constant Details

  • Method Details

    • values

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

      public static OversizePolicy valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • wireValue

      public String wireValue()
      Returns the lowercase wire name (truncate, drop, error).
      Returns:
      the wire name
    • parse

      public static OversizePolicy parse(String text)
      Parses truncate, drop or error (case-insensitive).
      Parameters:
      text - the value
      Returns:
      the policy
      Throws:
      ConfigException - when the value is none of them