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 { Construct } from 'constructs';
import * as autoscaling from '../../../aws-autoscaling';
import type * as kms from '../../../aws-kms';
import * as cdk from '../../../core';
import type { IClusterRef } from '../../../interfaces/generated/aws-ecs-interfaces.generated';
/**
* Properties for instance draining hook
*/
export interface InstanceDrainHookProps {
/**
* The AutoScalingGroup to install the instance draining hook for
*/
autoScalingGroup: autoscaling.IAutoScalingGroup;
/**
* The cluster on which tasks have been scheduled
*/
cluster: IClusterRef;
/**
* How many seconds to give tasks to drain before the instance is terminated anyway
*
* Must be between 0 and 15 minutes.
*
* @default Duration.minutes(15)
*/
drainTime?: cdk.Duration;
/**
* The InstanceDrainHook creates an SNS topic for the lifecycle hook of the ASG. If provided, then this
* key will be used to encrypt the contents of that SNS Topic.
* See [SNS Data Encryption](https://docs.aws.amazon.com/sns/latest/dg/sns-data-encryption.html) for more information.
*
* @default The SNS Topic will not be encrypted.
*/
topicEncryptionKey?: kms.IKey;
}
/**
* A hook to drain instances from ECS traffic before they're terminated
*/
export declare class InstanceDrainHook extends Construct {
/**
* Constructs a new instance of the InstanceDrainHook class.
*/
constructor(scope: Construct, id: string, props: InstanceDrainHookProps);
}