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,13 @@
{
"targets": {
"java": {
"package": "software.amazon.awscdk.services.autoscaling.hooktargets"
},
"dotnet": {
"namespace": "Amazon.CDK.AWS.AutoScaling.HookTargets"
},
"python": {
"module": "aws_cdk.aws_autoscaling_hooktargets"
}
}
}

View File

@@ -0,0 +1,18 @@
# Lifecycle Hook for the CDK AWS AutoScaling Library
This library contains integration classes for AutoScaling lifecycle hooks.
Instances of these classes should be passed to the
`autoScalingGroup.addLifecycleHook()` method.
Lifecycle hooks can be activated in one of the following ways:
* Invoke a Lambda function
* Publish to an SNS topic
* Send to an SQS queue
For more information on using this library, see the README of the
`aws-cdk-lib/aws-autoscaling` library.
For more information about lifecycle hooks, see
[Amazon EC2 AutoScaling Lifecycle hooks](https://docs.aws.amazon.com/autoscaling/ec2/userguide/lifecycle-hooks.html) in the Amazon EC2 User Guide.

View File

@@ -0,0 +1 @@
export * from './lib';

View 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.createRole=void 0,Object.defineProperty(exports,_noFold="createRole",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").createRole;return Object.defineProperty(exports,_noFold="createRole",{enumerable:!0,configurable:!0,value}),value}}),exports.QueueHook=void 0,Object.defineProperty(exports,_noFold="QueueHook",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").QueueHook;return Object.defineProperty(exports,_noFold="QueueHook",{enumerable:!0,configurable:!0,value}),value}}),exports.TopicHook=void 0,Object.defineProperty(exports,_noFold="TopicHook",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").TopicHook;return Object.defineProperty(exports,_noFold="TopicHook",{enumerable:!0,configurable:!0,value}),value}}),exports.FunctionHook=void 0,Object.defineProperty(exports,_noFold="FunctionHook",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").FunctionHook;return Object.defineProperty(exports,_noFold="FunctionHook",{enumerable:!0,configurable:!0,value}),value}});

View File

@@ -0,0 +1,3 @@
import type * as constructs from 'constructs';
import * as iam from '../../aws-iam';
export declare function createRole(scope: constructs.Construct, _role?: iam.IRole): iam.IRole;

View File

@@ -0,0 +1 @@
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.createRole=createRole;var iam=()=>{var tmp=require("../../aws-iam");return iam=()=>tmp,tmp};function createRole(scope,_role){let role=_role;return role||(role=new(iam()).Role(scope,"Role",{assumedBy:new(iam()).ServicePrincipal("autoscaling.amazonaws.com")})),role}

View File

@@ -0,0 +1,4 @@
export * from './common';
export * from './queue-hook';
export * from './topic-hook';
export * from './lambda-hook';

