@aws-cdk/aws-lambda
Advanced tools
Comparing version 0.19.0 to 0.20.0
@@ -13,3 +13,4 @@ export interface LambdaRuntimeProps { | ||
DotNetCore = 3, | ||
Go = 4 | ||
Go = 4, | ||
Ruby = 5 | ||
} | ||
@@ -34,2 +35,3 @@ /** | ||
static readonly Go1x: Runtime; | ||
static readonly Ruby25: Runtime; | ||
/** | ||
@@ -36,0 +38,0 @@ * The name of this runtime, as expected by the Lambda resource. |
@@ -10,2 +10,3 @@ "use strict"; | ||
RuntimeFamily[RuntimeFamily["Go"] = 4] = "Go"; | ||
RuntimeFamily[RuntimeFamily["Ruby"] = 5] = "Ruby"; | ||
})(RuntimeFamily = exports.RuntimeFamily || (exports.RuntimeFamily = {})); | ||
@@ -39,3 +40,4 @@ /** | ||
Runtime.Go1x = new Runtime('go1.x', RuntimeFamily.Go); | ||
Runtime.Ruby25 = new Runtime('ruby2.5', RuntimeFamily.Ruby, { supportsInlineCode: true }); | ||
exports.Runtime = Runtime; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicnVudGltZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInJ1bnRpbWUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFRQSxJQUFZLGFBTVg7QUFORCxXQUFZLGFBQWE7SUFDdkIscURBQU0sQ0FBQTtJQUNOLGlEQUFJLENBQUE7SUFDSixxREFBTSxDQUFBO0lBQ04sNkRBQVUsQ0FBQTtJQUNWLDZDQUFFLENBQUE7QUFDSixDQUFDLEVBTlcsYUFBYSxHQUFiLHFCQUFhLEtBQWIscUJBQWEsUUFNeEI7QUFFRDs7Ozs7R0FLRztBQUNILE1BQWEsT0FBTztJQTZCbEIsWUFBWSxJQUFZLEVBQUUsTUFBc0IsRUFBRSxRQUE0QixFQUFHO1FBQy9FLElBQUksQ0FBQyxJQUFJLEdBQUcsSUFBSSxDQUFDO1FBQ2pCLElBQUksQ0FBQyx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G9ydHNJbmxpbmVDb2RlOiBib29sZWFuO1xuXG4gIC8qKlxuICAgKiBUaGUgcnVudGltZSBmYW1pbHkuXG4gICAqL1xuICBwdWJsaWMgcmVhZG9ubHkgZmFtaWx5PzogUnVudGltZUZhbWlseTtcblxuICBjb25zdHJ1Y3RvcihuYW1lOiBzdHJpbmcsIGZhbWlseT86IFJ1bnRpbWVGYW1pbHksIHByb3BzOiBMYW1iZGFSdW50aW1lUHJvcHMgPSB7IH0pIHtcbiAgICB0aGlzLm5hbWUgPSBuYW1lO1xuICAgIHRoaXMuc3VwcG9ydHNJbmxpbmVDb2RlID0gISFwcm9wcy5zdXBwb3J0c0lubGluZUNvZGU7XG4gICAgdGhpcy5mYW1pbHkgPSBmYW1pbHk7XG4gIH1cblxuICBwdWJsaWMgdG9TdHJpbmcoKTogc3RyaW5nIHtcbiAgICByZXR1cm4gdGhpcy5uYW1lO1xuICB9XG59XG4iXX0= |
{ | ||
"name": "@aws-cdk/aws-lambda", | ||
"version": "0.19.0", | ||
"version": "0.20.0", | ||
"description": "CDK Constructs for AWS Lambda", | ||
@@ -58,38 +58,38 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"@aws-cdk/assert": "^0.19.0", | ||
"cdk-build-tools": "^0.19.0", | ||
"cdk-integ-tools": "^0.19.0", | ||
"cfn2ts": "^0.19.0", | ||
"pkglint": "^0.19.0" | ||
"@aws-cdk/assert": "^0.20.0", | ||
"cdk-build-tools": "^0.20.0", | ||
"cdk-integ-tools": "^0.20.0", | ||
"cfn2ts": "^0.20.0", | ||
"pkglint": "^0.20.0" | ||
}, | ||
"dependencies": { | ||
"@aws-cdk/assets": "^0.19.0", | ||
"@aws-cdk/aws-cloudwatch": "^0.19.0", | ||
"@aws-cdk/aws-codepipeline-api": "^0.19.0", | ||
"@aws-cdk/aws-ec2": "^0.19.0", | ||
"@aws-cdk/aws-events": "^0.19.0", | ||
"@aws-cdk/aws-iam": "^0.19.0", | ||
"@aws-cdk/aws-logs": "^0.19.0", | ||
"@aws-cdk/aws-s3": "^0.19.0", | ||
"@aws-cdk/aws-s3-notifications": "^0.19.0", | ||
"@aws-cdk/aws-sqs": "^0.19.0", | ||
"@aws-cdk/aws-stepfunctions": "^0.19.0", | ||
"@aws-cdk/cdk": "^0.19.0", | ||
"@aws-cdk/cx-api": "^0.19.0" | ||
"@aws-cdk/assets": "^0.20.0", | ||
"@aws-cdk/aws-cloudwatch": "^0.20.0", | ||
"@aws-cdk/aws-codepipeline-api": "^0.20.0", | ||
"@aws-cdk/aws-ec2": "^0.20.0", | ||
"@aws-cdk/aws-events": "^0.20.0", | ||
"@aws-cdk/aws-iam": "^0.20.0", | ||
"@aws-cdk/aws-logs": "^0.20.0", | ||
"@aws-cdk/aws-s3": "^0.20.0", | ||
"@aws-cdk/aws-s3-notifications": "^0.20.0", | ||
"@aws-cdk/aws-sqs": "^0.20.0", | ||
"@aws-cdk/aws-stepfunctions": "^0.20.0", | ||
"@aws-cdk/cdk": "^0.20.0", | ||
"@aws-cdk/cx-api": "^0.20.0" | ||
}, | ||
"homepage": "https://github.com/awslabs/aws-cdk", | ||
"peerDependencies": { | ||
"@aws-cdk/assets": "^0.19.0", | ||
"@aws-cdk/aws-cloudwatch": "^0.19.0", | ||
"@aws-cdk/aws-codepipeline-api": "^0.19.0", | ||
"@aws-cdk/aws-ec2": "^0.19.0", | ||
"@aws-cdk/aws-events": "^0.19.0", | ||
"@aws-cdk/aws-iam": "^0.19.0", | ||
"@aws-cdk/aws-logs": "^0.19.0", | ||
"@aws-cdk/aws-s3": "^0.19.0", | ||
"@aws-cdk/aws-s3-notifications": "^0.19.0", | ||
"@aws-cdk/aws-sqs": "^0.19.0", | ||
"@aws-cdk/aws-stepfunctions": "^0.19.0", | ||
"@aws-cdk/cdk": "^0.19.0" | ||
"@aws-cdk/assets": "^0.20.0", | ||
"@aws-cdk/aws-cloudwatch": "^0.20.0", | ||
"@aws-cdk/aws-codepipeline-api": "^0.20.0", | ||
"@aws-cdk/aws-ec2": "^0.20.0", | ||
"@aws-cdk/aws-events": "^0.20.0", | ||
"@aws-cdk/aws-iam": "^0.20.0", | ||
"@aws-cdk/aws-logs": "^0.20.0", | ||
"@aws-cdk/aws-s3": "^0.20.0", | ||
"@aws-cdk/aws-s3-notifications": "^0.20.0", | ||
"@aws-cdk/aws-sqs": "^0.20.0", | ||
"@aws-cdk/aws-stepfunctions": "^0.20.0", | ||
"@aws-cdk/cdk": "^0.20.0" | ||
} | ||
} |
@@ -8,3 +8,5 @@ "use strict"; | ||
const stack = new cdk.Stack(app, 'lambda-bucket-notifications'); | ||
const bucketA = new s3.Bucket(stack, 'MyBucket'); | ||
const bucketA = new s3.Bucket(stack, 'MyBucket', { | ||
removalPolicy: cdk.RemovalPolicy.Destroy | ||
}); | ||
const fn = new lambda.Function(stack, 'MyFunction', { | ||
@@ -15,3 +17,5 @@ runtime: lambda.Runtime.NodeJS610, | ||
}); | ||
const bucketB = new s3.Bucket(stack, 'YourBucket'); | ||
const bucketB = new s3.Bucket(stack, 'YourBucket', { | ||
removalPolicy: cdk.RemovalPolicy.Destroy | ||
}); | ||
bucketA.onObjectCreated(fn, { suffix: '.png' }); | ||
@@ -25,2 +29,2 @@ bucketB.onEvent(s3.EventType.ObjectRemoved, fn); | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZWcuYnVja2V0LW5vdGlmaWNhdGlvbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlZy5idWNrZXQtbm90aWZpY2F0aW9ucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLHNDQUF1QztBQUN2QyxvQ0FBcUM7QUFDckMsaUNBQWtDO0FBRWxDLE1BQU0sR0FBRyxHQUFHLElBQUksR0FBRyxDQUFDLEdBQUcsRUFBRSxDQUFDO0FBRTFCLE1BQU0sS0FBSyxHQUFHLElBQUksR0FBRyxDQUFDLEtBQUssQ0FBQyxHQ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lJ1bnRpbWUuTm9kZUpTNjEwLFxuICBoYW5kbGVyOiAnaW5kZXguaGFuZGxlcicsXG4gIGNvZGU6IGxhbWJkYS5Db2RlLmlubGluZShgZXhwb3J0cy5oYW5kbGVyID0gJHtoYW5kbGVyLnRvU3RyaW5nKCl9YClcbn0pO1xuXG5jb25zdCBidWNrZXRCID0gbmV3IHMzLkJ1Y2tldChzdGFjaywgJ1lvdXJCdWNrZXQnLCB7XG4gIHJlbW92YWxQb2xpY3k6IGNkay5SZW1vdmFsUG9saWN5LkRlc3Ryb3lcbn0pO1xuXG5idWNrZXRBLm9uT2JqZWN0Q3JlYXRlZChmbiwgeyBzdWZmaXg6ICcucG5nJyB9KTtcbmJ1Y2tldEIub25FdmVudChzMy5FdmVudFR5cGUuT2JqZWN0UmVtb3ZlZCwgZm4pO1xuXG5hcHAucnVuKCk7XG5cbi8vIHRzbGludDpkaXNhYmxlOm5vLWNvbnNvbGVcbmZ1bmN0aW9uIGhhbmRsZXIoZXZlbnQ6IGFueSwgX2NvbnRleHQ6IGFueSwgY2FsbGJhY2s6IGFueSkge1xuICBjb25zb2xlLmxvZyhKU09OLnN0cmluZ2lmeShldmVudCwgdW5kZWZpbmVkLCAyKSk7XG4gIHJldHVybiBjYWxsYmFjayhudWxsLCBldmVudCk7XG59XG4iXX0= |
@@ -27,3 +27,4 @@ import { Test } from 'nodeunit'; | ||
'addEventSource calls bind'(test: Test): void; | ||
'support inline code for Ruby runtime'(test: Test): void; | ||
}; | ||
export = _default; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
820873
5852
+ Added@aws-cdk/assets@0.20.0(transitive)
+ Added@aws-cdk/aws-autoscaling-api@0.20.0(transitive)
+ Added@aws-cdk/aws-cloudwatch@0.20.0(transitive)
+ Added@aws-cdk/aws-codepipeline-api@0.20.0(transitive)
+ Added@aws-cdk/aws-ec2@0.20.0(transitive)
+ Added@aws-cdk/aws-events@0.20.0(transitive)
+ Added@aws-cdk/aws-iam@0.20.0(transitive)
+ Added@aws-cdk/aws-kms@0.20.0(transitive)
+ Added@aws-cdk/aws-logs@0.20.0(transitive)
+ Added@aws-cdk/aws-s3@0.20.0(transitive)
+ Added@aws-cdk/aws-s3-notifications@0.20.0(transitive)
+ Added@aws-cdk/aws-sqs@0.20.0(transitive)
+ Added@aws-cdk/aws-stepfunctions@0.20.0(transitive)
+ Added@aws-cdk/cdk@0.20.0(transitive)
+ Added@aws-cdk/cx-api@0.20.0(transitive)
- Removed@aws-cdk/assets@0.19.0(transitive)
- Removed@aws-cdk/aws-autoscaling-api@0.19.0(transitive)
- Removed@aws-cdk/aws-cloudwatch@0.19.0(transitive)
- Removed@aws-cdk/aws-codepipeline-api@0.19.0(transitive)
- Removed@aws-cdk/aws-ec2@0.19.0(transitive)
- Removed@aws-cdk/aws-events@0.19.0(transitive)
- Removed@aws-cdk/aws-iam@0.19.0(transitive)
- Removed@aws-cdk/aws-kms@0.19.0(transitive)
- Removed@aws-cdk/aws-logs@0.19.0(transitive)
- Removed@aws-cdk/aws-s3@0.19.0(transitive)
- Removed@aws-cdk/aws-s3-notifications@0.19.0(transitive)
- Removed@aws-cdk/aws-sqs@0.19.0(transitive)
- Removed@aws-cdk/aws-stepfunctions@0.19.0(transitive)
- Removed@aws-cdk/cdk@0.19.0(transitive)
- Removed@aws-cdk/cx-api@0.19.0(transitive)
Updated@aws-cdk/assets@^0.20.0
Updated@aws-cdk/aws-ec2@^0.20.0
Updated@aws-cdk/aws-events@^0.20.0
Updated@aws-cdk/aws-iam@^0.20.0
Updated@aws-cdk/aws-logs@^0.20.0
Updated@aws-cdk/aws-s3@^0.20.0
Updated@aws-cdk/aws-sqs@^0.20.0
Updated@aws-cdk/cdk@^0.20.0
Updated@aws-cdk/cx-api@^0.20.0