New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@aws-cdk/aws-s3-notifications

Package Overview
Dependencies
Maintainers
5
Versions
286
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-cdk/aws-s3-notifications - npm Package Compare versions

Comparing version

to
1.139.0

rosetta/default.ts-fixture

70

.jsii.tabl.json

@@ -5,18 +5,18 @@ {

"snippets": {
"ce5bd6bf0b43ad6183855c6a0f01312d7c5336e5a48b4188ada34a17c2438738": {
"5092da4ad929739e64c43f7a106c3d46ac3f5c3577476cdb6043ba3b1763b630": {
"translations": {
"python": {
"source": "import aws_cdk.aws_s3_notifications as s3n\n\nbucket = s3.Bucket(stack, \"Bucket\")\ntopic = sns.Topic(stack, \"Topic\")\n\nbucket.add_event_notification(s3.EventType.OBJECT_CREATED_PUT, s3n.SnsDestination(topic))",
"source": "import aws_cdk.aws_sns as sns\n\n\nbucket = s3.Bucket(self, \"Bucket\")\ntopic = sns.Topic(self, \"Topic\")\n\nbucket.add_event_notification(s3.EventType.OBJECT_CREATED_PUT, s3n.SnsDestination(topic))",
"version": "1"
},
"csharp": {
"source": "using Amazon.CDK.AWS.S3.Notifications;\n\nvar bucket = new s3.Bucket(stack, \"Bucket\");\nvar topic = new sns.Topic(stack, \"Topic\");\n\nbucket.AddEventNotification(s3.EventType.OBJECT_CREATED_PUT, new SnsDestination(topic));",
"source": "using Amazon.CDK.AWS.SNS;\n\n\nBucket bucket = new Bucket(this, \"Bucket\");\nTopic topic = new Topic(this, \"Topic\");\n\nbucket.AddEventNotification(EventType.OBJECT_CREATED_PUT, new SnsDestination(topic));",
"version": "1"
},
"java": {
"source": "import software.amazon.awscdk.services.s3.notifications.*;\n\nObject bucket = new Bucket(stack, \"Bucket\");\nObject topic = new Topic(stack, \"Topic\");\n\nbucket.addEventNotification(s3.getEventType().getOBJECT_CREATED_PUT(), new SnsDestination(topic));",
"source": "import software.amazon.awscdk.services.sns.*;\n\n\nBucket bucket = new Bucket(this, \"Bucket\");\nTopic topic = new Topic(this, \"Topic\");\n\nbucket.addEventNotification(EventType.OBJECT_CREATED_PUT, new SnsDestination(topic));",
"version": "1"
},
"$": {
"source": "import * as s3n from '@aws-cdk/aws-s3-notifications';\n\nconst bucket = new s3.Bucket(stack, 'Bucket');\nconst topic = new sns.Topic(stack, 'Topic');\n\nbucket.addEventNotification(s3.EventType.OBJECT_CREATED_PUT, new s3n.SnsDestination(topic));",
"source": "import * as sns from '@aws-cdk/aws-sns';\n\nconst bucket = new s3.Bucket(this, 'Bucket');\nconst topic = new sns.Topic(this, 'Topic');\n\nbucket.addEventNotification(s3.EventType.OBJECT_CREATED_PUT, new s3n.SnsDestination(topic));",
"version": "0"

@@ -35,11 +35,19 @@ }

},
"didCompile": false,
"didCompile": true,
"fqnsReferenced": [
"@aws-cdk/aws-s3-notifications.SnsDestination",
"@aws-cdk/aws-sns.ITopic"
"@aws-cdk/aws-s3.Bucket",
"@aws-cdk/aws-s3.BucketBase#addEventNotification",
"@aws-cdk/aws-s3.EventType",
"@aws-cdk/aws-s3.EventType#OBJECT_CREATED_PUT",
"@aws-cdk/aws-s3.IBucketNotificationDestination",
"@aws-cdk/aws-sns.ITopic",
"@aws-cdk/aws-sns.Topic",
"constructs.Construct"
],
"fullSource": "import * as s3n from '@aws-cdk/aws-s3-notifications';\n\nconst bucket = new s3.Bucket(stack, 'Bucket');\nconst topic = new sns.Topic(stack, 'Topic');\n\nbucket.addEventNotification(s3.EventType.OBJECT_CREATED_PUT, new s3n.SnsDestination(topic));",
"fullSource": "// Hoisted imports begin after !show marker below\n/// !show\nimport * as sns from '@aws-cdk/aws-sns';\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Stack } from '@aws-cdk/core';\nimport { Construct } from 'constructs';\nimport * as s3n from '@aws-cdk/aws-s3-notifications';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as path from 'path';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n\nconst bucket = new s3.Bucket(this, 'Bucket');\nconst topic = new sns.Topic(this, 'Topic');\n\nbucket.addEventNotification(s3.EventType.OBJECT_CREATED_PUT, new s3n.SnsDestination(topic));\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
"syntaxKindCounter": {
"10": 3,
"75": 17,
"75": 15,
"104": 2,
"194": 6,

@@ -57,20 +65,20 @@ "196": 1,

},
"fqnsFingerprint": "984f023d18c3c3ea5e90e0c76297052fe10aebe04ebda5f730d987ee3f03a4f5"
"fqnsFingerprint": "dff388c721f2db1e184fbdf6c50ccd597b1551e97677529d37711d7f00601747"
},
"d4b4c81ec2682705a7abf2b9f1ef7fb78fe05cef331c3f4e28be7c5151f4f57f": {
"0136ccb616d00bba4d9d91c40155ef668934806d423882c1bf0bd815747ce72b": {
"translations": {
"python": {
"source": "import aws_cdk.aws_s3_notifications as s3n\n\nbucket = s3.Bucket(stack, \"Bucket\")\nfn = Function(self, \"MyFunction\", {\n \"runtime\": Runtime.NODEJS_12_X,\n \"handler\": \"index.handler\",\n \"code\": Code.from_asset(path.join(__dirname, \"lambda-handler\"))\n})\n\nbucket.add_event_notification(s3.EventType.OBJECT_CREATED, s3n.LambdaDestination(fn))",
"source": "import aws_cdk.aws_lambda as lambda_\n\n\nbucket = s3.Bucket(self, \"Bucket\")\nfn = lambda_.Function(self, \"MyFunction\",\n runtime=lambda_.Runtime.NODEJS_12_X,\n handler=\"index.handler\",\n code=lambda_.Code.from_asset(path.join(__dirname, \"lambda-handler\"))\n)\n\nbucket.add_event_notification(s3.EventType.OBJECT_CREATED, s3n.LambdaDestination(fn))",
"version": "1"
},
"csharp": {
"source": "using Amazon.CDK.AWS.S3.Notifications;\n\nvar bucket = new s3.Bucket(stack, \"Bucket\");\nFunction fn = new Function(this, \"MyFunction\", new Dictionary<string, object> {\n { \"runtime\", Runtime.NODEJS_12_X },\n { \"handler\", \"index.handler\" },\n { \"code\", Code.FromAsset(path.Join(__dirname, \"lambda-handler\")) }\n});\n\nbucket.AddEventNotification(s3.EventType.OBJECT_CREATED, new LambdaDestination(fn));",
"source": "using Amazon.CDK.AWS.Lambda;\n\n\nBucket bucket = new Bucket(this, \"Bucket\");\nFunction fn = new Function(this, \"MyFunction\", new FunctionProps {\n Runtime = Runtime.NODEJS_12_X,\n Handler = \"index.handler\",\n Code = Code.FromAsset(Join(__dirname, \"lambda-handler\"))\n});\n\nbucket.AddEventNotification(EventType.OBJECT_CREATED, new LambdaDestination(fn));",
"version": "1"
},
"java": {
"source": "import software.amazon.awscdk.services.s3.notifications.*;\n\nObject bucket = new Bucket(stack, \"Bucket\");\nFunction fn = new Function(this, \"MyFunction\", Map.of(\n \"runtime\", Runtime.getNODEJS_12_X(),\n \"handler\", \"index.handler\",\n \"code\", Code.fromAsset(path.join(__dirname, \"lambda-handler\"))));\n\nbucket.addEventNotification(s3.getEventType().getOBJECT_CREATED(), new LambdaDestination(fn));",
"source": "import software.amazon.awscdk.services.lambda.*;\n\n\nBucket bucket = new Bucket(this, \"Bucket\");\nFunction fn = Function.Builder.create(this, \"MyFunction\")\n .runtime(Runtime.NODEJS_12_X)\n .handler(\"index.handler\")\n .code(Code.fromAsset(join(__dirname, \"lambda-handler\")))\n .build();\n\nbucket.addEventNotification(EventType.OBJECT_CREATED, new LambdaDestination(fn));",
"version": "1"
},
"$": {
"source": "import * as s3n from '@aws-cdk/aws-s3-notifications';\n\nconst bucket = new s3.Bucket(stack, 'Bucket');\nconst fn = new Function(this, 'MyFunction', {\n runtime: Runtime.NODEJS_12_X,\n handler: 'index.handler',\n code: Code.fromAsset(path.join(__dirname, 'lambda-handler')),\n});\n\nbucket.addEventNotification(s3.EventType.OBJECT_CREATED, new s3n.LambdaDestination(fn));",
"source": "import * as lambda from '@aws-cdk/aws-lambda';\n\nconst bucket = new s3.Bucket(this, 'Bucket');\nconst fn = new lambda.Function(this, 'MyFunction', {\n runtime: lambda.Runtime.NODEJS_12_X,\n handler: 'index.handler',\n code: lambda.Code.fromAsset(path.join(__dirname, 'lambda-handler')),\n});\n\nbucket.addEventNotification(s3.EventType.OBJECT_CREATED, new s3n.LambdaDestination(fn));",
"version": "0"

@@ -89,14 +97,26 @@ }

},
"didCompile": false,
"didCompile": true,
"fqnsReferenced": [
"@aws-cdk/aws-lambda.Code",
"@aws-cdk/aws-lambda.Code#fromAsset",
"@aws-cdk/aws-lambda.Function",
"@aws-cdk/aws-lambda.FunctionProps",
"@aws-cdk/aws-lambda.IFunction",
"@aws-cdk/aws-s3-notifications.LambdaDestination"
"@aws-cdk/aws-lambda.Runtime",
"@aws-cdk/aws-lambda.Runtime#NODEJS_12_X",
"@aws-cdk/aws-s3-notifications.LambdaDestination",
"@aws-cdk/aws-s3.Bucket",
"@aws-cdk/aws-s3.BucketBase#addEventNotification",
"@aws-cdk/aws-s3.EventType",
"@aws-cdk/aws-s3.EventType#OBJECT_CREATED",
"@aws-cdk/aws-s3.IBucketNotificationDestination",
"constructs.Construct"
],
"fullSource": "import * as s3n from '@aws-cdk/aws-s3-notifications';\n\nconst bucket = new s3.Bucket(stack, 'Bucket');\nconst fn = new Function(this, 'MyFunction', {\n runtime: Runtime.NODEJS_12_X,\n handler: 'index.handler',\n code: Code.fromAsset(path.join(__dirname, 'lambda-handler')),\n});\n\nbucket.addEventNotification(s3.EventType.OBJECT_CREATED, new s3n.LambdaDestination(fn));",
"fullSource": "// Hoisted imports begin after !show marker below\n/// !show\nimport * as lambda from '@aws-cdk/aws-lambda';\n/// !hide\n// Hoisted imports ended before !hide marker above\n// Fixture with packages imported, but nothing else\nimport { Stack } from '@aws-cdk/core';\nimport { Construct } from 'constructs';\nimport * as s3n from '@aws-cdk/aws-s3-notifications';\nimport * as s3 from '@aws-cdk/aws-s3';\nimport * as path from 'path';\n\nclass Fixture extends Stack {\n constructor(scope: Construct, id: string) {\n super(scope, id);\n\n // Code snippet begins after !show marker below\n/// !show\n\n\nconst bucket = new s3.Bucket(this, 'Bucket');\nconst fn = new lambda.Function(this, 'MyFunction', {\n runtime: lambda.Runtime.NODEJS_12_X,\n handler: 'index.handler',\n code: lambda.Code.fromAsset(path.join(__dirname, 'lambda-handler')),\n});\n\nbucket.addEventNotification(s3.EventType.OBJECT_CREATED, new s3n.LambdaDestination(fn));\n/// !hide\n// Code snippet ended before !hide marker above\n }\n}\n",
"syntaxKindCounter": {
"10": 5,
"75": 25,
"104": 1,
"75": 27,
"104": 2,
"193": 1,
"194": 8,
"194": 11,
"196": 3,

@@ -114,3 +134,3 @@ "197": 3,

},
"fqnsFingerprint": "071fa67277b57686211c4af7826fbb40075ae4e3106b49b94f72c4c8a95f4e69"
"fqnsFingerprint": "a51b3f199a79021a0ea2b6230094c1e6bffef4c886a6e251b5d378522b642759"
},

@@ -179,3 +199,3 @@ "cbec72179375da2ed508b330d846d65261e7b8ebf6beeb965413a8d7bdbf1e78": {

},
"fqnsFingerprint": "bc2340d92ddbb30eeff593b4ada78445080d8ce648654163168fb84bc2d277f3"
"fqnsFingerprint": "7453434075123e152d1ea2b0e4286a36799c73637c8248a3956d0efb2217e578"
},

@@ -235,3 +255,3 @@ "dd76f450759abcf5701cda8cafbc67c68907c7c204bc49f077f53203ed74af36": {

},
"fqnsFingerprint": "b8a842c77af6d3ba9789fcf0a3ad27d30b4b060ab3d89c728f7a65b710b2aec2"
"fqnsFingerprint": "227d22e19c74dd1f3f981b75267662978784d83f29fc8ee343296909e2d924b3"
},

@@ -297,5 +317,5 @@ "5b0d3b544fe24408eeecc388c30c7b8b7b9c3003f611d642750a59f5b2f82808": {

},
"fqnsFingerprint": "8105a8009372de918ebef4714be05a157347606c409d0e2dad509a548b75769f"
"fqnsFingerprint": "4517696c49cfdd50f0391ff6c1eb2aa7e5df3f65290986832347a6d6b67f67a3"
}
}
}

