agent-claw: automated task changes
This commit is contained in:
13
cdk/node_modules/aws-cdk-lib/aws-cloudwatch-actions/.jsiirc.json
generated
vendored
Normal file
13
cdk/node_modules/aws-cdk-lib/aws-cloudwatch-actions/.jsiirc.json
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"targets": {
|
||||
"java": {
|
||||
"package": "software.amazon.awscdk.services.cloudwatch.actions"
|
||||
},
|
||||
"dotnet": {
|
||||
"namespace": "Amazon.CDK.AWS.CloudWatch.Actions"
|
||||
},
|
||||
"python": {
|
||||
"module": "aws_cdk.aws_cloudwatch_actions"
|
||||
}
|
||||
}
|
||||
}
|
||||
69
cdk/node_modules/aws-cdk-lib/aws-cloudwatch-actions/README.md
generated
vendored
Normal file
69
cdk/node_modules/aws-cdk-lib/aws-cloudwatch-actions/README.md
generated
vendored
Normal file
@@ -0,0 +1,69 @@
|
||||
# CloudWatch Alarm Actions library
|
||||
|
||||
|
||||
This library contains a set of classes which can be used as CloudWatch Alarm actions.
|
||||
|
||||
The currently implemented actions are: EC2 Actions, SNS Actions, SSM OpsCenter Actions, Autoscaling Actions and Application Autoscaling Actions
|
||||
|
||||
|
||||
## EC2 Action Example
|
||||
|
||||
```ts
|
||||
// Alarm must be configured with an EC2 per-instance metric
|
||||
declare const alarm: cloudwatch.Alarm;
|
||||
// Attach a reboot when alarm triggers
|
||||
alarm.addAlarmAction(
|
||||
new actions.Ec2Action(actions.Ec2InstanceAction.REBOOT),
|
||||
);
|
||||
```
|
||||
|
||||
## SSM OpsCenter Action Example
|
||||
|
||||
```ts
|
||||
declare const alarm: cloudwatch.Alarm;
|
||||
// Create an OpsItem with specific severity and category when alarm triggers
|
||||
alarm.addAlarmAction(
|
||||
new actions.SsmAction(
|
||||
actions.OpsItemSeverity.CRITICAL,
|
||||
actions.OpsItemCategory.PERFORMANCE // category is optional
|
||||
)
|
||||
);
|
||||
```
|
||||
|
||||
## SSM Incident Manager Action Example
|
||||
|
||||
```ts
|
||||
declare const alarm: cloudwatch.Alarm;
|
||||
// Create an Incident Manager incident based on a specific response plan
|
||||
alarm.addAlarmAction(
|
||||
new actions.SsmIncidentAction('ResponsePlanName')
|
||||
);
|
||||
```
|
||||
|
||||
## Lambda Action Example
|
||||
|
||||
```ts
|
||||
import * as lambda from 'aws-cdk-lib/aws-lambda'
|
||||
declare const alarm: cloudwatch.Alarm;
|
||||
declare const fn: lambda.Function;
|
||||
declare const alias: lambda.Alias;
|
||||
declare const version: lambda.Version;
|
||||
|
||||
// Attach a Lambda Function when alarm triggers
|
||||
alarm.addAlarmAction(
|
||||
new actions.LambdaAction(fn)
|
||||
);
|
||||
|
||||
// Attach a Lambda Function Alias when alarm triggers
|
||||
alarm.addAlarmAction(
|
||||
new actions.LambdaAction(alias)
|
||||
);
|
||||
|
||||
// Attach a Lambda Function version when alarm triggers
|
||||
alarm.addAlarmAction(
|
||||
new actions.LambdaAction(version)
|
||||
);
|
||||
|
||||
```
|
||||
|
||||
See `aws-cdk-lib/aws-cloudwatch` for more information.
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-cloudwatch-actions/index.d.ts
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-cloudwatch-actions/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export * from './lib';
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-cloudwatch-actions/index.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-cloudwatch-actions/index.js
generated
vendored
Normal 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.ApplicationScalingAction=void 0,Object.defineProperty(exports,_noFold="ApplicationScalingAction",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").ApplicationScalingAction;return Object.defineProperty(exports,_noFold="ApplicationScalingAction",{enumerable:!0,configurable:!0,value}),value}}),exports.AutoScalingAction=void 0,Object.defineProperty(exports,_noFold="AutoScalingAction",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").AutoScalingAction;return Object.defineProperty(exports,_noFold="AutoScalingAction",{enumerable:!0,configurable:!0,value}),value}}),exports.SnsAction=void 0,Object.defineProperty(exports,_noFold="SnsAction",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").SnsAction;return Object.defineProperty(exports,_noFold="SnsAction",{enumerable:!0,configurable:!0,value}),value}}),exports.Ec2InstanceAction=void 0,Object.defineProperty(exports,_noFold="Ec2InstanceAction",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").Ec2InstanceAction;return Object.defineProperty(exports,_noFold="Ec2InstanceAction",{enumerable:!0,configurable:!0,value}),value}}),exports.Ec2Action=void 0,Object.defineProperty(exports,_noFold="Ec2Action",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").Ec2Action;return Object.defineProperty(exports,_noFold="Ec2Action",{enumerable:!0,configurable:!0,value}),value}}),exports.OpsItemSeverity=void 0,Object.defineProperty(exports,_noFold="OpsItemSeverity",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").OpsItemSeverity;return Object.defineProperty(exports,_noFold="OpsItemSeverity",{enumerable:!0,configurable:!0,value}),value}}),exports.OpsItemCategory=void 0,Object.defineProperty(exports,_noFold="OpsItemCategory",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").OpsItemCategory;return Object.defineProperty(exports,_noFold="OpsItemCategory",{enumerable:!0,configurable:!0,value}),value}}),exports.SsmAction=void 0,Object.defineProperty(exports,_noFold="SsmAction",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").SsmAction;return Object.defineProperty(exports,_noFold="SsmAction",{enumerable:!0,configurable:!0,value}),value}}),exports.SsmIncidentAction=void 0,Object.defineProperty(exports,_noFold="SsmIncidentAction",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").SsmIncidentAction;return Object.defineProperty(exports,_noFold="SsmIncidentAction",{enumerable:!0,configurable:!0,value}),value}}),exports.LambdaAction=void 0,Object.defineProperty(exports,_noFold="LambdaAction",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lib").LambdaAction;return Object.defineProperty(exports,_noFold="LambdaAction",{enumerable:!0,configurable:!0,value}),value}});
|
||||
15
cdk/node_modules/aws-cdk-lib/aws-cloudwatch-actions/lib/appscaling.d.ts
generated
vendored
Normal file
15
cdk/node_modules/aws-cdk-lib/aws-cloudwatch-actions/lib/appscaling.d.ts
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
import type { Construct } from 'constructs';
|
||||
import type * as appscaling from '../../aws-applicationautoscaling';
|
||||
import type * as cloudwatch from '../../aws-cloudwatch';
|
||||
/**
|
||||
* Use an ApplicationAutoScaling StepScalingAction as an Alarm Action
|
||||
*/
|
||||
export declare class ApplicationScalingAction implements cloudwatch.IAlarmAction {
|
||||
private readonly stepScalingAction;
|
||||
constructor(stepScalingAction: appscaling.StepScalingAction);
|
||||
/**
|
||||
* Returns an alarm action configuration to use an ApplicationScaling StepScalingAction
|
||||
* as an alarm action
|
||||
*/
|
||||
bind(_scope: Construct, _alarm: cloudwatch.IAlarm): cloudwatch.AlarmActionConfig;
|
||||
}
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-cloudwatch-actions/lib/appscaling.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-cloudwatch-actions/lib/appscaling.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ApplicationScalingAction=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");class ApplicationScalingAction{stepScalingAction;static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_cloudwatch_actions.ApplicationScalingAction",version:"2.252.0"};constructor(stepScalingAction){this.stepScalingAction=stepScalingAction;try{jsiiDeprecationWarnings().aws_cdk_lib_aws_applicationautoscaling_StepScalingAction(stepScalingAction)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,ApplicationScalingAction),error}}bind(_scope,_alarm){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cloudwatch_IAlarm(_alarm)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.bind),error}return{alarmActionArn:this.stepScalingAction.scalingPolicyArn}}}exports.ApplicationScalingAction=ApplicationScalingAction;
|
||||
15
cdk/node_modules/aws-cdk-lib/aws-cloudwatch-actions/lib/autoscaling.d.ts
generated
vendored
Normal file
15
cdk/node_modules/aws-cdk-lib/aws-cloudwatch-actions/lib/autoscaling.d.ts
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
import type { Construct } from 'constructs';
|
||||
import type * as autoscaling from '../../aws-autoscaling';
|
||||
import type * as cloudwatch from '../../aws-cloudwatch';
|
||||
/**
|
||||
* Use an AutoScaling StepScalingAction as an Alarm Action
|
||||
*/
|
||||
export declare class AutoScalingAction implements cloudwatch.IAlarmAction {
|
||||
private readonly stepScalingAction;
|
||||
constructor(stepScalingAction: autoscaling.StepScalingAction);
|
||||
/**
|
||||
* Returns an alarm action configuration to use an AutoScaling StepScalingAction
|
||||
* as an alarm action
|
||||
*/
|
||||
bind(_scope: Construct, _alarm: cloudwatch.IAlarm): cloudwatch.AlarmActionConfig;
|
||||
}
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-cloudwatch-actions/lib/autoscaling.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-cloudwatch-actions/lib/autoscaling.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.AutoScalingAction=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");class AutoScalingAction{stepScalingAction;static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_cloudwatch_actions.AutoScalingAction",version:"2.252.0"};constructor(stepScalingAction){this.stepScalingAction=stepScalingAction;try{jsiiDeprecationWarnings().aws_cdk_lib_aws_autoscaling_StepScalingAction(stepScalingAction)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,AutoScalingAction),error}}bind(_scope,_alarm){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cloudwatch_IAlarm(_alarm)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.bind),error}return{alarmActionArn:this.stepScalingAction.scalingPolicyArn}}}exports.AutoScalingAction=AutoScalingAction;
|
||||
34
cdk/node_modules/aws-cdk-lib/aws-cloudwatch-actions/lib/ec2.d.ts
generated
vendored
Normal file
34
cdk/node_modules/aws-cdk-lib/aws-cloudwatch-actions/lib/ec2.d.ts
generated
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
import type { Construct } from 'constructs';
|
||||
import type * as cloudwatch from '../../aws-cloudwatch';
|
||||
/**
|
||||
* Types of EC2 actions available
|
||||
*/
|
||||
export declare enum Ec2InstanceAction {
|
||||
/**
|
||||
* Stop the instance
|
||||
*/
|
||||
STOP = "stop",
|
||||
/**
|
||||
* Terminatethe instance
|
||||
*/
|
||||
TERMINATE = "terminate",
|
||||
/**
|
||||
* Recover the instance
|
||||
*/
|
||||
RECOVER = "recover",
|
||||
/**
|
||||
* Reboot the instance
|
||||
*/
|
||||
REBOOT = "reboot"
|
||||
}
|
||||
/**
|
||||
* Use an EC2 action as an Alarm action
|
||||
*/
|
||||
export declare class Ec2Action implements cloudwatch.IAlarmAction {
|
||||
private ec2Action;
|
||||
constructor(instanceAction: Ec2InstanceAction);
|
||||
/**
|
||||
* Returns an alarm action configuration to use an EC2 action as an alarm action
|
||||
*/
|
||||
bind(_scope: Construct, _alarm: cloudwatch.IAlarm): cloudwatch.AlarmActionConfig;
|
||||
}
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-cloudwatch-actions/lib/ec2.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-cloudwatch-actions/lib/ec2.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Ec2Action=exports.Ec2InstanceAction=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},Ec2InstanceAction;(function(Ec2InstanceAction2){Ec2InstanceAction2.STOP="stop",Ec2InstanceAction2.TERMINATE="terminate",Ec2InstanceAction2.RECOVER="recover",Ec2InstanceAction2.REBOOT="reboot"})(Ec2InstanceAction||(exports.Ec2InstanceAction=Ec2InstanceAction={}));class Ec2Action{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_cloudwatch_actions.Ec2Action",version:"2.252.0"};ec2Action;constructor(instanceAction){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cloudwatch_actions_Ec2InstanceAction(instanceAction)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,Ec2Action),error}this.ec2Action=instanceAction}bind(_scope,_alarm){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cloudwatch_IAlarm(_alarm)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.bind),error}return{alarmActionArn:`arn:${core_1().Stack.of(_scope).partition}:automate:${core_1().Stack.of(_scope).region}:ec2:${this.ec2Action}`}}}exports.Ec2Action=Ec2Action;
|
||||
6
cdk/node_modules/aws-cdk-lib/aws-cloudwatch-actions/lib/index.d.ts
generated
vendored
Normal file
6
cdk/node_modules/aws-cdk-lib/aws-cloudwatch-actions/lib/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
export * from './appscaling';
|
||||
export * from './autoscaling';
|
||||
export * from './sns';
|
||||
export * from './ec2';
|
||||
export * from './ssm';
|
||||
export * from './lambda';
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-cloudwatch-actions/lib/index.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-cloudwatch-actions/lib/index.js
generated
vendored
Normal 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.ApplicationScalingAction=void 0,Object.defineProperty(exports,_noFold="ApplicationScalingAction",{enumerable:!0,configurable:!0,get:()=>{var value=require("./appscaling").ApplicationScalingAction;return Object.defineProperty(exports,_noFold="ApplicationScalingAction",{enumerable:!0,configurable:!0,value}),value}}),exports.AutoScalingAction=void 0,Object.defineProperty(exports,_noFold="AutoScalingAction",{enumerable:!0,configurable:!0,get:()=>{var value=require("./autoscaling").AutoScalingAction;return Object.defineProperty(exports,_noFold="AutoScalingAction",{enumerable:!0,configurable:!0,value}),value}}),exports.SnsAction=void 0,Object.defineProperty(exports,_noFold="SnsAction",{enumerable:!0,configurable:!0,get:()=>{var value=require("./sns").SnsAction;return Object.defineProperty(exports,_noFold="SnsAction",{enumerable:!0,configurable:!0,value}),value}}),exports.Ec2InstanceAction=void 0,Object.defineProperty(exports,_noFold="Ec2InstanceAction",{enumerable:!0,configurable:!0,get:()=>{var value=require("./ec2").Ec2InstanceAction;return Object.defineProperty(exports,_noFold="Ec2InstanceAction",{enumerable:!0,configurable:!0,value}),value}}),exports.Ec2Action=void 0,Object.defineProperty(exports,_noFold="Ec2Action",{enumerable:!0,configurable:!0,get:()=>{var value=require("./ec2").Ec2Action;return Object.defineProperty(exports,_noFold="Ec2Action",{enumerable:!0,configurable:!0,value}),value}}),exports.OpsItemSeverity=void 0,Object.defineProperty(exports,_noFold="OpsItemSeverity",{enumerable:!0,configurable:!0,get:()=>{var value=require("./ssm").OpsItemSeverity;return Object.defineProperty(exports,_noFold="OpsItemSeverity",{enumerable:!0,configurable:!0,value}),value}}),exports.OpsItemCategory=void 0,Object.defineProperty(exports,_noFold="OpsItemCategory",{enumerable:!0,configurable:!0,get:()=>{var value=require("./ssm").OpsItemCategory;return Object.defineProperty(exports,_noFold="OpsItemCategory",{enumerable:!0,configurable:!0,value}),value}}),exports.SsmAction=void 0,Object.defineProperty(exports,_noFold="SsmAction",{enumerable:!0,configurable:!0,get:()=>{var value=require("./ssm").SsmAction;return Object.defineProperty(exports,_noFold="SsmAction",{enumerable:!0,configurable:!0,value}),value}}),exports.SsmIncidentAction=void 0,Object.defineProperty(exports,_noFold="SsmIncidentAction",{enumerable:!0,configurable:!0,get:()=>{var value=require("./ssm").SsmIncidentAction;return Object.defineProperty(exports,_noFold="SsmIncidentAction",{enumerable:!0,configurable:!0,value}),value}}),exports.LambdaAction=void 0,Object.defineProperty(exports,_noFold="LambdaAction",{enumerable:!0,configurable:!0,get:()=>{var value=require("./lambda").LambdaAction;return Object.defineProperty(exports,_noFold="LambdaAction",{enumerable:!0,configurable:!0,value}),value}});
|
||||
31
cdk/node_modules/aws-cdk-lib/aws-cloudwatch-actions/lib/lambda.d.ts
generated
vendored
Normal file
31
cdk/node_modules/aws-cdk-lib/aws-cloudwatch-actions/lib/lambda.d.ts
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
import type { Construct } from 'constructs';
|
||||
import type * as cloudwatch from '../../aws-cloudwatch';
|
||||
import type * as lambda from '../../aws-lambda';
|
||||
/**
|
||||
* Properties for Lambda Alarm Action
|
||||
*/
|
||||
export interface LambdaActionProps {
|
||||
/**
|
||||
* Whether to generate unique Lambda Permission id
|
||||
*
|
||||
* Use this parameter to resolve id collision in case of multiple alarms triggering the same action
|
||||
*
|
||||
* @see https://github.com/aws/aws-cdk/issues/33958
|
||||
* @default - false
|
||||
*/
|
||||
readonly useUniquePermissionId?: boolean;
|
||||
}
|
||||
/**
|
||||
* Use a Lambda action as an Alarm action
|
||||
*/
|
||||
export declare class LambdaAction implements cloudwatch.IAlarmAction {
|
||||
private lambdaFunction;
|
||||
private props?;
|
||||
constructor(lambdaFunction: lambda.IAlias | lambda.IVersion | lambda.IFunction, props?: LambdaActionProps);
|
||||
/**
|
||||
* Returns an alarm action configuration to use a Lambda action as an alarm action.
|
||||
*
|
||||
* @see https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_PutMetricAlarm.html
|
||||
*/
|
||||
bind(scope: Construct, alarm: cloudwatch.IAlarm): cloudwatch.AlarmActionConfig;
|
||||
}
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-cloudwatch-actions/lib/lambda.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-cloudwatch-actions/lib/lambda.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.LambdaAction=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},cx_api_1=()=>{var tmp=require("../../cx-api");return cx_api_1=()=>tmp,tmp};class LambdaAction{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_cloudwatch_actions.LambdaAction",version:"2.252.0"};lambdaFunction;props;constructor(lambdaFunction,props){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cloudwatch_actions_LambdaActionProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,LambdaAction),error}this.lambdaFunction=lambdaFunction,this.props=props}bind(scope,alarm){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cloudwatch_IAlarm(alarm)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.bind),error}let idPrefix=core_1().FeatureFlags.of(scope).isEnabled(cx_api_1().LAMBDA_PERMISSION_LOGICAL_ID_FOR_LAMBDA_ACTION)?alarm.node.id:"";this.props?.useUniquePermissionId&&(idPrefix=core_1().Names.uniqueId(alarm));const permissionId=`${idPrefix}AlarmPermission`,permissionNode=this.lambdaFunction.permissionsNode.tryFindChild(permissionId);return permissionNode?.sourceArn!==alarm.alarmRef.alarmArn&&(permissionNode!==void 0&&!this.props?.useUniquePermissionId&&core_1().Annotations.of(scope).addWarningV2("@aws-cdk/aws-cloudwatch-actions:LambdaActionPermissionId",`Please use 'useUniquePermissionId' on LambdaAction ${this.lambdaFunction.functionName} to generate unique Lambda Permission Id`),this.lambdaFunction.addPermission(permissionId,{sourceAccount:core_1().Stack.of(scope).account,action:"lambda:InvokeFunction",sourceArn:alarm.alarmRef.alarmArn,principal:new(iam()).ServicePrincipal("lambda.alarms.cloudwatch.amazonaws.com")})),{alarmActionArn:this.lambdaFunction.functionArn}}}exports.LambdaAction=LambdaAction;
|
||||
14
cdk/node_modules/aws-cdk-lib/aws-cloudwatch-actions/lib/sns.d.ts
generated
vendored
Normal file
14
cdk/node_modules/aws-cdk-lib/aws-cloudwatch-actions/lib/sns.d.ts
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
import type { Construct } from 'constructs';
|
||||
import type * as cloudwatch from '../../aws-cloudwatch';
|
||||
import type * as sns from '../../aws-sns';
|
||||
/**
|
||||
* Use an SNS topic as an alarm action
|
||||
*/
|
||||
export declare class SnsAction implements cloudwatch.IAlarmAction {
|
||||
private readonly topic;
|
||||
constructor(topic: sns.ITopic);
|
||||
/**
|
||||
* Returns an alarm action configuration to use an SNS topic as an alarm action
|
||||
*/
|
||||
bind(_scope: Construct, _alarm: cloudwatch.IAlarm): cloudwatch.AlarmActionConfig;
|
||||
}
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-cloudwatch-actions/lib/sns.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-cloudwatch-actions/lib/sns.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SnsAction=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");class SnsAction{topic;static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_cloudwatch_actions.SnsAction",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,SnsAction),error}}bind(_scope,_alarm){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cloudwatch_IAlarm(_alarm)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.bind),error}return{alarmActionArn:this.topic.topicArn}}}exports.SnsAction=SnsAction;
|
||||
72
cdk/node_modules/aws-cdk-lib/aws-cloudwatch-actions/lib/ssm.d.ts
generated
vendored
Normal file
72
cdk/node_modules/aws-cdk-lib/aws-cloudwatch-actions/lib/ssm.d.ts
generated
vendored
Normal file
@@ -0,0 +1,72 @@
|
||||
import type { Construct } from 'constructs';
|
||||
import type * as cloudwatch from '../../aws-cloudwatch';
|
||||
/**
|
||||
* Types of OpsItem severity available
|
||||
*/
|
||||
export declare enum OpsItemSeverity {
|
||||
/**
|
||||
* Set the severity to critical
|
||||
*/
|
||||
CRITICAL = "1",
|
||||
/**
|
||||
* Set the severity to high
|
||||
*/
|
||||
HIGH = "2",
|
||||
/**
|
||||
* Set the severity to medium
|
||||
*/
|
||||
MEDIUM = "3",
|
||||
/**
|
||||
* Set the severity to low
|
||||
*/
|
||||
LOW = "4"
|
||||
}
|
||||
/**
|
||||
* Types of OpsItem category available
|
||||
*/
|
||||
export declare enum OpsItemCategory {
|
||||
/**
|
||||
* Set the category to availability
|
||||
*/
|
||||
AVAILABILITY = "Availability",
|
||||
/**
|
||||
* Set the category to cost
|
||||
*/
|
||||
COST = "Cost",
|
||||
/**
|
||||
* Set the category to performance
|
||||
*/
|
||||
PERFORMANCE = "Performance",
|
||||
/**
|
||||
* Set the category to recovery
|
||||
*/
|
||||
RECOVERY = "Recovery",
|
||||
/**
|
||||
* Set the category to security
|
||||
*/
|
||||
SECURITY = "Security"
|
||||
}
|
||||
/**
|
||||
* Use an SSM OpsItem action as an Alarm action
|
||||
*/
|
||||
export declare class SsmAction implements cloudwatch.IAlarmAction {
|
||||
private severity;
|
||||
private category?;
|
||||
constructor(severity: OpsItemSeverity, category?: OpsItemCategory);
|
||||
/**
|
||||
* Returns an alarm action configuration to use an SSM OpsItem action as an alarm action
|
||||
*/
|
||||
bind(_scope: Construct, _alarm: cloudwatch.IAlarm): cloudwatch.AlarmActionConfig;
|
||||
}
|
||||
/**
|
||||
* Use an SSM Incident Response Plan as an Alarm action
|
||||
*/
|
||||
export declare class SsmIncidentAction implements cloudwatch.IAlarmAction {
|
||||
private readonly responsePlanName;
|
||||
constructor(responsePlanName: string);
|
||||
/**
|
||||
* Returns an alarm action configuration to use an SSM Incident as an alarm action
|
||||
* based on an Incident Manager Response Plan
|
||||
*/
|
||||
bind(_scope: Construct, _alarm: cloudwatch.IAlarm): cloudwatch.AlarmActionConfig;
|
||||
}
|
||||
1
cdk/node_modules/aws-cdk-lib/aws-cloudwatch-actions/lib/ssm.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/aws-cloudwatch-actions/lib/ssm.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SsmIncidentAction=exports.SsmAction=exports.OpsItemCategory=exports.OpsItemSeverity=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},OpsItemSeverity;(function(OpsItemSeverity2){OpsItemSeverity2.CRITICAL="1",OpsItemSeverity2.HIGH="2",OpsItemSeverity2.MEDIUM="3",OpsItemSeverity2.LOW="4"})(OpsItemSeverity||(exports.OpsItemSeverity=OpsItemSeverity={}));var OpsItemCategory;(function(OpsItemCategory2){OpsItemCategory2.AVAILABILITY="Availability",OpsItemCategory2.COST="Cost",OpsItemCategory2.PERFORMANCE="Performance",OpsItemCategory2.RECOVERY="Recovery",OpsItemCategory2.SECURITY="Security"})(OpsItemCategory||(exports.OpsItemCategory=OpsItemCategory={}));class SsmAction{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_cloudwatch_actions.SsmAction",version:"2.252.0"};severity;category;constructor(severity,category){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cloudwatch_actions_OpsItemSeverity(severity),jsiiDeprecationWarnings().aws_cdk_lib_aws_cloudwatch_actions_OpsItemCategory(category)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,SsmAction),error}this.severity=severity,this.category=category}bind(_scope,_alarm){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cloudwatch_IAlarm(_alarm)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.bind),error}return this.category===void 0?{alarmActionArn:`arn:${core_1().Stack.of(_scope).partition}:ssm:${core_1().Stack.of(_scope).region}:${core_1().Stack.of(_scope).account}:opsitem:${this.severity}`}:{alarmActionArn:`arn:${core_1().Stack.of(_scope).partition}:ssm:${core_1().Stack.of(_scope).region}:${core_1().Stack.of(_scope).account}:opsitem:${this.severity}#CATEGORY=${this.category}`}}}exports.SsmAction=SsmAction;class SsmIncidentAction{responsePlanName;static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_cloudwatch_actions.SsmIncidentAction",version:"2.252.0"};constructor(responsePlanName){this.responsePlanName=responsePlanName}bind(_scope,_alarm){try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cloudwatch_IAlarm(_alarm)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.bind),error}return{alarmActionArn:`arn:${core_1().Stack.of(_scope).partition}:ssm-incidents::${core_1().Stack.of(_scope).account}:response-plan/${this.responsePlanName}`}}}exports.SsmIncidentAction=SsmIncidentAction;
|
||||
Reference in New Issue
Block a user