@quadnix/octo-aws-cdk 0.2.0 → 0.2.1
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/README.md +108 -21
- package/dist/anchors/aws-cloudfront/aws-cloudfront.anchor.d.ts +12 -0
- package/dist/anchors/{aws-ecs/aws-ecs-server.anchor.js → aws-cloudfront/aws-cloudfront.anchor.js} +5 -5
- package/dist/anchors/aws-cloudfront/aws-cloudfront.anchor.js.map +1 -0
- package/dist/anchors/aws-cloudfront/aws-cloudfront.anchor.schema.d.ts +26 -0
- package/dist/anchors/{aws-iam/aws-iam-role.anchor.schema.js → aws-cloudfront/aws-cloudfront.anchor.schema.js} +11 -7
- package/dist/anchors/aws-cloudfront/aws-cloudfront.anchor.schema.js.map +1 -0
- package/dist/anchors/aws-deployment/aws-deployment.anchor.d.ts +12 -0
- package/dist/anchors/{aws-ecs/aws-ecs-task-definition.anchor.js → aws-deployment/aws-deployment.anchor.js} +5 -5
- package/dist/anchors/aws-deployment/aws-deployment.anchor.js.map +1 -0
- package/dist/anchors/aws-deployment/aws-deployment.anchor.schema.d.ts +100 -0
- package/dist/anchors/aws-deployment/aws-deployment.anchor.schema.js +149 -0
- package/dist/anchors/aws-deployment/aws-deployment.anchor.schema.js.map +1 -0
- package/dist/anchors/aws-dynamodb/aws-dynamodb.anchor.schema.d.ts +4 -0
- package/dist/anchors/aws-dynamodb/aws-dynamodb.anchor.schema.js +7 -1
- package/dist/anchors/aws-dynamodb/aws-dynamodb.anchor.schema.js.map +1 -1
- package/dist/anchors/aws-environment/aws-serverless-environment.anchor.d.ts +12 -0
- package/dist/anchors/{aws-s3-storage-service/aws-s3-storage-service-directory.anchor.js → aws-environment/aws-serverless-environment.anchor.js} +5 -5
- package/dist/anchors/aws-environment/aws-serverless-environment.anchor.js.map +1 -0
- package/dist/anchors/aws-environment/aws-serverless-environment.anchor.schema.d.ts +31 -0
- package/dist/anchors/aws-environment/aws-serverless-environment.anchor.schema.js +58 -0
- package/dist/anchors/aws-environment/aws-serverless-environment.anchor.schema.js.map +1 -0
- package/dist/anchors/aws-lambda/aws-lambda-execution.anchor.d.ts +12 -0
- package/dist/anchors/aws-lambda/aws-lambda-execution.anchor.js +27 -0
- package/dist/anchors/aws-lambda/aws-lambda-execution.anchor.js.map +1 -0
- package/dist/anchors/aws-lambda/aws-lambda-execution.anchor.schema.d.ts +28 -0
- package/dist/anchors/aws-lambda/aws-lambda-execution.anchor.schema.js +54 -0
- package/dist/anchors/aws-lambda/aws-lambda-execution.anchor.schema.js.map +1 -0
- package/dist/anchors/aws-lambda/aws-lambda-function.anchor.d.ts +12 -0
- package/dist/anchors/aws-lambda/aws-lambda-function.anchor.js +27 -0
- package/dist/anchors/aws-lambda/aws-lambda-function.anchor.js.map +1 -0
- package/dist/anchors/aws-lambda/aws-lambda-function.anchor.schema.d.ts +28 -0
- package/dist/anchors/aws-lambda/aws-lambda-function.anchor.schema.js +47 -0
- package/dist/anchors/aws-lambda/aws-lambda-function.anchor.schema.js.map +1 -0
- package/dist/anchors/aws-region/aws-serverless-region.anchor.d.ts +12 -0
- package/dist/anchors/aws-region/aws-serverless-region.anchor.js +27 -0
- package/dist/anchors/aws-region/aws-serverless-region.anchor.js.map +1 -0
- package/dist/anchors/aws-region/aws-serverless-region.anchor.schema.d.ts +30 -0
- package/dist/anchors/aws-region/aws-serverless-region.anchor.schema.js +49 -0
- package/dist/anchors/aws-region/aws-serverless-region.anchor.schema.js.map +1 -0
- package/dist/anchors/aws-s3-storage-service/aws-s3-storage-service-access-prefix.anchor.d.ts +12 -0
- package/dist/anchors/aws-s3-storage-service/aws-s3-storage-service-access-prefix.anchor.js +27 -0
- package/dist/anchors/aws-s3-storage-service/aws-s3-storage-service-access-prefix.anchor.js.map +1 -0
- package/dist/anchors/aws-s3-storage-service/{aws-s3-storage-service-directory.anchor.schema.d.ts → aws-s3-storage-service-access-prefix.anchor.schema.d.ts} +5 -4
- package/dist/anchors/aws-s3-storage-service/{aws-s3-storage-service-directory.anchor.schema.js → aws-s3-storage-service-access-prefix.anchor.schema.js} +7 -6
- package/dist/anchors/aws-s3-storage-service/aws-s3-storage-service-access-prefix.anchor.schema.js.map +1 -0
- package/dist/anchors/aws-s3-storage-service/aws-s3-storage-service.anchor.schema.d.ts +3 -0
- package/dist/anchors/aws-s3-storage-service/aws-s3-storage-service.anchor.schema.js +3 -0
- package/dist/anchors/aws-s3-storage-service/aws-s3-storage-service.anchor.schema.js.map +1 -1
- package/dist/anchors/aws-security-group/aws-security-group.anchor.schema.d.ts +3 -2
- package/dist/anchors/aws-security-group/aws-security-group.anchor.schema.js +2 -1
- package/dist/anchors/aws-security-group/aws-security-group.anchor.schema.js.map +1 -1
- package/dist/anchors/aws-server/aws-server.anchor.d.ts +12 -0
- package/dist/anchors/{aws-iam/aws-iam-role.anchor.js → aws-server/aws-server.anchor.js} +5 -5
- package/dist/anchors/aws-server/aws-server.anchor.js.map +1 -0
- package/dist/anchors/aws-server/aws-server.anchor.schema.d.ts +50 -0
- package/dist/anchors/aws-server/aws-server.anchor.schema.js +51 -0
- package/dist/anchors/aws-server/aws-server.anchor.schema.js.map +1 -0
- package/dist/anchors/aws-subnet/aws-serverless-subnet.anchor.d.ts +12 -0
- package/dist/anchors/aws-subnet/aws-serverless-subnet.anchor.js +27 -0
- package/dist/anchors/aws-subnet/aws-serverless-subnet.anchor.js.map +1 -0
- package/dist/anchors/aws-subnet/aws-serverless-subnet.anchor.schema.d.ts +28 -0
- package/dist/anchors/{aws-ecs/aws-ecs-server.anchor.schema.js → aws-subnet/aws-serverless-subnet.anchor.schema.js} +14 -12
- package/dist/anchors/aws-subnet/aws-serverless-subnet.anchor.schema.js.map +1 -0
- package/dist/modules/account/aws-credentials-account/aws-credentials-account.module.d.ts +2 -1
- package/dist/modules/account/aws-credentials-account/aws-credentials-account.module.js +2 -1
- package/dist/modules/account/aws-credentials-account/aws-credentials-account.module.js.map +1 -1
- package/dist/modules/account/aws-ini-account/aws-ini-account.module.d.ts +2 -1
- package/dist/modules/account/aws-ini-account/aws-ini-account.module.js +2 -1
- package/dist/modules/account/aws-ini-account/aws-ini-account.module.js.map +1 -1
- package/dist/modules/account/aws-localstack-account/aws-localstack-account.module.d.ts +2 -1
- package/dist/modules/account/aws-localstack-account/aws-localstack-account.module.js +2 -1
- package/dist/modules/account/aws-localstack-account/aws-localstack-account.module.js.map +1 -1
- package/dist/modules/account/aws-moto-account/aws-moto-account.module.d.ts +2 -1
- package/dist/modules/account/aws-moto-account/aws-moto-account.module.js +2 -1
- package/dist/modules/account/aws-moto-account/aws-moto-account.module.js.map +1 -1
- package/dist/modules/app/simple-app/index.schema.d.ts +1 -1
- package/dist/modules/app/simple-app/index.schema.js +1 -1
- package/dist/modules/deployment/aws-deployment/aws-deployment.module.d.ts +45 -0
- package/dist/modules/deployment/aws-deployment/aws-deployment.module.js +96 -0
- package/dist/modules/deployment/aws-deployment/aws-deployment.module.js.map +1 -0
- package/dist/modules/deployment/aws-deployment/index.d.ts +1 -0
- package/dist/modules/deployment/aws-deployment/index.js +2 -0
- package/dist/modules/deployment/aws-deployment/index.js.map +1 -0
- package/dist/modules/deployment/aws-deployment/index.schema.d.ts +60 -0
- package/dist/modules/deployment/aws-deployment/index.schema.js +160 -0
- package/dist/modules/deployment/aws-deployment/index.schema.js.map +1 -0
- package/dist/modules/deployment/aws-deployment/models/deployment/actions/add-aws-deployment.model.action.d.ts +27 -0
- package/dist/modules/deployment/{aws-ecs-deployment/models/deployment/actions/add-aws-ecs-deployment.model.action.js → aws-deployment/models/deployment/actions/add-aws-deployment.model.action.js} +16 -14
- package/dist/modules/deployment/aws-deployment/models/deployment/actions/add-aws-deployment.model.action.js.map +1 -0
- package/dist/modules/deployment/aws-deployment/models/deployment/aws-deployment.model.d.ts +11 -0
- package/dist/modules/deployment/{aws-ecs-deployment/models/deployment/aws-ecs-deployment.model.js → aws-deployment/models/deployment/aws-deployment.model.js} +9 -9
- package/dist/modules/deployment/aws-deployment/models/deployment/aws-deployment.model.js.map +1 -0
- package/dist/modules/deployment/{aws-ecs-deployment/models/deployment/aws-ecs-deployment.schema.d.ts → aws-deployment/models/deployment/aws-deployment.schema.d.ts} +1 -1
- package/dist/modules/deployment/aws-deployment/models/deployment/aws-deployment.schema.js +7 -0
- package/dist/modules/deployment/aws-deployment/models/deployment/aws-deployment.schema.js.map +1 -0
- package/dist/modules/deployment/aws-deployment/models/deployment/index.d.ts +2 -0
- package/dist/modules/deployment/aws-deployment/models/deployment/index.js +3 -0
- package/dist/modules/deployment/aws-deployment/models/deployment/index.js.map +1 -0
- package/dist/modules/deployment/aws-deployment/overlays/aws-deployment-image/actions/add-aws-deployment-image.overlay.action.d.ts +28 -0
- package/dist/modules/deployment/aws-deployment/overlays/aws-deployment-image/actions/add-aws-deployment-image.overlay.action.js +53 -0
- package/dist/modules/deployment/aws-deployment/overlays/aws-deployment-image/actions/add-aws-deployment-image.overlay.action.js.map +1 -0
- package/dist/modules/deployment/aws-deployment/overlays/aws-deployment-image/aws-deployment-image.overlay.d.ts +22 -0
- package/dist/modules/deployment/aws-deployment/overlays/aws-deployment-image/aws-deployment-image.overlay.js +37 -0
- package/dist/modules/deployment/aws-deployment/overlays/aws-deployment-image/aws-deployment-image.overlay.js.map +1 -0
- package/dist/modules/deployment/aws-deployment/overlays/aws-deployment-image/aws-deployment-image.schema.d.ts +12 -0
- package/dist/modules/deployment/aws-deployment/overlays/aws-deployment-image/aws-deployment-image.schema.js +32 -0
- package/dist/modules/deployment/aws-deployment/overlays/aws-deployment-image/aws-deployment-image.schema.js.map +1 -0
- package/dist/modules/deployment/aws-deployment/overlays/aws-deployment-image/index.d.ts +2 -0
- package/dist/modules/deployment/aws-deployment/overlays/aws-deployment-image/index.js +3 -0
- package/dist/modules/deployment/aws-deployment/overlays/aws-deployment-image/index.js.map +1 -0
- package/dist/modules/environment/aws-ecs-environment/aws-ecs-environment.module.d.ts +2 -1
- package/dist/modules/environment/aws-ecs-environment/aws-ecs-environment.module.js +2 -1
- package/dist/modules/environment/aws-ecs-environment/aws-ecs-environment.module.js.map +1 -1
- package/dist/modules/environment/aws-serverless-environment/aws-serverless-environment.module.d.ts +33 -0
- package/dist/modules/environment/aws-serverless-environment/aws-serverless-environment.module.js +60 -0
- package/dist/modules/environment/aws-serverless-environment/aws-serverless-environment.module.js.map +1 -0
- package/dist/modules/environment/aws-serverless-environment/index.d.ts +1 -0
- package/dist/modules/environment/aws-serverless-environment/index.js +2 -0
- package/dist/modules/environment/aws-serverless-environment/index.js.map +1 -0
- package/dist/modules/environment/aws-serverless-environment/index.schema.d.ts +27 -0
- package/dist/modules/environment/aws-serverless-environment/index.schema.js +73 -0
- package/dist/modules/environment/aws-serverless-environment/index.schema.js.map +1 -0
- package/dist/modules/environment/aws-serverless-environment/models/environment/actions/add-aws-serverless-environment.model.action.d.ts +28 -0
- package/dist/modules/environment/aws-serverless-environment/models/environment/actions/add-aws-serverless-environment.model.action.js +53 -0
- package/dist/modules/environment/aws-serverless-environment/models/environment/actions/add-aws-serverless-environment.model.action.js.map +1 -0
- package/dist/modules/environment/aws-serverless-environment/models/environment/aws-serverless-environment.model.d.ts +11 -0
- package/dist/modules/environment/aws-serverless-environment/models/environment/aws-serverless-environment.model.js +29 -0
- package/dist/modules/environment/aws-serverless-environment/models/environment/aws-serverless-environment.model.js.map +1 -0
- package/dist/modules/environment/aws-serverless-environment/models/environment/aws-serverless-environment.schema.d.ts +6 -0
- package/dist/modules/environment/aws-serverless-environment/models/environment/aws-serverless-environment.schema.js +7 -0
- package/dist/modules/environment/aws-serverless-environment/models/environment/aws-serverless-environment.schema.js.map +1 -0
- package/dist/modules/environment/aws-serverless-environment/models/environment/index.d.ts +2 -0
- package/dist/modules/environment/aws-serverless-environment/models/environment/index.js +3 -0
- package/dist/modules/environment/aws-serverless-environment/models/environment/index.js.map +1 -0
- package/dist/modules/execution/aws-ecs-execution/aws-ecs-execution.module.d.ts +7 -6
- package/dist/modules/execution/aws-ecs-execution/aws-ecs-execution.module.js +138 -63
- package/dist/modules/execution/aws-ecs-execution/aws-ecs-execution.module.js.map +1 -1
- package/dist/modules/execution/aws-ecs-execution/index.schema.d.ts +6 -6
- package/dist/modules/execution/aws-ecs-execution/index.schema.js +6 -6
- package/dist/modules/execution/aws-ecs-execution/index.schema.js.map +1 -1
- package/dist/modules/execution/aws-ecs-execution/models/execution/aws-ecs-execution.model.js +5 -0
- package/dist/modules/execution/aws-ecs-execution/models/execution/aws-ecs-execution.model.js.map +1 -1
- package/dist/modules/execution/aws-ecs-execution/overlays/aws-ecs-execution/actions/add-aws-ecs-execution.overlay.action.js +131 -40
- package/dist/modules/execution/aws-ecs-execution/overlays/aws-ecs-execution/actions/add-aws-ecs-execution.overlay.action.js.map +1 -1
- package/dist/modules/execution/aws-ecs-execution/overlays/aws-ecs-execution/aws-ecs-execution.overlay.d.ts +9 -5
- package/dist/modules/execution/aws-ecs-execution/overlays/aws-ecs-execution/aws-ecs-execution.overlay.js +4 -0
- package/dist/modules/execution/aws-ecs-execution/overlays/aws-ecs-execution/aws-ecs-execution.overlay.js.map +1 -1
- package/dist/modules/execution/aws-ecs-execution/overlays/aws-ecs-execution/aws-ecs-execution.schema.d.ts +20 -0
- package/dist/modules/execution/aws-ecs-execution/overlays/aws-ecs-execution/aws-ecs-execution.schema.js +5 -0
- package/dist/modules/execution/aws-ecs-execution/overlays/aws-ecs-execution/aws-ecs-execution.schema.js.map +1 -1
- package/dist/modules/execution/aws-ecs-execution/overlays/aws-ecs-execution-server-security-group/actions/add-aws-ecs-execution-server-security-group.overlay.action.js +32 -20
- package/dist/modules/execution/aws-ecs-execution/overlays/aws-ecs-execution-server-security-group/actions/add-aws-ecs-execution-server-security-group.overlay.action.js.map +1 -1
- package/dist/modules/execution/aws-ecs-execution/overlays/aws-ecs-execution-server-security-group/aws-ecs-execution-server-security-group.overlay.d.ts +10 -2
- package/dist/modules/execution/aws-ecs-execution/overlays/aws-ecs-execution-server-security-group/aws-ecs-execution-server-security-group.overlay.js.map +1 -1
- package/dist/modules/execution/aws-lambda-execution/aws-lambda-execution.module.d.ts +57 -0
- package/dist/modules/execution/aws-lambda-execution/aws-lambda-execution.module.js +177 -0
- package/dist/modules/execution/aws-lambda-execution/aws-lambda-execution.module.js.map +1 -0
- package/dist/modules/execution/aws-lambda-execution/index.d.ts +1 -0
- package/dist/modules/execution/aws-lambda-execution/index.js +2 -0
- package/dist/modules/execution/aws-lambda-execution/index.js.map +1 -0
- package/dist/modules/execution/aws-lambda-execution/index.schema.d.ts +56 -0
- package/dist/modules/execution/aws-lambda-execution/index.schema.js +154 -0
- package/dist/modules/execution/aws-lambda-execution/index.schema.js.map +1 -0
- package/dist/modules/execution/aws-lambda-execution/models/execution/actions/add-aws-lambda-execution.model.action.d.ts +25 -0
- package/dist/modules/execution/aws-lambda-execution/models/execution/actions/add-aws-lambda-execution.model.action.js +51 -0
- package/dist/modules/execution/aws-lambda-execution/models/execution/actions/add-aws-lambda-execution.model.action.js.map +1 -0
- package/dist/modules/execution/aws-lambda-execution/models/execution/aws-lambda-execution.model.d.ts +28 -0
- package/dist/modules/execution/aws-lambda-execution/models/execution/aws-lambda-execution.model.js +85 -0
- package/dist/modules/execution/aws-lambda-execution/models/execution/aws-lambda-execution.model.js.map +1 -0
- package/dist/modules/execution/aws-lambda-execution/models/execution/aws-lambda-execution.schema.d.ts +7 -0
- package/dist/modules/execution/aws-lambda-execution/models/execution/aws-lambda-execution.schema.js +24 -0
- package/dist/modules/execution/aws-lambda-execution/models/execution/aws-lambda-execution.schema.js.map +1 -0
- package/dist/modules/execution/aws-lambda-execution/models/execution/index.d.ts +2 -0
- package/dist/modules/execution/aws-lambda-execution/models/execution/index.js +3 -0
- package/dist/modules/execution/aws-lambda-execution/models/execution/index.js.map +1 -0
- package/dist/modules/execution/aws-lambda-execution/overlays/aws-lambda-execution/actions/add-aws-lambda-execution.overlay.action.d.ts +26 -0
- package/dist/modules/execution/aws-lambda-execution/overlays/aws-lambda-execution/actions/add-aws-lambda-execution.overlay.action.js +172 -0
- package/dist/modules/execution/aws-lambda-execution/overlays/aws-lambda-execution/actions/add-aws-lambda-execution.overlay.action.js.map +1 -0
- package/dist/modules/execution/aws-lambda-execution/overlays/aws-lambda-execution/aws-lambda-execution.overlay.d.ts +38 -0
- package/dist/modules/execution/aws-lambda-execution/overlays/aws-lambda-execution/aws-lambda-execution.overlay.js +37 -0
- package/dist/modules/execution/aws-lambda-execution/overlays/aws-lambda-execution/aws-lambda-execution.overlay.js.map +1 -0
- package/dist/modules/execution/aws-lambda-execution/overlays/aws-lambda-execution/aws-lambda-execution.schema.d.ts +41 -0
- package/dist/modules/execution/aws-lambda-execution/overlays/aws-lambda-execution/aws-lambda-execution.schema.js +43 -0
- package/dist/modules/execution/aws-lambda-execution/overlays/aws-lambda-execution/aws-lambda-execution.schema.js.map +1 -0
- package/dist/modules/execution/aws-lambda-execution/overlays/aws-lambda-execution/index.d.ts +2 -0
- package/dist/modules/execution/aws-lambda-execution/overlays/aws-lambda-execution/index.js +3 -0
- package/dist/modules/execution/aws-lambda-execution/overlays/aws-lambda-execution/index.js.map +1 -0
- package/dist/modules/filesystem/aws-efs-filesystem/aws-efs-filesystem.module.d.ts +2 -1
- package/dist/modules/filesystem/aws-efs-filesystem/aws-efs-filesystem.module.js +2 -1
- package/dist/modules/filesystem/aws-efs-filesystem/aws-efs-filesystem.module.js.map +1 -1
- package/dist/modules/filesystem/aws-efs-filesystem/models/filesystem/actions/add-aws-efs-filesystem.model.action.js +1 -2
- package/dist/modules/filesystem/aws-efs-filesystem/models/filesystem/actions/add-aws-efs-filesystem.model.action.js.map +1 -1
- package/dist/modules/image/aws-ecr-image/aws-ecr-image.module.d.ts +10 -5
- package/dist/modules/image/aws-ecr-image/aws-ecr-image.module.js +31 -13
- package/dist/modules/image/aws-ecr-image/aws-ecr-image.module.js.map +1 -1
- package/dist/modules/image/aws-ecr-image/index.schema.d.ts +1 -1
- package/dist/modules/image/aws-ecr-image/index.schema.js +2 -3
- package/dist/modules/image/aws-ecr-image/index.schema.js.map +1 -1
- package/dist/modules/image/aws-ecr-image/models/image/actions/add-aws-ecr-image-region.model.action.d.ts +28 -0
- package/dist/modules/image/aws-ecr-image/models/image/actions/add-aws-ecr-image-region.model.action.js +53 -0
- package/dist/modules/image/aws-ecr-image/models/image/actions/add-aws-ecr-image-region.model.action.js.map +1 -0
- package/dist/modules/image/aws-ecr-image/models/image/actions/add-aws-ecr-image.model.action.js +1 -1
- package/dist/modules/image/aws-ecr-image/models/image/actions/add-aws-ecr-image.model.action.js.map +1 -1
- package/dist/modules/image/aws-ecr-image/models/image/index.d.ts +1 -0
- package/dist/modules/image/aws-ecr-image/models/image/index.js +1 -0
- package/dist/modules/image/aws-ecr-image/models/image/index.js.map +1 -1
- package/dist/modules/image/aws-ecr-image-tag/aws-ecr-image-tag.module.d.ts +5 -1
- package/dist/modules/image/aws-ecr-image-tag/aws-ecr-image-tag.module.js +12 -3
- package/dist/modules/image/aws-ecr-image-tag/aws-ecr-image-tag.module.js.map +1 -1
- package/dist/modules/image/aws-ecr-image-tag/index.schema.d.ts +18 -0
- package/dist/modules/image/aws-ecr-image-tag/index.schema.js +42 -0
- package/dist/modules/image/aws-ecr-image-tag/index.schema.js.map +1 -1
- package/dist/modules/image/aws-ecr-image-tag/overlays/aws-ecr-image-tag/actions/add-aws-ecr-image-tag.overlay.action.js +3 -0
- package/dist/modules/image/aws-ecr-image-tag/overlays/aws-ecr-image-tag/actions/add-aws-ecr-image-tag.overlay.action.js.map +1 -1
- package/dist/modules/image/aws-ecr-image-tag/overlays/aws-ecr-image-tag/aws-ecr-image-tag.schema.d.ts +4 -0
- package/dist/modules/image/aws-ecr-image-tag/overlays/aws-ecr-image-tag/aws-ecr-image-tag.schema.js +1 -0
- package/dist/modules/image/aws-ecr-image-tag/overlays/aws-ecr-image-tag/aws-ecr-image-tag.schema.js.map +1 -1
- package/dist/modules/region/aws-multi-az-region/aws-multi-az-region.module.d.ts +3 -1
- package/dist/modules/region/aws-multi-az-region/aws-multi-az-region.module.js +3 -5
- package/dist/modules/region/aws-multi-az-region/aws-multi-az-region.module.js.map +1 -1
- package/dist/modules/region/aws-multi-az-region/models/region/aws-multi-az-region.model.d.ts +0 -4
- package/dist/modules/region/aws-multi-az-region/models/region/aws-multi-az-region.model.js +2 -11
- package/dist/modules/region/aws-multi-az-region/models/region/aws-multi-az-region.model.js.map +1 -1
- package/dist/modules/region/aws-serverless-region/aws-serverless-region.module.d.ts +35 -0
- package/dist/modules/region/aws-serverless-region/aws-serverless-region.module.js +58 -0
- package/dist/modules/region/aws-serverless-region/aws-serverless-region.module.js.map +1 -0
- package/dist/modules/region/aws-serverless-region/index.d.ts +1 -0
- package/dist/modules/region/aws-serverless-region/index.js +2 -0
- package/dist/modules/region/aws-serverless-region/index.js.map +1 -0
- package/dist/modules/region/aws-serverless-region/index.schema.d.ts +27 -0
- package/dist/modules/region/aws-serverless-region/index.schema.js +64 -0
- package/dist/modules/region/aws-serverless-region/index.schema.js.map +1 -0
- package/dist/modules/region/aws-serverless-region/models/region/actions/add-aws-serverless-region.model.action.d.ts +28 -0
- package/dist/modules/region/aws-serverless-region/models/region/actions/add-aws-serverless-region.model.action.js +53 -0
- package/dist/modules/region/aws-serverless-region/models/region/actions/add-aws-serverless-region.model.action.js.map +1 -0
- package/dist/modules/region/aws-serverless-region/models/region/aws-serverless-region.model.d.ts +30 -0
- package/dist/modules/region/aws-serverless-region/models/region/aws-serverless-region.model.js +56 -0
- package/dist/modules/region/aws-serverless-region/models/region/aws-serverless-region.model.js.map +1 -0
- package/dist/modules/region/aws-serverless-region/models/region/aws-serverless-region.schema.d.ts +7 -0
- package/dist/modules/region/aws-serverless-region/models/region/aws-serverless-region.schema.js +24 -0
- package/dist/modules/region/aws-serverless-region/models/region/aws-serverless-region.schema.js.map +1 -0
- package/dist/modules/region/aws-serverless-region/models/region/index.d.ts +2 -0
- package/dist/modules/region/aws-serverless-region/models/region/index.js +3 -0
- package/dist/modules/region/aws-serverless-region/models/region/index.js.map +1 -0
- package/dist/modules/region/aws-single-az-region/aws-single-az-region.module.d.ts +3 -1
- package/dist/modules/region/aws-single-az-region/aws-single-az-region.module.js +3 -5
- package/dist/modules/region/aws-single-az-region/aws-single-az-region.module.js.map +1 -1
- package/dist/modules/region/aws-single-az-region/models/region/aws-single-az-region.model.d.ts +0 -4
- package/dist/modules/region/aws-single-az-region/models/region/aws-single-az-region.model.js +3 -12
- package/dist/modules/region/aws-single-az-region/models/region/aws-single-az-region.model.js.map +1 -1
- package/dist/modules/server/aws-server/aws-server.module.d.ts +72 -0
- package/dist/modules/server/aws-server/aws-server.module.js +182 -0
- package/dist/modules/server/aws-server/aws-server.module.js.map +1 -0
- package/dist/modules/server/aws-server/index.d.ts +1 -0
- package/dist/modules/server/aws-server/index.js +2 -0
- package/dist/modules/server/aws-server/index.js.map +1 -0
- package/dist/modules/server/aws-server/index.schema.d.ts +123 -0
- package/dist/modules/server/aws-server/index.schema.js +246 -0
- package/dist/modules/server/aws-server/index.schema.js.map +1 -0
- package/dist/modules/server/aws-server/models/server/actions/add-aws-server.model.action.d.ts +27 -0
- package/dist/modules/server/aws-server/models/server/actions/add-aws-server.model.action.js +53 -0
- package/dist/modules/server/aws-server/models/server/actions/add-aws-server.model.action.js.map +1 -0
- package/dist/modules/server/aws-server/models/server/aws-server.model.d.ts +11 -0
- package/dist/modules/server/{aws-ecs-server/models/server/aws-ecs-server.model.js → aws-server/models/server/aws-server.model.js} +9 -9
- package/dist/modules/server/aws-server/models/server/aws-server.model.js.map +1 -0
- package/dist/modules/server/{aws-ecs-server/models/server/aws-ecs-server.schema.d.ts → aws-server/models/server/aws-server.schema.d.ts} +1 -1
- package/dist/modules/server/aws-server/models/server/aws-server.schema.js +7 -0
- package/dist/modules/server/aws-server/models/server/aws-server.schema.js.map +1 -0
- package/dist/modules/server/aws-server/models/server/index.d.ts +2 -0
- package/dist/modules/server/aws-server/models/server/index.js +3 -0
- package/dist/modules/server/aws-server/models/server/index.js.map +1 -0
- package/dist/modules/server/aws-server/overlays/aws-server-dynamodb-access/actions/add-aws-server-dynamodb-access.overlay.action.d.ts +28 -0
- package/dist/modules/server/aws-server/overlays/aws-server-dynamodb-access/actions/add-aws-server-dynamodb-access.overlay.action.js +53 -0
- package/dist/modules/server/aws-server/overlays/aws-server-dynamodb-access/actions/add-aws-server-dynamodb-access.overlay.action.js.map +1 -0
- package/dist/modules/server/aws-server/overlays/aws-server-dynamodb-access/aws-server-dynamodb-access.overlay.d.ts +22 -0
- package/dist/modules/server/aws-server/overlays/aws-server-dynamodb-access/aws-server-dynamodb-access.overlay.js +37 -0
- package/dist/modules/server/aws-server/overlays/aws-server-dynamodb-access/aws-server-dynamodb-access.overlay.js.map +1 -0
- package/dist/modules/server/aws-server/overlays/aws-server-dynamodb-access/aws-server-dynamodb-access.schema.d.ts +13 -0
- package/dist/modules/server/aws-server/overlays/aws-server-dynamodb-access/aws-server-dynamodb-access.schema.js +33 -0
- package/dist/modules/server/aws-server/overlays/aws-server-dynamodb-access/aws-server-dynamodb-access.schema.js.map +1 -0
- package/dist/modules/server/aws-server/overlays/aws-server-dynamodb-access/index.d.ts +2 -0
- package/dist/modules/server/aws-server/overlays/aws-server-dynamodb-access/index.js +3 -0
- package/dist/modules/server/aws-server/overlays/aws-server-dynamodb-access/index.js.map +1 -0
- package/dist/modules/server/aws-server/overlays/aws-server-s3-access/actions/add-aws-server-s3-access.overlay.action.d.ts +28 -0
- package/dist/modules/server/aws-server/overlays/aws-server-s3-access/actions/add-aws-server-s3-access.overlay.action.js +53 -0
- package/dist/modules/server/aws-server/overlays/aws-server-s3-access/actions/add-aws-server-s3-access.overlay.action.js.map +1 -0
- package/dist/modules/server/aws-server/overlays/aws-server-s3-access/aws-server-s3-access.overlay.d.ts +22 -0
- package/dist/modules/server/aws-server/overlays/aws-server-s3-access/aws-server-s3-access.overlay.js +37 -0
- package/dist/modules/server/aws-server/overlays/aws-server-s3-access/aws-server-s3-access.overlay.js.map +1 -0
- package/dist/modules/server/{aws-ecs-server/overlays/aws-ecs-server-s3-access/aws-ecs-server-s3-access.schema.d.ts → aws-server/overlays/aws-server-s3-access/aws-server-s3-access.schema.d.ts} +3 -4
- package/dist/modules/server/{aws-ecs-server/overlays/aws-ecs-server-s3-access/aws-ecs-server-s3-access.schema.js → aws-server/overlays/aws-server-s3-access/aws-server-s3-access.schema.js} +5 -6
- package/dist/modules/server/aws-server/overlays/aws-server-s3-access/aws-server-s3-access.schema.js.map +1 -0
- package/dist/modules/server/aws-server/overlays/aws-server-s3-access/index.d.ts +2 -0
- package/dist/modules/server/aws-server/overlays/aws-server-s3-access/index.js +3 -0
- package/dist/modules/server/aws-server/overlays/aws-server-s3-access/index.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/aws-cloudfront-invalidation-service.module.d.ts +36 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/aws-cloudfront-invalidation-service.module.js +66 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/aws-cloudfront-invalidation-service.module.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/index.d.ts +1 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/index.js +2 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/index.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/index.schema.d.ts +23 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/index.schema.js +65 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/index.schema.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/overlays/aws-cloudfront-invalidation/actions/add-aws-cloudfront-invalidation.overlay.action.d.ts +26 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/overlays/aws-cloudfront-invalidation/actions/add-aws-cloudfront-invalidation.overlay.action.js +68 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/overlays/aws-cloudfront-invalidation/actions/add-aws-cloudfront-invalidation.overlay.action.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/overlays/aws-cloudfront-invalidation/aws-cloudfront-invalidation.overlay.d.ts +22 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/overlays/aws-cloudfront-invalidation/aws-cloudfront-invalidation.overlay.js +38 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/overlays/aws-cloudfront-invalidation/aws-cloudfront-invalidation.overlay.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/overlays/aws-cloudfront-invalidation/aws-cloudfront-invalidation.schema.d.ts +12 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/overlays/aws-cloudfront-invalidation/aws-cloudfront-invalidation.schema.js +32 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/overlays/aws-cloudfront-invalidation/aws-cloudfront-invalidation.schema.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/overlays/aws-cloudfront-invalidation/index.d.ts +2 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/overlays/aws-cloudfront-invalidation/index.js +3 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/overlays/aws-cloudfront-invalidation/index.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-service/aws-cloudfront-service.module.d.ts +76 -0
- package/dist/modules/service/aws-cloudfront-service/aws-cloudfront-service.module.js +192 -0
- package/dist/modules/service/aws-cloudfront-service/aws-cloudfront-service.module.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-service/index.d.ts +1 -0
- package/dist/modules/service/aws-cloudfront-service/index.js +2 -0
- package/dist/modules/service/aws-cloudfront-service/index.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-service/index.schema.d.ts +170 -0
- package/dist/modules/service/aws-cloudfront-service/index.schema.js +396 -0
- package/dist/modules/service/aws-cloudfront-service/index.schema.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-service/models/service/actions/add-aws-cloudfront-service.model.action.d.ts +26 -0
- package/dist/modules/service/aws-cloudfront-service/models/service/actions/add-aws-cloudfront-service.model.action.js +137 -0
- package/dist/modules/service/aws-cloudfront-service/models/service/actions/add-aws-cloudfront-service.model.action.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-service/models/service/aws-cloudfront-service.model.d.ts +20 -0
- package/dist/modules/service/aws-cloudfront-service/models/service/aws-cloudfront-service.model.js +50 -0
- package/dist/modules/service/aws-cloudfront-service/models/service/aws-cloudfront-service.model.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-service/models/service/aws-cloudfront-service.schema.d.ts +7 -0
- package/dist/modules/service/aws-cloudfront-service/models/service/aws-cloudfront-service.schema.js +24 -0
- package/dist/modules/service/aws-cloudfront-service/models/service/aws-cloudfront-service.schema.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-service/models/service/index.d.ts +2 -0
- package/dist/modules/service/aws-cloudfront-service/models/service/index.js +3 -0
- package/dist/modules/service/aws-cloudfront-service/models/service/index.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-alb-origin/actions/add-aws-cloudfront-alb-origin.overlay.action.d.ts +26 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-alb-origin/actions/add-aws-cloudfront-alb-origin.overlay.action.js +68 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-alb-origin/actions/add-aws-cloudfront-alb-origin.overlay.action.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-alb-origin/aws-cloudfront-alb-origin.overlay.d.ts +21 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-alb-origin/aws-cloudfront-alb-origin.overlay.js +36 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-alb-origin/aws-cloudfront-alb-origin.overlay.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-alb-origin/aws-cloudfront-alb-origin.schema.d.ts +9 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-alb-origin/aws-cloudfront-alb-origin.schema.js +11 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-alb-origin/aws-cloudfront-alb-origin.schema.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-alb-origin/index.d.ts +2 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-alb-origin/index.js +3 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-alb-origin/index.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-lambda-origin/actions/add-aws-cloudfront-lambda-origin.overlay.action.d.ts +26 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-lambda-origin/actions/add-aws-cloudfront-lambda-origin.overlay.action.js +73 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-lambda-origin/actions/add-aws-cloudfront-lambda-origin.overlay.action.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-lambda-origin/aws-cloudfront-lambda-origin.overlay.d.ts +21 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-lambda-origin/aws-cloudfront-lambda-origin.overlay.js +36 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-lambda-origin/aws-cloudfront-lambda-origin.overlay.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-lambda-origin/aws-cloudfront-lambda-origin.schema.d.ts +9 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-lambda-origin/aws-cloudfront-lambda-origin.schema.js +11 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-lambda-origin/aws-cloudfront-lambda-origin.schema.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-lambda-origin/index.d.ts +2 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-lambda-origin/index.js +3 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-lambda-origin/index.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-s3-origin/actions/add-aws-cloudfront-s3-origin.overlay.action.d.ts +26 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-s3-origin/actions/add-aws-cloudfront-s3-origin.overlay.action.js +80 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-s3-origin/actions/add-aws-cloudfront-s3-origin.overlay.action.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-s3-origin/aws-cloudfront-s3-origin.overlay.d.ts +20 -0
- package/dist/modules/{server/aws-ecs-server/overlays/aws-ecs-server-s3-access/aws-ecs-server-s3-access.overlay.js → service/aws-cloudfront-service/overlays/aws-cloudfront-s3-origin/aws-cloudfront-s3-origin.overlay.js} +10 -8
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-s3-origin/aws-cloudfront-s3-origin.overlay.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-s3-origin/aws-cloudfront-s3-origin.schema.d.ts +9 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-s3-origin/aws-cloudfront-s3-origin.schema.js +11 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-s3-origin/aws-cloudfront-s3-origin.schema.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-s3-origin/index.d.ts +2 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-s3-origin/index.js +3 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-s3-origin/index.js.map +1 -0
- package/dist/modules/service/aws-dynamodb-global-service/aws-dynamodb-global-service.module.d.ts +9 -7
- package/dist/modules/service/aws-dynamodb-global-service/aws-dynamodb-global-service.module.js +32 -11
- package/dist/modules/service/aws-dynamodb-global-service/aws-dynamodb-global-service.module.js.map +1 -1
- package/dist/modules/service/aws-dynamodb-global-service/index.schema.d.ts +3 -2
- package/dist/modules/service/aws-dynamodb-global-service/index.schema.js +3 -2
- package/dist/modules/service/aws-dynamodb-global-service/index.schema.js.map +1 -1
- package/dist/modules/service/aws-dynamodb-global-service/models/service/actions/add-aws-dynamodb-global-service-replica-region.model.action.d.ts +29 -0
- package/dist/modules/service/aws-dynamodb-global-service/models/service/actions/add-aws-dynamodb-global-service-replica-region.model.action.js +54 -0
- package/dist/modules/service/aws-dynamodb-global-service/models/service/actions/add-aws-dynamodb-global-service-replica-region.model.action.js.map +1 -0
- package/dist/modules/service/aws-dynamodb-global-service/models/service/actions/add-aws-dynamodb-global-service.model.action.js +12 -3
- package/dist/modules/service/aws-dynamodb-global-service/models/service/actions/add-aws-dynamodb-global-service.model.action.js.map +1 -1
- package/dist/modules/service/aws-dynamodb-global-service/models/service/aws-dynamodb-global-service.model.d.ts +7 -3
- package/dist/modules/service/aws-dynamodb-global-service/models/service/aws-dynamodb-global-service.model.js +14 -7
- package/dist/modules/service/aws-dynamodb-global-service/models/service/aws-dynamodb-global-service.model.js.map +1 -1
- package/dist/modules/service/aws-dynamodb-global-service/models/service/index.d.ts +1 -0
- package/dist/modules/service/aws-dynamodb-global-service/models/service/index.js +1 -0
- package/dist/modules/service/aws-dynamodb-global-service/models/service/index.js.map +1 -1
- package/dist/modules/service/aws-dynamodb-service/aws-dynamodb-service.module.d.ts +5 -4
- package/dist/modules/service/aws-dynamodb-service/aws-dynamodb-service.module.js +17 -12
- package/dist/modules/service/aws-dynamodb-service/aws-dynamodb-service.module.js.map +1 -1
- package/dist/modules/service/aws-dynamodb-service/index.schema.d.ts +1 -2
- package/dist/modules/service/aws-dynamodb-service/index.schema.js +2 -4
- package/dist/modules/service/aws-dynamodb-service/index.schema.js.map +1 -1
- package/dist/modules/service/aws-dynamodb-service/models/service/aws-dynamodb-service.model.d.ts +3 -3
- package/dist/modules/service/aws-dynamodb-service/models/service/aws-dynamodb-service.model.js +8 -7
- package/dist/modules/service/aws-dynamodb-service/models/service/aws-dynamodb-service.model.js.map +1 -1
- package/dist/modules/service/aws-ecs-alb-service/aws-ecs-alb-service.module.d.ts +20 -10
- package/dist/modules/service/aws-ecs-alb-service/aws-ecs-alb-service.module.js +23 -17
- package/dist/modules/service/aws-ecs-alb-service/aws-ecs-alb-service.module.js.map +1 -1
- package/dist/modules/service/aws-ecs-alb-service/models/service/actions/add-aws-ecs-alb-service.model.action.js +2 -2
- package/dist/modules/service/aws-ecs-alb-service/models/service/actions/add-aws-ecs-alb-service.model.action.js.map +1 -1
- package/dist/modules/service/aws-ecs-alb-service/models/service/aws-ecs-alb-service.model.d.ts +1 -5
- package/dist/modules/service/aws-ecs-alb-service/models/service/aws-ecs-alb-service.model.js +4 -22
- package/dist/modules/service/aws-ecs-alb-service/models/service/aws-ecs-alb-service.model.js.map +1 -1
- package/dist/modules/service/aws-ecs-alb-service/models/service/aws-ecs-alb-service.schema.d.ts +1 -2
- package/dist/modules/service/aws-ecs-alb-service/models/service/aws-ecs-alb-service.schema.js +0 -1
- package/dist/modules/service/aws-ecs-alb-service/models/service/aws-ecs-alb-service.schema.js.map +1 -1
- package/dist/modules/service/aws-ecs-alb-service/overlays/aws-ecs-alb-service/actions/add-aws-ecs-alb-service.overlay.action.js +7 -8
- package/dist/modules/service/aws-ecs-alb-service/overlays/aws-ecs-alb-service/actions/add-aws-ecs-alb-service.overlay.action.js.map +1 -1
- package/dist/modules/service/aws-s3-static-website-service/aws-s3-static-website-service.module.d.ts +9 -14
- package/dist/modules/service/aws-s3-static-website-service/aws-s3-static-website-service.module.js +19 -24
- package/dist/modules/service/aws-s3-static-website-service/aws-s3-static-website-service.module.js.map +1 -1
- package/dist/modules/service/aws-s3-static-website-service/index.schema.d.ts +5 -68
- package/dist/modules/service/aws-s3-static-website-service/index.schema.js +20 -127
- package/dist/modules/service/aws-s3-static-website-service/index.schema.js.map +1 -1
- package/dist/modules/service/aws-s3-static-website-service/models/service/actions/add-aws-s3-static-website-service.model.action.js +1 -83
- package/dist/modules/service/aws-s3-static-website-service/models/service/actions/add-aws-s3-static-website-service.model.action.js.map +1 -1
- package/dist/modules/service/aws-s3-static-website-service/models/service/actions/update-aws-s3-static-website-service-source-paths.model.action.d.ts +2 -1
- package/dist/modules/service/aws-s3-static-website-service/models/service/actions/update-aws-s3-static-website-service-source-paths.model.action.js +0 -15
- package/dist/modules/service/aws-s3-static-website-service/models/service/actions/update-aws-s3-static-website-service-source-paths.model.action.js.map +1 -1
- package/dist/modules/service/aws-s3-static-website-service/models/service/aws-s3-static-website-service.model.d.ts +6 -24
- package/dist/modules/service/aws-s3-static-website-service/models/service/aws-s3-static-website-service.model.js +11 -89
- package/dist/modules/service/aws-s3-static-website-service/models/service/aws-s3-static-website-service.model.js.map +1 -1
- package/dist/modules/service/aws-s3-storage-service/aws-s3-storage-service.module.d.ts +19 -8
- package/dist/modules/service/aws-s3-storage-service/aws-s3-storage-service.module.js +44 -20
- package/dist/modules/service/aws-s3-storage-service/aws-s3-storage-service.module.js.map +1 -1
- package/dist/modules/service/aws-s3-storage-service/index.schema.d.ts +53 -7
- package/dist/modules/service/aws-s3-storage-service/index.schema.js +126 -11
- package/dist/modules/service/aws-s3-storage-service/index.schema.js.map +1 -1
- package/dist/modules/service/aws-s3-storage-service/models/service/actions/add-aws-s3-storage-service.model.action.js +4 -0
- package/dist/modules/service/aws-s3-storage-service/models/service/actions/add-aws-s3-storage-service.model.action.js.map +1 -1
- package/dist/modules/service/aws-s3-storage-service/models/service/actions/update-aws-s3-storage-service-source-paths.model.action.d.ts +27 -0
- package/dist/modules/service/aws-s3-storage-service/models/service/actions/update-aws-s3-storage-service-source-paths.model.action.js +56 -0
- package/dist/modules/service/aws-s3-storage-service/models/service/actions/update-aws-s3-storage-service-source-paths.model.action.js.map +1 -0
- package/dist/modules/service/aws-s3-storage-service/models/service/aws-s3-storage-service.model.d.ts +26 -8
- package/dist/modules/service/aws-s3-storage-service/models/service/aws-s3-storage-service.model.js +56 -20
- package/dist/modules/service/aws-s3-storage-service/models/service/aws-s3-storage-service.model.js.map +1 -1
- package/dist/modules/service/aws-s3-storage-service/models/service/aws-s3-storage-service.schema.d.ts +13 -3
- package/dist/modules/service/aws-s3-storage-service/models/service/aws-s3-storage-service.schema.js +19 -3
- package/dist/modules/service/aws-s3-storage-service/models/service/aws-s3-storage-service.schema.js.map +1 -1
- package/dist/modules/service/aws-s3-storage-service/models/service/index.d.ts +1 -0
- package/dist/modules/service/aws-s3-storage-service/models/service/index.js +1 -0
- package/dist/modules/service/aws-s3-storage-service/models/service/index.js.map +1 -1
- package/dist/modules/subnet/aws-serverless-subnet/aws-serverless-subnet.module.d.ts +31 -0
- package/dist/modules/subnet/aws-serverless-subnet/aws-serverless-subnet.module.js +55 -0
- package/dist/modules/subnet/aws-serverless-subnet/aws-serverless-subnet.module.js.map +1 -0
- package/dist/modules/subnet/aws-serverless-subnet/index.d.ts +1 -0
- package/dist/modules/subnet/aws-serverless-subnet/index.js +2 -0
- package/dist/modules/subnet/aws-serverless-subnet/index.js.map +1 -0
- package/dist/modules/subnet/aws-serverless-subnet/index.schema.d.ts +17 -0
- package/dist/modules/subnet/aws-serverless-subnet/index.schema.js +46 -0
- package/dist/modules/subnet/aws-serverless-subnet/index.schema.js.map +1 -0
- package/dist/modules/subnet/aws-serverless-subnet/models/subnet/actions/add-aws-serverless-subnet.model.action.d.ts +28 -0
- package/dist/modules/subnet/aws-serverless-subnet/models/subnet/actions/add-aws-serverless-subnet.model.action.js +53 -0
- package/dist/modules/subnet/aws-serverless-subnet/models/subnet/actions/add-aws-serverless-subnet.model.action.js.map +1 -0
- package/dist/modules/subnet/aws-serverless-subnet/models/subnet/aws-serverless-subnet.model.d.ts +11 -0
- package/dist/modules/subnet/aws-serverless-subnet/models/subnet/aws-serverless-subnet.model.js +26 -0
- package/dist/modules/subnet/aws-serverless-subnet/models/subnet/aws-serverless-subnet.model.js.map +1 -0
- package/dist/modules/subnet/aws-serverless-subnet/models/subnet/aws-serverless-subnet.schema.d.ts +6 -0
- package/dist/modules/subnet/aws-serverless-subnet/models/subnet/aws-serverless-subnet.schema.js +7 -0
- package/dist/modules/subnet/aws-serverless-subnet/models/subnet/aws-serverless-subnet.schema.js.map +1 -0
- package/dist/modules/subnet/aws-serverless-subnet/models/subnet/index.d.ts +2 -0
- package/dist/modules/subnet/aws-serverless-subnet/models/subnet/index.js +3 -0
- package/dist/modules/subnet/aws-serverless-subnet/models/subnet/index.js.map +1 -0
- package/dist/modules/subnet/aws-simple-subnet/aws-simple-subnet.module.d.ts +4 -3
- package/dist/modules/subnet/aws-simple-subnet/aws-simple-subnet.module.js +7 -4
- package/dist/modules/subnet/aws-simple-subnet/aws-simple-subnet.module.js.map +1 -1
- package/dist/modules/subnet/aws-simple-subnet/models/subnet/actions/add-aws-simple-subnet.model.action.js +9 -9
- package/dist/modules/subnet/aws-simple-subnet/models/subnet/actions/add-aws-simple-subnet.model.action.js.map +1 -1
- package/dist/modules/subnet/aws-simple-subnet/overlays/aws-simple-subnet-local-filesystem-mount/actions/add-aws-simple-subnet-local-filesystem-mount.overlay.action.js +11 -9
- package/dist/modules/subnet/aws-simple-subnet/overlays/aws-simple-subnet-local-filesystem-mount/actions/add-aws-simple-subnet-local-filesystem-mount.overlay.action.js.map +1 -1
- package/dist/modules/subnet/aws-simple-subnet/overlays/aws-simple-subnet-local-filesystem-mount/aws-simple-subnet-local-filesystem-mount.overlay.d.ts +1 -0
- package/dist/modules/subnet/aws-simple-subnet/overlays/aws-simple-subnet-local-filesystem-mount/aws-simple-subnet-local-filesystem-mount.overlay.js.map +1 -1
- package/dist/resources/alb/alb.resource.js +3 -1
- package/dist/resources/alb/alb.resource.js.map +1 -1
- package/dist/resources/alb-listener/index.schema.d.ts +2 -2
- package/dist/resources/alb-listener/index.schema.js +2 -2
- package/dist/resources/alb-target-group/alb-target-group.resource.js +3 -1
- package/dist/resources/alb-target-group/alb-target-group.resource.js.map +1 -1
- package/dist/resources/cloudfront-distribution/cloudfront-behavior.schema.d.ts +136 -0
- package/dist/resources/cloudfront-distribution/cloudfront-behavior.schema.js +215 -0
- package/dist/resources/cloudfront-distribution/cloudfront-behavior.schema.js.map +1 -0
- package/dist/resources/cloudfront-distribution/cloudfront-distribution.resource.d.ts +48 -16
- package/dist/resources/cloudfront-distribution/cloudfront-distribution.resource.js +176 -96
- package/dist/resources/cloudfront-distribution/cloudfront-distribution.resource.js.map +1 -1
- package/dist/resources/cloudfront-distribution/cloudfront-origin.schema.d.ts +93 -0
- package/dist/resources/cloudfront-distribution/cloudfront-origin.schema.js +136 -0
- package/dist/resources/cloudfront-distribution/cloudfront-origin.schema.js.map +1 -0
- package/dist/resources/cloudfront-distribution/cloudfront-policy.schema.d.ts +361 -0
- package/dist/resources/cloudfront-distribution/cloudfront-policy.schema.js +467 -0
- package/dist/resources/cloudfront-distribution/cloudfront-policy.schema.js.map +1 -0
- package/dist/resources/cloudfront-distribution/cloudfront-response.schema.d.ts +29 -0
- package/dist/resources/cloudfront-distribution/cloudfront-response.schema.js +58 -0
- package/dist/resources/cloudfront-distribution/cloudfront-response.schema.js.map +1 -0
- package/dist/resources/cloudfront-distribution/index.schema.d.ts +50 -422
- package/dist/resources/cloudfront-distribution/index.schema.js +81 -618
- package/dist/resources/cloudfront-distribution/index.schema.js.map +1 -1
- package/dist/resources/cloudfront-invalidation/actions/add-cloudfront-invalidation.resource.action.js +1 -1
- package/dist/resources/cloudfront-invalidation/actions/add-cloudfront-invalidation.resource.action.js.map +1 -1
- package/dist/resources/cloudfront-invalidation/actions/update-cloudfront-invalidation.resource.action.js +1 -1
- package/dist/resources/cloudfront-invalidation/actions/update-cloudfront-invalidation.resource.action.js.map +1 -1
- package/dist/resources/cloudfront-invalidation/cloudfront-invalidation.resource.d.ts +6 -2
- package/dist/resources/cloudfront-invalidation/cloudfront-invalidation.resource.js +3 -0
- package/dist/resources/cloudfront-invalidation/cloudfront-invalidation.resource.js.map +1 -1
- package/dist/resources/cloudfront-invalidation/index.schema.d.ts +5 -2
- package/dist/resources/cloudfront-invalidation/index.schema.js +5 -2
- package/dist/resources/cloudfront-invalidation/index.schema.js.map +1 -1
- package/dist/resources/dynamodb/dynamodb.resource.js +16 -4
- package/dist/resources/dynamodb/dynamodb.resource.js.map +1 -1
- package/dist/resources/dynamodb-global/dynamodb-global.resource.js +1 -1
- package/dist/resources/dynamodb-global/dynamodb-global.resource.js.map +1 -1
- package/dist/resources/ecr/ecr-image.resource.js +4 -1
- package/dist/resources/ecr/ecr-image.resource.js.map +1 -1
- package/dist/resources/ecr-image-tag/actions/add-ecr-image-tag.resource.action.d.ts +1 -1
- package/dist/resources/ecr-image-tag/actions/add-ecr-image-tag.resource.action.js +15 -5
- package/dist/resources/ecr-image-tag/actions/add-ecr-image-tag.resource.action.js.map +1 -1
- package/dist/resources/ecr-image-tag/actions/delete-ecr-image-tag.resource.action.js +1 -1
- package/dist/resources/ecr-image-tag/actions/delete-ecr-image-tag.resource.action.js.map +1 -1
- package/dist/resources/ecr-image-tag/ecr-image-tag.resource.js +3 -1
- package/dist/resources/ecr-image-tag/ecr-image-tag.resource.js.map +1 -1
- package/dist/resources/ecr-image-tag/index.schema.d.ts +11 -0
- package/dist/resources/ecr-image-tag/index.schema.js +26 -11
- package/dist/resources/ecr-image-tag/index.schema.js.map +1 -1
- package/dist/resources/ecs-cluster/ecs-cluster.resource.js +3 -1
- package/dist/resources/ecs-cluster/ecs-cluster.resource.js.map +1 -1
- package/dist/resources/ecs-service/ecs-service.resource.js +0 -4
- package/dist/resources/ecs-service/ecs-service.resource.js.map +1 -1
- package/dist/resources/ecs-task-definition/ecs-task-definition.resource.d.ts +9 -6
- package/dist/resources/ecs-task-definition/ecs-task-definition.resource.js +18 -8
- package/dist/resources/ecs-task-definition/ecs-task-definition.resource.js.map +1 -1
- package/dist/resources/ecs-task-definition/index.schema.d.ts +5 -6
- package/dist/resources/ecs-task-definition/index.schema.js +9 -6
- package/dist/resources/ecs-task-definition/index.schema.js.map +1 -1
- package/dist/resources/efs/efs.resource.js +1 -1
- package/dist/resources/efs/efs.resource.js.map +1 -1
- package/dist/resources/efs-mount-target/index.schema.d.ts +1 -1
- package/dist/resources/efs-mount-target/index.schema.js +1 -1
- package/dist/resources/iam-role/iam-role.resource.d.ts +29 -2
- package/dist/resources/iam-role/iam-role.resource.js +163 -37
- package/dist/resources/iam-role/iam-role.resource.js.map +1 -1
- package/dist/resources/iam-role/index.schema.d.ts +45 -11
- package/dist/resources/iam-role/index.schema.js.map +1 -1
- package/dist/resources/iam-user/iam-user.resource.d.ts +23 -2
- package/dist/resources/iam-user/iam-user.resource.js +130 -27
- package/dist/resources/iam-user/iam-user.resource.js.map +1 -1
- package/dist/resources/iam-user/index.schema.d.ts +33 -5
- package/dist/resources/iam-user/index.schema.js.map +1 -1
- package/dist/resources/lambda-function/index.d.ts +1 -0
- package/dist/resources/lambda-function/index.js +2 -0
- package/dist/resources/lambda-function/index.js.map +1 -0
- package/dist/resources/lambda-function/index.schema.d.ts +75 -0
- package/dist/resources/lambda-function/index.schema.js +139 -0
- package/dist/resources/lambda-function/index.schema.js.map +1 -0
- package/dist/resources/lambda-function/lambda-function.resource.d.ts +50 -0
- package/dist/resources/lambda-function/lambda-function.resource.js +199 -0
- package/dist/resources/lambda-function/lambda-function.resource.js.map +1 -0
- package/dist/resources/nat-gateway/nat-gateway.resource.d.ts +2 -7
- package/dist/resources/nat-gateway/nat-gateway.resource.js +2 -2
- package/dist/resources/nat-gateway/nat-gateway.resource.js.map +1 -1
- package/dist/resources/s3-storage/index.schema.d.ts +118 -6
- package/dist/resources/s3-storage/index.schema.js +200 -7
- package/dist/resources/s3-storage/index.schema.js.map +1 -1
- package/dist/resources/s3-storage/s3-storage.resource.d.ts +25 -12
- package/dist/resources/s3-storage/s3-storage.resource.js +211 -110
- package/dist/resources/s3-storage/s3-storage.resource.js.map +1 -1
- package/dist/resources/s3-website/index.schema.d.ts +1 -19
- package/dist/resources/s3-website/index.schema.js +1 -34
- package/dist/resources/s3-website/index.schema.js.map +1 -1
- package/dist/resources/s3-website/s3-website.resource.d.ts +4 -31
- package/dist/resources/s3-website/s3-website.resource.js +29 -82
- package/dist/resources/s3-website/s3-website.resource.js.map +1 -1
- package/dist/resources/security-group/security-group.resource.js +13 -2
- package/dist/resources/security-group/security-group.resource.js.map +1 -1
- package/dist/services/docker/docker.service.d.ts +28 -7
- package/dist/services/docker/docker.service.js +53 -17
- package/dist/services/docker/docker.service.js.map +1 -1
- package/dist/utilities/aws-region/aws-region.utility.d.ts +15 -0
- package/dist/utilities/aws-region/aws-region.utility.js +19 -0
- package/dist/utilities/aws-region/aws-region.utility.js.map +1 -0
- package/dist/utilities/file/file.utility.d.ts +0 -4
- package/dist/utilities/file/file.utility.js +0 -6
- package/dist/utilities/file/file.utility.js.map +1 -1
- package/dist/utilities/retry/retry.utility.d.ts +5 -9
- package/dist/utilities/retry/retry.utility.js +0 -20
- package/dist/utilities/retry/retry.utility.js.map +1 -1
- package/dist/utilities/s3-file-source/s3-file-source.utility.d.ts +53 -0
- package/dist/utilities/s3-file-source/s3-file-source.utility.js +112 -0
- package/dist/utilities/s3-file-source/s3-file-source.utility.js.map +1 -0
- package/package.json +30 -10
- package/dist/anchors/aws-ecs/aws-ecs-server.anchor.d.ts +0 -12
- package/dist/anchors/aws-ecs/aws-ecs-server.anchor.js.map +0 -1
- package/dist/anchors/aws-ecs/aws-ecs-server.anchor.schema.d.ts +0 -27
- package/dist/anchors/aws-ecs/aws-ecs-server.anchor.schema.js.map +0 -1
- package/dist/anchors/aws-ecs/aws-ecs-task-definition.anchor.d.ts +0 -12
- package/dist/anchors/aws-ecs/aws-ecs-task-definition.anchor.js.map +0 -1
- package/dist/anchors/aws-ecs/aws-ecs-task-definition.anchor.schema.d.ts +0 -88
- package/dist/anchors/aws-ecs/aws-ecs-task-definition.anchor.schema.js +0 -138
- package/dist/anchors/aws-ecs/aws-ecs-task-definition.anchor.schema.js.map +0 -1
- package/dist/anchors/aws-iam/aws-iam-role.anchor.d.ts +0 -12
- package/dist/anchors/aws-iam/aws-iam-role.anchor.js.map +0 -1
- package/dist/anchors/aws-iam/aws-iam-role.anchor.schema.d.ts +0 -24
- package/dist/anchors/aws-iam/aws-iam-role.anchor.schema.js.map +0 -1
- package/dist/anchors/aws-s3-storage-service/aws-s3-storage-service-directory.anchor.d.ts +0 -12
- package/dist/anchors/aws-s3-storage-service/aws-s3-storage-service-directory.anchor.js.map +0 -1
- package/dist/anchors/aws-s3-storage-service/aws-s3-storage-service-directory.anchor.schema.js.map +0 -1
- package/dist/modules/deployment/aws-ecs-deployment/aws-ecs-deployment.module.d.ts +0 -41
- package/dist/modules/deployment/aws-ecs-deployment/aws-ecs-deployment.module.js +0 -61
- package/dist/modules/deployment/aws-ecs-deployment/aws-ecs-deployment.module.js.map +0 -1
- package/dist/modules/deployment/aws-ecs-deployment/index.d.ts +0 -1
- package/dist/modules/deployment/aws-ecs-deployment/index.js +0 -2
- package/dist/modules/deployment/aws-ecs-deployment/index.js.map +0 -1
- package/dist/modules/deployment/aws-ecs-deployment/index.schema.d.ts +0 -33
- package/dist/modules/deployment/aws-ecs-deployment/index.schema.js +0 -71
- package/dist/modules/deployment/aws-ecs-deployment/index.schema.js.map +0 -1
- package/dist/modules/deployment/aws-ecs-deployment/models/deployment/actions/add-aws-ecs-deployment.model.action.d.ts +0 -25
- package/dist/modules/deployment/aws-ecs-deployment/models/deployment/actions/add-aws-ecs-deployment.model.action.js.map +0 -1
- package/dist/modules/deployment/aws-ecs-deployment/models/deployment/aws-ecs-deployment.model.d.ts +0 -11
- package/dist/modules/deployment/aws-ecs-deployment/models/deployment/aws-ecs-deployment.model.js.map +0 -1
- package/dist/modules/deployment/aws-ecs-deployment/models/deployment/aws-ecs-deployment.schema.js +0 -7
- package/dist/modules/deployment/aws-ecs-deployment/models/deployment/aws-ecs-deployment.schema.js.map +0 -1
- package/dist/modules/deployment/aws-ecs-deployment/models/deployment/index.d.ts +0 -2
- package/dist/modules/deployment/aws-ecs-deployment/models/deployment/index.js +0 -3
- package/dist/modules/deployment/aws-ecs-deployment/models/deployment/index.js.map +0 -1
- package/dist/modules/server/aws-ecs-server/aws-ecs-server.module.d.ts +0 -58
- package/dist/modules/server/aws-ecs-server/aws-ecs-server.module.js +0 -148
- package/dist/modules/server/aws-ecs-server/aws-ecs-server.module.js.map +0 -1
- package/dist/modules/server/aws-ecs-server/index.d.ts +0 -1
- package/dist/modules/server/aws-ecs-server/index.js +0 -2
- package/dist/modules/server/aws-ecs-server/index.js.map +0 -1
- package/dist/modules/server/aws-ecs-server/index.schema.d.ts +0 -83
- package/dist/modules/server/aws-ecs-server/index.schema.js +0 -153
- package/dist/modules/server/aws-ecs-server/index.schema.js.map +0 -1
- package/dist/modules/server/aws-ecs-server/models/server/actions/add-aws-ecs-server.model.action.d.ts +0 -25
- package/dist/modules/server/aws-ecs-server/models/server/actions/add-aws-ecs-server.model.action.js +0 -71
- package/dist/modules/server/aws-ecs-server/models/server/actions/add-aws-ecs-server.model.action.js.map +0 -1
- package/dist/modules/server/aws-ecs-server/models/server/aws-ecs-server.model.d.ts +0 -11
- package/dist/modules/server/aws-ecs-server/models/server/aws-ecs-server.model.js.map +0 -1
- package/dist/modules/server/aws-ecs-server/models/server/aws-ecs-server.schema.js +0 -7
- package/dist/modules/server/aws-ecs-server/models/server/aws-ecs-server.schema.js.map +0 -1
- package/dist/modules/server/aws-ecs-server/models/server/index.d.ts +0 -2
- package/dist/modules/server/aws-ecs-server/models/server/index.js +0 -3
- package/dist/modules/server/aws-ecs-server/models/server/index.js.map +0 -1
- package/dist/modules/server/aws-ecs-server/overlays/aws-ecs-server-s3-access/actions/add-aws-ecs-server-s3-access.overlay.action.d.ts +0 -26
- package/dist/modules/server/aws-ecs-server/overlays/aws-ecs-server-s3-access/actions/add-aws-ecs-server-s3-access.overlay.action.js +0 -73
- package/dist/modules/server/aws-ecs-server/overlays/aws-ecs-server-s3-access/actions/add-aws-ecs-server-s3-access.overlay.action.js.map +0 -1
- package/dist/modules/server/aws-ecs-server/overlays/aws-ecs-server-s3-access/aws-ecs-server-s3-access.overlay.d.ts +0 -19
- package/dist/modules/server/aws-ecs-server/overlays/aws-ecs-server-s3-access/aws-ecs-server-s3-access.overlay.js.map +0 -1
- package/dist/modules/server/aws-ecs-server/overlays/aws-ecs-server-s3-access/aws-ecs-server-s3-access.schema.js.map +0 -1
- package/dist/modules/server/aws-ecs-server/overlays/aws-ecs-server-s3-access/index.d.ts +0 -2
- package/dist/modules/server/aws-ecs-server/overlays/aws-ecs-server-s3-access/index.js +0 -3
- package/dist/modules/server/aws-ecs-server/overlays/aws-ecs-server-s3-access/index.js.map +0 -1
- package/dist/utilities/common/common.utility.d.ts +0 -13
- package/dist/utilities/common/common.utility.js +0 -28
- package/dist/utilities/common/common.utility.js.map +0 -1
- package/dist/utilities/hcl/hcl.utility.d.ts +0 -34
- package/dist/utilities/hcl/hcl.utility.js +0 -163
- package/dist/utilities/hcl/hcl.utility.js.map +0 -1
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { AOverlay, Overlay } from '@quadnix/octo';
|
|
11
|
+
import { AwsCloudFrontLambdaOriginOverlaySchema } from './aws-cloudfront-lambda-origin.schema.js';
|
|
12
|
+
/**
|
|
13
|
+
* A Lambda function served by a distribution, through the function's URL.
|
|
14
|
+
*
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
let AwsCloudFrontLambdaOriginOverlay = class AwsCloudFrontLambdaOriginOverlay extends AOverlay {
|
|
18
|
+
/**
|
|
19
|
+
* @internal
|
|
20
|
+
*/
|
|
21
|
+
constructor(overlayId, properties, anchors) {
|
|
22
|
+
super(overlayId, properties, anchors);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
*/
|
|
27
|
+
async diffAnchors() {
|
|
28
|
+
return [];
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
AwsCloudFrontLambdaOriginOverlay = __decorate([
|
|
32
|
+
Overlay('@octo', 'aws-cloudfront-lambda-origin-overlay', AwsCloudFrontLambdaOriginOverlaySchema),
|
|
33
|
+
__metadata("design:paramtypes", [String, Object, Array])
|
|
34
|
+
], AwsCloudFrontLambdaOriginOverlay);
|
|
35
|
+
export { AwsCloudFrontLambdaOriginOverlay };
|
|
36
|
+
//# sourceMappingURL=aws-cloudfront-lambda-origin.overlay.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aws-cloudfront-lambda-origin.overlay.js","sourceRoot":"","sources":["../../../../../../src/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-lambda-origin/aws-cloudfront-lambda-origin.overlay.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,QAAQ,EAAkC,OAAO,EAAE,MAAM,eAAe,CAAC;AAGlF,OAAO,EAAE,sCAAsC,EAAE,MAAM,0CAA0C,CAAC;AAElG;;;;GAIG;AAEI,IAAM,gCAAgC,GAAtC,MAAM,gCAAiC,SAAQ,QAGrD;IAIC;;OAEG;IACH,YACE,SAAiB,EACjB,UAAgE,EAChE,OAA6E;QAE7E,KAAK,CAAC,SAAS,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;IACxC,CAAC;IAED;;OAEG;IACM,KAAK,CAAC,WAAW;QACxB,OAAO,EAAE,CAAC;IACZ,CAAC;CACF,CAAA;AAxBY,gCAAgC;IAD5C,OAAO,CAAC,OAAO,EAAE,sCAAsC,EAAE,sCAAsC,CAAC;;GACpF,gCAAgC,CAwB5C"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseOverlaySchema, Schema } from '@quadnix/octo';
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
export class AwsCloudFrontLambdaOriginOverlaySchema extends BaseOverlaySchema {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(...arguments);
|
|
8
|
+
this.properties = Schema();
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=aws-cloudfront-lambda-origin.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aws-cloudfront-lambda-origin.schema.js","sourceRoot":"","sources":["../../../../../../src/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-lambda-origin/aws-cloudfront-lambda-origin.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE1D;;GAEG;AACH,MAAM,OAAO,sCAAuC,SAAQ,iBAAiB;IAA7E;;QACW,eAAU,GAAG,MAAM,EAAwB,CAAC;IACvD,CAAC;CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-lambda-origin/index.ts"],"names":[],"mappings":"AAAA,OAAO,8DAA8D,CAAC;AAEtE,OAAO,EAAE,gCAAgC,EAAE,MAAM,2CAA2C,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type ActionOutputs, type Diff, type EnhancedModuleSchema, type IModelAction } from '@quadnix/octo';
|
|
2
|
+
import type { AwsCloudFrontServiceModule } from '../../../aws-cloudfront-service.module.js';
|
|
3
|
+
import { AwsCloudFrontS3OriginOverlay } from '../aws-cloudfront-s3-origin.overlay.js';
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export declare class AddAwsCloudFrontS3OriginOverlayAction implements IModelAction<AwsCloudFrontServiceModule> {
|
|
8
|
+
/**
|
|
9
|
+
* @internal
|
|
10
|
+
*/
|
|
11
|
+
filter(diff: Diff): boolean;
|
|
12
|
+
/**
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
15
|
+
handle(diff: Diff<AwsCloudFrontS3OriginOverlay>, actionInputs: EnhancedModuleSchema<AwsCloudFrontServiceModule>, actionOutputs: ActionOutputs): Promise<ActionOutputs>;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @internal
|
|
19
|
+
*/
|
|
20
|
+
export declare class AddAwsCloudFrontS3OriginOverlayActionFactory {
|
|
21
|
+
private static instance;
|
|
22
|
+
/**
|
|
23
|
+
* @internal
|
|
24
|
+
*/
|
|
25
|
+
static create(): Promise<AddAwsCloudFrontS3OriginOverlayAction>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { Action, DiffAction, Factory, MatchingResource, OverlayActionExceptionTransactionError, hasNodeName, } from '@quadnix/octo';
|
|
8
|
+
import { AwsS3StorageServiceAnchorSchema } from '../../../../../../anchors/aws-s3-storage-service/aws-s3-storage-service.anchor.schema.js';
|
|
9
|
+
import { S3StorageSchema } from '../../../../../../resources/s3-storage/index.schema.js';
|
|
10
|
+
import { AwsCloudFrontS3OriginOverlay } from '../aws-cloudfront-s3-origin.overlay.js';
|
|
11
|
+
/**
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
let AddAwsCloudFrontS3OriginOverlayAction = class AddAwsCloudFrontS3OriginOverlayAction {
|
|
15
|
+
/**
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
filter(diff) {
|
|
19
|
+
return (diff.action === DiffAction.ADD &&
|
|
20
|
+
diff.node instanceof AwsCloudFrontS3OriginOverlay &&
|
|
21
|
+
hasNodeName(diff.node, 'aws-cloudfront-s3-origin-overlay') &&
|
|
22
|
+
diff.field === 'overlayId');
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
*/
|
|
27
|
+
async handle(diff, actionInputs, actionOutputs) {
|
|
28
|
+
const { bucketName } = diff.node.properties;
|
|
29
|
+
const { distributionName, origins } = actionInputs.inputs;
|
|
30
|
+
const cloudFrontDistribution = actionInputs.resources[`cloudfront-${distributionName}`];
|
|
31
|
+
const matchingCloudFrontDistribution = new MatchingResource(cloudFrontDistribution);
|
|
32
|
+
// Find the bucket this overlay serves.
|
|
33
|
+
let matchingBucket;
|
|
34
|
+
for (const { source } of origins) {
|
|
35
|
+
const [matchingAnchor] = await source.getAnchorsMatchingSchema(AwsS3StorageServiceAnchorSchema, [], {
|
|
36
|
+
searchBoundaryMembers: false,
|
|
37
|
+
});
|
|
38
|
+
if (matchingAnchor.getSchemaInstance().properties.bucketName !== bucketName) {
|
|
39
|
+
continue;
|
|
40
|
+
}
|
|
41
|
+
[matchingBucket] = await source.getResourcesMatchingSchema(S3StorageSchema, [{ key: 'Bucket', value: bucketName }], [], { searchBoundaryMembers: false });
|
|
42
|
+
break;
|
|
43
|
+
}
|
|
44
|
+
if (!matchingBucket) {
|
|
45
|
+
throw new OverlayActionExceptionTransactionError(`No S3 storage bucket found for "${bucketName}"!`, diff, this.constructor.name);
|
|
46
|
+
}
|
|
47
|
+
// Grant the distribution access to the bucket.
|
|
48
|
+
const s3Storage = matchingBucket.getActual();
|
|
49
|
+
s3Storage.addPermission(matchingCloudFrontDistribution, '', {
|
|
50
|
+
allowRead: true,
|
|
51
|
+
allowWrite: false,
|
|
52
|
+
principalType: 'cloudfront',
|
|
53
|
+
});
|
|
54
|
+
actionOutputs[s3Storage.resourceId] = s3Storage;
|
|
55
|
+
return actionOutputs;
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
AddAwsCloudFrontS3OriginOverlayAction = __decorate([
|
|
59
|
+
Action(AwsCloudFrontS3OriginOverlay)
|
|
60
|
+
], AddAwsCloudFrontS3OriginOverlayAction);
|
|
61
|
+
export { AddAwsCloudFrontS3OriginOverlayAction };
|
|
62
|
+
/**
|
|
63
|
+
* @internal
|
|
64
|
+
*/
|
|
65
|
+
let AddAwsCloudFrontS3OriginOverlayActionFactory = class AddAwsCloudFrontS3OriginOverlayActionFactory {
|
|
66
|
+
/**
|
|
67
|
+
* @internal
|
|
68
|
+
*/
|
|
69
|
+
static async create() {
|
|
70
|
+
if (!this.instance) {
|
|
71
|
+
this.instance = new AddAwsCloudFrontS3OriginOverlayAction();
|
|
72
|
+
}
|
|
73
|
+
return this.instance;
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
AddAwsCloudFrontS3OriginOverlayActionFactory = __decorate([
|
|
77
|
+
Factory(AddAwsCloudFrontS3OriginOverlayAction)
|
|
78
|
+
], AddAwsCloudFrontS3OriginOverlayActionFactory);
|
|
79
|
+
export { AddAwsCloudFrontS3OriginOverlayActionFactory };
|
|
80
|
+
//# sourceMappingURL=add-aws-cloudfront-s3-origin.overlay.action.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add-aws-cloudfront-s3-origin.overlay.action.js","sourceRoot":"","sources":["../../../../../../../src/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-s3-origin/actions/add-aws-cloudfront-s3-origin.overlay.action.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EACL,MAAM,EAGN,UAAU,EAEV,OAAO,EAEP,gBAAgB,EAChB,sCAAsC,EACtC,WAAW,GACZ,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,+BAA+B,EAAE,MAAM,0FAA0F,CAAC;AAG3I,OAAO,EAAE,eAAe,EAAE,MAAM,wDAAwD,CAAC;AAEzF,OAAO,EAAE,4BAA4B,EAAE,MAAM,wCAAwC,CAAC;AAEtF;;GAEG;AAEI,IAAM,qCAAqC,GAA3C,MAAM,qCAAqC;IAChD;;OAEG;IACH,MAAM,CAAC,IAAU;QACf,OAAO,CACL,IAAI,CAAC,MAAM,KAAK,UAAU,CAAC,GAAG;YAC9B,IAAI,CAAC,IAAI,YAAY,4BAA4B;YACjD,WAAW,CAAC,IAAI,CAAC,IAAI,EAAE,kCAAkC,CAAC;YAC1D,IAAI,CAAC,KAAK,KAAK,WAAW,CAC3B,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CACV,IAAwC,EACxC,YAA8D,EAC9D,aAA4B;QAE5B,MAAM,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC;QAC5C,MAAM,EAAE,gBAAgB,EAAE,OAAO,EAAE,GAAG,YAAY,CAAC,MAAM,CAAC;QAE1D,MAAM,sBAAsB,GAAG,YAAY,CAAC,SAAS,CAAC,cAAc,gBAAgB,EAAE,CAA2B,CAAC;QAClH,MAAM,8BAA8B,GAAG,IAAI,gBAAgB,CAAC,sBAAsB,CAAC,CAAC;QAEpF,uCAAuC;QACvC,IAAI,cAA6D,CAAC;QAClE,KAAK,MAAM,EAAE,MAAM,EAAE,IAAI,OAAO,EAAE,CAAC;YACjC,MAAM,CAAC,cAAc,CAAC,GAAG,MAAM,MAAM,CAAC,wBAAwB,CAAC,+BAA+B,EAAE,EAAE,EAAE;gBAClG,qBAAqB,EAAE,KAAK;aAC7B,CAAC,CAAC;YACH,IAAI,cAAc,CAAC,iBAAiB,EAAE,CAAC,UAAU,CAAC,UAAU,KAAK,UAAU,EAAE,CAAC;gBAC5E,SAAS;YACX,CAAC;YAED,CAAC,cAAc,CAAC,GAAG,MAAM,MAAM,CAAC,0BAA0B,CACxD,eAAe,EACf,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,EACtC,EAAE,EACF,EAAE,qBAAqB,EAAE,KAAK,EAAE,CACjC,CAAC;YACF,MAAM;QACR,CAAC;QACD,IAAI,CAAC,cAAc,EAAE,CAAC;YACpB,MAAM,IAAI,sCAAsC,CAC9C,mCAAmC,UAAU,IAAI,EACjD,IAAI,EACJ,IAAI,CAAC,WAAW,CAAC,IAAI,CACtB,CAAC;QACJ,CAAC;QAED,+CAA+C;QAC/C,MAAM,SAAS,GAAG,cAAc,CAAC,SAAS,EAAe,CAAC;QAC1D,SAAS,CAAC,aAAa,CAAC,8BAA8B,EAAE,EAAE,EAAE;YAC1D,SAAS,EAAE,IAAI;YACf,UAAU,EAAE,KAAK;YACjB,aAAa,EAAE,YAAY;SAC5B,CAAC,CAAC;QACH,aAAa,CAAC,SAAS,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC;QAEhD,OAAO,aAAa,CAAC;IACvB,CAAC;CACF,CAAA;AAhEY,qCAAqC;IADjD,MAAM,CAAC,4BAA4B,CAAC;GACxB,qCAAqC,CAgEjD;;AAED;;GAEG;AAEI,IAAM,4CAA4C,GAAlD,MAAM,4CAA4C;IAGvD;;OAEG;IACH,MAAM,CAAC,KAAK,CAAC,MAAM;QACjB,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;YACnB,IAAI,CAAC,QAAQ,GAAG,IAAI,qCAAqC,EAAE,CAAC;QAC9D,CAAC;QACD,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;CACF,CAAA;AAZY,4CAA4C;IADxD,OAAO,CAAwC,qCAAqC,CAAC;GACzE,4CAA4C,CAYxD"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { AOverlay, type Diff, type MatchingAnchor } from '@quadnix/octo';
|
|
2
|
+
import type { AwsCloudFrontAnchor } from '../../../../../anchors/aws-cloudfront/aws-cloudfront.anchor.js';
|
|
3
|
+
import type { AwsS3StorageServiceAnchorSchema } from '../../../../../anchors/aws-s3-storage-service/aws-s3-storage-service.anchor.schema.js';
|
|
4
|
+
import { AwsCloudFrontS3OriginOverlaySchema } from './aws-cloudfront-s3-origin.schema.js';
|
|
5
|
+
/**
|
|
6
|
+
* An S3 bucket served by a distribution, through origin access control.
|
|
7
|
+
*
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
export declare class AwsCloudFrontS3OriginOverlay extends AOverlay<AwsCloudFrontS3OriginOverlaySchema, AwsCloudFrontS3OriginOverlay> {
|
|
11
|
+
properties: AwsCloudFrontS3OriginOverlaySchema['properties'];
|
|
12
|
+
/**
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
15
|
+
constructor(overlayId: string, properties: AwsCloudFrontS3OriginOverlaySchema['properties'], anchors: [AwsCloudFrontAnchor, MatchingAnchor<AwsS3StorageServiceAnchorSchema>]);
|
|
16
|
+
/**
|
|
17
|
+
* @internal
|
|
18
|
+
*/
|
|
19
|
+
diffAnchors(): Promise<Diff[]>;
|
|
20
|
+
}
|
|
@@ -7,12 +7,14 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
import { AOverlay,
|
|
11
|
-
import {
|
|
10
|
+
import { AOverlay, Overlay } from '@quadnix/octo';
|
|
11
|
+
import { AwsCloudFrontS3OriginOverlaySchema } from './aws-cloudfront-s3-origin.schema.js';
|
|
12
12
|
/**
|
|
13
|
+
* An S3 bucket served by a distribution, through origin access control.
|
|
14
|
+
*
|
|
13
15
|
* @internal
|
|
14
16
|
*/
|
|
15
|
-
let
|
|
17
|
+
let AwsCloudFrontS3OriginOverlay = class AwsCloudFrontS3OriginOverlay extends AOverlay {
|
|
16
18
|
/**
|
|
17
19
|
* @internal
|
|
18
20
|
*/
|
|
@@ -26,9 +28,9 @@ let AwsEcsServerS3AccessOverlay = class AwsEcsServerS3AccessOverlay extends AOve
|
|
|
26
28
|
return [];
|
|
27
29
|
}
|
|
28
30
|
};
|
|
29
|
-
|
|
30
|
-
Overlay('@octo', 'aws-
|
|
31
|
+
AwsCloudFrontS3OriginOverlay = __decorate([
|
|
32
|
+
Overlay('@octo', 'aws-cloudfront-s3-origin-overlay', AwsCloudFrontS3OriginOverlaySchema),
|
|
31
33
|
__metadata("design:paramtypes", [String, Object, Array])
|
|
32
|
-
],
|
|
33
|
-
export {
|
|
34
|
-
//# sourceMappingURL=aws-
|
|
34
|
+
], AwsCloudFrontS3OriginOverlay);
|
|
35
|
+
export { AwsCloudFrontS3OriginOverlay };
|
|
36
|
+
//# sourceMappingURL=aws-cloudfront-s3-origin.overlay.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aws-cloudfront-s3-origin.overlay.js","sourceRoot":"","sources":["../../../../../../src/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-s3-origin/aws-cloudfront-s3-origin.overlay.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,QAAQ,EAAkC,OAAO,EAAE,MAAM,eAAe,CAAC;AAGlF,OAAO,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAC;AAE1F;;;;GAIG;AAEI,IAAM,4BAA4B,GAAlC,MAAM,4BAA6B,SAAQ,QAGjD;IAGC;;OAEG;IACH,YACE,SAAiB,EACjB,UAA4D,EAC5D,OAA+E;QAE/E,KAAK,CAAC,SAAS,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;IACxC,CAAC;IAED;;OAEG;IACM,KAAK,CAAC,WAAW;QACxB,OAAO,EAAE,CAAC;IACZ,CAAC;CACF,CAAA;AAvBY,4BAA4B;IADxC,OAAO,CAAC,OAAO,EAAE,kCAAkC,EAAE,kCAAkC,CAAC;;GAC5E,4BAA4B,CAuBxC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseOverlaySchema, Schema } from '@quadnix/octo';
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
export class AwsCloudFrontS3OriginOverlaySchema extends BaseOverlaySchema {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(...arguments);
|
|
8
|
+
this.properties = Schema();
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=aws-cloudfront-s3-origin.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aws-cloudfront-s3-origin.schema.js","sourceRoot":"","sources":["../../../../../../src/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-s3-origin/aws-cloudfront-s3-origin.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE1D;;GAEG;AACH,MAAM,OAAO,kCAAmC,SAAQ,iBAAiB;IAAzE;;QACW,eAAU,GAAG,MAAM,EAA0B,CAAC;IACzD,CAAC;CAAA"}
|
package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-s3-origin/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-s3-origin/index.ts"],"names":[],"mappings":"AAAA,OAAO,0DAA0D,CAAC;AAElE,OAAO,EAAE,4BAA4B,EAAE,MAAM,uCAAuC,CAAC"}
|
package/dist/modules/service/aws-dynamodb-global-service/aws-dynamodb-global-service.module.d.ts
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
import { AModule
|
|
1
|
+
import { AModule } from '@quadnix/octo';
|
|
2
2
|
import { AwsDynamoDBGlobalServiceModuleSchema } from './index.schema.js';
|
|
3
3
|
import { AwsDynamoDBGlobalService } from './models/service/index.js';
|
|
4
4
|
/**
|
|
5
5
|
* `AwsDynamoDBGlobalServiceModule` is a global DynamoDB AWS service module that provides an implementation
|
|
6
|
-
* for the `Service` model. It manages replicas of a global DynamoDB table.
|
|
6
|
+
* for the `Service` model. It manages replicas of a global DynamoDB table. The global table sits under
|
|
7
|
+
* the table it replicates, with an edge to each region it is replicated into.
|
|
7
8
|
*
|
|
8
9
|
* @example
|
|
9
10
|
* TypeScript
|
|
10
11
|
* ```ts
|
|
12
|
+
* import { type Region, type Service, stub } from '@quadnix/octo';
|
|
11
13
|
* import { AwsDynamoDBGlobalServiceModule } from '@quadnix/octo-aws-cdk/modules/service/aws-dynamodb-global-service';
|
|
12
14
|
*
|
|
13
15
|
* octo.loadModule(AwsDynamoDBGlobalServiceModule, 'my-global-table-module', {
|
|
14
|
-
* dynamoDBService:
|
|
15
|
-
* replicas: [{ region:
|
|
16
|
+
* dynamoDBService: stub<Service>('${{my-dynamodb-module.model.service}}'),
|
|
17
|
+
* replicas: [{ region: stub<Region>('${{my-replica-region-module.model.region}}'), tags: { key1: 'value1' } }],
|
|
16
18
|
* });
|
|
17
19
|
* ```
|
|
18
20
|
*
|
|
@@ -26,14 +28,14 @@ import { AwsDynamoDBGlobalService } from './models/service/index.js';
|
|
|
26
28
|
*/
|
|
27
29
|
export declare class AwsDynamoDBGlobalServiceModule extends AModule<AwsDynamoDBGlobalServiceModuleSchema, AwsDynamoDBGlobalService> {
|
|
28
30
|
/**
|
|
29
|
-
*
|
|
31
|
+
* Validates the replica regions, creates the global table service over an existing DynamoDB table,
|
|
32
|
+
* and anchors it for its replicas.
|
|
30
33
|
*/
|
|
31
34
|
onInit(inputs: AwsDynamoDBGlobalServiceModuleSchema): Promise<AwsDynamoDBGlobalService>;
|
|
32
35
|
/**
|
|
33
|
-
* Resolves the
|
|
36
|
+
* Resolves the name of the table being replicated.
|
|
34
37
|
*/
|
|
35
38
|
registerMetadata(inputs: AwsDynamoDBGlobalServiceModuleSchema): Promise<{
|
|
36
|
-
app: App;
|
|
37
39
|
tableName: string;
|
|
38
40
|
}>;
|
|
39
41
|
}
|
package/dist/modules/service/aws-dynamodb-global-service/aws-dynamodb-global-service.module.js
CHANGED
|
@@ -4,23 +4,27 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
-
import {
|
|
7
|
+
import { isDeepStrictEqual } from 'node:util';
|
|
8
|
+
import { AModule, Module, ModuleError } from '@quadnix/octo';
|
|
8
9
|
import { AwsDynamoDBGlobalAnchor } from '../../../anchors/aws-dynamodb/aws-dynamodb-global.anchor.js';
|
|
9
10
|
import { AwsDynamoDBAnchorSchema } from '../../../anchors/aws-dynamodb/aws-dynamodb.anchor.schema.js';
|
|
11
|
+
import { AwsRegionAnchorSchema } from '../../../anchors/aws-region/aws-region.anchor.schema.js';
|
|
10
12
|
import { AwsDynamoDBGlobalServiceModuleSchema } from './index.schema.js';
|
|
11
13
|
import { AwsDynamoDBGlobalService } from './models/service/index.js';
|
|
12
14
|
/**
|
|
13
15
|
* `AwsDynamoDBGlobalServiceModule` is a global DynamoDB AWS service module that provides an implementation
|
|
14
|
-
* for the `Service` model. It manages replicas of a global DynamoDB table.
|
|
16
|
+
* for the `Service` model. It manages replicas of a global DynamoDB table. The global table sits under
|
|
17
|
+
* the table it replicates, with an edge to each region it is replicated into.
|
|
15
18
|
*
|
|
16
19
|
* @example
|
|
17
20
|
* TypeScript
|
|
18
21
|
* ```ts
|
|
22
|
+
* import { type Region, type Service, stub } from '@quadnix/octo';
|
|
19
23
|
* import { AwsDynamoDBGlobalServiceModule } from '@quadnix/octo-aws-cdk/modules/service/aws-dynamodb-global-service';
|
|
20
24
|
*
|
|
21
25
|
* octo.loadModule(AwsDynamoDBGlobalServiceModule, 'my-global-table-module', {
|
|
22
|
-
* dynamoDBService:
|
|
23
|
-
* replicas: [{ region:
|
|
26
|
+
* dynamoDBService: stub<Service>('${{my-dynamodb-module.model.service}}'),
|
|
27
|
+
* replicas: [{ region: stub<Region>('${{my-replica-region-module.model.region}}'), tags: { key1: 'value1' } }],
|
|
24
28
|
* });
|
|
25
29
|
* ```
|
|
26
30
|
*
|
|
@@ -34,31 +38,48 @@ import { AwsDynamoDBGlobalService } from './models/service/index.js';
|
|
|
34
38
|
*/
|
|
35
39
|
let AwsDynamoDBGlobalServiceModule = class AwsDynamoDBGlobalServiceModule extends AModule {
|
|
36
40
|
/**
|
|
37
|
-
*
|
|
41
|
+
* Validates the replica regions, creates the global table service over an existing DynamoDB table,
|
|
42
|
+
* and anchors it for its replicas.
|
|
38
43
|
*/
|
|
39
44
|
async onInit(inputs) {
|
|
40
|
-
const {
|
|
45
|
+
const { tableName } = await this.registerMetadata(inputs);
|
|
46
|
+
// Validate replica regions.
|
|
47
|
+
const tableRegions = (inputs.dynamoDBService.getParents()['region'] || []).map((d) => d.to);
|
|
48
|
+
const replicaTagsByAwsRegionId = {};
|
|
49
|
+
for (const { region, tags = {} } of inputs.replicas) {
|
|
50
|
+
if (tableRegions.includes(region)) {
|
|
51
|
+
throw new ModuleError(`Replica region "${region.regionId}" is the region the table sits in!`, this.constructor.name);
|
|
52
|
+
}
|
|
53
|
+
const [matchingAnchor] = await region.getAnchorsMatchingSchema(AwsRegionAnchorSchema, [], {
|
|
54
|
+
searchBoundaryMembers: false,
|
|
55
|
+
});
|
|
56
|
+
const awsRegionId = matchingAnchor.getSchemaInstance().properties.awsRegionId;
|
|
57
|
+
if (awsRegionId in replicaTagsByAwsRegionId && !isDeepStrictEqual(replicaTagsByAwsRegionId[awsRegionId], tags)) {
|
|
58
|
+
throw new ModuleError(`Replicas in AWS region "${awsRegionId}" share one table, so they must have the same tags!`, this.constructor.name);
|
|
59
|
+
}
|
|
60
|
+
replicaTagsByAwsRegionId[awsRegionId] = tags;
|
|
61
|
+
}
|
|
41
62
|
// Create a new global DynamoDB.
|
|
42
|
-
const service = new AwsDynamoDBGlobalService(tableName);
|
|
43
|
-
|
|
63
|
+
const service = new AwsDynamoDBGlobalService(tableName, inputs.dynamoDBService);
|
|
64
|
+
for (const { region } of inputs.replicas) {
|
|
65
|
+
service.addReplicaRegion(region);
|
|
66
|
+
}
|
|
44
67
|
// Add anchors.
|
|
45
68
|
const dynamoDBGlobalAnchor = new AwsDynamoDBGlobalAnchor('AwsDynamoDBGlobalAnchor', { TableName: tableName }, service);
|
|
46
69
|
service.addAnchor(dynamoDBGlobalAnchor);
|
|
47
70
|
return service;
|
|
48
71
|
}
|
|
49
72
|
/**
|
|
50
|
-
* Resolves the
|
|
73
|
+
* Resolves the name of the table being replicated.
|
|
51
74
|
*/
|
|
52
75
|
async registerMetadata(inputs) {
|
|
53
76
|
const dynamoDBService = inputs.dynamoDBService;
|
|
54
|
-
const app = dynamoDBService.getParents()['app'][0].to;
|
|
55
77
|
// Get AWS DynamoDB table name.
|
|
56
78
|
const [matchingAnchor] = await dynamoDBService.getAnchorsMatchingSchema(AwsDynamoDBAnchorSchema, [], {
|
|
57
79
|
searchBoundaryMembers: false,
|
|
58
80
|
});
|
|
59
81
|
const tableName = matchingAnchor.getSchemaInstance().properties.TableName;
|
|
60
82
|
return {
|
|
61
|
-
app,
|
|
62
83
|
tableName,
|
|
63
84
|
};
|
|
64
85
|
}
|
package/dist/modules/service/aws-dynamodb-global-service/aws-dynamodb-global-service.module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aws-dynamodb-global-service.module.js","sourceRoot":"","sources":["../../../../src/modules/service/aws-dynamodb-global-service/aws-dynamodb-global-service.module.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"aws-dynamodb-global-service.module.js","sourceRoot":"","sources":["../../../../src/modules/service/aws-dynamodb-global-service/aws-dynamodb-global-service.module.ts"],"names":[],"mappings":"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"}
|
|
@@ -8,11 +8,12 @@ import { Region, type Service } from '@quadnix/octo';
|
|
|
8
8
|
*/
|
|
9
9
|
declare class DynamoDBGlobalReplicaSchema {
|
|
10
10
|
/**
|
|
11
|
-
* The region this replica lives in. It
|
|
11
|
+
* The region this replica lives in. It cannot be the region the table sits in. Regions in one AWS
|
|
12
|
+
* region share one replica, and a region in the table's own AWS region gets none.
|
|
12
13
|
*/
|
|
13
14
|
region: Region;
|
|
14
15
|
/**
|
|
15
|
-
* Tags to apply to this replica.
|
|
16
|
+
* Tags to apply to this replica. Replicas in one AWS region must have the same tags.
|
|
16
17
|
*/
|
|
17
18
|
tags?: {
|
|
18
19
|
[key: string]: string;
|
|
@@ -20,11 +20,12 @@ import { AwsRegionAnchorSchema } from '../../../anchors/aws-region/aws-region.an
|
|
|
20
20
|
class DynamoDBGlobalReplicaSchema {
|
|
21
21
|
constructor() {
|
|
22
22
|
/**
|
|
23
|
-
* The region this replica lives in. It
|
|
23
|
+
* The region this replica lives in. It cannot be the region the table sits in. Regions in one AWS
|
|
24
|
+
* region share one replica, and a region in the table's own AWS region gets none.
|
|
24
25
|
*/
|
|
25
26
|
this.region = Schema();
|
|
26
27
|
/**
|
|
27
|
-
* Tags to apply to this replica.
|
|
28
|
+
* Tags to apply to this replica. Replicas in one AWS region must have the same tags.
|
|
28
29
|
*/
|
|
29
30
|
this.tags = Schema({});
|
|
30
31
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.schema.js","sourceRoot":"","sources":["../../../../src/modules/service/aws-dynamodb-global-service/index.schema.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAgB,aAAa,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACpG,OAAO,EAAE,uBAAuB,EAAE,MAAM,6DAA6D,CAAC;AACtG,OAAO,EAAE,qBAAqB,EAAE,MAAM,yDAAyD,CAAC;AAEhG;;;;;;GAMG;AACH,MAAM,2BAA2B;IAAjC;QACE
|
|
1
|
+
{"version":3,"file":"index.schema.js","sourceRoot":"","sources":["../../../../src/modules/service/aws-dynamodb-global-service/index.schema.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAgB,aAAa,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACpG,OAAO,EAAE,uBAAuB,EAAE,MAAM,6DAA6D,CAAC;AACtG,OAAO,EAAE,qBAAqB,EAAE,MAAM,yDAAyD,CAAC;AAEhG;;;;;;GAMG;AACH,MAAM,2BAA2B;IAAjC;QACE;;;WAGG;QAYH,WAAM,GAAG,MAAM,EAAU,CAAC;QAE1B;;WAEG;QAMH,SAAI,GAAI,MAAM,CAA4B,EAAE,CAAC,CAAC;IAChD,CAAC;CAAA;AAXC;IAXC,QAAQ,CAAC;QACR;YACE,OAAO,EAAE;gBACP,OAAO,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM,EAAE,qBAAqB,EAAE,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE;aAC/E;SACF;QACD;YACE,QAAQ,EAAE,CAAC,KAA4C,EAAkB,EAAE,CAAC,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;YAC3F,OAAO,EAAE,EAAE,QAAQ,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE,EAAE;SAChD;KACF,CAAC;;2DACwB;AAU1B;IALC,QAAQ,CAAC;QACR,QAAQ,EAAE,CAAC,KAA0C,EAAY,EAAE,CACjE,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE;QAC/D,OAAO,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE;KAC1B,CAAC;;yDAC4C;AAGhD;;;;;;;;;GASG;AACH,MAAM,OAAO,oCAAoC;IAAjD;QACE;;WAEG;QAYH,oBAAe,GAAG,MAAM,EAAW,CAAC;QAEpC;;WAEG;QAYH,aAAQ,GAAG,MAAM,EAAiC,CAAC;IACrD,CAAC;CAAA;AAjBC;IAXC,QAAQ,CAAC;QACR;YACE,OAAO,EAAE;gBACP,OAAO,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM,EAAE,uBAAuB,EAAE,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE;aAClF;SACF;QACD;YACE,QAAQ,EAAE,CAAC,KAA8D,EAAmB,EAAE,CAAC,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;YAC9G,OAAO,EAAE,EAAE,QAAQ,EAAE,EAAE,MAAM,EAAE,aAAa,EAAE,EAAE;SACjD;KACF,CAAC;;6EACkC;AAgBpC;IAXC,QAAQ,CAAU;QACjB;YACE,kCAAkC;YAClC,QAAQ,EAAE,CAAC,KAAuD,EAAmC,EAAE,CAAC,CAAC,KAAK,CAAC;YAC/G,OAAO,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE;SAC1B;QACD;YACE,QAAQ,EAAE,CAAC,KAAuD,EAAiC,EAAE,CAAC,KAAK;YAC3G,OAAO,EAAE,EAAE,QAAQ,EAAE,EAAE,MAAM,EAAE,2BAA2B,EAAE,EAAE;SAC/D;KACF,CAAC;;sEACiD"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type ActionOutputs, type Diff, type EnhancedModuleSchema, type IModelAction } from '@quadnix/octo';
|
|
2
|
+
import type { AwsDynamoDBGlobalServiceModule } from '../../../aws-dynamodb-global-service.module.js';
|
|
3
|
+
import { AwsDynamoDBGlobalService } from '../aws-dynamodb-global-service.model.js';
|
|
4
|
+
/**
|
|
5
|
+
* A link to a replica region creates nothing. `AddAwsDynamoDBGlobalServiceModelAction` creates every
|
|
6
|
+
* replica.
|
|
7
|
+
*
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
export declare class AddAwsDynamoDBGlobalServiceReplicaRegionModelAction implements IModelAction<AwsDynamoDBGlobalServiceModule> {
|
|
11
|
+
/**
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
filter(diff: Diff): boolean;
|
|
15
|
+
/**
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
handle(_diff: Diff<AwsDynamoDBGlobalService>, _actionInputs: EnhancedModuleSchema<AwsDynamoDBGlobalServiceModule>, actionOutputs: ActionOutputs): Promise<ActionOutputs>;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @internal
|
|
22
|
+
*/
|
|
23
|
+
export declare class AddAwsDynamoDBGlobalServiceReplicaRegionModelActionFactory {
|
|
24
|
+
private static instance;
|
|
25
|
+
/**
|
|
26
|
+
* @internal
|
|
27
|
+
*/
|
|
28
|
+
static create(): Promise<AddAwsDynamoDBGlobalServiceReplicaRegionModelAction>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { Action, DiffAction, Factory, hasNodeName, } from '@quadnix/octo';
|
|
8
|
+
import { AwsDynamoDBGlobalService } from '../aws-dynamodb-global-service.model.js';
|
|
9
|
+
/**
|
|
10
|
+
* A link to a replica region creates nothing. `AddAwsDynamoDBGlobalServiceModelAction` creates every
|
|
11
|
+
* replica.
|
|
12
|
+
*
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
15
|
+
let AddAwsDynamoDBGlobalServiceReplicaRegionModelAction = class AddAwsDynamoDBGlobalServiceReplicaRegionModelAction {
|
|
16
|
+
/**
|
|
17
|
+
* @internal
|
|
18
|
+
*/
|
|
19
|
+
filter(diff) {
|
|
20
|
+
return (diff.action === DiffAction.ADD &&
|
|
21
|
+
diff.node instanceof AwsDynamoDBGlobalService &&
|
|
22
|
+
hasNodeName(diff.node, 'service') &&
|
|
23
|
+
diff.field === 'sibling');
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @internal
|
|
27
|
+
*/
|
|
28
|
+
async handle(_diff, _actionInputs, actionOutputs) {
|
|
29
|
+
return actionOutputs;
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
AddAwsDynamoDBGlobalServiceReplicaRegionModelAction = __decorate([
|
|
33
|
+
Action(AwsDynamoDBGlobalService)
|
|
34
|
+
], AddAwsDynamoDBGlobalServiceReplicaRegionModelAction);
|
|
35
|
+
export { AddAwsDynamoDBGlobalServiceReplicaRegionModelAction };
|
|
36
|
+
/**
|
|
37
|
+
* @internal
|
|
38
|
+
*/
|
|
39
|
+
let AddAwsDynamoDBGlobalServiceReplicaRegionModelActionFactory = class AddAwsDynamoDBGlobalServiceReplicaRegionModelActionFactory {
|
|
40
|
+
/**
|
|
41
|
+
* @internal
|
|
42
|
+
*/
|
|
43
|
+
static async create() {
|
|
44
|
+
if (!this.instance) {
|
|
45
|
+
this.instance = new AddAwsDynamoDBGlobalServiceReplicaRegionModelAction();
|
|
46
|
+
}
|
|
47
|
+
return this.instance;
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
AddAwsDynamoDBGlobalServiceReplicaRegionModelActionFactory = __decorate([
|
|
51
|
+
Factory(AddAwsDynamoDBGlobalServiceReplicaRegionModelAction)
|
|
52
|
+
], AddAwsDynamoDBGlobalServiceReplicaRegionModelActionFactory);
|
|
53
|
+
export { AddAwsDynamoDBGlobalServiceReplicaRegionModelActionFactory };
|
|
54
|
+
//# sourceMappingURL=add-aws-dynamodb-global-service-replica-region.model.action.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add-aws-dynamodb-global-service-replica-region.model.action.js","sourceRoot":"","sources":["../../../../../../../src/modules/service/aws-dynamodb-global-service/models/service/actions/add-aws-dynamodb-global-service-replica-region.model.action.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EACL,MAAM,EAGN,UAAU,EAEV,OAAO,EAEP,WAAW,GACZ,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,wBAAwB,EAAE,MAAM,yCAAyC,CAAC;AAEnF;;;;;GAKG;AAEI,IAAM,mDAAmD,GAAzD,MAAM,mDAAmD;IAG9D;;OAEG;IACH,MAAM,CAAC,IAAU;QACf,OAAO,CACL,IAAI,CAAC,MAAM,KAAK,UAAU,CAAC,GAAG;YAC9B,IAAI,CAAC,IAAI,YAAY,wBAAwB;YAC7C,WAAW,CAAC,IAAI,CAAC,IAAI,EAAE,SAAS,CAAC;YACjC,IAAI,CAAC,KAAK,KAAK,SAAS,CACzB,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CACV,KAAqC,EACrC,aAAmE,EACnE,aAA4B;QAE5B,OAAO,aAAa,CAAC;IACvB,CAAC;CACF,CAAA;AAzBY,mDAAmD;IAD/D,MAAM,CAAC,wBAAwB,CAAC;GACpB,mDAAmD,CAyB/D;;AAED;;GAEG;AAEI,IAAM,0DAA0D,GAAhE,MAAM,0DAA0D;IAGrE;;OAEG;IACH,MAAM,CAAC,KAAK,CAAC,MAAM;QACjB,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;YACnB,IAAI,CAAC,QAAQ,GAAG,IAAI,mDAAmD,EAAE,CAAC;QAC5E,CAAC;QACD,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;CACF,CAAA;AAZY,0DAA0D;IADtE,OAAO,CAAsD,mDAAmD,CAAC;GACrG,0DAA0D,CAYtE"}
|
|
@@ -28,9 +28,8 @@ let AddAwsDynamoDBGlobalServiceModelAction = class AddAwsDynamoDBGlobalServiceMo
|
|
|
28
28
|
async handle(diff, actionInputs, actionOutputs) {
|
|
29
29
|
const { tableName } = diff.node;
|
|
30
30
|
const { dynamoDBService: service, replicas } = actionInputs.inputs;
|
|
31
|
-
const [matchingDynamoDBResource] = await service.getResourcesMatchingSchema(DynamoDBSchema, [
|
|
32
|
-
|
|
33
|
-
]);
|
|
31
|
+
const [matchingDynamoDBResource] = await service.getResourcesMatchingSchema(DynamoDBSchema, [{ key: 'TableName', value: tableName }], [], { searchBoundaryMembers: false });
|
|
32
|
+
const { awsAccountId: tableAwsAccountId, awsRegionId: tableAwsRegionId } = matchingDynamoDBResource.getSchemaInstance().properties;
|
|
34
33
|
const globalReplicas = [];
|
|
35
34
|
for (const replica of replicas) {
|
|
36
35
|
// Get AWS Account ID.
|
|
@@ -41,12 +40,22 @@ let AddAwsDynamoDBGlobalServiceModelAction = class AddAwsDynamoDBGlobalServiceMo
|
|
|
41
40
|
searchBoundaryMembers: false,
|
|
42
41
|
});
|
|
43
42
|
const awsRegionId = matchingAnchor.getSchemaInstance().properties.awsRegionId;
|
|
43
|
+
// One replica per AWS region, and none where the table itself already is.
|
|
44
|
+
if (awsAccountId === tableAwsAccountId && awsRegionId === tableAwsRegionId) {
|
|
45
|
+
continue;
|
|
46
|
+
}
|
|
47
|
+
if (globalReplicas.some((r) => r.awsAccountId === awsAccountId && r.awsRegionId === awsRegionId)) {
|
|
48
|
+
continue;
|
|
49
|
+
}
|
|
44
50
|
globalReplicas.push({
|
|
45
51
|
awsAccountId,
|
|
46
52
|
awsRegionId,
|
|
47
53
|
tags: replica.tags || {},
|
|
48
54
|
});
|
|
49
55
|
}
|
|
56
|
+
if (globalReplicas.length === 0) {
|
|
57
|
+
return actionOutputs;
|
|
58
|
+
}
|
|
50
59
|
const dynamoDbGlobal = new DynamoDBGlobal(`dynamodb-global-${tableName}`, {
|
|
51
60
|
replicas: globalReplicas,
|
|
52
61
|
}, [matchingDynamoDBResource]);
|