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);
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.logs.IFilterPattern
IFilterPattern.Jsii$Default, IFilterPattern.Jsii$Proxy
-
Constructor Summary
ModifierConstructorDescriptionprotected
SpaceDelimitedTextPattern
(List<String> columns, Map<String, List<ColumnRestriction>> restrictions) protected
SpaceDelimitedTextPattern
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
SpaceDelimitedTextPattern
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic SpaceDelimitedTextPattern
Construct a new instance of a space delimited text pattern.whereNumber
(String columnName, String comparison, Number value) Restrict where the pattern applies.whereString
(String columnName, String comparison, String value) Restrict where the pattern applies.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
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
- Specified by:
getLogPatternString
in interfaceIFilterPattern
-