@@ -62,3 +62,3 @@ "use strict";

_a = JSII_RTTI_SYMBOL_1;
LambdaDestination[_a] = { fqn: "@aws-cdk/aws-s3-notifications.LambdaDestination", version: "1.138.2" };
LambdaDestination[_a] = { fqn: "@aws-cdk/aws-s3-notifications.LambdaDestination", version: "1.139.0" };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGFtYmRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsibGFtYmRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsd0NBQXdDO0FBRXhDLHNDQUFzQztBQUN0Qyx3Q0FBMEQ7QUFFMUQsaUdBQWlHO0FBQ2pHLDhEQUE4RDtBQUM5RCx3Q0FBMEM7Ozs7OztBQUcxQyxNQUFhLGlCQUFpQjs7OztJQUM1QixZQUE2QixFQUFvQjtRQUFwQixPQUFFLEdBQUYsRUFBRSxDQUFrQjtLQUNoRDs7Ozs7Ozs7OztJQUVNLElBQUksQ0FBQyxNQUFpQixFQUFFLE1BQWtCO1FBQy9DLE1BQU0sWUFBWSxHQUFHLDZCQUE2QixZQUFLLENBQUMsWUFBWSxDQUFDLElBQUksQ0FBQyxFQUFFLENBQUMsZUFBZSxDQUFDLEVBQUUsQ0FBQztRQUVoRyxJQUFJLENBQUMsZ0JBQVMsQ0FBQyxXQUFXLENBQUMsTUFBTSxDQUFDLEVBQUU7WUFDbEMsTUFBTSxJQUFJLEtBQUssQ0FBQyxrQ0FBa0MsWUFBSyxDQUFDLFlBQVksQ0FBQyxJQUFJLENBQUMsRUFBRSxDQUFDLGVBQWUsQ0FBQzttQ0FDaEUsTUFBTSxDQUFDLFVBQVUsR0FBRyxDQUFDLENBQUM7U0FDcEQ7UUFFRCxJQUFJLE1BQU0sQ0FBQyxJQUFJLENBQUMsWUFBWSxDQUFDLFlBQVksQ0FBQyxLQUFLLFNBQVMsRUFBRTtZQUN4RCxJQUFJLENBQUMsRUFBRSxDQUFDLGFBQWEsQ0FBQyxZQUFZLEVBQUU7Z0JBQ2xDLGFBQWEsRUFBRSxZQUFLLENBQ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JuOiB0aGlzLmZuLmZ1bmN0aW9uQXJuLFxuICAgICAgZGVwZW5kZW5jaWVzOiBwZXJtaXNzaW9uID8gW3Blcm1pc3Npb25dIDogdW5kZWZpbmVkLFxuICAgIH07XG4gIH1cbn1cbiJdfQ==

