# SpaceDelimitedTextPattern

Space delimited text pattern.

Extends: SpaceDelimitedTextPattern
Implements: IFilterPattern

- Source: [`aws-logs/lib/pattern.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-logs/lib/pattern.ts#L304)

## Example

```ts
// Search for all events where the component is "HttpServer" and the
// result code is not equal to 200.
const pattern = logs.FilterPattern.spaceDelimited('time', 'component', '...', 'result_code', 'latency')
  .whereString('component', '=', 'HttpServer')
  .whereNumber('result_code', '!=', 200);
```

## Properties

- `logPatternString`: string (required)

## Methods

- `construct(columns: string[]): SpaceDelimitedTextPattern // chainable` (static) — 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.

- `whereNumber(columnName: string, comparison: string, value: number): SpaceDelimitedTextPattern // chainable` — Restrict where the pattern applies.

- `whereString(columnName: string, comparison: string, value: string): SpaceDelimitedTextPattern // chainable` — Restrict where the pattern applies.
