@quadnix/octo-aws-cdk 0.1.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/factories/aws-client.factory.d.ts +28 -0
- package/dist/factories/aws-client.factory.js +36 -0
- package/dist/factories/aws-client.factory.js.map +1 -1
- 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 -8
- package/dist/modules/service/aws-s3-static-website-service/aws-s3-static-website-service.module.js +18 -13
- 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 -10
- package/dist/modules/service/aws-s3-static-website-service/index.schema.js +20 -31
- 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 +6 -3
- 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 +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.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 -86
- 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 +129 -0
- package/dist/resources/cloudfront-distribution/cloudfront-distribution.resource.js +693 -0
- package/dist/resources/cloudfront-distribution/cloudfront-distribution.resource.js.map +1 -0
- 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.d.ts +1 -0
- package/dist/resources/cloudfront-distribution/index.js +2 -0
- package/dist/resources/cloudfront-distribution/index.js.map +1 -0
- package/dist/resources/cloudfront-distribution/index.schema.d.ts +150 -0
- package/dist/resources/cloudfront-distribution/index.schema.js +217 -0
- package/dist/resources/cloudfront-distribution/index.schema.js.map +1 -0
- package/dist/resources/cloudfront-invalidation/actions/add-cloudfront-invalidation.resource.action.d.ts +36 -0
- package/dist/resources/cloudfront-invalidation/actions/add-cloudfront-invalidation.resource.action.js +90 -0
- package/dist/resources/cloudfront-invalidation/actions/add-cloudfront-invalidation.resource.action.js.map +1 -0
- package/dist/resources/cloudfront-invalidation/actions/delete-cloudfront-invalidation.resource.action.d.ts +39 -0
- package/dist/resources/cloudfront-invalidation/actions/delete-cloudfront-invalidation.resource.action.js +69 -0
- package/dist/resources/cloudfront-invalidation/actions/delete-cloudfront-invalidation.resource.action.js.map +1 -0
- package/dist/resources/cloudfront-invalidation/actions/update-cloudfront-invalidation.resource.action.d.ts +37 -0
- package/dist/resources/cloudfront-invalidation/actions/update-cloudfront-invalidation.resource.action.js +91 -0
- package/dist/resources/cloudfront-invalidation/actions/update-cloudfront-invalidation.resource.action.js.map +1 -0
- package/dist/resources/cloudfront-invalidation/cloudfront-invalidation.resource.d.ts +66 -0
- package/dist/resources/cloudfront-invalidation/cloudfront-invalidation.resource.js +92 -0
- package/dist/resources/cloudfront-invalidation/cloudfront-invalidation.resource.js.map +1 -0
- package/dist/resources/cloudfront-invalidation/index.d.ts +5 -0
- package/dist/resources/cloudfront-invalidation/index.js +6 -0
- package/dist/resources/cloudfront-invalidation/index.js.map +1 -0
- package/dist/resources/cloudfront-invalidation/index.schema.d.ts +64 -0
- package/dist/resources/cloudfront-invalidation/index.schema.js +113 -0
- package/dist/resources/cloudfront-invalidation/index.schema.js.map +1 -0
- 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 +2 -0
- package/dist/resources/s3-website/index.schema.js +5 -0
- package/dist/resources/s3-website/index.schema.js.map +1 -1
- package/dist/resources/s3-website/s3-website.resource.d.ts +1 -11
- package/dist/resources/s3-website/s3-website.resource.js +6 -3
- 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 +33 -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
package/dist/modules/service/aws-ecs-alb-service/models/service/aws-ecs-alb-service.model.js
CHANGED
|
@@ -8,7 +8,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
10
|
var AwsEcsAlbService_1;
|
|
11
|
-
import {
|
|
11
|
+
import { Model, Service, ServiceType, Validate } from '@quadnix/octo';
|
|
12
12
|
import { AwsEcsAlbServiceSchema } from './aws-ecs-alb-service.schema.js';
|
|
13
13
|
/**
|
|
14
14
|
* @internal
|
|
@@ -18,41 +18,23 @@ let AwsEcsAlbService = AwsEcsAlbService_1 = class AwsEcsAlbService extends Servi
|
|
|
18
18
|
* @internal
|
|
19
19
|
*/
|
|
20
20
|
constructor(albName, subnets) {
|
|
21
|
-
super(`${albName}-alb
|
|
21
|
+
super(`${albName}-alb`, subnets, ServiceType.LOAD_BALANCER, 'alb');
|
|
22
22
|
this.albName = albName;
|
|
23
|
-
for (const subnet of subnets) {
|
|
24
|
-
subnet.addChild('subnetId', this, 'serviceId');
|
|
25
|
-
}
|
|
26
23
|
}
|
|
27
24
|
/**
|
|
28
25
|
* @internal
|
|
29
26
|
*/
|
|
30
27
|
static async unSynth(service, deReferenceContext) {
|
|
31
|
-
const subnets = (await Promise.all(service.
|
|
28
|
+
const subnets = (await Promise.all(service.parents.map((p) => deReferenceContext(p.context))));
|
|
32
29
|
return new AwsEcsAlbService_1(service.albName, subnets);
|
|
33
30
|
}
|
|
34
|
-
/**
|
|
35
|
-
* @internal
|
|
36
|
-
*/
|
|
37
|
-
setContext() {
|
|
38
|
-
const parents = this.getParents();
|
|
39
|
-
const app = parents['app']?.[0]?.to;
|
|
40
|
-
const subnets = parents['subnet']?.map((d) => d.to) || [];
|
|
41
|
-
if (!app || subnets.length === 0) {
|
|
42
|
-
return undefined;
|
|
43
|
-
}
|
|
44
|
-
return [`${Service.NODE_NAME}=${this.serviceId}`, ...subnets.map((s) => s.getContext()), app.getContext()].join(',');
|
|
45
|
-
}
|
|
46
31
|
/**
|
|
47
32
|
* @internal
|
|
48
33
|
*/
|
|
49
34
|
synth() {
|
|
50
|
-
const parents = this.getParents();
|
|
51
|
-
const subnets = parents['subnet'].map((d) => d.to);
|
|
52
35
|
return {
|
|
36
|
+
...super.synth(),
|
|
53
37
|
albName: this.albName,
|
|
54
|
-
serviceId: this.serviceId,
|
|
55
|
-
subnets: subnets.map((s) => ({ context: s.getContext() })),
|
|
56
38
|
};
|
|
57
39
|
}
|
|
58
40
|
};
|
package/dist/modules/service/aws-ecs-alb-service/models/service/aws-ecs-alb-service.model.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aws-ecs-alb-service.model.js","sourceRoot":"","sources":["../../../../../../src/modules/service/aws-ecs-alb-service/models/service/aws-ecs-alb-service.model.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"aws-ecs-alb-service.model.js","sourceRoot":"","sources":["../../../../../../src/modules/service/aws-ecs-alb-service/models/service/aws-ecs-alb-service.model.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,OAAO,EAAe,KAAK,EAAE,OAAO,EAAE,WAAW,EAAe,QAAQ,EAAE,MAAM,eAAe,CAAC;AAChG,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAEzE;;GAEG;AAEI,IAAM,gBAAgB,wBAAtB,MAAM,gBAAiB,SAAQ,OAAO;IAI3C;;OAEG;IACH,YAAY,OAA0C,EAAE,OAAiB;QACvE,KAAK,CAAC,GAAG,OAAO,MAAM,EAAE,OAAO,EAAE,WAAW,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;QAEnE,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAED;;OAEG;IACH,MAAM,CAAU,KAAK,CAAC,OAAO,CAC3B,OAA+B,EAC/B,kBAAkE;QAElE,MAAM,OAAO,GAAG,CAAC,MAAM,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,kBAAkB,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAa,CAAC;QAC3G,OAAO,IAAI,kBAAgB,CAAC,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;IAED;;OAEG;IACM,KAAK;QACZ,OAAO;YACL,GAAG,KAAK,CAAC,KAAK,EAAE;YAChB,OAAO,EAAE,IAAI,CAAC,OAAO;SACtB,CAAC;IACJ,CAAC;CACF,CAAA;AA/BU;IADR,QAAQ,CAAC,EAAE,OAAO,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,KAAK,EAAE,4CAA4C,EAAE,EAAE,CAAC;;iDACnF;AAFd,gBAAgB;IAD5B,KAAK,CAAmB,OAAO,EAAE,SAAS,EAAE,sBAAsB,CAAC;;GACvD,gBAAgB,CAiC5B"}
|
package/dist/modules/service/aws-ecs-alb-service/models/service/aws-ecs-alb-service.schema.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ServiceSchema } from '@quadnix/octo';
|
|
2
2
|
/**
|
|
3
3
|
* @internal
|
|
4
4
|
*/
|
|
5
5
|
export declare class AwsEcsAlbServiceSchema extends ServiceSchema {
|
|
6
6
|
albName: string;
|
|
7
|
-
subnets: IModelReference[];
|
|
8
7
|
}
|
package/dist/modules/service/aws-ecs-alb-service/models/service/aws-ecs-alb-service.schema.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aws-ecs-alb-service.schema.js","sourceRoot":"","sources":["../../../../../../src/modules/service/aws-ecs-alb-service/models/service/aws-ecs-alb-service.schema.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"aws-ecs-alb-service.schema.js","sourceRoot":"","sources":["../../../../../../src/modules/service/aws-ecs-alb-service/models/service/aws-ecs-alb-service.schema.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEhE;;GAEG;AACH,MAAM,OAAO,sBAAuB,SAAQ,aAAa;IAAzD;;QAEE,YAAO,GAAG,MAAM,EAAU,CAAC;IAC7B,CAAC;CAAA;AADC;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,EAAE,CAAC;;uDACb"}
|
|
@@ -29,15 +29,14 @@ let AddAwsEcsAlbServiceOverlayAction = class AddAwsEcsAlbServiceOverlayAction {
|
|
|
29
29
|
* @internal
|
|
30
30
|
*/
|
|
31
31
|
async handle(diff, actionInputs, actionOutputs) {
|
|
32
|
-
const albEcsExecutionOverlay = diff.node;
|
|
33
32
|
const { awsAccountId, awsRegionId } = actionInputs.metadata;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
// Get the VPC from the ALB's region.
|
|
34
|
+
const [matchingVpcResource] = await actionInputs.inputs.region.getResourcesMatchingSchema(VpcSchema, [], [], {
|
|
35
|
+
searchBoundaryMembers: false,
|
|
36
|
+
});
|
|
38
37
|
const albTargetGroups = [];
|
|
39
38
|
for (const target of actionInputs.inputs.targets) {
|
|
40
|
-
const albTargetGroup = new AlbTargetGroup(`alb-target-group-${target.execution.executionId}`, {
|
|
39
|
+
const albTargetGroup = new AlbTargetGroup(`alb-target-group-${actionInputs.inputs.albName}-${target.execution.executionId}`, {
|
|
41
40
|
awsAccountId,
|
|
42
41
|
awsRegionId,
|
|
43
42
|
healthCheck: target.healthCheck || undefined,
|
|
@@ -52,8 +51,8 @@ let AddAwsEcsAlbServiceOverlayAction = class AddAwsEcsAlbServiceOverlayAction {
|
|
|
52
51
|
albTargetGroups.push(albTargetGroup);
|
|
53
52
|
}
|
|
54
53
|
for (const listener of actionInputs.inputs.listeners) {
|
|
55
|
-
const alb = actionInputs.resources[`alb-${actionInputs.inputs.
|
|
56
|
-
const albListener = new AlbListener(`alb-listener-${actionInputs.inputs.albName}`, {
|
|
54
|
+
const alb = actionInputs.resources[`alb-${actionInputs.inputs.albName}`];
|
|
55
|
+
const albListener = new AlbListener(`alb-listener-${actionInputs.inputs.albName}-${listener.Port}`, {
|
|
57
56
|
awsAccountId,
|
|
58
57
|
awsRegionId,
|
|
59
58
|
DefaultActions: listener.DefaultActions,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-aws-ecs-alb-service.overlay.action.js","sourceRoot":"","sources":["../../../../../../../src/modules/service/aws-ecs-alb-service/overlays/aws-ecs-alb-service/actions/add-aws-ecs-alb-service.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,GAAG,EAAE,MAAM,0CAA0C,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,mDAAmD,CAAC;AAChF,OAAO,EAAE,cAAc,EAAE,MAAM,uDAAuD,CAAC;AAEvF,OAAO,EAAE,UAAU,EAAE,MAAM,kDAAkD,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,yDAAyD,CAAC;AAC3F,OAAO,EAAE,SAAS,EAAE,MAAM,iDAAiD,CAAC;AAE5E,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAE5E;;GAEG;AAEI,IAAM,gCAAgC,GAAtC,MAAM,gCAAgC;IAC3C;;OAEG;IACH,MAAM,CAAC,IAAU;QACf,OAAO,CACL,IAAI,CAAC,MAAM,KAAK,UAAU,CAAC,GAAG;YAC9B,IAAI,CAAC,IAAI,YAAY,uBAAuB;YAC5C,WAAW,CAAC,IAAI,CAAC,IAAI,EAAE,6BAA6B,CAAC;YACrD,IAAI,CAAC,KAAK,KAAK,WAAW,CAC3B,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CACV,IAAmC,EACnC,YAA0D,EAC1D,aAA4B;QAE5B,MAAM,
|
|
1
|
+
{"version":3,"file":"add-aws-ecs-alb-service.overlay.action.js","sourceRoot":"","sources":["../../../../../../../src/modules/service/aws-ecs-alb-service/overlays/aws-ecs-alb-service/actions/add-aws-ecs-alb-service.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,GAAG,EAAE,MAAM,0CAA0C,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,mDAAmD,CAAC;AAChF,OAAO,EAAE,cAAc,EAAE,MAAM,uDAAuD,CAAC;AAEvF,OAAO,EAAE,UAAU,EAAE,MAAM,kDAAkD,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,yDAAyD,CAAC;AAC3F,OAAO,EAAE,SAAS,EAAE,MAAM,iDAAiD,CAAC;AAE5E,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAE5E;;GAEG;AAEI,IAAM,gCAAgC,GAAtC,MAAM,gCAAgC;IAC3C;;OAEG;IACH,MAAM,CAAC,IAAU;QACf,OAAO,CACL,IAAI,CAAC,MAAM,KAAK,UAAU,CAAC,GAAG;YAC9B,IAAI,CAAC,IAAI,YAAY,uBAAuB;YAC5C,WAAW,CAAC,IAAI,CAAC,IAAI,EAAE,6BAA6B,CAAC;YACrD,IAAI,CAAC,KAAK,KAAK,WAAW,CAC3B,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CACV,IAAmC,EACnC,YAA0D,EAC1D,aAA4B;QAE5B,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,GAAG,YAAY,CAAC,QAAQ,CAAC;QAE5D,qCAAqC;QACrC,MAAM,CAAC,mBAAmB,CAAC,GAAG,MAAM,YAAY,CAAC,MAAM,CAAC,MAAM,CAAC,0BAA0B,CAAC,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE;YAC3G,qBAAqB,EAAE,KAAK;SAC7B,CAAC,CAAC;QAEH,MAAM,eAAe,GAAqB,EAAE,CAAC;QAC7C,KAAK,MAAM,MAAM,IAAI,YAAY,CAAC,MAAM,CAAC,OAAQ,EAAE,CAAC;YAClD,MAAM,cAAc,GAAG,IAAI,cAAc,CACvC,oBAAoB,YAAY,CAAC,MAAM,CAAC,OAAO,IAAI,MAAM,CAAC,SAAS,CAAC,WAAW,EAAE,EACjF;gBACE,YAAY;gBACZ,WAAW;gBACX,WAAW,EAAE,MAAM,CAAC,WAAW,IAAI,SAAS;gBAC5C,aAAa,EAAE,MAAM;gBACrB,IAAI,EAAE,MAAM,CAAC,IAAI;gBACjB,IAAI,EAAE,MAAM,CAAC,aAAa;gBAC1B,QAAQ,EAAE,MAAM;gBAChB,eAAe,EAAE,OAAO;gBACxB,UAAU,EAAE,IAAI;aACjB,EACD,CAAC,mBAAmB,CAAC,CACtB,CAAC;YAEF,aAAa,CAAC,cAAc,CAAC,UAAU,CAAC,GAAG,cAAc,CAAC;YAE1D,eAAe,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QACvC,CAAC;QAED,KAAK,MAAM,QAAQ,IAAI,YAAY,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC;YACrD,MAAM,GAAG,GAAG,YAAY,CAAC,SAAS,CAAC,OAAO,YAAY,CAAC,MAAM,CAAC,OAAO,EAAE,CAAQ,CAAC;YAEhF,MAAM,WAAW,GAAG,IAAI,WAAW,CACjC,gBAAgB,YAAY,CAAC,MAAM,CAAC,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAE,EAC9D;gBACE,YAAY;gBACZ,WAAW;gBACX,cAAc,EAAE,QAAQ,CAAC,cAAc;gBACvC,IAAI,EAAE,QAAQ,CAAC,IAAI;gBACnB,QAAQ,EAAE,MAAM;gBAChB,KAAK,EAAE,QAAQ,CAAC,KAAK;aACtB,EACD;gBACE,IAAI,gBAAgB,CAAC,GAAG,CAAC;gBACzB,GAAI,eAAe,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,gBAAgB,CAAC,CAAC,CAAC,CAA8C;aACrG,CACF,CAAC;YAEF,aAAa,CAAC,WAAW,CAAC,UAAU,CAAC,GAAG,WAAW,CAAC;QACtD,CAAC;QAED,KAAK,MAAM,MAAM,IAAI,YAAY,CAAC,MAAM,CAAC,OAAQ,EAAE,CAAC;YAClD,MAAM,CAAC,kBAAkB,CAAC,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,0BAA0B,CAC5E,gBAAgB,EAChB;gBACE,EAAE,GAAG,EAAE,cAAc,EAAE,KAAK,EAAE,YAAY,EAAE;gBAC5C,EAAE,GAAG,EAAE,aAAa,EAAE,KAAK,EAAE,WAAW,EAAE;aAC3C,EACD,EAAE,EACF;gBACE,qBAAqB,EAAE,KAAK;aAC7B,CACF,CAAC;YACF,IAAI,CAAC,kBAAkB,EAAE,CAAC;gBACxB,MAAM,IAAI,sCAAsC,CAC9C,uCAAuC,MAAM,CAAC,SAAS,CAAC,WAAW,IAAI,EACvE,IAAI,EACJ,IAAI,CAAC,WAAW,CAAC,IAAI,CACtB,CAAC;YACJ,CAAC;YAEA,kBAAkB,CAAC,SAAS,EAAiB,CAAC,iBAAiB,CAC9D,IAAI,gBAAgB,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,KAAK,MAAM,CAAC,IAAI,CAAE,CAAC,EACrF,MAAM,CAAC,aAAa,CACrB,CAAC;YAEF,aAAa,CAAC,kBAAkB,CAAC,SAAS,EAAE,CAAC,UAAU,CAAC,GAAG,kBAAkB,CAAC,SAAS,EAAE,CAAC;QAC5F,CAAC;QAED,OAAO,aAAa,CAAC;IACvB,CAAC;CACF,CAAA;AAvGY,gCAAgC;IAD5C,MAAM,CAAC,uBAAuB,CAAC;GACnB,gCAAgC,CAuG5C;;AAED;;GAEG;AAEI,IAAM,uCAAuC,GAA7C,MAAM,uCAAuC;IAGlD;;OAEG;IACH,MAAM,CAAC,KAAK,CAAC,MAAM;QACjB,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;YACnB,IAAI,CAAC,QAAQ,GAAG,IAAI,gCAAgC,EAAE,CAAC;QACzD,CAAC;QACD,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;CACF,CAAA;AAZY,uCAAuC;IADnD,OAAO,CAAmC,gCAAgC,CAAC;GAC/D,uCAAuC,CAYnD"}
|
package/dist/modules/service/aws-s3-static-website-service/aws-s3-static-website-service.module.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AModule
|
|
1
|
+
import { AModule } from '@quadnix/octo';
|
|
2
2
|
import { AwsS3StaticWebsiteServiceModuleSchema } from './index.schema.js';
|
|
3
3
|
import { AwsS3StaticWebsiteService } from './models/service/index.js';
|
|
4
4
|
/**
|
|
@@ -8,21 +8,23 @@ import { AwsS3StaticWebsiteService } from './models/service/index.js';
|
|
|
8
8
|
* filtering, and transformation capabilities.
|
|
9
9
|
* It manages the deployment of static websites from local directories to S3.
|
|
10
10
|
*
|
|
11
|
+
* The bucket is public and served over plain HTTP on its S3 website endpoint. It lives in a region
|
|
12
|
+
* created by `AwsServerlessRegionModule`. To serve files through CloudFront instead, use
|
|
13
|
+
* `AwsS3StorageServiceModule`, whose bucket is closed and fronted by `AwsCloudFrontServiceModule`.
|
|
14
|
+
*
|
|
11
15
|
* @example
|
|
12
16
|
* TypeScript
|
|
13
17
|
* ```ts
|
|
18
|
+
* import { type Region, stub } from '@quadnix/octo';
|
|
14
19
|
* import {
|
|
15
20
|
* AwsS3StaticWebsiteServiceModule
|
|
16
21
|
* } from '@quadnix/octo-aws-cdk/modules/service/aws-s3-static-website-service';
|
|
17
22
|
*
|
|
18
23
|
* octo.loadModule(AwsS3StaticWebsiteServiceModule, 'my-website-module', {
|
|
19
|
-
* account: myAccount,
|
|
20
|
-
* awsRegionId: 'us-east-1',
|
|
21
24
|
* bucketName: 'my-static-website',
|
|
22
|
-
* directoryPath:
|
|
25
|
+
* directoryPath: 'website',
|
|
23
26
|
* filter: (filePath) => !filePath.includes('.DS_Store'),
|
|
24
|
-
*
|
|
25
|
-
* transform: (filePath) => `public/${filePath}`,
|
|
27
|
+
* region: stub<Region>('${{my-region-module.model.region}}'),
|
|
26
28
|
* });
|
|
27
29
|
* ```
|
|
28
30
|
*
|
|
@@ -40,10 +42,9 @@ export declare class AwsS3StaticWebsiteServiceModule extends AModule<AwsS3Static
|
|
|
40
42
|
*/
|
|
41
43
|
onInit(inputs: AwsS3StaticWebsiteServiceModuleSchema): Promise<AwsS3StaticWebsiteService>;
|
|
42
44
|
/**
|
|
43
|
-
* Resolves the
|
|
45
|
+
* Resolves the account and region this bucket is created in.
|
|
44
46
|
*/
|
|
45
47
|
registerMetadata(inputs: AwsS3StaticWebsiteServiceModuleSchema): Promise<{
|
|
46
|
-
app: App;
|
|
47
48
|
awsAccountId: string;
|
|
48
49
|
awsRegionId: string;
|
|
49
50
|
}>;
|
package/dist/modules/service/aws-s3-static-website-service/aws-s3-static-website-service.module.js
CHANGED
|
@@ -5,6 +5,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
import { AModule, Module } from '@quadnix/octo';
|
|
8
|
+
import { AwsServerlessRegionAnchorSchema } from '../../../anchors/aws-region/aws-serverless-region.anchor.schema.js';
|
|
8
9
|
import { AwsS3StaticWebsiteServiceModuleSchema } from './index.schema.js';
|
|
9
10
|
import { AwsS3StaticWebsiteService } from './models/service/index.js';
|
|
10
11
|
/**
|
|
@@ -14,21 +15,23 @@ import { AwsS3StaticWebsiteService } from './models/service/index.js';
|
|
|
14
15
|
* filtering, and transformation capabilities.
|
|
15
16
|
* It manages the deployment of static websites from local directories to S3.
|
|
16
17
|
*
|
|
18
|
+
* The bucket is public and served over plain HTTP on its S3 website endpoint. It lives in a region
|
|
19
|
+
* created by `AwsServerlessRegionModule`. To serve files through CloudFront instead, use
|
|
20
|
+
* `AwsS3StorageServiceModule`, whose bucket is closed and fronted by `AwsCloudFrontServiceModule`.
|
|
21
|
+
*
|
|
17
22
|
* @example
|
|
18
23
|
* TypeScript
|
|
19
24
|
* ```ts
|
|
25
|
+
* import { type Region, stub } from '@quadnix/octo';
|
|
20
26
|
* import {
|
|
21
27
|
* AwsS3StaticWebsiteServiceModule
|
|
22
28
|
* } from '@quadnix/octo-aws-cdk/modules/service/aws-s3-static-website-service';
|
|
23
29
|
*
|
|
24
30
|
* octo.loadModule(AwsS3StaticWebsiteServiceModule, 'my-website-module', {
|
|
25
|
-
* account: myAccount,
|
|
26
|
-
* awsRegionId: 'us-east-1',
|
|
27
31
|
* bucketName: 'my-static-website',
|
|
28
|
-
* directoryPath:
|
|
32
|
+
* directoryPath: 'website',
|
|
29
33
|
* filter: (filePath) => !filePath.includes('.DS_Store'),
|
|
30
|
-
*
|
|
31
|
-
* transform: (filePath) => `public/${filePath}`,
|
|
34
|
+
* region: stub<Region>('${{my-region-module.model.region}}'),
|
|
32
35
|
* });
|
|
33
36
|
* ```
|
|
34
37
|
*
|
|
@@ -45,24 +48,26 @@ let AwsS3StaticWebsiteServiceModule = class AwsS3StaticWebsiteServiceModule exte
|
|
|
45
48
|
* Creates the bucket service, and registers the local directory whose files it serves.
|
|
46
49
|
*/
|
|
47
50
|
async onInit(inputs) {
|
|
48
|
-
const { app } = await this.registerMetadata(inputs);
|
|
49
51
|
// Create a new s3-website service.
|
|
50
|
-
const s3StaticWebsiteService = new AwsS3StaticWebsiteService(inputs.bucketName);
|
|
51
|
-
app.addService(s3StaticWebsiteService);
|
|
52
|
+
const s3StaticWebsiteService = new AwsS3StaticWebsiteService(inputs.bucketName, inputs.region);
|
|
52
53
|
// Add website source.
|
|
53
54
|
await s3StaticWebsiteService.addSource(inputs.directoryPath, inputs.subDirectoryOrFilePath || undefined, inputs.filter || undefined, inputs.transform || undefined);
|
|
54
55
|
return s3StaticWebsiteService;
|
|
55
56
|
}
|
|
56
57
|
/**
|
|
57
|
-
* Resolves the
|
|
58
|
+
* Resolves the account and region this bucket is created in.
|
|
58
59
|
*/
|
|
59
60
|
async registerMetadata(inputs) {
|
|
60
|
-
const
|
|
61
|
-
const
|
|
61
|
+
const region = inputs.region;
|
|
62
|
+
const account = region.getParents()['account'][0].to;
|
|
63
|
+
// Get AWS Region ID.
|
|
64
|
+
const [matchingAnchor] = await region.getAnchorsMatchingSchema(AwsServerlessRegionAnchorSchema, [], {
|
|
65
|
+
searchBoundaryMembers: false,
|
|
66
|
+
});
|
|
67
|
+
const awsRegionId = matchingAnchor.getSchemaInstance().properties.awsRegionId;
|
|
62
68
|
return {
|
|
63
|
-
app,
|
|
64
69
|
awsAccountId: account.accountId,
|
|
65
|
-
awsRegionId
|
|
70
|
+
awsRegionId,
|
|
66
71
|
};
|
|
67
72
|
}
|
|
68
73
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aws-s3-static-website-service.module.js","sourceRoot":"","sources":["../../../../src/modules/service/aws-s3-static-website-service/aws-s3-static-website-service.module.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"aws-s3-static-website-service.module.js","sourceRoot":"","sources":["../../../../src/modules/service/aws-s3-static-website-service/aws-s3-static-website-service.module.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,OAAO,EAAgB,MAAM,EAAE,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAE,+BAA+B,EAAE,MAAM,oEAAoE,CAAC;AACrH,OAAO,EAAE,qCAAqC,EAAE,MAAM,mBAAmB,CAAC;AAC1E,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AAEtE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEI,IAAM,+BAA+B,GAArC,MAAM,+BAAgC,SAAQ,OAGpD;IACC;;OAEG;IACH,KAAK,CAAC,MAAM,CAAC,MAA6C;QACxD,mCAAmC;QACnC,MAAM,sBAAsB,GAAG,IAAI,yBAAyB,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;QAE/F,sBAAsB;QACtB,MAAM,sBAAsB,CAAC,SAAS,CACpC,MAAM,CAAC,aAAa,EACpB,MAAM,CAAC,sBAAsB,IAAI,SAAS,EAC1C,MAAM,CAAC,MAAM,IAAI,SAAS,EAC1B,MAAM,CAAC,SAAS,IAAI,SAAS,CAC9B,CAAC;QAEF,OAAO,sBAAsB,CAAC;IAChC,CAAC;IAED;;OAEG;IACM,KAAK,CAAC,gBAAgB,CAC7B,MAA6C;QAE7C,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;QAC7B,MAAM,OAAO,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,EAAa,CAAC;QAEhE,qBAAqB;QACrB,MAAM,CAAC,cAAc,CAAC,GAAG,MAAM,MAAM,CAAC,wBAAwB,CAAC,+BAA+B,EAAE,EAAE,EAAE;YAClG,qBAAqB,EAAE,KAAK;SAC7B,CAAC,CAAC;QACH,MAAM,WAAW,GAAG,cAAc,CAAC,iBAAiB,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;QAE9E,OAAO;YACL,YAAY,EAAE,OAAO,CAAC,SAAS;YAC/B,WAAW;SACZ,CAAC;IACJ,CAAC;CACF,CAAA;AA1CY,+BAA+B;IAD3C,MAAM,CAAkC,OAAO,EAAE,qCAAqC,CAAC;GAC3E,+BAA+B,CA0C3C"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type Region } from '@quadnix/octo';
|
|
2
2
|
/**
|
|
3
3
|
* `AwsS3StaticWebsiteServiceModuleSchema` is the input schema for the `AwsS3StaticWebsiteServiceModule` module.
|
|
4
4
|
* This schema defines the configuration for S3-based static website services including bucket naming,
|
|
@@ -11,15 +11,6 @@ import { type Account } from '@quadnix/octo';
|
|
|
11
11
|
* @see {@link AwsS3StaticWebsiteServiceModule} to learn more about the `AwsS3StaticWebsiteServiceModule` module.
|
|
12
12
|
*/
|
|
13
13
|
export declare class AwsS3StaticWebsiteServiceModuleSchema {
|
|
14
|
-
/**
|
|
15
|
-
* The AWS account that this service will be associated with.
|
|
16
|
-
* Only AWS account types are supported for this module.
|
|
17
|
-
*/
|
|
18
|
-
account: Account;
|
|
19
|
-
/**
|
|
20
|
-
* The AWS region that this service will be associated with.
|
|
21
|
-
*/
|
|
22
|
-
awsRegionId: string;
|
|
23
14
|
/**
|
|
24
15
|
* The name of the S3 bucket to create for the static website.
|
|
25
16
|
* This name must be globally unique across all AWS accounts and regions.
|
|
@@ -37,6 +28,10 @@ export declare class AwsS3StaticWebsiteServiceModuleSchema {
|
|
|
37
28
|
* Useful for excluding development files, system files, or temporary files.
|
|
38
29
|
*/
|
|
39
30
|
filter?: ((filePath: string) => boolean) | null | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* The region the website bucket is created in, as produced by the `AwsServerlessRegionModule` module.
|
|
33
|
+
*/
|
|
34
|
+
region: Region;
|
|
40
35
|
/**
|
|
41
36
|
* Optional subdirectory or specific file path within the source directory.
|
|
42
37
|
* When specified, only this subdirectory or file will be uploaded instead of the entire directory.,
|
|
@@ -7,8 +7,8 @@ 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 {
|
|
11
|
-
import {
|
|
10
|
+
import { RegionSchema, Schema, Validate } from '@quadnix/octo';
|
|
11
|
+
import { AwsServerlessRegionAnchorSchema } from '../../../anchors/aws-region/aws-serverless-region.anchor.schema.js';
|
|
12
12
|
/**
|
|
13
13
|
* `AwsS3StaticWebsiteServiceModuleSchema` is the input schema for the `AwsS3StaticWebsiteServiceModule` module.
|
|
14
14
|
* This schema defines the configuration for S3-based static website services including bucket naming,
|
|
@@ -22,15 +22,6 @@ import { AwsAccountAnchorSchema } from '../../../anchors/aws-account/aws-account
|
|
|
22
22
|
*/
|
|
23
23
|
export class AwsS3StaticWebsiteServiceModuleSchema {
|
|
24
24
|
constructor() {
|
|
25
|
-
/**
|
|
26
|
-
* The AWS account that this service will be associated with.
|
|
27
|
-
* Only AWS account types are supported for this module.
|
|
28
|
-
*/
|
|
29
|
-
this.account = Schema();
|
|
30
|
-
/**
|
|
31
|
-
* The AWS region that this service will be associated with.
|
|
32
|
-
*/
|
|
33
|
-
this.awsRegionId = Schema();
|
|
34
25
|
/**
|
|
35
26
|
* The name of the S3 bucket to create for the static website.
|
|
36
27
|
* This name must be globally unique across all AWS accounts and regions.
|
|
@@ -48,6 +39,10 @@ export class AwsS3StaticWebsiteServiceModuleSchema {
|
|
|
48
39
|
* Useful for excluding development files, system files, or temporary files.
|
|
49
40
|
*/
|
|
50
41
|
this.filter = Schema(null);
|
|
42
|
+
/**
|
|
43
|
+
* The region the website bucket is created in, as produced by the `AwsServerlessRegionModule` module.
|
|
44
|
+
*/
|
|
45
|
+
this.region = Schema();
|
|
51
46
|
/**
|
|
52
47
|
* Optional subdirectory or specific file path within the source directory.
|
|
53
48
|
* When specified, only this subdirectory or file will be uploaded instead of the entire directory.,
|
|
@@ -65,26 +60,6 @@ export class AwsS3StaticWebsiteServiceModuleSchema {
|
|
|
65
60
|
this.transform = Schema(null);
|
|
66
61
|
}
|
|
67
62
|
}
|
|
68
|
-
__decorate([
|
|
69
|
-
Validate([
|
|
70
|
-
{
|
|
71
|
-
options: {
|
|
72
|
-
isModel: { anchors: [{ schema: AwsAccountAnchorSchema }], NODE_NAME: 'account' },
|
|
73
|
-
},
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
destruct: (value) => [value.synth()],
|
|
77
|
-
options: {
|
|
78
|
-
isSchema: { schema: AccountSchema },
|
|
79
|
-
},
|
|
80
|
-
},
|
|
81
|
-
]),
|
|
82
|
-
__metadata("design:type", Object)
|
|
83
|
-
], AwsS3StaticWebsiteServiceModuleSchema.prototype, "account", void 0);
|
|
84
|
-
__decorate([
|
|
85
|
-
Validate({ options: { minLength: 1 } }),
|
|
86
|
-
__metadata("design:type", Object)
|
|
87
|
-
], AwsS3StaticWebsiteServiceModuleSchema.prototype, "awsRegionId", void 0);
|
|
88
63
|
__decorate([
|
|
89
64
|
Validate({ options: { minLength: 1 } }),
|
|
90
65
|
__metadata("design:type", Object)
|
|
@@ -108,6 +83,20 @@ __decorate([
|
|
|
108
83
|
}),
|
|
109
84
|
__metadata("design:type", Object)
|
|
110
85
|
], AwsS3StaticWebsiteServiceModuleSchema.prototype, "filter", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
Validate([
|
|
88
|
+
{
|
|
89
|
+
options: {
|
|
90
|
+
isModel: { anchors: [{ schema: AwsServerlessRegionAnchorSchema }], NODE_NAME: 'region' },
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
destruct: (value) => [value.synth()],
|
|
95
|
+
options: { isSchema: { schema: RegionSchema } },
|
|
96
|
+
},
|
|
97
|
+
]),
|
|
98
|
+
__metadata("design:type", Object)
|
|
99
|
+
], AwsS3StaticWebsiteServiceModuleSchema.prototype, "region", void 0);
|
|
111
100
|
__decorate([
|
|
112
101
|
Validate({
|
|
113
102
|
destruct: (value) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.schema.js","sourceRoot":"","sources":["../../../../src/modules/service/aws-s3-static-website-service/index.schema.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.schema.js","sourceRoot":"","sources":["../../../../src/modules/service/aws-s3-static-website-service/index.schema.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAe,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC5E,OAAO,EAAE,+BAA+B,EAAE,MAAM,oEAAoE,CAAC;AAErH;;;;;;;;;;GAUG;AACH,MAAM,OAAO,qCAAqC;IAAlD;QACE;;;;WAIG;QAEH,eAAU,GAAG,MAAM,EAAU,CAAC;QAE9B;;;WAGG;QAEH,kBAAa,GAAG,MAAM,EAAU,CAAC;QAEjC;;;;WAIG;QAaH,WAAM,GAAI,MAAM,CAAyC,IAAI,CAAC,CAAC;QAE/D;;WAEG;QAYH,WAAM,GAAG,MAAM,EAAU,CAAC;QAE1B;;;;;;;WAOG;QAWH,2BAAsB,GAAI,MAAM,CAAgB,IAAI,CAAC,CAAC;QAEtD;;;;WAIG;QAaH,cAAS,GAAI,MAAM,CAAwC,IAAI,CAAC,CAAC;IACnE,CAAC;CAAA;AAlFC;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,EAAE,CAAC;;yEACV;AAO9B;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,EAAE,CAAC;;4EACP;AAmBjC;IAZC,QAAQ,CAAC;QACR,QAAQ,EAAE,CAAC,KAAsD,EAAqC,EAAE;YACtG,MAAM,QAAQ,GAAsC,EAAE,CAAC;YACvD,IAAI,KAAK,EAAE,CAAC;gBACV,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACvB,CAAC;YACD,OAAO,QAAQ,CAAC;QAClB,CAAC;QACD,OAAO,EAAE;YACP,MAAM,EAAE,CAAC,KAAwC,EAAW,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,UAAU,CAAC;SAC3G;KACF,CAAC;;qEAC6D;AAgB/D;IAXC,QAAQ,CAAC;QACR;YACE,OAAO,EAAE;gBACP,OAAO,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM,EAAE,+BAA+B,EAAE,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE;aACzF;SACF;QACD;YACE,QAAQ,EAAE,CAAC,KAAsD,EAAkB,EAAE,CAAC,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;YACrG,OAAO,EAAE,EAAE,QAAQ,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE,EAAE;SAChD;KACF,CAAC;;qEACwB;AAoB1B;IAVC,QAAQ,CAAC;QACR,QAAQ,EAAE,CAAC,KAAsE,EAAY,EAAE;YAC7F,MAAM,QAAQ,GAAa,EAAE,CAAC;YAC9B,IAAI,KAAK,EAAE,CAAC;gBACV,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACvB,CAAC;YACD,OAAO,QAAQ,CAAC;QAClB,CAAC;QACD,OAAO,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE;KAC1B,CAAC;;qFACoD;AAmBtD;IAZC,QAAQ,CAAC;QACR,QAAQ,EAAE,CAAC,KAAyD,EAAoC,EAAE;YACxG,MAAM,QAAQ,GAAqC,EAAE,CAAC;YACtD,IAAI,KAAK,EAAE,CAAC;gBACV,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACvB,CAAC;YACD,OAAO,QAAQ,CAAC;QAClB,CAAC;QACD,OAAO,EAAE;YACP,MAAM,EAAE,CAAC,KAAuC,EAAW,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,UAAU,CAAC;SAC1G;KACF,CAAC;;wEAC+D"}
|
|
@@ -26,13 +26,16 @@ let AddAwsS3StaticWebsiteServiceModelAction = class AddAwsS3StaticWebsiteService
|
|
|
26
26
|
async handle(diff, actionInputs, actionOutputs) {
|
|
27
27
|
const { bucketName } = diff.node;
|
|
28
28
|
const { awsAccountId, awsRegionId } = actionInputs.metadata;
|
|
29
|
+
const errorDocument = 'error.html';
|
|
30
|
+
const indexDocument = 'index.html';
|
|
31
|
+
const sanitizedBucketName = bucketName.replace(/[^\w-]/g, '-');
|
|
29
32
|
// Create S3 Website.
|
|
30
|
-
const s3Website = new S3Website(`bucket-${
|
|
33
|
+
const s3Website = new S3Website(`bucket-${sanitizedBucketName}`, {
|
|
31
34
|
awsAccountId,
|
|
32
35
|
awsRegionId,
|
|
33
36
|
Bucket: bucketName,
|
|
34
|
-
ErrorDocument:
|
|
35
|
-
IndexDocument:
|
|
37
|
+
ErrorDocument: errorDocument,
|
|
38
|
+
IndexDocument: indexDocument,
|
|
36
39
|
});
|
|
37
40
|
actionOutputs[s3Website.resourceId] = s3Website;
|
|
38
41
|
return actionOutputs;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-aws-s3-static-website-service.model.action.js","sourceRoot":"","sources":["../../../../../../../src/modules/service/aws-s3-static-website-service/models/service/actions/add-aws-s3-static-website-service.model.action.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EACL,MAAM,EAGN,UAAU,EAEV,OAAO,EAEP,WAAW,GACZ,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,SAAS,EAAE,MAAM,iDAAiD,CAAC;AAE5E,OAAO,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AAEtF;;GAEG;AAEI,IAAM,uCAAuC,GAA7C,MAAM,uCAAuC;IAClD;;OAEG;IACH,MAAM,CAAC,IAAU;QACf,OAAO,CACL,IAAI,CAAC,MAAM,KAAK,UAAU,CAAC,GAAG;YAC9B,IAAI,CAAC,IAAI,YAAY,yBAAyB;YAC9C,WAAW,CAAC,IAAI,CAAC,IAAI,EAAE,SAAS,CAAC;YACjC,IAAI,CAAC,KAAK,KAAK,WAAW,CAC3B,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CACV,IAAqC,EACrC,YAAmE,EACnE,aAA4B;QAE5B,MAAM,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC;QAEjC,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,GAAG,YAAY,CAAC,QAAQ,CAAC;QAE5D,
|
|
1
|
+
{"version":3,"file":"add-aws-s3-static-website-service.model.action.js","sourceRoot":"","sources":["../../../../../../../src/modules/service/aws-s3-static-website-service/models/service/actions/add-aws-s3-static-website-service.model.action.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EACL,MAAM,EAGN,UAAU,EAEV,OAAO,EAEP,WAAW,GACZ,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,SAAS,EAAE,MAAM,iDAAiD,CAAC;AAE5E,OAAO,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AAEtF;;GAEG;AAEI,IAAM,uCAAuC,GAA7C,MAAM,uCAAuC;IAClD;;OAEG;IACH,MAAM,CAAC,IAAU;QACf,OAAO,CACL,IAAI,CAAC,MAAM,KAAK,UAAU,CAAC,GAAG;YAC9B,IAAI,CAAC,IAAI,YAAY,yBAAyB;YAC9C,WAAW,CAAC,IAAI,CAAC,IAAI,EAAE,SAAS,CAAC;YACjC,IAAI,CAAC,KAAK,KAAK,WAAW,CAC3B,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CACV,IAAqC,EACrC,YAAmE,EACnE,aAA4B;QAE5B,MAAM,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC;QAEjC,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,GAAG,YAAY,CAAC,QAAQ,CAAC;QAE5D,MAAM,aAAa,GAAG,YAAY,CAAC;QACnC,MAAM,aAAa,GAAG,YAAY,CAAC;QACnC,MAAM,mBAAmB,GAAG,UAAU,CAAC,OAAO,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC;QAE/D,qBAAqB;QACrB,MAAM,SAAS,GAAG,IAAI,SAAS,CAAC,UAAU,mBAAmB,EAAE,EAAE;YAC/D,YAAY;YACZ,WAAW;YACX,MAAM,EAAE,UAAU;YAClB,aAAa,EAAE,aAAa;YAC5B,aAAa,EAAE,aAAa;SAC7B,CAAC,CAAC;QAEH,aAAa,CAAC,SAAS,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC;QAEhD,OAAO,aAAa,CAAC;IACvB,CAAC;CACF,CAAA;AA1CY,uCAAuC;IADnD,MAAM,CAAC,yBAAyB,CAAC;GACrB,uCAAuC,CA0CnD;;AAED;;GAEG;AAEI,IAAM,8CAA8C,GAApD,MAAM,8CAA8C;IAGzD;;OAEG;IACH,MAAM,CAAC,KAAK,CAAC,MAAM;QACjB,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;YACnB,IAAI,CAAC,QAAQ,GAAG,IAAI,uCAAuC,EAAE,CAAC;QAChE,CAAC;QACD,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;CACF,CAAA;AAZY,8CAA8C;IAD1D,OAAO,CAA0C,uCAAuC,CAAC;GAC7E,8CAA8C,CAY1D"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type ActionOutputs, type Diff, type EnhancedModuleSchema, type IModelAction } from '@quadnix/octo';
|
|
2
|
+
import type { IManifest } from '../../../../../../utilities/s3-file-source/s3-file-source.utility.js';
|
|
2
3
|
import type { AwsS3StaticWebsiteServiceModule } from '../../../aws-s3-static-website-service.module.js';
|
|
3
|
-
import { AwsS3StaticWebsiteService
|
|
4
|
+
import { AwsS3StaticWebsiteService } from '../aws-s3-static-website-service.model.js';
|
|
4
5
|
/**
|
|
5
6
|
* @internal
|
|
6
7
|
*/
|
|
@@ -24,7 +24,8 @@ let UpdateAwsS3StaticWebsiteServiceSourcePathsModelAction = class UpdateAwsS3Sta
|
|
|
24
24
|
*/
|
|
25
25
|
async handle(diff, actionInputs, actionOutputs) {
|
|
26
26
|
const { bucketName } = diff.node;
|
|
27
|
-
const
|
|
27
|
+
const sanitizedBucketName = bucketName.replace(/[^\w-]/g, '-');
|
|
28
|
+
const s3Website = actionInputs.resources[`bucket-${sanitizedBucketName}`];
|
|
28
29
|
s3Website.updateManifest(diff.value);
|
|
29
30
|
actionOutputs[s3Website.resourceId] = s3Website;
|
|
30
31
|
return actionOutputs;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-aws-s3-static-website-service-source-paths.model.action.js","sourceRoot":"","sources":["../../../../../../../src/modules/service/aws-s3-static-website-service/models/service/actions/update-aws-s3-static-website-service-source-paths.model.action.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EACL,MAAM,EAGN,UAAU,EAEV,OAAO,EAEP,WAAW,GACZ,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"update-aws-s3-static-website-service-source-paths.model.action.js","sourceRoot":"","sources":["../../../../../../../src/modules/service/aws-s3-static-website-service/models/service/actions/update-aws-s3-static-website-service-source-paths.model.action.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EACL,MAAM,EAGN,UAAU,EAEV,OAAO,EAEP,WAAW,GACZ,MAAM,eAAe,CAAC;AAIvB,OAAO,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AAEtF;;GAEG;AAEI,IAAM,qDAAqD,GAA3D,MAAM,qDAAqD;IAGhE;;OAEG;IACH,MAAM,CAAC,IAAU;QACf,OAAO,CACL,IAAI,CAAC,MAAM,KAAK,UAAU,CAAC,MAAM;YACjC,IAAI,CAAC,IAAI,YAAY,yBAAyB;YAC9C,WAAW,CAAC,IAAI,CAAC,IAAI,EAAE,SAAS,CAAC;YACjC,IAAI,CAAC,KAAK,KAAK,aAAa,CAC7B,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CACV,IAAgD,EAChD,YAAmE,EACnE,aAA4B;QAE5B,MAAM,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC;QACjC,MAAM,mBAAmB,GAAG,UAAU,CAAC,OAAO,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC;QAE/D,MAAM,SAAS,GAAG,YAAY,CAAC,SAAS,CAAC,UAAU,mBAAmB,EAAE,CAAc,CAAC;QACvF,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAErC,aAAa,CAAC,SAAS,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC;QAEhD,OAAO,aAAa,CAAC;IACvB,CAAC;CACF,CAAA;AAjCY,qDAAqD;IADjE,MAAM,CAAC,yBAAyB,CAAC;GACrB,qDAAqD,CAiCjE;;AAED;;GAEG;AAEI,IAAM,4DAA4D,GAAlE,MAAM,4DAA4D;IAGvE;;OAEG;IACH,MAAM,CAAC,KAAK,CAAC,MAAM;QACjB,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;YACnB,IAAI,CAAC,QAAQ,GAAG,IAAI,qDAAqD,EAAE,CAAC;QAC9E,CAAC;QACD,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;CACF,CAAA;AAZY,4DAA4D;IADxE,OAAO,CAAwD,qDAAqD,CAAC;GACzG,4DAA4D,CAYxE"}
|
|
@@ -1,35 +1,21 @@
|
|
|
1
|
-
import { Diff, Service } from '@quadnix/octo';
|
|
1
|
+
import { type AModel, Diff, type Region, Service } from '@quadnix/octo';
|
|
2
|
+
import { type IS3FileExcludePath, type IS3FileSourcePath } from '../../../../../utilities/s3-file-source/s3-file-source.utility.js';
|
|
2
3
|
import { AwsS3StaticWebsiteServiceSchema } from './aws-s3-static-website-service.schema.js';
|
|
3
|
-
export type IManifest = {
|
|
4
|
-
[key: string]: {
|
|
5
|
-
algorithm: 'sha1';
|
|
6
|
-
digest: string | 'deleted';
|
|
7
|
-
filePath: string;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
4
|
/**
|
|
11
5
|
* @internal
|
|
12
6
|
*/
|
|
13
7
|
export declare class AwsS3StaticWebsiteService extends Service {
|
|
14
8
|
readonly bucketName: string;
|
|
15
|
-
readonly excludePaths:
|
|
16
|
-
|
|
17
|
-
subDirectoryOrFilePath: string;
|
|
18
|
-
}[];
|
|
19
|
-
readonly sourcePaths: {
|
|
20
|
-
directoryPath: string;
|
|
21
|
-
isDirectory: boolean;
|
|
22
|
-
remotePath: string;
|
|
23
|
-
subDirectoryOrFilePath: string;
|
|
24
|
-
}[];
|
|
9
|
+
readonly excludePaths: IS3FileExcludePath[];
|
|
10
|
+
readonly sourcePaths: IS3FileSourcePath[];
|
|
25
11
|
/**
|
|
26
12
|
* @internal
|
|
27
13
|
*/
|
|
28
|
-
constructor(bucketName: AwsS3StaticWebsiteServiceSchema['bucketName']);
|
|
14
|
+
constructor(bucketName: AwsS3StaticWebsiteServiceSchema['bucketName'], region: Region);
|
|
29
15
|
/**
|
|
30
16
|
* @internal
|
|
31
17
|
*/
|
|
32
|
-
static unSynth(service: AwsS3StaticWebsiteServiceSchema): Promise<AwsS3StaticWebsiteService>;
|
|
18
|
+
static unSynth(service: AwsS3StaticWebsiteServiceSchema, deReferenceContext: (context: string) => Promise<AModel<any, any>>): Promise<AwsS3StaticWebsiteService>;
|
|
33
19
|
/**
|
|
34
20
|
* @internal
|
|
35
21
|
*/
|
|
@@ -42,8 +28,4 @@ export declare class AwsS3StaticWebsiteService extends Service {
|
|
|
42
28
|
* @internal
|
|
43
29
|
*/
|
|
44
30
|
synth(): AwsS3StaticWebsiteServiceSchema;
|
|
45
|
-
/**
|
|
46
|
-
* @internal
|
|
47
|
-
*/
|
|
48
|
-
private generateSourceManifest;
|
|
49
31
|
}
|