@@ -47,3 +47,3 @@ "use strict";

_a = JSII_RTTI_SYMBOL_1;
SnsDestination[_a] = { fqn: "@aws-cdk/aws-s3-notifications.SnsDestination", version: "1.138.2" };
SnsDestination[_a] = { fqn: "@aws-cdk/aws-s3-notifications.SnsDestination", version: "1.139.0" };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic25zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsic25zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsd0NBQXdDO0FBQ3hDLHNDQUFzQzs7Ozs7O0FBS3RDLE1BQWEsY0FBYzs7OztJQUN6QixZQUE2QixLQUFpQjtRQUFqQixVQUFLLEdBQUwsS0FBSyxDQUFZO0tBQzdDOzs7Ozs7Ozs7O0lBRU0sSUFBSSxDQUFDLE1BQWlCLEVBQUUsTUFBa0I7UUFDL0MsSUFBSSxDQUFDLEtBQUssQ0FBQyxtQkFBbUIsQ0FBQyxJQUFJLEdBQUcsQ0FBQyxlQUFlLENBQUM7WUFDckQsVUFBVSxFQUFFLENBQUMsSUFBSSxHQUFHLENBQUMsZ0JBQWdCLENBQUMsa0JBQWtCLENBQUMsQ0FBQztZQUMxRCxPQUFPLEVBQUUsQ0FBQyxhQUFhLENBQUM7WUFDeEIsU0FBUyxFQUFFLENBQUMsSUFBSSxDQUFDLEtBQUssQ0FBQyxRQUFRLENBQUM7WUFDaEMsVUFBVSxFQUFFO2dCQUNWLE9BQU8sRUFBRSxFQUFFLGVBQWUsRUFBRSxNQUFNLENBQUMsU0FBUyxFQUFFO2FBQy9DO1NBQ0YsQ0FBQyxDQUFDLENBQUM7UUFFSixPQUFPO1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czogW3RoaXMudG9waWMudG9waWNBcm5dLFxuICAgICAgY29uZGl0aW9uczoge1xuICAgICAgICBBcm5MaWtlOiB7ICdhd3M6U291cmNlQXJuJzogYnVja2V0LmJ1Y2tldEFybiB9LFxuICAgICAgfSxcbiAgICB9KSk7XG5cbiAgICByZXR1cm4ge1xuICAgICAgYXJuOiB0aGlzLnRvcGljLnRvcGljQXJuLFxuICAgICAgdHlwZTogczMuQnVja2V0Tm90aWZpY2F0aW9uRGVzdGluYXRpb25UeXBlLlRPUElDLFxuICAgICAgZGVwZW5kZW5jaWVzOiBbdGhpcy50b3BpY10sIC8vIG1ha2Ugc3VyZSB0aGUgdG9waWMgcG9saWN5IHJlc291cmNlIGlzIGNyZWF0ZWQgYmVmb3JlIHRoZSBub3RpZmljYXRpb24gY29uZmlnXG4gICAgfTtcbiAgfVxufVxuIl19

