# ConditionProperty

The condition that causes the trigger to fire.

- Source: Generated at build time
- Type last changed: v2.268.0 · 2 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_devopsagent as devopsagent } from 'aws-cdk-lib';
const conditionProperty: devopsagent.CfnTrigger.ConditionProperty = {
  schedule: {
    expression: 'expression',
  },
};
```

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_devopsagent as devopsagent

condition_property = devopsagent.CfnTrigger.ConditionProperty(
    schedule=devopsagent.CfnTrigger.ScheduleProperty(
        expression="expression"
    )
)
```

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.devopsagent.*;

ConditionProperty conditionProperty = ConditionProperty.builder()
        .schedule(ScheduleProperty.builder()
                .expression("expression")
                .build())
        .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.DevOpsAgent;

var conditionProperty = new ConditionProperty {
    Schedule = new ScheduleProperty {
        Expression = "expression"
    }
};
```

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"

conditionProperty := &ConditionProperty{
	Schedule: &ScheduleProperty{
		Expression: jsii.String("expression"),
	},
}
```

## Properties

- `schedule`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTrigger.ScheduleProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_devopsagent.CfnTrigger.ScheduleProperty.html) (required) — Schedule configuration for a time-based trigger.
