From 3348ee7f8faabab1421ad66fe37da7ca2e552df3 Mon Sep 17 00:00:00 2001 From: Rico Hermans Date: Thu, 13 Apr 2023 12:40:59 +0200 Subject: [PATCH] =?UTF-8?q?chore:=20rename=20aws-kinesisfirehose-destinati?= =?UTF-8?q?ons=20=E2=86=92=20aws-kinesisfirehose-destinations-alpha=20(#25?= =?UTF-8?q?058)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR is part of a refactor to make all directory names equal to the package name of the package inside it. It is a re-roll of #24930, but split into parts (one PR per package), so that we will cut down on merge conflicts. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license* --- .../.eslintrc.js | 0 .../.gitignore | 1 + .../.npmignore | 0 .../LICENSE | 0 .../NOTICE | 0 .../README.md | 0 .../jest.config.js | 0 .../lib/common.ts | 0 .../lib/index.ts | 0 .../lib/private/helpers.ts | 0 .../lib/s3-bucket.ts | 0 .../package.json | 2 +- .../rosetta/default.ts-fixture | 0 .../__entrypoint__.js | 0 .../index.js | 0 .../index.js | 0 ...cdk-firehose-delivery-stream-s3-all-properties.assets.json | 0 ...k-firehose-delivery-stream-s3-all-properties.template.json | 0 .../test/integ.s3-bucket.lit.js.snapshot/cdk.out | 0 .../test/integ.s3-bucket.lit.js.snapshot/integ.json | 0 .../test/integ.s3-bucket.lit.js.snapshot/manifest.json | 0 .../test/integ.s3-bucket.lit.js.snapshot/tree.json | 0 .../test/integ.s3-bucket.lit.ts | 0 .../test/lambda-data-processor.js | 0 .../test/s3-bucket.test.ts | 0 packages/@aws-cdk/aws-kinesisfirehose/README.md | 4 ++-- 26 files changed, 4 insertions(+), 3 deletions(-) rename packages/@aws-cdk/{aws-kinesisfirehose-destinations => aws-kinesisfirehose-destinations-alpha}/.eslintrc.js (100%) rename packages/@aws-cdk/{aws-kinesisfirehose-destinations => aws-kinesisfirehose-destinations-alpha}/.gitignore (90%) rename packages/@aws-cdk/{aws-kinesisfirehose-destinations => aws-kinesisfirehose-destinations-alpha}/.npmignore (100%) rename packages/@aws-cdk/{aws-kinesisfirehose-destinations => aws-kinesisfirehose-destinations-alpha}/LICENSE (100%) rename packages/@aws-cdk/{aws-kinesisfirehose-destinations => aws-kinesisfirehose-destinations-alpha}/NOTICE (100%) rename packages/@aws-cdk/{aws-kinesisfirehose-destinations => aws-kinesisfirehose-destinations-alpha}/README.md (100%) rename packages/@aws-cdk/{aws-kinesisfirehose-destinations => aws-kinesisfirehose-destinations-alpha}/jest.config.js (100%) rename packages/@aws-cdk/{aws-kinesisfirehose-destinations => aws-kinesisfirehose-destinations-alpha}/lib/common.ts (100%) rename packages/@aws-cdk/{aws-kinesisfirehose-destinations => aws-kinesisfirehose-destinations-alpha}/lib/index.ts (100%) rename packages/@aws-cdk/{aws-kinesisfirehose-destinations => aws-kinesisfirehose-destinations-alpha}/lib/private/helpers.ts (100%) rename packages/@aws-cdk/{aws-kinesisfirehose-destinations => aws-kinesisfirehose-destinations-alpha}/lib/s3-bucket.ts (100%) rename packages/@aws-cdk/{aws-kinesisfirehose-destinations => aws-kinesisfirehose-destinations-alpha}/package.json (99%) rename packages/@aws-cdk/{aws-kinesisfirehose-destinations => aws-kinesisfirehose-destinations-alpha}/rosetta/default.ts-fixture (100%) rename packages/@aws-cdk/{aws-kinesisfirehose-destinations => aws-kinesisfirehose-destinations-alpha}/test/integ.s3-bucket.lit.js.snapshot/asset.33e2651435a0d472a75c1e033c9832b21321d9e56711926b04c5705e5f63874c/__entrypoint__.js (100%) rename packages/@aws-cdk/{aws-kinesisfirehose-destinations => aws-kinesisfirehose-destinations-alpha}/test/integ.s3-bucket.lit.js.snapshot/asset.33e2651435a0d472a75c1e033c9832b21321d9e56711926b04c5705e5f63874c/index.js (100%) rename packages/@aws-cdk/{aws-kinesisfirehose-destinations => aws-kinesisfirehose-destinations-alpha}/test/integ.s3-bucket.lit.js.snapshot/asset.fe1ae9f614deb9ad8681131e8d3ebb6f23ae0c8f1f589d433c09881ad327487f/index.js (100%) rename packages/@aws-cdk/{aws-kinesisfirehose-destinations => aws-kinesisfirehose-destinations-alpha}/test/integ.s3-bucket.lit.js.snapshot/aws-cdk-firehose-delivery-stream-s3-all-properties.assets.json (100%) rename packages/@aws-cdk/{aws-kinesisfirehose-destinations => aws-kinesisfirehose-destinations-alpha}/test/integ.s3-bucket.lit.js.snapshot/aws-cdk-firehose-delivery-stream-s3-all-properties.template.json (100%) rename packages/@aws-cdk/{aws-kinesisfirehose-destinations => aws-kinesisfirehose-destinations-alpha}/test/integ.s3-bucket.lit.js.snapshot/cdk.out (100%) rename packages/@aws-cdk/{aws-kinesisfirehose-destinations => aws-kinesisfirehose-destinations-alpha}/test/integ.s3-bucket.lit.js.snapshot/integ.json (100%) rename packages/@aws-cdk/{aws-kinesisfirehose-destinations => aws-kinesisfirehose-destinations-alpha}/test/integ.s3-bucket.lit.js.snapshot/manifest.json (100%) rename packages/@aws-cdk/{aws-kinesisfirehose-destinations => aws-kinesisfirehose-destinations-alpha}/test/integ.s3-bucket.lit.js.snapshot/tree.json (100%) rename packages/@aws-cdk/{aws-kinesisfirehose-destinations => aws-kinesisfirehose-destinations-alpha}/test/integ.s3-bucket.lit.ts (100%) rename packages/@aws-cdk/{aws-kinesisfirehose-destinations => aws-kinesisfirehose-destinations-alpha}/test/lambda-data-processor.js (100%) rename packages/@aws-cdk/{aws-kinesisfirehose-destinations => aws-kinesisfirehose-destinations-alpha}/test/s3-bucket.test.ts (100%) diff --git a/packages/@aws-cdk/aws-kinesisfirehose-destinations/.eslintrc.js b/packages/@aws-cdk/aws-kinesisfirehose-destinations-alpha/.eslintrc.js similarity index 100% rename from packages/@aws-cdk/aws-kinesisfirehose-destinations/.eslintrc.js rename to packages/@aws-cdk/aws-kinesisfirehose-destinations-alpha/.eslintrc.js diff --git a/packages/@aws-cdk/aws-kinesisfirehose-destinations/.gitignore b/packages/@aws-cdk/aws-kinesisfirehose-destinations-alpha/.gitignore similarity index 90% rename from packages/@aws-cdk/aws-kinesisfirehose-destinations/.gitignore rename to packages/@aws-cdk/aws-kinesisfirehose-destinations-alpha/.gitignore index 1e2344880d832..314388afe5abd 100644 --- a/packages/@aws-cdk/aws-kinesisfirehose-destinations/.gitignore +++ b/packages/@aws-cdk/aws-kinesisfirehose-destinations-alpha/.gitignore @@ -22,4 +22,5 @@ junit.xml !**/*.snapshot/**/asset.*/** +!test/lambda-data-processor.js diff --git a/packages/@aws-cdk/aws-kinesisfirehose-destinations/.npmignore b/packages/@aws-cdk/aws-kinesisfirehose-destinations-alpha/.npmignore similarity index 100% rename from packages/@aws-cdk/aws-kinesisfirehose-destinations/.npmignore rename to packages/@aws-cdk/aws-kinesisfirehose-destinations-alpha/.npmignore diff --git a/packages/@aws-cdk/aws-kinesisfirehose-destinations/LICENSE b/packages/@aws-cdk/aws-kinesisfirehose-destinations-alpha/LICENSE similarity index 100% rename from packages/@aws-cdk/aws-kinesisfirehose-destinations/LICENSE rename to packages/@aws-cdk/aws-kinesisfirehose-destinations-alpha/LICENSE diff --git a/packages/@aws-cdk/aws-kinesisfirehose-destinations/NOTICE b/packages/@aws-cdk/aws-kinesisfirehose-destinations-alpha/NOTICE similarity index 100% rename from packages/@aws-cdk/aws-kinesisfirehose-destinations/NOTICE rename to packages/@aws-cdk/aws-kinesisfirehose-destinations-alpha/NOTICE diff --git a/packages/@aws-cdk/aws-kinesisfirehose-destinations/README.md b/packages/@aws-cdk/aws-kinesisfirehose-destinations-alpha/README.md similarity index 100% rename from packages/@aws-cdk/aws-kinesisfirehose-destinations/README.md rename to packages/@aws-cdk/aws-kinesisfirehose-destinations-alpha/README.md diff --git a/packages/@aws-cdk/aws-kinesisfirehose-destinations/jest.config.js b/packages/@aws-cdk/aws-kinesisfirehose-destinations-alpha/jest.config.js similarity index 100% rename from packages/@aws-cdk/aws-kinesisfirehose-destinations/jest.config.js rename to packages/@aws-cdk/aws-kinesisfirehose-destinations-alpha/jest.config.js diff --git a/packages/@aws-cdk/aws-kinesisfirehose-destinations/lib/common.ts b/packages/@aws-cdk/aws-kinesisfirehose-destinations-alpha/lib/common.ts similarity index 100% rename from packages/@aws-cdk/aws-kinesisfirehose-destinations/lib/common.ts rename to packages/@aws-cdk/aws-kinesisfirehose-destinations-alpha/lib/common.ts diff --git a/packages/@aws-cdk/aws-kinesisfirehose-destinations/lib/index.ts b/packages/@aws-cdk/aws-kinesisfirehose-destinations-alpha/lib/index.ts similarity index 100% rename from packages/@aws-cdk/aws-kinesisfirehose-destinations/lib/index.ts rename to packages/@aws-cdk/aws-kinesisfirehose-destinations-alpha/lib/index.ts diff --git a/packages/@aws-cdk/aws-kinesisfirehose-destinations/lib/private/helpers.ts b/packages/@aws-cdk/aws-kinesisfirehose-destinations-alpha/lib/private/helpers.ts similarity index 100% rename from packages/@aws-cdk/aws-kinesisfirehose-destinations/lib/private/helpers.ts rename to packages/@aws-cdk/aws-kinesisfirehose-destinations-alpha/lib/private/helpers.ts diff --git a/packages/@aws-cdk/aws-kinesisfirehose-destinations/lib/s3-bucket.ts b/packages/@aws-cdk/aws-kinesisfirehose-destinations-alpha/lib/s3-bucket.ts similarity index 100% rename from packages/@aws-cdk/aws-kinesisfirehose-destinations/lib/s3-bucket.ts rename to packages/@aws-cdk/aws-kinesisfirehose-destinations-alpha/lib/s3-bucket.ts diff --git a/packages/@aws-cdk/aws-kinesisfirehose-destinations/package.json b/packages/@aws-cdk/aws-kinesisfirehose-destinations-alpha/package.json similarity index 99% rename from packages/@aws-cdk/aws-kinesisfirehose-destinations/package.json rename to packages/@aws-cdk/aws-kinesisfirehose-destinations-alpha/package.json index 4bfeabaa62884..e702d7db24d4c 100644 --- a/packages/@aws-cdk/aws-kinesisfirehose-destinations/package.json +++ b/packages/@aws-cdk/aws-kinesisfirehose-destinations-alpha/package.json @@ -44,7 +44,7 @@ "repository": { "type": "git", "url": "https://github.com/aws/aws-cdk.git", - "directory": "packages/@aws-cdk/aws-kinesisfirehose-destinations" + "directory": "packages/@aws-cdk/aws-kinesisfirehose-destinations-alpha" }, "scripts": { "build": "cdk-build", diff --git a/packages/@aws-cdk/aws-kinesisfirehose-destinations/rosetta/default.ts-fixture b/packages/@aws-cdk/aws-kinesisfirehose-destinations-alpha/rosetta/default.ts-fixture similarity index 100% rename from packages/@aws-cdk/aws-kinesisfirehose-destinations/rosetta/default.ts-fixture rename to packages/@aws-cdk/aws-kinesisfirehose-destinations-alpha/rosetta/default.ts-fixture diff --git a/packages/@aws-cdk/aws-kinesisfirehose-destinations/test/integ.s3-bucket.lit.js.snapshot/asset.33e2651435a0d472a75c1e033c9832b21321d9e56711926b04c5705e5f63874c/__entrypoint__.js b/packages/@aws-cdk/aws-kinesisfirehose-destinations-alpha/test/integ.s3-bucket.lit.js.snapshot/asset.33e2651435a0d472a75c1e033c9832b21321d9e56711926b04c5705e5f63874c/__entrypoint__.js similarity index 100% rename from packages/@aws-cdk/aws-kinesisfirehose-destinations/test/integ.s3-bucket.lit.js.snapshot/asset.33e2651435a0d472a75c1e033c9832b21321d9e56711926b04c5705e5f63874c/__entrypoint__.js rename to packages/@aws-cdk/aws-kinesisfirehose-destinations-alpha/test/integ.s3-bucket.lit.js.snapshot/asset.33e2651435a0d472a75c1e033c9832b21321d9e56711926b04c5705e5f63874c/__entrypoint__.js diff --git a/packages/@aws-cdk/aws-kinesisfirehose-destinations/test/integ.s3-bucket.lit.js.snapshot/asset.33e2651435a0d472a75c1e033c9832b21321d9e56711926b04c5705e5f63874c/index.js b/packages/@aws-cdk/aws-kinesisfirehose-destinations-alpha/test/integ.s3-bucket.lit.js.snapshot/asset.33e2651435a0d472a75c1e033c9832b21321d9e56711926b04c5705e5f63874c/index.js similarity index 100% rename from packages/@aws-cdk/aws-kinesisfirehose-destinations/test/integ.s3-bucket.lit.js.snapshot/asset.33e2651435a0d472a75c1e033c9832b21321d9e56711926b04c5705e5f63874c/index.js rename to packages/@aws-cdk/aws-kinesisfirehose-destinations-alpha/test/integ.s3-bucket.lit.js.snapshot/asset.33e2651435a0d472a75c1e033c9832b21321d9e56711926b04c5705e5f63874c/index.js diff --git a/packages/@aws-cdk/aws-kinesisfirehose-destinations/test/integ.s3-bucket.lit.js.snapshot/asset.fe1ae9f614deb9ad8681131e8d3ebb6f23ae0c8f1f589d433c09881ad327487f/index.js b/packages/@aws-cdk/aws-kinesisfirehose-destinations-alpha/test/integ.s3-bucket.lit.js.snapshot/asset.fe1ae9f614deb9ad8681131e8d3ebb6f23ae0c8f1f589d433c09881ad327487f/index.js similarity index 100% rename from packages/@aws-cdk/aws-kinesisfirehose-destinations/test/integ.s3-bucket.lit.js.snapshot/asset.fe1ae9f614deb9ad8681131e8d3ebb6f23ae0c8f1f589d433c09881ad327487f/index.js rename to packages/@aws-cdk/aws-kinesisfirehose-destinations-alpha/test/integ.s3-bucket.lit.js.snapshot/asset.fe1ae9f614deb9ad8681131e8d3ebb6f23ae0c8f1f589d433c09881ad327487f/index.js diff --git a/packages/@aws-cdk/aws-kinesisfirehose-destinations/test/integ.s3-bucket.lit.js.snapshot/aws-cdk-firehose-delivery-stream-s3-all-properties.assets.json b/packages/@aws-cdk/aws-kinesisfirehose-destinations-alpha/test/integ.s3-bucket.lit.js.snapshot/aws-cdk-firehose-delivery-stream-s3-all-properties.assets.json similarity index 100% rename from packages/@aws-cdk/aws-kinesisfirehose-destinations/test/integ.s3-bucket.lit.js.snapshot/aws-cdk-firehose-delivery-stream-s3-all-properties.assets.json rename to packages/@aws-cdk/aws-kinesisfirehose-destinations-alpha/test/integ.s3-bucket.lit.js.snapshot/aws-cdk-firehose-delivery-stream-s3-all-properties.assets.json diff --git a/packages/@aws-cdk/aws-kinesisfirehose-destinations/test/integ.s3-bucket.lit.js.snapshot/aws-cdk-firehose-delivery-stream-s3-all-properties.template.json b/packages/@aws-cdk/aws-kinesisfirehose-destinations-alpha/test/integ.s3-bucket.lit.js.snapshot/aws-cdk-firehose-delivery-stream-s3-all-properties.template.json similarity index 100% rename from packages/@aws-cdk/aws-kinesisfirehose-destinations/test/integ.s3-bucket.lit.js.snapshot/aws-cdk-firehose-delivery-stream-s3-all-properties.template.json rename to packages/@aws-cdk/aws-kinesisfirehose-destinations-alpha/test/integ.s3-bucket.lit.js.snapshot/aws-cdk-firehose-delivery-stream-s3-all-properties.template.json diff --git a/packages/@aws-cdk/aws-kinesisfirehose-destinations/test/integ.s3-bucket.lit.js.snapshot/cdk.out b/packages/@aws-cdk/aws-kinesisfirehose-destinations-alpha/test/integ.s3-bucket.lit.js.snapshot/cdk.out similarity index 100% rename from packages/@aws-cdk/aws-kinesisfirehose-destinations/test/integ.s3-bucket.lit.js.snapshot/cdk.out rename to packages/@aws-cdk/aws-kinesisfirehose-destinations-alpha/test/integ.s3-bucket.lit.js.snapshot/cdk.out diff --git a/packages/@aws-cdk/aws-kinesisfirehose-destinations/test/integ.s3-bucket.lit.js.snapshot/integ.json b/packages/@aws-cdk/aws-kinesisfirehose-destinations-alpha/test/integ.s3-bucket.lit.js.snapshot/integ.json similarity index 100% rename from packages/@aws-cdk/aws-kinesisfirehose-destinations/test/integ.s3-bucket.lit.js.snapshot/integ.json rename to packages/@aws-cdk/aws-kinesisfirehose-destinations-alpha/test/integ.s3-bucket.lit.js.snapshot/integ.json diff --git a/packages/@aws-cdk/aws-kinesisfirehose-destinations/test/integ.s3-bucket.lit.js.snapshot/manifest.json b/packages/@aws-cdk/aws-kinesisfirehose-destinations-alpha/test/integ.s3-bucket.lit.js.snapshot/manifest.json similarity index 100% rename from packages/@aws-cdk/aws-kinesisfirehose-destinations/test/integ.s3-bucket.lit.js.snapshot/manifest.json rename to packages/@aws-cdk/aws-kinesisfirehose-destinations-alpha/test/integ.s3-bucket.lit.js.snapshot/manifest.json diff --git a/packages/@aws-cdk/aws-kinesisfirehose-destinations/test/integ.s3-bucket.lit.js.snapshot/tree.json b/packages/@aws-cdk/aws-kinesisfirehose-destinations-alpha/test/integ.s3-bucket.lit.js.snapshot/tree.json similarity index 100% rename from packages/@aws-cdk/aws-kinesisfirehose-destinations/test/integ.s3-bucket.lit.js.snapshot/tree.json rename to packages/@aws-cdk/aws-kinesisfirehose-destinations-alpha/test/integ.s3-bucket.lit.js.snapshot/tree.json diff --git a/packages/@aws-cdk/aws-kinesisfirehose-destinations/test/integ.s3-bucket.lit.ts b/packages/@aws-cdk/aws-kinesisfirehose-destinations-alpha/test/integ.s3-bucket.lit.ts similarity index 100% rename from packages/@aws-cdk/aws-kinesisfirehose-destinations/test/integ.s3-bucket.lit.ts rename to packages/@aws-cdk/aws-kinesisfirehose-destinations-alpha/test/integ.s3-bucket.lit.ts diff --git a/packages/@aws-cdk/aws-kinesisfirehose-destinations/test/lambda-data-processor.js b/packages/@aws-cdk/aws-kinesisfirehose-destinations-alpha/test/lambda-data-processor.js similarity index 100% rename from packages/@aws-cdk/aws-kinesisfirehose-destinations/test/lambda-data-processor.js rename to packages/@aws-cdk/aws-kinesisfirehose-destinations-alpha/test/lambda-data-processor.js diff --git a/packages/@aws-cdk/aws-kinesisfirehose-destinations/test/s3-bucket.test.ts b/packages/@aws-cdk/aws-kinesisfirehose-destinations-alpha/test/s3-bucket.test.ts similarity index 100% rename from packages/@aws-cdk/aws-kinesisfirehose-destinations/test/s3-bucket.test.ts rename to packages/@aws-cdk/aws-kinesisfirehose-destinations-alpha/test/s3-bucket.test.ts diff --git a/packages/@aws-cdk/aws-kinesisfirehose/README.md b/packages/@aws-cdk/aws-kinesisfirehose/README.md index 14e4180475e68..8f24b1438f1ac 100644 --- a/packages/@aws-cdk/aws-kinesisfirehose/README.md +++ b/packages/@aws-cdk/aws-kinesisfirehose/README.md @@ -281,7 +281,7 @@ threshold (the "buffer interval"), whichever happens first. You can configure th thresholds based on the capabilities of the destination and your use-case. By default, the buffer size is 5 MiB and the buffer interval is 5 minutes. -```ts +```ts // Increase the buffer interval and size to 10 minutes and 8 MiB, respectively declare const bucket: s3.Bucket; const destination = new destinations.S3Bucket(bucket, { @@ -414,7 +414,7 @@ new firehose.DeliveryStream(this, 'Delivery Stream', { }); ``` -[Example Lambda data processor performing the identity transformation.](../aws-kinesisfirehose-destinations/test/integ.s3-bucket.lit.ts) +[Example Lambda data processor performing the identity transformation.](../aws-kinesisfirehose-destinations-alpha/test/integ.s3-bucket.lit.ts) See: [Data Transformation](https://docs.aws.amazon.com/firehose/latest/dev/data-transformation.html) in the *Kinesis Data Firehose Developer Guide*.