Class CfnTrigger
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.devopsagent.CfnTrigger
- All Implemented Interfaces:
IInspectable,ITriggerRef,IEnvironmentAware,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)",
date="2026-09-02T11:03:07.600Z")
@Stability(Stable)
public class CfnTrigger
extends CfnResource
implements IInspectable, ITriggerRef
Resource Type definition for AWS::DevOpsAgent::Trigger.
A trigger defines an automated action that fires on a schedule within an Agent Space.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.devopsagent.*;
Object action;
CfnTrigger cfnTrigger = CfnTrigger.Builder.create(this, "MyCfnTrigger")
.action(action)
.agentSpaceId("agentSpaceId")
.condition(ConditionProperty.builder()
.schedule(ScheduleProperty.builder()
.expression("expression")
.build())
.build())
.type("type")
// the properties below are optional
.status("status")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnTrigger.static interfaceThe condition that causes the trigger to fire.static interfaceSchedule configuration for a time-based trigger.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.devopsagent.ITriggerRef
ITriggerRef.Jsii$Default, ITriggerRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnTrigger(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnTrigger(software.amazon.jsii.JsiiObjectRef objRef) CfnTrigger(software.constructs.Construct scope, String id, CfnTriggerProps props) Create a newAWS::DevOpsAgent::Trigger. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForTrigger(ITriggerRef resource) The action to perform when the trigger fires.The unique identifier of the parent Agent Space.The Amazon Resource Name (ARN) of the trigger.The timestamp when the trigger was created.The unique identifier of the trigger (assigned by the service on Create).The timestamp when the trigger was last updated.The condition that causes the trigger to fire.The status of the trigger.A reference to a Trigger resource.getType()The type of trigger.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnTrigger.renderProperties(Map<String, Object> props) voidThe action to perform when the trigger fires.voidsetAgentSpaceId(String value) The unique identifier of the parent Agent Space.voidsetCondition(IResolvable value) The condition that causes the trigger to fire.voidThe condition that causes the trigger to fire.voidThe status of the trigger.voidThe type of trigger.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, addResourceDependency, addResourceDependency, applyCrossStackReferenceStrength, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, cfnPropertyName, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, removeDependency, removeResourceDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId, withMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnTrigger
protected CfnTrigger(software.amazon.jsii.JsiiObjectRef objRef) -
CfnTrigger
protected CfnTrigger(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnTrigger
@Stability(Stable) public CfnTrigger(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnTriggerProps props) Create a newAWS::DevOpsAgent::Trigger.- 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.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForTrigger
- Parameters:
resource- This parameter is required.
-
isCfnTrigger
Checks whether the given object is a CfnTrigger.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
The Amazon Resource Name (ARN) of the trigger.Nested under the parent Agent Space: arn:
:aidevops: :invalid input: '<'account-id>:agentspace/invalid input: '<'agentspace-id>/trigger/invalid input: '<'trigger-id>. -
getAttrCreatedAt
The timestamp when the trigger was created. -
getAttrTriggerId
The unique identifier of the trigger (assigned by the service on Create). -
getAttrUpdatedAt
The timestamp when the trigger was last updated. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCfnPropertyNames
- Overrides:
getCfnPropertyNamesin classCfnResource
-
getTriggerRef
A reference to a Trigger resource.- Specified by:
getTriggerRefin interfaceITriggerRef
-
getAction
The action to perform when the trigger fires. -
setAction
The action to perform when the trigger fires. -
getAgentSpaceId
The unique identifier of the parent Agent Space. -
setAgentSpaceId
The unique identifier of the parent Agent Space. -
getCondition
The condition that causes the trigger to fire.Returns union: either
IResolvableorCfnTrigger.ConditionProperty -
setCondition
The condition that causes the trigger to fire. -
setCondition
The condition that causes the trigger to fire. -
getType
The type of trigger. -
setType
The type of trigger. -
getStatus
The status of the trigger. -
setStatus
The status of the trigger.
-