agent-claw: automated task changes
This commit is contained in:
13
cdk/node_modules/aws-cdk-lib/triggers/.jsiirc.json
generated
vendored
Normal file
13
cdk/node_modules/aws-cdk-lib/triggers/.jsiirc.json
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"targets": {
|
||||
"java": {
|
||||
"package": "software.amazon.awscdk.triggers"
|
||||
},
|
||||
"dotnet": {
|
||||
"namespace": "Amazon.CDK.Triggers"
|
||||
},
|
||||
"python": {
|
||||
"module": "aws_cdk.triggers"
|
||||
}
|
||||
}
|
||||
}
|
||||
107
cdk/node_modules/aws-cdk-lib/triggers/README.md
generated
vendored
Normal file
107
cdk/node_modules/aws-cdk-lib/triggers/README.md
generated
vendored
Normal file
@@ -0,0 +1,107 @@
|
||||
# Triggers
|
||||
|
||||
|
||||
Triggers allows you to execute code during deployments. This can be used for a
|
||||
variety of use cases such as:
|
||||
|
||||
* Self tests: validate something after a resource/construct been provisioned
|
||||
* Data priming: add initial data to resources after they are created
|
||||
* Preconditions: check things such as account limits or external dependencies
|
||||
before deployment.
|
||||
|
||||
## Usage
|
||||
|
||||
The `TriggerFunction` construct will define an AWS Lambda function which is
|
||||
triggered *during* deployment:
|
||||
|
||||
```ts
|
||||
import * as triggers from 'aws-cdk-lib/triggers';
|
||||
|
||||
new triggers.TriggerFunction(this, 'MyTrigger', {
|
||||
runtime: lambda.Runtime.NODEJS_LATEST,
|
||||
handler: 'index.handler',
|
||||
code: lambda.Code.fromAsset(__dirname + '/my-trigger'),
|
||||
});
|
||||
```
|
||||
|
||||
In the above example, the AWS Lambda function defined in `MyTrigger` will
|
||||
be invoked when the stack is deployed.
|
||||
|
||||
It is also possible to trigger a predefined Lambda function by using the `Trigger` construct:
|
||||
|
||||
```ts
|
||||
import * as triggers from 'aws-cdk-lib/triggers';
|
||||
|
||||
const func = new lambda.Function(this, 'MyFunction', {
|
||||
handler: 'index.handler',
|
||||
runtime: lambda.Runtime.NODEJS_LATEST,
|
||||
code: lambda.Code.fromInline('foo'),
|
||||
});
|
||||
|
||||
new triggers.Trigger(this, 'MyTrigger', {
|
||||
handler: func,
|
||||
timeout: Duration.minutes(10),
|
||||
invocationType: triggers.InvocationType.EVENT,
|
||||
});
|
||||
```
|
||||
|
||||
Addition properties can be used to fine-tune the behaviour of the trigger.
|
||||
The `timeout` property can be used to determine how long the invocation of the function should take.
|
||||
The `invocationType` property can be used to change the invocation type of the function.
|
||||
This might be useful in scenarios where a fire-and-forget strategy for invoking the function is sufficient.
|
||||
|
||||
## Trigger Failures
|
||||
|
||||
If the trigger handler fails (e.g. an exception is raised), the CloudFormation
|
||||
deployment will fail, as if a resource failed to provision. This makes it easy
|
||||
to implement "self tests" via triggers by simply making a set of assertions on
|
||||
some provisioned infrastructure.
|
||||
|
||||
Note that this behavior is only applied when invocationType is `REQUEST_RESPONSE`. When invocationType is `EVENT`, Lambda function is invoked asynchronously.
|
||||
In that case, if Lambda function is invoked successfully, the trigger will success regardless of the result for the function execution.
|
||||
|
||||
## Order of Execution
|
||||
|
||||
By default, a trigger will be executed by CloudFormation after the associated
|
||||
handler is provisioned. This means that if the handler takes an implicit
|
||||
dependency on other resources (e.g. via environment variables), those resources
|
||||
will be provisioned *before* the trigger is executed.
|
||||
|
||||
In most cases, implicit ordering should be sufficient, but you can also use
|
||||
`executeAfter` and `executeBefore` to control the order of execution.
|
||||
|
||||
The following example defines the following order: `(hello, world) => myTrigger => goodbye`.
|
||||
The resources under `hello` and `world` will be provisioned in
|
||||
parallel, and then the trigger `myTrigger` will be executed. Only then the
|
||||
resources under `goodbye` will be provisioned:
|
||||
|
||||
```ts
|
||||
import * as triggers from 'aws-cdk-lib/triggers';
|
||||
|
||||
declare const myTrigger: triggers.Trigger;
|
||||
declare const hello: Construct;
|
||||
declare const world: Construct;
|
||||
declare const goodbye: Construct;
|
||||
|
||||
myTrigger.executeAfter(hello, world);
|
||||
myTrigger.executeBefore(goodbye);
|
||||
```
|
||||
|
||||
Note that `hello` and `world` are construct *scopes*. This means that they can
|
||||
be specific resources (such as an `s3.Bucket` object) or groups of resources
|
||||
composed together into constructs.
|
||||
|
||||
## Re-execution of Triggers
|
||||
|
||||
By default, `executeOnHandlerChange` is enabled. This implies that the trigger
|
||||
is re-executed every time the handler function code or configuration changes. If
|
||||
this option is disabled, the trigger will be executed only once upon first
|
||||
deployment.
|
||||
|
||||
In the future we will consider adding support for additional re-execution modes:
|
||||
|
||||
* `executeOnEveryDeployment: boolean` - re-executes every time the stack is
|
||||
deployed (add random "salt" during synthesis).
|
||||
* `executeOnResourceChange: Construct[]` - re-executes when one of the resources
|
||||
under the specified scopes has changed (add the hash the CloudFormation
|
||||
resource specs).
|
||||
1
cdk/node_modules/aws-cdk-lib/triggers/index.d.ts
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/triggers/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export * from './lib';
|
||||
1
cdk/node_modules/aws-cdk-lib/triggers/index.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/triggers/index.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";var __createBinding=exports&&exports.__createBinding||(Object.create?(function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}):(function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]})),__exportStar=exports&&exports.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0});var _noFold;exports.InvocationType=void 0,Object.defineProperty(exports,_noFold="InvocationType",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").InvocationType;return Object.defineProperty(exports,_noFold="InvocationType",{enumerable:!0,configurable:!0,value}),value}}),exports.Trigger=void 0,Object.defineProperty(exports,_noFold="Trigger",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").Trigger;return Object.defineProperty(exports,_noFold="Trigger",{enumerable:!0,configurable:!0,value}),value}}),exports.TriggerInvalidation=void 0,Object.defineProperty(exports,_noFold="TriggerInvalidation",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").TriggerInvalidation;return Object.defineProperty(exports,_noFold="TriggerInvalidation",{enumerable:!0,configurable:!0,value}),value}}),exports.TriggerFunction=void 0,Object.defineProperty(exports,_noFold="TriggerFunction",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").TriggerFunction;return Object.defineProperty(exports,_noFold="TriggerFunction",{enumerable:!0,configurable:!0,value}),value}});
|
||||
2
cdk/node_modules/aws-cdk-lib/triggers/lib/index.d.ts
generated
vendored
Normal file
2
cdk/node_modules/aws-cdk-lib/triggers/lib/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export * from './trigger';
|
||||
export * from './trigger-function';
|
||||
1
cdk/node_modules/aws-cdk-lib/triggers/lib/index.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/triggers/lib/index.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";var __createBinding=exports&&exports.__createBinding||(Object.create?(function(o,m,k,k2){k2===void 0&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);(!desc||("get"in desc?!m.__esModule:desc.writable||desc.configurable))&&(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}):(function(o,m,k,k2){k2===void 0&&(k2=k),o[k2]=m[k]})),__exportStar=exports&&exports.__exportStar||function(m,exports2){for(var p in m)p!=="default"&&!Object.prototype.hasOwnProperty.call(exports2,p)&&__createBinding(exports2,m,p)};Object.defineProperty(exports,"__esModule",{value:!0});var _noFold;exports.InvocationType=void 0,Object.defineProperty(exports,_noFold="InvocationType",{enumerable:!0,configurable:!0,get:()=>{var value=require("./trigger").InvocationType;return Object.defineProperty(exports,_noFold="InvocationType",{enumerable:!0,configurable:!0,value}),value}}),exports.Trigger=void 0,Object.defineProperty(exports,_noFold="Trigger",{enumerable:!0,configurable:!0,get:()=>{var value=require("./trigger").Trigger;return Object.defineProperty(exports,_noFold="Trigger",{enumerable:!0,configurable:!0,value}),value}}),exports.TriggerInvalidation=void 0,Object.defineProperty(exports,_noFold="TriggerInvalidation",{enumerable:!0,configurable:!0,get:()=>{var value=require("./trigger").TriggerInvalidation;return Object.defineProperty(exports,_noFold="TriggerInvalidation",{enumerable:!0,configurable:!0,value}),value}}),exports.TriggerFunction=void 0,Object.defineProperty(exports,_noFold="TriggerFunction",{enumerable:!0,configurable:!0,get:()=>{var value=require("./trigger-function").TriggerFunction;return Object.defineProperty(exports,_noFold="TriggerFunction",{enumerable:!0,configurable:!0,value}),value}});
|
||||
23
cdk/node_modules/aws-cdk-lib/triggers/lib/trigger-function.d.ts
generated
vendored
Normal file
23
cdk/node_modules/aws-cdk-lib/triggers/lib/trigger-function.d.ts
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
import type { Construct } from 'constructs';
|
||||
import type { ITrigger, TriggerOptions } from '.';
|
||||
import { Trigger } from '.';
|
||||
import * as lambda from '../../aws-lambda';
|
||||
/**
|
||||
* Props for `InvokeFunction`.
|
||||
*/
|
||||
export interface TriggerFunctionProps extends lambda.FunctionProps, TriggerOptions {
|
||||
}
|
||||
/**
|
||||
* Invokes an AWS Lambda function during deployment.
|
||||
*/
|
||||
export declare class TriggerFunction extends lambda.Function implements ITrigger {
|
||||
/** Uniquely identifies this class. */
|
||||
static readonly PROPERTY_INJECTION_ID: string;
|
||||
/**
|
||||
* The underlying trigger resource.
|
||||
*/
|
||||
readonly trigger: Trigger;
|
||||
constructor(scope: Construct, id: string, props: TriggerFunctionProps);
|
||||
executeAfter(...scopes: Construct[]): void;
|
||||
executeBefore(...scopes: Construct[]): void;
|
||||
}
|
||||
1
cdk/node_modules/aws-cdk-lib/triggers/lib/trigger-function.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/triggers/lib/trigger-function.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";var __runInitializers=exports&&exports.__runInitializers||function(thisArg,initializers,value){for(var useValue=arguments.length>2,i=0;i<initializers.length;i++)value=useValue?initializers[i].call(thisArg,value):initializers[i].call(thisArg);return useValue?value:void 0},__esDecorate=exports&&exports.__esDecorate||function(ctor,descriptorIn,decorators,contextIn,initializers,extraInitializers){function accept(f){if(f!==void 0&&typeof f!="function")throw new TypeError("Function expected");return f}for(var kind=contextIn.kind,key=kind==="getter"?"get":kind==="setter"?"set":"value",target=!descriptorIn&&ctor?contextIn.static?ctor:ctor.prototype:null,descriptor=descriptorIn||(target?Object.getOwnPropertyDescriptor(target,contextIn.name):{}),_,done=!1,i=decorators.length-1;i>=0;i--){var context={};for(var p in contextIn)context[p]=p==="access"?{}:contextIn[p];for(var p in contextIn.access)context.access[p]=contextIn.access[p];context.addInitializer=function(f){if(done)throw new TypeError("Cannot add initializers after decoration has completed");extraInitializers.push(accept(f||null))};var result=(0,decorators[i])(kind==="accessor"?{get:descriptor.get,set:descriptor.set}:descriptor[key],context);if(kind==="accessor"){if(result===void 0)continue;if(result===null||typeof result!="object")throw new TypeError("Object expected");(_=accept(result.get))&&(descriptor.get=_),(_=accept(result.set))&&(descriptor.set=_),(_=accept(result.init))&&initializers.unshift(_)}else(_=accept(result))&&(kind==="field"?initializers.unshift(_):descriptor[key]=_)}target&&Object.defineProperty(target,contextIn.name,descriptor),done=!0};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},metadata_resource_1=()=>{var tmp=require("../../core/lib/metadata-resource");return metadata_resource_1=()=>tmp,tmp},prop_injectable_1=()=>{var tmp=require("../../core/lib/prop-injectable");return prop_injectable_1=()=>tmp,tmp};let TriggerFunction=(()=>{let _classDecorators=[prop_injectable_1().propertyInjectable],_classDescriptor,_classExtraInitializers=[],_classThis,_classSuper=lambda().Function,_instanceExtraInitializers=[],_executeAfter_decorators,_executeBefore_decorators;var TriggerFunction2=class extends _classSuper{static{_classThis=this}static{const _metadata=typeof Symbol=="function"&&Symbol.metadata?Object.create(_classSuper[Symbol.metadata]??null):void 0;_executeAfter_decorators=[(0,metadata_resource_1().MethodMetadata)()],_executeBefore_decorators=[(0,metadata_resource_1().MethodMetadata)()],__esDecorate(this,null,_executeAfter_decorators,{kind:"method",name:"executeAfter",static:!1,private:!1,access:{has:obj=>"executeAfter"in obj,get:obj=>obj.executeAfter},metadata:_metadata},null,_instanceExtraInitializers),__esDecorate(this,null,_executeBefore_decorators,{kind:"method",name:"executeBefore",static:!1,private:!1,access:{has:obj=>"executeBefore"in obj,get:obj=>obj.executeBefore},metadata:_metadata},null,_instanceExtraInitializers),__esDecorate(null,_classDescriptor={value:_classThis},_classDecorators,{kind:"class",name:_classThis.name,metadata:_metadata},null,_classExtraInitializers),TriggerFunction2=_classThis=_classDescriptor.value,_metadata&&Object.defineProperty(_classThis,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:_metadata})}static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.triggers.TriggerFunction",version:"2.252.0"};static PROPERTY_INJECTION_ID="aws-cdk-lib.triggers.TriggerFunction";trigger=__runInitializers(this,_instanceExtraInitializers);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,TriggerFunction2),error}(0,metadata_resource_1().addConstructMetadata)(this,props),this.trigger=new(_1()).Trigger(this,"Trigger",{...props,handler:this})}executeAfter(...scopes){this.trigger.executeAfter(...scopes)}executeBefore(...scopes){this.trigger.executeBefore(...scopes)}static{__runInitializers(_classThis,_classExtraInitializers)}};return TriggerFunction2=_classThis})();exports.TriggerFunction=TriggerFunction;
|
||||
116
cdk/node_modules/aws-cdk-lib/triggers/lib/trigger.d.ts
generated
vendored
Normal file
116
cdk/node_modules/aws-cdk-lib/triggers/lib/trigger.d.ts
generated
vendored
Normal file
@@ -0,0 +1,116 @@
|
||||
import type { IConstruct } from 'constructs';
|
||||
import { Construct } from 'constructs';
|
||||
import type * as lambda from '../../aws-lambda';
|
||||
import { Duration } from '../../core';
|
||||
/**
|
||||
* Interface for triggers.
|
||||
*/
|
||||
export interface ITrigger extends IConstruct {
|
||||
/**
|
||||
* Adds trigger dependencies. Execute this trigger only after these construct
|
||||
* scopes have been provisioned.
|
||||
*
|
||||
* @param scopes A list of construct scopes which this trigger will depend on.
|
||||
*/
|
||||
executeAfter(...scopes: Construct[]): void;
|
||||
/**
|
||||
* Adds this trigger as a dependency on other constructs. This means that this
|
||||
* trigger will get executed *before* the given construct(s).
|
||||
*
|
||||
* @param scopes A list of construct scopes which will take a dependency on
|
||||
* this trigger.
|
||||
*/
|
||||
executeBefore(...scopes: Construct[]): void;
|
||||
}
|
||||
/**
|
||||
* Options for `Trigger`.
|
||||
*/
|
||||
export interface TriggerOptions {
|
||||
/**
|
||||
* Adds trigger dependencies. Execute this trigger only after these construct
|
||||
* scopes have been provisioned.
|
||||
*
|
||||
* You can also use `trigger.executeAfter()` to add additional dependencies.
|
||||
*
|
||||
* @default []
|
||||
*/
|
||||
readonly executeAfter?: Construct[];
|
||||
/**
|
||||
* Adds this trigger as a dependency on other constructs. This means that this
|
||||
* trigger will get executed *before* the given construct(s).
|
||||
*
|
||||
* You can also use `trigger.executeBefore()` to add additional dependents.
|
||||
*
|
||||
* @default []
|
||||
*/
|
||||
readonly executeBefore?: Construct[];
|
||||
/**
|
||||
* Re-executes the trigger every time the handler changes.
|
||||
*
|
||||
* This implies that the trigger is associated with the `currentVersion` of
|
||||
* the handler, which gets recreated every time the handler or its
|
||||
* configuration is updated.
|
||||
*
|
||||
* @default true
|
||||
*/
|
||||
readonly executeOnHandlerChange?: boolean;
|
||||
}
|
||||
/**
|
||||
* The invocation type to apply to a trigger. This determines whether the trigger function should await the result of the to be triggered function or not.
|
||||
*/
|
||||
export declare enum InvocationType {
|
||||
/**
|
||||
* Invoke the function asynchronously. Send events that fail multiple times to the function's dead-letter queue (if one is configured).
|
||||
* The API response only includes a status code.
|
||||
*/
|
||||
EVENT = "Event",
|
||||
/**
|
||||
* Invoke the function synchronously. Keep the connection open until the function returns a response or times out.
|
||||
* The API response includes the function response and additional data.
|
||||
*/
|
||||
REQUEST_RESPONSE = "RequestResponse",
|
||||
/**
|
||||
* Validate parameter values and verify that the user or role has permission to invoke the function.
|
||||
*/
|
||||
DRY_RUN = "DryRun"
|
||||
}
|
||||
/**
|
||||
* Props for `Trigger`.
|
||||
*/
|
||||
export interface TriggerProps extends TriggerOptions {
|
||||
/**
|
||||
* The AWS Lambda function of the handler to execute.
|
||||
*/
|
||||
readonly handler: lambda.Function;
|
||||
/**
|
||||
* The invocation type to invoke the Lambda function with.
|
||||
*
|
||||
* @default RequestResponse
|
||||
*/
|
||||
readonly invocationType?: InvocationType;
|
||||
/**
|
||||
* The timeout of the invocation call of the Lambda function to be triggered.
|
||||
*
|
||||
* @default Duration.minutes(2)
|
||||
*/
|
||||
readonly timeout?: Duration;
|
||||
}
|
||||
/**
|
||||
* Triggers an AWS Lambda function during deployment.
|
||||
*/
|
||||
export declare class Trigger extends Construct implements ITrigger {
|
||||
constructor(scope: Construct, id: string, props: TriggerProps);
|
||||
executeAfter(...scopes: Construct[]): void;
|
||||
executeBefore(...scopes: Construct[]): void;
|
||||
}
|
||||
/**
|
||||
* Determines
|
||||
*/
|
||||
export declare enum TriggerInvalidation {
|
||||
/**
|
||||
* The trigger will be executed every time the handler (or its configuration)
|
||||
* changes. This is implemented by associated the trigger with the `currentVersion`
|
||||
* of the AWS Lambda function, which gets recreated every time the handler changes.
|
||||
*/
|
||||
HANDLER_CHANGE = "WHEN_FUNCTION_CHANGES"
|
||||
}
|
||||
1
cdk/node_modules/aws-cdk-lib/triggers/lib/trigger.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/triggers/lib/trigger.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.TriggerInvalidation=exports.Trigger=exports.InvocationType=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var constructs_1=()=>{var tmp=require("constructs");return constructs_1=()=>tmp,tmp},core_1=()=>{var tmp=require("../../core");return core_1=()=>tmp,tmp},trigger_provider_generated_1=()=>{var tmp=require("../../custom-resource-handlers/dist/triggers/trigger-provider.generated");return trigger_provider_generated_1=()=>tmp,tmp},InvocationType;(function(InvocationType2){InvocationType2.EVENT="Event",InvocationType2.REQUEST_RESPONSE="RequestResponse",InvocationType2.DRY_RUN="DryRun"})(InvocationType||(exports.InvocationType=InvocationType={}));class Trigger extends constructs_1().Construct{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.triggers.Trigger",version:"2.252.0"};constructor(scope,id,props){super(scope,id);try{jsiiDeprecationWarnings().aws_cdk_lib_triggers_TriggerProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,Trigger),error}const provider=trigger_provider_generated_1().TriggerProvider.getOrCreateProvider(this,"AWSCDK.TriggerCustomResourceProvider");provider.addToRolePolicy({Effect:"Allow",Action:["lambda:InvokeFunction"],Resource:[`${props.handler.functionArn}:*`]}),new(core_1()).CustomResource(this,"Default",{resourceType:"Custom::Trigger",serviceToken:provider.serviceToken,properties:{HandlerArn:props.handler.currentVersion.functionArn,InvocationType:props.invocationType??"RequestResponse",Timeout:props.timeout?.toMilliseconds().toString()??core_1().Duration.minutes(2).toMilliseconds().toString(),ExecuteOnHandlerChange:props.executeOnHandlerChange??!0}}),this.executeAfter(...props.executeAfter??[]),this.executeBefore(...props.executeBefore??[])}executeAfter(...scopes){constructs_1().Node.of(this).addDependency(...scopes)}executeBefore(...scopes){for(const s of scopes)constructs_1().Node.of(s).addDependency(this)}}exports.Trigger=Trigger;var TriggerInvalidation;(function(TriggerInvalidation2){TriggerInvalidation2.HANDLER_CHANGE="WHEN_FUNCTION_CHANGES"})(TriggerInvalidation||(exports.TriggerInvalidation=TriggerInvalidation={}));
|
||||
Reference in New Issue
Block a user