UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

2 lines (1 loc) 1.06 kB
"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.TriggerFunction=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var _1=()=>{var tmp=require(".");return _1=()=>tmp,tmp},lambda=()=>{var tmp=require("../../aws-lambda");return lambda=()=>tmp,tmp};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,TriggerFunction),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.160.0"};