@aws-amplify/cli-internal-gen2-migration-experimental-alpha 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/aws-amplify-cli-internal-gen2-migration-experimental-alpha-0.2.0.tgz +0 -0
- package/lib/commands/drift-detection/detect-local-drift.d.ts +3 -6
- package/lib/commands/drift-detection/detect-local-drift.d.ts.map +1 -1
- package/lib/commands/drift-detection/detect-local-drift.js +4 -8
- package/lib/commands/drift-detection/detect-local-drift.js.map +1 -1
- package/lib/commands/drift-detection/detect-stack-drift.d.ts +3 -2
- package/lib/commands/drift-detection/detect-stack-drift.d.ts.map +1 -1
- package/lib/commands/drift-detection/detect-stack-drift.js +12 -0
- package/lib/commands/drift-detection/detect-stack-drift.js.map +1 -1
- package/lib/commands/drift-detection/detect-template-drift.d.ts +4 -5
- package/lib/commands/drift-detection/detect-template-drift.d.ts.map +1 -1
- package/lib/commands/drift-detection/detect-template-drift.js +122 -94
- package/lib/commands/drift-detection/detect-template-drift.js.map +1 -1
- package/lib/commands/drift-detection/index.d.ts +3 -2
- package/lib/commands/drift-detection/index.d.ts.map +1 -1
- package/lib/commands/drift-detection/index.js +3 -1
- package/lib/commands/drift-detection/index.js.map +1 -1
- package/lib/commands/drift-detection/services/cloudformation-service.d.ts.map +1 -1
- package/lib/commands/drift-detection/services/cloudformation-service.js +3 -5
- package/lib/commands/drift-detection/services/cloudformation-service.js.map +1 -1
- package/lib/commands/drift-detection/services/drift-formatter.d.ts +4 -5
- package/lib/commands/drift-detection/services/drift-formatter.d.ts.map +1 -1
- package/lib/commands/drift-detection/services/drift-formatter.js +15 -38
- package/lib/commands/drift-detection/services/drift-formatter.js.map +1 -1
- package/lib/commands/drift.d.ts +0 -2
- package/lib/commands/drift.d.ts.map +1 -1
- package/lib/commands/drift.js +47 -57
- package/lib/commands/drift.js.map +1 -1
- package/lib/commands/gen2-migration/_step.d.ts +2 -1
- package/lib/commands/gen2-migration/_step.d.ts.map +1 -1
- package/lib/commands/gen2-migration/_step.js +2 -1
- package/lib/commands/gen2-migration/_step.js.map +1 -1
- package/lib/commands/gen2-migration/generate/adapters/auth/index.d.ts +24 -0
- package/lib/commands/gen2-migration/generate/adapters/auth/index.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/adapters/auth/index.js +297 -0
- package/lib/commands/gen2-migration/generate/adapters/auth/index.js.map +1 -0
- package/lib/commands/gen2-migration/generate/adapters/auth/index.test.d.ts +2 -0
- package/lib/commands/gen2-migration/generate/adapters/auth/index.test.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/adapters/auth/index.test.js +140 -0
- package/lib/commands/gen2-migration/generate/adapters/auth/index.test.js.map +1 -0
- package/lib/commands/gen2-migration/generate/adapters/data/index.d.ts +5 -0
- package/lib/commands/gen2-migration/generate/adapters/data/index.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/adapters/data/index.js +17 -0
- package/lib/commands/gen2-migration/generate/adapters/data/index.js.map +1 -0
- package/lib/commands/gen2-migration/generate/adapters/functions/index.d.ts +17 -0
- package/lib/commands/gen2-migration/generate/adapters/functions/index.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/adapters/functions/index.js +46 -0
- package/lib/commands/gen2-migration/generate/adapters/functions/index.js.map +1 -0
- package/lib/commands/gen2-migration/generate/adapters/project/index.d.ts +2 -0
- package/lib/commands/gen2-migration/generate/adapters/project/index.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/adapters/project/index.js +7 -0
- package/lib/commands/gen2-migration/generate/adapters/project/index.js.map +1 -0
- package/lib/commands/gen2-migration/generate/adapters/storage/gen1_storage_codegen_adapter.d.ts +30 -0
- package/lib/commands/gen2-migration/generate/adapters/storage/gen1_storage_codegen_adapter.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/adapters/storage/gen1_storage_codegen_adapter.js +18 -0
- package/lib/commands/gen2-migration/generate/adapters/storage/gen1_storage_codegen_adapter.js.map +1 -0
- package/lib/commands/gen2-migration/generate/adapters/storage/gen1_storage_codegen_adapter.test.d.ts +2 -0
- package/lib/commands/gen2-migration/generate/adapters/storage/gen1_storage_codegen_adapter.test.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/adapters/storage/gen1_storage_codegen_adapter.test.js +181 -0
- package/lib/commands/gen2-migration/generate/adapters/storage/gen1_storage_codegen_adapter.test.js.map +1 -0
- package/lib/commands/gen2-migration/generate/adapters/storage/index.d.ts +3 -0
- package/lib/commands/gen2-migration/generate/adapters/storage/index.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/adapters/storage/index.js +6 -0
- package/lib/commands/gen2-migration/generate/adapters/storage/index.js.map +1 -0
- package/lib/commands/gen2-migration/generate/adapters/storage/storage_access.d.ts +14 -0
- package/lib/commands/gen2-migration/generate/adapters/storage/storage_access.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/adapters/storage/storage_access.js +27 -0
- package/lib/commands/gen2-migration/generate/adapters/storage/storage_access.js.map +1 -0
- package/lib/commands/gen2-migration/generate/backend/synthesizer.d.ts +80 -0
- package/lib/commands/gen2-migration/generate/backend/synthesizer.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/backend/synthesizer.js +901 -0
- package/lib/commands/gen2-migration/generate/backend/synthesizer.js.map +1 -0
- package/lib/commands/gen2-migration/generate/backend/synthesizer.test.d.ts +2 -0
- package/lib/commands/gen2-migration/generate/backend/synthesizer.test.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/backend/synthesizer.test.js +700 -0
- package/lib/commands/gen2-migration/generate/backend/synthesizer.test.js.map +1 -0
- package/lib/commands/gen2-migration/generate/codegen-head/amplify_stack_parser.d.ts +14 -0
- package/lib/commands/gen2-migration/generate/codegen-head/amplify_stack_parser.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/codegen-head/amplify_stack_parser.js +82 -0
- package/lib/commands/gen2-migration/generate/codegen-head/amplify_stack_parser.js.map +1 -0
- package/lib/commands/gen2-migration/generate/codegen-head/analytics.d.ts +10 -0
- package/lib/commands/gen2-migration/generate/codegen-head/analytics.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/codegen-head/analytics.js +11 -0
- package/lib/commands/gen2-migration/generate/codegen-head/analytics.js.map +1 -0
- package/lib/commands/gen2-migration/generate/codegen-head/app_analytics_definition_fetcher.d.ts +13 -0
- package/lib/commands/gen2-migration/generate/codegen-head/app_analytics_definition_fetcher.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/codegen-head/app_analytics_definition_fetcher.js +22 -0
- package/lib/commands/gen2-migration/generate/codegen-head/app_analytics_definition_fetcher.js.map +1 -0
- package/lib/commands/gen2-migration/generate/codegen-head/app_auth_definition_fetcher.d.ts +24 -0
- package/lib/commands/gen2-migration/generate/codegen-head/app_auth_definition_fetcher.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/codegen-head/app_auth_definition_fetcher.js +167 -0
- package/lib/commands/gen2-migration/generate/codegen-head/app_auth_definition_fetcher.js.map +1 -0
- package/lib/commands/gen2-migration/generate/codegen-head/app_functions_definition_fetcher.d.ts +19 -0
- package/lib/commands/gen2-migration/generate/codegen-head/app_functions_definition_fetcher.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/codegen-head/app_functions_definition_fetcher.js +133 -0
- package/lib/commands/gen2-migration/generate/codegen-head/app_functions_definition_fetcher.js.map +1 -0
- package/lib/commands/gen2-migration/generate/codegen-head/app_storage_definition_fetcher.d.ts +23 -0
- package/lib/commands/gen2-migration/generate/codegen-head/app_storage_definition_fetcher.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/codegen-head/app_storage_definition_fetcher.js +172 -0
- package/lib/commands/gen2-migration/generate/codegen-head/app_storage_definition_fetcher.js.map +1 -0
- package/lib/commands/gen2-migration/generate/codegen-head/backend_downloader.d.ts +10 -0
- package/lib/commands/gen2-migration/generate/codegen-head/backend_downloader.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/codegen-head/backend_downloader.js +48 -0
- package/lib/commands/gen2-migration/generate/codegen-head/backend_downloader.js.map +1 -0
- package/lib/commands/gen2-migration/generate/codegen-head/backend_environment_selector.d.ts +11 -0
- package/lib/commands/gen2-migration/generate/codegen-head/backend_environment_selector.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/codegen-head/backend_environment_selector.js +38 -0
- package/lib/commands/gen2-migration/generate/codegen-head/backend_environment_selector.js.map +1 -0
- package/lib/commands/gen2-migration/generate/codegen-head/command-handlers.d.ts +13 -0
- package/lib/commands/gen2-migration/generate/codegen-head/command-handlers.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/codegen-head/command-handlers.js +462 -0
- package/lib/commands/gen2-migration/generate/codegen-head/command-handlers.js.map +1 -0
- package/lib/commands/gen2-migration/generate/codegen-head/data_definition_fetcher.d.ts +47 -0
- package/lib/commands/gen2-migration/generate/codegen-head/data_definition_fetcher.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/codegen-head/data_definition_fetcher.js +222 -0
- package/lib/commands/gen2-migration/generate/codegen-head/data_definition_fetcher.js.map +1 -0
- package/lib/commands/gen2-migration/generate/codegen-head/directory_exists.d.ts +2 -0
- package/lib/commands/gen2-migration/generate/codegen-head/directory_exists.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/codegen-head/directory_exists.js +15 -0
- package/lib/commands/gen2-migration/generate/codegen-head/directory_exists.js.map +1 -0
- package/lib/commands/gen2-migration/generate/codegen-head/format.d.ts +8 -0
- package/lib/commands/gen2-migration/generate/codegen-head/format.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/codegen-head/format.js +66 -0
- package/lib/commands/gen2-migration/generate/codegen-head/format.js.map +1 -0
- package/lib/commands/gen2-migration/generate/codegen-head/logger.d.ts +15 -0
- package/lib/commands/gen2-migration/generate/codegen-head/logger.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/codegen-head/logger.js +14 -0
- package/lib/commands/gen2-migration/generate/codegen-head/logger.js.map +1 -0
- package/lib/commands/gen2-migration/generate/codegen-head/printer.d.ts +26 -0
- package/lib/commands/gen2-migration/generate/codegen-head/printer.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/codegen-head/printer.js +103 -0
- package/lib/commands/gen2-migration/generate/codegen-head/printer.js.map +1 -0
- package/lib/commands/gen2-migration/generate/core/migration-pipeline.d.ts +26 -0
- package/lib/commands/gen2-migration/generate/core/migration-pipeline.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/core/migration-pipeline.js +233 -0
- package/lib/commands/gen2-migration/generate/core/migration-pipeline.js.map +1 -0
- package/lib/commands/gen2-migration/generate/custom-resources/generator/backend-updater.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/custom-resources/generator/backend-updater.js.map +1 -0
- package/lib/commands/gen2-migration/generate/custom-resources/generator/dependency-merger.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/custom-resources/generator/dependency-merger.js.map +1 -0
- package/lib/commands/gen2-migration/generate/custom-resources/generator/file-converter.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/custom-resources/generator/file-converter.js.map +1 -0
- package/lib/commands/gen2-migration/generate/custom-resources/generator/gen2-file-generator.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/custom-resources/generator/gen2-file-generator.js.map +1 -0
- package/lib/commands/gen2-migration/generate/custom-resources/parser/cdk-stack-parser.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/custom-resources/parser/cdk-stack-parser.js.map +1 -0
- package/lib/commands/gen2-migration/generate/custom-resources/parser/pattern-detector.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/custom-resources/parser/pattern-detector.js.map +1 -0
- package/lib/commands/gen2-migration/generate/custom-resources/scanner/custom-resource-scanner.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/custom-resources/scanner/custom-resource-scanner.js.map +1 -0
- package/lib/commands/gen2-migration/generate/custom-resources/transformer/amplify-helper-transformer.d.ts.map +1 -0
- package/lib/commands/gen2-migration/{codegen-custom-resources → generate/custom-resources}/transformer/amplify-helper-transformer.js +25 -3
- package/lib/commands/gen2-migration/generate/custom-resources/transformer/amplify-helper-transformer.js.map +1 -0
- package/lib/commands/gen2-migration/generate/custom-resources/types.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/custom-resources/types.js.map +1 -0
- package/lib/commands/gen2-migration/generate/generators/analytics/index.d.ts +9 -0
- package/lib/commands/gen2-migration/generate/generators/analytics/index.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/generators/analytics/index.js +40 -0
- package/lib/commands/gen2-migration/generate/generators/analytics/index.js.map +1 -0
- package/lib/commands/gen2-migration/generate/generators/auth/index.d.ts +106 -0
- package/lib/commands/gen2-migration/generate/generators/auth/index.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/generators/auth/index.js +286 -0
- package/lib/commands/gen2-migration/generate/generators/auth/index.js.map +1 -0
- package/lib/commands/gen2-migration/generate/generators/auth/index.test.d.ts +2 -0
- package/lib/commands/gen2-migration/generate/generators/auth/index.test.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/generators/auth/index.test.js +437 -0
- package/lib/commands/gen2-migration/generate/generators/auth/index.test.js.map +1 -0
- package/lib/commands/gen2-migration/generate/generators/data/index.d.ts +35 -0
- package/lib/commands/gen2-migration/generate/generators/data/index.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/generators/data/index.js +199 -0
- package/lib/commands/gen2-migration/generate/generators/data/index.js.map +1 -0
- package/lib/commands/gen2-migration/generate/generators/data/index.test.d.ts +2 -0
- package/lib/commands/gen2-migration/generate/generators/data/index.test.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/generators/data/index.test.js +50 -0
- package/lib/commands/gen2-migration/generate/generators/data/index.test.js.map +1 -0
- package/lib/commands/gen2-migration/generate/generators/functions/index.d.ts +17 -0
- package/lib/commands/gen2-migration/generate/generators/functions/index.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/generators/functions/index.js +125 -0
- package/lib/commands/gen2-migration/generate/generators/functions/index.js.map +1 -0
- package/lib/commands/gen2-migration/generate/generators/functions/lambda.d.ts +6 -0
- package/lib/commands/gen2-migration/generate/generators/functions/lambda.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/generators/functions/lambda.js +16 -0
- package/lib/commands/gen2-migration/generate/generators/functions/lambda.js.map +1 -0
- package/lib/commands/gen2-migration/generate/generators/storage/access.d.ts +4 -0
- package/lib/commands/gen2-migration/generate/generators/storage/access.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/generators/storage/access.js +53 -0
- package/lib/commands/gen2-migration/generate/generators/storage/access.js.map +1 -0
- package/lib/commands/gen2-migration/generate/generators/storage/index.d.ts +31 -0
- package/lib/commands/gen2-migration/generate/generators/storage/index.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/generators/storage/index.js +66 -0
- package/lib/commands/gen2-migration/generate/generators/storage/index.js.map +1 -0
- package/lib/commands/gen2-migration/generate/npm_package/renderer.d.ts +27 -0
- package/lib/commands/gen2-migration/generate/npm_package/renderer.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/npm_package/renderer.js +28 -0
- package/lib/commands/gen2-migration/generate/npm_package/renderer.js.map +1 -0
- package/lib/commands/gen2-migration/generate/render_pipeline.d.ts +9 -0
- package/lib/commands/gen2-migration/generate/render_pipeline.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/render_pipeline.js +15 -0
- package/lib/commands/gen2-migration/generate/render_pipeline.js.map +1 -0
- package/lib/commands/gen2-migration/generate/renderers/ensure_directory.d.ts +7 -0
- package/lib/commands/gen2-migration/generate/renderers/ensure_directory.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/renderers/ensure_directory.js +17 -0
- package/lib/commands/gen2-migration/generate/renderers/ensure_directory.js.map +1 -0
- package/lib/commands/gen2-migration/generate/renderers/package_json.d.ts +8 -0
- package/lib/commands/gen2-migration/generate/renderers/package_json.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/renderers/package_json.js +15 -0
- package/lib/commands/gen2-migration/generate/renderers/package_json.js.map +1 -0
- package/lib/commands/gen2-migration/generate/renderers/typescript_block_node.d.ts +11 -0
- package/lib/commands/gen2-migration/generate/renderers/typescript_block_node.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/renderers/typescript_block_node.js +22 -0
- package/lib/commands/gen2-migration/generate/renderers/typescript_block_node.js.map +1 -0
- package/lib/commands/gen2-migration/generate/resource/resource.d.ts +20 -0
- package/lib/commands/gen2-migration/generate/resource/resource.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/resource/resource.js +60 -0
- package/lib/commands/gen2-migration/generate/resource/resource.js.map +1 -0
- package/lib/commands/gen2-migration/generate/test_utils/import_regex.d.ts +2 -0
- package/lib/commands/gen2-migration/generate/test_utils/import_regex.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/test_utils/import_regex.js +6 -0
- package/lib/commands/gen2-migration/generate/test_utils/import_regex.js.map +1 -0
- package/lib/commands/gen2-migration/generate/test_utils/ts_node_printer.d.ts +4 -0
- package/lib/commands/gen2-migration/generate/test_utils/ts_node_printer.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/test_utils/ts_node_printer.js +22 -0
- package/lib/commands/gen2-migration/generate/test_utils/ts_node_printer.js.map +1 -0
- package/lib/commands/gen2-migration/generate/todo_error.d.ts +3 -0
- package/lib/commands/gen2-migration/generate/todo_error.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/todo_error.js +11 -0
- package/lib/commands/gen2-migration/generate/todo_error.js.map +1 -0
- package/lib/commands/gen2-migration/generate/ts_factory_utils.d.ts +3 -0
- package/lib/commands/gen2-migration/generate/ts_factory_utils.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/ts_factory_utils.js +10 -0
- package/lib/commands/gen2-migration/generate/ts_factory_utils.js.map +1 -0
- package/lib/commands/gen2-migration/generate/types.d.ts +4 -0
- package/lib/commands/gen2-migration/generate/types.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/types.js +3 -0
- package/lib/commands/gen2-migration/generate/types.js.map +1 -0
- package/lib/commands/gen2-migration/generate/unsupported/cdk-from-cfn.d.ts +26 -0
- package/lib/commands/gen2-migration/generate/unsupported/cdk-from-cfn.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/unsupported/cdk-from-cfn.js +152 -0
- package/lib/commands/gen2-migration/generate/unsupported/cdk-from-cfn.js.map +1 -0
- package/lib/commands/gen2-migration/generate.js +2 -2
- package/lib/commands/gen2-migration/generate.js.map +1 -1
- package/lib/commands/gen2-migration.d.ts.map +1 -1
- package/lib/commands/gen2-migration.js +2 -1
- package/lib/commands/gen2-migration.js.map +1 -1
- package/package.json +2 -1
- package/aws-amplify-cli-internal-gen2-migration-experimental-alpha-0.1.0.tgz +0 -0
- package/lib/commands/gen2-migration/codegen-custom-resources/generator/backend-updater.d.ts.map +0 -1
- package/lib/commands/gen2-migration/codegen-custom-resources/generator/backend-updater.js.map +0 -1
- package/lib/commands/gen2-migration/codegen-custom-resources/generator/dependency-merger.d.ts.map +0 -1
- package/lib/commands/gen2-migration/codegen-custom-resources/generator/dependency-merger.js.map +0 -1
- package/lib/commands/gen2-migration/codegen-custom-resources/generator/file-converter.d.ts.map +0 -1
- package/lib/commands/gen2-migration/codegen-custom-resources/generator/file-converter.js.map +0 -1
- package/lib/commands/gen2-migration/codegen-custom-resources/generator/gen2-file-generator.d.ts.map +0 -1
- package/lib/commands/gen2-migration/codegen-custom-resources/generator/gen2-file-generator.js.map +0 -1
- package/lib/commands/gen2-migration/codegen-custom-resources/parser/cdk-stack-parser.d.ts.map +0 -1
- package/lib/commands/gen2-migration/codegen-custom-resources/parser/cdk-stack-parser.js.map +0 -1
- package/lib/commands/gen2-migration/codegen-custom-resources/parser/pattern-detector.d.ts.map +0 -1
- package/lib/commands/gen2-migration/codegen-custom-resources/parser/pattern-detector.js.map +0 -1
- package/lib/commands/gen2-migration/codegen-custom-resources/scanner/custom-resource-scanner.d.ts.map +0 -1
- package/lib/commands/gen2-migration/codegen-custom-resources/scanner/custom-resource-scanner.js.map +0 -1
- package/lib/commands/gen2-migration/codegen-custom-resources/transformer/amplify-helper-transformer.d.ts.map +0 -1
- package/lib/commands/gen2-migration/codegen-custom-resources/transformer/amplify-helper-transformer.js.map +0 -1
- package/lib/commands/gen2-migration/codegen-custom-resources/types.d.ts.map +0 -1
- package/lib/commands/gen2-migration/codegen-custom-resources/types.js.map +0 -1
- /package/lib/commands/gen2-migration/{codegen-custom-resources → generate/custom-resources}/generator/backend-updater.d.ts +0 -0
- /package/lib/commands/gen2-migration/{codegen-custom-resources → generate/custom-resources}/generator/backend-updater.js +0 -0
- /package/lib/commands/gen2-migration/{codegen-custom-resources → generate/custom-resources}/generator/dependency-merger.d.ts +0 -0
- /package/lib/commands/gen2-migration/{codegen-custom-resources → generate/custom-resources}/generator/dependency-merger.js +0 -0
- /package/lib/commands/gen2-migration/{codegen-custom-resources → generate/custom-resources}/generator/file-converter.d.ts +0 -0
- /package/lib/commands/gen2-migration/{codegen-custom-resources → generate/custom-resources}/generator/file-converter.js +0 -0
- /package/lib/commands/gen2-migration/{codegen-custom-resources → generate/custom-resources}/generator/gen2-file-generator.d.ts +0 -0
- /package/lib/commands/gen2-migration/{codegen-custom-resources → generate/custom-resources}/generator/gen2-file-generator.js +0 -0
- /package/lib/commands/gen2-migration/{codegen-custom-resources → generate/custom-resources}/parser/cdk-stack-parser.d.ts +0 -0
- /package/lib/commands/gen2-migration/{codegen-custom-resources → generate/custom-resources}/parser/cdk-stack-parser.js +0 -0
- /package/lib/commands/gen2-migration/{codegen-custom-resources → generate/custom-resources}/parser/pattern-detector.d.ts +0 -0
- /package/lib/commands/gen2-migration/{codegen-custom-resources → generate/custom-resources}/parser/pattern-detector.js +0 -0
- /package/lib/commands/gen2-migration/{codegen-custom-resources → generate/custom-resources}/scanner/custom-resource-scanner.d.ts +0 -0
- /package/lib/commands/gen2-migration/{codegen-custom-resources → generate/custom-resources}/scanner/custom-resource-scanner.js +0 -0
- /package/lib/commands/gen2-migration/{codegen-custom-resources → generate/custom-resources}/transformer/amplify-helper-transformer.d.ts +0 -0
- /package/lib/commands/gen2-migration/{codegen-custom-resources → generate/custom-resources}/types.d.ts +0 -0
- /package/lib/commands/gen2-migration/{codegen-custom-resources → generate/custom-resources}/types.js +0 -0
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.createGen2Renderer = void 0;
|
|
7
|
+
const path_1 = __importDefault(require("path"));
|
|
8
|
+
const promises_1 = __importDefault(require("node:fs/promises"));
|
|
9
|
+
const renderer_1 = require("../npm_package/renderer");
|
|
10
|
+
const render_pipeline_1 = require("../render_pipeline");
|
|
11
|
+
const package_json_1 = require("../renderers/package_json");
|
|
12
|
+
const typescript_block_node_1 = require("../renderers/typescript_block_node");
|
|
13
|
+
const synthesizer_1 = require("../backend/synthesizer");
|
|
14
|
+
const ensure_directory_1 = require("../renderers/ensure_directory");
|
|
15
|
+
const index_1 = require("../generators/auth/index");
|
|
16
|
+
const storage_1 = require("../generators/storage");
|
|
17
|
+
const index_2 = require("../generators/data/index");
|
|
18
|
+
const index_3 = require("../generators/functions/index");
|
|
19
|
+
const assert_1 = __importDefault(require("assert"));
|
|
20
|
+
const cdk_from_cfn_1 = require("../unsupported/cdk-from-cfn");
|
|
21
|
+
const index_4 = require("../generators/analytics/index");
|
|
22
|
+
const createFileWriter = (path) => async (content) => promises_1.default.writeFile(path, content);
|
|
23
|
+
const extractGen1FunctionDependencies = async (resourceName) => {
|
|
24
|
+
try {
|
|
25
|
+
const packageJsonPath = path_1.default.join('amplify', 'backend', 'function', resourceName, 'src', 'package.json');
|
|
26
|
+
const packageContent = await promises_1.default.readFile(packageJsonPath, 'utf-8');
|
|
27
|
+
const packageJson = JSON.parse(packageContent);
|
|
28
|
+
return {
|
|
29
|
+
dependencies: packageJson.dependencies,
|
|
30
|
+
devDependencies: packageJson.devDependencies,
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
catch (_a) {
|
|
34
|
+
return {};
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
const mergeAllFunctionDependencies = async (functions) => {
|
|
38
|
+
const functionDeps = {};
|
|
39
|
+
const functionDevDeps = {};
|
|
40
|
+
const mergeWithHighestVersion = (target, source) => {
|
|
41
|
+
for (const [pkg, version] of Object.entries(source)) {
|
|
42
|
+
if (!target[pkg] || version > target[pkg]) {
|
|
43
|
+
target[pkg] = version;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
for (const func of functions) {
|
|
48
|
+
if (func.resourceName) {
|
|
49
|
+
const deps = await extractGen1FunctionDependencies(func.resourceName);
|
|
50
|
+
mergeWithHighestVersion(functionDeps, deps.dependencies || {});
|
|
51
|
+
mergeWithHighestVersion(functionDevDeps, deps.devDependencies || {});
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
return { dependencies: functionDeps, devDependencies: functionDevDeps };
|
|
55
|
+
};
|
|
56
|
+
const copyGen1FunctionFiles = async (resourceName, destDir, fileWriter) => {
|
|
57
|
+
try {
|
|
58
|
+
const gen1SrcDir = path_1.default.join('amplify', 'backend', 'function', resourceName, 'src');
|
|
59
|
+
const srcEntries = await promises_1.default.readdir(gen1SrcDir, { recursive: true, withFileTypes: true });
|
|
60
|
+
for (const entry of srcEntries) {
|
|
61
|
+
if (entry.isFile()) {
|
|
62
|
+
const file = path_1.default.relative(gen1SrcDir, path_1.default.join(entry.parentPath, entry.name));
|
|
63
|
+
const fileName = path_1.default.basename(file);
|
|
64
|
+
const skipFiles = ['package.json', 'package-lock.json', 'yarn.lock', 'pnpm-lock.yaml'];
|
|
65
|
+
if (!skipFiles.includes(fileName)) {
|
|
66
|
+
const srcPath = path_1.default.join(gen1SrcDir, file);
|
|
67
|
+
const content = await promises_1.default.readFile(srcPath, 'utf-8');
|
|
68
|
+
const destFile = file;
|
|
69
|
+
const destPath = path_1.default.join(destDir, destFile);
|
|
70
|
+
await promises_1.default.mkdir(path_1.default.dirname(destPath), { recursive: true });
|
|
71
|
+
await fileWriter(content, destPath);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
catch (error) {
|
|
77
|
+
throw new Error(`Failed to copy Gen 1 function files for '${resourceName}': ${error instanceof Error ? error.message : 'Unknown error'}`);
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
const createGen2Renderer = ({ outputDir, auth, storage, data, functions, analytics, customResources, backendEnvironmentName, rootStackName, cfnClient, unsupportedCategories, fileWriter = (content, path) => createFileWriter(path)(content), }) => {
|
|
81
|
+
var _a;
|
|
82
|
+
const ensureOutputDir = new ensure_directory_1.EnsureDirectory(outputDir);
|
|
83
|
+
const ensureAmplifyDirectory = new ensure_directory_1.EnsureDirectory(path_1.default.join(outputDir, 'amplify'));
|
|
84
|
+
const amplifyPackageJson = new package_json_1.JsonRenderer(async () => {
|
|
85
|
+
const { dependencies: functionDeps, devDependencies: functionDevDeps } = (functions === null || functions === void 0 ? void 0 : functions.length)
|
|
86
|
+
? await mergeAllFunctionDependencies(functions)
|
|
87
|
+
: { dependencies: {}, devDependencies: {} };
|
|
88
|
+
return { type: 'module', dependencies: functionDeps, devDependencies: functionDevDeps };
|
|
89
|
+
}, (content) => fileWriter(content, path_1.default.join(outputDir, 'amplify', 'package.json')));
|
|
90
|
+
const jsonRenderer = new package_json_1.JsonRenderer(async () => {
|
|
91
|
+
let packageJson = {
|
|
92
|
+
name: 'my-gen2-app',
|
|
93
|
+
};
|
|
94
|
+
try {
|
|
95
|
+
const packageJsonContents = await promises_1.default.readFile(`./package.json`, { encoding: 'utf-8' });
|
|
96
|
+
packageJson = JSON.parse(packageJsonContents);
|
|
97
|
+
}
|
|
98
|
+
catch (e) {
|
|
99
|
+
}
|
|
100
|
+
return (0, renderer_1.patchNpmPackageJson)(packageJson, {
|
|
101
|
+
'aws-cdk': '^2',
|
|
102
|
+
'aws-cdk-lib': '^2',
|
|
103
|
+
'ci-info': '^4.3.1',
|
|
104
|
+
constructs: '^10.0.0',
|
|
105
|
+
'@types/node': '*',
|
|
106
|
+
'@aws-amplify/backend': '^1.18.0',
|
|
107
|
+
'@aws-amplify/backend-cli': '^1.8.0',
|
|
108
|
+
'@aws-amplify/backend-data': '^1.6.2',
|
|
109
|
+
tsx: '^4.20.6',
|
|
110
|
+
esbuild: '^0.27.0',
|
|
111
|
+
});
|
|
112
|
+
}, (content) => fileWriter(content, path_1.default.join(outputDir, 'package.json')));
|
|
113
|
+
const amplifyTsConfigJson = new package_json_1.JsonRenderer(async () => ({
|
|
114
|
+
compilerOptions: {
|
|
115
|
+
target: 'es2022',
|
|
116
|
+
module: 'es2022',
|
|
117
|
+
moduleResolution: 'bundler',
|
|
118
|
+
resolveJsonModule: true,
|
|
119
|
+
esModuleInterop: true,
|
|
120
|
+
forceConsistentCasingInFileNames: true,
|
|
121
|
+
strict: true,
|
|
122
|
+
skipLibCheck: true,
|
|
123
|
+
paths: {
|
|
124
|
+
'$amplify/*': ['../.amplify/generated/*'],
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
}), (content) => fileWriter(content, path_1.default.join(outputDir, 'amplify', 'tsconfig.json')));
|
|
128
|
+
const backendSynthesizer = new synthesizer_1.BackendSynthesizer();
|
|
129
|
+
const backendRenderOptions = {};
|
|
130
|
+
const renderers = [ensureOutputDir, ensureAmplifyDirectory, amplifyPackageJson, amplifyTsConfigJson, jsonRenderer];
|
|
131
|
+
if (unsupportedCategories && unsupportedCategories.size >= 1) {
|
|
132
|
+
backendRenderOptions.unsupportedCategories = unsupportedCategories;
|
|
133
|
+
}
|
|
134
|
+
if (analytics) {
|
|
135
|
+
console.log('There are Analytics found in the Gen1 App');
|
|
136
|
+
const cdkFromCfn = new cdk_from_cfn_1.CdkFromCfn(outputDir, fileWriter, cfnClient, rootStackName);
|
|
137
|
+
const analyticsDir = path_1.default.join(outputDir, 'amplify', 'analytics');
|
|
138
|
+
renderers.push(new ensure_directory_1.EnsureDirectory(analyticsDir));
|
|
139
|
+
for (const analyticName of Object.keys(analytics)) {
|
|
140
|
+
const analyticObj = analytics[analyticName];
|
|
141
|
+
analyticObj.name = analyticName;
|
|
142
|
+
if (analyticObj.service === 'Kinesis') {
|
|
143
|
+
console.log('Analytics backed by Kinesis found, generating L1 Code');
|
|
144
|
+
renderers.push(new typescript_block_node_1.TypescriptNodeArrayRenderer(async () => {
|
|
145
|
+
const codegenResult = await cdkFromCfn.generateKinesisAnalyticsL1Code(analyticObj);
|
|
146
|
+
const analyticsParams = {
|
|
147
|
+
stackClassName: codegenResult.stackClassName,
|
|
148
|
+
stackFileName: codegenResult.stackFileName,
|
|
149
|
+
resourceName: codegenResult.resourceName,
|
|
150
|
+
shardCount: codegenResult.shardCount,
|
|
151
|
+
};
|
|
152
|
+
return (0, index_4.renderAnalytics)(analyticsParams);
|
|
153
|
+
}, (content) => fileWriter(content, path_1.default.join(analyticsDir, 'resource.ts'))));
|
|
154
|
+
backendRenderOptions.analytics = { importFrom: './analytics/resource' };
|
|
155
|
+
}
|
|
156
|
+
else {
|
|
157
|
+
console.log('Analytics backed by Pinpoint found, still unsupported');
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
if (functions && functions.length) {
|
|
162
|
+
const functionNamesAndCategory = new Map();
|
|
163
|
+
for (const func of functions) {
|
|
164
|
+
if (func.name) {
|
|
165
|
+
if (!((_a = func.runtime) === null || _a === void 0 ? void 0 : _a.startsWith('nodejs'))) {
|
|
166
|
+
throw new Error(`Function '${func.name}' uses unsupported runtime '${func.runtime}'. Gen 2 migration only supports Node.js functions.`);
|
|
167
|
+
}
|
|
168
|
+
const resourceName = func.resourceName;
|
|
169
|
+
(0, assert_1.default)(resourceName);
|
|
170
|
+
const funcCategory = func.category;
|
|
171
|
+
(0, assert_1.default)(funcCategory);
|
|
172
|
+
functionNamesAndCategory.set(resourceName, funcCategory);
|
|
173
|
+
const dirPath = path_1.default.join(outputDir, 'amplify', funcCategory, resourceName);
|
|
174
|
+
renderers.push(new ensure_directory_1.EnsureDirectory(dirPath));
|
|
175
|
+
renderers.push(new typescript_block_node_1.TypescriptNodeArrayRenderer(async () => (0, index_3.renderFunctions)(func), (content) => {
|
|
176
|
+
return fileWriter(content, path_1.default.join(dirPath, 'resource.ts')).then(() => copyGen1FunctionFiles(resourceName, dirPath, fileWriter));
|
|
177
|
+
}));
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
backendRenderOptions.function = {
|
|
181
|
+
importFrom: './function/resource',
|
|
182
|
+
functionNamesAndCategories: functionNamesAndCategory,
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
if (auth) {
|
|
186
|
+
renderers.push(new ensure_directory_1.EnsureDirectory(path_1.default.join(outputDir, 'amplify', 'auth')));
|
|
187
|
+
renderers.push(new typescript_block_node_1.TypescriptNodeArrayRenderer(async () => (0, index_1.renderAuthNode)(auth), (content) => fileWriter(content, path_1.default.join(outputDir, 'amplify', 'auth', 'resource.ts'))));
|
|
188
|
+
backendRenderOptions.auth = {
|
|
189
|
+
importFrom: './auth/resource',
|
|
190
|
+
userPoolOverrides: auth === null || auth === void 0 ? void 0 : auth.userPoolOverrides,
|
|
191
|
+
guestLogin: auth === null || auth === void 0 ? void 0 : auth.guestLogin,
|
|
192
|
+
identityPoolName: auth === null || auth === void 0 ? void 0 : auth.identityPoolName,
|
|
193
|
+
oAuthFlows: auth === null || auth === void 0 ? void 0 : auth.oAuthFlows,
|
|
194
|
+
readAttributes: auth === null || auth === void 0 ? void 0 : auth.readAttributes,
|
|
195
|
+
writeAttributes: auth === null || auth === void 0 ? void 0 : auth.writeAttributes,
|
|
196
|
+
referenceAuth: auth === null || auth === void 0 ? void 0 : auth.referenceAuth,
|
|
197
|
+
userPoolClient: auth === null || auth === void 0 ? void 0 : auth.userPoolClient,
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
if (data) {
|
|
201
|
+
renderers.push(new ensure_directory_1.EnsureDirectory(path_1.default.join(outputDir, 'amplify', 'data')));
|
|
202
|
+
renderers.push(new typescript_block_node_1.TypescriptNodeArrayRenderer(async () => (0, index_2.generateDataSource)(backendEnvironmentName, data), (content) => fileWriter(content, path_1.default.join(outputDir, 'amplify', 'data', 'resource.ts'))));
|
|
203
|
+
backendRenderOptions.data = {
|
|
204
|
+
importFrom: './data/resource',
|
|
205
|
+
additionalAuthProviders: data.additionalAuthProviders,
|
|
206
|
+
restApis: data.restApis,
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
if (storage) {
|
|
210
|
+
const hasS3Bucket = (storage === null || storage === void 0 ? void 0 : storage.accessPatterns) || (storage === null || storage === void 0 ? void 0 : storage.storageIdentifier);
|
|
211
|
+
if (hasS3Bucket) {
|
|
212
|
+
renderers.push(new ensure_directory_1.EnsureDirectory(path_1.default.join(outputDir, 'amplify', 'storage')));
|
|
213
|
+
renderers.push(new typescript_block_node_1.TypescriptNodeArrayRenderer(async () => (0, storage_1.renderStorage)(storage), (content) => fileWriter(content, path_1.default.join(outputDir, 'amplify', 'storage', 'resource.ts'))));
|
|
214
|
+
}
|
|
215
|
+
backendRenderOptions.storage = {
|
|
216
|
+
importFrom: './storage/resource',
|
|
217
|
+
dynamoTables: storage.dynamoTables,
|
|
218
|
+
accelerateConfiguration: storage.accelerateConfiguration,
|
|
219
|
+
versionConfiguration: storage.versioningConfiguration,
|
|
220
|
+
hasS3Bucket: hasS3Bucket,
|
|
221
|
+
bucketEncryptionAlgorithm: storage.bucketEncryptionAlgorithm,
|
|
222
|
+
bucketName: storage.bucketName,
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
if (customResources && customResources.size > 0) {
|
|
226
|
+
backendRenderOptions.customResources = customResources;
|
|
227
|
+
}
|
|
228
|
+
const backendRenderer = new typescript_block_node_1.TypescriptNodeArrayRenderer(async () => backendSynthesizer.render(backendRenderOptions), (content) => fileWriter(content, path_1.default.join(outputDir, 'amplify', 'backend.ts')));
|
|
229
|
+
renderers.push(backendRenderer);
|
|
230
|
+
return new render_pipeline_1.RenderPipeline(renderers);
|
|
231
|
+
};
|
|
232
|
+
exports.createGen2Renderer = createGen2Renderer;
|
|
233
|
+
//# sourceMappingURL=migration-pipeline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migration-pipeline.js","sourceRoot":"","sources":["../../../../../src/commands/gen2-migration/generate/core/migration-pipeline.ts"],"names":[],"mappings":";;;;;;AAcA,gDAAwB;AACxB,gEAAkC;AAClC,sDAA2E;AAC3E,wDAA8D;AAC9D,4DAAyD;AACzD,8EAAiF;AACjF,wDAAqF;AACrF,oEAAgE;AAEhE,oDAyBkC;AAClC,mDAQ+B;AAE/B,oDAAgG;AAEhG,yDAAoF;AACpF,oDAA4B;AAC5B,8DAA6G;AAC7G,yDAA2F;AAsD3F,MAAM,gBAAgB,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,KAAK,EAAE,OAAe,EAAE,EAAE,CAAC,kBAAE,CAAC,SAAS,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AAOlG,MAAM,+BAA+B,GAAG,KAAK,EAC3C,YAAoB,EAC0E,EAAE;IAChG,IAAI,CAAC;QACH,MAAM,eAAe,GAAG,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,YAAY,EAAE,KAAK,EAAE,cAAc,CAAC,CAAC;QACzG,MAAM,cAAc,GAAG,MAAM,kBAAE,CAAC,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;QACnE,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;QAC/C,OAAO;YACL,YAAY,EAAE,WAAW,CAAC,YAAY;YACtC,eAAe,EAAE,WAAW,CAAC,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backend-updater.d.ts","sourceRoot":"","sources":["../../../../../../src/commands/gen2-migration/generate/custom-resources/generator/backend-updater.ts"],"names":[],"mappings":"AAGA,qBAAa,cAAc;IAInB,iBAAiB,CAAC,eAAe,EAAE,MAAM,EAAE,eAAe,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAwBrG,OAAO,CAAC,YAAY;IAcpB,OAAO,CAAC,mBAAmB;IAa3B,OAAO,CAAC,iBAAiB;CAuB1B"}
|
package/lib/commands/gen2-migration/generate/custom-resources/generator/backend-updater.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"backend-updater.js","sourceRoot":"","sources":["../../../../../../src/commands/gen2-migration/generate/custom-resources/generator/backend-updater.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2BAAoC;AACpC,+CAAiC;AAEjC,MAAa,cAAc;IAIzB,KAAK,CAAC,iBAAiB,CAAC,eAAuB,EAAE,eAAoC;QACnF,IAAI,eAAe,CAAC,IAAI,KAAK,CAAC,EAAE,CAAC;YAC/B,OAAO;QACT,CAAC;QACD,MAAM,OAAO,GAAG,MAAM,aAAE,CAAC,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;QAC5D,MAAM,UAAU,GAAG,EAAE,CAAC,gBAAgB,CAAC,eAAe,EAAE,OAAO,EAAE,EAAE,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QAE/F,MAAM,OAAO,GAA2B,EAAE,CAAC;QAC3C,MAAM,cAAc,GAA6B,EAAE,CAAC;QAEpD,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC,OAAO,EAAE,CAAC,CAAC;QACtD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACxC,MAAM,CAAC,YA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AAE,CAAC,OAAO,CAAC,gBAAgB,CAAC,YAAY,CAAC,EAAE,SAAS,EAAE;YACnF,EAAE,CAAC,OAAO,CAAC,oBAAoB,CAC7B,EAAE,CAAC,OAAO,CAAC,8BAA8B,CAAC,EAAE,CAAC,OAAO,CAAC,gBAAgB,CAAC,SAAS,CAAC,EAAE,aAAa,CAAC,EAChG,SAAS,EACT,CAAC,EAAE,CAAC,OAAO,CAAC,mBAAmB,CAAC,YAAY,CAAC,CAAC,CAC/C;YACD,EAAE,CAAC,OAAO,CAAC,mBAAmB,CAAC,YAAY,CAAC;SAC7C,CAAC,CACH,CAAC;IACJ,CAAC;IAEO,iBAAiB,CACvB,UAAyB,EACzB,OAA+B,EAC/B,cAAwC;QAExC,MAAM,UAAU,GAAG,CAAC,GAAG,UAAU,CAAC,UAAU,CAAC,CAAC;QAG9C,IAAI,eAAe,GAAG,CAAC,CAAC,CAAC;QACzB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,UAAU,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YAC3C,IAAI,EAAE,CAAC,mBAAmB,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;gBAC1C,eAAe,GAAG,CAAC,CAAC;YACtB,CAAC;QACH,CAAC;QAGD,UAAU,CAAC,MAAM,CAAC,eAAe,GAAG,CAAC,EAAE,CAAC,EAAE,GAAG,OAAO,CAAC,CAAC;QAGtD,UAAU,CAAC,IAAI,CAAC,GAAG,cAAc,CAAC,CAAC;QAEnC,OAAO,EAAE,CAAC,OAAO,CAAC,gBAAgB,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;IAC7D,CAAC;CACF;AA9ED,wCA8EC"}
|
package/lib/commands/gen2-migration/generate/custom-resources/generator/dependency-merger.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dependency-merger.d.ts","sourceRoot":"","sources":["../../../../../../src/commands/gen2-migration/generate/custom-resources/generator/dependency-merger.ts"],"names":[],"mappings":"AAQA,qBAAa,gBAAgB;IAIrB,iBAAiB,CAAC,mBAAmB,EAAE,MAAM,EAAE,qBAAqB,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;YAcpF,yBAAyB;YAwBzB,eAAe;IAK7B,OAAO,CAAC,SAAS;IAgBjB,OAAO,CAAC,cAAc;CAgBvB"}
|
package/lib/commands/gen2-migration/generate/custom-resources/generator/dependency-merger.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dependency-merger.js","sourceRoot":"","sources":["../../../../../../src/commands/gen2-migration/generate/custom-resources/generator/dependency-merger.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2BAAoC;AACpC,2CAA6B;AAO7B,MAAa,gBAAgB;IAI3B,KAAK,CAAC,iBAAiB,CAAC,mBAA2B,EAAE,qBAA6B;QAChF,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,yBAAyB,CAAC,mBAAmB,CAAC,CAAC;QAC7E,IAAI,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,MAAM,KAAK,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC9G,OAAO;QACT,CAAC;QAED,MAAM,iBAAiB,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,qBAAqB,CAAC,CAAC;QAE5E,iBAAiB,CAAC,YAAY,GAAG,IAAI,CAAC,SAAS,CAAC,iBAAiB,CAAC,YAAY,IAAI,EAAE,EAAE,UAAU,CAAC,YAAY,CAAC,CAAC;QAC/G,iBAAiB,CAAC,eAAe,GAAG,IAAI,CAAC,SAAS,CAAC,iBAAiB,CAAC,eAAe,IAAI,EAAE,EAAE,UAAU,CAAC,eAAe,CAAC,CAAC;QAExH,MAAM,aAAE,CAAC,SAAS,CAAC,qBAAqB,E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EAAE,CAAC;YAChE,MAAM,EAAE,GAAG,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;YAC1B,MAAM,EAAE,GAAG,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;YAC1B,IAAI,EAAE,GAAG,EAAE;gBAAE,OAAO,IAAI,CAAC;YACzB,IAAI,EAAE,GAAG,EAAE;gBAAE,OAAO,KAAK,CAAC;QAC5B,CAAC;QAED,OAAO,KAAK,CAAC;IACf,CAAC;CACF;AA/ED,4CA+EC"}
|
package/lib/commands/gen2-migration/generate/custom-resources/generator/file-converter.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-converter.d.ts","sourceRoot":"","sources":["../../../../../../src/commands/gen2-migration/generate/custom-resources/generator/file-converter.ts"],"names":[],"mappings":"AAGA,qBAAa,aAAa;IAIlB,yBAAyB,CAAC,mBAAmB,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IA6BrE,oBAAoB,CAAC,mBAAmB,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CA2BvE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-converter.js","sourceRoot":"","sources":["../../../../../../src/commands/gen2-migration/generate/custom-resources/generator/file-converter.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2BAAoC;AACpC,2CAA6B;AAE7B,MAAa,aAAa;IAIxB,KAAK,CAAC,yBAAyB,CAAC,mBAA2B;QACzD,IAAI,CAAC;YACH,MAAM,SAAS,GAAG,MAAM,aAAE,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC;YAExD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;gBAC1C,MAAM,QAAQ,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;gBAC9B,MAAM,WAAW,GAA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AAC,GAAG,CAAC,EAAE,CAAC,GAAG,iBAAiB,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;wBAClD,MAAM,QAAQ,GAAG,iBAAiB,CAAC,CAAC,CAAC,CAAC;wBACtC,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;wBACtD,IAAI,CAAC;4BACH,MAAM,aAAE,CAAC,EAAE,CAAC,YAAY,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;wBAC9D,CAAC;wBAAC,WAAM,CAAC;wBAET,CAAC;oBACH,CAAC;gBACH,CAAC;YACH,CAAC;QACH,CAAC;QAAC,WAAM,CAAC;QAET,CAAC;IACH,CAAC;CACF;AA5DD,sCA4DC"}
|
package/lib/commands/gen2-migration/generate/custom-resources/generator/gen2-file-generator.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gen2-file-generator.d.ts","sourceRoot":"","sources":["../../../../../../src/commands/gen2-migration/generate/custom-resources/generator/gen2-file-generator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE3C,qBAAa,iBAAiB;IAI5B,oBAAoB,CAAC,SAAS,EAAE,eAAe,GAAG,MAAM;IAOxD,OAAO,CAAC,eAAe;IAWvB,OAAO,CAAC,wBAAwB;IAchC,OAAO,CAAC,UAAU;CAOnB"}
|
package/lib/commands/gen2-migration/generate/custom-resources/generator/gen2-file-generator.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gen2-file-generator.js","sourceRoot":"","sources":["../../../../../../src/commands/gen2-migration/generate/custom-resources/generator/gen2-file-generator.ts"],"names":[],"mappings":";;;AAEA,MAAa,iBAAiB;IAI5B,oBAAoB,CAAC,SAA0B;QAC7C,MAAM,OAAO,GAAG,IAAI,CAAC,eAAe,CAAC,SAAS,CAA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C,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;aACnD,IAAI,CAAC,IAAI,CAAC,CAAC;IAChB,CAAC;CACF;AA3CD,8CA2CC"}
|
package/lib/commands/gen2-migration/generate/custom-resources/parser/cdk-stack-parser.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cdk-stack-parser.d.ts","sourceRoot":"","sources":["../../../../../../src/commands/gen2-migration/generate/custom-resources/parser/cdk-stack-parser.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,qBAAa,cAAc;IAInB,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;CAmDzD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cdk-stack-parser.js","sourceRoot":"","sources":["../../../../../../src/commands/gen2-migration/generate/custom-resources/parser/cdk-stack-parser.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAiC;AACjC,6CAA+B;AAG/B,MAAa,cAAc;IAIzB,KAAK,CAAC,UAAU,CAAC,QAAgB;QAC/B,MAAM,UAAU,GAAG,MAAM,EAAE,CAAC,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QACxD,MAAM,UAAU,GAAG,EAAE,CAAC,gBAAgB,CAAC,QAAQ,EAAE,UAAU,EAAE,EAAE,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;QAE3F,MAAM,OAAO,GAAa,EAAE,CAAC;QAC7B,IAAI,SAAS,GAAG,aAAa,CAAC;QAC9B,IAAI,eAAe,GAAG,EAAE,CAAC;QACzB,MAAM,OAAO,GAAU,EAAE,CAAC;QAC1B,IAAI,iBAAiB,GAAG,KAAK,CAAC;QAC9B,IAAI,qBAAqB,GA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
{"version":3,"file":"pattern-detector.d.ts","sourceRoot":"","sources":["../../../../../../src/commands/gen2-migration/generate/custom-resources/parser/pattern-detector.ts"],"names":[],"mappings":"AAAA,qBAAa,eAAe;IAI1B,cAAc,CAAC,eAAe,EAAE,MAAM,GAAG;QACvC,eAAe,EAAE,OAAO,CAAC;QACzB,WAAW,EAAE,OAAO,CAAC;QACrB,iBAAiB,EAAE,OAAO,CAAC;QAC3B,wBAAwB,EAAE,OAAO,CAAC;QAClC,YAAY,EAAE,OAAO,CAAC;KACvB;IAaD,iBAAiB,CAAC,eAAe,EAAE,MAAM,GAAG,KAAK,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAuBvG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pattern-detector.js","sourceRoot":"","sources":["../../../../../../src/commands/gen2-migration/generate/custom-resources/parser/pattern-detector.ts"],"names":[],"mappings":";;;AAAA,MAAa,eAAe;IAI1B,cAAc,CAAC,eAAuB;QAOpC,OAAO;YACL,eAAe,EAAE,wDAAwD,CAAC,IAAI,CAAC,eAAe,CAAC;YAC/F,WAAW,EAAE,uCAAuC,CAAC,IAAI,CAAC,eAAe,CAAC;YAC1E,iBAAiB,EAAE,2CAA2C,CAAC,IAAI,CAAC,eAAe,CAAC;YACpF,wBAAwB,EAAE,wCAAwC,CAAC,IAAI,CAAC,eAAe,CAAC;YACxF,YAAY,EAAE,uBAAuB,CAAC,IAAI,CAAC,eAAe,CAAC;SAC5D,CAAC;IACJ,CAAC;IAKD,iBAAiB,CAAC,eAAuB;QACvC,MAAM,OAAO,GAA+D,EAAE,CAAC;QAC/E,MAAM,WAAW,GAAG,4EAA4E,CAAC;QAEjG,IAAI,KAAK,CAAC;QACV,OAAO,CAAC,KAAK,GAAG,WAAW,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,KAAK,IAAI,EAAE,CAAC;YAC5D,MAAM,EAAE,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;YACpB,MAAM,QAAQ,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;YAE1B,MAAM,UAAU,GAAG,uBAAuB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YAC1D,MAAM,SAAS,GAAG,qCAAqC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;YAEvE,IAAI,UAAU,EAAE,CAAC;gBACf,OAAO,CAAC,IAAI,CAAC;oBACX,EAAE;oBACF,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE;oBAC3B,WAAW,EAAE,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS;iBAClD,CAAC,CAAC;YACL,CAAC;QACH,CAAC;QAED,OAAO,OAAO,CAAC;IACjB,CAAC;CACF;AA9CD,0CA8CC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom-resource-scanner.d.ts","sourceRoot":"","sources":["../../../../../../src/commands/gen2-migration/generate/custom-resources/scanner/custom-resource-scanner.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,qBAAa,qBAAqB;IAI1B,mBAAmB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;CA8B1E"}
|
package/lib/commands/gen2-migration/generate/custom-resources/scanner/custom-resource-scanner.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom-resource-scanner.js","sourceRoot":"","sources":["../../../../../../src/commands/gen2-migration/generate/custom-resources/scanner/custom-resource-scanner.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,2BAAwD;AACxD,2CAA6B;AAG7B,MAAa,qBAAqB;IAIhC,KAAK,CAAC,mBAAmB,CAAC,WAAmB;QAC3C,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;QAEzE,IAAI,CAAC,IAAA,eAAU,EAAC,SAAS,CAAC,EAAE,CAAC;YAC3B,OAAO,EAAE,CAAC;QACZ,CAAC;QAED,MAAM,SAAS,GAAqB,EAAE,CAAC;QACvC,MAAM,OAAO,GAAG,MAAM,aAAU,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;QAEpD,KAAK,MAAM,SAAS,IAAI,OAAO,EAAE,CAAC;YAChC,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;YAClD,MAAM,IAAI,GAAG,MAAM,aAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YAE9C,IAAI,IAAI,CAAC,WAAW,EAAE,EAAE,CAAC;gBACvB,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;gBACrD,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC;gBAE7D,IAAI,IAAA,eAAU,EAAC,YAAY,CAAC,EAAE,CAAC;oBAC7B,SAAS,CAAC,IAAI,CAAC;wBACb,IAAI,EAAE,SAAS;wBACf,IAAI,EAAE,YAAY;wBAClB,YAAY;qBACb,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;QACH,CAAC;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;CACF;AAlCD,sDAkCC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"amplify-helper-transformer.d.ts","sourceRoot":"","sources":["../../../../../../src/commands/gen2-migration/generate/custom-resources/transformer/amplify-helper-transformer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAEjC,qBAAa,wBAAwB;IACnC,MAAM,CAAC,SAAS,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,EAAE,CAAC,UAAU;IAoKhF,MAAM,CAAC,qBAAqB,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,EAAE,CAAC,UAAU;CAqE7F"}
|
|
@@ -38,6 +38,7 @@ const ts = __importStar(require("typescript"));
|
|
|
38
38
|
class AmplifyHelperTransformer {
|
|
39
39
|
static transform(sourceFile, projectName) {
|
|
40
40
|
const projectInfoVariables = new Set();
|
|
41
|
+
const amplifyResourcePropsParams = new Set();
|
|
41
42
|
const transformer = (context) => {
|
|
42
43
|
return (node) => {
|
|
43
44
|
function visit(node) {
|
|
@@ -51,8 +52,6 @@ class AmplifyHelperTransformer {
|
|
|
51
52
|
const expression = node.expression;
|
|
52
53
|
if (ts.isPropertyAccessExpression(expression) && ts.isIdentifier(expression.name) && expression.name.text === 'ref') {
|
|
53
54
|
const isCdkFnRef = ts.isPropertyAccessExpression(expression.expression) &&
|
|
54
|
-
ts.isIdentifier(expression.expression.expression) &&
|
|
55
|
-
expression.expression.expression.text === 'cdk' &&
|
|
56
55
|
ts.isIdentifier(expression.expression.name) &&
|
|
57
56
|
expression.expression.name.text === 'Fn';
|
|
58
57
|
const isFnRef = ts.isIdentifier(expression.expression) && expression.expression.text === 'Fn';
|
|
@@ -102,7 +101,7 @@ class AmplifyHelperTransformer {
|
|
|
102
101
|
return ts.factory.createIdentifier('projectName');
|
|
103
102
|
}
|
|
104
103
|
}
|
|
105
|
-
if (ts.isIdentifier(expression) && expression.text
|
|
104
|
+
if (ts.isIdentifier(expression) && amplifyResourcePropsParams.has(expression.text)) {
|
|
106
105
|
const propertyName = node.name.text;
|
|
107
106
|
if (propertyName === 'resourceName') {
|
|
108
107
|
return ts.factory.createIdentifier('id');
|
|
@@ -112,7 +111,30 @@ class AmplifyHelperTransformer {
|
|
|
112
111
|
}
|
|
113
112
|
}
|
|
114
113
|
}
|
|
114
|
+
if (ts.isConstructorDeclaration(node)) {
|
|
115
|
+
node.parameters.forEach((param) => {
|
|
116
|
+
if (param.type && ts.isTypeReferenceNode(param.type) && ts.isIdentifier(param.name)) {
|
|
117
|
+
const typeText = param.type.getText();
|
|
118
|
+
if (typeText.includes('AmplifyResourceProps')) {
|
|
119
|
+
amplifyResourcePropsParams.add(param.name.text);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
}
|
|
115
124
|
const visitedNode = ts.visitEachChild(node, visit, context);
|
|
125
|
+
if (ts.isClassDeclaration(visitedNode) && visitedNode.heritageClauses) {
|
|
126
|
+
const newHeritageClauses = visitedNode.heritageClauses.map((clause) => {
|
|
127
|
+
const newTypes = clause.types.map((type) => {
|
|
128
|
+
const typeText = type.expression.getText();
|
|
129
|
+
if (typeText.endsWith('.Stack') || typeText.endsWith('.NestedStack')) {
|
|
130
|
+
return ts.factory.createExpressionWithTypeArguments(ts.factory.createIdentifier('Construct'), type.typeArguments);
|
|
131
|
+
}
|
|
132
|
+
return type;
|
|
133
|
+
});
|
|
134
|
+
return ts.factory.updateHeritageClause(clause, newTypes);
|
|
135
|
+
});
|
|
136
|
+
return ts.factory.updateClassDeclaration(visitedNode, visitedNode.modifiers, visitedNode.name, visitedNode.typeParameters, newHeritageClauses, visitedNode.members);
|
|
137
|
+
}
|
|
116
138
|
if (ts.isConstructorDeclaration(visitedNode)) {
|
|
117
139
|
const newParams = visitedNode.parameters.slice(0, 2);
|
|
118
140
|
return ts.factory.updateConstructorDeclaration(visitedNode, visitedNode.modifiers, newParams, visitedNode.body);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"amplify-helper-transformer.js","sourceRoot":"","sources":["../../../../../../src/commands/gen2-migration/generate/custom-resources/transformer/amplify-helper-transformer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAiC;AAEjC,MAAa,wBAAwB;IACnC,MAAM,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AmB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAE7F,OAAO,EAAE,CAAC,OAAO,CAAC,gBAAgB,CAAC,UAAU,EAAE,aAAa,CAAC,CAAC;IAChE,CAAC;CACF;AA1OD,4DA0OC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/commands/gen2-migration/generate/custom-resources/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,SAAS,EAAE,CAAC;IACrB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,qBAAqB,EAAE,OAAO,CAAC;CAChC;AAED,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,OAAO,EAAE,SAAS,EAAE,CAAC;CACtB;AAED,MAAM,WAAW,cAAc;IAC7B,YAAY,EAAE;QACZ,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,cAAc,EAAE;QACd,OAAO,EAAE,MAAM,EAAE,CAAC;QAClB,aAAa,EAAE,MAAM,CAAC;QACtB,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;CACH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/commands/gen2-migration/generate/custom-resources/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import ts from 'typescript';
|
|
2
|
+
export interface AnalyticsRenderParameters {
|
|
3
|
+
stackClassName: string;
|
|
4
|
+
stackFileName: string;
|
|
5
|
+
resourceName: string;
|
|
6
|
+
shardCount: number;
|
|
7
|
+
}
|
|
8
|
+
export declare const renderAnalytics: (params: AnalyticsRenderParameters) => ts.NodeArray<ts.Node>;
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/commands/gen2-migration/generate/generators/analytics/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,YAAY,CAAC;AAQ5B,MAAM,WAAW,yBAAyB;IAExC,cAAc,EAAE,MAAM,CAAC;IAEvB,aAAa,EAAE,MAAM,CAAC;IAEtB,YAAY,EAAE,MAAM,CAAC;IAErB,UAAU,EAAE,MAAM,CAAC;CACpB;AAwBD,eAAO,MAAM,eAAe,GAAI,QAAQ,yBAAyB,KAAG,EAAE,CAAC,SAAS,CAAC,EAAE,CAAC,IAAI,CAyIvF,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.renderAnalytics = void 0;
|
|
7
|
+
const typescript_1 = __importDefault(require("typescript"));
|
|
8
|
+
const ts_factory_utils_1 = require("../../ts_factory_utils");
|
|
9
|
+
const factory = typescript_1.default.factory;
|
|
10
|
+
const renderAnalytics = (params) => {
|
|
11
|
+
const { stackClassName, stackFileName, resourceName, shardCount } = params;
|
|
12
|
+
const stackImport = factory.createImportDeclaration(undefined, factory.createImportClause(false, undefined, factory.createNamedImports([factory.createImportSpecifier(false, undefined, factory.createIdentifier(stackClassName))])), factory.createStringLiteral(`./${stackFileName}`));
|
|
13
|
+
const backendImport = factory.createImportDeclaration(undefined, factory.createImportClause(false, undefined, factory.createNamedImports([factory.createImportSpecifier(false, undefined, factory.createIdentifier('Backend'))])), factory.createStringLiteral('@aws-amplify/backend'));
|
|
14
|
+
const createStackCall = factory.createVariableStatement(undefined, factory.createVariableDeclarationList([
|
|
15
|
+
factory.createVariableDeclaration('analyticsStack', undefined, undefined, factory.createCallExpression(factory.createPropertyAccessExpression(factory.createIdentifier('backend'), factory.createIdentifier('createStack')), undefined, [factory.createStringLiteral('analytics')])),
|
|
16
|
+
], typescript_1.default.NodeFlags.Const));
|
|
17
|
+
const createAuthRoleAccess = () => factory.createPropertyAccessExpression(factory.createPropertyAccessExpression(factory.createPropertyAccessExpression(factory.createPropertyAccessExpression(factory.createIdentifier('backend'), factory.createIdentifier('auth')), factory.createIdentifier('resources')), factory.createIdentifier('authenticatedUserIamRole')), factory.createIdentifier('roleName'));
|
|
18
|
+
const createUnauthRoleAccess = () => factory.createPropertyAccessExpression(factory.createPropertyAccessExpression(factory.createPropertyAccessExpression(factory.createPropertyAccessExpression(factory.createIdentifier('backend'), factory.createIdentifier('auth')), factory.createIdentifier('resources')), factory.createIdentifier('unauthenticatedUserIamRole')), factory.createIdentifier('roleName'));
|
|
19
|
+
const createEnvExpression = () => factory.createBinaryExpression(factory.createPropertyAccessExpression(factory.createPropertyAccessExpression(factory.createIdentifier('process'), factory.createIdentifier('env')), factory.createIdentifier('AWS_BRANCH')), factory.createToken(typescript_1.default.SyntaxKind.QuestionQuestionToken), factory.createStringLiteral('sandbox'));
|
|
20
|
+
const newStackExpression = factory.createExpressionStatement(factory.createNewExpression(factory.createIdentifier(stackClassName), undefined, [
|
|
21
|
+
factory.createIdentifier('analyticsStack'),
|
|
22
|
+
factory.createStringLiteral(resourceName),
|
|
23
|
+
factory.createObjectLiteralExpression([
|
|
24
|
+
factory.createPropertyAssignment(factory.createIdentifier('kinesisStreamName'), factory.createStringLiteral(resourceName)),
|
|
25
|
+
factory.createPropertyAssignment(factory.createIdentifier('kinesisStreamShardCount'), factory.createNumericLiteral(shardCount)),
|
|
26
|
+
factory.createPropertyAssignment(factory.createIdentifier('authPolicyName'), factory.createStringLiteral(`${resourceName}-auth-policy`)),
|
|
27
|
+
factory.createPropertyAssignment(factory.createIdentifier('unauthPolicyName'), factory.createStringLiteral(`${resourceName}-unauth-policy`)),
|
|
28
|
+
factory.createPropertyAssignment(factory.createIdentifier('authRoleName'), createAuthRoleAccess()),
|
|
29
|
+
factory.createPropertyAssignment(factory.createIdentifier('unauthRoleName'), createUnauthRoleAccess()),
|
|
30
|
+
factory.createPropertyAssignment(factory.createIdentifier('amplifyEnv'), createEnvExpression()),
|
|
31
|
+
], true),
|
|
32
|
+
]));
|
|
33
|
+
const arrowFunction = factory.createArrowFunction(undefined, undefined, [
|
|
34
|
+
factory.createParameterDeclaration(undefined, undefined, factory.createIdentifier('backend'), undefined, factory.createTypeReferenceNode(factory.createIdentifier('Backend'), [factory.createKeywordTypeNode(typescript_1.default.SyntaxKind.AnyKeyword)])),
|
|
35
|
+
], undefined, factory.createToken(typescript_1.default.SyntaxKind.EqualsGreaterThanToken), factory.createBlock([createStackCall, newStackExpression], true));
|
|
36
|
+
const exportStatement = factory.createVariableStatement([factory.createModifier(typescript_1.default.SyntaxKind.ExportKeyword)], factory.createVariableDeclarationList([factory.createVariableDeclaration(factory.createIdentifier('analytics'), undefined, undefined, arrowFunction)], typescript_1.default.NodeFlags.Const));
|
|
37
|
+
return factory.createNodeArray([stackImport, backendImport, ts_factory_utils_1.newLineIdentifier, exportStatement]);
|
|
38
|
+
};
|
|
39
|
+
exports.renderAnalytics = renderAnalytics;
|
|
40
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/commands/gen2-migration/generate/generators/analytics/index.ts"],"names":[],"mappings":";;;;;;AAAA,4DAA4B;AAC5B,6DAA2D;AAE3D,MAAM,OAAO,GAAG,oBAAE,CAAC,OAAO,CAAC;AAsCpB,MAAM,eAAe,GAAG,CAAC,MAAiC,EAAyB,EAAE;IAC1F,MAAM,EAAE,cAAc,EAAE,aAAa,EAAE,YAAY,EAAE,UAAU,EAAE,GAAG,MAAM,CAAC;IAG3E,MAAM,WAAW,GAAG,OAAO,CAAC,uBAAuB,CACjD,SAAS,EACT,OAAO,CAAC,kBAAkB,CACxB,KAAK,EACL,SAAS,EACT,OAAO,CAAC,kBAAkB,CAAC,CAAC,OAAO,CAAC,qBAAqB,CAAC,KAAK,EAAE,SAAS,EAAE,OAAO,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CACxH,EACD,OAAO,CAAC,mBAAmB,CAAC,KAAK,aAAa,EAAE,CAAC,CAClD,CAAC;IAGF,MAAM,aAAa,GAAG,OAAO,CAAC,uBAAuB,CACnD,SAAS,EACT,OAAO,CAAC,kBAAkB,CACxB,KAAK,EACL,SAAS,EACT,OAAO,CAAC,kBAAkB,CAAC,CAAC,OAAO,CAAC,qBAAqB,CAAC,KAAK,EAAE,SAAS,EAAE,OAAO,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CACnH,EACD,OAAO,CAAC,mBAAmB,CAAC,sBAAsB,CAAC,CACpD,CAAC;IAGF,MAAM,eAAe,GAAG,OAAO,CAAC,uBAAuB,CACrD,SAAS,EACT,OAAO,CAAC,6BAA6B,CACnC;QACE,OAAO,CAAC,yBAAyB,CAC/B,gBAAgB,EAChB,SAAS,EACT,SAAS,EACT,OAAO,CAAC,oBAAoB,CAC1B,OAAO,CAAC,8BAA8B,CAAC,OAAO,CAAC,gBAAgB,CAAC,SAAS,CAAC,EAAE,OAA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ACD,IAAI,CACL;KACF,CAAC,CACH,CAAC;IAIF,MAAM,aAAa,GAAG,OAAO,CAAC,mBAAmB,CAC/C,SAAS,EACT,SAAS,EACT;QACE,OAAO,CAAC,0BAA0B,CAChC,SAAS,EACT,SAAS,EACT,OAAO,CAAC,gBAAgB,CAAC,SAAS,CAAC,EACnC,SAAS,EACT,OAAO,CAAC,uBAAuB,CAAC,OAAO,CAAC,gBAAgB,CAAC,SAAS,CAAC,EAAE,CAAC,OAAO,CAAC,qBAAqB,CAAC,oBAAE,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC,CAChI;KACF,EACD,SAAS,EACT,OAAO,CAAC,WAAW,CAAC,oBAAE,CAAC,UAAU,CAAC,sBAAsB,CAAC,EACzD,OAAO,CAAC,WAAW,CAAC,CAAC,eAAe,EAAE,kBAAkB,CAAC,EAAE,IAAI,CAAC,CACjE,CAAC;IAGF,MAAM,eAAe,GAAG,OAAO,CAAC,uBAAuB,CACrD,CAAC,OAAO,CAAC,cAAc,CAAC,oBAAE,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC,EACrD,OAAO,CAAC,6BAA6B,CACnC,CAAC,OAAO,CAAC,yBAAyB,CAAC,OAAO,CAAC,gBAAgB,CAAC,WAAW,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,aAAa,CAAC,CAAC,EAC/G,oBAAE,CAAC,SAAS,CAAC,KAAK,CACnB,CACF,CAAC;IAEF,OAAO,OAAO,CAAC,eAAe,CAAC,CAAC,WAAW,EAAE,aAAa,EAAE,oCAAiB,EAAE,eAAe,CAAC,CAAC,CAAC;AACnG,CAAC,CAAC;AAzIW,QAAA,eAAe,mBAyI1B"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import ts from 'typescript';
|
|
2
|
+
import { PasswordPolicyType, UserPoolClientType } from '@aws-sdk/client-cognito-identity-provider';
|
|
3
|
+
import { Lambda } from '../functions/lambda';
|
|
4
|
+
export type Scope = 'phone' | 'email' | 'openid' | 'profile' | 'aws.cognito.signin.user.admin';
|
|
5
|
+
export type StandardAttribute = {
|
|
6
|
+
readonly mutable?: boolean;
|
|
7
|
+
readonly required?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export type CustomAttribute = {
|
|
10
|
+
readonly dataType: string | undefined;
|
|
11
|
+
readonly mutable?: boolean;
|
|
12
|
+
minLen?: number;
|
|
13
|
+
maxLen?: number;
|
|
14
|
+
min?: number;
|
|
15
|
+
max?: number;
|
|
16
|
+
};
|
|
17
|
+
export type Attribute = 'address' | 'birthdate' | 'email' | 'familyName' | 'gender' | 'givenName' | 'locale' | 'middleName' | 'fullname' | 'nickname' | 'phoneNumber' | 'profilePicture' | 'preferredUsername' | 'profilePage' | 'timezone' | 'lastUpdateTime' | 'website';
|
|
18
|
+
export type AttributeMappingRule = Record<Attribute, string>;
|
|
19
|
+
export type SendingAccount = 'COGNITO_DEFAULT' | 'DEVELOPER';
|
|
20
|
+
export type UserPoolMfaConfig = 'OFF' | 'REQUIRED' | 'OPTIONAL';
|
|
21
|
+
export type PasswordPolicyPath = `Policies.PasswordPolicy.${keyof PasswordPolicyType}`;
|
|
22
|
+
export type PolicyOverrides = Partial<Record<PasswordPolicyPath | string, string | boolean | number | string[]>>;
|
|
23
|
+
export type EmailOptions = {
|
|
24
|
+
emailVerificationBody: string;
|
|
25
|
+
emailVerificationSubject: string;
|
|
26
|
+
};
|
|
27
|
+
export type StandardAttributes = Partial<Record<Attribute, StandardAttribute>>;
|
|
28
|
+
export type CustomAttributes = Partial<Record<`custom:${string}`, CustomAttribute>>;
|
|
29
|
+
export type Group = string;
|
|
30
|
+
export type MetadataOptions = {
|
|
31
|
+
metadataContent: string;
|
|
32
|
+
metadataType: 'URL' | 'FILE';
|
|
33
|
+
};
|
|
34
|
+
export type SamlOptions = {
|
|
35
|
+
name?: string;
|
|
36
|
+
metadata: MetadataOptions;
|
|
37
|
+
attributeMapping?: AttributeMappingRule;
|
|
38
|
+
};
|
|
39
|
+
export type OidcEndPoints = {
|
|
40
|
+
authorization?: string;
|
|
41
|
+
token?: string;
|
|
42
|
+
userInfo?: string;
|
|
43
|
+
jwksUri?: string;
|
|
44
|
+
};
|
|
45
|
+
export type OidcOptions = {
|
|
46
|
+
issuerUrl: string;
|
|
47
|
+
name?: string;
|
|
48
|
+
endpoints?: OidcEndPoints;
|
|
49
|
+
attributeMapping?: AttributeMappingRule;
|
|
50
|
+
};
|
|
51
|
+
export type LoginOptions = {
|
|
52
|
+
email?: boolean;
|
|
53
|
+
phone?: boolean;
|
|
54
|
+
emailOptions?: Partial<EmailOptions>;
|
|
55
|
+
googleLogin?: boolean;
|
|
56
|
+
amazonLogin?: boolean;
|
|
57
|
+
appleLogin?: boolean;
|
|
58
|
+
facebookLogin?: boolean;
|
|
59
|
+
oidcLogin?: OidcOptions[];
|
|
60
|
+
samlLogin?: SamlOptions;
|
|
61
|
+
googleAttributes?: AttributeMappingRule;
|
|
62
|
+
amazonAttributes?: AttributeMappingRule;
|
|
63
|
+
appleAttributes?: AttributeMappingRule;
|
|
64
|
+
facebookAttributes?: AttributeMappingRule;
|
|
65
|
+
callbackURLs?: string[];
|
|
66
|
+
logoutURLs?: string[];
|
|
67
|
+
scopes?: Scope[];
|
|
68
|
+
googleScopes?: string[];
|
|
69
|
+
facebookScopes?: string[];
|
|
70
|
+
amazonScopes?: string[];
|
|
71
|
+
appleScopes?: string[];
|
|
72
|
+
[key: string]: boolean | Partial<EmailOptions> | string[] | Scope[] | OidcOptions[] | SamlOptions | AttributeMappingRule | undefined;
|
|
73
|
+
};
|
|
74
|
+
export type MultifactorOptions = {
|
|
75
|
+
mode: UserPoolMfaConfig;
|
|
76
|
+
totp?: boolean;
|
|
77
|
+
sms?: boolean;
|
|
78
|
+
};
|
|
79
|
+
export type AuthLambdaTriggers = Record<AuthTriggerEvents, Lambda>;
|
|
80
|
+
export type AuthTriggerEvents = 'createAuthChallenge' | 'customMessage' | 'defineAuthChallenge' | 'postAuthentication' | 'postConfirmation' | 'preAuthentication' | 'preSignUp' | 'preTokenGeneration' | 'userMigration' | 'verifyAuthChallengeResponse';
|
|
81
|
+
export type ReferenceAuth = {
|
|
82
|
+
userPoolId?: string;
|
|
83
|
+
identityPoolId?: string;
|
|
84
|
+
authRoleArn?: string;
|
|
85
|
+
unauthRoleArn?: string;
|
|
86
|
+
userPoolClientId?: string;
|
|
87
|
+
groups?: Record<string, string>;
|
|
88
|
+
};
|
|
89
|
+
export interface AuthDefinition {
|
|
90
|
+
loginOptions?: LoginOptions;
|
|
91
|
+
groups?: Group[];
|
|
92
|
+
mfa?: MultifactorOptions;
|
|
93
|
+
standardUserAttributes?: StandardAttributes;
|
|
94
|
+
customUserAttributes?: CustomAttributes;
|
|
95
|
+
userPoolOverrides?: PolicyOverrides;
|
|
96
|
+
lambdaTriggers?: Partial<AuthLambdaTriggers>;
|
|
97
|
+
guestLogin?: boolean;
|
|
98
|
+
identityPoolName?: string;
|
|
99
|
+
oAuthFlows?: string[];
|
|
100
|
+
readAttributes?: string[];
|
|
101
|
+
writeAttributes?: string[];
|
|
102
|
+
referenceAuth?: ReferenceAuth;
|
|
103
|
+
userPoolClient?: UserPoolClientType;
|
|
104
|
+
}
|
|
105
|
+
export declare function renderAuthNode(definition: AuthDefinition): ts.NodeArray<ts.Node>;
|
|
106
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/commands/gen2-migration/generate/generators/auth/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAA0B,MAAM,YAAY,CAAC;AAEpD,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAEnG,OAAO,EAA0B,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAGrE,MAAM,MAAM,KAAK,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,+BAA+B,CAAC;AAG/F,MAAM,MAAM,iBAAiB,GA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