@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
|
@@ -8,10 +8,8 @@ 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 AwsS3StaticWebsiteService_1;
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { Diff, DiffAction, Model, ModelError, Service, Validate } from '@quadnix/octo';
|
|
14
|
-
import { FileUtility } from '../../../../../utilities/file/file.utility.js';
|
|
11
|
+
import { Diff, DiffAction, Model, ModelError, Service, ServiceType, Validate, } from '@quadnix/octo';
|
|
12
|
+
import { S3FileSourceUtility, } from '../../../../../utilities/s3-file-source/s3-file-source.utility.js';
|
|
15
13
|
import { AwsS3StaticWebsiteServiceSchema } from './aws-s3-static-website-service.schema.js';
|
|
16
14
|
/**
|
|
17
15
|
* @internal
|
|
@@ -20,8 +18,8 @@ let AwsS3StaticWebsiteService = AwsS3StaticWebsiteService_1 = class AwsS3StaticW
|
|
|
20
18
|
/**
|
|
21
19
|
* @internal
|
|
22
20
|
*/
|
|
23
|
-
constructor(bucketName) {
|
|
24
|
-
super(`${bucketName}-s3-static-website
|
|
21
|
+
constructor(bucketName, region) {
|
|
22
|
+
super(`${bucketName}-s3-static-website`, [region], ServiceType.STORAGE, 's3-static-website');
|
|
25
23
|
this.excludePaths = [];
|
|
26
24
|
this.sourcePaths = [];
|
|
27
25
|
this.bucketName = bucketName;
|
|
@@ -29,64 +27,22 @@ let AwsS3StaticWebsiteService = AwsS3StaticWebsiteService_1 = class AwsS3StaticW
|
|
|
29
27
|
/**
|
|
30
28
|
* @internal
|
|
31
29
|
*/
|
|
32
|
-
static async unSynth(service) {
|
|
33
|
-
|
|
30
|
+
static async unSynth(service, deReferenceContext) {
|
|
31
|
+
const region = (await deReferenceContext(service.parents[0].context));
|
|
32
|
+
return new AwsS3StaticWebsiteService_1(service.bucketName, region);
|
|
34
33
|
}
|
|
35
34
|
/**
|
|
36
35
|
* @internal
|
|
37
36
|
*/
|
|
38
37
|
async addSource(directoryPath, subDirectoryOrFilePath, filter, transform) {
|
|
39
|
-
directoryPath
|
|
40
|
-
if (!subDirectoryOrFilePath) {
|
|
41
|
-
subDirectoryOrFilePath = '';
|
|
42
|
-
}
|
|
43
|
-
// Remove leading slashes.
|
|
44
|
-
subDirectoryOrFilePath = subDirectoryOrFilePath.replace(/^\/+/g, '');
|
|
45
|
-
// Ensure subDirectoryOrFilePath exists, and is readable.
|
|
46
|
-
const relativeSubDirectoryOrFilePath = join(directoryPath, subDirectoryOrFilePath);
|
|
47
|
-
const stats = await lstat(relativeSubDirectoryOrFilePath);
|
|
48
|
-
if (stats.isFile()) {
|
|
49
|
-
if (!subDirectoryOrFilePath) {
|
|
50
|
-
const { base, dir } = parse(directoryPath);
|
|
51
|
-
directoryPath = dir;
|
|
52
|
-
subDirectoryOrFilePath = base;
|
|
53
|
-
}
|
|
54
|
-
const shouldInclude = filter ? filter(subDirectoryOrFilePath) : true;
|
|
55
|
-
if (shouldInclude) {
|
|
56
|
-
this.sourcePaths.push({
|
|
57
|
-
directoryPath,
|
|
58
|
-
isDirectory: false,
|
|
59
|
-
remotePath: transform ? transform(subDirectoryOrFilePath) : subDirectoryOrFilePath,
|
|
60
|
-
subDirectoryOrFilePath,
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
else {
|
|
65
|
-
this.sourcePaths.push({
|
|
66
|
-
directoryPath,
|
|
67
|
-
isDirectory: true,
|
|
68
|
-
remotePath: transform ? transform(subDirectoryOrFilePath) : subDirectoryOrFilePath,
|
|
69
|
-
subDirectoryOrFilePath,
|
|
70
|
-
});
|
|
71
|
-
const filePaths = await readdir(relativeSubDirectoryOrFilePath, { recursive: true });
|
|
72
|
-
for (let filePath of filePaths) {
|
|
73
|
-
filePath = join(subDirectoryOrFilePath, filePath);
|
|
74
|
-
const shouldInclude = filter ? filter(filePath) : true;
|
|
75
|
-
if (!shouldInclude) {
|
|
76
|
-
this.excludePaths.push({
|
|
77
|
-
directoryPath,
|
|
78
|
-
subDirectoryOrFilePath: filePath,
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
38
|
+
await S3FileSourceUtility.addSource(this.sourcePaths, this.excludePaths, directoryPath, subDirectoryOrFilePath, filter, transform);
|
|
83
39
|
}
|
|
84
40
|
/**
|
|
85
41
|
* @internal
|
|
86
42
|
*/
|
|
87
43
|
async diffProperties() {
|
|
88
44
|
// Generate new manifest.
|
|
89
|
-
const newManifestData = await this.
|
|
45
|
+
const newManifestData = await S3FileSourceUtility.generateManifest(this.sourcePaths, this.excludePaths);
|
|
90
46
|
// Ensure index.html exists.
|
|
91
47
|
if (this.sourcePaths.length > 0 && !(newManifestData['error.html'] || newManifestData['index.html'])) {
|
|
92
48
|
throw new ModelError('error.html/index.html missing in root of website!', this);
|
|
@@ -108,41 +64,10 @@ let AwsS3StaticWebsiteService = AwsS3StaticWebsiteService_1 = class AwsS3StaticW
|
|
|
108
64
|
*/
|
|
109
65
|
synth() {
|
|
110
66
|
return {
|
|
67
|
+
...super.synth(),
|
|
111
68
|
bucketName: this.bucketName,
|
|
112
|
-
serviceId: this.serviceId,
|
|
113
69
|
};
|
|
114
70
|
}
|
|
115
|
-
/**
|
|
116
|
-
* @internal
|
|
117
|
-
*/
|
|
118
|
-
async generateSourceManifest() {
|
|
119
|
-
const manifest = {};
|
|
120
|
-
const sourcePaths = [...this.sourcePaths];
|
|
121
|
-
for (const sourcePath of sourcePaths) {
|
|
122
|
-
if (!sourcePath.isDirectory) {
|
|
123
|
-
const filePath = join(sourcePath.directoryPath, sourcePath.subDirectoryOrFilePath);
|
|
124
|
-
const digest = await FileUtility.hash(filePath);
|
|
125
|
-
manifest[sourcePath.remotePath] = { algorithm: 'sha1', digest, filePath };
|
|
126
|
-
}
|
|
127
|
-
else {
|
|
128
|
-
const directoryPath = join(sourcePath.directoryPath, sourcePath.subDirectoryOrFilePath);
|
|
129
|
-
const directoryFilePaths = await readdir(directoryPath, { recursive: true });
|
|
130
|
-
for (const directoryFilePath of directoryFilePaths) {
|
|
131
|
-
const filePath = join(directoryPath, directoryFilePath);
|
|
132
|
-
const stats = await lstat(filePath);
|
|
133
|
-
if (stats.isDirectory()) {
|
|
134
|
-
continue;
|
|
135
|
-
}
|
|
136
|
-
if (this.excludePaths.findIndex((p) => join(p.directoryPath, p.subDirectoryOrFilePath) === filePath) === -1) {
|
|
137
|
-
const remotePath = join(sourcePath.remotePath, directoryFilePath);
|
|
138
|
-
const digest = await FileUtility.hash(filePath);
|
|
139
|
-
manifest[remotePath] = { algorithm: 'sha1', digest, filePath };
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
return manifest;
|
|
145
|
-
}
|
|
146
71
|
};
|
|
147
72
|
__decorate([
|
|
148
73
|
Validate({ options: { maxLength: 128, minLength: 2, regex: /^[a-zA-Z0-9][\w.-]*[a-zA-Z0-9]$/ } }),
|
|
@@ -150,7 +75,7 @@ __decorate([
|
|
|
150
75
|
], AwsS3StaticWebsiteService.prototype, "bucketName", void 0);
|
|
151
76
|
AwsS3StaticWebsiteService = AwsS3StaticWebsiteService_1 = __decorate([
|
|
152
77
|
Model('@octo', 'service', AwsS3StaticWebsiteServiceSchema),
|
|
153
|
-
__metadata("design:paramtypes", [Object])
|
|
78
|
+
__metadata("design:paramtypes", [Object, Function])
|
|
154
79
|
], AwsS3StaticWebsiteService);
|
|
155
80
|
export { AwsS3StaticWebsiteService };
|
|
156
81
|
//# sourceMappingURL=aws-s3-static-website-service.model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aws-s3-static-website-service.model.js","sourceRoot":"","sources":["../../../../../../src/modules/service/aws-s3-static-website-service/models/service/aws-s3-static-website-service.model.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"aws-s3-static-website-service.model.js","sourceRoot":"","sources":["../../../../../../src/modules/service/aws-s3-static-website-service/models/service/aws-s3-static-website-service.model.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,21 +1,31 @@
|
|
|
1
|
-
import { AModule
|
|
1
|
+
import { AModule } from '@quadnix/octo';
|
|
2
2
|
import { AwsS3StorageServiceModuleSchema } from './index.schema.js';
|
|
3
3
|
import { AwsS3StorageService } from './models/service/index.js';
|
|
4
4
|
/**
|
|
5
5
|
* `AwsS3StorageServiceModule` is an S3-based AWS storage service module
|
|
6
6
|
* that provides an implementation for the `Service` model.
|
|
7
|
-
* This module creates S3
|
|
8
|
-
*
|
|
7
|
+
* This module creates an S3 bucket for object storage, declares the key prefixes in it that other
|
|
8
|
+
* modules may be granted access to, and optionally uploads the files of a local directory into it.
|
|
9
|
+
*
|
|
10
|
+
* The bucket is closed to the public by default. To serve its files, pass it as an origin to
|
|
11
|
+
* `AwsCloudFrontServiceModule`, which grants its distribution access. For a bucket that serves a
|
|
12
|
+
* website on its own, use `AwsS3StaticWebsiteServiceModule`.
|
|
13
|
+
* The bucket lives in a region created by any of the AWS region modules.
|
|
9
14
|
*
|
|
10
15
|
* @example
|
|
11
16
|
* TypeScript
|
|
12
17
|
* ```ts
|
|
18
|
+
* import { type Region, stub } from '@quadnix/octo';
|
|
13
19
|
* import { AwsS3StorageServiceModule } from '@quadnix/octo-aws-cdk/modules/service/aws-s3-storage-service';
|
|
14
20
|
*
|
|
15
21
|
* octo.loadModule(AwsS3StorageServiceModule, 'my-storage-module', {
|
|
22
|
+
* accessPrefixes: ['uploads', 'documents', 'images'],
|
|
16
23
|
* bucketName: 'my-app-storage',
|
|
17
|
-
*
|
|
18
|
-
*
|
|
24
|
+
* corsRules: [{ allowHeaders: ['Range'], allowMethods: ['GET'], allowOrigins: ['https://app.example.com'] }],
|
|
25
|
+
* directoryPath: 'website',
|
|
26
|
+
* filter: (filePath) => !filePath.includes('.DS_Store'),
|
|
27
|
+
* lifecycleRules: [{ expirationInDays: 1, tags: { upload: 'pending' } }],
|
|
28
|
+
* region: stub<Region>('${{my-region-module.model.region}}')
|
|
19
29
|
* });
|
|
20
30
|
* ```
|
|
21
31
|
*
|
|
@@ -29,14 +39,15 @@ import { AwsS3StorageService } from './models/service/index.js';
|
|
|
29
39
|
*/
|
|
30
40
|
export declare class AwsS3StorageServiceModule extends AModule<AwsS3StorageServiceModuleSchema, AwsS3StorageService> {
|
|
31
41
|
/**
|
|
32
|
-
* Creates the bucket service,
|
|
42
|
+
* Creates the bucket service, registers the local files it uploads, and registers each access
|
|
43
|
+
* prefix in it that other modules may be granted access to.
|
|
33
44
|
*/
|
|
34
45
|
onInit(inputs: AwsS3StorageServiceModuleSchema): Promise<AwsS3StorageService>;
|
|
35
46
|
/**
|
|
36
|
-
* Resolves the
|
|
47
|
+
* Resolves the account and region this bucket is created in.
|
|
48
|
+
* The region may be networked or serverless; the bucket only needs its AWS region ID.
|
|
37
49
|
*/
|
|
38
50
|
registerMetadata(inputs: AwsS3StorageServiceModuleSchema): Promise<{
|
|
39
|
-
app: App;
|
|
40
51
|
awsAccountId: string;
|
|
41
52
|
awsRegionId: string;
|
|
42
53
|
}>;
|
|
@@ -4,26 +4,37 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
-
import { AModule, Module } from '@quadnix/octo';
|
|
7
|
+
import { AModule, Module, ModuleError } from '@quadnix/octo';
|
|
8
8
|
import { AwsRegionAnchorSchema } from '../../../anchors/aws-region/aws-region.anchor.schema.js';
|
|
9
|
+
import { AwsServerlessRegionAnchorSchema } from '../../../anchors/aws-region/aws-serverless-region.anchor.schema.js';
|
|
9
10
|
import { AwsS3StorageServiceAnchor } from '../../../anchors/aws-s3-storage-service/aws-s3-storage-service.anchor.js';
|
|
10
11
|
import { AwsS3StorageServiceModuleSchema } from './index.schema.js';
|
|
11
12
|
import { AwsS3StorageService } from './models/service/index.js';
|
|
12
13
|
/**
|
|
13
14
|
* `AwsS3StorageServiceModule` is an S3-based AWS storage service module
|
|
14
15
|
* that provides an implementation for the `Service` model.
|
|
15
|
-
* This module creates S3
|
|
16
|
-
*
|
|
16
|
+
* This module creates an S3 bucket for object storage, declares the key prefixes in it that other
|
|
17
|
+
* modules may be granted access to, and optionally uploads the files of a local directory into it.
|
|
18
|
+
*
|
|
19
|
+
* The bucket is closed to the public by default. To serve its files, pass it as an origin to
|
|
20
|
+
* `AwsCloudFrontServiceModule`, which grants its distribution access. For a bucket that serves a
|
|
21
|
+
* website on its own, use `AwsS3StaticWebsiteServiceModule`.
|
|
22
|
+
* The bucket lives in a region created by any of the AWS region modules.
|
|
17
23
|
*
|
|
18
24
|
* @example
|
|
19
25
|
* TypeScript
|
|
20
26
|
* ```ts
|
|
27
|
+
* import { type Region, stub } from '@quadnix/octo';
|
|
21
28
|
* import { AwsS3StorageServiceModule } from '@quadnix/octo-aws-cdk/modules/service/aws-s3-storage-service';
|
|
22
29
|
*
|
|
23
30
|
* octo.loadModule(AwsS3StorageServiceModule, 'my-storage-module', {
|
|
31
|
+
* accessPrefixes: ['uploads', 'documents', 'images'],
|
|
24
32
|
* bucketName: 'my-app-storage',
|
|
25
|
-
*
|
|
26
|
-
*
|
|
33
|
+
* corsRules: [{ allowHeaders: ['Range'], allowMethods: ['GET'], allowOrigins: ['https://app.example.com'] }],
|
|
34
|
+
* directoryPath: 'website',
|
|
35
|
+
* filter: (filePath) => !filePath.includes('.DS_Store'),
|
|
36
|
+
* lifecycleRules: [{ expirationInDays: 1, tags: { upload: 'pending' } }],
|
|
37
|
+
* region: stub<Region>('${{my-region-module.model.region}}')
|
|
27
38
|
* });
|
|
28
39
|
* ```
|
|
29
40
|
*
|
|
@@ -37,35 +48,48 @@ import { AwsS3StorageService } from './models/service/index.js';
|
|
|
37
48
|
*/
|
|
38
49
|
let AwsS3StorageServiceModule = class AwsS3StorageServiceModule extends AModule {
|
|
39
50
|
/**
|
|
40
|
-
* Creates the bucket service,
|
|
51
|
+
* Creates the bucket service, registers the local files it uploads, and registers each access
|
|
52
|
+
* prefix in it that other modules may be granted access to.
|
|
41
53
|
*/
|
|
42
54
|
async onInit(inputs) {
|
|
43
|
-
const {
|
|
44
|
-
// Create a new
|
|
45
|
-
const s3StorageService = new AwsS3StorageService(inputs.bucketName);
|
|
46
|
-
|
|
55
|
+
const { awsAccountId, awsRegionId } = await this.registerMetadata(inputs);
|
|
56
|
+
// Create a new s3-storage service.
|
|
57
|
+
const s3StorageService = new AwsS3StorageService(inputs.bucketName, inputs.region);
|
|
58
|
+
// Add source files.
|
|
59
|
+
if (inputs.directoryPath) {
|
|
60
|
+
await s3StorageService.addSource(inputs.directoryPath, inputs.subDirectoryOrFilePath || undefined, inputs.filter || undefined, inputs.transform || undefined);
|
|
61
|
+
}
|
|
47
62
|
// Add anchors.
|
|
48
|
-
s3StorageService.addAnchor(new AwsS3StorageServiceAnchor('AwsS3StorageServiceAnchor', {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
63
|
+
s3StorageService.addAnchor(new AwsS3StorageServiceAnchor('AwsS3StorageServiceAnchor', {
|
|
64
|
+
awsAccountId,
|
|
65
|
+
awsRegionId,
|
|
66
|
+
bucketName: inputs.bucketName,
|
|
67
|
+
contentDigest: await s3StorageService.getContentDigest(),
|
|
68
|
+
}, s3StorageService));
|
|
69
|
+
// Add access prefixes.
|
|
70
|
+
for (const accessPrefix of inputs.accessPrefixes || []) {
|
|
71
|
+
s3StorageService.addAccessPrefix(accessPrefix);
|
|
52
72
|
}
|
|
53
73
|
return s3StorageService;
|
|
54
74
|
}
|
|
55
75
|
/**
|
|
56
|
-
* Resolves the
|
|
76
|
+
* Resolves the account and region this bucket is created in.
|
|
77
|
+
* The region may be networked or serverless; the bucket only needs its AWS region ID.
|
|
57
78
|
*/
|
|
58
79
|
async registerMetadata(inputs) {
|
|
59
80
|
const region = inputs.region;
|
|
60
81
|
const account = region.getParents()['account'][0].to;
|
|
61
|
-
const app = account.getParents()['app'][0].to;
|
|
62
82
|
// Get AWS Region ID.
|
|
63
|
-
const [
|
|
64
|
-
searchBoundaryMembers: false,
|
|
65
|
-
|
|
83
|
+
const [[matchingRegionAnchor], [matchingServerlessRegionAnchor]] = await Promise.all([
|
|
84
|
+
region.getAnchorsMatchingSchema(AwsRegionAnchorSchema, [], { searchBoundaryMembers: false }),
|
|
85
|
+
region.getAnchorsMatchingSchema(AwsServerlessRegionAnchorSchema, [], { searchBoundaryMembers: false }),
|
|
86
|
+
]);
|
|
87
|
+
const matchingAnchor = matchingRegionAnchor || matchingServerlessRegionAnchor;
|
|
88
|
+
if (!matchingAnchor) {
|
|
89
|
+
throw new ModuleError('Region is not an AWS region!', this.constructor.name);
|
|
90
|
+
}
|
|
66
91
|
const awsRegionId = matchingAnchor.getSchemaInstance().properties.awsRegionId;
|
|
67
92
|
return {
|
|
68
|
-
app,
|
|
69
93
|
awsAccountId: account.accountId,
|
|
70
94
|
awsRegionId,
|
|
71
95
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aws-s3-storage-service.module.js","sourceRoot":"","sources":["../../../../src/modules/service/aws-s3-storage-service/aws-s3-storage-service.module.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"aws-s3-storage-service.module.js","sourceRoot":"","sources":["../../../../src/modules/service/aws-s3-storage-service/aws-s3-storage-service.module.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { type Region } from '@quadnix/octo';
|
|
2
|
+
import { S3StorageCorsRuleSchema, S3StorageLifecycleRuleSchema } from '../../../resources/s3-storage/index.schema.js';
|
|
2
3
|
/**
|
|
3
4
|
* `AwsS3StorageServiceModuleSchema` is the input schema for the `AwsS3StorageServiceModule` module.
|
|
4
5
|
* This schema defines the configuration for S3-based storage services including bucket naming,
|
|
5
|
-
* region placement, and
|
|
6
|
+
* region placement, access prefixes, CORS and lifecycle rules, and the local files to upload.
|
|
6
7
|
*
|
|
7
8
|
* @group Modules/Service/AwsS3StorageService
|
|
8
9
|
*
|
|
@@ -11,6 +12,16 @@ import { type Region } from '@quadnix/octo';
|
|
|
11
12
|
* @see {@link AwsS3StorageServiceModule} to learn more about the `AwsS3StorageServiceModule` module.
|
|
12
13
|
*/
|
|
13
14
|
export declare class AwsS3StorageServiceModuleSchema {
|
|
15
|
+
/**
|
|
16
|
+
* Optional key prefixes within the S3 bucket, e.g. `uploads`, that other modules may be granted
|
|
17
|
+
* read or write access to. A prefix creates nothing in the bucket; each one publishes an anchor
|
|
18
|
+
* that a module such as `AwsServerModule` grants access through.
|
|
19
|
+
*/
|
|
20
|
+
accessPrefixes?: string[] | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Blocks every public ACL and public policy on the bucket.
|
|
23
|
+
*/
|
|
24
|
+
blockPublicAccess?: boolean | undefined;
|
|
14
25
|
/**
|
|
15
26
|
* The name of the S3 bucket to create.
|
|
16
27
|
* This name must be globally unique across all AWS accounts and regions.
|
|
@@ -18,14 +29,49 @@ export declare class AwsS3StorageServiceModuleSchema {
|
|
|
18
29
|
*/
|
|
19
30
|
bucketName: string;
|
|
20
31
|
/**
|
|
21
|
-
*
|
|
22
|
-
*
|
|
32
|
+
* Optional rules letting a page on another origin call the bucket from a browser, such as one
|
|
33
|
+
* uploading through a presigned URL, or reading a range of an object, which sends `Range`. Without
|
|
34
|
+
* rules, a browser refuses every cross-origin response from the bucket.
|
|
35
|
+
*
|
|
36
|
+
* Changing the rules updates the bucket in place.
|
|
37
|
+
*/
|
|
38
|
+
corsRules?: S3StorageCorsRuleSchema[] | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* Optional local directory path containing the files to upload.
|
|
41
|
+
* When set, the directory is synchronized to the bucket. When omitted, nothing is uploaded.
|
|
42
|
+
*/
|
|
43
|
+
directoryPath?: string | null | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* Optional filter function to exclude specific files from upload.
|
|
46
|
+
* This function receives a file path and returns true to include the file or false to exclude it.
|
|
47
|
+
* Useful for excluding development files, system files, or temporary files.
|
|
48
|
+
*/
|
|
49
|
+
filter?: ((filePath: string) => boolean) | null | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Optional rules expiring the bucket's objects some days after each was written. A rule matches
|
|
52
|
+
* the objects under its `prefix` that carry every one of its `tags`, or the whole bucket with
|
|
53
|
+
* neither. Without rules, the bucket keeps every object until it is deleted.
|
|
54
|
+
*
|
|
55
|
+
* Changing the rules updates the bucket in place.
|
|
56
|
+
*/
|
|
57
|
+
lifecycleRules?: S3StorageLifecycleRuleSchema[] | undefined;
|
|
58
|
+
/**
|
|
59
|
+
* The region the bucket is created in, as produced by any of the AWS region modules.
|
|
23
60
|
*/
|
|
24
61
|
region: Region;
|
|
25
62
|
/**
|
|
26
|
-
* Optional
|
|
27
|
-
*
|
|
28
|
-
*
|
|
63
|
+
* Optional subdirectory or specific file path within `directoryPath`.
|
|
64
|
+
* When specified, only this subdirectory or file will be uploaded instead of the entire directory,
|
|
65
|
+
* but the path leading up to this subdirectory or file will still be preserved.
|
|
66
|
+
*
|
|
67
|
+
* For example, if `subDirectoryOrFilePath` is `subdirectory/file.html`, only the file `file.html` will be uploaded,
|
|
68
|
+
* but the path `subdirectory/` will still be preserved. Its key in the bucket will be `subdirectory/file.html`.
|
|
69
|
+
*/
|
|
70
|
+
subDirectoryOrFilePath?: string | null | undefined;
|
|
71
|
+
/**
|
|
72
|
+
* Optional transform function to modify file paths before upload.
|
|
73
|
+
* This function receives the original file path and returns the transformed path.
|
|
74
|
+
* Useful for renaming files, changing directory structures, or modifying extensions.
|
|
29
75
|
*/
|
|
30
|
-
|
|
76
|
+
transform?: ((filePath: string) => string) | null | undefined;
|
|
31
77
|
}
|
|
@@ -8,11 +8,11 @@ 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
|
import { RegionSchema, Schema, Validate } from '@quadnix/octo';
|
|
11
|
-
import {
|
|
11
|
+
import { S3StorageCorsRuleSchema, S3StorageLifecycleRuleSchema } from '../../../resources/s3-storage/index.schema.js';
|
|
12
12
|
/**
|
|
13
13
|
* `AwsS3StorageServiceModuleSchema` is the input schema for the `AwsS3StorageServiceModule` module.
|
|
14
14
|
* This schema defines the configuration for S3-based storage services including bucket naming,
|
|
15
|
-
* region placement, and
|
|
15
|
+
* region placement, access prefixes, CORS and lifecycle rules, and the local files to upload.
|
|
16
16
|
*
|
|
17
17
|
* @group Modules/Service/AwsS3StorageService
|
|
18
18
|
*
|
|
@@ -22,6 +22,16 @@ import { AwsRegionAnchorSchema } from '../../../anchors/aws-region/aws-region.an
|
|
|
22
22
|
*/
|
|
23
23
|
export class AwsS3StorageServiceModuleSchema {
|
|
24
24
|
constructor() {
|
|
25
|
+
/**
|
|
26
|
+
* Optional key prefixes within the S3 bucket, e.g. `uploads`, that other modules may be granted
|
|
27
|
+
* read or write access to. A prefix creates nothing in the bucket; each one publishes an anchor
|
|
28
|
+
* that a module such as `AwsServerModule` grants access through.
|
|
29
|
+
*/
|
|
30
|
+
this.accessPrefixes = Schema([]);
|
|
31
|
+
/**
|
|
32
|
+
* Blocks every public ACL and public policy on the bucket.
|
|
33
|
+
*/
|
|
34
|
+
this.blockPublicAccess = Schema(true);
|
|
25
35
|
/**
|
|
26
36
|
* The name of the S3 bucket to create.
|
|
27
37
|
* This name must be globally unique across all AWS accounts and regions.
|
|
@@ -29,27 +39,111 @@ export class AwsS3StorageServiceModuleSchema {
|
|
|
29
39
|
*/
|
|
30
40
|
this.bucketName = Schema();
|
|
31
41
|
/**
|
|
32
|
-
*
|
|
33
|
-
*
|
|
42
|
+
* Optional rules letting a page on another origin call the bucket from a browser, such as one
|
|
43
|
+
* uploading through a presigned URL, or reading a range of an object, which sends `Range`. Without
|
|
44
|
+
* rules, a browser refuses every cross-origin response from the bucket.
|
|
45
|
+
*
|
|
46
|
+
* Changing the rules updates the bucket in place.
|
|
47
|
+
*/
|
|
48
|
+
this.corsRules = Schema([]);
|
|
49
|
+
/**
|
|
50
|
+
* Optional local directory path containing the files to upload.
|
|
51
|
+
* When set, the directory is synchronized to the bucket. When omitted, nothing is uploaded.
|
|
52
|
+
*/
|
|
53
|
+
this.directoryPath = Schema(null);
|
|
54
|
+
/**
|
|
55
|
+
* Optional filter function to exclude specific files from upload.
|
|
56
|
+
* This function receives a file path and returns true to include the file or false to exclude it.
|
|
57
|
+
* Useful for excluding development files, system files, or temporary files.
|
|
58
|
+
*/
|
|
59
|
+
this.filter = Schema(null);
|
|
60
|
+
/**
|
|
61
|
+
* Optional rules expiring the bucket's objects some days after each was written. A rule matches
|
|
62
|
+
* the objects under its `prefix` that carry every one of its `tags`, or the whole bucket with
|
|
63
|
+
* neither. Without rules, the bucket keeps every object until it is deleted.
|
|
64
|
+
*
|
|
65
|
+
* Changing the rules updates the bucket in place.
|
|
66
|
+
*/
|
|
67
|
+
this.lifecycleRules = Schema([]);
|
|
68
|
+
/**
|
|
69
|
+
* The region the bucket is created in, as produced by any of the AWS region modules.
|
|
34
70
|
*/
|
|
35
71
|
this.region = Schema();
|
|
36
72
|
/**
|
|
37
|
-
* Optional
|
|
38
|
-
*
|
|
39
|
-
*
|
|
73
|
+
* Optional subdirectory or specific file path within `directoryPath`.
|
|
74
|
+
* When specified, only this subdirectory or file will be uploaded instead of the entire directory,
|
|
75
|
+
* but the path leading up to this subdirectory or file will still be preserved.
|
|
76
|
+
*
|
|
77
|
+
* For example, if `subDirectoryOrFilePath` is `subdirectory/file.html`, only the file `file.html` will be uploaded,
|
|
78
|
+
* but the path `subdirectory/` will still be preserved. Its key in the bucket will be `subdirectory/file.html`.
|
|
40
79
|
*/
|
|
41
|
-
this.
|
|
80
|
+
this.subDirectoryOrFilePath = Schema(null);
|
|
81
|
+
/**
|
|
82
|
+
* Optional transform function to modify file paths before upload.
|
|
83
|
+
* This function receives the original file path and returns the transformed path.
|
|
84
|
+
* Useful for renaming files, changing directory structures, or modifying extensions.
|
|
85
|
+
*/
|
|
86
|
+
this.transform = Schema(null);
|
|
42
87
|
}
|
|
43
88
|
}
|
|
89
|
+
__decorate([
|
|
90
|
+
Validate({
|
|
91
|
+
destruct: (value) => value,
|
|
92
|
+
options: { minLength: 1 },
|
|
93
|
+
}),
|
|
94
|
+
__metadata("design:type", Object)
|
|
95
|
+
], AwsS3StorageServiceModuleSchema.prototype, "accessPrefixes", void 0);
|
|
44
96
|
__decorate([
|
|
45
97
|
Validate({ options: { minLength: 1 } }),
|
|
46
98
|
__metadata("design:type", Object)
|
|
47
99
|
], AwsS3StorageServiceModuleSchema.prototype, "bucketName", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
Validate({
|
|
102
|
+
destruct: (value) => value,
|
|
103
|
+
options: { isSchema: { schema: S3StorageCorsRuleSchema } },
|
|
104
|
+
}),
|
|
105
|
+
__metadata("design:type", Object)
|
|
106
|
+
], AwsS3StorageServiceModuleSchema.prototype, "corsRules", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
Validate({
|
|
109
|
+
destruct: (value) => {
|
|
110
|
+
const subjects = [];
|
|
111
|
+
if (value !== null && value !== undefined) {
|
|
112
|
+
subjects.push(value);
|
|
113
|
+
}
|
|
114
|
+
return subjects;
|
|
115
|
+
},
|
|
116
|
+
options: { minLength: 1 },
|
|
117
|
+
}),
|
|
118
|
+
__metadata("design:type", Object)
|
|
119
|
+
], AwsS3StorageServiceModuleSchema.prototype, "directoryPath", void 0);
|
|
120
|
+
__decorate([
|
|
121
|
+
Validate({
|
|
122
|
+
destruct: (value) => {
|
|
123
|
+
const subjects = [];
|
|
124
|
+
if (value) {
|
|
125
|
+
subjects.push(value);
|
|
126
|
+
}
|
|
127
|
+
return subjects;
|
|
128
|
+
},
|
|
129
|
+
options: {
|
|
130
|
+
custom: (value) => value.every((v) => typeof v === 'function'),
|
|
131
|
+
},
|
|
132
|
+
}),
|
|
133
|
+
__metadata("design:type", Object)
|
|
134
|
+
], AwsS3StorageServiceModuleSchema.prototype, "filter", void 0);
|
|
135
|
+
__decorate([
|
|
136
|
+
Validate({
|
|
137
|
+
destruct: (value) => value,
|
|
138
|
+
options: { isSchema: { schema: S3StorageLifecycleRuleSchema } },
|
|
139
|
+
}),
|
|
140
|
+
__metadata("design:type", Object)
|
|
141
|
+
], AwsS3StorageServiceModuleSchema.prototype, "lifecycleRules", void 0);
|
|
48
142
|
__decorate([
|
|
49
143
|
Validate([
|
|
50
144
|
{
|
|
51
145
|
options: {
|
|
52
|
-
isModel: {
|
|
146
|
+
isModel: { NODE_NAME: 'region' },
|
|
53
147
|
},
|
|
54
148
|
},
|
|
55
149
|
{
|
|
@@ -63,9 +157,30 @@ __decorate([
|
|
|
63
157
|
], AwsS3StorageServiceModuleSchema.prototype, "region", void 0);
|
|
64
158
|
__decorate([
|
|
65
159
|
Validate({
|
|
66
|
-
destruct: (value) =>
|
|
160
|
+
destruct: (value) => {
|
|
161
|
+
const subjects = [];
|
|
162
|
+
if (value) {
|
|
163
|
+
subjects.push(value);
|
|
164
|
+
}
|
|
165
|
+
return subjects;
|
|
166
|
+
},
|
|
67
167
|
options: { minLength: 1 },
|
|
68
168
|
}),
|
|
69
169
|
__metadata("design:type", Object)
|
|
70
|
-
], AwsS3StorageServiceModuleSchema.prototype, "
|
|
170
|
+
], AwsS3StorageServiceModuleSchema.prototype, "subDirectoryOrFilePath", void 0);
|
|
171
|
+
__decorate([
|
|
172
|
+
Validate({
|
|
173
|
+
destruct: (value) => {
|
|
174
|
+
const subjects = [];
|
|
175
|
+
if (value) {
|
|
176
|
+
subjects.push(value);
|
|
177
|
+
}
|
|
178
|
+
return subjects;
|
|
179
|
+
},
|
|
180
|
+
options: {
|
|
181
|
+
custom: (value) => value.every((v) => typeof v === 'function'),
|
|
182
|
+
},
|
|
183
|
+
}),
|
|
184
|
+
__metadata("design:type", Object)
|
|
185
|
+
], AwsS3StorageServiceModuleSchema.prototype, "transform", void 0);
|
|
71
186
|
//# sourceMappingURL=index.schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.schema.js","sourceRoot":"","sources":["../../../../src/modules/service/aws-s3-storage-service/index.schema.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAe,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC5E,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.schema.js","sourceRoot":"","sources":["../../../../src/modules/service/aws-s3-storage-service/index.schema.ts"],"names":[],"mappings":"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"}
|
|
@@ -25,12 +25,16 @@ let AddAwsS3StorageServiceModelAction = class AddAwsS3StorageServiceModelAction
|
|
|
25
25
|
*/
|
|
26
26
|
async handle(diff, actionInputs, actionOutputs) {
|
|
27
27
|
const { bucketName } = diff.node;
|
|
28
|
+
const { blockPublicAccess, corsRules, lifecycleRules } = actionInputs.inputs;
|
|
28
29
|
const { awsAccountId, awsRegionId } = actionInputs.metadata;
|
|
29
30
|
// Create S3 Bucket.
|
|
30
31
|
const s3Storage = new S3Storage(`bucket-${bucketName.replace(/[^\w-]/g, '-')}`, {
|
|
31
32
|
awsAccountId,
|
|
32
33
|
awsRegionId,
|
|
34
|
+
blockPublicAccess: blockPublicAccess ?? true,
|
|
33
35
|
Bucket: bucketName,
|
|
36
|
+
corsRules: JSON.parse(JSON.stringify(corsRules ?? [])),
|
|
37
|
+
lifecycleRules: JSON.parse(JSON.stringify(lifecycleRules ?? [])),
|
|
34
38
|
permissions: [],
|
|
35
39
|
});
|
|
36
40
|
actionOutputs[s3Storage.resourceId] = s3Storage;
|