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,39 @@
import type { Construct } from 'constructs';
import type { CfnAssessmentTemplate } from './inspector.generated';
import type { IResource } from '../../core';
import { Resource } from '../../core';
import type { IAssessmentTemplateRef } from '../../interfaces/generated/aws-inspector-interfaces.generated';
/**
* Interface for an Inspector Assessment Template
*/
export interface IAssessmentTemplate extends IResource, IAssessmentTemplateRef {
/**
* The Amazon Resource Name (ARN) of the assessment template.
* @attribute
*/
readonly assessmentTemplateArn: string;
}
/**
* Properties for creating an Inspector Assessment Template
* TODO: Add properties and remove "props-physical-name:aws-cdk-lib.aws_inspector.AssessmentTemplateProps" from `awslint.json`
* when implementing the L2 construct
*/
export interface AssessmentTemplateProps {
}
/**
* An Amazon Inspector assessment template.
* TODO: This class should implement IAssessmentTemplate and "construct-ctor-props-type:aws-cdk-lib.aws_inspector.AssessmentTemplate" should be
* removed from `awslint.json` when implementing the L2 construct
*/
export declare class AssessmentTemplate extends Resource {
/** Uniquely identifies this class. */
static readonly PROPERTY_INJECTION_ID: string;
/**
* Creates an AssessmentTemplate from an existing CfnAssessmentTemplate.
*
* This method is provided to bridge the gap with L2 constructs since no L2 constructs
* exist for Inspector resources yet. It allows working with CfnAssessmentTemplate (L1)
* resources through the IAssessmentTemplate interface.
*/
static fromCfnAssessmentTemplate(scope: Construct, id: string, template: CfnAssessmentTemplate): IAssessmentTemplate;
}

View File

