@aws-amplify/cli-internal-gen2-migration-experimental-alpha 0.5.0 → 0.7.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/CHANGELOG.md +16 -0
- package/adr/001-refactor-gen2-migration-generate.md +413 -0
- package/adr/002-refactor-gen2-migration-refactor.md +593 -0
- package/adr/003-gen2-migration-assess.md +414 -0
- package/adr/004-gen2-migration-validation-modeling.md +336 -0
- package/aws-amplify-cli-internal-gen2-migration-experimental-alpha-0.7.0.tgz +0 -0
- package/bin/amplify +1 -1
- package/lib/commands/drift-detection/detect-local-drift.d.ts +1 -2
- package/lib/commands/drift-detection/detect-local-drift.d.ts.map +1 -1
- package/lib/commands/drift-detection/detect-local-drift.js +19 -6
- package/lib/commands/drift-detection/detect-local-drift.js.map +1 -1
- package/lib/commands/drift-detection/detect-stack-drift.d.ts +20 -9
- package/lib/commands/drift-detection/detect-stack-drift.d.ts.map +1 -1
- package/lib/commands/drift-detection/detect-stack-drift.js +121 -151
- package/lib/commands/drift-detection/detect-stack-drift.js.map +1 -1
- package/lib/commands/drift-detection/detect-template-drift.d.ts +8 -21
- package/lib/commands/drift-detection/detect-template-drift.d.ts.map +1 -1
- package/lib/commands/drift-detection/detect-template-drift.js +81 -89
- package/lib/commands/drift-detection/detect-template-drift.js.map +1 -1
- package/lib/commands/drift-detection/index.d.ts +2 -3
- package/lib/commands/drift-detection/index.d.ts.map +1 -1
- package/lib/commands/drift-detection/index.js +1 -3
- package/lib/commands/drift-detection/index.js.map +1 -1
- package/lib/commands/drift-detection/services/amplify-config-service.d.ts +0 -1
- package/lib/commands/drift-detection/services/amplify-config-service.d.ts.map +1 -1
- package/lib/commands/drift-detection/services/amplify-config-service.js +0 -16
- package/lib/commands/drift-detection/services/amplify-config-service.js.map +1 -1
- package/lib/commands/drift-detection/services/cloudformation-service.d.ts +2 -4
- package/lib/commands/drift-detection/services/cloudformation-service.d.ts.map +1 -1
- package/lib/commands/drift-detection/services/cloudformation-service.js +7 -11
- package/lib/commands/drift-detection/services/cloudformation-service.js.map +1 -1
- package/lib/commands/drift-detection/services/drift-formatter.d.ts +3 -70
- package/lib/commands/drift-detection/services/drift-formatter.d.ts.map +1 -1
- package/lib/commands/drift-detection/services/drift-formatter.js +148 -603
- package/lib/commands/drift-detection/services/drift-formatter.js.map +1 -1
- package/lib/commands/drift-detection/services/index.d.ts +1 -2
- package/lib/commands/drift-detection/services/index.d.ts.map +1 -1
- package/lib/commands/drift-detection/services/index.js +2 -4
- package/lib/commands/drift-detection/services/index.js.map +1 -1
- package/lib/commands/drift.d.ts +7 -18
- package/lib/commands/drift.d.ts.map +1 -1
- package/lib/commands/drift.js +71 -172
- package/lib/commands/drift.js.map +1 -1
- package/lib/commands/gen2-migration/_infra/aws-clients.d.ts +31 -0
- package/lib/commands/gen2-migration/_infra/aws-clients.d.ts.map +1 -0
- package/lib/commands/gen2-migration/_infra/aws-clients.js +64 -0
- package/lib/commands/gen2-migration/_infra/aws-clients.js.map +1 -0
- package/lib/commands/gen2-migration/_infra/categories.d.ts +2 -0
- package/lib/commands/gen2-migration/_infra/categories.d.ts.map +1 -0
- package/lib/commands/gen2-migration/_infra/categories.js +32 -0
- package/lib/commands/gen2-migration/_infra/categories.js.map +1 -0
- package/lib/commands/gen2-migration/_infra/cfn-template.d.ts +52 -0
- package/lib/commands/gen2-migration/_infra/cfn-template.d.ts.map +1 -0
- package/lib/commands/gen2-migration/_infra/cfn-template.js +21 -0
- package/lib/commands/gen2-migration/_infra/cfn-template.js.map +1 -0
- package/lib/commands/gen2-migration/_infra/operation.d.ts +16 -0
- package/lib/commands/gen2-migration/_infra/operation.d.ts.map +1 -0
- package/lib/commands/gen2-migration/_infra/operation.js +3 -0
- package/lib/commands/gen2-migration/_infra/operation.js.map +1 -0
- package/lib/commands/gen2-migration/_infra/plan.d.ts +21 -0
- package/lib/commands/gen2-migration/_infra/plan.d.ts.map +1 -0
- package/lib/commands/gen2-migration/_infra/plan.js +111 -0
- package/lib/commands/gen2-migration/_infra/plan.js.map +1 -0
- package/lib/commands/gen2-migration/_infra/planner.d.ts +5 -0
- package/lib/commands/gen2-migration/_infra/planner.d.ts.map +1 -0
- package/lib/commands/gen2-migration/{generate/custom-resources/types.js → _infra/planner.js} +1 -1
- package/lib/commands/gen2-migration/_infra/planner.js.map +1 -0
- package/lib/commands/gen2-migration/_infra/spinning-logger.d.ts +25 -0
- package/lib/commands/gen2-migration/_infra/spinning-logger.d.ts.map +1 -0
- package/lib/commands/gen2-migration/_infra/spinning-logger.js +115 -0
- package/lib/commands/gen2-migration/_infra/spinning-logger.js.map +1 -0
- package/lib/commands/gen2-migration/_infra/stateful-resources.d.ts.map +1 -0
- package/lib/commands/gen2-migration/_infra/stateful-resources.js.map +1 -0
- package/lib/commands/gen2-migration/_infra/step.d.ts +15 -0
- package/lib/commands/gen2-migration/_infra/step.d.ts.map +1 -0
- package/lib/commands/gen2-migration/_infra/step.js +13 -0
- package/lib/commands/gen2-migration/_infra/step.js.map +1 -0
- package/lib/commands/gen2-migration/{_validations.d.ts → _infra/validations.d.ts} +6 -7
- package/lib/commands/gen2-migration/_infra/validations.d.ts.map +1 -0
- package/lib/commands/gen2-migration/{_validations.js → _infra/validations.js} +24 -60
- package/lib/commands/gen2-migration/_infra/validations.js.map +1 -0
- package/lib/commands/gen2-migration/assess/analytics/kinesis.assessor.d.ts +10 -0
- package/lib/commands/gen2-migration/assess/analytics/kinesis.assessor.d.ts.map +1 -0
- package/lib/commands/gen2-migration/assess/analytics/kinesis.assessor.js +15 -0
- package/lib/commands/gen2-migration/assess/analytics/kinesis.assessor.js.map +1 -0
- package/lib/commands/gen2-migration/assess/api/data.assessor.d.ts +10 -0
- package/lib/commands/gen2-migration/assess/api/data.assessor.d.ts.map +1 -0
- package/lib/commands/gen2-migration/assess/api/data.assessor.js +25 -0
- package/lib/commands/gen2-migration/assess/api/data.assessor.js.map +1 -0
- package/lib/commands/gen2-migration/assess/api/rest-api.assessor.d.ts +10 -0
- package/lib/commands/gen2-migration/assess/api/rest-api.assessor.d.ts.map +1 -0
- package/lib/commands/gen2-migration/assess/api/rest-api.assessor.js +25 -0
- package/lib/commands/gen2-migration/assess/api/rest-api.assessor.js.map +1 -0
- package/lib/commands/gen2-migration/assess/assessment.d.ts +42 -0
- package/lib/commands/gen2-migration/assess/assessment.d.ts.map +1 -0
- package/lib/commands/gen2-migration/assess/assessment.js +118 -0
- package/lib/commands/gen2-migration/assess/assessment.js.map +1 -0
- package/lib/commands/gen2-migration/assess/assessor.d.ts +5 -0
- package/lib/commands/gen2-migration/assess/assessor.d.ts.map +1 -0
- package/lib/commands/gen2-migration/{generate/types.js → assess/assessor.js} +1 -1
- package/lib/commands/gen2-migration/assess/assessor.js.map +1 -0
- package/lib/commands/gen2-migration/assess/auth/auth-cognito.assessor.d.ts +10 -0
- package/lib/commands/gen2-migration/assess/auth/auth-cognito.assessor.d.ts.map +1 -0
- package/lib/commands/gen2-migration/assess/auth/auth-cognito.assessor.js +30 -0
- package/lib/commands/gen2-migration/assess/auth/auth-cognito.assessor.js.map +1 -0
- package/lib/commands/gen2-migration/assess/auth/auth-user-pool-groups.assessor.d.ts +10 -0
- package/lib/commands/gen2-migration/assess/auth/auth-user-pool-groups.assessor.d.ts.map +1 -0
- package/lib/commands/gen2-migration/assess/auth/auth-user-pool-groups.assessor.js +24 -0
- package/lib/commands/gen2-migration/assess/auth/auth-user-pool-groups.assessor.js.map +1 -0
- package/lib/commands/gen2-migration/assess/function/function.assessor.d.ts +12 -0
- package/lib/commands/gen2-migration/assess/function/function.assessor.d.ts.map +1 -0
- package/lib/commands/gen2-migration/assess/function/function.assessor.js +40 -0
- package/lib/commands/gen2-migration/assess/function/function.assessor.js.map +1 -0
- package/lib/commands/gen2-migration/assess/geo/geo-geofence-collection.assessor.d.ts +10 -0
- package/lib/commands/gen2-migration/assess/geo/geo-geofence-collection.assessor.d.ts.map +1 -0
- package/lib/commands/gen2-migration/assess/geo/geo-geofence-collection.assessor.js +19 -0
- package/lib/commands/gen2-migration/assess/geo/geo-geofence-collection.assessor.js.map +1 -0
- package/lib/commands/gen2-migration/assess/geo/geo-map.assessor.d.ts +10 -0
- package/lib/commands/gen2-migration/assess/geo/geo-map.assessor.d.ts.map +1 -0
- package/lib/commands/gen2-migration/assess/geo/geo-map.assessor.js +15 -0
- package/lib/commands/gen2-migration/assess/geo/geo-map.assessor.js.map +1 -0
- package/lib/commands/gen2-migration/assess/geo/geo-place-index.assessor.d.ts +10 -0
- package/lib/commands/gen2-migration/assess/geo/geo-place-index.assessor.d.ts.map +1 -0
- package/lib/commands/gen2-migration/assess/geo/geo-place-index.assessor.js +15 -0
- package/lib/commands/gen2-migration/assess/geo/geo-place-index.assessor.js.map +1 -0
- package/lib/commands/gen2-migration/assess/storage/dynamodb.assessor.d.ts +10 -0
- package/lib/commands/gen2-migration/assess/storage/dynamodb.assessor.d.ts.map +1 -0
- package/lib/commands/gen2-migration/assess/storage/dynamodb.assessor.js +25 -0
- package/lib/commands/gen2-migration/assess/storage/dynamodb.assessor.js.map +1 -0
- package/lib/commands/gen2-migration/assess/storage/s3.assessor.d.ts +10 -0
- package/lib/commands/gen2-migration/assess/storage/s3.assessor.d.ts.map +1 -0
- package/lib/commands/gen2-migration/assess/storage/s3.assessor.js +25 -0
- package/lib/commands/gen2-migration/assess/storage/s3.assessor.js.map +1 -0
- package/lib/commands/gen2-migration/assess.d.ts +9 -0
- package/lib/commands/gen2-migration/assess.d.ts.map +1 -0
- package/lib/commands/gen2-migration/assess.js +80 -0
- package/lib/commands/gen2-migration/assess.js.map +1 -0
- package/lib/commands/gen2-migration/decommission.d.ts +6 -5
- package/lib/commands/gen2-migration/decommission.d.ts.map +1 -1
- package/lib/commands/gen2-migration/decommission.js +82 -25
- package/lib/commands/gen2-migration/decommission.js.map +1 -1
- package/lib/commands/gen2-migration/generate/_infra/aws-fetcher.d.ts +32 -0
- package/lib/commands/gen2-migration/generate/_infra/aws-fetcher.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/_infra/aws-fetcher.js +136 -0
- package/lib/commands/gen2-migration/generate/_infra/aws-fetcher.js.map +1 -0
- package/lib/commands/gen2-migration/generate/_infra/files.d.ts +2 -0
- package/lib/commands/gen2-migration/generate/_infra/files.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/{codegen-head/directory_exists.js → _infra/files.js} +4 -5
- package/lib/commands/gen2-migration/generate/_infra/files.js.map +1 -0
- package/lib/commands/gen2-migration/generate/_infra/gen1-app.d.ts +40 -0
- package/lib/commands/gen2-migration/generate/_infra/gen1-app.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/_infra/gen1-app.js +198 -0
- package/lib/commands/gen2-migration/generate/_infra/gen1-app.js.map +1 -0
- package/lib/commands/gen2-migration/generate/_infra/ts.d.ts +24 -0
- package/lib/commands/gen2-migration/generate/_infra/ts.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/_infra/ts.js +128 -0
- package/lib/commands/gen2-migration/generate/_infra/ts.js.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/analytics/cfn-condition-resolver.d.ts +18 -0
- package/lib/commands/gen2-migration/generate/amplify/analytics/cfn-condition-resolver.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/analytics/cfn-condition-resolver.js +126 -0
- package/lib/commands/gen2-migration/generate/amplify/analytics/cfn-condition-resolver.js.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/analytics/kinesis-cfn-converter.d.ts +33 -0
- package/lib/commands/gen2-migration/generate/amplify/analytics/kinesis-cfn-converter.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/{unsupported/cdk-from-cfn.js → amplify/analytics/kinesis-cfn-converter.js} +94 -52
- package/lib/commands/gen2-migration/generate/amplify/analytics/kinesis-cfn-converter.js.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/analytics/kinesis.generator.d.ts +14 -0
- package/lib/commands/gen2-migration/generate/amplify/analytics/kinesis.generator.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/analytics/kinesis.generator.js +69 -0
- package/lib/commands/gen2-migration/generate/amplify/analytics/kinesis.generator.js.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/analytics/kinesis.renderer.d.ts +18 -0
- package/lib/commands/gen2-migration/generate/amplify/analytics/kinesis.renderer.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/analytics/kinesis.renderer.js +68 -0
- package/lib/commands/gen2-migration/generate/amplify/analytics/kinesis.renderer.js.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/auth/auth.generator.d.ts +24 -0
- package/lib/commands/gen2-migration/generate/amplify/auth/auth.generator.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/auth/auth.generator.js +233 -0
- package/lib/commands/gen2-migration/generate/amplify/auth/auth.generator.js.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/auth/auth.renderer.d.ts +78 -0
- package/lib/commands/gen2-migration/generate/amplify/auth/auth.renderer.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/auth/auth.renderer.js +491 -0
- package/lib/commands/gen2-migration/generate/amplify/auth/auth.renderer.js.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/auth/reference-auth.generator.d.ts +15 -0
- package/lib/commands/gen2-migration/generate/amplify/auth/reference-auth.generator.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/auth/reference-auth.generator.js +75 -0
- package/lib/commands/gen2-migration/generate/amplify/auth/reference-auth.generator.js.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/auth/reference-auth.renderer.d.ts +13 -0
- package/lib/commands/gen2-migration/generate/amplify/auth/reference-auth.renderer.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/auth/reference-auth.renderer.js +33 -0
- package/lib/commands/gen2-migration/generate/amplify/auth/reference-auth.renderer.js.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/backend.generator.d.ts +22 -0
- package/lib/commands/gen2-migration/generate/amplify/backend.generator.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/backend.generator.js +150 -0
- package/lib/commands/gen2-migration/generate/amplify/backend.generator.js.map +1 -0
- package/lib/commands/gen2-migration/generate/{custom-resources/transformer → amplify/custom-resources}/amplify-helper-transformer.d.ts +4 -0
- package/lib/commands/gen2-migration/generate/amplify/custom-resources/amplify-helper-transformer.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/custom-resources/amplify-helper-transformer.js +333 -0
- package/lib/commands/gen2-migration/generate/amplify/custom-resources/amplify-helper-transformer.js.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/custom-resources/custom.generator.d.ts +17 -0
- package/lib/commands/gen2-migration/generate/amplify/custom-resources/custom.generator.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/custom-resources/custom.generator.js +190 -0
- package/lib/commands/gen2-migration/generate/amplify/custom-resources/custom.generator.js.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/data/data.generator.d.ts +15 -0
- package/lib/commands/gen2-migration/generate/amplify/data/data.generator.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/data/data.generator.js +112 -0
- package/lib/commands/gen2-migration/generate/amplify/data/data.generator.js.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/data/data.renderer.d.ts +22 -0
- package/lib/commands/gen2-migration/generate/amplify/data/data.renderer.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/data/data.renderer.js +167 -0
- package/lib/commands/gen2-migration/generate/amplify/data/data.renderer.js.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/function/function.generator.d.ts +49 -0
- package/lib/commands/gen2-migration/generate/amplify/function/function.generator.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/function/function.generator.js +626 -0
- package/lib/commands/gen2-migration/generate/amplify/function/function.generator.js.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/function/function.renderer.d.ts +21 -0
- package/lib/commands/gen2-migration/generate/amplify/function/function.renderer.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/function/function.renderer.js +105 -0
- package/lib/commands/gen2-migration/generate/amplify/function/function.renderer.js.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/geo/geo-cfn-converter.d.ts +49 -0
- package/lib/commands/gen2-migration/generate/amplify/geo/geo-cfn-converter.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/geo/geo-cfn-converter.js +239 -0
- package/lib/commands/gen2-migration/generate/amplify/geo/geo-cfn-converter.js.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/geo/geo.generator.d.ts +14 -0
- package/lib/commands/gen2-migration/generate/amplify/geo/geo.generator.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/geo/geo.generator.js +70 -0
- package/lib/commands/gen2-migration/generate/amplify/geo/geo.generator.js.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/geo/geo.renderer.d.ts +13 -0
- package/lib/commands/gen2-migration/generate/amplify/geo/geo.renderer.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/geo/geo.renderer.js +161 -0
- package/lib/commands/gen2-migration/generate/amplify/geo/geo.renderer.js.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/package.json.generator.d.ts +8 -0
- package/lib/commands/gen2-migration/generate/amplify/package.json.generator.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/package.json.generator.js +28 -0
- package/lib/commands/gen2-migration/generate/amplify/package.json.generator.js.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/rest-api/rest-api.generator.d.ts +15 -0
- package/lib/commands/gen2-migration/generate/amplify/rest-api/rest-api.generator.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/rest-api/rest-api.generator.js +162 -0
- package/lib/commands/gen2-migration/generate/amplify/rest-api/rest-api.generator.js.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/rest-api/rest-api.renderer.d.ts +51 -0
- package/lib/commands/gen2-migration/generate/amplify/rest-api/rest-api.renderer.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/rest-api/rest-api.renderer.js +269 -0
- package/lib/commands/gen2-migration/generate/amplify/rest-api/rest-api.renderer.js.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/storage/dynamodb.generator.d.ts +14 -0
- package/lib/commands/gen2-migration/generate/amplify/storage/dynamodb.generator.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/storage/dynamodb.generator.js +96 -0
- package/lib/commands/gen2-migration/generate/amplify/storage/dynamodb.generator.js.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/storage/dynamodb.renderer.d.ts +30 -0
- package/lib/commands/gen2-migration/generate/amplify/storage/dynamodb.renderer.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/storage/dynamodb.renderer.js +90 -0
- package/lib/commands/gen2-migration/generate/amplify/storage/dynamodb.renderer.js.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/storage/s3.generator.d.ts +22 -0
- package/lib/commands/gen2-migration/generate/amplify/storage/s3.generator.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/storage/s3.generator.js +132 -0
- package/lib/commands/gen2-migration/generate/amplify/storage/s3.generator.js.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/storage/s3.renderer.d.ts +31 -0
- package/lib/commands/gen2-migration/generate/amplify/storage/s3.renderer.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/storage/s3.renderer.js +137 -0
- package/lib/commands/gen2-migration/generate/amplify/storage/s3.renderer.js.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/tsconfig.generator.d.ts +8 -0
- package/lib/commands/gen2-migration/generate/amplify/tsconfig.generator.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify/tsconfig.generator.js +45 -0
- package/lib/commands/gen2-migration/generate/amplify/tsconfig.generator.js.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify.yml.generator.d.ts +9 -0
- package/lib/commands/gen2-migration/generate/amplify.yml.generator.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/amplify.yml.generator.js +112 -0
- package/lib/commands/gen2-migration/generate/amplify.yml.generator.js.map +1 -0
- package/lib/commands/gen2-migration/generate/gitignore.generator.d.ts +6 -0
- package/lib/commands/gen2-migration/generate/gitignore.generator.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/gitignore.generator.js +45 -0
- package/lib/commands/gen2-migration/generate/gitignore.generator.js.map +1 -0
- package/lib/commands/gen2-migration/generate/package.json.generator.d.ts +12 -0
- package/lib/commands/gen2-migration/generate/package.json.generator.d.ts.map +1 -0
- package/lib/commands/gen2-migration/generate/package.json.generator.js +83 -0
- package/lib/commands/gen2-migration/generate/package.json.generator.js.map +1 -0
- package/lib/commands/gen2-migration/generate.d.ts +6 -5
- package/lib/commands/gen2-migration/generate.d.ts.map +1 -1
- package/lib/commands/gen2-migration/generate.js +232 -17
- package/lib/commands/gen2-migration/generate.js.map +1 -1
- package/lib/commands/gen2-migration/lock.d.ts +10 -6
- package/lib/commands/gen2-migration/lock.d.ts.map +1 -1
- package/lib/commands/gen2-migration/lock.js +182 -64
- package/lib/commands/gen2-migration/lock.js.map +1 -1
- package/lib/commands/gen2-migration/refactor/analytics/analytics-forward.d.ts +9 -0
- package/lib/commands/gen2-migration/refactor/analytics/analytics-forward.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor/analytics/analytics-forward.js +19 -0
- package/lib/commands/gen2-migration/refactor/analytics/analytics-forward.js.map +1 -0
- package/lib/commands/gen2-migration/refactor/analytics/analytics-rollback.d.ts +9 -0
- package/lib/commands/gen2-migration/refactor/analytics/analytics-rollback.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor/analytics/analytics-rollback.js +26 -0
- package/lib/commands/gen2-migration/refactor/analytics/analytics-rollback.js.map +1 -0
- package/lib/commands/gen2-migration/refactor/auth/auth-cognito-forward.d.ts +21 -0
- package/lib/commands/gen2-migration/refactor/auth/auth-cognito-forward.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor/auth/auth-cognito-forward.js +87 -0
- package/lib/commands/gen2-migration/refactor/auth/auth-cognito-forward.js.map +1 -0
- package/lib/commands/gen2-migration/refactor/auth/auth-cognito-rollback.d.ts +9 -0
- package/lib/commands/gen2-migration/refactor/auth/auth-cognito-rollback.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor/auth/auth-cognito-rollback.js +44 -0
- package/lib/commands/gen2-migration/refactor/auth/auth-cognito-rollback.js.map +1 -0
- package/lib/commands/gen2-migration/refactor/auth/auth-user-pool-groups-forward.d.ts +11 -0
- package/lib/commands/gen2-migration/refactor/auth/auth-user-pool-groups-forward.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor/auth/auth-user-pool-groups-forward.js +33 -0
- package/lib/commands/gen2-migration/refactor/auth/auth-user-pool-groups-forward.js.map +1 -0
- package/lib/commands/gen2-migration/refactor/auth/auth-user-pool-groups-rollback.d.ts +9 -0
- package/lib/commands/gen2-migration/refactor/auth/auth-user-pool-groups-rollback.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor/auth/auth-user-pool-groups-rollback.js +26 -0
- package/lib/commands/gen2-migration/refactor/auth/auth-user-pool-groups-rollback.js.map +1 -0
- package/lib/commands/gen2-migration/refactor/cfn.d.ts +41 -0
- package/lib/commands/gen2-migration/refactor/cfn.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor/cfn.js +337 -0
- package/lib/commands/gen2-migration/refactor/cfn.js.map +1 -0
- package/lib/commands/gen2-migration/refactor/index.d.ts +1 -1
- package/lib/commands/gen2-migration/refactor/index.d.ts.map +1 -1
- package/lib/commands/gen2-migration/refactor/index.js +1 -1
- package/lib/commands/gen2-migration/refactor/index.js.map +1 -1
- package/lib/commands/gen2-migration/refactor/oauth-values-retriever.d.ts +23 -11
- package/lib/commands/gen2-migration/refactor/oauth-values-retriever.d.ts.map +1 -1
- package/lib/commands/gen2-migration/refactor/oauth-values-retriever.js +53 -45
- package/lib/commands/gen2-migration/refactor/oauth-values-retriever.js.map +1 -1
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-condition-resolver.d.ts +2 -11
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-condition-resolver.d.ts.map +1 -1
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-condition-resolver.js +89 -123
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-condition-resolver.js.map +1 -1
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-dependency-resolver.d.ts +2 -7
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-dependency-resolver.d.ts.map +1 -1
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-dependency-resolver.js +6 -22
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-dependency-resolver.js.map +1 -1
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-output-resolver.d.ts +8 -12
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-output-resolver.d.ts.map +1 -1
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-output-resolver.js +105 -127
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-output-resolver.js.map +1 -1
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-parameter-resolver.d.ts +2 -8
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-parameter-resolver.d.ts.map +1 -1
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-parameter-resolver.js +36 -41
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-parameter-resolver.js.map +1 -1
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-tree-walker.d.ts +3 -0
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-tree-walker.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-tree-walker.js +18 -0
- package/lib/commands/gen2-migration/refactor/resolvers/cfn-tree-walker.js.map +1 -0
- package/lib/commands/gen2-migration/refactor/stack-facade.d.ts +13 -0
- package/lib/commands/gen2-migration/refactor/stack-facade.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor/stack-facade.js +39 -0
- package/lib/commands/gen2-migration/refactor/stack-facade.js.map +1 -0
- package/lib/commands/gen2-migration/refactor/storage/storage-dynamo-forward.d.ts +8 -0
- package/lib/commands/gen2-migration/refactor/storage/storage-dynamo-forward.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor/storage/storage-dynamo-forward.js +18 -0
- package/lib/commands/gen2-migration/refactor/storage/storage-dynamo-forward.js.map +1 -0
- package/lib/commands/gen2-migration/refactor/storage/storage-dynamo-rollback.d.ts +9 -0
- package/lib/commands/gen2-migration/refactor/storage/storage-dynamo-rollback.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor/storage/storage-dynamo-rollback.js +26 -0
- package/lib/commands/gen2-migration/refactor/storage/storage-dynamo-rollback.js.map +1 -0
- package/lib/commands/gen2-migration/refactor/storage/storage-forward.d.ts +10 -0
- package/lib/commands/gen2-migration/refactor/storage/storage-forward.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor/storage/storage-forward.js +36 -0
- package/lib/commands/gen2-migration/refactor/storage/storage-forward.js.map +1 -0
- package/lib/commands/gen2-migration/refactor/storage/storage-rollback.d.ts +9 -0
- package/lib/commands/gen2-migration/refactor/storage/storage-rollback.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor/storage/storage-rollback.js +26 -0
- package/lib/commands/gen2-migration/refactor/storage/storage-rollback.js.map +1 -0
- package/lib/commands/gen2-migration/refactor/utils.d.ts +1 -1
- package/lib/commands/gen2-migration/refactor/utils.d.ts.map +1 -1
- package/lib/commands/gen2-migration/refactor/utils.js +2 -2
- package/lib/commands/gen2-migration/refactor/utils.js.map +1 -1
- package/lib/commands/gen2-migration/refactor/workflow/category-refactorer.d.ts +52 -0
- package/lib/commands/gen2-migration/refactor/workflow/category-refactorer.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor/workflow/category-refactorer.js +212 -0
- package/lib/commands/gen2-migration/refactor/workflow/category-refactorer.js.map +1 -0
- package/lib/commands/gen2-migration/refactor/workflow/forward-category-refactorer.d.ts +15 -0
- package/lib/commands/gen2-migration/refactor/workflow/forward-category-refactorer.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor/workflow/forward-category-refactorer.js +148 -0
- package/lib/commands/gen2-migration/refactor/workflow/forward-category-refactorer.js.map +1 -0
- package/lib/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.d.ts +13 -0
- package/lib/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.js +123 -0
- package/lib/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.js.map +1 -0
- package/lib/commands/gen2-migration/refactor.d.ts +11 -0
- package/lib/commands/gen2-migration/refactor.d.ts.map +1 -0
- package/lib/commands/gen2-migration/refactor.js +189 -0
- package/lib/commands/gen2-migration/refactor.js.map +1 -0
- package/lib/commands/gen2-migration.d.ts +0 -12
- package/lib/commands/gen2-migration.d.ts.map +1 -1
- package/lib/commands/gen2-migration.js +82 -111
- package/lib/commands/gen2-migration.js.map +1 -1
- package/package.json +22 -12
- package/aws-amplify-cli-internal-gen2-migration-experimental-alpha-0.5.0.tgz +0 -0
- package/lib/commands/drift-detection/services/file-service.d.ts +0 -7
- package/lib/commands/drift-detection/services/file-service.d.ts.map +0 -1
- package/lib/commands/drift-detection/services/file-service.js +0 -53
- package/lib/commands/drift-detection/services/file-service.js.map +0 -1
- package/lib/commands/gen2-migration/_step.d.ts +0 -17
- package/lib/commands/gen2-migration/_step.d.ts.map +0 -1
- package/lib/commands/gen2-migration/_step.js +0 -16
- package/lib/commands/gen2-migration/_step.js.map +0 -1
- package/lib/commands/gen2-migration/_validations.d.ts.map +0 -1
- package/lib/commands/gen2-migration/_validations.js.map +0 -1
- package/lib/commands/gen2-migration/cleanup.d.ts +0 -8
- package/lib/commands/gen2-migration/cleanup.d.ts.map +0 -1
- package/lib/commands/gen2-migration/cleanup.js +0 -21
- package/lib/commands/gen2-migration/cleanup.js.map +0 -1
- package/lib/commands/gen2-migration/clone.d.ts +0 -8
- package/lib/commands/gen2-migration/clone.d.ts.map +0 -1
- package/lib/commands/gen2-migration/clone.js +0 -21
- package/lib/commands/gen2-migration/clone.js.map +0 -1
- package/lib/commands/gen2-migration/generate/adapters/auth/index.d.ts +0 -24
- package/lib/commands/gen2-migration/generate/adapters/auth/index.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/adapters/auth/index.js +0 -297
- package/lib/commands/gen2-migration/generate/adapters/auth/index.js.map +0 -1
- package/lib/commands/gen2-migration/generate/adapters/auth/index.test.d.ts +0 -2
- package/lib/commands/gen2-migration/generate/adapters/auth/index.test.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/adapters/auth/index.test.js +0 -140
- package/lib/commands/gen2-migration/generate/adapters/auth/index.test.js.map +0 -1
- package/lib/commands/gen2-migration/generate/adapters/data/index.d.ts +0 -5
- package/lib/commands/gen2-migration/generate/adapters/data/index.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/adapters/data/index.js +0 -17
- package/lib/commands/gen2-migration/generate/adapters/data/index.js.map +0 -1
- package/lib/commands/gen2-migration/generate/adapters/functions/api-trigger-detector.d.ts +0 -10
- package/lib/commands/gen2-migration/generate/adapters/functions/api-trigger-detector.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/adapters/functions/api-trigger-detector.js +0 -43
- package/lib/commands/gen2-migration/generate/adapters/functions/api-trigger-detector.js.map +0 -1
- package/lib/commands/gen2-migration/generate/adapters/functions/api-trigger-detector.test.d.ts +0 -2
- package/lib/commands/gen2-migration/generate/adapters/functions/api-trigger-detector.test.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/adapters/functions/api-trigger-detector.test.js +0 -34
- package/lib/commands/gen2-migration/generate/adapters/functions/api-trigger-detector.test.js.map +0 -1
- package/lib/commands/gen2-migration/generate/adapters/functions/index.d.ts +0 -18
- package/lib/commands/gen2-migration/generate/adapters/functions/index.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/adapters/functions/index.js +0 -85
- package/lib/commands/gen2-migration/generate/adapters/functions/index.js.map +0 -1
- package/lib/commands/gen2-migration/generate/adapters/project/index.d.ts +0 -2
- package/lib/commands/gen2-migration/generate/adapters/project/index.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/adapters/project/index.js +0 -7
- package/lib/commands/gen2-migration/generate/adapters/project/index.js.map +0 -1
- package/lib/commands/gen2-migration/generate/adapters/storage/gen1_storage_codegen_adapter.d.ts +0 -31
- package/lib/commands/gen2-migration/generate/adapters/storage/gen1_storage_codegen_adapter.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/adapters/storage/gen1_storage_codegen_adapter.js +0 -34
- package/lib/commands/gen2-migration/generate/adapters/storage/gen1_storage_codegen_adapter.js.map +0 -1
- package/lib/commands/gen2-migration/generate/adapters/storage/gen1_storage_codegen_adapter.test.d.ts +0 -2
- package/lib/commands/gen2-migration/generate/adapters/storage/gen1_storage_codegen_adapter.test.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/adapters/storage/gen1_storage_codegen_adapter.test.js +0 -181
- package/lib/commands/gen2-migration/generate/adapters/storage/gen1_storage_codegen_adapter.test.js.map +0 -1
- package/lib/commands/gen2-migration/generate/adapters/storage/index.d.ts +0 -3
- package/lib/commands/gen2-migration/generate/adapters/storage/index.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/adapters/storage/index.js +0 -10
- package/lib/commands/gen2-migration/generate/adapters/storage/index.js.map +0 -1
- package/lib/commands/gen2-migration/generate/adapters/storage/storage_access.d.ts +0 -25
- package/lib/commands/gen2-migration/generate/adapters/storage/storage_access.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/adapters/storage/storage_access.js +0 -76
- package/lib/commands/gen2-migration/generate/adapters/storage/storage_access.js.map +0 -1
- package/lib/commands/gen2-migration/generate/adapters/storage/storage_access.test.d.ts +0 -2
- package/lib/commands/gen2-migration/generate/adapters/storage/storage_access.test.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/adapters/storage/storage_access.test.js +0 -125
- package/lib/commands/gen2-migration/generate/adapters/storage/storage_access.test.js.map +0 -1
- package/lib/commands/gen2-migration/generate/backend/synthesizer.d.ts +0 -91
- package/lib/commands/gen2-migration/generate/backend/synthesizer.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/backend/synthesizer.js +0 -1014
- package/lib/commands/gen2-migration/generate/backend/synthesizer.js.map +0 -1
- package/lib/commands/gen2-migration/generate/backend/synthesizer.test.d.ts +0 -2
- package/lib/commands/gen2-migration/generate/backend/synthesizer.test.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/backend/synthesizer.test.js +0 -777
- package/lib/commands/gen2-migration/generate/backend/synthesizer.test.js.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/amplify_stack_parser.d.ts +0 -14
- package/lib/commands/gen2-migration/generate/codegen-head/amplify_stack_parser.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/amplify_stack_parser.js +0 -82
- package/lib/commands/gen2-migration/generate/codegen-head/amplify_stack_parser.js.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/analytics.d.ts +0 -10
- package/lib/commands/gen2-migration/generate/codegen-head/analytics.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/analytics.js +0 -11
- package/lib/commands/gen2-migration/generate/codegen-head/analytics.js.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/api-cfn-access.d.ts +0 -7
- package/lib/commands/gen2-migration/generate/codegen-head/api-cfn-access.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/api-cfn-access.js +0 -80
- package/lib/commands/gen2-migration/generate/codegen-head/api-cfn-access.js.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/app_analytics_definition_fetcher.d.ts +0 -13
- package/lib/commands/gen2-migration/generate/codegen-head/app_analytics_definition_fetcher.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/app_analytics_definition_fetcher.js +0 -59
- package/lib/commands/gen2-migration/generate/codegen-head/app_analytics_definition_fetcher.js.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/app_auth_definition_fetcher.d.ts +0 -24
- package/lib/commands/gen2-migration/generate/codegen-head/app_auth_definition_fetcher.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/app_auth_definition_fetcher.js +0 -167
- package/lib/commands/gen2-migration/generate/codegen-head/app_auth_definition_fetcher.js.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/app_functions_definition_fetcher.d.ts +0 -21
- package/lib/commands/gen2-migration/generate/codegen-head/app_functions_definition_fetcher.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/app_functions_definition_fetcher.js +0 -135
- package/lib/commands/gen2-migration/generate/codegen-head/app_functions_definition_fetcher.js.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/app_storage_definition_fetcher.d.ts +0 -23
- package/lib/commands/gen2-migration/generate/codegen-head/app_storage_definition_fetcher.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/app_storage_definition_fetcher.js +0 -181
- package/lib/commands/gen2-migration/generate/codegen-head/app_storage_definition_fetcher.js.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/auth_access_analyzer.d.ts +0 -12
- package/lib/commands/gen2-migration/generate/codegen-head/auth_access_analyzer.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/auth_access_analyzer.js +0 -157
- package/lib/commands/gen2-migration/generate/codegen-head/auth_access_analyzer.js.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/backend_downloader.d.ts +0 -10
- package/lib/commands/gen2-migration/generate/codegen-head/backend_downloader.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/backend_downloader.js +0 -48
- package/lib/commands/gen2-migration/generate/codegen-head/backend_downloader.js.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/backend_environment_selector.d.ts +0 -11
- package/lib/commands/gen2-migration/generate/codegen-head/backend_environment_selector.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/backend_environment_selector.js +0 -38
- package/lib/commands/gen2-migration/generate/codegen-head/backend_environment_selector.js.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/command-handlers.d.ts +0 -13
- package/lib/commands/gen2-migration/generate/codegen-head/command-handlers.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/command-handlers.js +0 -498
- package/lib/commands/gen2-migration/generate/codegen-head/command-handlers.js.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/data_definition_fetcher.d.ts +0 -47
- package/lib/commands/gen2-migration/generate/codegen-head/data_definition_fetcher.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/data_definition_fetcher.js +0 -222
- package/lib/commands/gen2-migration/generate/codegen-head/data_definition_fetcher.js.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/data_model_access_parser.d.ts +0 -10
- package/lib/commands/gen2-migration/generate/codegen-head/data_model_access_parser.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/data_model_access_parser.js +0 -59
- package/lib/commands/gen2-migration/generate/codegen-head/data_model_access_parser.js.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/data_model_access_parser.test.d.ts +0 -2
- package/lib/commands/gen2-migration/generate/codegen-head/data_model_access_parser.test.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/data_model_access_parser.test.js +0 -90
- package/lib/commands/gen2-migration/generate/codegen-head/data_model_access_parser.test.js.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/directory_exists.d.ts +0 -2
- package/lib/commands/gen2-migration/generate/codegen-head/directory_exists.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/directory_exists.js.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/dynamodb_cfn_access_parser.d.ts +0 -14
- package/lib/commands/gen2-migration/generate/codegen-head/dynamodb_cfn_access_parser.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/dynamodb_cfn_access_parser.js +0 -100
- package/lib/commands/gen2-migration/generate/codegen-head/dynamodb_cfn_access_parser.js.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/dynamodb_cfn_access_parser.test.d.ts +0 -2
- package/lib/commands/gen2-migration/generate/codegen-head/dynamodb_cfn_access_parser.test.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/dynamodb_cfn_access_parser.test.js +0 -69
- package/lib/commands/gen2-migration/generate/codegen-head/dynamodb_cfn_access_parser.test.js.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/format.d.ts +0 -8
- package/lib/commands/gen2-migration/generate/codegen-head/format.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/format.js +0 -66
- package/lib/commands/gen2-migration/generate/codegen-head/format.js.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/logger.d.ts +0 -15
- package/lib/commands/gen2-migration/generate/codegen-head/logger.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/logger.js +0 -14
- package/lib/commands/gen2-migration/generate/codegen-head/logger.js.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/printer.d.ts +0 -26
- package/lib/commands/gen2-migration/generate/codegen-head/printer.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/printer.js +0 -103
- package/lib/commands/gen2-migration/generate/codegen-head/printer.js.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/s3_cfn_access_parser.d.ts +0 -13
- package/lib/commands/gen2-migration/generate/codegen-head/s3_cfn_access_parser.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/s3_cfn_access_parser.js +0 -66
- package/lib/commands/gen2-migration/generate/codegen-head/s3_cfn_access_parser.js.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/s3_cfn_access_parser.test.d.ts +0 -2
- package/lib/commands/gen2-migration/generate/codegen-head/s3_cfn_access_parser.test.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/codegen-head/s3_cfn_access_parser.test.js +0 -97
- package/lib/commands/gen2-migration/generate/codegen-head/s3_cfn_access_parser.test.js.map +0 -1
- package/lib/commands/gen2-migration/generate/core/migration-pipeline.d.ts +0 -26
- package/lib/commands/gen2-migration/generate/core/migration-pipeline.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/core/migration-pipeline.js +0 -269
- package/lib/commands/gen2-migration/generate/core/migration-pipeline.js.map +0 -1
- package/lib/commands/gen2-migration/generate/custom-resources/generator/backend-updater.d.ts +0 -7
- package/lib/commands/gen2-migration/generate/custom-resources/generator/backend-updater.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/custom-resources/generator/backend-updater.js +0 -84
- package/lib/commands/gen2-migration/generate/custom-resources/generator/backend-updater.js.map +0 -1
- package/lib/commands/gen2-migration/generate/custom-resources/generator/dependency-merger.d.ts +0 -8
- package/lib/commands/gen2-migration/generate/custom-resources/generator/dependency-merger.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/custom-resources/generator/dependency-merger.js +0 -105
- package/lib/commands/gen2-migration/generate/custom-resources/generator/dependency-merger.js.map +0 -1
- package/lib/commands/gen2-migration/generate/custom-resources/generator/file-converter.d.ts +0 -5
- package/lib/commands/gen2-migration/generate/custom-resources/generator/file-converter.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/custom-resources/generator/file-converter.js +0 -88
- package/lib/commands/gen2-migration/generate/custom-resources/generator/file-converter.js.map +0 -1
- package/lib/commands/gen2-migration/generate/custom-resources/generator/gen2-file-generator.d.ts +0 -8
- package/lib/commands/gen2-migration/generate/custom-resources/generator/gen2-file-generator.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/custom-resources/generator/gen2-file-generator.js +0 -36
- package/lib/commands/gen2-migration/generate/custom-resources/generator/gen2-file-generator.js.map +0 -1
- package/lib/commands/gen2-migration/generate/custom-resources/parser/cdk-stack-parser.d.ts +0 -5
- package/lib/commands/gen2-migration/generate/custom-resources/parser/cdk-stack-parser.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/custom-resources/parser/cdk-stack-parser.js +0 -81
- package/lib/commands/gen2-migration/generate/custom-resources/parser/cdk-stack-parser.js.map +0 -1
- package/lib/commands/gen2-migration/generate/custom-resources/parser/pattern-detector.d.ts +0 -15
- package/lib/commands/gen2-migration/generate/custom-resources/parser/pattern-detector.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/custom-resources/parser/pattern-detector.js +0 -35
- package/lib/commands/gen2-migration/generate/custom-resources/parser/pattern-detector.js.map +0 -1
- package/lib/commands/gen2-migration/generate/custom-resources/scanner/custom-resource-scanner.d.ts +0 -5
- package/lib/commands/gen2-migration/generate/custom-resources/scanner/custom-resource-scanner.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/custom-resources/scanner/custom-resource-scanner.js +0 -66
- package/lib/commands/gen2-migration/generate/custom-resources/scanner/custom-resource-scanner.js.map +0 -1
- package/lib/commands/gen2-migration/generate/custom-resources/transformer/amplify-helper-transformer.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/custom-resources/transformer/amplify-helper-transformer.js +0 -178
- package/lib/commands/gen2-migration/generate/custom-resources/transformer/amplify-helper-transformer.js.map +0 -1
- package/lib/commands/gen2-migration/generate/custom-resources/types.d.ts +0 -38
- package/lib/commands/gen2-migration/generate/custom-resources/types.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/custom-resources/types.js.map +0 -1
- package/lib/commands/gen2-migration/generate/generators/analytics/index.d.ts +0 -9
- package/lib/commands/gen2-migration/generate/generators/analytics/index.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/generators/analytics/index.js +0 -40
- package/lib/commands/gen2-migration/generate/generators/analytics/index.js.map +0 -1
- package/lib/commands/gen2-migration/generate/generators/auth/index.d.ts +0 -107
- package/lib/commands/gen2-migration/generate/generators/auth/index.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/generators/auth/index.js +0 -313
- package/lib/commands/gen2-migration/generate/generators/auth/index.js.map +0 -1
- package/lib/commands/gen2-migration/generate/generators/auth/index.test.d.ts +0 -2
- package/lib/commands/gen2-migration/generate/generators/auth/index.test.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/generators/auth/index.test.js +0 -566
- package/lib/commands/gen2-migration/generate/generators/auth/index.test.js.map +0 -1
- package/lib/commands/gen2-migration/generate/generators/data/index.d.ts +0 -35
- package/lib/commands/gen2-migration/generate/generators/data/index.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/generators/data/index.js +0 -185
- package/lib/commands/gen2-migration/generate/generators/data/index.js.map +0 -1
- package/lib/commands/gen2-migration/generate/generators/data/index.test.d.ts +0 -2
- package/lib/commands/gen2-migration/generate/generators/data/index.test.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/generators/data/index.test.js +0 -47
- package/lib/commands/gen2-migration/generate/generators/data/index.test.js.map +0 -1
- package/lib/commands/gen2-migration/generate/generators/functions/index.d.ts +0 -53
- package/lib/commands/gen2-migration/generate/generators/functions/index.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/generators/functions/index.js +0 -125
- package/lib/commands/gen2-migration/generate/generators/functions/index.js.map +0 -1
- package/lib/commands/gen2-migration/generate/generators/functions/lambda.d.ts +0 -6
- package/lib/commands/gen2-migration/generate/generators/functions/lambda.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/generators/functions/lambda.js +0 -16
- package/lib/commands/gen2-migration/generate/generators/functions/lambda.js.map +0 -1
- package/lib/commands/gen2-migration/generate/generators/functions/lambda_env_generator.d.ts +0 -3
- package/lib/commands/gen2-migration/generate/generators/functions/lambda_env_generator.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/generators/functions/lambda_env_generator.js +0 -106
- package/lib/commands/gen2-migration/generate/generators/functions/lambda_env_generator.js.map +0 -1
- package/lib/commands/gen2-migration/generate/generators/functions/lambda_env_generator.test.d.ts +0 -2
- package/lib/commands/gen2-migration/generate/generators/functions/lambda_env_generator.test.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/generators/functions/lambda_env_generator.test.js +0 -120
- package/lib/commands/gen2-migration/generate/generators/functions/lambda_env_generator.test.js.map +0 -1
- package/lib/commands/gen2-migration/generate/generators/storage/access.d.ts +0 -4
- package/lib/commands/gen2-migration/generate/generators/storage/access.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/generators/storage/access.js +0 -73
- package/lib/commands/gen2-migration/generate/generators/storage/access.js.map +0 -1
- package/lib/commands/gen2-migration/generate/generators/storage/index.d.ts +0 -37
- package/lib/commands/gen2-migration/generate/generators/storage/index.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/generators/storage/index.js +0 -78
- package/lib/commands/gen2-migration/generate/generators/storage/index.js.map +0 -1
- package/lib/commands/gen2-migration/generate/npm_package/renderer.d.ts +0 -27
- package/lib/commands/gen2-migration/generate/npm_package/renderer.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/npm_package/renderer.js +0 -28
- package/lib/commands/gen2-migration/generate/npm_package/renderer.js.map +0 -1
- package/lib/commands/gen2-migration/generate/render_pipeline.d.ts +0 -9
- package/lib/commands/gen2-migration/generate/render_pipeline.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/render_pipeline.js +0 -15
- package/lib/commands/gen2-migration/generate/render_pipeline.js.map +0 -1
- package/lib/commands/gen2-migration/generate/renderers/ensure_directory.d.ts +0 -7
- package/lib/commands/gen2-migration/generate/renderers/ensure_directory.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/renderers/ensure_directory.js +0 -17
- package/lib/commands/gen2-migration/generate/renderers/ensure_directory.js.map +0 -1
- package/lib/commands/gen2-migration/generate/renderers/package_json.d.ts +0 -8
- package/lib/commands/gen2-migration/generate/renderers/package_json.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/renderers/package_json.js +0 -15
- package/lib/commands/gen2-migration/generate/renderers/package_json.js.map +0 -1
- package/lib/commands/gen2-migration/generate/renderers/typescript_block_node.d.ts +0 -11
- package/lib/commands/gen2-migration/generate/renderers/typescript_block_node.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/renderers/typescript_block_node.js +0 -22
- package/lib/commands/gen2-migration/generate/renderers/typescript_block_node.js.map +0 -1
- package/lib/commands/gen2-migration/generate/resource/resource.d.ts +0 -20
- package/lib/commands/gen2-migration/generate/resource/resource.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/resource/resource.js +0 -60
- package/lib/commands/gen2-migration/generate/resource/resource.js.map +0 -1
- package/lib/commands/gen2-migration/generate/test_utils/import_regex.d.ts +0 -2
- package/lib/commands/gen2-migration/generate/test_utils/import_regex.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/test_utils/import_regex.js +0 -6
- package/lib/commands/gen2-migration/generate/test_utils/import_regex.js.map +0 -1
- package/lib/commands/gen2-migration/generate/test_utils/ts_node_printer.d.ts +0 -4
- package/lib/commands/gen2-migration/generate/test_utils/ts_node_printer.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/test_utils/ts_node_printer.js +0 -22
- package/lib/commands/gen2-migration/generate/test_utils/ts_node_printer.js.map +0 -1
- package/lib/commands/gen2-migration/generate/todo_error.d.ts +0 -3
- package/lib/commands/gen2-migration/generate/todo_error.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/todo_error.js +0 -11
- package/lib/commands/gen2-migration/generate/todo_error.js.map +0 -1
- package/lib/commands/gen2-migration/generate/ts_factory_utils.d.ts +0 -3
- package/lib/commands/gen2-migration/generate/ts_factory_utils.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/ts_factory_utils.js +0 -10
- package/lib/commands/gen2-migration/generate/ts_factory_utils.js.map +0 -1
- package/lib/commands/gen2-migration/generate/types.d.ts +0 -4
- package/lib/commands/gen2-migration/generate/types.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/types.js.map +0 -1
- package/lib/commands/gen2-migration/generate/unsupported/cdk-from-cfn.d.ts +0 -26
- package/lib/commands/gen2-migration/generate/unsupported/cdk-from-cfn.d.ts.map +0 -1
- package/lib/commands/gen2-migration/generate/unsupported/cdk-from-cfn.js.map +0 -1
- package/lib/commands/gen2-migration/refactor/cfn-stack-refactor-updater.d.ts +0 -5
- package/lib/commands/gen2-migration/refactor/cfn-stack-refactor-updater.d.ts.map +0 -1
- package/lib/commands/gen2-migration/refactor/cfn-stack-refactor-updater.js +0 -76
- package/lib/commands/gen2-migration/refactor/cfn-stack-refactor-updater.js.map +0 -1
- package/lib/commands/gen2-migration/refactor/cfn-stack-updater.d.ts +0 -6
- package/lib/commands/gen2-migration/refactor/cfn-stack-updater.d.ts.map +0 -1
- package/lib/commands/gen2-migration/refactor/cfn-stack-updater.js +0 -52
- package/lib/commands/gen2-migration/refactor/cfn-stack-updater.js.map +0 -1
- package/lib/commands/gen2-migration/refactor/generators/category-template-generator.d.ts +0 -40
- package/lib/commands/gen2-migration/refactor/generators/category-template-generator.d.ts.map +0 -1
- package/lib/commands/gen2-migration/refactor/generators/category-template-generator.js +0 -321
- package/lib/commands/gen2-migration/refactor/generators/category-template-generator.js.map +0 -1
- package/lib/commands/gen2-migration/refactor/generators/template-generator.d.ts +0 -48
- package/lib/commands/gen2-migration/refactor/generators/template-generator.d.ts.map +0 -1
- package/lib/commands/gen2-migration/refactor/generators/template-generator.js +0 -513
- package/lib/commands/gen2-migration/refactor/generators/template-generator.js.map +0 -1
- package/lib/commands/gen2-migration/refactor/refactor.d.ts +0 -19
- package/lib/commands/gen2-migration/refactor/refactor.d.ts.map +0 -1
- package/lib/commands/gen2-migration/refactor/refactor.js +0 -241
- package/lib/commands/gen2-migration/refactor/refactor.js.map +0 -1
- package/lib/commands/gen2-migration/refactor/types.d.ts +0 -128
- package/lib/commands/gen2-migration/refactor/types.d.ts.map +0 -1
- package/lib/commands/gen2-migration/refactor/types.js +0 -59
- package/lib/commands/gen2-migration/refactor/types.js.map +0 -1
- package/lib/commands/gen2-migration/shift.d.ts +0 -8
- package/lib/commands/gen2-migration/shift.d.ts.map +0 -1
- package/lib/commands/gen2-migration/shift.js +0 -21
- package/lib/commands/gen2-migration/shift.js.map +0 -1
- package/lib/commands/gen2-migration/stateful-resources.d.ts.map +0 -1
- package/lib/commands/gen2-migration/stateful-resources.js.map +0 -1
- /package/lib/commands/gen2-migration/{stateful-resources.d.ts → _infra/stateful-resources.d.ts} +0 -0
- /package/lib/commands/gen2-migration/{stateful-resources.js → _infra/stateful-resources.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth-user-pool-groups.assessor.js","sourceRoot":"","sources":["../../../../../src/commands/gen2-migration/assess/auth/auth-user-pool-groups.assessor.ts"],"names":[],"mappings":";;;AACA,8CAAkF;AAClF,6DAA6F;AAM7F,MAAa,0BAA0B;IACrC,YAAoC,OAAgB,EAAmB,QAA4B;QAA/D,YAAO,GAAP,OAAO,CAAS;QAAmB,aAAQ,GAAR,QAAQ,CAAoB;IAAG,CAAC;IAKhG,MAAM,CAAC,UAAsB;QAClC,UAAU,CAAC,cAAc,CAAC,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAA,sBAAS,GAAE,EAAE,QAAQ,EAAE,IAAA,sBAAS,GAAE,EAAE,CAAC,CAAC;QAErG,MAAM,aAAa,GAAG,QAAQ,IAAI,CAAC,QAAQ,CAAC,YAAY,cAAc,CAAC;QAEvE,IAAI,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE,CAAC;YAC3C,UAAU,CAAC,aAAa,CAAC;gBACvB,OAAO,EAAE,EAAE,IAAI,EAAE,yBAAc,CAAC,SAAS,EAAE,IAAI,EAAE,aAAa,EAAE;gBAChE,QAAQ,EAAE,IAAA,wBAAW,EAAC,qCAAqC,CAAC;gBAC5D,QAAQ,EAAE,IAAA,0BAAa,GAAE;aAC1B,CAAC,CAAC;QACL,CAAC;IACH,CAAC;CACF;AAnBD,gEAmBC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Assessor } from '../assessor';
|
|
2
|
+
import { Assessment } from '../assessment';
|
|
3
|
+
import { Gen1App, DiscoveredResource } from '../../generate/_infra/gen1-app';
|
|
4
|
+
export declare class FunctionAssessor implements Assessor {
|
|
5
|
+
private readonly gen1App;
|
|
6
|
+
private readonly resource;
|
|
7
|
+
constructor(gen1App: Gen1App, resource: DiscoveredResource);
|
|
8
|
+
record(assessment: Assessment): void;
|
|
9
|
+
private isNonJsRuntime;
|
|
10
|
+
private hasCustomPolicies;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=function.assessor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"function.assessor.d.ts","sourceRoot":"","sources":["../../../../../src/commands/gen2-migration/assess/function/function.assessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,UAAU,EAAyC,MAAM,eAAe,CAAC;AAClF,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAkB,MAAM,gCAAgC,CAAC;AAM7F,qBAAa,gBAAiB,YAAW,QAAQ;IAC5B,OAAO,CAAC,QAAQ,CAAC,OAAO;IAAW,OAAO,CAAC,QAAQ,CAAC,QAAQ;gBAA3C,OAAO,EAAE,OAAO,EAAmB,QAAQ,EAAE,kBAAkB;IAK5F,MAAM,CAAC,UAAU,EAAE,UAAU,GAAG,IAAI;IAyB3C,OAAO,CAAC,cAAc;IAQtB,OAAO,CAAC,iBAAiB;CAO1B"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FunctionAssessor = void 0;
|
|
4
|
+
const assessment_1 = require("../assessment");
|
|
5
|
+
const gen1_app_1 = require("../../generate/_infra/gen1-app");
|
|
6
|
+
class FunctionAssessor {
|
|
7
|
+
constructor(gen1App, resource) {
|
|
8
|
+
this.gen1App = gen1App;
|
|
9
|
+
this.resource = resource;
|
|
10
|
+
}
|
|
11
|
+
record(assessment) {
|
|
12
|
+
const templatePath = `function/${this.resource.resourceName}/${this.resource.resourceName}-cloudformation-template.json`;
|
|
13
|
+
const template = this.gen1App.json(templatePath);
|
|
14
|
+
const runtime = template.Resources.LambdaFunction.Properties.Runtime;
|
|
15
|
+
assessment.recordResource({
|
|
16
|
+
resource: this.resource,
|
|
17
|
+
generate: this.isNonJsRuntime(runtime) ? (0, assessment_1.unsupported)('requires adding code after generate') : (0, assessment_1.supported)(),
|
|
18
|
+
refactor: (0, assessment_1.notApplicable)(),
|
|
19
|
+
});
|
|
20
|
+
const customPoliciesPath = `function/${this.resource.resourceName}/custom-policies.json`;
|
|
21
|
+
if (this.hasCustomPolicies(customPoliciesPath)) {
|
|
22
|
+
assessment.recordFeature({
|
|
23
|
+
feature: { name: gen1_app_1.KNOWN_FEATURES.CUSTOM_FUNCTION_POLICIES, path: customPoliciesPath },
|
|
24
|
+
generate: (0, assessment_1.unsupported)('requires adding code after generate'),
|
|
25
|
+
refactor: (0, assessment_1.notApplicable)(),
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
isNonJsRuntime(runtime) {
|
|
30
|
+
return !runtime.startsWith('nodejs');
|
|
31
|
+
}
|
|
32
|
+
hasCustomPolicies(filePath) {
|
|
33
|
+
if (!this.gen1App.fileExists(filePath))
|
|
34
|
+
return false;
|
|
35
|
+
const policies = this.gen1App.json(filePath);
|
|
36
|
+
return policies.some((p) => p.Action.length > 0 || p.Resource.length > 0);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
exports.FunctionAssessor = FunctionAssessor;
|
|
40
|
+
//# sourceMappingURL=function.assessor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"function.assessor.js","sourceRoot":"","sources":["../../../../../src/commands/gen2-migration/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AU,CAAC,QAAQ,CAAC,CAAC;IACvC,CAAC;IAMO,iBAAiB,CAAC,QAAgB;QACxC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC;YAAE,OAAO,KAAK,CAAC;QAErD,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAE7C,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IACjF,CAAC;CACF;AA9CD,4CA8CC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Assessor } from '../assessor';
|
|
2
|
+
import { Assessment } from '../assessment';
|
|
3
|
+
import { Gen1App, DiscoveredResource } from '../../generate/_infra/gen1-app';
|
|
4
|
+
export declare class GeoFenceCollectionAssessor implements Assessor {
|
|
5
|
+
private readonly gen1App;
|
|
6
|
+
private readonly resource;
|
|
7
|
+
constructor(gen1App: Gen1App, resource: DiscoveredResource);
|
|
8
|
+
record(assessment: Assessment): void;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=geo-geofence-collection.assessor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"geo-geofence-collection.assessor.d.ts","sourceRoot":"","sources":["../../../../../src/commands/gen2-migration/assess/geo/geo-geofence-collection.assessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,UAAU,EAA0B,MAAM,eAAe,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAK7E,qBAAa,0BAA2B,YAAW,QAAQ;IACtC,OAAO,CAAC,QAAQ,CAAC,OAAO;IAAW,OAAO,CAAC,QAAQ,CAAC,QAAQ;gBAA3C,OAAO,EAAE,OAAO,EAAmB,QAAQ,EAAE,kBAAkB;IAK5F,MAAM,CAAC,UAAU,EAAE,UAAU,GAAG,IAAI;CAO5C"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GeoFenceCollectionAssessor = void 0;
|
|
4
|
+
const assessment_1 = require("../assessment");
|
|
5
|
+
class GeoFenceCollectionAssessor {
|
|
6
|
+
constructor(gen1App, resource) {
|
|
7
|
+
this.gen1App = gen1App;
|
|
8
|
+
this.resource = resource;
|
|
9
|
+
}
|
|
10
|
+
record(assessment) {
|
|
11
|
+
assessment.recordResource({
|
|
12
|
+
resource: this.resource,
|
|
13
|
+
generate: (0, assessment_1.supported)(),
|
|
14
|
+
refactor: (0, assessment_1.unsupported)('requires manual data replication'),
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.GeoFenceCollectionAssessor = GeoFenceCollectionAssessor;
|
|
19
|
+
//# sourceMappingURL=geo-geofence-collection.assessor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"geo-geofence-collection.assessor.js","sourceRoot":"","sources":["../../../../../src/commands/gen2-migration/assess/geo/geo-geofence-collection.assessor.ts"],"names":[],"mappings":";;;AACA,8CAAmE;AAMnE,MAAa,0BAA0B;IACrC,YAAoC,OAAgB,EAAmB,QAA4B;QAA/D,YAAO,GAAP,OAAO,CAAS;QAAmB,aAAQ,GAAR,QAAQ,CAAoB;IAAG,CAAC;IAKhG,MAAM,CAAC,UAAsB;QAClC,UAAU,CAAC,cAAc,CAAC;YACxB,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,QAAQ,EAAE,IAAA,sBAAS,GAAE;YACrB,QAAQ,EAAE,IAAA,wBAAW,EAAC,kCAAkC,CAAC;SAC1D,CAAC,CAAC;IACL,CAAC;CACF;AAbD,gEAaC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Assessor } from '../assessor';
|
|
2
|
+
import { Assessment } from '../assessment';
|
|
3
|
+
import { Gen1App, DiscoveredResource } from '../../generate/_infra/gen1-app';
|
|
4
|
+
export declare class GeoMapAssessor implements Assessor {
|
|
5
|
+
private readonly gen1App;
|
|
6
|
+
private readonly resource;
|
|
7
|
+
constructor(gen1App: Gen1App, resource: DiscoveredResource);
|
|
8
|
+
record(assessment: Assessment): void;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=geo-map.assessor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"geo-map.assessor.d.ts","sourceRoot":"","sources":["../../../../../src/commands/gen2-migration/assess/geo/geo-map.assessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,UAAU,EAAa,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAK7E,qBAAa,cAAe,YAAW,QAAQ;IAC1B,OAAO,CAAC,QAAQ,CAAC,OAAO;IAAW,OAAO,CAAC,QAAQ,CAAC,QAAQ;gBAA3C,OAAO,EAAE,OAAO,EAAmB,QAAQ,EAAE,kBAAkB;IAK5F,MAAM,CAAC,UAAU,EAAE,UAAU,GAAG,IAAI;CAG5C"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GeoMapAssessor = void 0;
|
|
4
|
+
const assessment_1 = require("../assessment");
|
|
5
|
+
class GeoMapAssessor {
|
|
6
|
+
constructor(gen1App, resource) {
|
|
7
|
+
this.gen1App = gen1App;
|
|
8
|
+
this.resource = resource;
|
|
9
|
+
}
|
|
10
|
+
record(assessment) {
|
|
11
|
+
assessment.recordResource({ resource: this.resource, generate: (0, assessment_1.supported)(), refactor: (0, assessment_1.supported)() });
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.GeoMapAssessor = GeoMapAssessor;
|
|
15
|
+
//# sourceMappingURL=geo-map.assessor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"geo-map.assessor.js","sourceRoot":"","sources":["../../../../../src/commands/gen2-migration/assess/geo/geo-map.assessor.ts"],"names":[],"mappings":";;;AACA,8CAAsD;AAMtD,MAAa,cAAc;IACzB,YAAoC,OAAgB,EAAmB,QAA4B;QAA/D,YAAO,GAAP,OAAO,CAAS;QAAmB,aAAQ,GAAR,QAAQ,CAAoB;IAAG,CAAC;IAKhG,MAAM,CAAC,UAAsB;QAClC,UAAU,CAAC,cAAc,CAAC,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAA,sBAAS,GAAE,EAAE,QAAQ,EAAE,IAAA,sBAAS,GAAE,EAAE,CAAC,CAAC;IACvG,CAAC;CACF;AATD,wCASC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Assessor } from '../assessor';
|
|
2
|
+
import { Assessment } from '../assessment';
|
|
3
|
+
import { Gen1App, DiscoveredResource } from '../../generate/_infra/gen1-app';
|
|
4
|
+
export declare class GeoPlaceIndexAssessor implements Assessor {
|
|
5
|
+
private readonly gen1App;
|
|
6
|
+
private readonly resource;
|
|
7
|
+
constructor(gen1App: Gen1App, resource: DiscoveredResource);
|
|
8
|
+
record(assessment: Assessment): void;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=geo-place-index.assessor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"geo-place-index.assessor.d.ts","sourceRoot":"","sources":["../../../../../src/commands/gen2-migration/assess/geo/geo-place-index.assessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,UAAU,EAAa,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAK7E,qBAAa,qBAAsB,YAAW,QAAQ;IACjC,OAAO,CAAC,QAAQ,CAAC,OAAO;IAAW,OAAO,CAAC,QAAQ,CAAC,QAAQ;gBAA3C,OAAO,EAAE,OAAO,EAAmB,QAAQ,EAAE,kBAAkB;IAK5F,MAAM,CAAC,UAAU,EAAE,UAAU,GAAG,IAAI;CAG5C"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GeoPlaceIndexAssessor = void 0;
|
|
4
|
+
const assessment_1 = require("../assessment");
|
|
5
|
+
class GeoPlaceIndexAssessor {
|
|
6
|
+
constructor(gen1App, resource) {
|
|
7
|
+
this.gen1App = gen1App;
|
|
8
|
+
this.resource = resource;
|
|
9
|
+
}
|
|
10
|
+
record(assessment) {
|
|
11
|
+
assessment.recordResource({ resource: this.resource, generate: (0, assessment_1.supported)(), refactor: (0, assessment_1.supported)() });
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.GeoPlaceIndexAssessor = GeoPlaceIndexAssessor;
|
|
15
|
+
//# sourceMappingURL=geo-place-index.assessor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"geo-place-index.assessor.js","sourceRoot":"","sources":["../../../../../src/commands/gen2-migration/assess/geo/geo-place-index.assessor.ts"],"names":[],"mappings":";;;AACA,8CAAsD;AAMtD,MAAa,qBAAqB;IAChC,YAAoC,OAAgB,EAAmB,QAA4B;QAA/D,YAAO,GAAP,OAAO,CAAS;QAAmB,aAAQ,GAAR,QAAQ,CAAoB;IAAG,CAAC;IAKhG,MAAM,CAAC,UAAsB;QAClC,UAAU,CAAC,cAAc,CAAC,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAA,sBAAS,GAAE,EAAE,QAAQ,EAAE,IAAA,sBAAS,GAAE,EAAE,CAAC,CAAC;IACvG,CAAC;CACF;AATD,sDASC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Assessor } from '../assessor';
|
|
2
|
+
import { Assessment } from '../assessment';
|
|
3
|
+
import { Gen1App, DiscoveredResource } from '../../generate/_infra/gen1-app';
|
|
4
|
+
export declare class DynamoDBAssessor implements Assessor {
|
|
5
|
+
private readonly gen1App;
|
|
6
|
+
private readonly resource;
|
|
7
|
+
constructor(gen1App: Gen1App, resource: DiscoveredResource);
|
|
8
|
+
record(assessment: Assessment): void;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=dynamodb.assessor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dynamodb.assessor.d.ts","sourceRoot":"","sources":["../../../../../src/commands/gen2-migration/assess/storage/dynamodb.assessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,UAAU,EAAyC,MAAM,eAAe,CAAC;AAClF,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAkB,MAAM,gCAAgC,CAAC;AAK7F,qBAAa,gBAAiB,YAAW,QAAQ;IAC5B,OAAO,CAAC,QAAQ,CAAC,OAAO;IAAW,OAAO,CAAC,QAAQ,CAAC,QAAQ;gBAA3C,OAAO,EAAE,OAAO,EAAmB,QAAQ,EAAE,kBAAkB;IAK5F,MAAM,CAAC,UAAU,EAAE,UAAU,GAAG,IAAI;CAc5C"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DynamoDBAssessor = void 0;
|
|
4
|
+
const assessment_1 = require("../assessment");
|
|
5
|
+
const gen1_app_1 = require("../../generate/_infra/gen1-app");
|
|
6
|
+
class DynamoDBAssessor {
|
|
7
|
+
constructor(gen1App, resource) {
|
|
8
|
+
this.gen1App = gen1App;
|
|
9
|
+
this.resource = resource;
|
|
10
|
+
}
|
|
11
|
+
record(assessment) {
|
|
12
|
+
this.gen1App.ensureCliInputs(this.resource.category, this.resource.resourceName);
|
|
13
|
+
assessment.recordResource({ resource: this.resource, generate: (0, assessment_1.supported)(), refactor: (0, assessment_1.supported)() });
|
|
14
|
+
const overridesPath = `storage/${this.resource.resourceName}/override.ts`;
|
|
15
|
+
if (this.gen1App.fileExists(overridesPath)) {
|
|
16
|
+
assessment.recordFeature({
|
|
17
|
+
feature: { name: gen1_app_1.KNOWN_FEATURES.OVERRIDES, path: overridesPath },
|
|
18
|
+
generate: (0, assessment_1.unsupported)('requires adding code after generate'),
|
|
19
|
+
refactor: (0, assessment_1.notApplicable)(),
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.DynamoDBAssessor = DynamoDBAssessor;
|
|
25
|
+
//# sourceMappingURL=dynamodb.assessor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dynamodb.assessor.js","sourceRoot":"","sources":["../../../../../src/commands/gen2-migration/assess/storage/dynamodb.assessor.ts"],"names":[],"mappings":";;;AACA,8CAAkF;AAClF,6DAA6F;AAK7F,MAAa,gBAAgB;IAC3B,YAAoC,OAAgB,EAAmB,QAA4B;QAA/D,YAAO,GAAP,OAAO,CAAS;QAAmB,aAAQ,GAAR,QAAQ,CAAoB;IAAG,CAAC;IAKhG,MAAM,CAAC,UAAsB;QAClC,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;QACjF,UAAU,CAAC,cAAc,CAAC,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAA,sBAAS,GAAE,EAAE,QAAQ,EAAE,IAAA,sBAAS,GAAE,EAAE,CAAC,CAAC;QAErG,MAAM,aAAa,GAAG,WAAW,IAAI,CAAC,QAAQ,CAAC,YAAY,cAAc,CAAC;QAE1E,IAAI,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE,CAAC;YAC3C,UAAU,CAAC,aAAa,CAAC;gBACvB,OAAO,EAAE,EAAE,IAAI,EAAE,yBAAc,CAAC,SAAS,EAAE,IAAI,EAAE,aAAa,EAAE;gBAChE,QAAQ,EAAE,IAAA,wBAAW,EAAC,qCAAqC,CAAC;gBAC5D,QAAQ,EAAE,IAAA,0BAAa,GAAE;aAC1B,CAAC,CAAC;QACL,CAAC;IACH,CAAC;CACF;AApBD,4CAoBC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Assessor } from '../assessor';
|
|
2
|
+
import { Assessment } from '../assessment';
|
|
3
|
+
import { Gen1App, DiscoveredResource } from '../../generate/_infra/gen1-app';
|
|
4
|
+
export declare class S3Assessor implements Assessor {
|
|
5
|
+
private readonly gen1App;
|
|
6
|
+
private readonly resource;
|
|
7
|
+
constructor(gen1App: Gen1App, resource: DiscoveredResource);
|
|
8
|
+
record(assessment: Assessment): void;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=s3.assessor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"s3.assessor.d.ts","sourceRoot":"","sources":["../../../../../src/commands/gen2-migration/assess/storage/s3.assessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,UAAU,EAAyC,MAAM,eAAe,CAAC;AAClF,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAkB,MAAM,gCAAgC,CAAC;AAM7F,qBAAa,UAAW,YAAW,QAAQ;IACtB,OAAO,CAAC,QAAQ,CAAC,OAAO;IAAW,OAAO,CAAC,QAAQ,CAAC,QAAQ;gBAA3C,OAAO,EAAE,OAAO,EAAmB,QAAQ,EAAE,kBAAkB;IAK5F,MAAM,CAAC,UAAU,EAAE,UAAU,GAAG,IAAI;CAc5C"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.S3Assessor = void 0;
|
|
4
|
+
const assessment_1 = require("../assessment");
|
|
5
|
+
const gen1_app_1 = require("../../generate/_infra/gen1-app");
|
|
6
|
+
class S3Assessor {
|
|
7
|
+
constructor(gen1App, resource) {
|
|
8
|
+
this.gen1App = gen1App;
|
|
9
|
+
this.resource = resource;
|
|
10
|
+
}
|
|
11
|
+
record(assessment) {
|
|
12
|
+
this.gen1App.ensureCliInputs(this.resource.category, this.resource.resourceName);
|
|
13
|
+
assessment.recordResource({ resource: this.resource, generate: (0, assessment_1.supported)(), refactor: (0, assessment_1.supported)() });
|
|
14
|
+
const overridesPath = `storage/${this.resource.resourceName}/override.ts`;
|
|
15
|
+
if (this.gen1App.fileExists(overridesPath)) {
|
|
16
|
+
assessment.recordFeature({
|
|
17
|
+
feature: { name: gen1_app_1.KNOWN_FEATURES.OVERRIDES, path: overridesPath },
|
|
18
|
+
generate: (0, assessment_1.unsupported)('requires adding code after generate'),
|
|
19
|
+
refactor: (0, assessment_1.notApplicable)(),
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.S3Assessor = S3Assessor;
|
|
25
|
+
//# sourceMappingURL=s3.assessor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"s3.assessor.js","sourceRoot":"","sources":["../../../../../src/commands/gen2-migration/assess/storage/s3.assessor.ts"],"names":[],"mappings":";;;AACA,8CAAkF;AAClF,6DAA6F;AAM7F,MAAa,UAAU;IACrB,YAAoC,OAAgB,EAAmB,QAA4B;QAA/D,YAAO,GAAP,OAAO,CAAS;QAAmB,aAAQ,GAAR,QAAQ,CAAoB;IAAG,CAAC;IAKhG,MAAM,CAAC,UAAsB;QAClC,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;QACjF,UAAU,CAAC,cAAc,CAAC,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAA,sBAAS,GAAE,EAAE,QAAQ,EAAE,IAAA,sBAAS,GAAE,EAAE,CAAC,CAAC;QAErG,MAAM,aAAa,GAAG,WAAW,IAAI,CAAC,QAAQ,CAAC,YAAY,cAAc,CAAC;QAE1E,IAAI,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE,CAAC;YAC3C,UAAU,CAAC,aAAa,CAAC;gBACvB,OAAO,EAAE,EAAE,IAAI,EAAE,yBAAc,CAAC,SAAS,EAAE,IAAI,EAAE,aAAa,EAAE;gBAChE,QAAQ,EAAE,IAAA,wBAAW,EAAC,qCAAqC,CAAC;gBAC5D,QAAQ,EAAE,IAAA,0BAAa,GAAE;aAC1B,CAAC,CAAC;QACL,CAAC;IACH,CAAC;CACF;AApBD,gCAoBC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Assessment } from './assess/assessment';
|
|
2
|
+
import { Gen1App } from './generate/_infra/gen1-app';
|
|
3
|
+
export declare class AmplifyMigrationAssessor {
|
|
4
|
+
private readonly gen1App;
|
|
5
|
+
constructor(gen1App: Gen1App);
|
|
6
|
+
assess(): Assessment;
|
|
7
|
+
run(): void;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=assess.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assess.d.ts","sourceRoot":"","sources":["../../../src/commands/gen2-migration/assess.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAe,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAoBrD,qBAAa,wBAAwB;IAChB,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,OAAO;IAE7C,MAAM,IAAI,UAAU;IA4DpB,GAAG,IAAI,IAAI;CAInB"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AmplifyMigrationAssessor = void 0;
|
|
4
|
+
const assessment_1 = require("./assess/assessment");
|
|
5
|
+
const amplify_prompts_1 = require("@aws-amplify/amplify-prompts");
|
|
6
|
+
const auth_cognito_assessor_1 = require("./assess/auth/auth-cognito.assessor");
|
|
7
|
+
const auth_user_pool_groups_assessor_1 = require("./assess/auth/auth-user-pool-groups.assessor");
|
|
8
|
+
const s3_assessor_1 = require("./assess/storage/s3.assessor");
|
|
9
|
+
const dynamodb_assessor_1 = require("./assess/storage/dynamodb.assessor");
|
|
10
|
+
const data_assessor_1 = require("./assess/api/data.assessor");
|
|
11
|
+
const rest_api_assessor_1 = require("./assess/api/rest-api.assessor");
|
|
12
|
+
const kinesis_assessor_1 = require("./assess/analytics/kinesis.assessor");
|
|
13
|
+
const function_assessor_1 = require("./assess/function/function.assessor");
|
|
14
|
+
const geo_geofence_collection_assessor_1 = require("./assess/geo/geo-geofence-collection.assessor");
|
|
15
|
+
const geo_map_assessor_1 = require("./assess/geo/geo-map.assessor");
|
|
16
|
+
const geo_place_index_assessor_1 = require("./assess/geo/geo-place-index.assessor");
|
|
17
|
+
class AmplifyMigrationAssessor {
|
|
18
|
+
constructor(gen1App) {
|
|
19
|
+
this.gen1App = gen1App;
|
|
20
|
+
}
|
|
21
|
+
assess() {
|
|
22
|
+
const discovered = this.gen1App.discover();
|
|
23
|
+
const combined = new assessment_1.Assessment(this.gen1App.appName, this.gen1App.envName);
|
|
24
|
+
for (const resource of discovered) {
|
|
25
|
+
const assessors = [];
|
|
26
|
+
switch (resource.key) {
|
|
27
|
+
case 'auth:Cognito':
|
|
28
|
+
assessors.push(new auth_cognito_assessor_1.AuthCognitoAssessor(this.gen1App, resource));
|
|
29
|
+
break;
|
|
30
|
+
case 'auth:Cognito-UserPool-Groups':
|
|
31
|
+
assessors.push(new auth_user_pool_groups_assessor_1.AuthUserPoolGroupsAssessor(this.gen1App, resource));
|
|
32
|
+
break;
|
|
33
|
+
case 'storage:S3':
|
|
34
|
+
assessors.push(new s3_assessor_1.S3Assessor(this.gen1App, resource));
|
|
35
|
+
break;
|
|
36
|
+
case 'storage:DynamoDB':
|
|
37
|
+
assessors.push(new dynamodb_assessor_1.DynamoDBAssessor(this.gen1App, resource));
|
|
38
|
+
break;
|
|
39
|
+
case 'api:AppSync':
|
|
40
|
+
assessors.push(new data_assessor_1.DataAssessor(this.gen1App, resource));
|
|
41
|
+
break;
|
|
42
|
+
case 'api:API Gateway':
|
|
43
|
+
assessors.push(new rest_api_assessor_1.RestApiAssessor(this.gen1App, resource));
|
|
44
|
+
break;
|
|
45
|
+
case 'analytics:Kinesis':
|
|
46
|
+
assessors.push(new kinesis_assessor_1.AnalyticsKinesisAssessor(this.gen1App, resource));
|
|
47
|
+
break;
|
|
48
|
+
case 'function:Lambda':
|
|
49
|
+
assessors.push(new function_assessor_1.FunctionAssessor(this.gen1App, resource));
|
|
50
|
+
break;
|
|
51
|
+
case 'geo:GeofenceCollection':
|
|
52
|
+
assessors.push(new geo_geofence_collection_assessor_1.GeoFenceCollectionAssessor(this.gen1App, resource));
|
|
53
|
+
break;
|
|
54
|
+
case 'geo:Map':
|
|
55
|
+
assessors.push(new geo_map_assessor_1.GeoMapAssessor(this.gen1App, resource));
|
|
56
|
+
break;
|
|
57
|
+
case 'geo:PlaceIndex':
|
|
58
|
+
assessors.push(new geo_place_index_assessor_1.GeoPlaceIndexAssessor(this.gen1App, resource));
|
|
59
|
+
break;
|
|
60
|
+
case 'UNKNOWN':
|
|
61
|
+
combined.recordResource({
|
|
62
|
+
resource,
|
|
63
|
+
generate: (0, assessment_1.unsupported)('unknown resource type'),
|
|
64
|
+
refactor: (0, assessment_1.unsupported)('unknown resource type'),
|
|
65
|
+
});
|
|
66
|
+
break;
|
|
67
|
+
}
|
|
68
|
+
for (const assessor of assessors) {
|
|
69
|
+
assessor.record(combined);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return combined;
|
|
73
|
+
}
|
|
74
|
+
run() {
|
|
75
|
+
const assessment = this.assess();
|
|
76
|
+
amplify_prompts_1.printer.info(assessment.render());
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
exports.AmplifyMigrationAssessor = AmplifyMigrationAssessor;
|
|
80
|
+
//# sourceMappingURL=assess.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assess.js","sourceRoot":"","sources":["../../../src/commands/gen2-migration/assess.ts"],"names":[],"mappings":";;;AAAA,oDAA8D;AAE9D,kEAAuD;AAEvD,+EAA0E;AAC1E,iGAA0F;AAC1F,8DAA0D;AAC1D,0EAAsE;AACtE,8DAA0D;AAC1D,sEAAiE;AACjE,0EAA+E;AAC/E,2EAAuE;AACvE,oGAA2F;AAC3F,oEAA+D;AAC/D,oFAA8E;AAO9E,MAAa,wBAAwB;IACnC,YAAoC,OAAgB;QAAhB,YAAO,GAAP,OAAO,CAAS;IAAG,CAAC;IAEjD,MAAM;QACX,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC;QAC3C,MAAM,QAAQ,GAAG,IAAI,uBAAU,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QAE5E,KAAK,MAAM,QAAQ,IAAI,UAAU,EAAE,CAAC;YAClC,MAAM,SAAS,GAAe,EAAE,CAAC;YAEjC,QAAQ,QAAQ,CAAC,GAAG,EAAE,CAAC;gBACrB,KAAK,cAAc;oBACjB,SAAS,CAAC,IAAI,CAAC,IAAI,2CAAmB,CAAC,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC,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BACR,KAAK,gBAAgB;oBACnB,SAAS,CAAC,IAAI,CAAC,IAAI,gDAAqB,CAAC,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC;oBAClE,MAAM;gBACR,KAAK,SAAS;oBACZ,QAAQ,CAAC,cAAc,CAAC;wBACtB,QAAQ;wBACR,QAAQ,EAAE,IAAA,wBAAW,EAAC,uBAAuB,CAAC;wBAC9C,QAAQ,EAAE,IAAA,wBAAW,EAAC,uBAAuB,CAAC;qBAC/C,CAAC,CAAC;oBACH,MAAM;YACV,CAAC;YAED,KAAK,MAAM,QAAQ,IAAI,SAAS,EAAE,CAAC;gBACjC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;YAC5B,CAAC;QACH,CAAC;QACD,OAAO,QAAQ,CAAC;IAClB,CAAC;IAKM,GAAG;QACR,MAAM,UAAU,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;QACjC,yBAAO,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC,CAAC;IACpC,CAAC;CACF;AAnED,4DAmEC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { AmplifyMigrationStep } from './
|
|
1
|
+
import { AmplifyMigrationStep } from './_infra/step';
|
|
2
|
+
import { Plan } from './_infra/plan';
|
|
2
3
|
export declare class AmplifyMigrationDecommissionStep extends AmplifyMigrationStep {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
forward(): Promise<Plan>;
|
|
5
|
+
rollback(): Promise<Plan>;
|
|
6
|
+
private validateStatefulResources;
|
|
7
|
+
private findHoldingStacks;
|
|
7
8
|
private createChangeSet;
|
|
8
9
|
}
|
|
9
10
|
//# sourceMappingURL=decommission.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decommission.d.ts","sourceRoot":"","sources":["../../../src/commands/gen2-migration/decommission.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"decommission.d.ts","sourceRoot":"","sources":["../../../src/commands/gen2-migration/decommission.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAErD,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAcrC,qBAAa,gCAAiC,SAAQ,oBAAoB;IAC3D,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAmDxB,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;YAIxB,yBAAyB;YAWzB,iBAAiB;YAuBjB,eAAe;CAmD9B"}
|
|
@@ -1,39 +1,96 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AmplifyMigrationDecommissionStep = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
4
|
+
const step_1 = require("./_infra/step");
|
|
5
|
+
const plan_1 = require("./_infra/plan");
|
|
6
6
|
const client_cloudformation_1 = require("@aws-sdk/client-cloudformation");
|
|
7
7
|
const remove_env_from_cloud_1 = require("../../extensions/amplify-helpers/remove-env-from-cloud");
|
|
8
8
|
const invoke_delete_env_params_1 = require("../../extensions/amplify-helpers/invoke-delete-env-params");
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
const cfn_1 = require("./refactor/cfn");
|
|
10
|
+
class AmplifyMigrationDecommissionStep extends step_1.AmplifyMigrationStep {
|
|
11
|
+
async forward() {
|
|
12
|
+
const cfn = new cfn_1.Cfn(this.gen1App.clients.cloudFormation, this.logger);
|
|
13
|
+
const holdingStacks = await this.findHoldingStacks();
|
|
14
|
+
const operations = [];
|
|
15
|
+
operations.push({
|
|
16
|
+
describe: async () => [],
|
|
17
|
+
validate: () => ({ description: 'Stateful resources', run: () => this.validateStatefulResources() }),
|
|
18
|
+
execute: async () => { },
|
|
19
|
+
});
|
|
20
|
+
for (const stackName of holdingStacks) {
|
|
21
|
+
operations.push({
|
|
22
|
+
validate: () => undefined,
|
|
23
|
+
describe: async () => [`Delete holding stack: ${stackName}`],
|
|
24
|
+
execute: async () => {
|
|
25
|
+
this.logger.info(`Deleting holding stack: ${stackName}`);
|
|
26
|
+
await cfn.deleteStack(stackName);
|
|
27
|
+
this.logger.info(`Deleted holding stack: ${stackName}`);
|
|
28
|
+
},
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
operations.push({
|
|
32
|
+
validate: () => undefined,
|
|
33
|
+
describe: async () => ['Delete the Gen1 environment'],
|
|
34
|
+
execute: async () => {
|
|
35
|
+
this.logger.info(`Starting decommission of environment: ${this.gen1App.envName}`);
|
|
36
|
+
this.logger.info('Preparing to delete Gen1 resources...');
|
|
37
|
+
this.logger.info('Deleting Gen1 resources from the cloud. This will take a few minutes.');
|
|
38
|
+
await (0, remove_env_from_cloud_1.removeEnvFromCloud)(this.context, this.gen1App.envName, true);
|
|
39
|
+
this.logger.info('Cleaning up SSM parameters...');
|
|
40
|
+
await (0, invoke_delete_env_params_1.invokeDeleteEnvParamsFromService)(this.context, this.gen1App.envName);
|
|
41
|
+
this.logger.info('Successfully decommissioned Gen1 environment from the cloud');
|
|
42
|
+
this.logger.info(`Environment '${this.gen1App.envName}' has been completely removed from AWS`);
|
|
43
|
+
},
|
|
44
|
+
});
|
|
45
|
+
return new plan_1.Plan({
|
|
46
|
+
operations,
|
|
47
|
+
logger: this.logger,
|
|
48
|
+
title: 'Execute',
|
|
49
|
+
implications: [
|
|
50
|
+
'The Gen1 CloudFormation stack and all its resources will be permanently deleted',
|
|
51
|
+
'This operation cannot be rolled back',
|
|
52
|
+
],
|
|
53
|
+
});
|
|
12
54
|
}
|
|
13
|
-
async
|
|
14
|
-
|
|
15
|
-
const validations = new _validations_1.AmplifyGen2MigrationValidations(this.logger, this.rootStackName, this.currentEnvName, this.context);
|
|
16
|
-
await validations.validateStatefulResources(changeSet, true);
|
|
55
|
+
async rollback() {
|
|
56
|
+
throw new Error('Not Implemented');
|
|
17
57
|
}
|
|
18
|
-
async
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
58
|
+
async validateStatefulResources() {
|
|
59
|
+
try {
|
|
60
|
+
const changeSet = await this.createChangeSet();
|
|
61
|
+
await this.validations.validateStatefulResources(changeSet, true);
|
|
62
|
+
return { valid: true };
|
|
63
|
+
}
|
|
64
|
+
catch (e) {
|
|
65
|
+
return { valid: false, report: e.message };
|
|
66
|
+
}
|
|
27
67
|
}
|
|
28
|
-
async
|
|
29
|
-
|
|
68
|
+
async findHoldingStacks() {
|
|
69
|
+
var _a, _b;
|
|
70
|
+
const holdingStacks = [];
|
|
71
|
+
const paginator = (0, client_cloudformation_1.paginateListStacks)({ client: this.gen1App.clients.cloudFormation }, {
|
|
72
|
+
StackStatusFilter: [
|
|
73
|
+
client_cloudformation_1.StackStatus.CREATE_COMPLETE,
|
|
74
|
+
client_cloudformation_1.StackStatus.UPDATE_COMPLETE,
|
|
75
|
+
client_cloudformation_1.StackStatus.ROLLBACK_COMPLETE,
|
|
76
|
+
client_cloudformation_1.StackStatus.REVIEW_IN_PROGRESS,
|
|
77
|
+
],
|
|
78
|
+
});
|
|
79
|
+
for await (const page of paginator) {
|
|
80
|
+
for (const stack of (_a = page.StackSummaries) !== null && _a !== void 0 ? _a : []) {
|
|
81
|
+
if (((_b = stack.StackName) === null || _b === void 0 ? void 0 : _b.endsWith(cfn_1.HOLDING_STACK_NAME_SUFFIX)) && stack.StackName.includes(this.gen1App.appId)) {
|
|
82
|
+
holdingStacks.push(stack.StackName);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
return holdingStacks;
|
|
30
87
|
}
|
|
31
88
|
async createChangeSet() {
|
|
32
89
|
var _a;
|
|
33
|
-
const cfn =
|
|
90
|
+
const cfn = this.gen1App.clients.cloudFormation;
|
|
34
91
|
const changeSetName = `decommission-${Date.now()}`;
|
|
35
92
|
await cfn.send(new client_cloudformation_1.CreateChangeSetCommand({
|
|
36
|
-
StackName: this.rootStackName,
|
|
93
|
+
StackName: this.gen1App.rootStackName,
|
|
37
94
|
ChangeSetName: changeSetName,
|
|
38
95
|
TemplateBody: JSON.stringify({
|
|
39
96
|
Resources: {
|
|
@@ -44,13 +101,13 @@ class AmplifyMigrationDecommissionStep extends _step_1.AmplifyMigrationStep {
|
|
|
44
101
|
}),
|
|
45
102
|
}));
|
|
46
103
|
this.logger.info('Analyzing environment resources...');
|
|
47
|
-
await (0, client_cloudformation_1.waitUntilChangeSetCreateComplete)({ client: cfn, maxWaitTime: 120 }, { StackName: this.rootStackName, ChangeSetName: changeSetName });
|
|
104
|
+
await (0, client_cloudformation_1.waitUntilChangeSetCreateComplete)({ client: cfn, maxWaitTime: 120 }, { StackName: this.gen1App.rootStackName, ChangeSetName: changeSetName });
|
|
48
105
|
const allChanges = [];
|
|
49
106
|
let nextToken;
|
|
50
107
|
let changeSet;
|
|
51
108
|
do {
|
|
52
109
|
changeSet = await cfn.send(new client_cloudformation_1.DescribeChangeSetCommand({
|
|
53
|
-
StackName: this.rootStackName,
|
|
110
|
+
StackName: this.gen1App.rootStackName,
|
|
54
111
|
ChangeSetName: changeSetName,
|
|
55
112
|
NextToken: nextToken,
|
|
56
113
|
}));
|
|
@@ -59,7 +116,7 @@ class AmplifyMigrationDecommissionStep extends _step_1.AmplifyMigrationStep {
|
|
|
59
116
|
} while (nextToken);
|
|
60
117
|
changeSet.Changes = allChanges;
|
|
61
118
|
await cfn.send(new client_cloudformation_1.DeleteChangeSetCommand({
|
|
62
|
-
StackName: this.rootStackName,
|
|
119
|
+
StackName: this.gen1App.rootStackName,
|
|
63
120
|
ChangeSetName: changeSetName,
|
|
64
121
|
}));
|
|
65
122
|
this.logger.info(`Reviewing environment resources`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decommission.js","sourceRoot":"","sources":["../../../src/commands/gen2-migration/decommission.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"decommission.js","sourceRoot":"","sources":["../../../src/commands/gen2-migration/decommission.ts"],"names":[],"mappings":";;;AAAA,wCAAqD;AAErD,wCAAqC;AACrC,0EAQwC;AACxC,kGAA4F;AAC5F,wGAA6G;AAC7G,wCAAgE;AAEhE,MAAa,gCAAiC,SAAQ,2BAAoB;IACjE,KAAK,CAAC,OAAO;QAClB,MAAM,GAAG,GAAG,IAAI,SAAG,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;QACtE,MAAM,aAAa,GAAG,MAAM,IAAI,CAAC,iBAAiB,EAAE,CAAC;QAErD,MAAM,UAAU,GAAgC,EAAE,CAAC;QAEnD,UAAU,CAAC,IAAI,CAAC;YACd,QAAQ,EAAE,KAAK,IAAI,EAAE,CAAC,EAAE;YACxB,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,WAAW,EAAE,oBAAoB,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,CAAC;YAEpG,OAAO,EAAE,KAAK,IAAI,EAAE,GAAE,CAAC;SACxB,CAAC,CAAC;QAEH,KAAK,MAAM,SAAS,IAAI,aAAa,EAAE,CAAC;YACtC,UAAU,CAAC,IAAI,CAAC;gBACd,QAAQ,EAAE,GAAG,EAAE,CAAC,SAAS;gBACzB,QAAQ,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,yBAAyB,SAAS,EAAE,CAAC;gBAC5D,OAAO,EAAE,KAAK,IAAI,EAAE;oBAClB,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,2BAA2B,SAAS,EAAE,CAAC,CAAC;oBACzD,MAAM,GAAG,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;oBACjC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,0BAA0B,SAAS,EAAE,CAAC,CAAC;gBA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ACH,CAAC;QAEF,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,iCAAiC,CAAC,CAAC;QACpD,OAAO,SAAS,CAAC;IACnB,CAAC;CACF;AA7ID,4EA6IC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { GetUserPoolMfaConfigResponse, UserPoolType, UserPoolClientType, GroupType, IdentityProviderType } from '@aws-sdk/client-cognito-identity-provider';
|
|
2
|
+
import { IdentityPool } from '@aws-sdk/client-cognito-identity';
|
|
3
|
+
import { FunctionConfiguration } from '@aws-sdk/client-lambda';
|
|
4
|
+
import { GraphqlApi } from '@aws-sdk/client-appsync';
|
|
5
|
+
import { TableDescription } from '@aws-sdk/client-dynamodb';
|
|
6
|
+
import { AwsClients } from '../../_infra/aws-clients';
|
|
7
|
+
export declare class AwsFetcher {
|
|
8
|
+
private readonly clients;
|
|
9
|
+
constructor(clients: AwsClients);
|
|
10
|
+
fetchUserPool(userPoolId: string): Promise<UserPoolType>;
|
|
11
|
+
fetchMfaConfig(userPoolId: string): Promise<GetUserPoolMfaConfigResponse>;
|
|
12
|
+
fetchUserPoolClient(userPoolId: string, clientId: string): Promise<UserPoolClientType | undefined>;
|
|
13
|
+
fetchIdentityProviders(userPoolId: string): Promise<IdentityProviderType[]>;
|
|
14
|
+
fetchIdentityGroups(userPoolId: string): Promise<GroupType[]>;
|
|
15
|
+
fetchIdentityPool(identityPoolId: string): Promise<IdentityPool>;
|
|
16
|
+
fetchIdentityPoolRoles(identityPoolId: string): Promise<{
|
|
17
|
+
authenticated?: string;
|
|
18
|
+
unauthenticated?: string;
|
|
19
|
+
} | undefined>;
|
|
20
|
+
fetchGroupsByUserPoolId(userPoolId: string): Promise<Record<string, string> | undefined>;
|
|
21
|
+
fetchFunctionConfig(deployedName: string): Promise<FunctionConfiguration | undefined>;
|
|
22
|
+
fetchFunctionSchedule(deployedName: string): Promise<string | undefined>;
|
|
23
|
+
fetchBucketNotifications(bucketName: string): Promise<import("@aws-sdk/client-s3").GetBucketNotificationConfigurationCommandOutput>;
|
|
24
|
+
fetchBucketAccelerate(bucketName: string): Promise<import("@aws-sdk/client-s3").BucketAccelerateStatus>;
|
|
25
|
+
fetchBucketVersioning(bucketName: string): Promise<import("@aws-sdk/client-s3").BucketVersioningStatus>;
|
|
26
|
+
fetchBucketEncryption(bucketName: string): Promise<import("@aws-sdk/client-s3").ServerSideEncryptionConfiguration>;
|
|
27
|
+
fetchGraphqlApi(apiId: string): Promise<GraphqlApi | undefined>;
|
|
28
|
+
fetchTableDescription(tableName: string): Promise<TableDescription | undefined>;
|
|
29
|
+
fetchAppBuildSpec(appId: string): Promise<string | undefined>;
|
|
30
|
+
fetchRestApiRootResourceId(restApiId: string): Promise<string>;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=aws-fetcher.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aws-fetcher.d.ts","sourceRoot":"","sources":["../../../../../src/commands/gen2-migration/generate/_infra/aws-fetcher.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,4BAA4B,EAC5B,YAAY,EACZ,kBAAkB,EAClB,SAAS,EACT,oBAAoB,EAGrB,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAA4D,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAC1H,OAAO,EAAwC,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAQrG,OAAO,EAAwB,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,EAAwB,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAGlF,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAStD,qBAAa,UAAU;IACrB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAa;gBAElB,OAAO,EAAE,UAAU;IAMzB,aAAa,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAQxD,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,4BAA4B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