# ColumnRestriction

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

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_logs as logs } from 'aws-cdk-lib';
const columnRestriction: logs.ColumnRestriction = {
  comparison: 'comparison',

  // the properties below are optional
  numberValue: 123,
  stringValue: 'stringValue',
};
```

## Properties

- `comparison`: string (required) — Comparison operator to use.

- `numberValue`: number — Number value to compare to.

  Exactly one of 'stringValue' and 'numberValue' must be set.

- `stringValue`: string — String value to compare to.

  Exactly one of 'stringValue' and 'numberValue' must be set.
