Skip to content
v2.273.0

CfnTriggerProps Struct ​

Properties for defining a CfnTrigger.

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 ​

actionanyactionAnyactionObjectActionobjectActioninterface{}required#
The action to perform when the trigger fires.

A JSON object containing actionType and task.

agentSpaceIdstringagent_space_idstragentSpaceIdStringAgentSpaceIdstringAgentSpaceId*stringrequired#
The unique identifier of the parent Agent Space.
conditionIResolvable | CfnTrigger.ConditionPropertyconditiontyping.Union[IResolvable, ConditionProperty]conditionIResolvableConditionIResolvableConditioninterface{}required#
The condition that causes the trigger to fire.
statusstringstatusstrstatusStringStatusstringStatus*string= "Active"#
The status of the trigger.

Active triggers fire on schedule; Inactive triggers are paused.

typestringtypestrtypeStringTypestringType*stringrequired#
The type of trigger.

Used as props by ​