CfnTriggerProps
- class aws_cdk.aws_devopsagent.CfnTriggerProps(*, action, agent_space_id, condition, type, status=None)
Bases:
objectProperties for defining a
CfnTrigger.- Parameters:
action (
Any) – The action to perform when the trigger fires. A JSON object containing actionType and task.agent_space_id (
str) – The unique identifier of the parent Agent Space.condition (
Union[IResolvable,ConditionProperty,Dict[str,Any]]) – The condition that causes the trigger to fire.type (
str) – The type of trigger.status (
Optional[str]) – The status of the trigger. Active triggers fire on schedule; Inactive triggers are paused. Default: - “Active”
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-devopsagent-trigger.html
- ExampleMetadata:
fixture=_generated
Example:
# 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 # action: Any cfn_trigger_props = devopsagent.CfnTriggerProps( action=action, agent_space_id="agentSpaceId", condition=devopsagent.CfnTrigger.ConditionProperty( schedule=devopsagent.CfnTrigger.ScheduleProperty( expression="expression" ) ), type="type", # the properties below are optional status="status" )
Attributes
- action
The action to perform when the trigger fires.
A JSON object containing actionType and task.
- agent_space_id
The unique identifier of the parent Agent Space.
- condition
The condition that causes the trigger to fire.
- status
The status of the trigger.
Active triggers fire on schedule; Inactive triggers are paused.