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,293 @@
import * as cdk from "../../core/lib";
import * as constructs from "constructs";
import * as cfn_parse from "../../core/lib/helpers-internal";
import { INotificationRuleRef, NotificationRuleReference } from "../../interfaces/generated/aws-codestarnotifications-interfaces.generated";
/**
* Creates a notification rule for a resource.
*
* The rule specifies the events you want notifications about and the targets (such as Amazon Simple Notification Service topics or clients configured for Slack) where you want to receive them.
*
* @cloudformationResource AWS::CodeStarNotifications::NotificationRule
* @stability external
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codestarnotifications-notificationrule.html
*/
export declare class CfnNotificationRule extends cdk.CfnResource implements cdk.IInspectable, INotificationRuleRef, cdk.ITaggable {
/**
* The CloudFormation resource type name for this resource class.
*/
static readonly CFN_RESOURCE_TYPE_NAME: string;
/**
* Build a CfnNotificationRule 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): CfnNotificationRule;
/**
* Checks whether the given object is a CfnNotificationRule
*/
static isCfnNotificationRule(x: any): x is CfnNotificationRule;
static arnForNotificationRule(resource: INotificationRuleRef): string;
/**
* The name or email alias of the person who created the notification rule.
*/
private _createdBy?;
/**
* The level of detail to include in the notifications for this resource.
*/
private _detailType;
/**
* The event type associated with this notification rule.
*/
private _eventTypeId?;
/**
* A list of event types associated with this notification rule.
*/
private _eventTypeIds;
/**
* The name for the notification rule.
*/
private _name;
/**
* The Amazon Resource Name (ARN) of the resource to associate with the notification rule.
*/
private _resource;
/**
* The status of the notification rule.
*/
private _status?;
/**
* Tag Manager which manages the tags for this resource
*/
readonly tags: cdk.TagManager;
/**
* A list of tags to apply to this notification rule.
*/
private _tagsRaw?;
/**
* The Amazon Resource Name (ARN) of the Amazon topic or client.
*/
private _targetAddress?;
/**
* A list of Amazon Resource Names (ARNs) of Amazon topics and clients to associate with the notification rule.
*/
private _targets;
protected readonly cfnPropertyNames: Record<string, string>;
/**
* Create a new `AWS::CodeStarNotifications::NotificationRule`.
*
* @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: CfnNotificationRuleProps);
get notificationRuleRef(): NotificationRuleReference;
/**
* The name or email alias of the person who created the notification rule.
*/
get createdBy(): string | undefined;
/**
* The name or email alias of the person who created the notification rule.
*/
set createdBy(value: string | undefined);
/**
* The level of detail to include in the notifications for this resource.
*/
get detailType(): string;
/**
* The level of detail to include in the notifications for this resource.
*/
set detailType(value: string);
/**
* The event type associated with this notification rule.
*/
get eventTypeId(): string | undefined;
/**
* The event type associated with this notification rule.
*/
set eventTypeId(value: string | undefined);
/**
* A list of event types associated with this notification rule.
*/
get eventTypeIds(): Array<string>;
/**
* A list of event types associated with this notification rule.
*/
set eventTypeIds(value: Array<string>);
/**
* The name for the notification rule.
*/
get name(): string;
/**
* The name for the notification rule.
*/
set name(value: string);
/**
* The Amazon Resource Name (ARN) of the resource to associate with the notification rule.
*/
get resource(): string;
/**
* The Amazon Resource Name (ARN) of the resource to associate with the notification rule.
*/
set resource(value: string);
/**
* The status of the notification rule.
*/
get status(): string | undefined;
/**
* The status of the notification rule.
*/
set status(value: string | undefined);
/**
* A list of tags to apply to this notification rule.
*/
get tagsRaw(): Record<string, string> | undefined;
/**
* A list of tags to apply to this notification rule.
*/
set tagsRaw(value: Record<string, string> | undefined);
/**
* The Amazon Resource Name (ARN) of the Amazon topic or client.
*/
get targetAddress(): string | undefined;
/**
* The Amazon Resource Name (ARN) of the Amazon topic or client.
*/
set targetAddress(value: string | undefined);
/**
* A list of Amazon Resource Names (ARNs) of Amazon topics and clients to associate with the notification rule.
*/
get targets(): Array<cdk.IResolvable | CfnNotificationRule.TargetProperty> | cdk.IResolvable;
/**
* A list of Amazon Resource Names (ARNs) of Amazon topics and clients to associate with the notification rule.
*/
set targets(value: Array<cdk.IResolvable | CfnNotificationRule.TargetProperty> | cdk.IResolvable);
/**
* The Amazon Resource Name (ARN) of the notification rule.
*
* @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 CfnNotificationRule {
/**
* Information about the topics or clients associated with a notification rule.
*
* @struct
* @stability external
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codestarnotifications-notificationrule-target.html
*/
interface TargetProperty {
/**
* The Amazon Resource Name (ARN) of the topic or client.
*
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codestarnotifications-notificationrule-target.html#cfn-codestarnotifications-notificationrule-target-targetaddress
*/
readonly targetAddress: string;
/**
* The target type. Can be an Amazon Simple Notification Service topic or client.
*
* - Amazon Simple Notification Service topics are specified as `SNS` .
* - clients are specified as `AWSChatbotSlack` .
* - clients for Microsoft Teams are specified as `AWSChatbotMicrosoftTeams` .
*
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codestarnotifications-notificationrule-target.html#cfn-codestarnotifications-notificationrule-target-targettype
*/
readonly targetType: string;
}
}
/**
* Properties for defining a `CfnNotificationRule`
*
* @struct
* @stability external
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codestarnotifications-notificationrule.html
*/
export interface CfnNotificationRuleProps {
/**
* The name or email alias of the person who created the notification rule.
*
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codestarnotifications-notificationrule.html#cfn-codestarnotifications-notificationrule-createdby
*/
readonly createdBy?: string;
/**
* The level of detail to include in the notifications for this resource.
*
* `BASIC` will include only the contents of the event as it would appear in Amazon CloudWatch. `FULL` will include any supplemental information provided by AWS CodeStar Notifications and/or the service for the resource for which the notification is created.
*
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codestarnotifications-notificationrule.html#cfn-codestarnotifications-notificationrule-detailtype
*/
readonly detailType: string;
/**
* The event type associated with this notification rule.
*
* For a complete list of event types and IDs, see [Notification concepts](https://docs.aws.amazon.com/dtconsole/latest/userguide/concepts.html#concepts-api) in the *Developer Tools Console User Guide* .
*
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codestarnotifications-notificationrule.html#cfn-codestarnotifications-notificationrule-eventtypeid
*/
readonly eventTypeId?: string;
/**
* A list of event types associated with this notification rule.
*
* For a complete list of event types and IDs, see [Notification concepts](https://docs.aws.amazon.com/dtconsole/latest/userguide/concepts.html#concepts-api) in the *Developer Tools Console User Guide* .
*
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codestarnotifications-notificationrule.html#cfn-codestarnotifications-notificationrule-eventtypeids
*/
readonly eventTypeIds: Array<string>;
/**
* The name for the notification rule.
*
* Notification rule names must be unique in your AWS account .
*
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codestarnotifications-notificationrule.html#cfn-codestarnotifications-notificationrule-name
*/
readonly name: string;
/**
* The Amazon Resource Name (ARN) of the resource to associate with the notification rule.
*
* Supported resources include pipelines in AWS CodePipeline , repositories in AWS CodeCommit , and build projects in AWS CodeBuild .
*
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codestarnotifications-notificationrule.html#cfn-codestarnotifications-notificationrule-resource
*/
readonly resource: string;
/**
* The status of the notification rule.
*
* The default value is `ENABLED` . If the status is set to `DISABLED` , notifications aren't sent for the notification rule.
*
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codestarnotifications-notificationrule.html#cfn-codestarnotifications-notificationrule-status
*/
readonly status?: string;
/**
* A list of tags to apply to this notification rule.
*
* Key names cannot start with " `aws` ".
*
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codestarnotifications-notificationrule.html#cfn-codestarnotifications-notificationrule-tags
*/
readonly tags?: Record<string, string>;
/**
* The Amazon Resource Name (ARN) of the Amazon topic or client.
*
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codestarnotifications-notificationrule.html#cfn-codestarnotifications-notificationrule-targetaddress
*/
readonly targetAddress?: string;
/**
* A list of Amazon Resource Names (ARNs) of Amazon topics and clients to associate with the notification rule.
*
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codestarnotifications-notificationrule.html#cfn-codestarnotifications-notificationrule-targets
*/
readonly targets: Array<cdk.IResolvable | CfnNotificationRule.TargetProperty> | cdk.IResolvable;
}
export type { INotificationRuleRef, NotificationRuleReference };

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,4 @@
export * from './codestarnotifications.generated';
export * from './notification-rule';
export * from './notification-rule-source';
export * from './notification-rule-target';

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.CfnNotificationRule=void 0,Object.defineProperty(exports,_noFold="CfnNotificationRule",{enumerable:!0,configurable:!0,get:()=>{var value=require("./codestarnotifications.generated").CfnNotificationRule;return Object.defineProperty(exports,_noFold="CfnNotificationRule",{enumerable:!0,configurable:!0,value}),value}}),exports.DetailType=void 0,Object.defineProperty(exports,_noFold="DetailType",{enumerable:!0,configurable:!0,get:()=>{var value=require("./notification-rule").DetailType;return Object.defineProperty(exports,_noFold="DetailType",{enumerable:!0,configurable:!0,value}),value}}),exports.NotificationRule=void 0,Object.defineProperty(exports,_noFold="NotificationRule",{enumerable:!0,configurable:!0,get:()=>{var value=require("./notification-rule").NotificationRule;return Object.defineProperty(exports,_noFold="NotificationRule",{enumerable:!0,configurable:!0,value}),value}});

