# CfnTriggerProps

Properties for defining a `CfnTrigger`.

Extends: CfnTriggerProps
Used as props by: CfnTrigger

- Source: Generated code
- Type last changed: v2.268.0 · 2 Sep 2026

## Example

```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';

declare const action: any;
const cfnTriggerProps: devopsagent.CfnTriggerProps = {
  action: action,
  agentSpaceId: 'agentSpaceId',
  condition: {
    schedule: {
      expression: 'expression',
    },
  },
  type: 'type',

  // the properties below are optional
  status: 'status',
};
```

## Properties

- `action`: any (required) — The action to perform when the trigger fires.

  A JSON object containing actionType and task.

- `agentSpaceId`: string (required) — The unique identifier of the parent Agent Space.

- `condition`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTrigger.ConditionProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_devopsagent.CfnTrigger.ConditionProperty.html) (required) — The condition that causes the trigger to fire.

- `status`: string = "Active" — The status of the trigger.

  Active triggers fire on schedule; Inactive triggers are paused.

- `type`: string (required) — The type of trigger.
