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,36 @@
import * as codeguruprofiler from "./codeguruprofiler.generated";
import * as iam from "../../aws-iam";
import * as cdk from "../../core/lib";
/**
* Collection of grant methods for a IProfilingGroupRef
*/
export declare class ProfilingGroupGrants {
/**
* Creates grants for ProfilingGroupGrants
*/
static fromProfilingGroup(resource: codeguruprofiler.IProfilingGroupRef): ProfilingGroupGrants;
protected readonly resource: codeguruprofiler.IProfilingGroupRef;
private constructor();
/**
* Grant the given identity custom permissions
*/
actions(grantee: iam.IGrantable, actions: Array<string>, options?: cdk.PermissionsOptions): iam.Grant;
/**
* Grant access to publish profiling information to the Profiling Group to the given identity.
*
* This will grant the following permissions:
*
* - codeguru-profiler:ConfigureAgent
* - codeguru-profiler:PostAgentProfile
*/
publish(grantee: iam.IGrantable): iam.Grant;
/**
* Grant access to read profiling information from the Profiling Group to the given identity.
*
* This will grant the following permissions:
*
* - codeguru-profiler:GetProfile
* - codeguru-profiler:DescribeProfilingGroup
*/
read(grantee: iam.IGrantable): iam.Grant;
}

View File

