@quadnix/octo-aws-cdk 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +108 -21
- package/dist/anchors/aws-cloudfront/aws-cloudfront.anchor.d.ts +12 -0
- package/dist/anchors/{aws-ecs/aws-ecs-server.anchor.js → aws-cloudfront/aws-cloudfront.anchor.js} +5 -5
- package/dist/anchors/aws-cloudfront/aws-cloudfront.anchor.js.map +1 -0
- package/dist/anchors/aws-cloudfront/aws-cloudfront.anchor.schema.d.ts +26 -0
- package/dist/anchors/{aws-iam/aws-iam-role.anchor.schema.js → aws-cloudfront/aws-cloudfront.anchor.schema.js} +11 -7
- package/dist/anchors/aws-cloudfront/aws-cloudfront.anchor.schema.js.map +1 -0
- package/dist/anchors/aws-deployment/aws-deployment.anchor.d.ts +12 -0
- package/dist/anchors/{aws-ecs/aws-ecs-task-definition.anchor.js → aws-deployment/aws-deployment.anchor.js} +5 -5
- package/dist/anchors/aws-deployment/aws-deployment.anchor.js.map +1 -0
- package/dist/anchors/aws-deployment/aws-deployment.anchor.schema.d.ts +100 -0
- package/dist/anchors/aws-deployment/aws-deployment.anchor.schema.js +149 -0
- package/dist/anchors/aws-deployment/aws-deployment.anchor.schema.js.map +1 -0
- package/dist/anchors/aws-dynamodb/aws-dynamodb.anchor.schema.d.ts +4 -0
- package/dist/anchors/aws-dynamodb/aws-dynamodb.anchor.schema.js +7 -1
- package/dist/anchors/aws-dynamodb/aws-dynamodb.anchor.schema.js.map +1 -1
- package/dist/anchors/aws-environment/aws-serverless-environment.anchor.d.ts +12 -0
- package/dist/anchors/{aws-s3-storage-service/aws-s3-storage-service-directory.anchor.js → aws-environment/aws-serverless-environment.anchor.js} +5 -5
- package/dist/anchors/aws-environment/aws-serverless-environment.anchor.js.map +1 -0
- package/dist/anchors/aws-environment/aws-serverless-environment.anchor.schema.d.ts +31 -0
- package/dist/anchors/aws-environment/aws-serverless-environment.anchor.schema.js +58 -0
- package/dist/anchors/aws-environment/aws-serverless-environment.anchor.schema.js.map +1 -0
- package/dist/anchors/aws-lambda/aws-lambda-execution.anchor.d.ts +12 -0
- package/dist/anchors/aws-lambda/aws-lambda-execution.anchor.js +27 -0
- package/dist/anchors/aws-lambda/aws-lambda-execution.anchor.js.map +1 -0
- package/dist/anchors/aws-lambda/aws-lambda-execution.anchor.schema.d.ts +28 -0
- package/dist/anchors/aws-lambda/aws-lambda-execution.anchor.schema.js +54 -0
- package/dist/anchors/aws-lambda/aws-lambda-execution.anchor.schema.js.map +1 -0
- package/dist/anchors/aws-lambda/aws-lambda-function.anchor.d.ts +12 -0
- package/dist/anchors/aws-lambda/aws-lambda-function.anchor.js +27 -0
- package/dist/anchors/aws-lambda/aws-lambda-function.anchor.js.map +1 -0
- package/dist/anchors/aws-lambda/aws-lambda-function.anchor.schema.d.ts +28 -0
- package/dist/anchors/aws-lambda/aws-lambda-function.anchor.schema.js +47 -0
- package/dist/anchors/aws-lambda/aws-lambda-function.anchor.schema.js.map +1 -0
- package/dist/anchors/aws-region/aws-serverless-region.anchor.d.ts +12 -0
- package/dist/anchors/aws-region/aws-serverless-region.anchor.js +27 -0
- package/dist/anchors/aws-region/aws-serverless-region.anchor.js.map +1 -0
- package/dist/anchors/aws-region/aws-serverless-region.anchor.schema.d.ts +30 -0
- package/dist/anchors/aws-region/aws-serverless-region.anchor.schema.js +49 -0
- package/dist/anchors/aws-region/aws-serverless-region.anchor.schema.js.map +1 -0
- package/dist/anchors/aws-s3-storage-service/aws-s3-storage-service-access-prefix.anchor.d.ts +12 -0
- package/dist/anchors/aws-s3-storage-service/aws-s3-storage-service-access-prefix.anchor.js +27 -0
- package/dist/anchors/aws-s3-storage-service/aws-s3-storage-service-access-prefix.anchor.js.map +1 -0
- package/dist/anchors/aws-s3-storage-service/{aws-s3-storage-service-directory.anchor.schema.d.ts → aws-s3-storage-service-access-prefix.anchor.schema.d.ts} +5 -4
- package/dist/anchors/aws-s3-storage-service/{aws-s3-storage-service-directory.anchor.schema.js → aws-s3-storage-service-access-prefix.anchor.schema.js} +7 -6
- package/dist/anchors/aws-s3-storage-service/aws-s3-storage-service-access-prefix.anchor.schema.js.map +1 -0
- package/dist/anchors/aws-s3-storage-service/aws-s3-storage-service.anchor.schema.d.ts +3 -0
- package/dist/anchors/aws-s3-storage-service/aws-s3-storage-service.anchor.schema.js +3 -0
- package/dist/anchors/aws-s3-storage-service/aws-s3-storage-service.anchor.schema.js.map +1 -1
- package/dist/anchors/aws-security-group/aws-security-group.anchor.schema.d.ts +3 -2
- package/dist/anchors/aws-security-group/aws-security-group.anchor.schema.js +2 -1
- package/dist/anchors/aws-security-group/aws-security-group.anchor.schema.js.map +1 -1
- package/dist/anchors/aws-server/aws-server.anchor.d.ts +12 -0
- package/dist/anchors/{aws-iam/aws-iam-role.anchor.js → aws-server/aws-server.anchor.js} +5 -5
- package/dist/anchors/aws-server/aws-server.anchor.js.map +1 -0
- package/dist/anchors/aws-server/aws-server.anchor.schema.d.ts +50 -0
- package/dist/anchors/aws-server/aws-server.anchor.schema.js +51 -0
- package/dist/anchors/aws-server/aws-server.anchor.schema.js.map +1 -0
- package/dist/anchors/aws-subnet/aws-serverless-subnet.anchor.d.ts +12 -0
- package/dist/anchors/aws-subnet/aws-serverless-subnet.anchor.js +27 -0
- package/dist/anchors/aws-subnet/aws-serverless-subnet.anchor.js.map +1 -0
- package/dist/anchors/aws-subnet/aws-serverless-subnet.anchor.schema.d.ts +28 -0
- package/dist/anchors/{aws-ecs/aws-ecs-server.anchor.schema.js → aws-subnet/aws-serverless-subnet.anchor.schema.js} +14 -12
- package/dist/anchors/aws-subnet/aws-serverless-subnet.anchor.schema.js.map +1 -0
- package/dist/modules/account/aws-credentials-account/aws-credentials-account.module.d.ts +2 -1
- package/dist/modules/account/aws-credentials-account/aws-credentials-account.module.js +2 -1
- package/dist/modules/account/aws-credentials-account/aws-credentials-account.module.js.map +1 -1
- package/dist/modules/account/aws-ini-account/aws-ini-account.module.d.ts +2 -1
- package/dist/modules/account/aws-ini-account/aws-ini-account.module.js +2 -1
- package/dist/modules/account/aws-ini-account/aws-ini-account.module.js.map +1 -1
- package/dist/modules/account/aws-localstack-account/aws-localstack-account.module.d.ts +2 -1
- package/dist/modules/account/aws-localstack-account/aws-localstack-account.module.js +2 -1
- package/dist/modules/account/aws-localstack-account/aws-localstack-account.module.js.map +1 -1
- package/dist/modules/account/aws-moto-account/aws-moto-account.module.d.ts +2 -1
- package/dist/modules/account/aws-moto-account/aws-moto-account.module.js +2 -1
- package/dist/modules/account/aws-moto-account/aws-moto-account.module.js.map +1 -1
- package/dist/modules/app/simple-app/index.schema.d.ts +1 -1
- package/dist/modules/app/simple-app/index.schema.js +1 -1
- package/dist/modules/deployment/aws-deployment/aws-deployment.module.d.ts +45 -0
- package/dist/modules/deployment/aws-deployment/aws-deployment.module.js +96 -0
- package/dist/modules/deployment/aws-deployment/aws-deployment.module.js.map +1 -0
- package/dist/modules/deployment/aws-deployment/index.d.ts +1 -0
- package/dist/modules/deployment/aws-deployment/index.js +2 -0
- package/dist/modules/deployment/aws-deployment/index.js.map +1 -0
- package/dist/modules/deployment/aws-deployment/index.schema.d.ts +60 -0
- package/dist/modules/deployment/aws-deployment/index.schema.js +160 -0
- package/dist/modules/deployment/aws-deployment/index.schema.js.map +1 -0
- package/dist/modules/deployment/aws-deployment/models/deployment/actions/add-aws-deployment.model.action.d.ts +27 -0
- package/dist/modules/deployment/{aws-ecs-deployment/models/deployment/actions/add-aws-ecs-deployment.model.action.js → aws-deployment/models/deployment/actions/add-aws-deployment.model.action.js} +16 -14
- package/dist/modules/deployment/aws-deployment/models/deployment/actions/add-aws-deployment.model.action.js.map +1 -0
- package/dist/modules/deployment/aws-deployment/models/deployment/aws-deployment.model.d.ts +11 -0
- package/dist/modules/deployment/{aws-ecs-deployment/models/deployment/aws-ecs-deployment.model.js → aws-deployment/models/deployment/aws-deployment.model.js} +9 -9
- package/dist/modules/deployment/aws-deployment/models/deployment/aws-deployment.model.js.map +1 -0
- package/dist/modules/deployment/{aws-ecs-deployment/models/deployment/aws-ecs-deployment.schema.d.ts → aws-deployment/models/deployment/aws-deployment.schema.d.ts} +1 -1
- package/dist/modules/deployment/aws-deployment/models/deployment/aws-deployment.schema.js +7 -0
- package/dist/modules/deployment/aws-deployment/models/deployment/aws-deployment.schema.js.map +1 -0
- package/dist/modules/deployment/aws-deployment/models/deployment/index.d.ts +2 -0
- package/dist/modules/deployment/aws-deployment/models/deployment/index.js +3 -0
- package/dist/modules/deployment/aws-deployment/models/deployment/index.js.map +1 -0
- package/dist/modules/deployment/aws-deployment/overlays/aws-deployment-image/actions/add-aws-deployment-image.overlay.action.d.ts +28 -0
- package/dist/modules/deployment/aws-deployment/overlays/aws-deployment-image/actions/add-aws-deployment-image.overlay.action.js +53 -0
- package/dist/modules/deployment/aws-deployment/overlays/aws-deployment-image/actions/add-aws-deployment-image.overlay.action.js.map +1 -0
- package/dist/modules/deployment/aws-deployment/overlays/aws-deployment-image/aws-deployment-image.overlay.d.ts +22 -0
- package/dist/modules/deployment/aws-deployment/overlays/aws-deployment-image/aws-deployment-image.overlay.js +37 -0
- package/dist/modules/deployment/aws-deployment/overlays/aws-deployment-image/aws-deployment-image.overlay.js.map +1 -0
- package/dist/modules/deployment/aws-deployment/overlays/aws-deployment-image/aws-deployment-image.schema.d.ts +12 -0
- package/dist/modules/deployment/aws-deployment/overlays/aws-deployment-image/aws-deployment-image.schema.js +32 -0
- package/dist/modules/deployment/aws-deployment/overlays/aws-deployment-image/aws-deployment-image.schema.js.map +1 -0
- package/dist/modules/deployment/aws-deployment/overlays/aws-deployment-image/index.d.ts +2 -0
- package/dist/modules/deployment/aws-deployment/overlays/aws-deployment-image/index.js +3 -0
- package/dist/modules/deployment/aws-deployment/overlays/aws-deployment-image/index.js.map +1 -0
- package/dist/modules/environment/aws-ecs-environment/aws-ecs-environment.module.d.ts +2 -1
- package/dist/modules/environment/aws-ecs-environment/aws-ecs-environment.module.js +2 -1
- package/dist/modules/environment/aws-ecs-environment/aws-ecs-environment.module.js.map +1 -1
- package/dist/modules/environment/aws-serverless-environment/aws-serverless-environment.module.d.ts +33 -0
- package/dist/modules/environment/aws-serverless-environment/aws-serverless-environment.module.js +60 -0
- package/dist/modules/environment/aws-serverless-environment/aws-serverless-environment.module.js.map +1 -0
- package/dist/modules/environment/aws-serverless-environment/index.d.ts +1 -0
- package/dist/modules/environment/aws-serverless-environment/index.js +2 -0
- package/dist/modules/environment/aws-serverless-environment/index.js.map +1 -0
- package/dist/modules/environment/aws-serverless-environment/index.schema.d.ts +27 -0
- package/dist/modules/environment/aws-serverless-environment/index.schema.js +73 -0
- package/dist/modules/environment/aws-serverless-environment/index.schema.js.map +1 -0
- package/dist/modules/environment/aws-serverless-environment/models/environment/actions/add-aws-serverless-environment.model.action.d.ts +28 -0
- package/dist/modules/environment/aws-serverless-environment/models/environment/actions/add-aws-serverless-environment.model.action.js +53 -0
- package/dist/modules/environment/aws-serverless-environment/models/environment/actions/add-aws-serverless-environment.model.action.js.map +1 -0
- package/dist/modules/environment/aws-serverless-environment/models/environment/aws-serverless-environment.model.d.ts +11 -0
- package/dist/modules/environment/aws-serverless-environment/models/environment/aws-serverless-environment.model.js +29 -0
- package/dist/modules/environment/aws-serverless-environment/models/environment/aws-serverless-environment.model.js.map +1 -0
- package/dist/modules/environment/aws-serverless-environment/models/environment/aws-serverless-environment.schema.d.ts +6 -0
- package/dist/modules/environment/aws-serverless-environment/models/environment/aws-serverless-environment.schema.js +7 -0
- package/dist/modules/environment/aws-serverless-environment/models/environment/aws-serverless-environment.schema.js.map +1 -0
- package/dist/modules/environment/aws-serverless-environment/models/environment/index.d.ts +2 -0
- package/dist/modules/environment/aws-serverless-environment/models/environment/index.js +3 -0
- package/dist/modules/environment/aws-serverless-environment/models/environment/index.js.map +1 -0
- package/dist/modules/execution/aws-ecs-execution/aws-ecs-execution.module.d.ts +7 -6
- package/dist/modules/execution/aws-ecs-execution/aws-ecs-execution.module.js +138 -63
- package/dist/modules/execution/aws-ecs-execution/aws-ecs-execution.module.js.map +1 -1
- package/dist/modules/execution/aws-ecs-execution/index.schema.d.ts +6 -6
- package/dist/modules/execution/aws-ecs-execution/index.schema.js +6 -6
- package/dist/modules/execution/aws-ecs-execution/index.schema.js.map +1 -1
- package/dist/modules/execution/aws-ecs-execution/models/execution/aws-ecs-execution.model.js +5 -0
- package/dist/modules/execution/aws-ecs-execution/models/execution/aws-ecs-execution.model.js.map +1 -1
- package/dist/modules/execution/aws-ecs-execution/overlays/aws-ecs-execution/actions/add-aws-ecs-execution.overlay.action.js +131 -40
- package/dist/modules/execution/aws-ecs-execution/overlays/aws-ecs-execution/actions/add-aws-ecs-execution.overlay.action.js.map +1 -1
- package/dist/modules/execution/aws-ecs-execution/overlays/aws-ecs-execution/aws-ecs-execution.overlay.d.ts +9 -5
- package/dist/modules/execution/aws-ecs-execution/overlays/aws-ecs-execution/aws-ecs-execution.overlay.js +4 -0
- package/dist/modules/execution/aws-ecs-execution/overlays/aws-ecs-execution/aws-ecs-execution.overlay.js.map +1 -1
- package/dist/modules/execution/aws-ecs-execution/overlays/aws-ecs-execution/aws-ecs-execution.schema.d.ts +20 -0
- package/dist/modules/execution/aws-ecs-execution/overlays/aws-ecs-execution/aws-ecs-execution.schema.js +5 -0
- package/dist/modules/execution/aws-ecs-execution/overlays/aws-ecs-execution/aws-ecs-execution.schema.js.map +1 -1
- package/dist/modules/execution/aws-ecs-execution/overlays/aws-ecs-execution-server-security-group/actions/add-aws-ecs-execution-server-security-group.overlay.action.js +32 -20
- package/dist/modules/execution/aws-ecs-execution/overlays/aws-ecs-execution-server-security-group/actions/add-aws-ecs-execution-server-security-group.overlay.action.js.map +1 -1
- package/dist/modules/execution/aws-ecs-execution/overlays/aws-ecs-execution-server-security-group/aws-ecs-execution-server-security-group.overlay.d.ts +10 -2
- package/dist/modules/execution/aws-ecs-execution/overlays/aws-ecs-execution-server-security-group/aws-ecs-execution-server-security-group.overlay.js.map +1 -1
- package/dist/modules/execution/aws-lambda-execution/aws-lambda-execution.module.d.ts +57 -0
- package/dist/modules/execution/aws-lambda-execution/aws-lambda-execution.module.js +177 -0
- package/dist/modules/execution/aws-lambda-execution/aws-lambda-execution.module.js.map +1 -0
- package/dist/modules/execution/aws-lambda-execution/index.d.ts +1 -0
- package/dist/modules/execution/aws-lambda-execution/index.js +2 -0
- package/dist/modules/execution/aws-lambda-execution/index.js.map +1 -0
- package/dist/modules/execution/aws-lambda-execution/index.schema.d.ts +56 -0
- package/dist/modules/execution/aws-lambda-execution/index.schema.js +154 -0
- package/dist/modules/execution/aws-lambda-execution/index.schema.js.map +1 -0
- package/dist/modules/execution/aws-lambda-execution/models/execution/actions/add-aws-lambda-execution.model.action.d.ts +25 -0
- package/dist/modules/execution/aws-lambda-execution/models/execution/actions/add-aws-lambda-execution.model.action.js +51 -0
- package/dist/modules/execution/aws-lambda-execution/models/execution/actions/add-aws-lambda-execution.model.action.js.map +1 -0
- package/dist/modules/execution/aws-lambda-execution/models/execution/aws-lambda-execution.model.d.ts +28 -0
- package/dist/modules/execution/aws-lambda-execution/models/execution/aws-lambda-execution.model.js +85 -0
- package/dist/modules/execution/aws-lambda-execution/models/execution/aws-lambda-execution.model.js.map +1 -0
- package/dist/modules/execution/aws-lambda-execution/models/execution/aws-lambda-execution.schema.d.ts +7 -0
- package/dist/modules/execution/aws-lambda-execution/models/execution/aws-lambda-execution.schema.js +24 -0
- package/dist/modules/execution/aws-lambda-execution/models/execution/aws-lambda-execution.schema.js.map +1 -0
- package/dist/modules/execution/aws-lambda-execution/models/execution/index.d.ts +2 -0
- package/dist/modules/execution/aws-lambda-execution/models/execution/index.js +3 -0
- package/dist/modules/execution/aws-lambda-execution/models/execution/index.js.map +1 -0
- package/dist/modules/execution/aws-lambda-execution/overlays/aws-lambda-execution/actions/add-aws-lambda-execution.overlay.action.d.ts +26 -0
- package/dist/modules/execution/aws-lambda-execution/overlays/aws-lambda-execution/actions/add-aws-lambda-execution.overlay.action.js +172 -0
- package/dist/modules/execution/aws-lambda-execution/overlays/aws-lambda-execution/actions/add-aws-lambda-execution.overlay.action.js.map +1 -0
- package/dist/modules/execution/aws-lambda-execution/overlays/aws-lambda-execution/aws-lambda-execution.overlay.d.ts +38 -0
- package/dist/modules/execution/aws-lambda-execution/overlays/aws-lambda-execution/aws-lambda-execution.overlay.js +37 -0
- package/dist/modules/execution/aws-lambda-execution/overlays/aws-lambda-execution/aws-lambda-execution.overlay.js.map +1 -0
- package/dist/modules/execution/aws-lambda-execution/overlays/aws-lambda-execution/aws-lambda-execution.schema.d.ts +41 -0
- package/dist/modules/execution/aws-lambda-execution/overlays/aws-lambda-execution/aws-lambda-execution.schema.js +43 -0
- package/dist/modules/execution/aws-lambda-execution/overlays/aws-lambda-execution/aws-lambda-execution.schema.js.map +1 -0
- package/dist/modules/execution/aws-lambda-execution/overlays/aws-lambda-execution/index.d.ts +2 -0
- package/dist/modules/execution/aws-lambda-execution/overlays/aws-lambda-execution/index.js +3 -0
- package/dist/modules/execution/aws-lambda-execution/overlays/aws-lambda-execution/index.js.map +1 -0
- package/dist/modules/filesystem/aws-efs-filesystem/aws-efs-filesystem.module.d.ts +2 -1
- package/dist/modules/filesystem/aws-efs-filesystem/aws-efs-filesystem.module.js +2 -1
- package/dist/modules/filesystem/aws-efs-filesystem/aws-efs-filesystem.module.js.map +1 -1
- package/dist/modules/filesystem/aws-efs-filesystem/models/filesystem/actions/add-aws-efs-filesystem.model.action.js +1 -2
- package/dist/modules/filesystem/aws-efs-filesystem/models/filesystem/actions/add-aws-efs-filesystem.model.action.js.map +1 -1
- package/dist/modules/image/aws-ecr-image/aws-ecr-image.module.d.ts +10 -5
- package/dist/modules/image/aws-ecr-image/aws-ecr-image.module.js +31 -13
- package/dist/modules/image/aws-ecr-image/aws-ecr-image.module.js.map +1 -1
- package/dist/modules/image/aws-ecr-image/index.schema.d.ts +1 -1
- package/dist/modules/image/aws-ecr-image/index.schema.js +2 -3
- package/dist/modules/image/aws-ecr-image/index.schema.js.map +1 -1
- package/dist/modules/image/aws-ecr-image/models/image/actions/add-aws-ecr-image-region.model.action.d.ts +28 -0
- package/dist/modules/image/aws-ecr-image/models/image/actions/add-aws-ecr-image-region.model.action.js +53 -0
- package/dist/modules/image/aws-ecr-image/models/image/actions/add-aws-ecr-image-region.model.action.js.map +1 -0
- package/dist/modules/image/aws-ecr-image/models/image/actions/add-aws-ecr-image.model.action.js +1 -1
- package/dist/modules/image/aws-ecr-image/models/image/actions/add-aws-ecr-image.model.action.js.map +1 -1
- package/dist/modules/image/aws-ecr-image/models/image/index.d.ts +1 -0
- package/dist/modules/image/aws-ecr-image/models/image/index.js +1 -0
- package/dist/modules/image/aws-ecr-image/models/image/index.js.map +1 -1
- package/dist/modules/image/aws-ecr-image-tag/aws-ecr-image-tag.module.d.ts +5 -1
- package/dist/modules/image/aws-ecr-image-tag/aws-ecr-image-tag.module.js +12 -3
- package/dist/modules/image/aws-ecr-image-tag/aws-ecr-image-tag.module.js.map +1 -1
- package/dist/modules/image/aws-ecr-image-tag/index.schema.d.ts +18 -0
- package/dist/modules/image/aws-ecr-image-tag/index.schema.js +42 -0
- package/dist/modules/image/aws-ecr-image-tag/index.schema.js.map +1 -1
- package/dist/modules/image/aws-ecr-image-tag/overlays/aws-ecr-image-tag/actions/add-aws-ecr-image-tag.overlay.action.js +3 -0
- package/dist/modules/image/aws-ecr-image-tag/overlays/aws-ecr-image-tag/actions/add-aws-ecr-image-tag.overlay.action.js.map +1 -1
- package/dist/modules/image/aws-ecr-image-tag/overlays/aws-ecr-image-tag/aws-ecr-image-tag.schema.d.ts +4 -0
- package/dist/modules/image/aws-ecr-image-tag/overlays/aws-ecr-image-tag/aws-ecr-image-tag.schema.js +1 -0
- package/dist/modules/image/aws-ecr-image-tag/overlays/aws-ecr-image-tag/aws-ecr-image-tag.schema.js.map +1 -1
- package/dist/modules/region/aws-multi-az-region/aws-multi-az-region.module.d.ts +3 -1
- package/dist/modules/region/aws-multi-az-region/aws-multi-az-region.module.js +3 -5
- package/dist/modules/region/aws-multi-az-region/aws-multi-az-region.module.js.map +1 -1
- package/dist/modules/region/aws-multi-az-region/models/region/aws-multi-az-region.model.d.ts +0 -4
- package/dist/modules/region/aws-multi-az-region/models/region/aws-multi-az-region.model.js +2 -11
- package/dist/modules/region/aws-multi-az-region/models/region/aws-multi-az-region.model.js.map +1 -1
- package/dist/modules/region/aws-serverless-region/aws-serverless-region.module.d.ts +35 -0
- package/dist/modules/region/aws-serverless-region/aws-serverless-region.module.js +58 -0
- package/dist/modules/region/aws-serverless-region/aws-serverless-region.module.js.map +1 -0
- package/dist/modules/region/aws-serverless-region/index.d.ts +1 -0
- package/dist/modules/region/aws-serverless-region/index.js +2 -0
- package/dist/modules/region/aws-serverless-region/index.js.map +1 -0
- package/dist/modules/region/aws-serverless-region/index.schema.d.ts +27 -0
- package/dist/modules/region/aws-serverless-region/index.schema.js +64 -0
- package/dist/modules/region/aws-serverless-region/index.schema.js.map +1 -0
- package/dist/modules/region/aws-serverless-region/models/region/actions/add-aws-serverless-region.model.action.d.ts +28 -0
- package/dist/modules/region/aws-serverless-region/models/region/actions/add-aws-serverless-region.model.action.js +53 -0
- package/dist/modules/region/aws-serverless-region/models/region/actions/add-aws-serverless-region.model.action.js.map +1 -0
- package/dist/modules/region/aws-serverless-region/models/region/aws-serverless-region.model.d.ts +30 -0
- package/dist/modules/region/aws-serverless-region/models/region/aws-serverless-region.model.js +56 -0
- package/dist/modules/region/aws-serverless-region/models/region/aws-serverless-region.model.js.map +1 -0
- package/dist/modules/region/aws-serverless-region/models/region/aws-serverless-region.schema.d.ts +7 -0
- package/dist/modules/region/aws-serverless-region/models/region/aws-serverless-region.schema.js +24 -0
- package/dist/modules/region/aws-serverless-region/models/region/aws-serverless-region.schema.js.map +1 -0
- package/dist/modules/region/aws-serverless-region/models/region/index.d.ts +2 -0
- package/dist/modules/region/aws-serverless-region/models/region/index.js +3 -0
- package/dist/modules/region/aws-serverless-region/models/region/index.js.map +1 -0
- package/dist/modules/region/aws-single-az-region/aws-single-az-region.module.d.ts +3 -1
- package/dist/modules/region/aws-single-az-region/aws-single-az-region.module.js +3 -5
- package/dist/modules/region/aws-single-az-region/aws-single-az-region.module.js.map +1 -1
- package/dist/modules/region/aws-single-az-region/models/region/aws-single-az-region.model.d.ts +0 -4
- package/dist/modules/region/aws-single-az-region/models/region/aws-single-az-region.model.js +3 -12
- package/dist/modules/region/aws-single-az-region/models/region/aws-single-az-region.model.js.map +1 -1
- package/dist/modules/server/aws-server/aws-server.module.d.ts +72 -0
- package/dist/modules/server/aws-server/aws-server.module.js +182 -0
- package/dist/modules/server/aws-server/aws-server.module.js.map +1 -0
- package/dist/modules/server/aws-server/index.d.ts +1 -0
- package/dist/modules/server/aws-server/index.js +2 -0
- package/dist/modules/server/aws-server/index.js.map +1 -0
- package/dist/modules/server/aws-server/index.schema.d.ts +123 -0
- package/dist/modules/server/aws-server/index.schema.js +246 -0
- package/dist/modules/server/aws-server/index.schema.js.map +1 -0
- package/dist/modules/server/aws-server/models/server/actions/add-aws-server.model.action.d.ts +27 -0
- package/dist/modules/server/aws-server/models/server/actions/add-aws-server.model.action.js +53 -0
- package/dist/modules/server/aws-server/models/server/actions/add-aws-server.model.action.js.map +1 -0
- package/dist/modules/server/aws-server/models/server/aws-server.model.d.ts +11 -0
- package/dist/modules/server/{aws-ecs-server/models/server/aws-ecs-server.model.js → aws-server/models/server/aws-server.model.js} +9 -9
- package/dist/modules/server/aws-server/models/server/aws-server.model.js.map +1 -0
- package/dist/modules/server/{aws-ecs-server/models/server/aws-ecs-server.schema.d.ts → aws-server/models/server/aws-server.schema.d.ts} +1 -1
- package/dist/modules/server/aws-server/models/server/aws-server.schema.js +7 -0
- package/dist/modules/server/aws-server/models/server/aws-server.schema.js.map +1 -0
- package/dist/modules/server/aws-server/models/server/index.d.ts +2 -0
- package/dist/modules/server/aws-server/models/server/index.js +3 -0
- package/dist/modules/server/aws-server/models/server/index.js.map +1 -0
- package/dist/modules/server/aws-server/overlays/aws-server-dynamodb-access/actions/add-aws-server-dynamodb-access.overlay.action.d.ts +28 -0
- package/dist/modules/server/aws-server/overlays/aws-server-dynamodb-access/actions/add-aws-server-dynamodb-access.overlay.action.js +53 -0
- package/dist/modules/server/aws-server/overlays/aws-server-dynamodb-access/actions/add-aws-server-dynamodb-access.overlay.action.js.map +1 -0
- package/dist/modules/server/aws-server/overlays/aws-server-dynamodb-access/aws-server-dynamodb-access.overlay.d.ts +22 -0
- package/dist/modules/server/aws-server/overlays/aws-server-dynamodb-access/aws-server-dynamodb-access.overlay.js +37 -0
- package/dist/modules/server/aws-server/overlays/aws-server-dynamodb-access/aws-server-dynamodb-access.overlay.js.map +1 -0
- package/dist/modules/server/aws-server/overlays/aws-server-dynamodb-access/aws-server-dynamodb-access.schema.d.ts +13 -0
- package/dist/modules/server/aws-server/overlays/aws-server-dynamodb-access/aws-server-dynamodb-access.schema.js +33 -0
- package/dist/modules/server/aws-server/overlays/aws-server-dynamodb-access/aws-server-dynamodb-access.schema.js.map +1 -0
- package/dist/modules/server/aws-server/overlays/aws-server-dynamodb-access/index.d.ts +2 -0
- package/dist/modules/server/aws-server/overlays/aws-server-dynamodb-access/index.js +3 -0
- package/dist/modules/server/aws-server/overlays/aws-server-dynamodb-access/index.js.map +1 -0
- package/dist/modules/server/aws-server/overlays/aws-server-s3-access/actions/add-aws-server-s3-access.overlay.action.d.ts +28 -0
- package/dist/modules/server/aws-server/overlays/aws-server-s3-access/actions/add-aws-server-s3-access.overlay.action.js +53 -0
- package/dist/modules/server/aws-server/overlays/aws-server-s3-access/actions/add-aws-server-s3-access.overlay.action.js.map +1 -0
- package/dist/modules/server/aws-server/overlays/aws-server-s3-access/aws-server-s3-access.overlay.d.ts +22 -0
- package/dist/modules/server/aws-server/overlays/aws-server-s3-access/aws-server-s3-access.overlay.js +37 -0
- package/dist/modules/server/aws-server/overlays/aws-server-s3-access/aws-server-s3-access.overlay.js.map +1 -0
- package/dist/modules/server/{aws-ecs-server/overlays/aws-ecs-server-s3-access/aws-ecs-server-s3-access.schema.d.ts → aws-server/overlays/aws-server-s3-access/aws-server-s3-access.schema.d.ts} +3 -4
- package/dist/modules/server/{aws-ecs-server/overlays/aws-ecs-server-s3-access/aws-ecs-server-s3-access.schema.js → aws-server/overlays/aws-server-s3-access/aws-server-s3-access.schema.js} +5 -6
- package/dist/modules/server/aws-server/overlays/aws-server-s3-access/aws-server-s3-access.schema.js.map +1 -0
- package/dist/modules/server/aws-server/overlays/aws-server-s3-access/index.d.ts +2 -0
- package/dist/modules/server/aws-server/overlays/aws-server-s3-access/index.js +3 -0
- package/dist/modules/server/aws-server/overlays/aws-server-s3-access/index.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/aws-cloudfront-invalidation-service.module.d.ts +36 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/aws-cloudfront-invalidation-service.module.js +66 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/aws-cloudfront-invalidation-service.module.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/index.d.ts +1 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/index.js +2 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/index.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/index.schema.d.ts +23 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/index.schema.js +65 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/index.schema.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/overlays/aws-cloudfront-invalidation/actions/add-aws-cloudfront-invalidation.overlay.action.d.ts +26 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/overlays/aws-cloudfront-invalidation/actions/add-aws-cloudfront-invalidation.overlay.action.js +68 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/overlays/aws-cloudfront-invalidation/actions/add-aws-cloudfront-invalidation.overlay.action.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/overlays/aws-cloudfront-invalidation/aws-cloudfront-invalidation.overlay.d.ts +22 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/overlays/aws-cloudfront-invalidation/aws-cloudfront-invalidation.overlay.js +38 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/overlays/aws-cloudfront-invalidation/aws-cloudfront-invalidation.overlay.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/overlays/aws-cloudfront-invalidation/aws-cloudfront-invalidation.schema.d.ts +12 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/overlays/aws-cloudfront-invalidation/aws-cloudfront-invalidation.schema.js +32 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/overlays/aws-cloudfront-invalidation/aws-cloudfront-invalidation.schema.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/overlays/aws-cloudfront-invalidation/index.d.ts +2 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/overlays/aws-cloudfront-invalidation/index.js +3 -0
- package/dist/modules/service/aws-cloudfront-invalidation-service/overlays/aws-cloudfront-invalidation/index.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-service/aws-cloudfront-service.module.d.ts +76 -0
- package/dist/modules/service/aws-cloudfront-service/aws-cloudfront-service.module.js +192 -0
- package/dist/modules/service/aws-cloudfront-service/aws-cloudfront-service.module.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-service/index.d.ts +1 -0
- package/dist/modules/service/aws-cloudfront-service/index.js +2 -0
- package/dist/modules/service/aws-cloudfront-service/index.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-service/index.schema.d.ts +170 -0
- package/dist/modules/service/aws-cloudfront-service/index.schema.js +396 -0
- package/dist/modules/service/aws-cloudfront-service/index.schema.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-service/models/service/actions/add-aws-cloudfront-service.model.action.d.ts +26 -0
- package/dist/modules/service/aws-cloudfront-service/models/service/actions/add-aws-cloudfront-service.model.action.js +137 -0
- package/dist/modules/service/aws-cloudfront-service/models/service/actions/add-aws-cloudfront-service.model.action.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-service/models/service/aws-cloudfront-service.model.d.ts +20 -0
- package/dist/modules/service/aws-cloudfront-service/models/service/aws-cloudfront-service.model.js +50 -0
- package/dist/modules/service/aws-cloudfront-service/models/service/aws-cloudfront-service.model.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-service/models/service/aws-cloudfront-service.schema.d.ts +7 -0
- package/dist/modules/service/aws-cloudfront-service/models/service/aws-cloudfront-service.schema.js +24 -0
- package/dist/modules/service/aws-cloudfront-service/models/service/aws-cloudfront-service.schema.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-service/models/service/index.d.ts +2 -0
- package/dist/modules/service/aws-cloudfront-service/models/service/index.js +3 -0
- package/dist/modules/service/aws-cloudfront-service/models/service/index.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-alb-origin/actions/add-aws-cloudfront-alb-origin.overlay.action.d.ts +26 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-alb-origin/actions/add-aws-cloudfront-alb-origin.overlay.action.js +68 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-alb-origin/actions/add-aws-cloudfront-alb-origin.overlay.action.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-alb-origin/aws-cloudfront-alb-origin.overlay.d.ts +21 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-alb-origin/aws-cloudfront-alb-origin.overlay.js +36 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-alb-origin/aws-cloudfront-alb-origin.overlay.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-alb-origin/aws-cloudfront-alb-origin.schema.d.ts +9 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-alb-origin/aws-cloudfront-alb-origin.schema.js +11 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-alb-origin/aws-cloudfront-alb-origin.schema.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-alb-origin/index.d.ts +2 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-alb-origin/index.js +3 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-alb-origin/index.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-lambda-origin/actions/add-aws-cloudfront-lambda-origin.overlay.action.d.ts +26 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-lambda-origin/actions/add-aws-cloudfront-lambda-origin.overlay.action.js +73 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-lambda-origin/actions/add-aws-cloudfront-lambda-origin.overlay.action.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-lambda-origin/aws-cloudfront-lambda-origin.overlay.d.ts +21 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-lambda-origin/aws-cloudfront-lambda-origin.overlay.js +36 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-lambda-origin/aws-cloudfront-lambda-origin.overlay.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-lambda-origin/aws-cloudfront-lambda-origin.schema.d.ts +9 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-lambda-origin/aws-cloudfront-lambda-origin.schema.js +11 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-lambda-origin/aws-cloudfront-lambda-origin.schema.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-lambda-origin/index.d.ts +2 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-lambda-origin/index.js +3 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-lambda-origin/index.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-s3-origin/actions/add-aws-cloudfront-s3-origin.overlay.action.d.ts +26 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-s3-origin/actions/add-aws-cloudfront-s3-origin.overlay.action.js +80 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-s3-origin/actions/add-aws-cloudfront-s3-origin.overlay.action.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-s3-origin/aws-cloudfront-s3-origin.overlay.d.ts +20 -0
- package/dist/modules/{server/aws-ecs-server/overlays/aws-ecs-server-s3-access/aws-ecs-server-s3-access.overlay.js → service/aws-cloudfront-service/overlays/aws-cloudfront-s3-origin/aws-cloudfront-s3-origin.overlay.js} +10 -8
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-s3-origin/aws-cloudfront-s3-origin.overlay.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-s3-origin/aws-cloudfront-s3-origin.schema.d.ts +9 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-s3-origin/aws-cloudfront-s3-origin.schema.js +11 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-s3-origin/aws-cloudfront-s3-origin.schema.js.map +1 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-s3-origin/index.d.ts +2 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-s3-origin/index.js +3 -0
- package/dist/modules/service/aws-cloudfront-service/overlays/aws-cloudfront-s3-origin/index.js.map +1 -0
- package/dist/modules/service/aws-dynamodb-global-service/aws-dynamodb-global-service.module.d.ts +9 -7
- package/dist/modules/service/aws-dynamodb-global-service/aws-dynamodb-global-service.module.js +32 -11
- package/dist/modules/service/aws-dynamodb-global-service/aws-dynamodb-global-service.module.js.map +1 -1
- package/dist/modules/service/aws-dynamodb-global-service/index.schema.d.ts +3 -2
- package/dist/modules/service/aws-dynamodb-global-service/index.schema.js +3 -2
- package/dist/modules/service/aws-dynamodb-global-service/index.schema.js.map +1 -1
- package/dist/modules/service/aws-dynamodb-global-service/models/service/actions/add-aws-dynamodb-global-service-replica-region.model.action.d.ts +29 -0
- package/dist/modules/service/aws-dynamodb-global-service/models/service/actions/add-aws-dynamodb-global-service-replica-region.model.action.js +54 -0
- package/dist/modules/service/aws-dynamodb-global-service/models/service/actions/add-aws-dynamodb-global-service-replica-region.model.action.js.map +1 -0
- package/dist/modules/service/aws-dynamodb-global-service/models/service/actions/add-aws-dynamodb-global-service.model.action.js +12 -3
- package/dist/modules/service/aws-dynamodb-global-service/models/service/actions/add-aws-dynamodb-global-service.model.action.js.map +1 -1
- package/dist/modules/service/aws-dynamodb-global-service/models/service/aws-dynamodb-global-service.model.d.ts +7 -3
- package/dist/modules/service/aws-dynamodb-global-service/models/service/aws-dynamodb-global-service.model.js +14 -7
- package/dist/modules/service/aws-dynamodb-global-service/models/service/aws-dynamodb-global-service.model.js.map +1 -1
- package/dist/modules/service/aws-dynamodb-global-service/models/service/index.d.ts +1 -0
- package/dist/modules/service/aws-dynamodb-global-service/models/service/index.js +1 -0
- package/dist/modules/service/aws-dynamodb-global-service/models/service/index.js.map +1 -1
- package/dist/modules/service/aws-dynamodb-service/aws-dynamodb-service.module.d.ts +5 -4
- package/dist/modules/service/aws-dynamodb-service/aws-dynamodb-service.module.js +17 -12
- package/dist/modules/service/aws-dynamodb-service/aws-dynamodb-service.module.js.map +1 -1
- package/dist/modules/service/aws-dynamodb-service/index.schema.d.ts +1 -2
- package/dist/modules/service/aws-dynamodb-service/index.schema.js +2 -4
- package/dist/modules/service/aws-dynamodb-service/index.schema.js.map +1 -1
- package/dist/modules/service/aws-dynamodb-service/models/service/aws-dynamodb-service.model.d.ts +3 -3
- package/dist/modules/service/aws-dynamodb-service/models/service/aws-dynamodb-service.model.js +8 -7
- package/dist/modules/service/aws-dynamodb-service/models/service/aws-dynamodb-service.model.js.map +1 -1
- package/dist/modules/service/aws-ecs-alb-service/aws-ecs-alb-service.module.d.ts +20 -10
- package/dist/modules/service/aws-ecs-alb-service/aws-ecs-alb-service.module.js +23 -17
- package/dist/modules/service/aws-ecs-alb-service/aws-ecs-alb-service.module.js.map +1 -1
- package/dist/modules/service/aws-ecs-alb-service/models/service/actions/add-aws-ecs-alb-service.model.action.js +2 -2
- package/dist/modules/service/aws-ecs-alb-service/models/service/actions/add-aws-ecs-alb-service.model.action.js.map +1 -1
- package/dist/modules/service/aws-ecs-alb-service/models/service/aws-ecs-alb-service.model.d.ts +1 -5
- package/dist/modules/service/aws-ecs-alb-service/models/service/aws-ecs-alb-service.model.js +4 -22
- package/dist/modules/service/aws-ecs-alb-service/models/service/aws-ecs-alb-service.model.js.map +1 -1
- package/dist/modules/service/aws-ecs-alb-service/models/service/aws-ecs-alb-service.schema.d.ts +1 -2
- package/dist/modules/service/aws-ecs-alb-service/models/service/aws-ecs-alb-service.schema.js +0 -1
- package/dist/modules/service/aws-ecs-alb-service/models/service/aws-ecs-alb-service.schema.js.map +1 -1
- package/dist/modules/service/aws-ecs-alb-service/overlays/aws-ecs-alb-service/actions/add-aws-ecs-alb-service.overlay.action.js +7 -8
- package/dist/modules/service/aws-ecs-alb-service/overlays/aws-ecs-alb-service/actions/add-aws-ecs-alb-service.overlay.action.js.map +1 -1
- package/dist/modules/service/aws-s3-static-website-service/aws-s3-static-website-service.module.d.ts +9 -14
- package/dist/modules/service/aws-s3-static-website-service/aws-s3-static-website-service.module.js +19 -24
- package/dist/modules/service/aws-s3-static-website-service/aws-s3-static-website-service.module.js.map +1 -1
- package/dist/modules/service/aws-s3-static-website-service/index.schema.d.ts +5 -68
- package/dist/modules/service/aws-s3-static-website-service/index.schema.js +20 -127
- package/dist/modules/service/aws-s3-static-website-service/index.schema.js.map +1 -1
- package/dist/modules/service/aws-s3-static-website-service/models/service/actions/add-aws-s3-static-website-service.model.action.js +1 -83
- package/dist/modules/service/aws-s3-static-website-service/models/service/actions/add-aws-s3-static-website-service.model.action.js.map +1 -1
- package/dist/modules/service/aws-s3-static-website-service/models/service/actions/update-aws-s3-static-website-service-source-paths.model.action.d.ts +2 -1
- package/dist/modules/service/aws-s3-static-website-service/models/service/actions/update-aws-s3-static-website-service-source-paths.model.action.js +0 -15
- package/dist/modules/service/aws-s3-static-website-service/models/service/actions/update-aws-s3-static-website-service-source-paths.model.action.js.map +1 -1
- package/dist/modules/service/aws-s3-static-website-service/models/service/aws-s3-static-website-service.model.d.ts +6 -24
- package/dist/modules/service/aws-s3-static-website-service/models/service/aws-s3-static-website-service.model.js +11 -89
- package/dist/modules/service/aws-s3-static-website-service/models/service/aws-s3-static-website-service.model.js.map +1 -1
- package/dist/modules/service/aws-s3-storage-service/aws-s3-storage-service.module.d.ts +19 -8
- package/dist/modules/service/aws-s3-storage-service/aws-s3-storage-service.module.js +44 -20
- package/dist/modules/service/aws-s3-storage-service/aws-s3-storage-service.module.js.map +1 -1
- package/dist/modules/service/aws-s3-storage-service/index.schema.d.ts +53 -7
- package/dist/modules/service/aws-s3-storage-service/index.schema.js +126 -11
- package/dist/modules/service/aws-s3-storage-service/index.schema.js.map +1 -1
- package/dist/modules/service/aws-s3-storage-service/models/service/actions/add-aws-s3-storage-service.model.action.js +4 -0
- package/dist/modules/service/aws-s3-storage-service/models/service/actions/add-aws-s3-storage-service.model.action.js.map +1 -1
- package/dist/modules/service/aws-s3-storage-service/models/service/actions/update-aws-s3-storage-service-source-paths.model.action.d.ts +27 -0
- package/dist/modules/service/aws-s3-storage-service/models/service/actions/update-aws-s3-storage-service-source-paths.model.action.js +56 -0
- package/dist/modules/service/aws-s3-storage-service/models/service/actions/update-aws-s3-storage-service-source-paths.model.action.js.map +1 -0
- package/dist/modules/service/aws-s3-storage-service/models/service/aws-s3-storage-service.model.d.ts +26 -8
- package/dist/modules/service/aws-s3-storage-service/models/service/aws-s3-storage-service.model.js +56 -20
- package/dist/modules/service/aws-s3-storage-service/models/service/aws-s3-storage-service.model.js.map +1 -1
- package/dist/modules/service/aws-s3-storage-service/models/service/aws-s3-storage-service.schema.d.ts +13 -3
- package/dist/modules/service/aws-s3-storage-service/models/service/aws-s3-storage-service.schema.js +19 -3
- package/dist/modules/service/aws-s3-storage-service/models/service/aws-s3-storage-service.schema.js.map +1 -1
- package/dist/modules/service/aws-s3-storage-service/models/service/index.d.ts +1 -0
- package/dist/modules/service/aws-s3-storage-service/models/service/index.js +1 -0
- package/dist/modules/service/aws-s3-storage-service/models/service/index.js.map +1 -1
- package/dist/modules/subnet/aws-serverless-subnet/aws-serverless-subnet.module.d.ts +31 -0
- package/dist/modules/subnet/aws-serverless-subnet/aws-serverless-subnet.module.js +55 -0
- package/dist/modules/subnet/aws-serverless-subnet/aws-serverless-subnet.module.js.map +1 -0
- package/dist/modules/subnet/aws-serverless-subnet/index.d.ts +1 -0
- package/dist/modules/subnet/aws-serverless-subnet/index.js +2 -0
- package/dist/modules/subnet/aws-serverless-subnet/index.js.map +1 -0
- package/dist/modules/subnet/aws-serverless-subnet/index.schema.d.ts +17 -0
- package/dist/modules/subnet/aws-serverless-subnet/index.schema.js +46 -0
- package/dist/modules/subnet/aws-serverless-subnet/index.schema.js.map +1 -0
- package/dist/modules/subnet/aws-serverless-subnet/models/subnet/actions/add-aws-serverless-subnet.model.action.d.ts +28 -0
- package/dist/modules/subnet/aws-serverless-subnet/models/subnet/actions/add-aws-serverless-subnet.model.action.js +53 -0
- package/dist/modules/subnet/aws-serverless-subnet/models/subnet/actions/add-aws-serverless-subnet.model.action.js.map +1 -0
- package/dist/modules/subnet/aws-serverless-subnet/models/subnet/aws-serverless-subnet.model.d.ts +11 -0
- package/dist/modules/subnet/aws-serverless-subnet/models/subnet/aws-serverless-subnet.model.js +26 -0
- package/dist/modules/subnet/aws-serverless-subnet/models/subnet/aws-serverless-subnet.model.js.map +1 -0
- package/dist/modules/subnet/aws-serverless-subnet/models/subnet/aws-serverless-subnet.schema.d.ts +6 -0
- package/dist/modules/subnet/aws-serverless-subnet/models/subnet/aws-serverless-subnet.schema.js +7 -0
- package/dist/modules/subnet/aws-serverless-subnet/models/subnet/aws-serverless-subnet.schema.js.map +1 -0
- package/dist/modules/subnet/aws-serverless-subnet/models/subnet/index.d.ts +2 -0
- package/dist/modules/subnet/aws-serverless-subnet/models/subnet/index.js +3 -0
- package/dist/modules/subnet/aws-serverless-subnet/models/subnet/index.js.map +1 -0
- package/dist/modules/subnet/aws-simple-subnet/aws-simple-subnet.module.d.ts +4 -3
- package/dist/modules/subnet/aws-simple-subnet/aws-simple-subnet.module.js +7 -4
- package/dist/modules/subnet/aws-simple-subnet/aws-simple-subnet.module.js.map +1 -1
- package/dist/modules/subnet/aws-simple-subnet/models/subnet/actions/add-aws-simple-subnet.model.action.js +9 -9
- package/dist/modules/subnet/aws-simple-subnet/models/subnet/actions/add-aws-simple-subnet.model.action.js.map +1 -1
- package/dist/modules/subnet/aws-simple-subnet/overlays/aws-simple-subnet-local-filesystem-mount/actions/add-aws-simple-subnet-local-filesystem-mount.overlay.action.js +11 -9
- package/dist/modules/subnet/aws-simple-subnet/overlays/aws-simple-subnet-local-filesystem-mount/actions/add-aws-simple-subnet-local-filesystem-mount.overlay.action.js.map +1 -1
- package/dist/modules/subnet/aws-simple-subnet/overlays/aws-simple-subnet-local-filesystem-mount/aws-simple-subnet-local-filesystem-mount.overlay.d.ts +1 -0
- package/dist/modules/subnet/aws-simple-subnet/overlays/aws-simple-subnet-local-filesystem-mount/aws-simple-subnet-local-filesystem-mount.overlay.js.map +1 -1
- package/dist/resources/alb/alb.resource.js +3 -1
- package/dist/resources/alb/alb.resource.js.map +1 -1
- package/dist/resources/alb-listener/index.schema.d.ts +2 -2
- package/dist/resources/alb-listener/index.schema.js +2 -2
- package/dist/resources/alb-target-group/alb-target-group.resource.js +3 -1
- package/dist/resources/alb-target-group/alb-target-group.resource.js.map +1 -1
- package/dist/resources/cloudfront-distribution/cloudfront-behavior.schema.d.ts +136 -0
- package/dist/resources/cloudfront-distribution/cloudfront-behavior.schema.js +215 -0
- package/dist/resources/cloudfront-distribution/cloudfront-behavior.schema.js.map +1 -0
- package/dist/resources/cloudfront-distribution/cloudfront-distribution.resource.d.ts +48 -16
- package/dist/resources/cloudfront-distribution/cloudfront-distribution.resource.js +176 -96
- package/dist/resources/cloudfront-distribution/cloudfront-distribution.resource.js.map +1 -1
- package/dist/resources/cloudfront-distribution/cloudfront-origin.schema.d.ts +93 -0
- package/dist/resources/cloudfront-distribution/cloudfront-origin.schema.js +136 -0
- package/dist/resources/cloudfront-distribution/cloudfront-origin.schema.js.map +1 -0
- package/dist/resources/cloudfront-distribution/cloudfront-policy.schema.d.ts +361 -0
- package/dist/resources/cloudfront-distribution/cloudfront-policy.schema.js +467 -0
- package/dist/resources/cloudfront-distribution/cloudfront-policy.schema.js.map +1 -0
- package/dist/resources/cloudfront-distribution/cloudfront-response.schema.d.ts +29 -0
- package/dist/resources/cloudfront-distribution/cloudfront-response.schema.js +58 -0
- package/dist/resources/cloudfront-distribution/cloudfront-response.schema.js.map +1 -0
- package/dist/resources/cloudfront-distribution/index.schema.d.ts +50 -422
- package/dist/resources/cloudfront-distribution/index.schema.js +81 -618
- package/dist/resources/cloudfront-distribution/index.schema.js.map +1 -1
- package/dist/resources/cloudfront-invalidation/actions/add-cloudfront-invalidation.resource.action.js +1 -1
- package/dist/resources/cloudfront-invalidation/actions/add-cloudfront-invalidation.resource.action.js.map +1 -1
- package/dist/resources/cloudfront-invalidation/actions/update-cloudfront-invalidation.resource.action.js +1 -1
- package/dist/resources/cloudfront-invalidation/actions/update-cloudfront-invalidation.resource.action.js.map +1 -1
- package/dist/resources/cloudfront-invalidation/cloudfront-invalidation.resource.d.ts +6 -2
- package/dist/resources/cloudfront-invalidation/cloudfront-invalidation.resource.js +3 -0
- package/dist/resources/cloudfront-invalidation/cloudfront-invalidation.resource.js.map +1 -1
- package/dist/resources/cloudfront-invalidation/index.schema.d.ts +5 -2
- package/dist/resources/cloudfront-invalidation/index.schema.js +5 -2
- package/dist/resources/cloudfront-invalidation/index.schema.js.map +1 -1
- package/dist/resources/dynamodb/dynamodb.resource.js +16 -4
- package/dist/resources/dynamodb/dynamodb.resource.js.map +1 -1
- package/dist/resources/dynamodb-global/dynamodb-global.resource.js +1 -1
- package/dist/resources/dynamodb-global/dynamodb-global.resource.js.map +1 -1
- package/dist/resources/ecr/ecr-image.resource.js +4 -1
- package/dist/resources/ecr/ecr-image.resource.js.map +1 -1
- package/dist/resources/ecr-image-tag/actions/add-ecr-image-tag.resource.action.d.ts +1 -1
- package/dist/resources/ecr-image-tag/actions/add-ecr-image-tag.resource.action.js +15 -5
- package/dist/resources/ecr-image-tag/actions/add-ecr-image-tag.resource.action.js.map +1 -1
- package/dist/resources/ecr-image-tag/actions/delete-ecr-image-tag.resource.action.js +1 -1
- package/dist/resources/ecr-image-tag/actions/delete-ecr-image-tag.resource.action.js.map +1 -1
- package/dist/resources/ecr-image-tag/ecr-image-tag.resource.js +3 -1
- package/dist/resources/ecr-image-tag/ecr-image-tag.resource.js.map +1 -1
- package/dist/resources/ecr-image-tag/index.schema.d.ts +11 -0
- package/dist/resources/ecr-image-tag/index.schema.js +26 -11
- package/dist/resources/ecr-image-tag/index.schema.js.map +1 -1
- package/dist/resources/ecs-cluster/ecs-cluster.resource.js +3 -1
- package/dist/resources/ecs-cluster/ecs-cluster.resource.js.map +1 -1
- package/dist/resources/ecs-service/ecs-service.resource.js +0 -4
- package/dist/resources/ecs-service/ecs-service.resource.js.map +1 -1
- package/dist/resources/ecs-task-definition/ecs-task-definition.resource.d.ts +9 -6
- package/dist/resources/ecs-task-definition/ecs-task-definition.resource.js +18 -8
- package/dist/resources/ecs-task-definition/ecs-task-definition.resource.js.map +1 -1
- package/dist/resources/ecs-task-definition/index.schema.d.ts +5 -6
- package/dist/resources/ecs-task-definition/index.schema.js +9 -6
- package/dist/resources/ecs-task-definition/index.schema.js.map +1 -1
- package/dist/resources/efs/efs.resource.js +1 -1
- package/dist/resources/efs/efs.resource.js.map +1 -1
- package/dist/resources/efs-mount-target/index.schema.d.ts +1 -1
- package/dist/resources/efs-mount-target/index.schema.js +1 -1
- package/dist/resources/iam-role/iam-role.resource.d.ts +29 -2
- package/dist/resources/iam-role/iam-role.resource.js +163 -37
- package/dist/resources/iam-role/iam-role.resource.js.map +1 -1
- package/dist/resources/iam-role/index.schema.d.ts +45 -11
- package/dist/resources/iam-role/index.schema.js.map +1 -1
- package/dist/resources/iam-user/iam-user.resource.d.ts +23 -2
- package/dist/resources/iam-user/iam-user.resource.js +130 -27
- package/dist/resources/iam-user/iam-user.resource.js.map +1 -1
- package/dist/resources/iam-user/index.schema.d.ts +33 -5
- package/dist/resources/iam-user/index.schema.js.map +1 -1
- package/dist/resources/lambda-function/index.d.ts +1 -0
- package/dist/resources/lambda-function/index.js +2 -0
- package/dist/resources/lambda-function/index.js.map +1 -0
- package/dist/resources/lambda-function/index.schema.d.ts +75 -0
- package/dist/resources/lambda-function/index.schema.js +139 -0
- package/dist/resources/lambda-function/index.schema.js.map +1 -0
- package/dist/resources/lambda-function/lambda-function.resource.d.ts +50 -0
- package/dist/resources/lambda-function/lambda-function.resource.js +199 -0
- package/dist/resources/lambda-function/lambda-function.resource.js.map +1 -0
- package/dist/resources/nat-gateway/nat-gateway.resource.d.ts +2 -7
- package/dist/resources/nat-gateway/nat-gateway.resource.js +2 -2
- package/dist/resources/nat-gateway/nat-gateway.resource.js.map +1 -1
- package/dist/resources/s3-storage/index.schema.d.ts +118 -6
- package/dist/resources/s3-storage/index.schema.js +200 -7
- package/dist/resources/s3-storage/index.schema.js.map +1 -1
- package/dist/resources/s3-storage/s3-storage.resource.d.ts +25 -12
- package/dist/resources/s3-storage/s3-storage.resource.js +211 -110
- package/dist/resources/s3-storage/s3-storage.resource.js.map +1 -1
- package/dist/resources/s3-website/index.schema.d.ts +1 -19
- package/dist/resources/s3-website/index.schema.js +1 -34
- package/dist/resources/s3-website/index.schema.js.map +1 -1
- package/dist/resources/s3-website/s3-website.resource.d.ts +4 -31
- package/dist/resources/s3-website/s3-website.resource.js +29 -82
- package/dist/resources/s3-website/s3-website.resource.js.map +1 -1
- package/dist/resources/security-group/security-group.resource.js +13 -2
- package/dist/resources/security-group/security-group.resource.js.map +1 -1
- package/dist/services/docker/docker.service.d.ts +28 -7
- package/dist/services/docker/docker.service.js +53 -17
- package/dist/services/docker/docker.service.js.map +1 -1
- package/dist/utilities/aws-region/aws-region.utility.d.ts +15 -0
- package/dist/utilities/aws-region/aws-region.utility.js +19 -0
- package/dist/utilities/aws-region/aws-region.utility.js.map +1 -0
- package/dist/utilities/file/file.utility.d.ts +0 -4
- package/dist/utilities/file/file.utility.js +0 -6
- package/dist/utilities/file/file.utility.js.map +1 -1
- package/dist/utilities/retry/retry.utility.d.ts +5 -9
- package/dist/utilities/retry/retry.utility.js +0 -20
- package/dist/utilities/retry/retry.utility.js.map +1 -1
- package/dist/utilities/s3-file-source/s3-file-source.utility.d.ts +53 -0
- package/dist/utilities/s3-file-source/s3-file-source.utility.js +112 -0
- package/dist/utilities/s3-file-source/s3-file-source.utility.js.map +1 -0
- package/package.json +30 -10
- package/dist/anchors/aws-ecs/aws-ecs-server.anchor.d.ts +0 -12
- package/dist/anchors/aws-ecs/aws-ecs-server.anchor.js.map +0 -1
- package/dist/anchors/aws-ecs/aws-ecs-server.anchor.schema.d.ts +0 -27
- package/dist/anchors/aws-ecs/aws-ecs-server.anchor.schema.js.map +0 -1
- package/dist/anchors/aws-ecs/aws-ecs-task-definition.anchor.d.ts +0 -12
- package/dist/anchors/aws-ecs/aws-ecs-task-definition.anchor.js.map +0 -1
- package/dist/anchors/aws-ecs/aws-ecs-task-definition.anchor.schema.d.ts +0 -88
- package/dist/anchors/aws-ecs/aws-ecs-task-definition.anchor.schema.js +0 -138
- package/dist/anchors/aws-ecs/aws-ecs-task-definition.anchor.schema.js.map +0 -1
- package/dist/anchors/aws-iam/aws-iam-role.anchor.d.ts +0 -12
- package/dist/anchors/aws-iam/aws-iam-role.anchor.js.map +0 -1
- package/dist/anchors/aws-iam/aws-iam-role.anchor.schema.d.ts +0 -24
- package/dist/anchors/aws-iam/aws-iam-role.anchor.schema.js.map +0 -1
- package/dist/anchors/aws-s3-storage-service/aws-s3-storage-service-directory.anchor.d.ts +0 -12
- package/dist/anchors/aws-s3-storage-service/aws-s3-storage-service-directory.anchor.js.map +0 -1
- package/dist/anchors/aws-s3-storage-service/aws-s3-storage-service-directory.anchor.schema.js.map +0 -1
- package/dist/modules/deployment/aws-ecs-deployment/aws-ecs-deployment.module.d.ts +0 -41
- package/dist/modules/deployment/aws-ecs-deployment/aws-ecs-deployment.module.js +0 -61
- package/dist/modules/deployment/aws-ecs-deployment/aws-ecs-deployment.module.js.map +0 -1
- package/dist/modules/deployment/aws-ecs-deployment/index.d.ts +0 -1
- package/dist/modules/deployment/aws-ecs-deployment/index.js +0 -2
- package/dist/modules/deployment/aws-ecs-deployment/index.js.map +0 -1
- package/dist/modules/deployment/aws-ecs-deployment/index.schema.d.ts +0 -33
- package/dist/modules/deployment/aws-ecs-deployment/index.schema.js +0 -71
- package/dist/modules/deployment/aws-ecs-deployment/index.schema.js.map +0 -1
- package/dist/modules/deployment/aws-ecs-deployment/models/deployment/actions/add-aws-ecs-deployment.model.action.d.ts +0 -25
- package/dist/modules/deployment/aws-ecs-deployment/models/deployment/actions/add-aws-ecs-deployment.model.action.js.map +0 -1
- package/dist/modules/deployment/aws-ecs-deployment/models/deployment/aws-ecs-deployment.model.d.ts +0 -11
- package/dist/modules/deployment/aws-ecs-deployment/models/deployment/aws-ecs-deployment.model.js.map +0 -1
- package/dist/modules/deployment/aws-ecs-deployment/models/deployment/aws-ecs-deployment.schema.js +0 -7
- package/dist/modules/deployment/aws-ecs-deployment/models/deployment/aws-ecs-deployment.schema.js.map +0 -1
- package/dist/modules/deployment/aws-ecs-deployment/models/deployment/index.d.ts +0 -2
- package/dist/modules/deployment/aws-ecs-deployment/models/deployment/index.js +0 -3
- package/dist/modules/deployment/aws-ecs-deployment/models/deployment/index.js.map +0 -1
- package/dist/modules/server/aws-ecs-server/aws-ecs-server.module.d.ts +0 -58
- package/dist/modules/server/aws-ecs-server/aws-ecs-server.module.js +0 -148
- package/dist/modules/server/aws-ecs-server/aws-ecs-server.module.js.map +0 -1
- package/dist/modules/server/aws-ecs-server/index.d.ts +0 -1
- package/dist/modules/server/aws-ecs-server/index.js +0 -2
- package/dist/modules/server/aws-ecs-server/index.js.map +0 -1
- package/dist/modules/server/aws-ecs-server/index.schema.d.ts +0 -83
- package/dist/modules/server/aws-ecs-server/index.schema.js +0 -153
- package/dist/modules/server/aws-ecs-server/index.schema.js.map +0 -1
- package/dist/modules/server/aws-ecs-server/models/server/actions/add-aws-ecs-server.model.action.d.ts +0 -25
- package/dist/modules/server/aws-ecs-server/models/server/actions/add-aws-ecs-server.model.action.js +0 -71
- package/dist/modules/server/aws-ecs-server/models/server/actions/add-aws-ecs-server.model.action.js.map +0 -1
- package/dist/modules/server/aws-ecs-server/models/server/aws-ecs-server.model.d.ts +0 -11
- package/dist/modules/server/aws-ecs-server/models/server/aws-ecs-server.model.js.map +0 -1
- package/dist/modules/server/aws-ecs-server/models/server/aws-ecs-server.schema.js +0 -7
- package/dist/modules/server/aws-ecs-server/models/server/aws-ecs-server.schema.js.map +0 -1
- package/dist/modules/server/aws-ecs-server/models/server/index.d.ts +0 -2
- package/dist/modules/server/aws-ecs-server/models/server/index.js +0 -3
- package/dist/modules/server/aws-ecs-server/models/server/index.js.map +0 -1
- package/dist/modules/server/aws-ecs-server/overlays/aws-ecs-server-s3-access/actions/add-aws-ecs-server-s3-access.overlay.action.d.ts +0 -26
- package/dist/modules/server/aws-ecs-server/overlays/aws-ecs-server-s3-access/actions/add-aws-ecs-server-s3-access.overlay.action.js +0 -73
- package/dist/modules/server/aws-ecs-server/overlays/aws-ecs-server-s3-access/actions/add-aws-ecs-server-s3-access.overlay.action.js.map +0 -1
- package/dist/modules/server/aws-ecs-server/overlays/aws-ecs-server-s3-access/aws-ecs-server-s3-access.overlay.d.ts +0 -19
- package/dist/modules/server/aws-ecs-server/overlays/aws-ecs-server-s3-access/aws-ecs-server-s3-access.overlay.js.map +0 -1
- package/dist/modules/server/aws-ecs-server/overlays/aws-ecs-server-s3-access/aws-ecs-server-s3-access.schema.js.map +0 -1
- package/dist/modules/server/aws-ecs-server/overlays/aws-ecs-server-s3-access/index.d.ts +0 -2
- package/dist/modules/server/aws-ecs-server/overlays/aws-ecs-server-s3-access/index.js +0 -3
- package/dist/modules/server/aws-ecs-server/overlays/aws-ecs-server-s3-access/index.js.map +0 -1
- package/dist/utilities/common/common.utility.d.ts +0 -13
- package/dist/utilities/common/common.utility.js +0 -28
- package/dist/utilities/common/common.utility.js.map +0 -1
- package/dist/utilities/hcl/hcl.utility.d.ts +0 -34
- package/dist/utilities/hcl/hcl.utility.js +0 -163
- package/dist/utilities/hcl/hcl.utility.js.map +0 -1
|
@@ -8,594 +8,27 @@ 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 { BaseResourceSchema, Schema, Validate } from '@quadnix/octo';
|
|
11
|
+
import { CLOUDFRONT_ALLOWED_METHODS, CLOUDFRONT_CACHED_METHODS, CLOUDFRONT_VIEWER_PROTOCOL_POLICIES, CloudFrontBehaviorSchema, CloudFrontFunctionAssociationSchema, } from './cloudfront-behavior.schema.js';
|
|
12
|
+
import { CloudFrontOriginGroupSchema, CloudFrontOriginSchema } from './cloudfront-origin.schema.js';
|
|
13
|
+
import { CLOUDFRONT_MANAGED_CACHE_POLICIES, CLOUDFRONT_MANAGED_ORIGIN_REQUEST_POLICIES, CLOUDFRONT_MANAGED_RESPONSE_HEADERS_POLICIES, CloudFrontCachePolicySchema, CloudFrontCorsSchema, CloudFrontCustomHeaderSchema, CloudFrontOriginRequestPolicySchema, CloudFrontResponseHeadersPolicySchema, CloudFrontSecurityHeadersSchema, } from './cloudfront-policy.schema.js';
|
|
14
|
+
import { CloudFrontCustomErrorResponseSchema } from './cloudfront-response.schema.js';
|
|
15
|
+
export { CLOUDFRONT_ALLOWED_METHODS, CLOUDFRONT_CACHED_METHODS, CLOUDFRONT_MANAGED_CACHE_POLICIES, CLOUDFRONT_MANAGED_ORIGIN_REQUEST_POLICIES, CLOUDFRONT_MANAGED_RESPONSE_HEADERS_POLICIES, CLOUDFRONT_VIEWER_PROTOCOL_POLICIES, CloudFrontBehaviorSchema, CloudFrontCachePolicySchema, CloudFrontCorsSchema, CloudFrontCustomErrorResponseSchema, CloudFrontCustomHeaderSchema, CloudFrontFunctionAssociationSchema, CloudFrontOriginGroupSchema, CloudFrontOriginRequestPolicySchema, CloudFrontOriginSchema, CloudFrontResponseHeadersPolicySchema, CloudFrontSecurityHeadersSchema, };
|
|
16
|
+
const CLOUDFRONT_HTTP_VERSIONS = ['http1.1', 'http2', 'http2and3'];
|
|
17
|
+
/* eslint-disable spellcheck/spell-checker */
|
|
18
|
+
const CLOUDFRONT_MINIMUM_PROTOCOL_VERSIONS = [
|
|
19
|
+
'TLSv1',
|
|
20
|
+
'TLSv1.1_2016',
|
|
21
|
+
'TLSv1.2_2018',
|
|
22
|
+
'TLSv1.2_2019',
|
|
23
|
+
'TLSv1.2_2021',
|
|
24
|
+
'TLSv1.2_2025',
|
|
25
|
+
'TLSv1.3_2025',
|
|
26
|
+
'TLSv1_2016',
|
|
27
|
+
];
|
|
11
28
|
/**
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* @group Resources/CloudFrontDistribution
|
|
15
|
-
*
|
|
16
|
-
* @hideconstructor
|
|
17
|
-
*/
|
|
18
|
-
export class CloudFrontOriginSchema {
|
|
19
|
-
constructor() {
|
|
20
|
-
/**
|
|
21
|
-
* How many times CloudFront retries the origin before giving up. Between 1 and 3.
|
|
22
|
-
*/
|
|
23
|
-
this.connectionAttempts = Schema(3);
|
|
24
|
-
/**
|
|
25
|
-
* How long CloudFront waits to establish a connection to the origin, in seconds. Between 1 and 10.
|
|
26
|
-
*/
|
|
27
|
-
this.connectionTimeout = Schema(10);
|
|
28
|
-
/**
|
|
29
|
-
* Headers CloudFront adds to every request it sends to this origin.
|
|
30
|
-
* This is how a load balancer rejects anything that did not arrive through the distribution.
|
|
31
|
-
*/
|
|
32
|
-
this.customHeaders = Schema({});
|
|
33
|
-
/**
|
|
34
|
-
* What kind of origin this is, and the settings that only apply to that kind.
|
|
35
|
-
*
|
|
36
|
-
* * `s3` is a bucket reached privately. The distribution emits an origin access control for it,
|
|
37
|
-
* and builds the hostname from `bucketName` and `bucketRegion` rather than referencing the bucket,
|
|
38
|
-
* because the bucket's own policy already references this distribution. Granting the distribution
|
|
39
|
-
* read on the bucket is the bucket's job, driven by an overlay.
|
|
40
|
-
* * `custom` is anything that speaks HTTP - a load balancer, an EC2 instance, an API, a third
|
|
41
|
-
* party, or an S3 website endpoint.
|
|
42
|
-
*/
|
|
43
|
-
this.kind = Schema();
|
|
44
|
-
/**
|
|
45
|
-
* How this origin is named by behaviors and origin groups. Unique across origins and origin groups.
|
|
46
|
-
*/
|
|
47
|
-
this.originId = Schema();
|
|
48
|
-
/**
|
|
49
|
-
* A prefix CloudFront prepends to the path before asking the origin for it.
|
|
50
|
-
* Empty asks the origin for the path the viewer requested.
|
|
51
|
-
*/
|
|
52
|
-
this.originPath = Schema('');
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
__decorate([
|
|
56
|
-
Validate({ options: { maxLength: 3, minLength: 1 } }),
|
|
57
|
-
__metadata("design:type", Object)
|
|
58
|
-
], CloudFrontOriginSchema.prototype, "connectionAttempts", void 0);
|
|
59
|
-
__decorate([
|
|
60
|
-
Validate({ options: { maxLength: 10, minLength: 1 } }),
|
|
61
|
-
__metadata("design:type", Object)
|
|
62
|
-
], CloudFrontOriginSchema.prototype, "connectionTimeout", void 0);
|
|
63
|
-
__decorate([
|
|
64
|
-
Validate({
|
|
65
|
-
destruct: (value) => Object.keys(value),
|
|
66
|
-
options: { minLength: 1 },
|
|
67
|
-
}),
|
|
68
|
-
__metadata("design:type", Object)
|
|
69
|
-
], CloudFrontOriginSchema.prototype, "customHeaders", void 0);
|
|
70
|
-
__decorate([
|
|
71
|
-
Validate({
|
|
72
|
-
destruct: (value) => value.kind === 's3'
|
|
73
|
-
? [value.bucketName, value.bucketRegion]
|
|
74
|
-
: [value.originProtocolPolicy, ...value.sslProtocols],
|
|
75
|
-
options: { minLength: 1 },
|
|
76
|
-
}),
|
|
77
|
-
__metadata("design:type", Object)
|
|
78
|
-
], CloudFrontOriginSchema.prototype, "kind", void 0);
|
|
79
|
-
__decorate([
|
|
80
|
-
Validate({ options: { minLength: 1 } }),
|
|
81
|
-
__metadata("design:type", Object)
|
|
82
|
-
], CloudFrontOriginSchema.prototype, "originId", void 0);
|
|
83
|
-
/**
|
|
84
|
-
* A primary origin and the origin CloudFront falls back to when the primary answers with one of
|
|
85
|
-
* `failoverStatusCodes`.
|
|
86
|
-
*
|
|
87
|
-
* @group Resources/CloudFrontDistribution
|
|
88
|
-
*
|
|
89
|
-
* @hideconstructor
|
|
90
|
-
*/
|
|
91
|
-
export class CloudFrontOriginGroupSchema {
|
|
92
|
-
constructor() {
|
|
93
|
-
/**
|
|
94
|
-
* The origin id CloudFront falls back to.
|
|
95
|
-
*/
|
|
96
|
-
this.failoverOriginId = Schema();
|
|
97
|
-
/**
|
|
98
|
-
* The status codes from the primary origin that trigger the failover.
|
|
99
|
-
*/
|
|
100
|
-
this.failoverStatusCodes = Schema();
|
|
101
|
-
/**
|
|
102
|
-
* How this group is named by behaviors. Unique across origins and origin groups.
|
|
103
|
-
*/
|
|
104
|
-
this.originGroupId = Schema();
|
|
105
|
-
/**
|
|
106
|
-
* The origin id CloudFront tries first.
|
|
107
|
-
*/
|
|
108
|
-
this.primaryOriginId = Schema();
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
__decorate([
|
|
112
|
-
Validate({ options: { minLength: 1 } }),
|
|
113
|
-
__metadata("design:type", Object)
|
|
114
|
-
], CloudFrontOriginGroupSchema.prototype, "failoverOriginId", void 0);
|
|
115
|
-
__decorate([
|
|
116
|
-
Validate({
|
|
117
|
-
destruct: (value) => value,
|
|
118
|
-
options: { maxLength: 599, minLength: 100 },
|
|
119
|
-
}),
|
|
120
|
-
__metadata("design:type", Object)
|
|
121
|
-
], CloudFrontOriginGroupSchema.prototype, "failoverStatusCodes", void 0);
|
|
122
|
-
__decorate([
|
|
123
|
-
Validate({ options: { minLength: 1 } }),
|
|
124
|
-
__metadata("design:type", Object)
|
|
125
|
-
], CloudFrontOriginGroupSchema.prototype, "originGroupId", void 0);
|
|
126
|
-
__decorate([
|
|
127
|
-
Validate({ options: { minLength: 1 } }),
|
|
128
|
-
__metadata("design:type", Object)
|
|
129
|
-
], CloudFrontOriginGroupSchema.prototype, "primaryOriginId", void 0);
|
|
130
|
-
/**
|
|
131
|
-
* An edge function CloudFront runs for a behavior. The function itself is not created here - pass
|
|
132
|
-
* the ARN of one that already exists.
|
|
133
|
-
*
|
|
134
|
-
* @group Resources/CloudFrontDistribution
|
|
135
|
-
*
|
|
136
|
-
* @hideconstructor
|
|
137
|
-
*/
|
|
138
|
-
export class CloudFrontFunctionAssociationSchema {
|
|
139
|
-
constructor() {
|
|
140
|
-
/**
|
|
141
|
-
* The ARN of the CloudFront Function or the Lambda@Edge function version.
|
|
142
|
-
*/
|
|
143
|
-
this.arn = Schema();
|
|
144
|
-
/**
|
|
145
|
-
* Which lifecycle event the function runs on. See {@link ICloudFrontFunctionEventType}.
|
|
146
|
-
*/
|
|
147
|
-
this.eventType = Schema();
|
|
148
|
-
/**
|
|
149
|
-
* Which engine runs it. A `cloudfront-function` is JavaScript at the edge and may only bind to a
|
|
150
|
-
* viewer event; `lambda-edge` may bind to any of the four.
|
|
151
|
-
*/
|
|
152
|
-
this.kind = Schema();
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
__decorate([
|
|
156
|
-
Validate({ options: { minLength: 1 } }),
|
|
157
|
-
__metadata("design:type", Object)
|
|
158
|
-
], CloudFrontFunctionAssociationSchema.prototype, "arn", void 0);
|
|
159
|
-
__decorate([
|
|
160
|
-
Validate({ options: { minLength: 1 } }),
|
|
161
|
-
__metadata("design:type", Object)
|
|
162
|
-
], CloudFrontFunctionAssociationSchema.prototype, "eventType", void 0);
|
|
163
|
-
__decorate([
|
|
164
|
-
Validate({ options: { minLength: 1 } }),
|
|
165
|
-
__metadata("design:type", Object)
|
|
166
|
-
], CloudFrontFunctionAssociationSchema.prototype, "kind", void 0);
|
|
167
|
-
/**
|
|
168
|
-
* One rule binding a set of paths to an origin, and deciding everything about how those paths are
|
|
169
|
-
* served.
|
|
170
|
-
*
|
|
171
|
-
* @group Resources/CloudFrontDistribution
|
|
172
|
-
*
|
|
173
|
-
* @hideconstructor
|
|
174
|
-
*/
|
|
175
|
-
export class CloudFrontBehaviorSchema {
|
|
176
|
-
constructor() {
|
|
177
|
-
/**
|
|
178
|
-
* The HTTP methods CloudFront forwards to the origin.
|
|
179
|
-
* `['GET', 'HEAD']` is a CDN; the full set makes the distribution a reverse proxy.
|
|
180
|
-
*/
|
|
181
|
-
this.allowedMethods = Schema(['GET', 'HEAD']);
|
|
182
|
-
/**
|
|
183
|
-
* The subset of `allowedMethods` whose responses CloudFront caches.
|
|
184
|
-
*/
|
|
185
|
-
this.cachedMethods = Schema(['GET', 'HEAD']);
|
|
186
|
-
/**
|
|
187
|
-
* Which policy decides the cache key and the TTLs. See {@link ICloudFrontPolicyReference}.
|
|
188
|
-
*/
|
|
189
|
-
this.cachePolicy = Schema();
|
|
190
|
-
/**
|
|
191
|
-
* Whether CloudFront compresses the response for viewers that accept it.
|
|
192
|
-
*/
|
|
193
|
-
this.compress = Schema(true);
|
|
194
|
-
/**
|
|
195
|
-
* Edge functions to run for this behavior. See {@link CloudFrontFunctionAssociationSchema}.
|
|
196
|
-
*/
|
|
197
|
-
this.functionAssociations = Schema([]);
|
|
198
|
-
/**
|
|
199
|
-
* Which policy decides what reaches the origin, independently of the cache key.
|
|
200
|
-
* `null` forwards only what the cache policy already selected.
|
|
201
|
-
*/
|
|
202
|
-
this.originRequestPolicy = Schema(null);
|
|
203
|
-
/**
|
|
204
|
-
* The paths this behavior claims, e.g. `/api/*`. Absent on the default behavior, which claims
|
|
205
|
-
* everything no other behavior did.
|
|
206
|
-
*/
|
|
207
|
-
this.pathPattern = Schema(null);
|
|
208
|
-
/**
|
|
209
|
-
* Which policy decides the headers CloudFront adds on the way out - CORS, HSTS, and the app's own
|
|
210
|
-
* content security policy. `null` adds nothing.
|
|
211
|
-
*/
|
|
212
|
-
this.responseHeadersPolicy = Schema(null);
|
|
213
|
-
/**
|
|
214
|
-
* The origin or origin group serving these paths.
|
|
215
|
-
*/
|
|
216
|
-
this.targetOriginId = Schema();
|
|
217
|
-
/**
|
|
218
|
-
* What CloudFront does with a plain HTTP request.
|
|
219
|
-
*/
|
|
220
|
-
this.viewerProtocolPolicy = Schema('redirect-to-https');
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
__decorate([
|
|
224
|
-
Validate({
|
|
225
|
-
destruct: (value) => value,
|
|
226
|
-
options: { minLength: 1 },
|
|
227
|
-
}),
|
|
228
|
-
__metadata("design:type", Object)
|
|
229
|
-
], CloudFrontBehaviorSchema.prototype, "allowedMethods", void 0);
|
|
230
|
-
__decorate([
|
|
231
|
-
Validate({
|
|
232
|
-
destruct: (value) => value,
|
|
233
|
-
options: { minLength: 1 },
|
|
234
|
-
}),
|
|
235
|
-
__metadata("design:type", Object)
|
|
236
|
-
], CloudFrontBehaviorSchema.prototype, "cachedMethods", void 0);
|
|
237
|
-
__decorate([
|
|
238
|
-
Validate({
|
|
239
|
-
destruct: (value) => [value.kind, value.name],
|
|
240
|
-
options: { minLength: 1 },
|
|
241
|
-
}),
|
|
242
|
-
__metadata("design:type", Object)
|
|
243
|
-
], CloudFrontBehaviorSchema.prototype, "cachePolicy", void 0);
|
|
244
|
-
__decorate([
|
|
245
|
-
Validate({
|
|
246
|
-
destruct: (value) => value,
|
|
247
|
-
options: { isSchema: { schema: CloudFrontFunctionAssociationSchema } },
|
|
248
|
-
}),
|
|
249
|
-
__metadata("design:type", Object)
|
|
250
|
-
], CloudFrontBehaviorSchema.prototype, "functionAssociations", void 0);
|
|
251
|
-
__decorate([
|
|
252
|
-
Validate({
|
|
253
|
-
destruct: (value) => value ? [value.kind, value.name] : [],
|
|
254
|
-
options: { minLength: 1 },
|
|
255
|
-
}),
|
|
256
|
-
__metadata("design:type", Object)
|
|
257
|
-
], CloudFrontBehaviorSchema.prototype, "originRequestPolicy", void 0);
|
|
258
|
-
__decorate([
|
|
259
|
-
Validate({
|
|
260
|
-
destruct: (value) => (value ? [value] : []),
|
|
261
|
-
options: { minLength: 1 },
|
|
262
|
-
}),
|
|
263
|
-
__metadata("design:type", Object)
|
|
264
|
-
], CloudFrontBehaviorSchema.prototype, "pathPattern", void 0);
|
|
265
|
-
__decorate([
|
|
266
|
-
Validate({
|
|
267
|
-
destruct: (value) => value ? [value.kind, value.name] : [],
|
|
268
|
-
options: { minLength: 1 },
|
|
269
|
-
}),
|
|
270
|
-
__metadata("design:type", Object)
|
|
271
|
-
], CloudFrontBehaviorSchema.prototype, "responseHeadersPolicy", void 0);
|
|
272
|
-
__decorate([
|
|
273
|
-
Validate({ options: { minLength: 1 } }),
|
|
274
|
-
__metadata("design:type", Object)
|
|
275
|
-
], CloudFrontBehaviorSchema.prototype, "targetOriginId", void 0);
|
|
276
|
-
__decorate([
|
|
277
|
-
Validate({ options: { minLength: 1 } }),
|
|
278
|
-
__metadata("design:type", Object)
|
|
279
|
-
], CloudFrontBehaviorSchema.prototype, "viewerProtocolPolicy", void 0);
|
|
280
|
-
/**
|
|
281
|
-
* What the viewer gets when the origin answers with a status code CloudFront was told to handle.
|
|
282
|
-
*
|
|
283
|
-
* The same field set expresses opposite intents. A single-page app maps `403` and `404` to a `200`
|
|
284
|
-
* carrying `/index.html` with a short TTL, so the client-side router can take over; a content site
|
|
285
|
-
* maps them to a real `404` carrying an error page.
|
|
286
|
-
*
|
|
287
|
-
* @group Resources/CloudFrontDistribution
|
|
288
|
-
*
|
|
289
|
-
* @hideconstructor
|
|
290
|
-
*/
|
|
291
|
-
export class CloudFrontCustomErrorResponseSchema {
|
|
292
|
-
constructor() {
|
|
293
|
-
/**
|
|
294
|
-
* How long CloudFront caches this error before asking the origin again, in seconds.
|
|
295
|
-
*/
|
|
296
|
-
this.errorCachingMinTtl = Schema(10);
|
|
297
|
-
/**
|
|
298
|
-
* The status code the origin answered with.
|
|
299
|
-
*/
|
|
300
|
-
this.errorCode = Schema();
|
|
301
|
-
/**
|
|
302
|
-
* The status code the viewer sees.
|
|
303
|
-
*/
|
|
304
|
-
this.responseCode = Schema();
|
|
305
|
-
/**
|
|
306
|
-
* The object served in place of the error, e.g. `/index.html`.
|
|
307
|
-
*/
|
|
308
|
-
this.responsePagePath = Schema();
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
__decorate([
|
|
312
|
-
Validate({ options: { minLength: 0 } }),
|
|
313
|
-
__metadata("design:type", Object)
|
|
314
|
-
], CloudFrontCustomErrorResponseSchema.prototype, "errorCachingMinTtl", void 0);
|
|
315
|
-
__decorate([
|
|
316
|
-
Validate({ options: { maxLength: 599, minLength: 100 } }),
|
|
317
|
-
__metadata("design:type", Object)
|
|
318
|
-
], CloudFrontCustomErrorResponseSchema.prototype, "errorCode", void 0);
|
|
319
|
-
__decorate([
|
|
320
|
-
Validate({ options: { maxLength: 599, minLength: 100 } }),
|
|
321
|
-
__metadata("design:type", Object)
|
|
322
|
-
], CloudFrontCustomErrorResponseSchema.prototype, "responseCode", void 0);
|
|
323
|
-
__decorate([
|
|
324
|
-
Validate({ options: { minLength: 1 } }),
|
|
325
|
-
__metadata("design:type", Object)
|
|
326
|
-
], CloudFrontCustomErrorResponseSchema.prototype, "responsePagePath", void 0);
|
|
327
|
-
/**
|
|
328
|
-
* A cache policy this distribution declares, referenced by a behavior under
|
|
329
|
-
* `{ kind: 'custom', name }`.
|
|
330
|
-
*
|
|
331
|
-
* @group Resources/CloudFrontDistribution
|
|
332
|
-
*
|
|
333
|
-
* @hideconstructor
|
|
334
|
-
*/
|
|
335
|
-
export class CloudFrontCachePolicySchema {
|
|
336
|
-
constructor() {
|
|
337
|
-
/**
|
|
338
|
-
* Which cookies are part of the cache key.
|
|
339
|
-
*/
|
|
340
|
-
this.cookies = Schema({ kind: 'none' });
|
|
341
|
-
/**
|
|
342
|
-
* How long CloudFront serves an object without asking the origin, when the origin sent no
|
|
343
|
-
* caching headers of its own. In seconds.
|
|
344
|
-
*/
|
|
345
|
-
this.defaultTtl = Schema(86400);
|
|
346
|
-
/**
|
|
347
|
-
* Whether CloudFront may store and serve a brotli-compressed copy.
|
|
348
|
-
*/
|
|
349
|
-
this.enableBrotli = Schema(true);
|
|
350
|
-
/**
|
|
351
|
-
* Whether CloudFront may store and serve a gzip-compressed copy.
|
|
352
|
-
*/
|
|
353
|
-
this.enableGzip = Schema(true);
|
|
354
|
-
/**
|
|
355
|
-
* Which request headers are part of the cache key.
|
|
356
|
-
*/
|
|
357
|
-
this.headers = Schema({ kind: 'none' });
|
|
358
|
-
/**
|
|
359
|
-
* The longest CloudFront will serve an object without asking the origin, whatever the origin's
|
|
360
|
-
* own caching headers said. In seconds.
|
|
361
|
-
*/
|
|
362
|
-
this.maxTtl = Schema(31536000);
|
|
363
|
-
/**
|
|
364
|
-
* The shortest CloudFront will serve an object without asking the origin. In seconds.
|
|
365
|
-
*/
|
|
366
|
-
this.minTtl = Schema(1);
|
|
367
|
-
/**
|
|
368
|
-
* How a behavior names this policy.
|
|
369
|
-
*/
|
|
370
|
-
this.name = Schema();
|
|
371
|
-
/**
|
|
372
|
-
* Which query strings are part of the cache key.
|
|
373
|
-
*/
|
|
374
|
-
this.queryStrings = Schema({ kind: 'none' });
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
__decorate([
|
|
378
|
-
Validate({
|
|
379
|
-
destruct: (value) => [value.kind],
|
|
380
|
-
options: { minLength: 1 },
|
|
381
|
-
}),
|
|
382
|
-
__metadata("design:type", Object)
|
|
383
|
-
], CloudFrontCachePolicySchema.prototype, "cookies", void 0);
|
|
384
|
-
__decorate([
|
|
385
|
-
Validate({ options: { minLength: 0 } }),
|
|
386
|
-
__metadata("design:type", Object)
|
|
387
|
-
], CloudFrontCachePolicySchema.prototype, "defaultTtl", void 0);
|
|
388
|
-
__decorate([
|
|
389
|
-
Validate({
|
|
390
|
-
destruct: (value) => [value.kind],
|
|
391
|
-
options: { minLength: 1 },
|
|
392
|
-
}),
|
|
393
|
-
__metadata("design:type", Object)
|
|
394
|
-
], CloudFrontCachePolicySchema.prototype, "headers", void 0);
|
|
395
|
-
__decorate([
|
|
396
|
-
Validate({ options: { minLength: 0 } }),
|
|
397
|
-
__metadata("design:type", Object)
|
|
398
|
-
], CloudFrontCachePolicySchema.prototype, "maxTtl", void 0);
|
|
399
|
-
__decorate([
|
|
400
|
-
Validate({ options: { minLength: 0 } }),
|
|
401
|
-
__metadata("design:type", Object)
|
|
402
|
-
], CloudFrontCachePolicySchema.prototype, "minTtl", void 0);
|
|
403
|
-
__decorate([
|
|
404
|
-
Validate({ options: { minLength: 1 } }),
|
|
405
|
-
__metadata("design:type", Object)
|
|
406
|
-
], CloudFrontCachePolicySchema.prototype, "name", void 0);
|
|
407
|
-
__decorate([
|
|
408
|
-
Validate({
|
|
409
|
-
destruct: (value) => [value.kind],
|
|
410
|
-
options: { minLength: 1 },
|
|
411
|
-
}),
|
|
412
|
-
__metadata("design:type", Object)
|
|
413
|
-
], CloudFrontCachePolicySchema.prototype, "queryStrings", void 0);
|
|
414
|
-
/**
|
|
415
|
-
* An origin request policy this distribution declares, referenced by a behavior under
|
|
416
|
-
* `{ kind: 'custom', name }`.
|
|
417
|
-
*
|
|
418
|
-
* This is what reaches the origin, and it is separate from the cache key on purpose: an origin can
|
|
419
|
-
* be told the viewer's `Authorization` header without every distinct token becoming its own cache
|
|
420
|
-
* entry.
|
|
421
|
-
*
|
|
422
|
-
* @group Resources/CloudFrontDistribution
|
|
423
|
-
*
|
|
424
|
-
* @hideconstructor
|
|
425
|
-
*/
|
|
426
|
-
export class CloudFrontOriginRequestPolicySchema {
|
|
427
|
-
constructor() {
|
|
428
|
-
/**
|
|
429
|
-
* Which cookies reach the origin.
|
|
430
|
-
*/
|
|
431
|
-
this.cookies = Schema({ kind: 'none' });
|
|
432
|
-
/**
|
|
433
|
-
* Which request headers reach the origin.
|
|
434
|
-
*/
|
|
435
|
-
this.headers = Schema({ kind: 'none' });
|
|
436
|
-
/**
|
|
437
|
-
* How a behavior names this policy.
|
|
438
|
-
*/
|
|
439
|
-
this.name = Schema();
|
|
440
|
-
/**
|
|
441
|
-
* Which query strings reach the origin.
|
|
442
|
-
*/
|
|
443
|
-
this.queryStrings = Schema({ kind: 'none' });
|
|
444
|
-
}
|
|
445
|
-
}
|
|
446
|
-
__decorate([
|
|
447
|
-
Validate({
|
|
448
|
-
destruct: (value) => [value.kind],
|
|
449
|
-
options: { minLength: 1 },
|
|
450
|
-
}),
|
|
451
|
-
__metadata("design:type", Object)
|
|
452
|
-
], CloudFrontOriginRequestPolicySchema.prototype, "cookies", void 0);
|
|
453
|
-
__decorate([
|
|
454
|
-
Validate({
|
|
455
|
-
destruct: (value) => [value.kind],
|
|
456
|
-
options: { minLength: 1 },
|
|
457
|
-
}),
|
|
458
|
-
__metadata("design:type", Object)
|
|
459
|
-
], CloudFrontOriginRequestPolicySchema.prototype, "headers", void 0);
|
|
460
|
-
__decorate([
|
|
461
|
-
Validate({ options: { minLength: 1 } }),
|
|
462
|
-
__metadata("design:type", Object)
|
|
463
|
-
], CloudFrontOriginRequestPolicySchema.prototype, "name", void 0);
|
|
464
|
-
__decorate([
|
|
465
|
-
Validate({
|
|
466
|
-
destruct: (value) => [value.kind],
|
|
467
|
-
options: { minLength: 1 },
|
|
468
|
-
}),
|
|
469
|
-
__metadata("design:type", Object)
|
|
470
|
-
], CloudFrontOriginRequestPolicySchema.prototype, "queryStrings", void 0);
|
|
471
|
-
/**
|
|
472
|
-
* The security headers a response headers policy adds. Every field is optional; a `null` field adds
|
|
473
|
-
* nothing for that header.
|
|
474
|
-
*
|
|
475
|
-
* @group Resources/CloudFrontDistribution
|
|
476
|
-
*
|
|
477
|
-
* @hideconstructor
|
|
29
|
+
* @internal
|
|
478
30
|
*/
|
|
479
|
-
export
|
|
480
|
-
constructor() {
|
|
481
|
-
/**
|
|
482
|
-
* The app's own content security policy, verbatim.
|
|
483
|
-
*/
|
|
484
|
-
this.contentSecurityPolicy = Schema(null);
|
|
485
|
-
/**
|
|
486
|
-
* Whether to send `X-Content-Type-Options`, which tells a browser to trust the declared content
|
|
487
|
-
* type rather than guessing one from the bytes.
|
|
488
|
-
*/
|
|
489
|
-
this.contentTypeOptions = Schema(true);
|
|
490
|
-
/**
|
|
491
|
-
* The value of `X-Frame-Options`, or `null` to send none.
|
|
492
|
-
*/
|
|
493
|
-
this.frameOptions = Schema('SAMEORIGIN');
|
|
494
|
-
/**
|
|
495
|
-
* The value of `Referrer-Policy`, or `null` to send none.
|
|
496
|
-
*/
|
|
497
|
-
this.referrerPolicy = Schema(null);
|
|
498
|
-
/**
|
|
499
|
-
* How long a viewer should keep using HTTPS for this host, in seconds. `null` sends no
|
|
500
|
-
* `Strict-Transport-Security` header at all.
|
|
501
|
-
*/
|
|
502
|
-
this.strictTransportSecurityMaxAge = Schema(31536000);
|
|
503
|
-
}
|
|
504
|
-
}
|
|
505
|
-
__decorate([
|
|
506
|
-
Validate({
|
|
507
|
-
destruct: (value) => (value ? [value] : []),
|
|
508
|
-
options: { minLength: 1 },
|
|
509
|
-
}),
|
|
510
|
-
__metadata("design:type", Object)
|
|
511
|
-
], CloudFrontSecurityHeadersSchema.prototype, "contentSecurityPolicy", void 0);
|
|
512
|
-
__decorate([
|
|
513
|
-
Validate({
|
|
514
|
-
destruct: (value) => (value ? [value] : []),
|
|
515
|
-
options: { minLength: 1 },
|
|
516
|
-
}),
|
|
517
|
-
__metadata("design:type", Object)
|
|
518
|
-
], CloudFrontSecurityHeadersSchema.prototype, "frameOptions", void 0);
|
|
519
|
-
__decorate([
|
|
520
|
-
Validate({
|
|
521
|
-
destruct: (value) => (value ? [value] : []),
|
|
522
|
-
options: { minLength: 1 },
|
|
523
|
-
}),
|
|
524
|
-
__metadata("design:type", Object)
|
|
525
|
-
], CloudFrontSecurityHeadersSchema.prototype, "referrerPolicy", void 0);
|
|
526
|
-
__decorate([
|
|
527
|
-
Validate({
|
|
528
|
-
destruct: (value) => value === null || value === undefined ? [] : [value],
|
|
529
|
-
options: { minLength: 0 },
|
|
530
|
-
}),
|
|
531
|
-
__metadata("design:type", Object)
|
|
532
|
-
], CloudFrontSecurityHeadersSchema.prototype, "strictTransportSecurityMaxAge", void 0);
|
|
533
|
-
/**
|
|
534
|
-
* A response headers policy this distribution declares, referenced by a behavior under
|
|
535
|
-
* `{ kind: 'custom', name }`.
|
|
536
|
-
*
|
|
537
|
-
* @group Resources/CloudFrontDistribution
|
|
538
|
-
*
|
|
539
|
-
* @hideconstructor
|
|
540
|
-
*/
|
|
541
|
-
export class CloudFrontResponseHeadersPolicySchema {
|
|
542
|
-
constructor() {
|
|
543
|
-
/**
|
|
544
|
-
* A cross-origin resource sharing configuration, or `null` for none.
|
|
545
|
-
*/
|
|
546
|
-
this.cors = Schema(null);
|
|
547
|
-
/**
|
|
548
|
-
* Headers CloudFront adds verbatim. `override` decides what happens when the origin already sent
|
|
549
|
-
* one of the same name.
|
|
550
|
-
*/
|
|
551
|
-
this.customHeaders = Schema([]);
|
|
552
|
-
/**
|
|
553
|
-
* How a behavior names this policy.
|
|
554
|
-
*/
|
|
555
|
-
this.name = Schema();
|
|
556
|
-
/**
|
|
557
|
-
* Headers CloudFront strips from the origin's response before the viewer sees it.
|
|
558
|
-
*/
|
|
559
|
-
this.removeHeaders = Schema([]);
|
|
560
|
-
/**
|
|
561
|
-
* The security headers to add, or `null` to add none.
|
|
562
|
-
* See {@link CloudFrontSecurityHeadersSchema}.
|
|
563
|
-
*/
|
|
564
|
-
this.securityHeaders = Schema(null);
|
|
565
|
-
}
|
|
566
|
-
}
|
|
567
|
-
__decorate([
|
|
568
|
-
Validate({
|
|
569
|
-
destruct: (value) => value ? [...value.allowHeaders, ...value.allowMethods, ...value.allowOrigins] : [],
|
|
570
|
-
options: { minLength: 1 },
|
|
571
|
-
}),
|
|
572
|
-
__metadata("design:type", Object)
|
|
573
|
-
], CloudFrontResponseHeadersPolicySchema.prototype, "cors", void 0);
|
|
574
|
-
__decorate([
|
|
575
|
-
Validate({
|
|
576
|
-
destruct: (value) => value.flatMap((v) => [v.header, v.value]),
|
|
577
|
-
options: { minLength: 1 },
|
|
578
|
-
}),
|
|
579
|
-
__metadata("design:type", Object)
|
|
580
|
-
], CloudFrontResponseHeadersPolicySchema.prototype, "customHeaders", void 0);
|
|
581
|
-
__decorate([
|
|
582
|
-
Validate({ options: { minLength: 1 } }),
|
|
583
|
-
__metadata("design:type", Object)
|
|
584
|
-
], CloudFrontResponseHeadersPolicySchema.prototype, "name", void 0);
|
|
585
|
-
__decorate([
|
|
586
|
-
Validate({
|
|
587
|
-
destruct: (value) => value,
|
|
588
|
-
options: { minLength: 1 },
|
|
589
|
-
}),
|
|
590
|
-
__metadata("design:type", Object)
|
|
591
|
-
], CloudFrontResponseHeadersPolicySchema.prototype, "removeHeaders", void 0);
|
|
592
|
-
__decorate([
|
|
593
|
-
Validate({
|
|
594
|
-
destruct: (value) => value ? [value] : [],
|
|
595
|
-
options: { isSchema: { schema: CloudFrontSecurityHeadersSchema } },
|
|
596
|
-
}),
|
|
597
|
-
__metadata("design:type", Object)
|
|
598
|
-
], CloudFrontResponseHeadersPolicySchema.prototype, "securityHeaders", void 0);
|
|
31
|
+
export const CLOUDFRONT_PRICE_CLASSES = ['PriceClass_100', 'PriceClass_200', 'PriceClass_All'];
|
|
599
32
|
/**
|
|
600
33
|
* The `CloudFrontDistributionSchema` class is the schema for the `CloudFrontDistribution` resource,
|
|
601
34
|
* which represents an AWS CloudFront distribution. Terraform provisions it as
|
|
@@ -604,68 +37,61 @@ __decorate([
|
|
|
604
37
|
* [`aws_cloudfront_origin_access_control`](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudfront_origin_access_control)
|
|
605
38
|
* per S3 origin and one terraform resource per policy the distribution declares.
|
|
606
39
|
*
|
|
607
|
-
* The distribution is deliberately open. It carries several origins of mixed kinds, a routing table
|
|
608
|
-
* of behaviors over them, and the security layer around both, so that one module can serve a
|
|
609
|
-
* single-page app out of a bucket while another puts the same resource in front of a load balancer.
|
|
610
|
-
* The opinion about which of those a caller gets belongs to the module, not here.
|
|
611
|
-
*
|
|
612
40
|
* @group Resources/CloudFrontDistribution
|
|
613
41
|
*
|
|
614
42
|
* @hideconstructor
|
|
615
43
|
*
|
|
616
|
-
* @overrideProperty parents -
|
|
617
|
-
*
|
|
618
|
-
*
|
|
619
|
-
* the child and this distribution writes the bucket's hostname literally.
|
|
44
|
+
* @overrideProperty parents - The Lambda functions and ALBs it serves, each attached after
|
|
45
|
+
* construction, with `addLambdaOrigin()` and `addAlbOrigin()`. An S3 bucket is a child of the
|
|
46
|
+
* distribution instead.
|
|
620
47
|
* ```mermaid
|
|
621
48
|
* graph TD;
|
|
622
|
-
*
|
|
49
|
+
* alb((ALB)) --> cloudfront_distribution((CloudFront<br>Distribution))
|
|
50
|
+
* lambda((Lambda<br>Function)) --> cloudfront_distribution
|
|
623
51
|
* cloudfront_distribution --> s3_bucket((S3<br>Bucket))
|
|
624
52
|
* ```
|
|
625
53
|
* @overrideProperty resourceId - The resource id is of format `cloudfront-<distribution-name>`.
|
|
626
|
-
* There is no region in it: CloudFront is global, and the provider is found on the account alone.
|
|
627
54
|
*/
|
|
628
55
|
export class CloudFrontDistributionSchema extends BaseResourceSchema {
|
|
629
56
|
constructor() {
|
|
630
57
|
super(...arguments);
|
|
631
58
|
/**
|
|
632
59
|
* Input properties.
|
|
633
|
-
* * `properties.aliases` - The custom domain names the distribution answers on.
|
|
634
|
-
*
|
|
635
|
-
* the `*.cloudfront.net`
|
|
60
|
+
* * `properties.aliases` - The custom domain names the distribution answers on, e.g.
|
|
61
|
+
* `www.example.com`, or `*.example.com` for every host under `example.com`. Each one needs a DNS record pointing at
|
|
62
|
+
* the distribution, which this resource does not create. Empty serves only the `*.cloudfront.net`
|
|
63
|
+
* domain CloudFront assigns.
|
|
636
64
|
* * `properties.awsAccountId` - The AWS account id.
|
|
637
65
|
* * `properties.behaviors` - The routing table. Exactly one entry has no `pathPattern` and is the
|
|
638
66
|
* default behavior; the rest are matched in order before it.
|
|
639
67
|
* See {@link CloudFrontBehaviorSchema}.
|
|
640
68
|
* * `properties.cachePolicies` - Cache policies this distribution declares.
|
|
641
69
|
* See {@link CloudFrontCachePolicySchema}.
|
|
642
|
-
* * `properties.comment` - A human-readable label. It is the only name a
|
|
643
|
-
* the console.
|
|
70
|
+
* * `properties.comment` - A human-readable label, at most 128 characters. It is the only name a
|
|
71
|
+
* distribution carries in the console.
|
|
644
72
|
* * `properties.customErrorResponses` - What the viewer gets for an origin error.
|
|
645
73
|
* See {@link CloudFrontCustomErrorResponseSchema}.
|
|
646
|
-
* * `properties.defaultRootObject` - The object served for a request to the site root.
|
|
74
|
+
* * `properties.defaultRootObject` - The object served for a request to the site root, e.g.
|
|
75
|
+
* `index.html` or `docs/index.html`, never starting with `/`. Empty passes the request to the origin
|
|
76
|
+
* as it is.
|
|
647
77
|
* * `properties.distributionName` - What names this distribution. Part of its identity.
|
|
648
78
|
* * `properties.enabled` - Whether the distribution serves traffic. Disabling is also the first
|
|
649
79
|
* half of deleting one, which AWS makes a slow operation.
|
|
650
|
-
* * `properties.geoRestriction` - Which countries may reach the distribution
|
|
651
|
-
*
|
|
652
|
-
* * `properties.
|
|
653
|
-
* * `properties.logging` - Where CloudFront writes its access logs, or `null` for none. The bucket
|
|
654
|
-
* is not created here.
|
|
80
|
+
* * `properties.geoRestriction` - Which countries may reach the distribution, each an uppercase
|
|
81
|
+
* two-letter ISO 3166-1 code, e.g. `DE`.
|
|
82
|
+
* * `properties.httpVersion` - See {@link ICloudFrontHttpVersion}.
|
|
655
83
|
* * `properties.originGroups` - Fail-over pairs over the origins.
|
|
656
84
|
* See {@link CloudFrontOriginGroupSchema}.
|
|
657
85
|
* * `properties.originRequestPolicies` - Origin request policies this distribution declares.
|
|
658
86
|
* See {@link CloudFrontOriginRequestPolicySchema}.
|
|
659
87
|
* * `properties.origins` - Where content comes from. See {@link CloudFrontOriginSchema}.
|
|
660
|
-
* * `properties.priceClass` -
|
|
661
|
-
* distribution costs. `PriceClass_100` is North America and Europe alone.
|
|
88
|
+
* * `properties.priceClass` - See {@link ICloudFrontPriceClass}.
|
|
662
89
|
* * `properties.responseHeadersPolicies` - Response headers policies this distribution declares.
|
|
663
90
|
* See {@link CloudFrontResponseHeadersPolicySchema}.
|
|
664
91
|
* * `properties.viewerCertificate` - The certificate viewers see. `default` serves CloudFront's
|
|
665
92
|
* own, which is valid only for the assigned `*.cloudfront.net` domain; `acm` serves a certificate
|
|
666
|
-
* of yours, which CloudFront reads from `us-east-1` alone.
|
|
667
|
-
*
|
|
668
|
-
* ACL is not created here, and CloudFront reads it from `us-east-1` alone.
|
|
93
|
+
* of yours, which CloudFront reads from `us-east-1` alone. See
|
|
94
|
+
* {@link ICloudFrontMinimumProtocolVersion}.
|
|
669
95
|
*/
|
|
670
96
|
this.properties = Schema();
|
|
671
97
|
/**
|
|
@@ -675,8 +101,6 @@ export class CloudFrontDistributionSchema extends BaseResourceSchema {
|
|
|
675
101
|
* * `response.DomainName` - The `*.cloudfront.net` domain CloudFront assigned. Point a DNS record
|
|
676
102
|
* at this.
|
|
677
103
|
* * `response.HostedZoneId` - The zone a Route 53 alias record pointing at this distribution needs.
|
|
678
|
-
* It is the same constant for every CloudFront distribution, and it is published here so that a
|
|
679
|
-
* DNS module never has to know that.
|
|
680
104
|
*/
|
|
681
105
|
this.response = Schema({
|
|
682
106
|
Arn: 'arn:aws:cloudfront::000000000000:distribution/E000000000000',
|
|
@@ -688,16 +112,55 @@ export class CloudFrontDistributionSchema extends BaseResourceSchema {
|
|
|
688
112
|
}
|
|
689
113
|
__decorate([
|
|
690
114
|
Validate([
|
|
115
|
+
{
|
|
116
|
+
destruct: (value) => value.aliases,
|
|
117
|
+
options: { maxLength: 253, regex: /^(\*\.)?([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z0-9-]{2,63}$/i },
|
|
118
|
+
},
|
|
691
119
|
{
|
|
692
120
|
destruct: (value) => [
|
|
693
|
-
...value.aliases,
|
|
694
121
|
value.awsAccountId,
|
|
695
122
|
value.distributionName,
|
|
696
|
-
value.httpVersion,
|
|
697
|
-
value.priceClass,
|
|
698
123
|
],
|
|
699
124
|
options: { minLength: 1 },
|
|
700
125
|
},
|
|
126
|
+
{
|
|
127
|
+
destruct: (value) => [value.comment],
|
|
128
|
+
options: { maxLength: 128 },
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
destruct: (value) => [value.defaultRootObject],
|
|
132
|
+
options: { regex: /^(?!\/)\S*$/ },
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
destruct: (value) => [value.enabled],
|
|
136
|
+
options: { custom: (value) => typeof value === 'boolean' },
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
destruct: (value) => [value.geoRestriction],
|
|
140
|
+
options: {
|
|
141
|
+
custom: (value) => value.kind === 'none' ||
|
|
142
|
+
(['allow', 'block'].includes(value.kind) &&
|
|
143
|
+
value.countries.length > 0 &&
|
|
144
|
+
value.countries.every((country) => /^[A-Z]{2}$/.test(country))),
|
|
145
|
+
},
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
destruct: (value) => [value.httpVersion],
|
|
149
|
+
options: { custom: (value) => CLOUDFRONT_HTTP_VERSIONS.includes(value) },
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
destruct: (value) => [value.priceClass],
|
|
153
|
+
options: { custom: (value) => CLOUDFRONT_PRICE_CLASSES.includes(value) },
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
destruct: (value) => [value.viewerCertificate],
|
|
157
|
+
options: {
|
|
158
|
+
custom: (value) => value.kind === 'default' ||
|
|
159
|
+
(value.kind === 'acm' &&
|
|
160
|
+
/^arn:aws:acm:[a-z0-9-]+:\d{12}:certificate\/[\w-]+$/.test(value.certificateArn) &&
|
|
161
|
+
CLOUDFRONT_MINIMUM_PROTOCOL_VERSIONS.includes(value.minimumProtocolVersion)),
|
|
162
|
+
},
|
|
163
|
+
},
|
|
701
164
|
{
|
|
702
165
|
destruct: (value) => value.origins,
|
|
703
166
|
options: { isSchema: { schema: CloudFrontOriginSchema } },
|