Class CfnTrigger.Builder
java.lang.Object
software.amazon.awscdk.services.devopsagent.CfnTrigger.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTrigger>
- Enclosing class:
CfnTrigger
@Stability(Stable)
public static final class CfnTrigger.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTrigger>
A fluent builder for
CfnTrigger.-
Method Summary
Modifier and TypeMethodDescriptionThe action to perform when the trigger fires.agentSpaceId(String agentSpaceId) The unique identifier of the parent Agent Space.build()condition(IResolvable condition) The condition that causes the trigger to fire.condition(CfnTrigger.ConditionProperty condition) The condition that causes the trigger to fire.static CfnTrigger.BuilderThe status of the trigger.The type of trigger.
-
Method Details
-
create
@Stability(Stable) public static CfnTrigger.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnTrigger.Builder.
-
action
The action to perform when the trigger fires.A JSON object containing actionType and task.
- Parameters:
action- The action to perform when the trigger fires. This parameter is required.- Returns:
this- See Also:
-
agentSpaceId
The unique identifier of the parent Agent Space.- Parameters:
agentSpaceId- The unique identifier of the parent Agent Space. This parameter is required.- Returns:
this- See Also:
-
condition
The condition that causes the trigger to fire.- Parameters:
condition- The condition that causes the trigger to fire. This parameter is required.- Returns:
this- See Also:
-
condition
The condition that causes the trigger to fire.- Parameters:
condition- The condition that causes the trigger to fire. This parameter is required.- Returns:
this- See Also:
-
type
The type of trigger.- Parameters:
type- The type of trigger. This parameter is required.- Returns:
this- See Also:
-
status
The status of the trigger.Active triggers fire on schedule; Inactive triggers are paused.
Default: - "Active"
- Parameters:
status- The status of the trigger. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTrigger>- Returns:
- a newly built instance of
CfnTrigger.
-