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,30 @@
import type { Construct } from 'constructs';
import * as iam from '../../aws-iam';
import type * as firehose from '../../aws-kinesisfirehose';
import type * as logs from '../../aws-logs';
import type { ILogGroupRef } from '../../interfaces/generated/aws-logs-interfaces.generated';
/**
* Customize the Amazon Data Firehose Logs Destination
*/
export interface FirehoseDestinationProps {
/**
* The role to assume to write log events to the destination
*
* @default - A new Role is created
*/
readonly role?: iam.IRole;
}
/**
* Use a Data Firehose delivery stream as the destination for a log subscription
*/
export declare class FirehoseDestination implements logs.ILogSubscriptionDestination {
private readonly stream;
private readonly props;
/**
* @param stream The Data Firehose delivery stream to use as destination
* @param props The Data Firehose Destination properties
*
*/
constructor(stream: firehose.IDeliveryStream, props?: FirehoseDestinationProps);
bind(scope: Construct, _sourceLogGroup: ILogGroupRef): logs.LogSubscriptionDestinationConfig;
}

View File

@@ -0,0 +1 @@
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.FirehoseDestination=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var iam=()=>{var tmp=require("../../aws-iam");return iam=()=>tmp,tmp},core_1=()=>{var tmp=require("../../core");return core_1=()=>tmp,tmp};class FirehoseDestination{stream;props;static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_logs_destinations.FirehoseDestination",version:"2.252.0"};constructor(stream,props={}){this.stream=stream,this.props=props;try{jsiiDeprecationWarnings().aws_cdk_lib_aws_kinesisfirehose_IDeliveryStream(stream),jsiiDeprecationWarnings().aws_cdk_lib_aws_logs_destinations_FirehoseDestinationProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,FirehoseDestination),error}}bind(scope,_sourceLogGroup){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_logs_ILogGroupRef(_sourceLogGroup)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.bind),error}const id="CloudWatchLogsCanPutRecords",role=this.props.role??scope.node.tryFindChild(id)??new(iam()).Role(scope,id,{assumedBy:new(iam()).ServicePrincipal("logs.amazonaws.com",{conditions:{StringLike:{"aws:SourceArn":core_1().Stack.of(scope).formatArn({service:"logs",resource:"*"})}}})});this.stream.grantPutRecords(role);const policy=role.node.tryFindChild("DefaultPolicy");return policy&&(role.node.defaultChild.addOverride("DependsOn",void 0),scope.node.addDependency(policy)),{arn:this.stream.deliveryStreamArn,role}}}exports.FirehoseDestination=FirehoseDestination;

View File

@@ -0,0 +1,3 @@
export * from './lambda';
export * from './kinesis';
export * from './firehose';

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.LambdaDestination=void 0,Object.defineProperty(exports,_noFold="LambdaDestination",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lambda").LambdaDestination;return Object.defineProperty(exports,_noFold="LambdaDestination",{enumerable:!0,configurable:!0,value}),value}}),exports.KinesisDestination=void 0,Object.defineProperty(exports,_noFold="KinesisDestination",{enumerable:!0,configurable:!0,get:()=>{var value=require("./kinesis").KinesisDestination;return Object.defineProperty(exports,_noFold="KinesisDestination",{enumerable:!0,configurable:!0,value}),value}}),exports.FirehoseDestination=void 0,Object.defineProperty(exports,_noFold="FirehoseDestination",{enumerable:!0,configurable:!0,get:()=>{var value=require("./firehose").FirehoseDestination;return Object.defineProperty(exports,_noFold="FirehoseDestination",{enumerable:!0,configurable:!0,value}),value}});

View File

@@ -0,0 +1,30 @@
import type { Construct } from 'constructs';
import * as iam from '../../aws-iam';
import type * as kinesis from '../../aws-kinesis';
import type * as logs from '../../aws-logs';
import type { ILogGroupRef } from '../../interfaces/generated/aws-logs-interfaces.generated';
/**
* Customize the Kinesis Logs Destination
*/
export interface KinesisDestinationProps {
/**
* The role to assume to write log events to the destination
*
* @default - A new Role is created
*/
readonly role?: iam.IRole;
}
/**
* Use a Kinesis stream as the destination for a log subscription
*/
export declare class KinesisDestination implements logs.ILogSubscriptionDestination {
private readonly stream;
private readonly props;
/**
* @param stream The Kinesis stream to use as destination
* @param props The Kinesis Destination properties
*
*/
constructor(stream: kinesis.IStream, props?: KinesisDestinationProps);
bind(scope: Construct, _sourceLogGroup: ILogGroupRef): logs.LogSubscriptionDestinationConfig;
}

View File

@@ -0,0 +1 @@
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.KinesisDestination=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var iam=()=>{var tmp=require("../../aws-iam");return iam=()=>tmp,tmp};class KinesisDestination{stream;props;static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_logs_destinations.KinesisDestination",version:"2.252.0"};constructor(stream,props={}){this.stream=stream,this.props=props;try{jsiiDeprecationWarnings().aws_cdk_lib_aws_kinesis_IStream(stream),jsiiDeprecationWarnings().aws_cdk_lib_aws_logs_destinations_KinesisDestinationProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,KinesisDestination),error}}bind(scope,_sourceLogGroup){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_logs_ILogGroupRef(_sourceLogGroup)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.bind),error}const id="CloudWatchLogsCanPutRecords",role=this.props.role??scope.node.tryFindChild(id)??new(iam()).Role(scope,id,{assumedBy:new(iam()).ServicePrincipal("logs.amazonaws.com")});this.stream.grantWrite(role),role.grantPassRole(role);const policy=role.node.tryFindChild("DefaultPolicy");return policy&&(role.node.defaultChild.addOverride("DependsOn",void 0),scope.node.addDependency(policy)),{arn:this.stream.streamArn,role}}}exports.KinesisDestination=KinesisDestination;

View File

@@ -0,0 +1,23 @@
import type { Construct } from 'constructs';
import type * as lambda from '../../aws-lambda';
import type * as logs from '../../aws-logs';
import type { ILogGroupRef } from '../../interfaces/generated/aws-logs-interfaces.generated';
/**
* Options that may be provided to LambdaDestination
*/
export interface LambdaDestinationOptions {
/** Whether or not to add Lambda Permissions.
* @default true
*/
readonly addPermissions?: boolean;
}
/**
* Use a Lambda Function as the destination for a log subscription
*/
export declare class LambdaDestination implements logs.ILogSubscriptionDestination {
private readonly fn;
private readonly options;
/** LambdaDestinationOptions */
constructor(fn: lambda.IFunction, options?: LambdaDestinationOptions);
bind(scope: Construct, logGroup: ILogGroupRef): logs.LogSubscriptionDestinationConfig;
}

View File

@@ -0,0 +1 @@
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.LambdaDestination=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var iam=()=>{var tmp=require("../../aws-iam");return iam=()=>tmp,tmp};class LambdaDestination{fn;options;static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_logs_destinations.LambdaDestination",version:"2.252.0"};constructor(fn,options={}){this.fn=fn,this.options=options;try{jsiiDeprecationWarnings().aws_cdk_lib_aws_lambda_IFunction(fn),jsiiDeprecationWarnings().aws_cdk_lib_aws_logs_destinations_LambdaDestinationOptions(options)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,LambdaDestination),error}}bind(scope,logGroup){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_logs_ILogGroupRef(logGroup)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.bind),error}const arn=logGroup.logGroupRef.logGroupArn;if(this.options.addPermissions!==!1){const permissionId="CanInvokeLambda";this.fn.addPermission(permissionId,{principal:new(iam()).ServicePrincipal("logs.amazonaws.com"),sourceArn:arn,scope});const cfnPermission=scope.node.tryFindChild(permissionId);cfnPermission&&scope.node.addDependency(cfnPermission)}return{arn:this.fn.functionArn}}}exports.LambdaDestination=LambdaDestination;