View 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.createRole=void 0,Object.defineProperty(exports,_noFold="createRole",{enumerable:!0,configurable:!0,get:()=>{var value=require("./common").createRole;return Object.defineProperty(exports,_noFold="createRole",{enumerable:!0,configurable:!0,value}),value}}),exports.QueueHook=void 0,Object.defineProperty(exports,_noFold="QueueHook",{enumerable:!0,configurable:!0,get:()=>{var value=require("./queue-hook").QueueHook;return Object.defineProperty(exports,_noFold="QueueHook",{enumerable:!0,configurable:!0,value}),value}}),exports.TopicHook=void 0,Object.defineProperty(exports,_noFold="TopicHook",{enumerable:!0,configurable:!0,get:()=>{var value=require("./topic-hook").TopicHook;return Object.defineProperty(exports,_noFold="TopicHook",{enumerable:!0,configurable:!0,value}),value}}),exports.FunctionHook=void 0,Object.defineProperty(exports,_noFold="FunctionHook",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lambda-hook").FunctionHook;return Object.defineProperty(exports,_noFold="FunctionHook",{enumerable:!0,configurable:!0,value}),value}});

View File

@@ -0,0 +1,23 @@
import type { Construct } from 'constructs';
import type * as autoscaling from '../../aws-autoscaling';
import type * as kms from '../../aws-kms';
import type * as lambda from '../../aws-lambda';
/**
* Use a Lambda Function as a hook target
*
* Internally creates a Topic to make the connection.
*/
export declare class FunctionHook implements autoscaling.ILifecycleHookTarget {
private readonly fn;
private readonly encryptionKey?;
/**
* @param fn Function to invoke in response to a lifecycle event
* @param encryptionKey If provided, this key is used to encrypt the contents of the SNS topic.
*/
constructor(fn: lambda.IFunction, encryptionKey?: kms.IKey | undefined);
/**
* If the `IRole` does not exist in `options`, will create an `IRole` and an SNS Topic and attach both to the lifecycle hook.
* If the `IRole` does exist in `options`, will only create an SNS Topic and attach it to the lifecycle hook.
*/
bind(_scope: Construct, options: autoscaling.BindHookTargetOptions): autoscaling.LifecycleHookTargetConfig;
}

View File

@@ -0,0 +1 @@
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.FunctionHook=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var common_1=()=>{var tmp=require("./common");return common_1=()=>tmp,tmp},topic_hook_1=()=>{var tmp=require("./topic-hook");return topic_hook_1=()=>tmp,tmp},sns=()=>{var tmp=require("../../aws-sns");return sns=()=>tmp,tmp},subs=()=>{var tmp=require("../../aws-sns-subscriptions");return subs=()=>tmp,tmp};class FunctionHook{fn;encryptionKey;static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_autoscaling_hooktargets.FunctionHook",version:"2.252.0"};constructor(fn,encryptionKey){this.fn=fn,this.encryptionKey=encryptionKey;try{jsiiDeprecationWarnings().aws_cdk_lib_aws_lambda_IFunction(fn),jsiiDeprecationWarnings().aws_cdk_lib_aws_kms_IKey(encryptionKey)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,FunctionHook),error}}bind(_scope,options){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_autoscaling_BindHookTargetOptions(options)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.bind),error}const topic=new(sns()).Topic(_scope,"Topic",{masterKey:this.encryptionKey}),role=(0,common_1().createRole)(_scope,options.role);return this.encryptionKey?.grant(role,"kms:Decrypt","kms:GenerateDataKey"),topic.addSubscription(new(subs()).LambdaSubscription(this.fn)),new(topic_hook_1()).TopicHook(topic).bind(_scope,{lifecycleHook:options.lifecycleHook,role})}}exports.FunctionHook=FunctionHook;

View File

@@ -0,0 +1,17 @@
import type { Construct } from 'constructs';
import type * as autoscaling from '../../aws-autoscaling';
import type * as sqs from '../../aws-sqs';
/**
* Use an SQS queue as a hook target
*/
export declare class QueueHook implements autoscaling.ILifecycleHookTarget {
private readonly queue;
constructor(queue: sqs.IQueue);
/**
* If an `IRole` is found in `options`, grant it access to send messages.
* Otherwise, create a new `IRole` and grant it access to send messages.
*
* @returns the `IRole` with access to send messages and the ARN of the queue it has access to send messages to.
*/
bind(_scope: Construct, options: autoscaling.BindHookTargetOptions): autoscaling.LifecycleHookTargetConfig;
}

View File

@@ -0,0 +1 @@
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.QueueHook=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var common_1=()=>{var tmp=require("./common");return common_1=()=>tmp,tmp};class QueueHook{queue;static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_autoscaling_hooktargets.QueueHook",version:"2.252.0"};constructor(queue){this.queue=queue;try{jsiiDeprecationWarnings().aws_cdk_lib_aws_sqs_IQueue(queue)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,QueueHook),error}}bind(_scope,options){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_autoscaling_BindHookTargetOptions(options)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.bind),error}const role=(0,common_1().createRole)(_scope,options.role);return this.queue.grantSendMessages(role),{notificationTargetArn:this.queue.queueArn,createdRole:role}}}exports.QueueHook=QueueHook;

View File

@@ -0,0 +1,17 @@
import type { Construct } from 'constructs';
import type * as autoscaling from '../../aws-autoscaling';
import type * as sns from '../../aws-sns';
/**
* Use an SNS topic as a hook target
*/
export declare class TopicHook implements autoscaling.ILifecycleHookTarget {
private readonly topic;
constructor(topic: sns.ITopic);
/**
* If an `IRole` is found in `options`, grant it topic publishing permissions.
* Otherwise, create a new `IRole` and grant it topic publishing permissions.
*
* @returns the `IRole` with topic publishing permissions and the ARN of the topic it has publishing permission to.
*/
bind(_scope: Construct, options: autoscaling.BindHookTargetOptions): autoscaling.LifecycleHookTargetConfig;
}

View File

@@ -0,0 +1 @@
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.TopicHook=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var common_1=()=>{var tmp=require("./common");return common_1=()=>tmp,tmp};class TopicHook{topic;static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_autoscaling_hooktargets.TopicHook",version:"2.252.0"};constructor(topic){this.topic=topic;try{jsiiDeprecationWarnings().aws_cdk_lib_aws_sns_ITopic(topic)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,TopicHook),error}}bind(_scope,options){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_autoscaling_BindHookTargetOptions(options)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.bind),error}const role=(0,common_1().createRole)(_scope,options.role);return this.topic.grantPublish(role),{notificationTargetArn:this.topic.topicArn,createdRole:role}}}exports.TopicHook=TopicHook;