@aws-cdk/aws-lambda-event-sources
Advanced tools
Comparing version 0.32.0 to 0.33.0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const notifs = require("@aws-cdk/aws-s3-notifications"); | ||
/** | ||
@@ -14,3 +15,3 @@ * Use S3 bucket notifications as an event source for AWS Lambda. | ||
for (const event of this.props.events) { | ||
this.bucket.addEventNotification(event, target, ...filters); | ||
this.bucket.addEventNotification(event, new notifs.LambdaDestination(target), ...filters); | ||
} | ||
@@ -20,2 +21,2 @@ } | ||
exports.S3EventSource = S3EventSource; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiczMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJzMy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQWtCQTs7R0FFRztBQUNILE1BQWEsYUFBYTtJQUN4QixZQUFxQixNQUFpQixFQUFtQixLQUF5QjtRQUE3RCxXQUFNLEdBQU4sTUFBTSxDQUFXO1FBQW1CLFVBQUssR0FBTCxLQUFLLENBQW9CO0lBRWxGLENBQUM7SUFFTSxJQUFJLENBQUMsTUFBd0I7UUFDbEMsTUFBTSxPQUFPLEdBQUcsSUFBSSxDQUFDLEtBQUssQ0FBQyxPQUFPLElBQUksRUFBRSxDQUFDO1FBQ3pDLEtBQUssTUFBTSxLQUFLLElBQUksSUFBSSxDQUFDLEtBQUssQ0FBQyxNQUFNLEVBQUU7WUFDckMsSUFBSSxDQUFDLE1BQU0sQ0FBQyxvQkFBb0IsQ0FBQyxLQUFLLEVBQUUsTUFBTSxFQUFFLEdBQUcsT0FBTyxDQUFDLENBQUM7U0FDN0Q7SUFDSCxDQUFDO0NBQ0Y7QUFYRCxzQ0FXQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBsYW1iZGEgPSByZXF1aXJlKCdAYXdzLWNkay9hd3MtbGFtYmRhJyk7XG5pbXBvcnQgczMgPSByZXF1aXJlKCdAYXdzLW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rpb24pIHtcbiAgICBjb25zdCBmaWx0ZXJzID0gdGhpcy5wcm9wcy5maWx0ZXJzIHx8IFtdO1xuICAgIGZvciAoY29uc3QgZXZlbnQgb2YgdGhpcy5wcm9wcy5ldmVudHMpIHtcbiAgICAgIHRoaXMuYnVja2V0LmFkZEV2ZW50Tm90aWZpY2F0aW9uKGV2ZW50LCBuZXcgbm90aWZzLkxhbWJkYURlc3RpbmF0aW9uKHRhcmdldCksIC4uLmZpbHRlcnMpO1xuICAgIH1cbiAgfVxufVxuIl19 |
{ | ||
"name": "@aws-cdk/aws-lambda-event-sources", | ||
"version": "0.32.0", | ||
"version": "0.33.0", | ||
"description": "Event sources for AWS Lambda", | ||
@@ -59,31 +59,33 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"@aws-cdk/assert": "^0.32.0", | ||
"cdk-build-tools": "^0.32.0", | ||
"cdk-integ-tools": "^0.32.0", | ||
"pkglint": "^0.32.0" | ||
"@aws-cdk/assert": "^0.33.0", | ||
"cdk-build-tools": "^0.33.0", | ||
"cdk-integ-tools": "^0.33.0", | ||
"pkglint": "^0.33.0" | ||
}, | ||
"dependencies": { | ||
"@aws-cdk/aws-apigateway": "^0.32.0", | ||
"@aws-cdk/aws-dynamodb": "^0.32.0", | ||
"@aws-cdk/aws-events": "^0.32.0", | ||
"@aws-cdk/aws-iam": "^0.32.0", | ||
"@aws-cdk/aws-kinesis": "^0.32.0", | ||
"@aws-cdk/aws-lambda": "^0.32.0", | ||
"@aws-cdk/aws-s3": "^0.32.0", | ||
"@aws-cdk/aws-sns": "^0.32.0", | ||
"@aws-cdk/aws-sqs": "^0.32.0", | ||
"@aws-cdk/cdk": "^0.32.0" | ||
"@aws-cdk/aws-apigateway": "^0.33.0", | ||
"@aws-cdk/aws-dynamodb": "^0.33.0", | ||
"@aws-cdk/aws-events": "^0.33.0", | ||
"@aws-cdk/aws-iam": "^0.33.0", | ||
"@aws-cdk/aws-kinesis": "^0.33.0", | ||
"@aws-cdk/aws-lambda": "^0.33.0", | ||
"@aws-cdk/aws-s3": "^0.33.0", | ||
"@aws-cdk/aws-s3-notifications": "^0.33.0", | ||
"@aws-cdk/aws-sns": "^0.33.0", | ||
"@aws-cdk/aws-sqs": "^0.33.0", | ||
"@aws-cdk/cdk": "^0.33.0" | ||
}, | ||
"homepage": "https://github.com/awslabs/aws-cdk", | ||
"peerDependencies": { | ||
"@aws-cdk/aws-apigateway": "^0.32.0", | ||
"@aws-cdk/aws-dynamodb": "^0.32.0", | ||
"@aws-cdk/aws-events": "^0.32.0", | ||
"@aws-cdk/aws-iam": "^0.32.0", | ||
"@aws-cdk/aws-kinesis": "^0.32.0", | ||
"@aws-cdk/aws-lambda": "^0.32.0", | ||
"@aws-cdk/aws-s3": "^0.32.0", | ||
"@aws-cdk/aws-sns": "^0.32.0", | ||
"@aws-cdk/aws-sqs": "^0.32.0", | ||
"@aws-cdk/cdk": "^0.32.0" | ||
"@aws-cdk/aws-apigateway": "^0.33.0", | ||
"@aws-cdk/aws-dynamodb": "^0.33.0", | ||
"@aws-cdk/aws-events": "^0.33.0", | ||
"@aws-cdk/aws-iam": "^0.33.0", | ||
"@aws-cdk/aws-kinesis": "^0.33.0", | ||
"@aws-cdk/aws-lambda": "^0.33.0", | ||
"@aws-cdk/aws-s3": "^0.33.0", | ||
"@aws-cdk/aws-s3-notifications": "^0.33.0", | ||
"@aws-cdk/aws-sns": "^0.33.0", | ||
"@aws-cdk/aws-sqs": "^0.33.0", | ||
"@aws-cdk/cdk": "^0.33.0" | ||
}, | ||
@@ -93,2 +95,2 @@ "engines": { | ||
} | ||
} | ||
} |
@@ -59,2 +59,5 @@ { | ||
{ | ||
"path": "../aws-s3-notifications" | ||
}, | ||
{ | ||
"path": "../aws-sns" | ||
@@ -61,0 +64,0 @@ }, |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
224322
56
2576
22
+ Added@aws-cdk/assets@0.33.0(transitive)
+ Added@aws-cdk/aws-apigateway@0.33.0(transitive)
+ Added@aws-cdk/aws-applicationautoscaling@0.33.0(transitive)
+ Added@aws-cdk/aws-autoscaling-common@0.33.0(transitive)
+ Added@aws-cdk/aws-certificatemanager@0.33.0(transitive)
+ Added@aws-cdk/aws-cloudformation@0.33.0(transitive)
+ Added@aws-cdk/aws-cloudwatch@0.33.0(transitive)
+ Added@aws-cdk/aws-dynamodb@0.33.0(transitive)
+ Added@aws-cdk/aws-ec2@0.33.0(transitive)
+ Added@aws-cdk/aws-elasticloadbalancingv2@0.33.0(transitive)
+ Added@aws-cdk/aws-events@0.33.0(transitive)
+ Added@aws-cdk/aws-iam@0.33.0(transitive)
+ Added@aws-cdk/aws-kinesis@0.33.0(transitive)
+ Added@aws-cdk/aws-kms@0.33.0(transitive)
+ Added@aws-cdk/aws-lambda@0.33.0(transitive)
+ Added@aws-cdk/aws-logs@0.33.0(transitive)
+ Added@aws-cdk/aws-route53@0.33.0(transitive)
+ Added@aws-cdk/aws-s3@0.33.0(transitive)
+ Added@aws-cdk/aws-s3-notifications@0.33.0(transitive)
+ Added@aws-cdk/aws-sns@0.33.0(transitive)
+ Added@aws-cdk/aws-sqs@0.33.0(transitive)
+ Added@aws-cdk/cdk@0.33.0(transitive)
+ Added@aws-cdk/cx-api@0.33.0(transitive)
+ Added@aws-cdk/region-info@0.33.0(transitive)
- Removed@aws-cdk/assets@0.32.0(transitive)
- Removed@aws-cdk/aws-apigateway@0.32.0(transitive)
- Removed@aws-cdk/aws-applicationautoscaling@0.32.0(transitive)
- Removed@aws-cdk/aws-autoscaling-api@0.32.0(transitive)
- Removed@aws-cdk/aws-autoscaling-common@0.32.0(transitive)
- Removed@aws-cdk/aws-certificatemanager@0.32.0(transitive)
- Removed@aws-cdk/aws-cloudformation@0.32.0(transitive)
- Removed@aws-cdk/aws-cloudwatch@0.32.0(transitive)
- Removed@aws-cdk/aws-dynamodb@0.32.0(transitive)
- Removed@aws-cdk/aws-ec2@0.32.0(transitive)
- Removed@aws-cdk/aws-elasticloadbalancingv2@0.32.0(transitive)
- Removed@aws-cdk/aws-events@0.32.0(transitive)
- Removed@aws-cdk/aws-iam@0.32.0(transitive)
- Removed@aws-cdk/aws-kinesis@0.32.0(transitive)
- Removed@aws-cdk/aws-kms@0.32.0(transitive)
- Removed@aws-cdk/aws-lambda@0.32.0(transitive)
- Removed@aws-cdk/aws-logs@0.32.0(transitive)
- Removed@aws-cdk/aws-route53@0.32.0(transitive)
- Removed@aws-cdk/aws-s3@0.32.0(transitive)
- Removed@aws-cdk/aws-s3-notifications@0.32.0(transitive)
- Removed@aws-cdk/aws-sns@0.32.0(transitive)
- Removed@aws-cdk/aws-sqs@0.32.0(transitive)
- Removed@aws-cdk/cdk@0.32.0(transitive)
- Removed@aws-cdk/cx-api@0.32.0(transitive)
- Removed@aws-cdk/region-info@0.32.0(transitive)
Updated@aws-cdk/aws-events@^0.33.0
Updated@aws-cdk/aws-iam@^0.33.0
Updated@aws-cdk/aws-kinesis@^0.33.0
Updated@aws-cdk/aws-lambda@^0.33.0
Updated@aws-cdk/aws-s3@^0.33.0
Updated@aws-cdk/aws-sns@^0.33.0
Updated@aws-cdk/aws-sqs@^0.33.0
Updated@aws-cdk/cdk@^0.33.0