# ConditionOptions

Options shared by all trigger conditions.

Used as argument in: [Condition.crawler](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_glue.Condition.html#crawler), [Condition.job](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_glue.Condition.html#job)

- Source: [`aws-glue/lib/triggers/trigger-options.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-glue/lib/triggers/trigger-options.ts#L202)
- Type last changed: v2.270.0 · 17 Sep 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_glue as glue } from 'aws-cdk-lib';
const conditionOptions: glue.ConditionOptions = {
  logicalOperator: glue.ConditionLogicalOperator.EQUALS,
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_glue as glue

condition_options = glue.ConditionOptions(
    logical_operator=glue.ConditionLogicalOperator.EQUALS
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.glue.*;

ConditionOptions conditionOptions = ConditionOptions.builder()
        .logicalOperator(ConditionLogicalOperator.EQUALS)
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Glue;

var conditionOptions = new ConditionOptions {
    LogicalOperator = ConditionLogicalOperator.EQUALS
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

conditionOptions := &ConditionOptions{
	LogicalOperator: awscdk.Aws_glue.ConditionLogicalOperator_EQUALS,
}
```

## Properties

- `logicalOperator`: [ConditionLogicalOperator](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_glue.ConditionLogicalOperator.html) = ConditionLogicalOperator.EQUALS — The logical operator for the condition.