View File

@@ -0,0 +1,20 @@
import type * as constructs from 'constructs';
/**
* Information about the Codebuild or CodePipeline associated with a notification source.
*/
export interface NotificationRuleSourceConfig {
/**
* The Amazon Resource Name (ARN) of the notification source.
*/
readonly sourceArn: string;
}
/**
* Represents a notification source
* The source that allows CodeBuild and CodePipeline to associate with this rule.
*/
export interface INotificationRuleSource {
/**
* Returns a source configuration for notification rule.
*/
bindAsNotificationRuleSource(scope: constructs.Construct): NotificationRuleSourceConfig;
}

View File

@@ -0,0 +1 @@
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});

View File

@@ -0,0 +1,24 @@
import type * as constructs from 'constructs';
/**
* Information about the SNS topic or AWS Chatbot client associated with a notification target.
*/
export interface NotificationRuleTargetConfig {
/**
* The target type. Can be an Amazon SNS topic or AWS Chatbot client.
*/
readonly targetType: string;
/**
* The Amazon Resource Name (ARN) of the Amazon SNS topic or AWS Chatbot client.
*/
readonly targetAddress: string;
}
/**
* Represents a notification target
* That allows AWS Chatbot and SNS topic to associate with this rule target.
*/
export interface INotificationRuleTarget {
/**
* Returns a target configuration for notification rule.
*/
bindAsNotificationRuleTarget(scope: constructs.Construct): NotificationRuleTargetConfig;
}