@@ -0,0 +1 @@
"use strict";var __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},__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};Object.defineProperty(exports,"__esModule",{value:!0}),exports.AssessmentTemplate=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var core_1=()=>{var tmp=require("../../core");return core_1=()=>tmp,tmp},prop_injectable_1=()=>{var tmp=require("../../core/lib/prop-injectable");return prop_injectable_1=()=>tmp,tmp};let AssessmentTemplate=(()=>{let _classDecorators=[prop_injectable_1().propertyInjectable],_classDescriptor,_classExtraInitializers=[],_classThis,_classSuper=core_1().Resource;var AssessmentTemplate2=class extends _classSuper{static{_classThis=this}static{const _metadata=typeof Symbol=="function"&&Symbol.metadata?Object.create(_classSuper[Symbol.metadata]??null):void 0;__esDecorate(null,_classDescriptor={value:_classThis},_classDecorators,{kind:"class",name:_classThis.name,metadata:_metadata},null,_classExtraInitializers),AssessmentTemplate2=_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.aws_inspector.AssessmentTemplate",version:"2.252.0"};static PROPERTY_INJECTION_ID="aws-cdk-lib.aws-inspector.AssessmentTemplate";static fromCfnAssessmentTemplate(scope,id,template){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_inspector_CfnAssessmentTemplate(template)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.fromCfnAssessmentTemplate),error}return new class extends core_1().Resource{assessmentTemplateArn;constructor(){super(scope,id),this.assessmentTemplateArn=template.attrArn}get assessmentTemplateRef(){return{assessmentTemplateArn:this.assessmentTemplateArn}}}}static{__runInitializers(_classThis,_classExtraInitializers)}};return AssessmentTemplate2=_classThis})();exports.AssessmentTemplate=AssessmentTemplate;

View File

@@ -0,0 +1,2 @@
export * from './inspector.generated';
export * from './assessment-template';

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.CfnAssessmentTarget=void 0,Object.defineProperty(exports,_noFold="CfnAssessmentTarget",{enumerable:!0,configurable:!0,get:()=>{var value=require("./inspector.generated").CfnAssessmentTarget;return Object.defineProperty(exports,_noFold="CfnAssessmentTarget",{enumerable:!0,configurable:!0,value}),value}}),exports.CfnAssessmentTemplate=void 0,Object.defineProperty(exports,_noFold="CfnAssessmentTemplate",{enumerable:!0,configurable:!0,get:()=>{var value=require("./inspector.generated").CfnAssessmentTemplate;return Object.defineProperty(exports,_noFold="CfnAssessmentTemplate",{enumerable:!0,configurable:!0,value}),value}}),exports.CfnResourceGroup=void 0,Object.defineProperty(exports,_noFold="CfnResourceGroup",{enumerable:!0,configurable:!0,get:()=>{var value=require("./inspector.generated").CfnResourceGroup;return Object.defineProperty(exports,_noFold="CfnResourceGroup",{enumerable:!0,configurable:!0,value}),value}}),exports.AssessmentTemplate=void 0,Object.defineProperty(exports,_noFold="AssessmentTemplate",{enumerable:!0,configurable:!0,get:()=>{var value=require("./assessment-template").AssessmentTemplate;return Object.defineProperty(exports,_noFold="AssessmentTemplate",{enumerable:!0,configurable:!0,value}),value}});

View File

@@ -0,0 +1,347 @@
import * as cdk from "../../core/lib";
import * as constructs from "constructs";
import * as cfn_parse from "../../core/lib/helpers-internal";
import { aws_inspector as inspectorRefs } from "../../interfaces";
import { AssessmentTargetReference, AssessmentTemplateReference, IAssessmentTargetRef, IAssessmentTemplateRef, IResourceGroupRef, ResourceGroupReference } from "../../interfaces/generated/aws-inspector-interfaces.generated";
/**
* The `AWS::Inspector::AssessmentTarget` resource is used to create Amazon Inspector assessment targets, which specify the Amazon EC2 instances that will be analyzed during an assessment run.
*
* @cloudformationResource AWS::Inspector::AssessmentTarget
* @stability external
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-assessmenttarget.html
*/
export declare class CfnAssessmentTarget extends cdk.CfnResource implements cdk.IInspectable, IAssessmentTargetRef {
/**
* The CloudFormation resource type name for this resource class.
*/
static readonly CFN_RESOURCE_TYPE_NAME: string;
/**
* Build a CfnAssessmentTarget from CloudFormation properties
*
* A factory method that creates a new instance of this class from an object
* containing the CloudFormation properties of this resource.
* Used in the @aws-cdk/cloudformation-include module.
*
* @internal
*/
static _fromCloudFormation(scope: constructs.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnAssessmentTarget;
/**
* Checks whether the given object is a CfnAssessmentTarget
*/
static isCfnAssessmentTarget(x: any): x is CfnAssessmentTarget;
static arnForAssessmentTarget(resource: IAssessmentTargetRef): string;
/**
* The name of the Amazon Inspector assessment target.
*/
private _assessmentTargetName?;
/**
* The ARN that specifies the resource group that is used to create the assessment target.
*/
private _resourceGroupArn?;
protected readonly cfnPropertyNames: Record<string, string>;
/**
* Create a new `AWS::Inspector::AssessmentTarget`.
*
* @param scope Scope in which this resource is defined
* @param id Construct identifier for this resource (unique in its scope)
* @param props Resource properties
*/
constructor(scope: constructs.Construct, id: string, props?: CfnAssessmentTargetProps);
get assessmentTargetRef(): AssessmentTargetReference;
/**
* The name of the Amazon Inspector assessment target.
*/
get assessmentTargetName(): string | undefined;
/**
* The name of the Amazon Inspector assessment target.
*/
set assessmentTargetName(value: string | undefined);
/**
* The ARN that specifies the resource group that is used to create the assessment target.
*/
get resourceGroupArn(): string | undefined;
/**
* The ARN that specifies the resource group that is used to create the assessment target.
*/
set resourceGroupArn(value: string | undefined);
/**
* The Amazon Resource Name (ARN) that specifies the assessment target that is created.
*
* @cloudformationAttribute Arn
*/
get attrArn(): string;
protected get cfnProperties(): Record<string, any>;
/**
* Examines the CloudFormation resource and discloses attributes
*
* @param inspector tree inspector to collect and process attributes
*/
inspect(inspector: cdk.TreeInspector): void;
protected renderProperties(props: Record<string, any>): Record<string, any>;
}
/**
* Properties for defining a `CfnAssessmentTarget`
*
* @struct
* @stability external
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-assessmenttarget.html
*/
export interface CfnAssessmentTargetProps {
/**
* The name of the Amazon Inspector assessment target.
*
* The name must be unique within the AWS account .
*
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-assessmenttarget.html#cfn-inspector-assessmenttarget-assessmenttargetname
*/
readonly assessmentTargetName?: string;
/**
* The ARN that specifies the resource group that is used to create the assessment target.
*
* If `resourceGroupArn` is not specified, all EC2 instances in the current AWS account and Region are included in the assessment target.
*
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-assessmenttarget.html#cfn-inspector-assessmenttarget-resourcegrouparn
*/
readonly resourceGroupArn?: inspectorRefs.IResourceGroupRef | string;
}
/**
* The `AWS::Inspector::AssessmentTemplate` resource creates an Amazon Inspector assessment template, which specifies the Inspector assessment targets that will be evaluated by an assessment run and its related configurations.
*
* @cloudformationResource AWS::Inspector::AssessmentTemplate
* @stability external
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-assessmenttemplate.html
*/
export declare class CfnAssessmentTemplate extends cdk.CfnResource implements cdk.IInspectable, IAssessmentTemplateRef {
/**
* The CloudFormation resource type name for this resource class.
*/
static readonly CFN_RESOURCE_TYPE_NAME: string;
/**
* Build a CfnAssessmentTemplate from CloudFormation properties
*
* A factory method that creates a new instance of this class from an object
* containing the CloudFormation properties of this resource.
* Used in the @aws-cdk/cloudformation-include module.
*
* @internal
*/
static _fromCloudFormation(scope: constructs.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnAssessmentTemplate;
/**
* Checks whether the given object is a CfnAssessmentTemplate
*/
static isCfnAssessmentTemplate(x: any): x is CfnAssessmentTemplate;
static arnForAssessmentTemplate(resource: IAssessmentTemplateRef): string;
/**
* The ARN of the assessment target to be included in the assessment template.
*/
private _assessmentTargetArn;
/**
* The user-defined name that identifies the assessment template that you want to create.
*/
private _assessmentTemplateName?;
/**
* The duration of the assessment run in seconds.
*/
private _durationInSeconds;
/**
* The ARNs of the rules packages that you want to use in the assessment template.
*/
private _rulesPackageArns;
/**
* The user-defined attributes that are assigned to every finding that is generated by the assessment run that uses this assessment template.
*/
private _userAttributesForFindings?;
protected readonly cfnPropertyNames: Record<string, string>;
/**
* Create a new `AWS::Inspector::AssessmentTemplate`.
*
* @param scope Scope in which this resource is defined
* @param id Construct identifier for this resource (unique in its scope)
* @param props Resource properties
*/
constructor(scope: constructs.Construct, id: string, props: CfnAssessmentTemplateProps);
get assessmentTemplateRef(): AssessmentTemplateReference;
/**
* The ARN of the assessment target to be included in the assessment template.
*/
get assessmentTargetArn(): string;
/**
* The ARN of the assessment target to be included in the assessment template.
*/
set assessmentTargetArn(value: string);
/**
* The user-defined name that identifies the assessment template that you want to create.
*/
get assessmentTemplateName(): string | undefined;
/**
* The user-defined name that identifies the assessment template that you want to create.
*/
set assessmentTemplateName(value: string | undefined);
/**
* The duration of the assessment run in seconds.
*/
get durationInSeconds(): number;
/**
* The duration of the assessment run in seconds.
*/
set durationInSeconds(value: number);
/**
* The ARNs of the rules packages that you want to use in the assessment template.
*/
get rulesPackageArns(): Array<string>;
/**
* The ARNs of the rules packages that you want to use in the assessment template.
*/
set rulesPackageArns(value: Array<string>);
/**
* The user-defined attributes that are assigned to every finding that is generated by the assessment run that uses this assessment template.
*/
get userAttributesForFindings(): Array<cdk.CfnTag | cdk.IResolvable> | cdk.IResolvable | undefined;
/**
* The user-defined attributes that are assigned to every finding that is generated by the assessment run that uses this assessment template.
*/
set userAttributesForFindings(value: Array<cdk.CfnTag | cdk.IResolvable> | cdk.IResolvable | undefined);
/**
* The Amazon Resource Name (ARN) that specifies the assessment template that is created.
*
* @cloudformationAttribute Arn
*/
get attrArn(): string;
protected get cfnProperties(): Record<string, any>;
/**
* Examines the CloudFormation resource and discloses attributes
*
* @param inspector tree inspector to collect and process attributes
*/
inspect(inspector: cdk.TreeInspector): void;
protected renderProperties(props: Record<string, any>): Record<string, any>;
}
/**
* Properties for defining a `CfnAssessmentTemplate`
*
* @struct
* @stability external
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-assessmenttemplate.html
*/
export interface CfnAssessmentTemplateProps {
/**
* The ARN of the assessment target to be included in the assessment template.
*
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-assessmenttemplate.html#cfn-inspector-assessmenttemplate-assessmenttargetarn
*/
readonly assessmentTargetArn: inspectorRefs.IAssessmentTargetRef | string;
/**
* The user-defined name that identifies the assessment template that you want to create.
*
* You can create several assessment templates for the same assessment target. The names of the assessment templates that correspond to a particular assessment target must be unique.
*
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-assessmenttemplate.html#cfn-inspector-assessmenttemplate-assessmenttemplatename
*/
readonly assessmentTemplateName?: string;
/**
* The duration of the assessment run in seconds.
*
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-assessmenttemplate.html#cfn-inspector-assessmenttemplate-durationinseconds
*/
readonly durationInSeconds: number;
/**
* The ARNs of the rules packages that you want to use in the assessment template.
*
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-assessmenttemplate.html#cfn-inspector-assessmenttemplate-rulespackagearns
*/
readonly rulesPackageArns: Array<string>;
/**
* The user-defined attributes that are assigned to every finding that is generated by the assessment run that uses this assessment template.
*
* Within an assessment template, each key must be unique.
*
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-assessmenttemplate.html#cfn-inspector-assessmenttemplate-userattributesforfindings
*/
readonly userAttributesForFindings?: Array<cdk.CfnTag | cdk.IResolvable> | cdk.IResolvable;
}
/**
* The `AWS::Inspector::ResourceGroup` resource is used to create Amazon Inspector resource groups.
*
* A resource group defines a set of tags that, when queried, identify the AWS resources that make up the assessment target.
*
* @cloudformationResource AWS::Inspector::ResourceGroup
* @stability external
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-resourcegroup.html
*/
export declare class CfnResourceGroup extends cdk.CfnResource implements cdk.IInspectable, IResourceGroupRef {
/**
* The CloudFormation resource type name for this resource class.
*/
static readonly CFN_RESOURCE_TYPE_NAME: string;
/**
* Build a CfnResourceGroup from CloudFormation properties
*
* A factory method that creates a new instance of this class from an object
* containing the CloudFormation properties of this resource.
* Used in the @aws-cdk/cloudformation-include module.
*
* @internal
*/
static _fromCloudFormation(scope: constructs.Construct, id: string, resourceAttributes: any, options: cfn_parse.FromCloudFormationOptions): CfnResourceGroup;
/**
* Checks whether the given object is a CfnResourceGroup
*/
static isCfnResourceGroup(x: any): x is CfnResourceGroup;
static arnForResourceGroup(resource: IResourceGroupRef): string;
/**
* The tags (key and value pairs) that will be associated with the resource group.
*/
private _resourceGroupTags;
protected readonly cfnPropertyNames: Record<string, string>;
/**
* Create a new `AWS::Inspector::ResourceGroup`.
*
* @param scope Scope in which this resource is defined
* @param id Construct identifier for this resource (unique in its scope)
* @param props Resource properties
*/
constructor(scope: constructs.Construct, id: string, props: CfnResourceGroupProps);
get resourceGroupRef(): ResourceGroupReference;
/**
* The tags (key and value pairs) that will be associated with the resource group.
*/
get resourceGroupTags(): Array<cdk.CfnTag | cdk.IResolvable> | cdk.IResolvable;
/**
* The tags (key and value pairs) that will be associated with the resource group.
*/
set resourceGroupTags(value: Array<cdk.CfnTag | cdk.IResolvable> | cdk.IResolvable);
/**
* The Amazon Resource Name (ARN) that specifies the resource group that is created.
*
* @cloudformationAttribute Arn
*/
get attrArn(): string;
protected get cfnProperties(): Record<string, any>;
/**
* Examines the CloudFormation resource and discloses attributes
*
* @param inspector tree inspector to collect and process attributes
*/
inspect(inspector: cdk.TreeInspector): void;
protected renderProperties(props: Record<string, any>): Record<string, any>;
}
/**
* Properties for defining a `CfnResourceGroup`
*
* @struct
* @stability external
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-resourcegroup.html
*/
export interface CfnResourceGroupProps {
/**
* The tags (key and value pairs) that will be associated with the resource group.
*
* For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
*
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-inspector-resourcegroup.html#cfn-inspector-resourcegroup-resourcegrouptags
*/
readonly resourceGroupTags: Array<cdk.CfnTag | cdk.IResolvable> | cdk.IResolvable;
}
export type { IAssessmentTargetRef, AssessmentTargetReference };
export type { IAssessmentTemplateRef, AssessmentTemplateReference };
export type { IResourceGroupRef, ResourceGroupReference };

File diff suppressed because one or more lines are too long