@@ -0,0 +1 @@
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ProfilingGroupGrants=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var codeguruprofiler=()=>{var tmp=require("./codeguruprofiler.generated");return codeguruprofiler=()=>tmp,tmp},iam=()=>{var tmp=require("../../aws-iam");return iam=()=>tmp,tmp};class ProfilingGroupGrants{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_codeguruprofiler.ProfilingGroupGrants",version:"2.252.0"};static fromProfilingGroup(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_codeguruprofiler_IProfilingGroupRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.fromProfilingGroup),error}return new ProfilingGroupGrants({resource})}resource;constructor(props){this.resource=props.resource}actions(grantee,actions,options={}){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_iam_IGrantable(grantee),jsiiDeprecationWarnings().aws_cdk_lib_PermissionsOptions(options)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.actions),error}return iam().Grant.addToPrincipal({actions,grantee,resourceArns:options.resourceArns??[codeguruprofiler().CfnProfilingGroup.arnForProfilingGroup(this.resource)]})}publish(grantee){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_iam_IGrantable(grantee)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.publish),error}const actions=["codeguru-profiler:ConfigureAgent","codeguru-profiler:PostAgentProfile"];return this.actions(grantee,actions,{})}read(grantee){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_iam_IGrantable(grantee)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.read),error}const actions=["codeguru-profiler:GetProfile","codeguru-profiler:DescribeProfilingGroup"];return this.actions(grantee,actions,{})}}exports.ProfilingGroupGrants=ProfilingGroupGrants;

View File

@@ -0,0 +1,217 @@
import * as cdk from "../../core/lib";
import * as constructs from "constructs";
import * as cfn_parse from "../../core/lib/helpers-internal";
import { aws_lambda as lambdaRefs } from "../../interfaces";
import { IProfilingGroupRef, ProfilingGroupReference } from "../../interfaces/generated/aws-codeguruprofiler-interfaces.generated";
/**
* Creates a profiling group.
*
* @cloudformationResource AWS::CodeGuruProfiler::ProfilingGroup
* @stability external
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codeguruprofiler-profilinggroup.html
*/
export declare class CfnProfilingGroup extends cdk.CfnResource implements cdk.IInspectable, IProfilingGroupRef, cdk.ITaggable {
/**
* The CloudFormation resource type name for this resource class.
*/
static readonly CFN_RESOURCE_TYPE_NAME: string;
/**
* Build a CfnProfilingGroup 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): CfnProfilingGroup;
/**
* Checks whether the given object is a CfnProfilingGroup
*/
static isCfnProfilingGroup(x: any): x is CfnProfilingGroup;
/**
* Creates a new IProfilingGroupRef from an ARN
*/
static fromProfilingGroupArn(scope: constructs.Construct, id: string, arn: string): IProfilingGroupRef;
/**
* Creates a new IProfilingGroupRef from a profilingGroupName
*/
static fromProfilingGroupName(scope: constructs.Construct, id: string, profilingGroupName: string): IProfilingGroupRef;
static arnForProfilingGroup(resource: IProfilingGroupRef): string;
/**
* The agent permissions attached to this profiling group.
*/
private _agentPermissions?;
/**
* Adds anomaly notifications for a profiling group.
*/
private _anomalyDetectionNotificationConfiguration?;
/**
* The compute platform of the profiling group.
*/
private _computePlatform?;
/**
* The name of the profiling group.
*/
private _profilingGroupName;
/**
* Tag Manager which manages the tags for this resource
*/
readonly tags: cdk.TagManager;
/**
* A list of tags to add to the created profiling group.
*/
private _tagsRaw?;
protected readonly cfnPropertyNames: Record<string, string>;
/**
* Create a new `AWS::CodeGuruProfiler::ProfilingGroup`.
*
* @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: CfnProfilingGroupProps);
get profilingGroupRef(): ProfilingGroupReference;
/**
* The agent permissions attached to this profiling group.
*/
get agentPermissions(): any | cdk.IResolvable | undefined;
/**
* The agent permissions attached to this profiling group.
*/
set agentPermissions(value: any | cdk.IResolvable | undefined);
/**
* Adds anomaly notifications for a profiling group.
*/
get anomalyDetectionNotificationConfiguration(): Array<CfnProfilingGroup.ChannelProperty | cdk.IResolvable> | cdk.IResolvable | undefined;
/**
* Adds anomaly notifications for a profiling group.
*/
set anomalyDetectionNotificationConfiguration(value: Array<CfnProfilingGroup.ChannelProperty | cdk.IResolvable> | cdk.IResolvable | undefined);
/**
* The compute platform of the profiling group.
*/
get computePlatform(): string | undefined;
/**
* The compute platform of the profiling group.
*/
set computePlatform(value: string | undefined);
/**
* The name of the profiling group.
*/
get profilingGroupName(): string;
/**
* The name of the profiling group.
*/
set profilingGroupName(value: string);
/**
* A list of tags to add to the created profiling group.
*/
get tagsRaw(): Array<cdk.CfnTag> | undefined;
/**
* A list of tags to add to the created profiling group.
*/
set tagsRaw(value: Array<cdk.CfnTag> | undefined);
/**
* The full Amazon Resource Name (ARN) for that profiling group.
*
* @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>;
}
export declare namespace CfnProfilingGroup {
/**
* Notification medium for users to get alerted for events that occur in application profile.
*
* We support SNS topic as a notification channel.
*
* @struct
* @stability external
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codeguruprofiler-profilinggroup-channel.html
*/
interface ChannelProperty {
/**
* The channel ID.
*
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codeguruprofiler-profilinggroup-channel.html#cfn-codeguruprofiler-profilinggroup-channel-channelid
*/
readonly channelId?: string;
/**
* The channel URI.
*
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codeguruprofiler-profilinggroup-channel.html#cfn-codeguruprofiler-profilinggroup-channel-channeluri
*/
readonly channelUri: string;
}
/**
* The agent permissions attached to this profiling group.
*
* @struct
* @stability external
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codeguruprofiler-profilinggroup-agentpermissions.html
*/
interface AgentPermissionsProperty {
/**
* The principals for the agent permissions.
*
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codeguruprofiler-profilinggroup-agentpermissions.html#cfn-codeguruprofiler-profilinggroup-agentpermissions-principals
*/
readonly principals: Array<string>;
}
}
/**
* Properties for defining a `CfnProfilingGroup`
*
* @struct
* @stability external
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codeguruprofiler-profilinggroup.html
*/
export interface CfnProfilingGroupProps {
/**
* The agent permissions attached to this profiling group.
*
* This action group grants `ConfigureAgent` and `PostAgentProfile` permissions to perform actions required by the profiling agent. The Json consists of key `Principals` .
*
* *Principals* : A list of string ARNs for the roles and users you want to grant access to the profiling group. Wildcards are not supported in the ARNs. You are allowed to provide up to 50 ARNs. An empty list is not permitted. This is a required key.
*
* For more information, see [Resource-based policies in CodeGuru Profiler](https://docs.aws.amazon.com/codeguru/latest/profiler-ug/resource-based-policies.html) in the *Amazon CodeGuru Profiler user guide* , [ConfigureAgent](https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_ConfigureAgent.html) , and [PostAgentProfile](https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_PostAgentProfile.html) .
*
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codeguruprofiler-profilinggroup.html#cfn-codeguruprofiler-profilinggroup-agentpermissions
*/
readonly agentPermissions?: any | cdk.IResolvable;
/**
* Adds anomaly notifications for a profiling group.
*
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codeguruprofiler-profilinggroup.html#cfn-codeguruprofiler-profilinggroup-anomalydetectionnotificationconfiguration
*/
readonly anomalyDetectionNotificationConfiguration?: Array<CfnProfilingGroup.ChannelProperty | cdk.IResolvable> | cdk.IResolvable;
/**
* The compute platform of the profiling group.
*
* Use `AWSLambda` if your application runs on AWS Lambda. Use `Default` if your application runs on a compute platform that is not AWS Lambda , such an Amazon EC2 instance, an on-premises server, or a different platform. If not specified, `Default` is used. This property is immutable.
*
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codeguruprofiler-profilinggroup.html#cfn-codeguruprofiler-profilinggroup-computeplatform
*/
readonly computePlatform?: string;
/**
* The name of the profiling group.
*
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codeguruprofiler-profilinggroup.html#cfn-codeguruprofiler-profilinggroup-profilinggroupname
*/
readonly profilingGroupName: lambdaRefs.IFunctionRef | string;
/**
* A list of tags to add to the created profiling group.
*
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codeguruprofiler-profilinggroup.html#cfn-codeguruprofiler-profilinggroup-tags
*/
readonly tags?: Array<cdk.CfnTag>;
}
export type { IProfilingGroupRef, ProfilingGroupReference };

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,3 @@
export * from './codeguruprofiler.generated';
export * from './codeguruprofiler-grants.generated';
export * from './profiling-group';

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.CfnProfilingGroup=void 0,Object.defineProperty(exports,_noFold="CfnProfilingGroup",{enumerable:!0,configurable:!0,get:()=>{var value=require("./codeguruprofiler.generated").CfnProfilingGroup;return Object.defineProperty(exports,_noFold="CfnProfilingGroup",{enumerable:!0,configurable:!0,value}),value}}),exports.ProfilingGroupGrants=void 0,Object.defineProperty(exports,_noFold="ProfilingGroupGrants",{enumerable:!0,configurable:!0,get:()=>{var value=require("./codeguruprofiler-grants.generated").ProfilingGroupGrants;return Object.defineProperty(exports,_noFold="ProfilingGroupGrants",{enumerable:!0,configurable:!0,value}),value}}),exports.ComputePlatform=void 0,Object.defineProperty(exports,_noFold="ComputePlatform",{enumerable:!0,configurable:!0,get:()=>{var value=require("./profiling-group").ComputePlatform;return Object.defineProperty(exports,_noFold="ComputePlatform",{enumerable:!0,configurable:!0,value}),value}}),exports.ProfilingGroup=void 0,Object.defineProperty(exports,_noFold="ProfilingGroup",{enumerable:!0,configurable:!0,get:()=>{var value=require("./profiling-group").ProfilingGroup;return Object.defineProperty(exports,_noFold="ProfilingGroup",{enumerable:!0,configurable:!0,value}),value}});

View File

@@ -0,0 +1,145 @@
import type { Construct } from 'constructs';
import { ProfilingGroupGrants } from './codeguruprofiler-grants.generated';
import type { IProfilingGroupRef, ProfilingGroupReference } from './codeguruprofiler.generated';
import type { Grant, IGrantable } from '../../aws-iam';
import type { IResource } from '../../core';
import { Resource } from '../../core';
/**
* The compute platform of the profiling group.
*/
export declare enum ComputePlatform {
/**
* Use AWS_LAMBDA if your application runs on AWS Lambda.
*/
AWS_LAMBDA = "AWSLambda",
/**
* Use Default if your application runs on a compute platform that is not AWS Lambda,
* such an Amazon EC2 instance, an on-premises server, or a different platform.
*/
DEFAULT = "Default"
}
/**
* IResource represents a Profiling Group.
*/
export interface IProfilingGroup extends IResource, IProfilingGroupRef {
/**
* The name of the profiling group.
*
* @attribute
*/
readonly profilingGroupName: string;
/**
* The ARN of the profiling group.
*
* @attribute
*/
readonly profilingGroupArn: string;
/**
* Grant access to publish profiling information to the Profiling Group to the given identity.
*
* This will grant the following permissions:
*
* - codeguru-profiler:ConfigureAgent
* - codeguru-profiler:PostAgentProfile
*
* @param grantee Principal to grant publish rights to
*/
grantPublish(grantee: IGrantable): Grant;
/**
* Grant access to read profiling information from the Profiling Group to the given identity.
*
* This will grant the following permissions:
*
* - codeguru-profiler:GetProfile
* - codeguru-profiler:DescribeProfilingGroup
*
* @param grantee Principal to grant read rights to
*/
grantRead(grantee: IGrantable): Grant;
}
declare abstract class ProfilingGroupBase extends Resource implements IProfilingGroup {
abstract readonly profilingGroupName: string;
abstract readonly profilingGroupArn: string;
/**
* Collection of grant methods for a ProfilingGroup
*/
readonly grants: ProfilingGroupGrants;
get profilingGroupRef(): ProfilingGroupReference;
/**
* Grant access to publish profiling information to the Profiling Group to the given identity.
*
* This will grant the following permissions:
*
* - codeguru-profiler:ConfigureAgent
* - codeguru-profiler:PostAgentProfile
*
*
* The use of this method is discouraged. Please use `grants.publish()` instead.
*
* [disable-awslint:no-grants]
*
* @param grantee Principal to grant publish rights to
*/
grantPublish(grantee: IGrantable): Grant;
/**
* Grant access to read profiling information from the Profiling Group to the given identity.
*
* This will grant the following permissions:
*
* - codeguru-profiler:GetProfile
* - codeguru-profiler:DescribeProfilingGroup
*
*
* The use of this method is discouraged. Please use `grants.read()` instead.
*
* [disable-awslint:no-grants]
*
* @param grantee Principal to grant read rights to
*/
grantRead(grantee: IGrantable): Grant;
}
/**
* Properties for creating a new Profiling Group.
*/
export interface ProfilingGroupProps {
/**
* A name for the profiling group.
* @default - automatically generated name.
*/
readonly profilingGroupName?: string;
/**
* The compute platform of the profiling group.
*
* @default ComputePlatform.DEFAULT
*/
readonly computePlatform?: ComputePlatform;
}
/**
* A new Profiling Group.
*/
export declare class ProfilingGroup extends ProfilingGroupBase {
/** Uniquely identifies this class. */
static readonly PROPERTY_INJECTION_ID: string;
/**
* Import an existing Profiling Group provided a Profiling Group Name.
*
* @param scope The parent creating construct
* @param id The construct's name
* @param profilingGroupName Profiling Group Name
*/
static fromProfilingGroupName(scope: Construct, id: string, profilingGroupName: string): IProfilingGroup;
/**
* Import an existing Profiling Group provided an ARN.
*
* @param scope The parent creating construct
* @param id The construct's name
* @param profilingGroupArn Profiling Group ARN
*/
static fromProfilingGroupArn(scope: Construct, id: string, profilingGroupArn: string): IProfilingGroup;
private readonly resource;
get profilingGroupName(): string;
get profilingGroupArn(): string;
constructor(scope: Construct, id: string, props?: ProfilingGroupProps);
private generateUniqueId;
}
export {};

File diff suppressed because one or more lines are too long