@aws-amplify/cli-internal-gen2-migration-experimental-alpha 0.1.0 → 0.3.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.3.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 +899 -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 +744 -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 +3 -2
- 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,222 @@
|
|
|
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.DataDefinitionFetcher = void 0;
|
|
7
|
+
const node_path_1 = __importDefault(require("node:path"));
|
|
8
|
+
const promises_1 = __importDefault(require("node:fs/promises"));
|
|
9
|
+
const glob_1 = __importDefault(require("glob"));
|
|
10
|
+
const node_assert_1 = __importDefault(require("node:assert"));
|
|
11
|
+
const amplify_cli_core_1 = require("@aws-amplify/amplify-cli-core");
|
|
12
|
+
const directory_exists_1 = require("./directory_exists");
|
|
13
|
+
const client_appsync_1 = require("@aws-sdk/client-appsync");
|
|
14
|
+
class DataDefinitionFetcher {
|
|
15
|
+
constructor(backendEnvironmentResolver, ccbFetcher) {
|
|
16
|
+
this.backendEnvironmentResolver = backendEnvironmentResolver;
|
|
17
|
+
this.ccbFetcher = ccbFetcher;
|
|
18
|
+
this.readJsonFile = async (filePath) => {
|
|
19
|
+
const contents = await promises_1.default.readFile(filePath, { encoding: 'utf8' });
|
|
20
|
+
return JSON.parse(contents);
|
|
21
|
+
};
|
|
22
|
+
this.getRestApis = async (apis) => {
|
|
23
|
+
var _a, _b;
|
|
24
|
+
const restApis = [];
|
|
25
|
+
const rootDir = amplify_cli_core_1.pathManager.findProjectRoot();
|
|
26
|
+
(0, node_assert_1.default)(rootDir);
|
|
27
|
+
for (const apiName of Object.keys(apis)) {
|
|
28
|
+
const apiObj = apis[apiName];
|
|
29
|
+
if (apiObj.service === 'API Gateway') {
|
|
30
|
+
const cliInputsPath = node_path_1.default.join(rootDir, 'amplify', 'backend', 'api', apiName, 'cli-inputs.json');
|
|
31
|
+
let paths = [{ path: '/{proxy+}', methods: ['ANY'] }];
|
|
32
|
+
let authType = 'NONE';
|
|
33
|
+
let corsConfiguration;
|
|
34
|
+
const cliInputs = JSON.parse(await promises_1.default.readFile(cliInputsPath, 'utf8'));
|
|
35
|
+
if (cliInputs.paths) {
|
|
36
|
+
paths = Object.entries(cliInputs.paths).map(([pathName, pathConfig]) => {
|
|
37
|
+
var _a;
|
|
38
|
+
const pathAuthType = ((_a = pathConfig.permissions) === null || _a === void 0 ? void 0 : _a.setting) || 'open';
|
|
39
|
+
return {
|
|
40
|
+
path: pathName,
|
|
41
|
+
methods: this.extractMethodsFromPath(pathConfig),
|
|
42
|
+
authType: pathAuthType,
|
|
43
|
+
lambdaFunction: pathConfig.lambdaFunction,
|
|
44
|
+
userPoolGroups: pathConfig.groupAccess,
|
|
45
|
+
};
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
if (cliInputs.corsConfiguration) {
|
|
49
|
+
corsConfiguration = cliInputs.corsConfiguration;
|
|
50
|
+
}
|
|
51
|
+
if (cliInputs.restrictAccess) {
|
|
52
|
+
authType = cliInputs.authType || 'AWS_IAM';
|
|
53
|
+
}
|
|
54
|
+
const defaultFunctionName = (_b = (_a = apiObj.dependsOn) === null || _a === void 0 ? void 0 : _a.find((dep) => dep.category === 'function')) === null || _b === void 0 ? void 0 : _b.resourceName;
|
|
55
|
+
const uniqueFunctions = new Set();
|
|
56
|
+
if (defaultFunctionName) {
|
|
57
|
+
uniqueFunctions.add(defaultFunctionName);
|
|
58
|
+
}
|
|
59
|
+
paths.forEach((path) => {
|
|
60
|
+
if (path.lambdaFunction) {
|
|
61
|
+
uniqueFunctions.add(path.lambdaFunction);
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
restApis.push({
|
|
65
|
+
apiName,
|
|
66
|
+
functionName: defaultFunctionName || 'defaultFunction',
|
|
67
|
+
paths,
|
|
68
|
+
authType: authType !== 'NONE' ? authType : undefined,
|
|
69
|
+
corsConfiguration,
|
|
70
|
+
uniqueFunctions: Array.from(uniqueFunctions),
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
return restApis;
|
|
75
|
+
};
|
|
76
|
+
this.getSchema = async (apis) => {
|
|
77
|
+
try {
|
|
78
|
+
let apiName;
|
|
79
|
+
Object.keys(apis).forEach((api) => {
|
|
80
|
+
const apiObj = apis[api];
|
|
81
|
+
if (apiObj.service === 'AppSync') {
|
|
82
|
+
apiName = api;
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
(0, node_assert_1.default)(apiName);
|
|
86
|
+
const rootDir = amplify_cli_core_1.pathManager.findProjectRoot();
|
|
87
|
+
(0, node_assert_1.default)(rootDir);
|
|
88
|
+
const apiPath = node_path_1.default.join(rootDir, 'amplify', 'backend', 'api', apiName);
|
|
89
|
+
const schemaFolderPath = node_path_1.default.join(apiPath, 'schema');
|
|
90
|
+
try {
|
|
91
|
+
const stats = await promises_1.default.stat(schemaFolderPath);
|
|
92
|
+
if (stats.isDirectory()) {
|
|
93
|
+
const graphqlFiles = glob_1.default.sync(node_path_1.default.join(schemaFolderPath, '*.graphql'));
|
|
94
|
+
if (graphqlFiles.length > 0) {
|
|
95
|
+
let mergedSchema = '';
|
|
96
|
+
for (const file of graphqlFiles) {
|
|
97
|
+
const content = await promises_1.default.readFile(file, 'utf8');
|
|
98
|
+
mergedSchema += content + '\n';
|
|
99
|
+
}
|
|
100
|
+
return mergedSchema.trim();
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
catch (error) {
|
|
105
|
+
}
|
|
106
|
+
const schemaFilePath = node_path_1.default.join(apiPath, 'schema.graphql');
|
|
107
|
+
try {
|
|
108
|
+
return await promises_1.default.readFile(schemaFilePath, 'utf8');
|
|
109
|
+
}
|
|
110
|
+
catch (error) {
|
|
111
|
+
throw new Error('No GraphQL schema found in the project');
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
catch (error) {
|
|
115
|
+
throw new Error(`Error reading GraphQL schema: ${error.message}`);
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
this.getAdditionalAuthProvidersFromConsole = async (apiId) => {
|
|
119
|
+
var _a, _b;
|
|
120
|
+
try {
|
|
121
|
+
const client = new client_appsync_1.AppSyncClient({});
|
|
122
|
+
const response = await client.send(new client_appsync_1.GetGraphqlApiCommand({ apiId }));
|
|
123
|
+
return (((_b = (_a = response.graphqlApi) === null || _a === void 0 ? void 0 : _a.additionalAuthenticationProviders) === null || _b === void 0 ? void 0 : _b.map((provider) => ({
|
|
124
|
+
authenticationType: provider.authenticationType,
|
|
125
|
+
...(provider.lambdaAuthorizerConfig && { lambdaAuthorizerConfig: provider.lambdaAuthorizerConfig }),
|
|
126
|
+
...(provider.openIDConnectConfig && { openIdConnectConfig: provider.openIDConnectConfig }),
|
|
127
|
+
...(provider.userPoolConfig && { userPoolConfig: provider.userPoolConfig }),
|
|
128
|
+
}))) || []);
|
|
129
|
+
}
|
|
130
|
+
catch (error) {
|
|
131
|
+
throw new Error(`Failed to fetch additional auth providers from AWS: ${error.message}`);
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
this.getLoggingConfigFromConsole = async (apiId) => {
|
|
135
|
+
var _a;
|
|
136
|
+
try {
|
|
137
|
+
const client = new client_appsync_1.AppSyncClient({});
|
|
138
|
+
const response = await client.send(new client_appsync_1.GetGraphqlApiCommand({ apiId }));
|
|
139
|
+
const logConfig = (_a = response.graphqlApi) === null || _a === void 0 ? void 0 : _a.logConfig;
|
|
140
|
+
if ((logConfig === null || logConfig === void 0 ? void 0 : logConfig.fieldLogLevel) && logConfig.fieldLogLevel !== 'NONE') {
|
|
141
|
+
const fieldLogLevel = logConfig.fieldLogLevel.toLowerCase();
|
|
142
|
+
return {
|
|
143
|
+
fieldLogLevel,
|
|
144
|
+
...(logConfig.excludeVerboseContent !== undefined && { excludeVerboseContent: logConfig.excludeVerboseContent }),
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
return undefined;
|
|
148
|
+
}
|
|
149
|
+
catch (error) {
|
|
150
|
+
throw new Error(`Failed to fetch logging config from AWS: ${error.message}`);
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
this.getDefinition = async () => {
|
|
154
|
+
var _a, _b, _c;
|
|
155
|
+
const backendEnvironment = await this.backendEnvironmentResolver.selectBackendEnvironment();
|
|
156
|
+
if (!(backendEnvironment === null || backendEnvironment === void 0 ? void 0 : backendEnvironment.deploymentArtifacts))
|
|
157
|
+
return undefined;
|
|
158
|
+
const currentCloudBackendDirectory = await this.ccbFetcher.getCurrentCloudBackend(backendEnvironment.deploymentArtifacts);
|
|
159
|
+
const amplifyMetaPath = node_path_1.default.join(currentCloudBackendDirectory, 'amplify-meta.json');
|
|
160
|
+
if (!(await (0, directory_exists_1.fileOrDirectoryExists)(amplifyMetaPath))) {
|
|
161
|
+
throw new Error('Could not find amplify-meta.json');
|
|
162
|
+
}
|
|
163
|
+
const amplifyMeta = (_a = (await this.readJsonFile(amplifyMetaPath))) !== null && _a !== void 0 ? _a : {};
|
|
164
|
+
if ('api' in amplifyMeta && Object.keys(amplifyMeta.api).length > 0) {
|
|
165
|
+
const restApis = await this.getRestApis(amplifyMeta.api);
|
|
166
|
+
const hasGraphQL = Object.values(amplifyMeta.api).some((api) => api.service === 'AppSync');
|
|
167
|
+
if (hasGraphQL) {
|
|
168
|
+
const schema = await this.getSchema(amplifyMeta.api);
|
|
169
|
+
const appSyncApi = Object.values(amplifyMeta.api).find((api) => api.service === 'AppSync');
|
|
170
|
+
const authorizationModes = (_b = appSyncApi === null || appSyncApi === void 0 ? void 0 : appSyncApi.output) === null || _b === void 0 ? void 0 : _b.authConfig;
|
|
171
|
+
const apiId = (_c = appSyncApi === null || appSyncApi === void 0 ? void 0 : appSyncApi.output) === null || _c === void 0 ? void 0 : _c.GraphQLAPIIdOutput;
|
|
172
|
+
const additionalAuthProviders = apiId ? await this.getAdditionalAuthProvidersFromConsole(apiId) : [];
|
|
173
|
+
const logging = apiId ? await this.getLoggingConfigFromConsole(apiId) : undefined;
|
|
174
|
+
return {
|
|
175
|
+
tableMappings: undefined,
|
|
176
|
+
schema,
|
|
177
|
+
authorizationModes,
|
|
178
|
+
additionalAuthProviders: additionalAuthProviders.length > 0 ? additionalAuthProviders : undefined,
|
|
179
|
+
logging,
|
|
180
|
+
restApis: restApis.length > 0 ? restApis : undefined,
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
if (restApis.length > 0) {
|
|
184
|
+
return {
|
|
185
|
+
tableMappings: undefined,
|
|
186
|
+
restApis,
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
return undefined;
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
extractMethodsFromPath(pathConfig) {
|
|
194
|
+
var _a;
|
|
195
|
+
if (pathConfig.methods && pathConfig.methods.length > 0) {
|
|
196
|
+
return pathConfig.methods;
|
|
197
|
+
}
|
|
198
|
+
if (((_a = pathConfig.permissions) === null || _a === void 0 ? void 0 : _a.auth) && pathConfig.permissions.auth.length > 0) {
|
|
199
|
+
const methods = [];
|
|
200
|
+
pathConfig.permissions.auth.forEach((permission) => {
|
|
201
|
+
switch (permission) {
|
|
202
|
+
case 'read':
|
|
203
|
+
methods.push('GET');
|
|
204
|
+
break;
|
|
205
|
+
case 'create':
|
|
206
|
+
methods.push('POST');
|
|
207
|
+
break;
|
|
208
|
+
case 'update':
|
|
209
|
+
methods.push('PUT');
|
|
210
|
+
break;
|
|
211
|
+
case 'delete':
|
|
212
|
+
methods.push('DELETE');
|
|
213
|
+
break;
|
|
214
|
+
}
|
|
215
|
+
});
|
|
216
|
+
return methods.length > 0 ? methods : ['GET'];
|
|
217
|
+
}
|
|
218
|
+
return ['GET'];
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
exports.DataDefinitionFetcher = DataDefinitionFetcher;
|
|
222
|
+
//# sourceMappingURL=data_definition_fetcher.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data_definition_fetcher.js","sourceRoot":"","sources":["../../../../../src/commands/gen2-migration/generate/codegen-head/data_definition_fetcher.ts"],"names":[],"mappings":";;;;;;AAAA,0DAA6B;AAC7B,gEAAkC;AAClC,gDAAwB;AACxB,8DAAiC;AAIjC,oEAA4D;AAiE5D,yDAA2D;AAC3D,4DAA8E;AAe9E,MAAa,qBAAqB;IAOhC,YAAoB,0BAAsD,EAAU,UAA6B;QAA7F,+BAA0B,GAA1B,0BAA0B,CAA4B;QAAU,eAAU,GAAV,UAAU,CAAmB;QASzG,iBAAY,GAAG,KAAK,EAAE,QAAgB,EAAE,EAAE;YAChD,MAAM,QAAQ,GAAG,MAAM,kBAAE,CAAC,QAAQ,CAAC,QAAQ,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC;YACnE,OAAO,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QAC9B,CAAC,CAAC;QAKF,gBAAW,GAAG,KAAK,EAAE,IAAmC,EAAgC,EAAE;;YACxF,MAAM,QAAQ,GAAwB,EAAE,CAAC;YACzC,MAAM,OAAO,GAAG,8BAAW,CAAC,eAAe,EAAE,CAAC;YAC9C,IAAA,qBAAM,EAAC,OAAO,CAAC,CAAC;YAEhB,KAAK,MAAM,OAAO,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;gBACxC,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC;gBAE7B,IAAI,MAAM,CAAC,OAAO,KAAK,aAAa,EAAE,CAAC;oBAYrC,MAAM,aAAa,GAAG,mBAAI,CAAC,IAAI,CAAC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,iBAAiB,CAAC,CAAC;oBAClG,IAAI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C;QAChD,CAAC;QAGD,OAAO,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;CA+KF;AAjUD,sDAiUC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"directory_exists.d.ts","sourceRoot":"","sources":["../../../../../src/commands/gen2-migration/generate/codegen-head/directory_exists.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,qBAAqB,GAAU,YAAY,MAAM,KAAG,OAAO,CAAC,OAAO,CAK/E,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
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.fileOrDirectoryExists = void 0;
|
|
7
|
+
const promises_1 = __importDefault(require("node:fs/promises"));
|
|
8
|
+
const fileOrDirectoryExists = async (targetPath) => {
|
|
9
|
+
return promises_1.default
|
|
10
|
+
.access(targetPath)
|
|
11
|
+
.then(() => true)
|
|
12
|
+
.catch(() => false);
|
|
13
|
+
};
|
|
14
|
+
exports.fileOrDirectoryExists = fileOrDirectoryExists;
|
|
15
|
+
//# sourceMappingURL=directory_exists.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"directory_exists.js","sourceRoot":"","sources":["../../../../../src/commands/gen2-migration/generate/codegen-head/directory_exists.ts"],"names":[],"mappings":";;;;;;AAAA,gEAAkC;AAC3B,MAAM,qBAAqB,GAAG,KAAK,EAAE,UAAkB,EAAoB,EAAE;IAClF,OAAO,kBAAE;SACN,MAAM,CAAC,UAAU,CAAC;SAClB,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC;SAChB,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC;AACxB,CAAC,CAAC;AALW,QAAA,qBAAqB,yBAKhC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare class Format {
|
|
2
|
+
error: (error: string | Error | unknown) => string;
|
|
3
|
+
command: (command: string) => string;
|
|
4
|
+
highlight: (command: string) => string;
|
|
5
|
+
success: (message: string) => string;
|
|
6
|
+
}
|
|
7
|
+
export declare const format: Format;
|
|
8
|
+
//# sourceMappingURL=format.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../../../src/commands/gen2-migration/generate/codegen-head/format.ts"],"names":[],"mappings":"AAGA,qBAAa,MAAM;IACjB,KAAK,GAAI,OAAO,MAAM,GAAG,KAAK,GAAG,OAAO,KAAG,MAAM,CAgB/C;IACF,OAAO,GAAI,SAAS,MAAM,YAAmB;IAC7C,SAAS,GAAI,SAAS,MAAM,YAAmB;IAC/C,OAAO,GAAI,SAAS,MAAM,YAAoB;CAC/C;AAED,eAAO,MAAM,MAAM,QAAe,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.format = exports.Format = void 0;
|
|
37
|
+
const os = __importStar(require("node:os"));
|
|
38
|
+
const colors_1 = require("kleur/colors");
|
|
39
|
+
class Format {
|
|
40
|
+
constructor() {
|
|
41
|
+
this.error = (error) => {
|
|
42
|
+
if (error instanceof Error) {
|
|
43
|
+
const message = (0, colors_1.red)(`${error.name}: ${error.message}`);
|
|
44
|
+
if (error.cause) {
|
|
45
|
+
return message + os.EOL + this.error(error.cause);
|
|
46
|
+
}
|
|
47
|
+
return message;
|
|
48
|
+
}
|
|
49
|
+
else if (typeof error === 'string') {
|
|
50
|
+
return (0, colors_1.red)(error);
|
|
51
|
+
}
|
|
52
|
+
try {
|
|
53
|
+
return (0, colors_1.red)(JSON.stringify(error, null, 2));
|
|
54
|
+
}
|
|
55
|
+
catch (e) {
|
|
56
|
+
return (0, colors_1.red)('Unknown error') + os.EOL + this.error(e);
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
this.command = (command) => (0, colors_1.cyan)(command);
|
|
60
|
+
this.highlight = (command) => (0, colors_1.cyan)(command);
|
|
61
|
+
this.success = (message) => (0, colors_1.green)(message);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
exports.Format = Format;
|
|
65
|
+
exports.format = new Format();
|
|
66
|
+
//# sourceMappingURL=format.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format.js","sourceRoot":"","sources":["../../../../../src/commands/gen2-migration/generate/codegen-head/format.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAA8B;AAC9B,yCAAgD;AAEhD,MAAa,MAAM;IAAnB;QACE,UAAK,GAAG,CAAC,KAA+B,EAAU,EAAE;YAClD,IAAI,KAAK,YAAY,KAAK,EAAE,CAAC;gBAC3B,MAAM,OAAO,GAAG,IAAA,YAAG,EAAC,GAAG,KAAK,CAAC,IAAI,KAAK,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;gBAEvD,IAAI,KAAK,CAAC,KAAK,EAAE,CAAC;oBAChB,OAAO,OAAO,GAAG,EAAE,CAAC,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;gBACpD,CAAC;gBACD,OAAO,OAAO,CAAC;YACjB,CAAC;iBAAM,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;gBACrC,OAAO,IAAA,YAAG,EAAC,KAAK,CAAC,CAAC;YACpB,CAAC;YACD,IAAI,CAAC;gBACH,OAAO,IAAA,YAAG,EAAC,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;YAC7C,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBACX,OAAO,IAAA,YAAG,EAAC,eAAe,CAAC,GAAG,EAAE,CAAC,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YACvD,CAAC;QACH,CAAC,CAAC;QACF,YAAO,GAAG,CAAC,OAAe,EAAE,EAAE,CAAC,IAAA,aAAI,EAAC,OAAO,CAAC,CAAC;QAC7C,cAAS,GAAG,CAAC,OAAe,EAAE,EAAE,CAAC,IAAA,aAAI,EAAC,OAAO,CAAC,CAAC;QAC/C,YAAO,GAAG,CAAC,OAAe,EAAE,EAAE,CAAC,IAAA,cAAK,EAAC,OAAO,CAAC,CAAC;IAChD,CAAC;CAAA;AArBD,wBAqBC;AAEY,QAAA,MAAM,GAAG,IAAI,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface AppContextLogger {
|
|
2
|
+
info(...logs: string[]): void;
|
|
3
|
+
warn(...logs: string[]): void;
|
|
4
|
+
error(...logs: string[]): void;
|
|
5
|
+
log(...logs: string[]): void;
|
|
6
|
+
}
|
|
7
|
+
export declare class AppContextLogger {
|
|
8
|
+
private appId;
|
|
9
|
+
constructor(appId: string);
|
|
10
|
+
info: (...logs: string[]) => void;
|
|
11
|
+
warn: (...logs: string[]) => void;
|
|
12
|
+
log: (...logs: string[]) => void;
|
|
13
|
+
error: (...logs: string[]) => void;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=logger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../../../src/commands/gen2-migration/generate/codegen-head/logger.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CAAC,GAAG,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAC9B,IAAI,CAAC,GAAG,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAC9B,KAAK,CAAC,GAAG,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAC/B,GAAG,CAAC,GAAG,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;CAC9B;AAED,qBAAa,gBAAgB;IACf,OAAO,CAAC,KAAK;gBAAL,KAAK,EAAE,MAAM;IACjC,IAAI,GAAI,GAAG,MAAM,MAAM,EAAE,UAAoD;IAC7E,IAAI,GAAI,GAAG,MAAM,MAAM,EAAE,UAAoD;IAC7E,GAAG,GAAI,GAAG,MAAM,MAAM,EAAE,UAAmD;IAC3E,KAAK,GAAI,GAAG,MAAM,MAAM,EAAE,UAAqD;CAChF"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AppContextLogger = void 0;
|
|
4
|
+
class AppContextLogger {
|
|
5
|
+
constructor(appId) {
|
|
6
|
+
this.appId = appId;
|
|
7
|
+
this.info = (...logs) => console.info(...logs, `App ID: ${this.appId}`);
|
|
8
|
+
this.warn = (...logs) => console.warn(...logs, `App ID: ${this.appId}`);
|
|
9
|
+
this.log = (...logs) => console.log(...logs, `App ID: ${this.appId}`);
|
|
10
|
+
this.error = (...logs) => console.error(...logs, `App ID: ${this.appId}`);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.AppContextLogger = AppContextLogger;
|
|
14
|
+
//# sourceMappingURL=logger.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../../../../../src/commands/gen2-migration/generate/codegen-head/logger.ts"],"names":[],"mappings":";;;AAOA,MAAa,gBAAgB;IAC3B,YAAoB,KAAa;QAAb,UAAK,GAAL,KAAK,CAAQ;QACjC,SAAI,GAAG,CAAC,GAAG,IAAc,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,EAAE,WAAW,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;QAC7E,SAAI,GAAG,CAAC,GAAG,IAAc,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,EAAE,WAAW,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;QAC7E,QAAG,GAAG,CAAC,GAAG,IAAc,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,EAAE,WAAW,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;QAC3E,UAAK,GAAG,CAAC,GAAG,IAAc,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,IAAI,EAAE,WAAW,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;IAJ3C,CAAC;CAKtC;AAND,4CAMC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { WriteStream } from 'node:tty';
|
|
2
|
+
export declare class Printer {
|
|
3
|
+
private readonly minimumLogLevel;
|
|
4
|
+
private readonly stdout;
|
|
5
|
+
private readonly stderr;
|
|
6
|
+
private readonly refreshRate;
|
|
7
|
+
private timer;
|
|
8
|
+
private timerSet;
|
|
9
|
+
private spinnerFrames;
|
|
10
|
+
constructor(minimumLogLevel: LogLevel, stdout?: WriteStream | NodeJS.WritableStream, stderr?: WriteStream | NodeJS.WritableStream, refreshRate?: number);
|
|
11
|
+
print: (message: string) => void;
|
|
12
|
+
printNewLine: () => void;
|
|
13
|
+
log(message: string, level?: LogLevel): void;
|
|
14
|
+
indicateProgress(message: string, callback: () => Promise<void>): Promise<void>;
|
|
15
|
+
private writeEscapeSequence;
|
|
16
|
+
private isTTY;
|
|
17
|
+
private startAnimatingSpinner;
|
|
18
|
+
private stopAnimatingSpinner;
|
|
19
|
+
}
|
|
20
|
+
export declare enum LogLevel {
|
|
21
|
+
ERROR = 0,
|
|
22
|
+
INFO = 1,
|
|
23
|
+
DEBUG = 2
|
|
24
|
+
}
|
|
25
|
+
export declare const printer: Printer;
|
|
26
|
+
//# sourceMappingURL=printer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"printer.d.ts","sourceRoot":"","sources":["../../../../../src/commands/gen2-migration/generate/codegen-head/printer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAGvC,qBAAa,OAAO;IAShB,OAAO,CAAC,QAAQ,CAAC,eAAe;IAChC,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,WAAW;IAV9B,OAAO,CAAC,KAAK,CAA8C;IAC3D,OAAO,CAAC,QAAQ,CAAS;IAIzB,OAAO,CAAC,aAAa,CAAsD;gBAExD,eAAe,EAAE,QAAQ,EACzB,MAAM,GAAE,WAAW,GAAG,MAAM,CAAC,cAA+B,EAC5D,MAAM,GAAE,WAAW,GAAG,MAAM,CAAC,cAA+B,EAC5D,WAAW,GAAE,MAAW;IAM3C,KAAK,GAAI,SAAS,MAAM,UAGtB;IAKF,YAAY,aAEV;IAKF,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,GAAE,QAAwB;IAsB9C,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC;IAYrE,OAAO,CAAC,mBAAmB;IAW3B,OAAO,CAAC,KAAK;IAOb,OAAO,CAAC,qBAAqB;IAyB7B,OAAO,CAAC,oBAAoB;CAY7B;AAED,oBAAY,QAAQ;IAClB,KAAK,IAAI;IACT,IAAI,IAAI;IACR,KAAK,IAAI;CACV;AAWD,eAAO,MAAM,OAAO,SAA+B,CAAC"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.printer = exports.LogLevel = exports.Printer = void 0;
|
|
4
|
+
const node_tty_1 = require("node:tty");
|
|
5
|
+
const os_1 = require("os");
|
|
6
|
+
class Printer {
|
|
7
|
+
constructor(minimumLogLevel, stdout = process.stdout, stderr = process.stderr, refreshRate = 30) {
|
|
8
|
+
this.minimumLogLevel = minimumLogLevel;
|
|
9
|
+
this.stdout = stdout;
|
|
10
|
+
this.stderr = stderr;
|
|
11
|
+
this.refreshRate = refreshRate;
|
|
12
|
+
this.timer = null;
|
|
13
|
+
this.timerSet = false;
|
|
14
|
+
this.spinnerFrames = ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏'];
|
|
15
|
+
this.print = (message) => {
|
|
16
|
+
this.stdout.write(message);
|
|
17
|
+
this.printNewLine();
|
|
18
|
+
};
|
|
19
|
+
this.printNewLine = () => {
|
|
20
|
+
this.stdout.write(os_1.EOL);
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
log(message, level = LogLevel.INFO) {
|
|
24
|
+
const doLogMessage = level <= this.minimumLogLevel;
|
|
25
|
+
if (!doLogMessage) {
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
const logMessage = this.minimumLogLevel === LogLevel.DEBUG ? `[${LogLevel[level]}] ${new Date().toISOString()}: ${message}` : message;
|
|
29
|
+
if (level === LogLevel.ERROR) {
|
|
30
|
+
this.stderr.write(logMessage);
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
this.stdout.write(logMessage);
|
|
34
|
+
}
|
|
35
|
+
this.printNewLine();
|
|
36
|
+
}
|
|
37
|
+
async indicateProgress(message, callback) {
|
|
38
|
+
try {
|
|
39
|
+
this.startAnimatingSpinner(message);
|
|
40
|
+
await callback();
|
|
41
|
+
}
|
|
42
|
+
finally {
|
|
43
|
+
this.stopAnimatingSpinner();
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
writeEscapeSequence(action) {
|
|
47
|
+
if (!this.isTTY()) {
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
this.stdout.write(action);
|
|
51
|
+
}
|
|
52
|
+
isTTY() {
|
|
53
|
+
return this.stdout instanceof node_tty_1.WriteStream && this.stdout.isTTY;
|
|
54
|
+
}
|
|
55
|
+
startAnimatingSpinner(message) {
|
|
56
|
+
if (this.timerSet) {
|
|
57
|
+
throw new Error('Timer is already set to animate spinner, stop the current running timer before starting a new one.');
|
|
58
|
+
}
|
|
59
|
+
if (!this.isTTY()) {
|
|
60
|
+
this.log(message, LogLevel.INFO);
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
let frameIndex = 0;
|
|
64
|
+
this.timerSet = true;
|
|
65
|
+
this.writeEscapeSequence(EscapeSequence.HIDE_CURSOR);
|
|
66
|
+
this.timer = setInterval(() => {
|
|
67
|
+
this.writeEscapeSequence(EscapeSequence.CLEAR_LINE);
|
|
68
|
+
this.writeEscapeSequence(EscapeSequence.MOVE_CURSOR_TO_START);
|
|
69
|
+
const frame = this.spinnerFrames[frameIndex];
|
|
70
|
+
this.stdout.write(`${frame} ${message}`);
|
|
71
|
+
frameIndex = (frameIndex + 1) % this.spinnerFrames.length;
|
|
72
|
+
}, this.refreshRate);
|
|
73
|
+
}
|
|
74
|
+
stopAnimatingSpinner() {
|
|
75
|
+
if (!this.isTTY()) {
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
if (this.timer) {
|
|
79
|
+
clearInterval(this.timer);
|
|
80
|
+
}
|
|
81
|
+
this.timerSet = false;
|
|
82
|
+
this.writeEscapeSequence(EscapeSequence.CLEAR_LINE);
|
|
83
|
+
this.writeEscapeSequence(EscapeSequence.MOVE_CURSOR_TO_START);
|
|
84
|
+
this.writeEscapeSequence(EscapeSequence.SHOW_CURSOR);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
exports.Printer = Printer;
|
|
88
|
+
var LogLevel;
|
|
89
|
+
(function (LogLevel) {
|
|
90
|
+
LogLevel[LogLevel["ERROR"] = 0] = "ERROR";
|
|
91
|
+
LogLevel[LogLevel["INFO"] = 1] = "INFO";
|
|
92
|
+
LogLevel[LogLevel["DEBUG"] = 2] = "DEBUG";
|
|
93
|
+
})(LogLevel || (exports.LogLevel = LogLevel = {}));
|
|
94
|
+
var EscapeSequence;
|
|
95
|
+
(function (EscapeSequence) {
|
|
96
|
+
EscapeSequence["CLEAR_LINE"] = "\u001B[2K";
|
|
97
|
+
EscapeSequence["MOVE_CURSOR_TO_START"] = "\u001B[0G";
|
|
98
|
+
EscapeSequence["SHOW_CURSOR"] = "\u001B[?25h";
|
|
99
|
+
EscapeSequence["HIDE_CURSOR"] = "\u001B[?25l";
|
|
100
|
+
})(EscapeSequence || (EscapeSequence = {}));
|
|
101
|
+
const minimumLogLevel = process.argv.includes('--debug') ? LogLevel.DEBUG : LogLevel.INFO;
|
|
102
|
+
exports.printer = new Printer(minimumLogLevel);
|
|
103
|
+
//# sourceMappingURL=printer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"printer.js","sourceRoot":"","sources":["../../../../../src/commands/gen2-migration/generate/codegen-head/printer.ts"],"names":[],"mappings":";;;AAAA,uCAAuC;AACvC,2BAAyB;AAEzB,MAAa,OAAO;IAQlB,YACmB,eAAyB,EACzB,SAA8C,OAAO,CAAC,MAAM,EAC5D,SAA8C,OAAO,CAAC,MAAM,EAC5D,cAAsB,EAAE;QAHxB,oBAAe,GAAf,eAAe,CAAU;QACzB,WAAM,GAAN,MAAM,CAAsD;QAC5D,WAAM,GAAN,MAAM,CAAsD;QAC5D,gBAAW,GAAX,WAAW,CAAa;QAVnC,UAAK,GAAyC,IAAI,CAAC;QACnD,aAAQ,GAAG,KAAK,CAAC;QAIjB,kBAAa,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;QAW3E,UAAK,GAAG,CAAC,OAAe,EAAE,EAAE;YAC1B,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;YAC3B,IAAI,CAAC,YAAY,EAAE,CAAC;QACtB,CAAC,CAAC;QAKF,iBAAY,GAAG,GAAG,EAAE;YAClB,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,QAAG,CAAC,CAAC;QACzB,CAAC,CAAC;IAfC,CAAC;IAoBJ,GAAG,CAAC,OAAe,EAAE,QAAkB,QAAQ,CAAC,IAAI;QAClD,MAAM,YAAY,GAAG,KAAK,IAAI,IAAI,CAAC,eAAe,CAAC;Q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S,CAAA;IACT,uCAAQ,CAAA;IACR,yCAAS,CAAA;AACX,CAAC,EAJW,QAAQ,wBAAR,QAAQ,QAInB;AAED,IAAK,cAKJ;AALD,WAAK,cAAc;IACjB,0CAAsB,CAAA;IACtB,oDAAgC,CAAA;IAChC,6CAAyB,CAAA;IACzB,6CAAyB,CAAA;AAC3B,CAAC,EALI,cAAc,KAAd,cAAc,QAKlB;AAED,MAAM,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC;AAE7E,QAAA,OAAO,GAAG,IAAI,OAAO,CAAC,eAAe,CAAC,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Renderer } from '../render_pipeline';
|
|
2
|
+
import { Lambda } from '../generators/functions/lambda';
|
|
3
|
+
import { AuthTriggerEvents, AuthLambdaTriggers, AuthDefinition, SendingAccount, PolicyOverrides, PasswordPolicyPath, UserPoolMfaConfig, Group, Attribute, EmailOptions, LoginOptions, StandardAttribute, StandardAttributes, CustomAttribute, CustomAttributes, MultifactorOptions, OidcOptions, OidcEndPoints, MetadataOptions, SamlOptions, Scope, AttributeMappingRule, ReferenceAuth } from '../generators/auth/index';
|
|
4
|
+
import { StorageRenderParameters, AccessPatterns, Permission, S3TriggerDefinition, StorageTriggerEvent, ServerSideEncryptionConfiguration } from '../generators/storage';
|
|
5
|
+
import { DataDefinition, DataTableMapping } from '../generators/data/index';
|
|
6
|
+
import { FunctionDefinition } from '../generators/functions/index';
|
|
7
|
+
import { KinesisAnalyticsDefinition } from '../unsupported/cdk-from-cfn';
|
|
8
|
+
import { CloudFormationClient } from '@aws-sdk/client-cloudformation';
|
|
9
|
+
export interface Gen2RenderingOptions {
|
|
10
|
+
outputDir: string;
|
|
11
|
+
appId?: string;
|
|
12
|
+
backendEnvironmentName?: string | undefined;
|
|
13
|
+
rootStackName?: string;
|
|
14
|
+
cfnClient?: CloudFormationClient;
|
|
15
|
+
auth?: AuthDefinition;
|
|
16
|
+
storage?: StorageRenderParameters;
|
|
17
|
+
data?: DataDefinition;
|
|
18
|
+
functions?: FunctionDefinition[];
|
|
19
|
+
analytics?: Record<string, KinesisAnalyticsDefinition>;
|
|
20
|
+
customResources?: Map<string, string>;
|
|
21
|
+
unsupportedCategories?: Map<string, string>;
|
|
22
|
+
fileWriter?: (content: string, path: string) => Promise<void>;
|
|
23
|
+
}
|
|
24
|
+
export declare const createGen2Renderer: ({ outputDir, auth, storage, data, functions, analytics, customResources, backendEnvironmentName, rootStackName, cfnClient, unsupportedCategories, fileWriter, }: Readonly<Gen2RenderingOptions>) => Renderer;
|
|
25
|
+
export { Renderer, SendingAccount, UserPoolMfaConfig, StorageRenderParameters, AccessPatterns, Permission, S3TriggerDefinition, PasswordPolicyPath, AuthDefinition, FunctionDefinition, PolicyOverrides, Group, Attribute, EmailOptions, LoginOptions, StandardAttribute, StandardAttributes, CustomAttribute, CustomAttributes, MultifactorOptions, AuthTriggerEvents, Lambda, AuthLambdaTriggers, StorageTriggerEvent, DataDefinition, DataTableMapping, SamlOptions, OidcEndPoints, MetadataOptions, OidcOptions, Scope, AttributeMappingRule, ServerSideEncryptionConfiguration, ReferenceAuth, };
|
|
26
|
+
//# sourceMappingURL=migration-pipeline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migration-pipeline.d.ts","sourceRoot":"","sources":["../../../../../src/commands/gen2-migration/generate/core/migration-pipeline.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAkB,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAK9D,OAAO,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AACxD,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EAEd,cAAc,EACd,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EACjB,KAAK,EACL,SAAS,EACT,YAAY,EACZ,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