Class SpaceDelimitedTextPattern

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.logs.SpaceDelimitedTextPattern
All Implemented Interfaces:
IFilterPattern, software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-12-06T14:43:21.677Z") @Stability(Stable) public class SpaceDelimitedTextPattern extends software.amazon.jsii.JsiiObject implements IFilterPattern
Space delimited text pattern.

Example:

 // Search for all events where the component is "HttpServer" and the
 // result code is not equal to 200.
 SpaceDelimitedTextPattern pattern = FilterPattern.spaceDelimited("time", "component", "...", "result_code", "latency").whereString("component", "=", "HttpServer").whereNumber("result_code", "!=", 200);
 
  • Constructor Details

    • SpaceDelimitedTextPattern

      protected SpaceDelimitedTextPattern(software.amazon.jsii.JsiiObjectRef objRef)
    • SpaceDelimitedTextPattern

      protected SpaceDelimitedTextPattern(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • SpaceDelimitedTextPattern

      @Stability(Stable) protected SpaceDelimitedTextPattern(@NotNull List<String> columns, @NotNull Map<String,List<ColumnRestriction>> restrictions)
      Parameters:
      columns - This parameter is required.
      restrictions - This parameter is required.
  • Method Details

    • construct

      @Stability(Stable) @NotNull public static SpaceDelimitedTextPattern construct(@NotNull List<String> columns)
      Construct a new instance of a space delimited text pattern.

      Since this class must be public, we can't rely on the user only creating it through the LogPattern.spaceDelimited() factory function. We must therefore validate the argument in the constructor. Since we're returning a copy on every mutation, and we don't want to re-validate the same things on every construction, we provide a limited set of mutator functions and only validate the new data every time.

      Parameters:
      columns - This parameter is required.
    • whereNumber

      @Stability(Stable) @NotNull public SpaceDelimitedTextPattern whereNumber(@NotNull String columnName, @NotNull String comparison, @NotNull Number value)
      Restrict where the pattern applies.

      Parameters:
      columnName - This parameter is required.
      comparison - This parameter is required.
      value - This parameter is required.
    • whereString

      @Stability(Stable) @NotNull public SpaceDelimitedTextPattern whereString(@NotNull String columnName, @NotNull String comparison, @NotNull String value)
      Restrict where the pattern applies.

      Parameters:
      columnName - This parameter is required.
      comparison - This parameter is required.
      value - This parameter is required.
    • getLogPatternString

      @Stability(Stable) @NotNull public String getLogPatternString()
      Specified by:
      getLogPatternString in interface IFilterPattern