@@ -51,3 +51,3 @@ "use strict";

_a = JSII_RTTI_SYMBOL_1;
SqsDestination[_a] = { fqn: "@aws-cdk/aws-s3-notifications.SqsDestination", version: "1.138.2" };
SqsDestination[_a] = { fqn: "@aws-cdk/aws-s3-notifications.SqsDestination", version: "1.139.0" };
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3FzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsic3FzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsd0NBQXdDO0FBQ3hDLHNDQUFzQzs7Ozs7O0FBS3RDLE1BQWEsY0FBYzs7OztJQUN6QixZQUE2QixLQUFpQjtRQUFqQixVQUFLLEdBQUwsS0FBSyxDQUFZO0tBQzdDOzs7Ozs7OztJQUdNLElBQUksQ0FBQyxNQUFpQixFQUFFLE1BQWtCO1FBQy9DLElBQUksQ0FBQyxLQUFLLENBQUMsaUJBQWlCLENBQUMsSUFBSSxHQUFHLENBQUMsZ0JBQWdCLENBQUMsa0JBQWtCLEVBQUU7WUFDeEUsVUFBVS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gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG5leHBvcnQgY2xhc3MgU3FzRGVzdGluYXRpb24gaW1wbGVtZW50cyBzMy5JQnVja2V0Tm90aWZpY2F0aW9uRGVzdGluYXRpb24ge1xuICBjb25zdHJ1Y3Rvcihwcml2YXRlIHJlYWRvbmx5IHF1ZXVlOiBzcXMuSVF1ZXVlKSB7XG4gIH1cblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFxuICBwdWJsaWMgYmluZChfc2NvcGU6IENvbnN0cnVjdCwgYnVja2V0OiBzMy5JQnVja2V0KTogczMuQnVja2V0Tm90aWZpY2F0aW9uRGVzdGluYXRpb25Db25maWcge1xuICAgIHRoaXMucXVldWUuZ3JhbnRTZW5kTWVzc2FnZXMobmV3IGlhbS5TZXJ2aWNlUHJpbmNpcGFsKCdzMy5hbWF6b25hd3MuY29tJywge1xuICAgICAgY29uZGl0aW9uczoge1xuICAgICAgICBBcm5MaWtlOiB7ICdhd3M6U291cmNlQXJuJzogYnVja2V0LmJ1Y2tldEFybiB9LFxuICAgICAgfSxcbiAgICB9KSk7XG5cbiAgICAvLyBpZiB0aGlzIHF1ZXVlIGlzIGVuY3J5cHRlZCwgd2UgbmVlZCB0byBhbGxvdyBTMyB0byByZWFkIG1lc3NhZ2VzIHNpbmNlIHRoYXQncyBob3dcbiAgICAvLyBpdCB2ZXJpZmllcyB0aGF0IHRoZSBub3RpZmljYXRpb24gZGVzdGluYXRpb24gY29uZmlndXJhdGlvbiBpcyB2YWxpZC5cbiAgICBpZiAodGhpcy5xdWV1ZS5lbmNyeXB0aW9uTWFzdGVyS2V5KSB7XG4gICAgICB0aGlzLnF1ZXVlLmVuY3J5cHRpb25NYXN0ZXJLZXkuYWRkVG9SZXNvdXJjZVBvbGljeShuZXcgaWFtLlBvbGljeVN0YXRlbWVudCh7XG4gICAgICAgIHByaW5jaXBhbHM6IFtuZXcgaWFtLlNlcnZpY2VQcmluY2lwYWwoJ3MzLmFtYXpvbmF3cy5jb20nKV0sXG4gICAgICAgIGFjdGlvbnM6IFsna21zOkdlbmVyYXRlRGF0YUtleSonLCAna21zOkRlY3J5cHQnXSxcbiAgICAgICAgcmVzb3VyY2VzOiBbJyonXSxcbiAgICAgIH0pLCAvKiBhbGxvd05vT3AgKi8gZmFsc2UpO1xuICAgIH1cblxuICAgIHJldHVybiB7XG4gICAgICBhcm46IHRoaXMucXVldWUucXVldWVBcm4sXG4gICAgICB0eXBlOiBzMy5CdWNrZXROb3RpZmljYXRpb25EZXN0aW5hdGlvblR5cGUuUVVFVUUsXG4gICAgICBkZXBlbmRlbmNpZXM6IFt0aGlzLnF1ZXVlXSxcbiAgICB9O1xuICB9XG5cbn1cbiJdfQ==
{
"name": "@aws-cdk/aws-s3-notifications",
"version": "1.138.2",
"version": "1.139.0",
"description": "Bucket Notifications API for AWS S3",

@@ -31,3 +31,10 @@ "main": "lib/index.js",

},
"projectReferences": true
"projectReferences": true,
"metadata": {
"jsii": {
"rosetta": {
"strict": true
}
}
}
},

