interface CfnTriggerProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.DevOpsAgent.CfnTriggerProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsdevopsagent#CfnTriggerProps |
Java | software.amazon.awscdk.services.devopsagent.CfnTriggerProps |
Python | aws_cdk.aws_devopsagent.CfnTriggerProps |
TypeScript | aws-cdk-lib » aws_devopsagent » CfnTriggerProps |
Properties for defining a CfnTrigger.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-devopsagent-trigger.html
Example
// 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
| Name | Type | Description |
|---|---|---|
| action | any | The action to perform when the trigger fires. |
| agent | string | The unique identifier of the parent Agent Space. |
| condition | IResolvable | Condition | The condition that causes the trigger to fire. |
| type | string | The type of trigger. |
| status? | string | The status of the trigger. |
action
Type:
any
The action to perform when the trigger fires.
A JSON object containing actionType and task.
agentSpaceId
Type:
string
The unique identifier of the parent Agent Space.
condition
Type:
IResolvable | Condition
The condition that causes the trigger to fire.
type
Type:
string
The type of trigger.
status?
Type:
string
(optional, default: "Active")
The status of the trigger.
Active triggers fire on schedule; Inactive triggers are paused.

.NET
Go
Java
Python
TypeScript