agent-claw: automated task changes

This commit is contained in:
daniel
2026-05-06 18:55:16 -05:00
parent 38905bb1e9
commit 732b00fb66
8494 changed files with 2018127 additions and 4 deletions

View File

@@ -0,0 +1,43 @@
import type * as constructs from 'constructs';
import type { LifecycleHook } from './lifecycle-hook';
import type * as iam from '../../aws-iam';
/**
* Options needed to bind a target to a lifecycle hook.
* [disable-awslint:ref-via-interface] The lifecycle hook to attach to and an IRole to use
*/
export interface BindHookTargetOptions {
/**
* The lifecycle hook to attach to.
* [disable-awslint:ref-via-interface]
*/
readonly lifecycleHook: LifecycleHook;
/**
* The role to use when attaching to the lifecycle hook.
* [disable-awslint:ref-via-interface]
* @default: a role is not created unless the target arn is specified
*/
readonly role?: iam.IRole;
}
/**
* Result of binding a lifecycle hook to a target.
*/
export interface LifecycleHookTargetConfig {
/**
* The IRole that was used to bind the lifecycle hook to the target
*/
readonly createdRole: iam.IRole;
/**
* The targetArn that the lifecycle hook was bound to
*/
readonly notificationTargetArn: string;
}
/**
* Interface for autoscaling lifecycle hook targets
*/
export interface ILifecycleHookTarget {
/**
* Called when this object is used as the target of a lifecycle hook
* @param options [disable-awslint:ref-via-interface] The lifecycle hook to attach to and a role to use
*/
bind(scope: constructs.Construct, options: BindHookTargetOptions): LifecycleHookTargetConfig;
}