@@ -68,16 +75,16 @@ "repository": {

"devDependencies": {
"@aws-cdk/assert-internal": "1.138.2",
"@aws-cdk/cdk-build-tools": "1.138.2",
"@aws-cdk/cdk-integ-tools": "1.138.2",
"@aws-cdk/pkglint": "1.138.2",
"@types/jest": "^27.0.3",
"jest": "^27.4.5"
"@aws-cdk/assert-internal": "1.139.0",
"@aws-cdk/cdk-build-tools": "1.139.0",
"@aws-cdk/cdk-integ-tools": "1.139.0",
"@aws-cdk/pkglint": "1.139.0",
"@types/jest": "^27.4.0",
"jest": "^27.4.7"
},
"dependencies": {
"@aws-cdk/aws-iam": "1.138.2",
"@aws-cdk/aws-lambda": "1.138.2",
"@aws-cdk/aws-s3": "1.138.2",
"@aws-cdk/aws-sns": "1.138.2",
"@aws-cdk/aws-sqs": "1.138.2",
"@aws-cdk/core": "1.138.2",
"@aws-cdk/aws-iam": "1.139.0",
"@aws-cdk/aws-lambda": "1.139.0",
"@aws-cdk/aws-s3": "1.139.0",
"@aws-cdk/aws-sns": "1.139.0",
"@aws-cdk/aws-sqs": "1.139.0",
"@aws-cdk/core": "1.139.0",
"constructs": "^3.3.69"

@@ -87,8 +94,8 @@ },

"peerDependencies": {
"@aws-cdk/aws-iam": "1.138.2",
"@aws-cdk/aws-lambda": "1.138.2",
"@aws-cdk/aws-s3": "1.138.2",
"@aws-cdk/aws-sns": "1.138.2",
"@aws-cdk/aws-sqs": "1.138.2",
"@aws-cdk/core": "1.138.2",
"@aws-cdk/aws-iam": "1.139.0",
"@aws-cdk/aws-lambda": "1.139.0",
"@aws-cdk/aws-s3": "1.139.0",
"@aws-cdk/aws-sns": "1.139.0",
"@aws-cdk/aws-sqs": "1.139.0",
"@aws-cdk/core": "1.139.0",
"constructs": "^3.3.69"

@@ -95,0 +102,0 @@ },

@@ -21,6 +21,6 @@ # S3 Bucket Notifications Destinations

```ts
import * as s3n from '@aws-cdk/aws-s3-notifications';
import * as sns from '@aws-cdk/aws-sns';
const bucket = new s3.Bucket(stack, 'Bucket');
const topic = new sns.Topic(stack, 'Topic');
const bucket = new s3.Bucket(this, 'Bucket');
const topic = new sns.Topic(this, 'Topic');

@@ -33,9 +33,9 @@ bucket.addEventNotification(s3.EventType.OBJECT_CREATED_PUT, new s3n.SnsDestination(topic));

```ts
import * as s3n from '@aws-cdk/aws-s3-notifications';
import * as lambda from '@aws-cdk/aws-lambda';
const bucket = new s3.Bucket(stack, 'Bucket');
const fn = new Function(this, 'MyFunction', {
runtime: Runtime.NODEJS_12_X,
const bucket = new s3.Bucket(this, 'Bucket');
const fn = new lambda.Function(this, 'MyFunction', {
runtime: lambda.Runtime.NODEJS_12_X,
handler: 'index.handler',
code: Code.fromAsset(path.join(__dirname, 'lambda-handler')),
code: lambda.Code.fromAsset(path.join(__dirname, 'lambda-handler')),
});

@@ -42,0 +42,0 @@

Sorry, the diff of this file is not supported yet