View File

@@ -0,0 +1 @@
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});

View File

@@ -0,0 +1,131 @@
import type * as constructs from 'constructs';
import type { INotificationRuleSource } from './notification-rule-source';
import type { INotificationRuleTarget } from './notification-rule-target';
import type { IResource } from '../../core';
import { Resource } from '../../core';
import type { INotificationRuleRef, NotificationRuleReference } from '../../interfaces/generated/aws-codestarnotifications-interfaces.generated';
/**
* The level of detail to include in the notifications for this resource.
*/
export declare enum DetailType {
/**
* BASIC will include only the contents of the event as it would appear in AWS CloudWatch
*/
BASIC = "BASIC",
/**
* FULL will include any supplemental information provided by AWS CodeStar Notifications and/or the service for the resource for which the notification is created.
*/
FULL = "FULL"
}
/**
* Standard set of options for `notifyOnXxx` codestar notification handler on construct
*/
export interface NotificationRuleOptions {
/**
* The name for the notification rule.
* Notification rule names must be unique in your AWS account.
*
* @default - generated from the `id`
*/
readonly notificationRuleName?: string;
/**
* The status of the notification rule.
* If the enabled is set to DISABLED, notifications aren't sent for the notification rule.
*
* @default true
*/
readonly enabled?: boolean;
/**
* The level of detail to include in the notifications for this resource.
* BASIC will include only the contents of the event as it would appear in AWS CloudWatch.
* FULL will include any supplemental information provided by AWS CodeStar Notifications and/or the service for the resource for which the notification is created.
*
* @default DetailType.FULL
*/
readonly detailType?: DetailType;
/**
* The name or email alias of the person who created the notification rule.
* If not specified, it means that the creator's alias is not provided.
*
* @default - No alias provided
*/
readonly createdBy?: string;
}
/**
* Properties for a new notification rule
*/
export interface NotificationRuleProps extends NotificationRuleOptions {
/**
* A list of event types associated with this notification rule.
* For a complete list of event types and IDs, see Notification concepts in the Developer Tools Console User Guide.
* @see https://docs.aws.amazon.com/dtconsole/latest/userguide/concepts.html#concepts-api
*/
readonly events: string[];
/**
* The Amazon Resource Name (ARN) of the resource to associate with the notification rule.
* Currently, Supported sources include pipelines in AWS CodePipeline, build projects in AWS CodeBuild, and repositories in AWS CodeCommit in this L2 constructor.
* @see https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codestarnotifications-notificationrule.html#cfn-codestarnotifications-notificationrule-resource
*/
readonly source: INotificationRuleSource;
/**
* The targets to register for the notification destination.
*
* @default - No targets are added to the rule. Use `addTarget()` to add a target.
*/
readonly targets?: INotificationRuleTarget[];
}
/**
* Represents a notification rule
*/
export interface INotificationRule extends IResource, INotificationRuleRef {
/**
* The ARN of the notification rule (i.e. arn:aws:codestar-notifications:::notificationrule/01234abcde)
*
* @attribute
*/
readonly notificationRuleArn: string;
/**
* Adds target to notification rule
*
* @param target The SNS topic or AWS Chatbot Slack target
* @returns boolean - return true if it had any effect
*/
addTarget(target: INotificationRuleTarget): boolean;
}
/**
* A new notification rule
*
* @resource AWS::CodeStarNotifications::NotificationRule
*/
export declare class NotificationRule extends Resource implements INotificationRule {
/** Uniquely identifies this class. */
static readonly PROPERTY_INJECTION_ID: string;
/**
* Import an existing notification rule provided an ARN
* @param scope The parent creating construct
* @param id The construct's name
* @param notificationRuleArn Notification rule ARN (i.e. arn:aws:codestar-notifications:::notificationrule/01234abcde)
*/
static fromNotificationRuleArn(scope: constructs.Construct, id: string, notificationRuleArn: string): INotificationRule;
/**
* @attribute
*/
readonly notificationRuleArn: string;
get notificationRuleRef(): NotificationRuleReference;
private readonly targets;
private readonly events;
constructor(scope: constructs.Construct, id: string, props: NotificationRuleProps);
/**
* Adds target to notification rule
* @param target The SNS topic or AWS Chatbot Slack target
*/
addTarget(target: INotificationRuleTarget): boolean;
/**
* Adds events to notification rule
*
* @see https://docs.aws.amazon.com/dtconsole/latest/userguide/concepts.html#events-ref-pipeline
* @see https://docs.aws.amazon.com/dtconsole/latest/userguide/concepts.html#events-ref-buildproject
* @param events The list of event types for AWS Codebuild and AWS CodePipeline
*/
private addEvents;
}

File diff suppressed because one or more lines are too long