"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.TriggerFunction=void 0;const jsiiDeprecationWarnings=require("../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),lambda=require("../../aws-lambda"),_1=require(".");class TriggerFunction extends lambda.Function{constructor(scope,id,props){super(scope,id,props);try{jsiiDeprecationWarnings.aws_cdk_lib_triggers_TriggerFunctionProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.constructor),error}this.trigger=new _1.Trigger(this,"Trigger",{...props,handler:this})}executeAfter(...scopes){this.trigger.executeAfter(...scopes)}executeBefore(...scopes){this.trigger.executeBefore(...scopes)}}exports.TriggerFunction=TriggerFunction,_a=JSII_RTTI_SYMBOL_1,TriggerFunction[_a]={fqn:"aws-cdk-lib.triggers.TriggerFunction",version:"2.21.0"};
//# sourceMappingURL=trigger-function.js.map
