agent-claw: automated task changes
This commit is contained in:
1
cdk/node_modules/aws-cdk-lib/custom-resource-handlers/dist/aws-ses/drop-spam-handler/index.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/custom-resource-handlers/dist/aws-ses/drop-spam-handler/index.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";var o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,p=(i,t)=>{for(var e in t)o(i,e,{get:t[e],enumerable:!0})},l=(i,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of c(t))!a.call(i,s)&&s!==e&&o(i,s,{get:()=>t[s],enumerable:!(r=n(t,s))||r.enumerable});return i},d=i=>l(o({},"__esModule",{value:!0}),i),S={};p(S,{handler:()=>u}),module.exports=d(S);async function u(i){console.log("Spam filter");let t=i.Records[0].ses;return console.log("SES Notification: %j",t),t.receipt.spfVerdict.status==="FAIL"||t.receipt.dkimVerdict.status==="FAIL"||t.receipt.spamVerdict.status==="FAIL"||t.receipt.virusVerdict.status==="FAIL"?(console.log("Dropping spam"),{disposition:"STOP_RULE_SET"}):null}
|
||||
27
cdk/node_modules/aws-cdk-lib/custom-resource-handlers/dist/aws-ses/drop-spam-provider.generated.d.ts
generated
vendored
Normal file
27
cdk/node_modules/aws-cdk-lib/custom-resource-handlers/dist/aws-ses/drop-spam-provider.generated.d.ts
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
import { Construct } from "constructs";
|
||||
import * as lambda from "../../../aws-lambda";
|
||||
export declare class DropSpamSingletonFunction extends lambda.SingletonFunction {
|
||||
constructor(scope: Construct, id: string, props: DropSpamSingletonFunctionProps);
|
||||
}
|
||||
/**
|
||||
* Initialization properties for DropSpamSingletonFunction
|
||||
*/
|
||||
export interface DropSpamSingletonFunctionProps extends lambda.FunctionOptions {
|
||||
/**
|
||||
* A unique identifier to identify this Lambda.
|
||||
*
|
||||
* The identifier should be unique across all custom resource providers.
|
||||
* We recommend generating a UUID per provider.
|
||||
*/
|
||||
readonly uuid: string;
|
||||
/**
|
||||
* A descriptive name for the purpose of this Lambda.
|
||||
*
|
||||
* If the Lambda does not have a physical name, this string will be
|
||||
* reflected in its generated name. The combination of lambdaPurpose
|
||||
* and uuid must be unique.
|
||||
*
|
||||
* @default SingletonLambda
|
||||
*/
|
||||
readonly lambdaPurpose?: string;
|
||||
}
|
||||
1
cdk/node_modules/aws-cdk-lib/custom-resource-handlers/dist/aws-ses/drop-spam-provider.generated.js
generated
vendored
Normal file
1
cdk/node_modules/aws-cdk-lib/custom-resource-handlers/dist/aws-ses/drop-spam-provider.generated.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.DropSpamSingletonFunction=void 0;const path=require("path"),lambda=require("../../../aws-lambda");class DropSpamSingletonFunction extends lambda.SingletonFunction{constructor(scope,id,props){super(scope,id,{...props,code:lambda.Code.fromAsset(path.join(__dirname,"drop-spam-handler")),handler:"index.handler",runtime:lambda.determineLatestNodeRuntime(scope)}),this.addMetadata("aws:cdk:is-custom-resource-handler-singleton",!0),this.addMetadata("aws:cdk:is-custom-resource-handler-runtime-family",this.runtime.family),props?.logGroup&&this.logGroup.node.addMetadata("aws:cdk:is-custom-resource-handler-logGroup",!0),props?.logRetention&&this.lambdaFunction._logRetention?.node.addMetadata("aws:cdk:is-custom-resource-handler-logRetention",!0)}}exports.DropSpamSingletonFunction=DropSpamSingletonFunction;
|
||||
Reference in New Issue
Block a user