@quadnix/octo-aws-cdk 0.0.19 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +661 -0
- package/README.md +25 -3
- package/dist/anchors/aws-account/aws-account.anchor.d.ts +3 -0
- package/dist/anchors/aws-account/aws-account.anchor.js +3 -0
- package/dist/anchors/aws-account/aws-account.anchor.js.map +1 -1
- package/dist/anchors/aws-account/aws-account.anchor.schema.d.ts +3 -0
- package/dist/anchors/aws-account/aws-account.anchor.schema.js +3 -0
- package/dist/anchors/aws-account/aws-account.anchor.schema.js.map +1 -1
- package/dist/anchors/aws-dynamodb/aws-dynamodb-global.anchor.d.ts +12 -0
- package/dist/anchors/aws-dynamodb/aws-dynamodb-global.anchor.js +27 -0
- package/dist/anchors/aws-dynamodb/aws-dynamodb-global.anchor.js.map +1 -0
- package/dist/anchors/aws-dynamodb/aws-dynamodb-global.anchor.schema.d.ts +24 -0
- package/dist/anchors/aws-dynamodb/aws-dynamodb-global.anchor.schema.js +38 -0
- package/dist/anchors/aws-dynamodb/aws-dynamodb-global.anchor.schema.js.map +1 -0
- package/dist/anchors/aws-dynamodb/aws-dynamodb.anchor.d.ts +12 -0
- package/dist/anchors/aws-dynamodb/aws-dynamodb.anchor.js +27 -0
- package/dist/anchors/aws-dynamodb/aws-dynamodb.anchor.js.map +1 -0
- package/dist/anchors/aws-dynamodb/aws-dynamodb.anchor.schema.d.ts +24 -0
- package/dist/anchors/aws-dynamodb/aws-dynamodb.anchor.schema.js +38 -0
- package/dist/anchors/aws-dynamodb/aws-dynamodb.anchor.schema.js.map +1 -0
- package/dist/anchors/aws-ecr/aws-ecr-image.anchor.d.ts +12 -0
- package/dist/anchors/aws-ecr/aws-ecr-image.anchor.js +27 -0
- package/dist/anchors/aws-ecr/aws-ecr-image.anchor.js.map +1 -0
- package/dist/anchors/aws-ecr/aws-ecr-image.anchor.schema.d.ts +25 -0
- package/dist/anchors/aws-ecr/aws-ecr-image.anchor.schema.js +39 -0
- package/dist/anchors/aws-ecr/aws-ecr-image.anchor.schema.js.map +1 -0
- package/dist/anchors/aws-ecs/aws-ecs-alb.anchor.d.ts +3 -0
- package/dist/anchors/aws-ecs/aws-ecs-alb.anchor.js +3 -0
- package/dist/anchors/aws-ecs/aws-ecs-alb.anchor.js.map +1 -1
- package/dist/anchors/aws-ecs/aws-ecs-alb.anchor.schema.d.ts +3 -0
- package/dist/anchors/aws-ecs/aws-ecs-alb.anchor.schema.js +3 -0
- package/dist/anchors/aws-ecs/aws-ecs-alb.anchor.schema.js.map +1 -1
- package/dist/anchors/aws-ecs/aws-ecs-cluster.anchor.d.ts +3 -0
- package/dist/anchors/aws-ecs/aws-ecs-cluster.anchor.js +3 -0
- package/dist/anchors/aws-ecs/aws-ecs-cluster.anchor.js.map +1 -1
- package/dist/anchors/aws-ecs/aws-ecs-cluster.anchor.schema.d.ts +3 -0
- package/dist/anchors/aws-ecs/aws-ecs-cluster.anchor.schema.js +3 -0
- package/dist/anchors/aws-ecs/aws-ecs-cluster.anchor.schema.js.map +1 -1
- package/dist/anchors/aws-ecs/aws-ecs-execution.anchor.d.ts +3 -0
- package/dist/anchors/aws-ecs/aws-ecs-execution.anchor.js +3 -0
- package/dist/anchors/aws-ecs/aws-ecs-execution.anchor.js.map +1 -1
- package/dist/anchors/aws-ecs/aws-ecs-execution.anchor.schema.d.ts +3 -0
- package/dist/anchors/aws-ecs/aws-ecs-execution.anchor.schema.js +3 -0
- package/dist/anchors/aws-ecs/aws-ecs-execution.anchor.schema.js.map +1 -1
- package/dist/anchors/aws-ecs/aws-ecs-server.anchor.d.ts +3 -0
- package/dist/anchors/aws-ecs/aws-ecs-server.anchor.js +3 -0
- package/dist/anchors/aws-ecs/aws-ecs-server.anchor.js.map +1 -1
- package/dist/anchors/aws-ecs/aws-ecs-server.anchor.schema.d.ts +3 -0
- package/dist/anchors/aws-ecs/aws-ecs-server.anchor.schema.js +3 -0
- package/dist/anchors/aws-ecs/aws-ecs-server.anchor.schema.js.map +1 -1
- package/dist/anchors/aws-ecs/aws-ecs-service.anchor.d.ts +3 -0
- package/dist/anchors/aws-ecs/aws-ecs-service.anchor.js +3 -0
- package/dist/anchors/aws-ecs/aws-ecs-service.anchor.js.map +1 -1
- package/dist/anchors/aws-ecs/aws-ecs-service.anchor.schema.d.ts +3 -0
- package/dist/anchors/aws-ecs/aws-ecs-service.anchor.schema.js +3 -0
- package/dist/anchors/aws-ecs/aws-ecs-service.anchor.schema.js.map +1 -1
- package/dist/anchors/aws-ecs/aws-ecs-task-definition.anchor.d.ts +3 -0
- package/dist/anchors/aws-ecs/aws-ecs-task-definition.anchor.js +3 -0
- package/dist/anchors/aws-ecs/aws-ecs-task-definition.anchor.js.map +1 -1
- package/dist/anchors/aws-ecs/aws-ecs-task-definition.anchor.schema.d.ts +3 -0
- package/dist/anchors/aws-ecs/aws-ecs-task-definition.anchor.schema.js +3 -0
- package/dist/anchors/aws-ecs/aws-ecs-task-definition.anchor.schema.js.map +1 -1
- package/dist/anchors/aws-efs/aws-efs.anchor.d.ts +3 -0
- package/dist/anchors/aws-efs/aws-efs.anchor.js +3 -0
- package/dist/anchors/aws-efs/aws-efs.anchor.js.map +1 -1
- package/dist/anchors/aws-efs/aws-efs.anchor.schema.d.ts +3 -0
- package/dist/anchors/aws-efs/aws-efs.anchor.schema.js +3 -0
- package/dist/anchors/aws-efs/aws-efs.anchor.schema.js.map +1 -1
- package/dist/anchors/aws-iam/aws-iam-role.anchor.d.ts +3 -0
- package/dist/anchors/aws-iam/aws-iam-role.anchor.js +3 -0
- package/dist/anchors/aws-iam/aws-iam-role.anchor.js.map +1 -1
- package/dist/anchors/aws-iam/aws-iam-role.anchor.schema.d.ts +3 -0
- package/dist/anchors/aws-iam/aws-iam-role.anchor.schema.js +3 -0
- package/dist/anchors/aws-iam/aws-iam-role.anchor.schema.js.map +1 -1
- package/dist/anchors/aws-region/aws-region.anchor.d.ts +3 -0
- package/dist/anchors/aws-region/aws-region.anchor.js +3 -0
- package/dist/anchors/aws-region/aws-region.anchor.js.map +1 -1
- package/dist/anchors/aws-region/aws-region.anchor.schema.d.ts +3 -0
- package/dist/anchors/aws-region/aws-region.anchor.schema.js +3 -0
- package/dist/anchors/aws-region/aws-region.anchor.schema.js.map +1 -1
- package/dist/anchors/aws-s3-storage-service/aws-s3-storage-service-directory.anchor.d.ts +3 -0
- package/dist/anchors/aws-s3-storage-service/aws-s3-storage-service-directory.anchor.js +3 -0
- package/dist/anchors/aws-s3-storage-service/aws-s3-storage-service-directory.anchor.js.map +1 -1
- package/dist/anchors/aws-s3-storage-service/aws-s3-storage-service-directory.anchor.schema.d.ts +3 -0
- package/dist/anchors/aws-s3-storage-service/aws-s3-storage-service-directory.anchor.schema.js +3 -0
- package/dist/anchors/aws-s3-storage-service/aws-s3-storage-service-directory.anchor.schema.js.map +1 -1
- package/dist/anchors/aws-s3-storage-service/aws-s3-storage-service.anchor.d.ts +3 -0
- package/dist/anchors/aws-s3-storage-service/aws-s3-storage-service.anchor.js +3 -0
- package/dist/anchors/aws-s3-storage-service/aws-s3-storage-service.anchor.js.map +1 -1
- 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.d.ts +3 -0
- package/dist/anchors/aws-security-group/aws-security-group.anchor.js +3 -0
- package/dist/anchors/aws-security-group/aws-security-group.anchor.js.map +1 -1
- package/dist/anchors/aws-security-group/aws-security-group.anchor.schema.d.ts +3 -0
- package/dist/anchors/aws-security-group/aws-security-group.anchor.schema.js +3 -0
- package/dist/anchors/aws-security-group/aws-security-group.anchor.schema.js.map +1 -1
- package/dist/anchors/aws-subnet/aws-subnet-local-filesystem-mount.anchor.d.ts +3 -0
- package/dist/anchors/aws-subnet/aws-subnet-local-filesystem-mount.anchor.js +3 -0
- package/dist/anchors/aws-subnet/aws-subnet-local-filesystem-mount.anchor.js.map +1 -1
- package/dist/anchors/aws-subnet/aws-subnet-local-filesystem-mount.anchor.schema.d.ts +3 -0
- package/dist/anchors/aws-subnet/aws-subnet-local-filesystem-mount.anchor.schema.js +3 -0
- package/dist/anchors/aws-subnet/aws-subnet-local-filesystem-mount.anchor.schema.js.map +1 -1
- package/dist/anchors/aws-subnet/aws-subnet.anchor.d.ts +3 -0
- package/dist/anchors/aws-subnet/aws-subnet.anchor.js +3 -0
- package/dist/anchors/aws-subnet/aws-subnet.anchor.js.map +1 -1
- package/dist/anchors/aws-subnet/aws-subnet.anchor.schema.d.ts +3 -0
- package/dist/anchors/aws-subnet/aws-subnet.anchor.schema.js +3 -0
- package/dist/anchors/aws-subnet/aws-subnet.anchor.schema.js.map +1 -1
- package/dist/factories/aws-client.factory.d.ts +73 -63
- package/dist/factories/aws-client.factory.js +94 -145
- package/dist/factories/aws-client.factory.js.map +1 -1
- package/dist/modules/account/aws-credentials-account/aws-credentials-account.module.d.ts +5 -2
- package/dist/modules/account/aws-credentials-account/aws-credentials-account.module.js +11 -24
- package/dist/modules/account/aws-credentials-account/aws-credentials-account.module.js.map +1 -1
- package/dist/modules/account/aws-credentials-account/index.schema.d.ts +3 -4
- package/dist/modules/account/aws-credentials-account/index.schema.js +5 -6
- package/dist/modules/account/aws-credentials-account/index.schema.js.map +1 -1
- package/dist/modules/account/aws-credentials-account/models/account/actions/add-aws-credentials-account.model.action.d.ts +9 -0
- package/dist/modules/account/aws-credentials-account/models/account/actions/add-aws-credentials-account.model.action.js +9 -0
- package/dist/modules/account/aws-credentials-account/models/account/actions/add-aws-credentials-account.model.action.js.map +1 -1
- package/dist/modules/account/aws-credentials-account/models/account/aws-credentials-account.model.d.ts +15 -1
- package/dist/modules/account/aws-credentials-account/models/account/aws-credentials-account.model.js +17 -3
- package/dist/modules/account/aws-credentials-account/models/account/aws-credentials-account.model.js.map +1 -1
- package/dist/modules/account/aws-ini-account/aws-ini-account.module.d.ts +4 -1
- package/dist/modules/account/aws-ini-account/aws-ini-account.module.js +10 -17
- package/dist/modules/account/aws-ini-account/aws-ini-account.module.js.map +1 -1
- package/dist/modules/account/aws-ini-account/index.schema.d.ts +5 -0
- package/dist/modules/account/aws-ini-account/index.schema.js +12 -0
- package/dist/modules/account/aws-ini-account/index.schema.js.map +1 -1
- package/dist/modules/account/aws-ini-account/models/account/actions/add-aws-ini-account.model.action.d.ts +9 -0
- package/dist/modules/account/aws-ini-account/models/account/actions/add-aws-ini-account.model.action.js +9 -0
- package/dist/modules/account/aws-ini-account/models/account/actions/add-aws-ini-account.model.action.js.map +1 -1
- package/dist/modules/account/aws-ini-account/models/account/aws-ini-account.model.d.ts +15 -1
- package/dist/modules/account/aws-ini-account/models/account/aws-ini-account.model.js +18 -4
- package/dist/modules/account/aws-ini-account/models/account/aws-ini-account.model.js.map +1 -1
- package/dist/modules/account/aws-localstack-account/aws-localstack-account.module.d.ts +5 -3
- package/dist/modules/account/aws-localstack-account/aws-localstack-account.module.js +11 -37
- package/dist/modules/account/aws-localstack-account/aws-localstack-account.module.js.map +1 -1
- package/dist/modules/account/aws-localstack-account/index.schema.d.ts +3 -10
- package/dist/modules/account/aws-localstack-account/index.schema.js +5 -19
- package/dist/modules/account/aws-localstack-account/index.schema.js.map +1 -1
- package/dist/modules/account/aws-localstack-account/models/account/actions/add-aws-localstack-account.model.action.d.ts +9 -0
- package/dist/modules/account/aws-localstack-account/models/account/actions/add-aws-localstack-account.model.action.js +9 -0
- package/dist/modules/account/aws-localstack-account/models/account/actions/add-aws-localstack-account.model.action.js.map +1 -1
- package/dist/modules/account/aws-localstack-account/models/account/aws-localstack-account.model.d.ts +15 -1
- package/dist/modules/account/aws-localstack-account/models/account/aws-localstack-account.model.js +17 -3
- package/dist/modules/account/aws-localstack-account/models/account/aws-localstack-account.model.js.map +1 -1
- package/dist/modules/account/aws-moto-account/aws-moto-account.module.d.ts +5 -2
- package/dist/modules/account/aws-moto-account/aws-moto-account.module.js +11 -22
- package/dist/modules/account/aws-moto-account/aws-moto-account.module.js.map +1 -1
- package/dist/modules/account/aws-moto-account/index.schema.d.ts +3 -4
- package/dist/modules/account/aws-moto-account/index.schema.js +5 -6
- package/dist/modules/account/aws-moto-account/index.schema.js.map +1 -1
- package/dist/modules/account/aws-moto-account/models/account/actions/add-aws-moto-account.model.action.d.ts +9 -0
- package/dist/modules/account/aws-moto-account/models/account/actions/add-aws-moto-account.model.action.js +9 -0
- package/dist/modules/account/aws-moto-account/models/account/actions/add-aws-moto-account.model.action.js.map +1 -1
- package/dist/modules/account/aws-moto-account/models/account/aws-moto-account.model.d.ts +15 -1
- package/dist/modules/account/aws-moto-account/models/account/aws-moto-account.model.js +17 -3
- package/dist/modules/account/aws-moto-account/models/account/aws-moto-account.model.js.map +1 -1
- package/dist/modules/app/simple-app/models/app/actions/add-simple-app.model.action.d.ts +9 -0
- package/dist/modules/app/simple-app/models/app/actions/add-simple-app.model.action.js +9 -0
- package/dist/modules/app/simple-app/models/app/actions/add-simple-app.model.action.js.map +1 -1
- package/dist/modules/app/simple-app/simple-app.module.d.ts +4 -1
- package/dist/modules/app/simple-app/simple-app.module.js +4 -1
- package/dist/modules/app/simple-app/simple-app.module.js.map +1 -1
- package/dist/modules/deployment/aws-ecs-deployment/aws-ecs-deployment.module.d.ts +4 -1
- package/dist/modules/deployment/aws-ecs-deployment/aws-ecs-deployment.module.js +4 -1
- package/dist/modules/deployment/aws-ecs-deployment/aws-ecs-deployment.module.js.map +1 -1
- package/dist/modules/deployment/aws-ecs-deployment/models/deployment/actions/add-aws-ecs-deployment.model.action.d.ts +9 -0
- package/dist/modules/deployment/aws-ecs-deployment/models/deployment/actions/add-aws-ecs-deployment.model.action.js +9 -0
- package/dist/modules/deployment/aws-ecs-deployment/models/deployment/actions/add-aws-ecs-deployment.model.action.js.map +1 -1
- package/dist/modules/deployment/aws-ecs-deployment/models/deployment/aws-ecs-deployment.model.d.ts +3 -0
- package/dist/modules/deployment/aws-ecs-deployment/models/deployment/aws-ecs-deployment.model.js +3 -0
- package/dist/modules/deployment/aws-ecs-deployment/models/deployment/aws-ecs-deployment.model.js.map +1 -1
- package/dist/modules/environment/aws-ecs-environment/aws-ecs-environment.module.d.ts +7 -1
- package/dist/modules/environment/aws-ecs-environment/aws-ecs-environment.module.js +7 -1
- package/dist/modules/environment/aws-ecs-environment/aws-ecs-environment.module.js.map +1 -1
- package/dist/modules/environment/aws-ecs-environment/models/environment/actions/add-aws-ecs-environment.model.action.d.ts +9 -0
- package/dist/modules/environment/aws-ecs-environment/models/environment/actions/add-aws-ecs-environment.model.action.js +9 -0
- package/dist/modules/environment/aws-ecs-environment/models/environment/actions/add-aws-ecs-environment.model.action.js.map +1 -1
- package/dist/modules/environment/aws-ecs-environment/models/environment/aws-ecs-environment.model.d.ts +3 -0
- package/dist/modules/environment/aws-ecs-environment/models/environment/aws-ecs-environment.model.js +3 -0
- package/dist/modules/environment/aws-ecs-environment/models/environment/aws-ecs-environment.model.js.map +1 -1
- package/dist/modules/execution/aws-ecs-execution/aws-ecs-execution.module.d.ts +7 -1
- package/dist/modules/execution/aws-ecs-execution/aws-ecs-execution.module.js +7 -1
- package/dist/modules/execution/aws-ecs-execution/aws-ecs-execution.module.js.map +1 -1
- package/dist/modules/execution/aws-ecs-execution/models/execution/actions/add-aws-ecs-execution.model.action.d.ts +9 -0
- package/dist/modules/execution/aws-ecs-execution/models/execution/actions/add-aws-ecs-execution.model.action.js +9 -0
- package/dist/modules/execution/aws-ecs-execution/models/execution/actions/add-aws-ecs-execution.model.action.js.map +1 -1
- package/dist/modules/execution/aws-ecs-execution/models/execution/aws-ecs-execution.model.d.ts +18 -3
- package/dist/modules/execution/aws-ecs-execution/models/execution/aws-ecs-execution.model.js +30 -15
- 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.d.ts +9 -0
- package/dist/modules/execution/aws-ecs-execution/overlays/aws-ecs-execution/actions/add-aws-ecs-execution.overlay.action.js +30 -1
- 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 +6 -0
- package/dist/modules/execution/aws-ecs-execution/overlays/aws-ecs-execution/aws-ecs-execution.overlay.js +6 -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-server-security-group/actions/add-aws-ecs-execution-server-security-group.overlay.action.d.ts +9 -0
- 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 +9 -0
- 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 +6 -0
- package/dist/modules/execution/aws-ecs-execution/overlays/aws-ecs-execution-server-security-group/aws-ecs-execution-server-security-group.overlay.js +6 -0
- 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/filesystem/aws-efs-filesystem/aws-efs-filesystem.module.d.ts +7 -1
- package/dist/modules/filesystem/aws-efs-filesystem/aws-efs-filesystem.module.js +7 -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.d.ts +9 -0
- package/dist/modules/filesystem/aws-efs-filesystem/models/filesystem/actions/add-aws-efs-filesystem.model.action.js +9 -0
- package/dist/modules/filesystem/aws-efs-filesystem/models/filesystem/actions/add-aws-efs-filesystem.model.action.js.map +1 -1
- package/dist/modules/filesystem/aws-efs-filesystem/models/filesystem/aws-efs-filesystem.model.d.ts +3 -0
- package/dist/modules/filesystem/aws-efs-filesystem/models/filesystem/aws-efs-filesystem.model.js +3 -0
- package/dist/modules/filesystem/aws-efs-filesystem/models/filesystem/aws-efs-filesystem.model.js.map +1 -1
- package/dist/modules/image/aws-ecr-image/aws-ecr-image.module.d.ts +9 -12
- package/dist/modules/image/aws-ecr-image/aws-ecr-image.module.js +13 -33
- package/dist/modules/image/aws-ecr-image/aws-ecr-image.module.js.map +1 -1
- package/dist/modules/image/aws-ecr-image/models/image/actions/add-aws-ecr-image.model.action.d.ts +9 -0
- package/dist/modules/image/aws-ecr-image/models/image/actions/add-aws-ecr-image.model.action.js +9 -0
- 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/aws-ecr-image.model.d.ts +3 -0
- package/dist/modules/image/aws-ecr-image/models/image/aws-ecr-image.model.js +3 -0
- package/dist/modules/image/aws-ecr-image/models/image/aws-ecr-image.model.js.map +1 -1
- package/dist/modules/image/aws-ecr-image-tag/aws-ecr-image-tag.module.d.ts +41 -0
- package/dist/modules/image/aws-ecr-image-tag/aws-ecr-image-tag.module.js +73 -0
- package/dist/modules/image/aws-ecr-image-tag/aws-ecr-image-tag.module.js.map +1 -0
- package/dist/modules/image/aws-ecr-image-tag/index.d.ts +1 -0
- package/dist/modules/image/aws-ecr-image-tag/index.js +2 -0
- package/dist/modules/image/aws-ecr-image-tag/index.js.map +1 -0
- package/dist/modules/image/aws-ecr-image-tag/index.schema.d.ts +42 -0
- package/dist/modules/image/aws-ecr-image-tag/index.schema.js +83 -0
- package/dist/modules/image/aws-ecr-image-tag/index.schema.js.map +1 -0
- package/dist/modules/image/aws-ecr-image-tag/overlays/aws-ecr-image-tag/actions/add-aws-ecr-image-tag.overlay.action.d.ts +26 -0
- package/dist/modules/image/aws-ecr-image-tag/overlays/aws-ecr-image-tag/actions/add-aws-ecr-image-tag.overlay.action.js +77 -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 -0
- package/dist/modules/image/aws-ecr-image-tag/overlays/aws-ecr-image-tag/aws-ecr-image-tag.overlay.d.ts +26 -0
- package/dist/modules/image/aws-ecr-image-tag/overlays/aws-ecr-image-tag/aws-ecr-image-tag.overlay.js +43 -0
- package/dist/modules/image/aws-ecr-image-tag/overlays/aws-ecr-image-tag/aws-ecr-image-tag.overlay.js.map +1 -0
- package/dist/modules/image/aws-ecr-image-tag/overlays/aws-ecr-image-tag/aws-ecr-image-tag.schema.d.ts +12 -0
- package/dist/modules/image/aws-ecr-image-tag/overlays/aws-ecr-image-tag/aws-ecr-image-tag.schema.js +32 -0
- package/dist/modules/image/aws-ecr-image-tag/overlays/aws-ecr-image-tag/aws-ecr-image-tag.schema.js.map +1 -0
- package/dist/modules/image/aws-ecr-image-tag/overlays/aws-ecr-image-tag/index.d.ts +2 -0
- package/dist/modules/image/aws-ecr-image-tag/overlays/aws-ecr-image-tag/index.js +3 -0
- package/dist/modules/image/aws-ecr-image-tag/overlays/aws-ecr-image-tag/index.js.map +1 -0
- package/dist/modules/region/aws-multi-az-region/aws-multi-az-region.module.d.ts +6 -2
- package/dist/modules/region/aws-multi-az-region/aws-multi-az-region.module.js +12 -3
- 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/actions/add-aws-multi-az-region.model.action.d.ts +9 -0
- package/dist/modules/region/aws-multi-az-region/models/region/actions/add-aws-multi-az-region.model.action.js +9 -0
- package/dist/modules/region/aws-multi-az-region/models/region/actions/add-aws-multi-az-region.model.action.js.map +1 -1
- package/dist/modules/region/aws-multi-az-region/models/region/aws-multi-az-region.model.d.ts +13 -1
- package/dist/modules/region/aws-multi-az-region/models/region/aws-multi-az-region.model.js +15 -3
- package/dist/modules/region/aws-multi-az-region/models/region/aws-multi-az-region.model.js.map +1 -1
- package/dist/modules/region/aws-single-az-region/aws-single-az-region.module.d.ts +6 -2
- package/dist/modules/region/aws-single-az-region/aws-single-az-region.module.js +12 -3
- 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/actions/add-aws-single-az-region.model.action.d.ts +9 -0
- package/dist/modules/region/aws-single-az-region/models/region/actions/add-aws-single-az-region.model.action.js +9 -0
- package/dist/modules/region/aws-single-az-region/models/region/actions/add-aws-single-az-region.model.action.js.map +1 -1
- package/dist/modules/region/aws-single-az-region/models/region/aws-single-az-region.model.d.ts +13 -1
- package/dist/modules/region/aws-single-az-region/models/region/aws-single-az-region.model.js +15 -3
- package/dist/modules/region/aws-single-az-region/models/region/aws-single-az-region.model.js.map +1 -1
- package/dist/modules/server/aws-ecs-server/aws-ecs-server.module.d.ts +7 -1
- package/dist/modules/server/aws-ecs-server/aws-ecs-server.module.js +7 -1
- package/dist/modules/server/aws-ecs-server/aws-ecs-server.module.js.map +1 -1
- package/dist/modules/server/aws-ecs-server/index.schema.d.ts +9 -3
- package/dist/modules/server/aws-ecs-server/index.schema.js +9 -3
- package/dist/modules/server/aws-ecs-server/index.schema.js.map +1 -1
- package/dist/modules/server/aws-ecs-server/models/server/actions/add-aws-ecs-server.model.action.d.ts +9 -0
- package/dist/modules/server/aws-ecs-server/models/server/actions/add-aws-ecs-server.model.action.js +9 -0
- package/dist/modules/server/aws-ecs-server/models/server/actions/add-aws-ecs-server.model.action.js.map +1 -1
- package/dist/modules/server/aws-ecs-server/models/server/aws-ecs-server.model.d.ts +3 -0
- package/dist/modules/server/aws-ecs-server/models/server/aws-ecs-server.model.js +3 -0
- package/dist/modules/server/aws-ecs-server/models/server/aws-ecs-server.model.js.map +1 -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 +9 -0
- package/dist/modules/server/aws-ecs-server/overlays/aws-ecs-server-s3-access/actions/add-aws-ecs-server-s3-access.overlay.action.js +9 -0
- package/dist/modules/server/aws-ecs-server/overlays/aws-ecs-server-s3-access/actions/add-aws-ecs-server-s3-access.overlay.action.js.map +1 -1
- package/dist/modules/server/aws-ecs-server/overlays/aws-ecs-server-s3-access/aws-ecs-server-s3-access.overlay.d.ts +6 -0
- package/dist/modules/server/aws-ecs-server/overlays/aws-ecs-server-s3-access/aws-ecs-server-s3-access.overlay.js +6 -0
- package/dist/modules/server/aws-ecs-server/overlays/aws-ecs-server-s3-access/aws-ecs-server-s3-access.overlay.js.map +1 -1
- package/dist/modules/service/aws-dynamodb-global-service/aws-dynamodb-global-service.module.d.ts +39 -0
- package/dist/modules/service/aws-dynamodb-global-service/aws-dynamodb-global-service.module.js +70 -0
- package/dist/modules/service/aws-dynamodb-global-service/aws-dynamodb-global-service.module.js.map +1 -0
- package/dist/modules/service/aws-dynamodb-global-service/index.d.ts +1 -0
- package/dist/modules/service/aws-dynamodb-global-service/index.js +2 -0
- package/dist/modules/service/aws-dynamodb-global-service/index.js.map +1 -0
- package/dist/modules/service/aws-dynamodb-global-service/index.schema.d.ts +41 -0
- package/dist/modules/service/aws-dynamodb-global-service/index.schema.js +103 -0
- package/dist/modules/service/aws-dynamodb-global-service/index.schema.js.map +1 -0
- package/dist/modules/service/aws-dynamodb-global-service/models/service/actions/add-aws-dynamodb-global-service.model.action.d.ts +26 -0
- package/dist/modules/service/aws-dynamodb-global-service/models/service/actions/add-aws-dynamodb-global-service.model.action.js +79 -0
- package/dist/modules/service/aws-dynamodb-global-service/models/service/actions/add-aws-dynamodb-global-service.model.action.js.map +1 -0
- package/dist/modules/service/aws-dynamodb-global-service/models/service/aws-dynamodb-global-service.model.d.ts +20 -0
- package/dist/modules/service/aws-dynamodb-global-service/models/service/aws-dynamodb-global-service.model.js +49 -0
- package/dist/modules/service/aws-dynamodb-global-service/models/service/aws-dynamodb-global-service.model.js.map +1 -0
- package/dist/modules/service/aws-dynamodb-global-service/models/service/aws-dynamodb-global-service.schema.d.ts +7 -0
- package/dist/modules/service/aws-dynamodb-global-service/models/service/aws-dynamodb-global-service.schema.js +24 -0
- package/dist/modules/service/aws-dynamodb-global-service/models/service/aws-dynamodb-global-service.schema.js.map +1 -0
- package/dist/modules/service/aws-dynamodb-global-service/models/service/index.d.ts +2 -0
- package/dist/modules/service/aws-dynamodb-global-service/models/service/index.js +3 -0
- package/dist/modules/service/aws-dynamodb-global-service/models/service/index.js.map +1 -0
- package/dist/modules/service/aws-dynamodb-service/aws-dynamodb-service.module.d.ts +44 -0
- package/dist/modules/service/aws-dynamodb-service/aws-dynamodb-service.module.js +76 -0
- package/dist/modules/service/aws-dynamodb-service/aws-dynamodb-service.module.js.map +1 -0
- package/dist/modules/service/aws-dynamodb-service/index.d.ts +1 -0
- package/dist/modules/service/aws-dynamodb-service/index.js +2 -0
- package/dist/modules/service/aws-dynamodb-service/index.js.map +1 -0
- package/dist/modules/service/aws-dynamodb-service/index.schema.d.ts +66 -0
- package/dist/modules/service/aws-dynamodb-service/index.schema.js +161 -0
- package/dist/modules/service/aws-dynamodb-service/index.schema.js.map +1 -0
- package/dist/modules/service/aws-dynamodb-service/models/service/actions/add-aws-dynamodb-service.model.action.d.ts +26 -0
- package/dist/modules/service/aws-dynamodb-service/models/service/actions/add-aws-dynamodb-service.model.action.js +70 -0
- package/dist/modules/service/aws-dynamodb-service/models/service/actions/add-aws-dynamodb-service.model.action.js.map +1 -0
- package/dist/modules/service/aws-dynamodb-service/models/service/aws-dynamodb-service.model.d.ts +20 -0
- package/dist/modules/service/aws-dynamodb-service/models/service/aws-dynamodb-service.model.js +49 -0
- package/dist/modules/service/aws-dynamodb-service/models/service/aws-dynamodb-service.model.js.map +1 -0
- package/dist/modules/service/aws-dynamodb-service/models/service/aws-dynamodb-service.schema.d.ts +7 -0
- package/dist/modules/service/aws-dynamodb-service/models/service/aws-dynamodb-service.schema.js +24 -0
- package/dist/modules/service/aws-dynamodb-service/models/service/aws-dynamodb-service.schema.js.map +1 -0
- package/dist/modules/service/aws-dynamodb-service/models/service/index.d.ts +2 -0
- package/dist/modules/service/aws-dynamodb-service/models/service/index.js +3 -0
- package/dist/modules/service/aws-dynamodb-service/models/service/index.js.map +1 -0
- package/dist/modules/service/aws-ecs-alb-service/aws-ecs-alb-service.module.d.ts +7 -1
- package/dist/modules/service/aws-ecs-alb-service/aws-ecs-alb-service.module.js +7 -1
- 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.d.ts +9 -0
- package/dist/modules/service/aws-ecs-alb-service/models/service/actions/add-aws-ecs-alb-service.model.action.js +9 -0
- 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 +13 -1
- package/dist/modules/service/aws-ecs-alb-service/models/service/aws-ecs-alb-service.model.js +16 -4
- 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/overlays/aws-ecs-alb-service/actions/add-aws-ecs-alb-service.overlay.action.d.ts +9 -0
- package/dist/modules/service/aws-ecs-alb-service/overlays/aws-ecs-alb-service/actions/add-aws-ecs-alb-service.overlay.action.js +10 -3
- 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-ecs-alb-service/overlays/aws-ecs-alb-service/aws-ecs-alb-service.overlay.d.ts +6 -0
- package/dist/modules/service/aws-ecs-alb-service/overlays/aws-ecs-alb-service/aws-ecs-alb-service.overlay.js +6 -0
- package/dist/modules/service/aws-ecs-alb-service/overlays/aws-ecs-alb-service/aws-ecs-alb-service.overlay.js.map +1 -1
- package/dist/modules/service/aws-s3-static-website-service/aws-s3-static-website-service.module.d.ts +16 -11
- package/dist/modules/service/aws-s3-static-website-service/aws-s3-static-website-service.module.js +20 -59
- 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 +58 -0
- package/dist/modules/service/aws-s3-static-website-service/index.schema.js +96 -0
- 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.d.ts +9 -0
- package/dist/modules/service/aws-s3-static-website-service/models/service/actions/add-aws-s3-static-website-service.model.action.js +98 -4
- 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 +11 -2
- package/dist/modules/service/aws-s3-static-website-service/models/service/actions/update-aws-s3-static-website-service-source-paths.model.action.js +27 -2
- 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 +26 -8
- package/dist/modules/service/aws-s3-static-website-service/models/service/aws-s3-static-website-service.model.js +55 -69
- 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 +7 -1
- package/dist/modules/service/aws-s3-storage-service/aws-s3-storage-service.module.js +7 -1
- 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/models/service/actions/add-aws-s3-storage-service.model.action.d.ts +9 -0
- package/dist/modules/service/aws-s3-storage-service/models/service/actions/add-aws-s3-storage-service.model.action.js +9 -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/aws-s3-storage-service.model.d.ts +13 -1
- package/dist/modules/service/aws-s3-storage-service/models/service/aws-s3-storage-service.model.js +17 -5
- package/dist/modules/service/aws-s3-storage-service/models/service/aws-s3-storage-service.model.js.map +1 -1
- package/dist/modules/subnet/aws-simple-subnet/aws-simple-subnet.module.d.ts +7 -1
- package/dist/modules/subnet/aws-simple-subnet/aws-simple-subnet.module.js +9 -3
- 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.d.ts +9 -0
- package/dist/modules/subnet/aws-simple-subnet/models/subnet/actions/add-aws-simple-subnet.model.action.js +9 -0
- 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/models/subnet/actions/update-aws-simple-subnet-association.model.action.d.ts +9 -0
- package/dist/modules/subnet/aws-simple-subnet/models/subnet/actions/update-aws-simple-subnet-association.model.action.js +11 -2
- package/dist/modules/subnet/aws-simple-subnet/models/subnet/actions/update-aws-simple-subnet-association.model.action.js.map +1 -1
- package/dist/modules/subnet/aws-simple-subnet/models/subnet/aws-simple-subnet.model.d.ts +10 -1
- package/dist/modules/subnet/aws-simple-subnet/models/subnet/aws-simple-subnet.model.js +9 -0
- package/dist/modules/subnet/aws-simple-subnet/models/subnet/aws-simple-subnet.model.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.d.ts +9 -0
- 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 +9 -0
- 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 +6 -0
- package/dist/modules/subnet/aws-simple-subnet/overlays/aws-simple-subnet-local-filesystem-mount/aws-simple-subnet-local-filesystem-mount.overlay.js +6 -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.d.ts +15 -2
- package/dist/resources/alb/alb.resource.js +41 -4
- package/dist/resources/alb/alb.resource.js.map +1 -1
- package/dist/resources/alb/index.d.ts +0 -6
- package/dist/resources/alb/index.js +0 -6
- package/dist/resources/alb/index.js.map +1 -1
- package/dist/resources/alb/index.schema.d.ts +2 -2
- package/dist/resources/alb/index.schema.js +6 -3
- package/dist/resources/alb/index.schema.js.map +1 -1
- package/dist/resources/alb-listener/alb-listener.resource.d.ts +22 -29
- package/dist/resources/alb-listener/alb-listener.resource.js +134 -68
- package/dist/resources/alb-listener/alb-listener.resource.js.map +1 -1
- package/dist/resources/alb-listener/index.d.ts +0 -6
- package/dist/resources/alb-listener/index.js +0 -6
- package/dist/resources/alb-listener/index.js.map +1 -1
- package/dist/resources/alb-listener/index.schema.d.ts +4 -10
- package/dist/resources/alb-listener/index.schema.js +8 -12
- package/dist/resources/alb-listener/index.schema.js.map +1 -1
- package/dist/resources/alb-target-group/alb-target-group.resource.d.ts +12 -3
- package/dist/resources/alb-target-group/alb-target-group.resource.js +50 -14
- package/dist/resources/alb-target-group/alb-target-group.resource.js.map +1 -1
- package/dist/resources/alb-target-group/index.d.ts +0 -5
- package/dist/resources/alb-target-group/index.js +0 -5
- package/dist/resources/alb-target-group/index.js.map +1 -1
- package/dist/resources/alb-target-group/index.schema.d.ts +2 -2
- package/dist/resources/alb-target-group/index.schema.js +5 -3
- package/dist/resources/alb-target-group/index.schema.js.map +1 -1
- package/dist/resources/cloudfront-distribution/cloudfront-distribution.resource.d.ts +97 -0
- package/dist/resources/cloudfront-distribution/cloudfront-distribution.resource.js +613 -0
- package/dist/resources/cloudfront-distribution/cloudfront-distribution.resource.js.map +1 -0
- package/dist/resources/cloudfront-distribution/index.d.ts +1 -0
- package/dist/resources/cloudfront-distribution/index.js +2 -0
- package/dist/resources/cloudfront-distribution/index.js.map +1 -0
- package/dist/resources/cloudfront-distribution/index.schema.d.ts +522 -0
- package/dist/resources/cloudfront-distribution/index.schema.js +754 -0
- package/dist/resources/cloudfront-distribution/index.schema.js.map +1 -0
- package/dist/resources/cloudfront-invalidation/actions/add-cloudfront-invalidation.resource.action.d.ts +36 -0
- package/dist/resources/cloudfront-invalidation/actions/add-cloudfront-invalidation.resource.action.js +90 -0
- package/dist/resources/cloudfront-invalidation/actions/add-cloudfront-invalidation.resource.action.js.map +1 -0
- package/dist/resources/cloudfront-invalidation/actions/delete-cloudfront-invalidation.resource.action.d.ts +39 -0
- package/dist/resources/cloudfront-invalidation/actions/delete-cloudfront-invalidation.resource.action.js +69 -0
- package/dist/resources/cloudfront-invalidation/actions/delete-cloudfront-invalidation.resource.action.js.map +1 -0
- package/dist/resources/cloudfront-invalidation/actions/update-cloudfront-invalidation.resource.action.d.ts +37 -0
- package/dist/resources/cloudfront-invalidation/actions/update-cloudfront-invalidation.resource.action.js +91 -0
- package/dist/resources/cloudfront-invalidation/actions/update-cloudfront-invalidation.resource.action.js.map +1 -0
- package/dist/resources/cloudfront-invalidation/cloudfront-invalidation.resource.d.ts +62 -0
- package/dist/resources/cloudfront-invalidation/cloudfront-invalidation.resource.js +89 -0
- package/dist/resources/cloudfront-invalidation/cloudfront-invalidation.resource.js.map +1 -0
- package/dist/resources/cloudfront-invalidation/index.d.ts +5 -0
- package/dist/resources/cloudfront-invalidation/index.js +6 -0
- package/dist/resources/cloudfront-invalidation/index.js.map +1 -0
- package/dist/resources/cloudfront-invalidation/index.schema.d.ts +61 -0
- package/dist/resources/cloudfront-invalidation/index.schema.js +110 -0
- package/dist/resources/cloudfront-invalidation/index.schema.js.map +1 -0
- package/dist/resources/dynamodb/dynamodb.resource.d.ts +34 -0
- package/dist/resources/dynamodb/dynamodb.resource.js +273 -0
- package/dist/resources/dynamodb/dynamodb.resource.js.map +1 -0
- package/dist/resources/dynamodb/index.d.ts +1 -0
- package/dist/resources/dynamodb/index.js +2 -0
- package/dist/resources/dynamodb/index.js.map +1 -0
- package/dist/resources/dynamodb/index.schema.d.ts +125 -0
- package/dist/resources/dynamodb/index.schema.js +274 -0
- package/dist/resources/dynamodb/index.schema.js.map +1 -0
- package/dist/resources/dynamodb-global/dynamodb-global.resource.d.ts +52 -0
- package/dist/resources/dynamodb-global/dynamodb-global.resource.js +177 -0
- package/dist/resources/dynamodb-global/dynamodb-global.resource.js.map +1 -0
- package/dist/resources/dynamodb-global/index.d.ts +1 -0
- package/dist/resources/dynamodb-global/index.js +2 -0
- package/dist/resources/dynamodb-global/index.js.map +1 -0
- package/dist/resources/dynamodb-global/index.schema.d.ts +48 -0
- package/dist/resources/dynamodb-global/index.schema.js +96 -0
- package/dist/resources/dynamodb-global/index.schema.js.map +1 -0
- package/dist/resources/ecr/ecr-image.resource.d.ts +12 -2
- package/dist/resources/ecr/ecr-image.resource.js +34 -3
- package/dist/resources/ecr/ecr-image.resource.js.map +1 -1
- package/dist/resources/ecr/index.d.ts +0 -4
- package/dist/resources/ecr/index.js +0 -4
- package/dist/resources/ecr/index.js.map +1 -1
- package/dist/resources/ecr/index.schema.d.ts +5 -3
- package/dist/resources/ecr/index.schema.js +11 -4
- package/dist/resources/ecr/index.schema.js.map +1 -1
- package/dist/resources/ecr-image-tag/actions/add-ecr-image-tag.resource.action.d.ts +46 -0
- package/dist/resources/ecr-image-tag/actions/add-ecr-image-tag.resource.action.js +123 -0
- package/dist/resources/ecr-image-tag/actions/add-ecr-image-tag.resource.action.js.map +1 -0
- package/dist/resources/ecr-image-tag/actions/delete-ecr-image-tag.resource.action.d.ts +36 -0
- package/dist/resources/ecr-image-tag/actions/delete-ecr-image-tag.resource.action.js +89 -0
- package/dist/resources/ecr-image-tag/actions/delete-ecr-image-tag.resource.action.js.map +1 -0
- package/dist/resources/ecr-image-tag/ecr-image-tag.resource.d.ts +56 -0
- package/dist/resources/ecr-image-tag/ecr-image-tag.resource.js +75 -0
- package/dist/resources/ecr-image-tag/ecr-image-tag.resource.js.map +1 -0
- package/dist/resources/ecr-image-tag/index.d.ts +4 -0
- package/dist/resources/ecr-image-tag/index.js +5 -0
- package/dist/resources/ecr-image-tag/index.js.map +1 -0
- package/dist/resources/ecr-image-tag/index.schema.d.ts +59 -0
- package/dist/resources/ecr-image-tag/index.schema.js +104 -0
- package/dist/resources/ecr-image-tag/index.schema.js.map +1 -0
- package/dist/resources/ecs-cluster/ecs-cluster.resource.d.ts +12 -2
- package/dist/resources/ecs-cluster/ecs-cluster.resource.js +30 -4
- package/dist/resources/ecs-cluster/ecs-cluster.resource.js.map +1 -1
- package/dist/resources/ecs-cluster/index.d.ts +0 -4
- package/dist/resources/ecs-cluster/index.js +0 -4
- package/dist/resources/ecs-cluster/index.js.map +1 -1
- package/dist/resources/ecs-cluster/index.schema.d.ts +2 -2
- package/dist/resources/ecs-cluster/index.schema.js +5 -3
- package/dist/resources/ecs-cluster/index.schema.js.map +1 -1
- package/dist/resources/ecs-service/ecs-service.resource.d.ts +29 -6
- package/dist/resources/ecs-service/ecs-service.resource.js +109 -35
- package/dist/resources/ecs-service/ecs-service.resource.js.map +1 -1
- package/dist/resources/ecs-service/index.d.ts +0 -5
- package/dist/resources/ecs-service/index.js +0 -5
- package/dist/resources/ecs-service/index.js.map +1 -1
- package/dist/resources/ecs-service/index.schema.d.ts +2 -2
- package/dist/resources/ecs-service/index.schema.js +5 -3
- package/dist/resources/ecs-service/index.schema.js.map +1 -1
- package/dist/resources/ecs-task-definition/ecs-task-definition.resource.d.ts +54 -5
- package/dist/resources/ecs-task-definition/ecs-task-definition.resource.js +133 -11
- package/dist/resources/ecs-task-definition/ecs-task-definition.resource.js.map +1 -1
- package/dist/resources/ecs-task-definition/index.d.ts +0 -5
- package/dist/resources/ecs-task-definition/index.js +0 -5
- package/dist/resources/ecs-task-definition/index.js.map +1 -1
- package/dist/resources/ecs-task-definition/index.schema.d.ts +4 -3
- package/dist/resources/ecs-task-definition/index.schema.js +8 -4
- package/dist/resources/ecs-task-definition/index.schema.js.map +1 -1
- package/dist/resources/efs/efs.resource.d.ts +12 -2
- package/dist/resources/efs/efs.resource.js +37 -4
- package/dist/resources/efs/efs.resource.js.map +1 -1
- package/dist/resources/efs/index.d.ts +0 -4
- package/dist/resources/efs/index.js +0 -4
- package/dist/resources/efs/index.js.map +1 -1
- package/dist/resources/efs/index.schema.d.ts +3 -2
- package/dist/resources/efs/index.schema.js +7 -3
- package/dist/resources/efs/index.schema.js.map +1 -1
- package/dist/resources/efs-mount-target/efs-mount-target.resource.d.ts +12 -2
- package/dist/resources/efs-mount-target/efs-mount-target.resource.js +32 -4
- package/dist/resources/efs-mount-target/efs-mount-target.resource.js.map +1 -1
- package/dist/resources/efs-mount-target/index.d.ts +0 -4
- package/dist/resources/efs-mount-target/index.js +0 -4
- package/dist/resources/efs-mount-target/index.js.map +1 -1
- package/dist/resources/efs-mount-target/index.schema.d.ts +2 -2
- package/dist/resources/efs-mount-target/index.schema.js +6 -3
- package/dist/resources/efs-mount-target/index.schema.js.map +1 -1
- package/dist/resources/iam-role/iam-role.resource.d.ts +27 -15
- package/dist/resources/iam-role/iam-role.resource.js +123 -48
- package/dist/resources/iam-role/iam-role.resource.js.map +1 -1
- package/dist/resources/iam-role/index.d.ts +0 -7
- package/dist/resources/iam-role/index.js +0 -7
- package/dist/resources/iam-role/index.js.map +1 -1
- package/dist/resources/iam-role/index.schema.d.ts +2 -6
- package/dist/resources/iam-role/index.schema.js +7 -7
- package/dist/resources/iam-role/index.schema.js.map +1 -1
- package/dist/resources/iam-user/iam-user.resource.d.ts +21 -15
- package/dist/resources/iam-user/iam-user.resource.js +90 -41
- package/dist/resources/iam-user/iam-user.resource.js.map +1 -1
- package/dist/resources/iam-user/index.d.ts +0 -5
- package/dist/resources/iam-user/index.js +0 -5
- package/dist/resources/iam-user/index.js.map +1 -1
- package/dist/resources/iam-user/index.schema.d.ts +2 -6
- package/dist/resources/iam-user/index.schema.js +7 -7
- package/dist/resources/iam-user/index.schema.js.map +1 -1
- package/dist/resources/internet-gateway/index.d.ts +0 -4
- package/dist/resources/internet-gateway/index.js +0 -4
- package/dist/resources/internet-gateway/index.js.map +1 -1
- package/dist/resources/internet-gateway/index.schema.d.ts +2 -2
- package/dist/resources/internet-gateway/index.schema.js +6 -3
- package/dist/resources/internet-gateway/index.schema.js.map +1 -1
- package/dist/resources/internet-gateway/internet-gateway.resource.d.ts +12 -2
- package/dist/resources/internet-gateway/internet-gateway.resource.js +30 -4
- package/dist/resources/internet-gateway/internet-gateway.resource.js.map +1 -1
- package/dist/resources/nat-gateway/index.d.ts +0 -4
- package/dist/resources/nat-gateway/index.js +0 -4
- package/dist/resources/nat-gateway/index.js.map +1 -1
- package/dist/resources/nat-gateway/index.schema.d.ts +3 -4
- package/dist/resources/nat-gateway/index.schema.js +7 -7
- package/dist/resources/nat-gateway/index.schema.js.map +1 -1
- package/dist/resources/nat-gateway/nat-gateway.resource.d.ts +12 -2
- package/dist/resources/nat-gateway/nat-gateway.resource.js +37 -4
- package/dist/resources/nat-gateway/nat-gateway.resource.js.map +1 -1
- package/dist/resources/network-acl/index.d.ts +0 -5
- package/dist/resources/network-acl/index.js +0 -5
- package/dist/resources/network-acl/index.js.map +1 -1
- package/dist/resources/network-acl/index.schema.d.ts +2 -8
- package/dist/resources/network-acl/index.schema.js +5 -15
- package/dist/resources/network-acl/index.schema.js.map +1 -1
- package/dist/resources/network-acl/network-acl.resource.d.ts +15 -2
- package/dist/resources/network-acl/network-acl.resource.js +59 -3
- package/dist/resources/network-acl/network-acl.resource.js.map +1 -1
- package/dist/resources/route-table/index.d.ts +0 -5
- package/dist/resources/route-table/index.js +0 -5
- package/dist/resources/route-table/index.js.map +1 -1
- package/dist/resources/route-table/index.schema.d.ts +3 -4
- package/dist/resources/route-table/index.schema.js +7 -7
- package/dist/resources/route-table/index.schema.js.map +1 -1
- package/dist/resources/route-table/route-table.resource.d.ts +18 -3
- package/dist/resources/route-table/route-table.resource.js +61 -17
- package/dist/resources/route-table/route-table.resource.js.map +1 -1
- package/dist/resources/s3-storage/index.d.ts +0 -6
- package/dist/resources/s3-storage/index.js +0 -6
- package/dist/resources/s3-storage/index.js.map +1 -1
- package/dist/resources/s3-storage/index.schema.d.ts +3 -2
- package/dist/resources/s3-storage/index.schema.js +9 -4
- package/dist/resources/s3-storage/index.schema.js.map +1 -1
- package/dist/resources/s3-storage/s3-storage.resource.d.ts +21 -3
- package/dist/resources/s3-storage/s3-storage.resource.js +76 -13
- package/dist/resources/s3-storage/s3-storage.resource.js.map +1 -1
- package/dist/resources/s3-website/index.d.ts +0 -5
- package/dist/resources/s3-website/index.js +0 -5
- package/dist/resources/s3-website/index.js.map +1 -1
- package/dist/resources/s3-website/index.schema.d.ts +25 -2
- package/dist/resources/s3-website/index.schema.js +45 -3
- package/dist/resources/s3-website/index.schema.js.map +1 -1
- package/dist/resources/s3-website/s3-website.resource.d.ts +55 -9
- package/dist/resources/s3-website/s3-website.resource.js +168 -27
- package/dist/resources/s3-website/s3-website.resource.js.map +1 -1
- package/dist/resources/security-group/index.d.ts +0 -5
- package/dist/resources/security-group/index.js +0 -5
- package/dist/resources/security-group/index.js.map +1 -1
- package/dist/resources/security-group/index.schema.d.ts +3 -9
- package/dist/resources/security-group/index.schema.js +7 -11
- package/dist/resources/security-group/index.schema.js.map +1 -1
- package/dist/resources/security-group/security-group.resource.d.ts +12 -2
- package/dist/resources/security-group/security-group.resource.js +59 -3
- package/dist/resources/security-group/security-group.resource.js.map +1 -1
- package/dist/resources/subnet/index.d.ts +0 -4
- package/dist/resources/subnet/index.js +0 -4
- package/dist/resources/subnet/index.js.map +1 -1
- package/dist/resources/subnet/index.schema.d.ts +2 -2
- package/dist/resources/subnet/index.schema.js +6 -3
- package/dist/resources/subnet/index.schema.js.map +1 -1
- package/dist/resources/subnet/subnet.resource.d.ts +12 -2
- package/dist/resources/subnet/subnet.resource.js +32 -4
- package/dist/resources/subnet/subnet.resource.js.map +1 -1
- package/dist/resources/vpc/index.d.ts +0 -4
- package/dist/resources/vpc/index.js +0 -4
- package/dist/resources/vpc/index.js.map +1 -1
- package/dist/resources/vpc/index.schema.d.ts +2 -2
- package/dist/resources/vpc/index.schema.js +28 -13
- package/dist/resources/vpc/index.schema.js.map +1 -1
- package/dist/resources/vpc/vpc.resource.d.ts +12 -2
- package/dist/resources/vpc/vpc.resource.js +34 -5
- package/dist/resources/vpc/vpc.resource.js.map +1 -1
- package/dist/services/docker/docker.service.d.ts +54 -0
- package/dist/services/docker/docker.service.js +112 -0
- package/dist/services/docker/docker.service.js.map +1 -0
- package/dist/utilities/cidr/cidr.utility.d.ts +13 -2
- package/dist/utilities/cidr/cidr.utility.js +58 -5
- package/dist/utilities/cidr/cidr.utility.js.map +1 -1
- package/dist/utilities/common/common.utility.d.ts +6 -0
- package/dist/utilities/common/common.utility.js +6 -0
- package/dist/utilities/common/common.utility.js.map +1 -1
- package/dist/utilities/ecr-image-uri/ecr-image-uri.utility.d.ts +20 -0
- package/dist/utilities/ecr-image-uri/ecr-image-uri.utility.js +33 -0
- package/dist/utilities/ecr-image-uri/ecr-image-uri.utility.js.map +1 -0
- package/dist/utilities/file/file.utility.d.ts +9 -0
- package/dist/utilities/file/file.utility.js +9 -0
- package/dist/utilities/file/file.utility.js.map +1 -1
- package/dist/utilities/hcl/hcl.utility.d.ts +34 -0
- package/dist/utilities/hcl/hcl.utility.js +163 -0
- package/dist/utilities/hcl/hcl.utility.js.map +1 -0
- package/dist/utilities/network-acl/network-acl.utility.d.ts +12 -2
- package/dist/utilities/network-acl/network-acl.utility.js +17 -0
- package/dist/utilities/network-acl/network-acl.utility.js.map +1 -1
- package/dist/utilities/policy/policy.utility.d.ts +3 -11
- package/dist/utilities/policy/policy.utility.js +3 -46
- package/dist/utilities/policy/policy.utility.js.map +1 -1
- package/dist/utilities/retry/retry.utility.d.ts +6 -0
- package/dist/utilities/retry/retry.utility.js +6 -0
- package/dist/utilities/retry/retry.utility.js.map +1 -1
- package/dist/utilities/task-definition/task-definition.utility.d.ts +6 -0
- package/dist/utilities/task-definition/task-definition.utility.js +6 -0
- package/dist/utilities/task-definition/task-definition.utility.js.map +1 -1
- package/package.json +28 -19
- package/dist/resources/alb/actions/add-alb.resource.action.d.ts +0 -20
- package/dist/resources/alb/actions/add-alb.resource.action.js +0 -92
- package/dist/resources/alb/actions/add-alb.resource.action.js.map +0 -1
- package/dist/resources/alb/actions/delete-alb.resource.action.d.ts +0 -18
- package/dist/resources/alb/actions/delete-alb.resource.action.js +0 -97
- package/dist/resources/alb/actions/delete-alb.resource.action.js.map +0 -1
- package/dist/resources/alb/actions/update-alb-security-groups.resource.action.d.ts +0 -17
- package/dist/resources/alb/actions/update-alb-security-groups.resource.action.js +0 -65
- package/dist/resources/alb/actions/update-alb-security-groups.resource.action.js.map +0 -1
- package/dist/resources/alb/actions/update-alb-subnets.resource.action.d.ts +0 -17
- package/dist/resources/alb/actions/update-alb-subnets.resource.action.js +0 -65
- package/dist/resources/alb/actions/update-alb-subnets.resource.action.js.map +0 -1
- package/dist/resources/alb/actions/update-alb-tags.resource.action.d.ts +0 -18
- package/dist/resources/alb/actions/update-alb-tags.resource.action.js +0 -52
- package/dist/resources/alb/actions/update-alb-tags.resource.action.js.map +0 -1
- package/dist/resources/alb/actions/validate-alb.resource.action.d.ts +0 -17
- package/dist/resources/alb/actions/validate-alb.resource.action.js +0 -129
- package/dist/resources/alb/actions/validate-alb.resource.action.js.map +0 -1
- package/dist/resources/alb-listener/actions/add-alb-listener.resource.action.d.ts +0 -20
- package/dist/resources/alb-listener/actions/add-alb-listener.resource.action.js +0 -89
- package/dist/resources/alb-listener/actions/add-alb-listener.resource.action.js.map +0 -1
- package/dist/resources/alb-listener/actions/delete-alb-listener.resource.action.d.ts +0 -18
- package/dist/resources/alb-listener/actions/delete-alb-listener.resource.action.js +0 -63
- package/dist/resources/alb-listener/actions/delete-alb-listener.resource.action.js.map +0 -1
- package/dist/resources/alb-listener/actions/update-alb-listener-rule.resource.action.d.ts +0 -20
- package/dist/resources/alb-listener/actions/update-alb-listener-rule.resource.action.js +0 -262
- package/dist/resources/alb-listener/actions/update-alb-listener-rule.resource.action.js.map +0 -1
- package/dist/resources/alb-listener/actions/update-alb-listener-tags.resource.action.d.ts +0 -18
- package/dist/resources/alb-listener/actions/update-alb-listener-tags.resource.action.js +0 -52
- package/dist/resources/alb-listener/actions/update-alb-listener-tags.resource.action.js.map +0 -1
- package/dist/resources/alb-listener/actions/update-alb-listener.resource.action.d.ts +0 -18
- package/dist/resources/alb-listener/actions/update-alb-listener.resource.action.js +0 -122
- package/dist/resources/alb-listener/actions/update-alb-listener.resource.action.js.map +0 -1
- package/dist/resources/alb-listener/actions/validate-alb-listener.resource.action.d.ts +0 -17
- package/dist/resources/alb-listener/actions/validate-alb-listener.resource.action.js +0 -347
- package/dist/resources/alb-listener/actions/validate-alb-listener.resource.action.js.map +0 -1
- package/dist/resources/alb-target-group/actions/add-alb-target-group.resource.action.d.ts +0 -20
- package/dist/resources/alb-target-group/actions/add-alb-target-group.resource.action.js +0 -98
- package/dist/resources/alb-target-group/actions/add-alb-target-group.resource.action.js.map +0 -1
- package/dist/resources/alb-target-group/actions/delete-alb-target-group.resource.action.d.ts +0 -18
- package/dist/resources/alb-target-group/actions/delete-alb-target-group.resource.action.js +0 -64
- package/dist/resources/alb-target-group/actions/delete-alb-target-group.resource.action.js.map +0 -1
- package/dist/resources/alb-target-group/actions/update-alb-target-group-tags.resource.action.d.ts +0 -18
- package/dist/resources/alb-target-group/actions/update-alb-target-group-tags.resource.action.js +0 -52
- package/dist/resources/alb-target-group/actions/update-alb-target-group-tags.resource.action.js.map +0 -1
- package/dist/resources/alb-target-group/actions/update-alb-target-group.resource.action.d.ts +0 -18
- package/dist/resources/alb-target-group/actions/update-alb-target-group.resource.action.js +0 -79
- package/dist/resources/alb-target-group/actions/update-alb-target-group.resource.action.js.map +0 -1
- package/dist/resources/alb-target-group/actions/validate-alb-target-group.resource.action.d.ts +0 -17
- package/dist/resources/alb-target-group/actions/validate-alb-target-group.resource.action.js +0 -151
- package/dist/resources/alb-target-group/actions/validate-alb-target-group.resource.action.js.map +0 -1
- package/dist/resources/ecr/actions/add-ecr-image.resource.action.d.ts +0 -20
- package/dist/resources/ecr/actions/add-ecr-image.resource.action.js +0 -84
- package/dist/resources/ecr/actions/add-ecr-image.resource.action.js.map +0 -1
- package/dist/resources/ecr/actions/delete-ecr-image.resource.action.d.ts +0 -18
- package/dist/resources/ecr/actions/delete-ecr-image.resource.action.js +0 -63
- package/dist/resources/ecr/actions/delete-ecr-image.resource.action.js.map +0 -1
- package/dist/resources/ecr/actions/update-ecr-image-tags.resource.action.d.ts +0 -18
- package/dist/resources/ecr/actions/update-ecr-image-tags.resource.action.js +0 -52
- package/dist/resources/ecr/actions/update-ecr-image-tags.resource.action.js.map +0 -1
- package/dist/resources/ecr/actions/validate-ecr-image.resource.action.d.ts +0 -17
- package/dist/resources/ecr/actions/validate-ecr-image.resource.action.js +0 -111
- package/dist/resources/ecr/actions/validate-ecr-image.resource.action.js.map +0 -1
- package/dist/resources/ecs-cluster/actions/add-ecs-cluster.resource.action.d.ts +0 -20
- package/dist/resources/ecs-cluster/actions/add-ecs-cluster.resource.action.js +0 -72
- package/dist/resources/ecs-cluster/actions/add-ecs-cluster.resource.action.js.map +0 -1
- package/dist/resources/ecs-cluster/actions/delete-ecs-cluster.resource.action.d.ts +0 -18
- package/dist/resources/ecs-cluster/actions/delete-ecs-cluster.resource.action.js +0 -62
- package/dist/resources/ecs-cluster/actions/delete-ecs-cluster.resource.action.js.map +0 -1
- package/dist/resources/ecs-cluster/actions/update-ecs-cluster-tags.resource.action.d.ts +0 -18
- package/dist/resources/ecs-cluster/actions/update-ecs-cluster-tags.resource.action.js +0 -52
- package/dist/resources/ecs-cluster/actions/update-ecs-cluster-tags.resource.action.js.map +0 -1
- package/dist/resources/ecs-cluster/actions/validate-ecs-cluster.resource.action.d.ts +0 -17
- package/dist/resources/ecs-cluster/actions/validate-ecs-cluster.resource.action.js +0 -89
- package/dist/resources/ecs-cluster/actions/validate-ecs-cluster.resource.action.js.map +0 -1
- package/dist/resources/ecs-service/actions/add-ecs-service.resource.action.d.ts +0 -20
- package/dist/resources/ecs-service/actions/add-ecs-service.resource.action.js +0 -109
- package/dist/resources/ecs-service/actions/add-ecs-service.resource.action.js.map +0 -1
- package/dist/resources/ecs-service/actions/delete-ecs-service.resource.action.d.ts +0 -18
- package/dist/resources/ecs-service/actions/delete-ecs-service.resource.action.js +0 -110
- package/dist/resources/ecs-service/actions/delete-ecs-service.resource.action.js.map +0 -1
- package/dist/resources/ecs-service/actions/update-ecs-service-tags.resource.action.d.ts +0 -18
- package/dist/resources/ecs-service/actions/update-ecs-service-tags.resource.action.js +0 -52
- package/dist/resources/ecs-service/actions/update-ecs-service-tags.resource.action.js.map +0 -1
- package/dist/resources/ecs-service/actions/update-ecs-service.resource.action.d.ts +0 -20
- package/dist/resources/ecs-service/actions/update-ecs-service.resource.action.js +0 -103
- package/dist/resources/ecs-service/actions/update-ecs-service.resource.action.js.map +0 -1
- package/dist/resources/ecs-service/actions/validate-ecs-service.resource.action.d.ts +0 -17
- package/dist/resources/ecs-service/actions/validate-ecs-service.resource.action.js +0 -153
- package/dist/resources/ecs-service/actions/validate-ecs-service.resource.action.js.map +0 -1
- package/dist/resources/ecs-task-definition/actions/add-ecs-task-definition.resource.action.d.ts +0 -20
- package/dist/resources/ecs-task-definition/actions/add-ecs-task-definition.resource.action.js +0 -103
- package/dist/resources/ecs-task-definition/actions/add-ecs-task-definition.resource.action.js.map +0 -1
- package/dist/resources/ecs-task-definition/actions/delete-ecs-task-definition.resource.action.d.ts +0 -18
- package/dist/resources/ecs-task-definition/actions/delete-ecs-task-definition.resource.action.js +0 -73
- package/dist/resources/ecs-task-definition/actions/delete-ecs-task-definition.resource.action.js.map +0 -1
- package/dist/resources/ecs-task-definition/actions/update-ecs-task-definition-tags.resource.action.d.ts +0 -18
- package/dist/resources/ecs-task-definition/actions/update-ecs-task-definition-tags.resource.action.js +0 -52
- package/dist/resources/ecs-task-definition/actions/update-ecs-task-definition-tags.resource.action.js.map +0 -1
- package/dist/resources/ecs-task-definition/actions/update-ecs-task-definition.resource.action.d.ts +0 -20
- package/dist/resources/ecs-task-definition/actions/update-ecs-task-definition.resource.action.js +0 -115
- package/dist/resources/ecs-task-definition/actions/update-ecs-task-definition.resource.action.js.map +0 -1
- package/dist/resources/ecs-task-definition/actions/validate-ecs-task-definition.resource.action.d.ts +0 -17
- package/dist/resources/ecs-task-definition/actions/validate-ecs-task-definition.resource.action.js +0 -192
- package/dist/resources/ecs-task-definition/actions/validate-ecs-task-definition.resource.action.js.map +0 -1
- package/dist/resources/efs/actions/add-efs.resource.action.d.ts +0 -20
- package/dist/resources/efs/actions/add-efs.resource.action.js +0 -97
- package/dist/resources/efs/actions/add-efs.resource.action.js.map +0 -1
- package/dist/resources/efs/actions/delete-efs.resource.action.d.ts +0 -18
- package/dist/resources/efs/actions/delete-efs.resource.action.js +0 -90
- package/dist/resources/efs/actions/delete-efs.resource.action.js.map +0 -1
- package/dist/resources/efs/actions/update-efs-tags.resource.action.d.ts +0 -18
- package/dist/resources/efs/actions/update-efs-tags.resource.action.js +0 -52
- package/dist/resources/efs/actions/update-efs-tags.resource.action.js.map +0 -1
- package/dist/resources/efs/actions/validate-efs.resource.action.d.ts +0 -17
- package/dist/resources/efs/actions/validate-efs.resource.action.js +0 -102
- package/dist/resources/efs/actions/validate-efs.resource.action.js.map +0 -1
- package/dist/resources/efs-mount-target/actions/add-efs-mount-target.resource.action.d.ts +0 -20
- package/dist/resources/efs-mount-target/actions/add-efs-mount-target.resource.action.js +0 -96
- package/dist/resources/efs-mount-target/actions/add-efs-mount-target.resource.action.js.map +0 -1
- package/dist/resources/efs-mount-target/actions/delete-efs-mount-target.resource.action.d.ts +0 -18
- package/dist/resources/efs-mount-target/actions/delete-efs-mount-target.resource.action.js +0 -92
- package/dist/resources/efs-mount-target/actions/delete-efs-mount-target.resource.action.js.map +0 -1
- package/dist/resources/efs-mount-target/actions/update-efs-mount-target-tags.resource.action.d.ts +0 -16
- package/dist/resources/efs-mount-target/actions/update-efs-mount-target-tags.resource.action.js +0 -40
- package/dist/resources/efs-mount-target/actions/update-efs-mount-target-tags.resource.action.js.map +0 -1
- package/dist/resources/efs-mount-target/actions/validate-efs-mount-target.resource.action.d.ts +0 -17
- package/dist/resources/efs-mount-target/actions/validate-efs-mount-target.resource.action.js +0 -104
- package/dist/resources/efs-mount-target/actions/validate-efs-mount-target.resource.action.js.map +0 -1
- package/dist/resources/iam-role/actions/add-iam-role.resource.action.d.ts +0 -20
- package/dist/resources/iam-role/actions/add-iam-role.resource.action.js +0 -109
- package/dist/resources/iam-role/actions/add-iam-role.resource.action.js.map +0 -1
- package/dist/resources/iam-role/actions/delete-iam-role.resource.action.d.ts +0 -18
- package/dist/resources/iam-role/actions/delete-iam-role.resource.action.js +0 -63
- package/dist/resources/iam-role/actions/delete-iam-role.resource.action.js.map +0 -1
- package/dist/resources/iam-role/actions/update-iam-role-assume-role-policy.resource.action.d.ts +0 -18
- package/dist/resources/iam-role/actions/update-iam-role-assume-role-policy.resource.action.js +0 -80
- package/dist/resources/iam-role/actions/update-iam-role-assume-role-policy.resource.action.js.map +0 -1
- package/dist/resources/iam-role/actions/update-iam-role-tags.resource.action.d.ts +0 -18
- package/dist/resources/iam-role/actions/update-iam-role-tags.resource.action.js +0 -53
- package/dist/resources/iam-role/actions/update-iam-role-tags.resource.action.js.map +0 -1
- package/dist/resources/iam-role/actions/update-iam-role-with-aws-policy.resource.action.d.ts +0 -20
- package/dist/resources/iam-role/actions/update-iam-role-with-aws-policy.resource.action.js +0 -115
- package/dist/resources/iam-role/actions/update-iam-role-with-aws-policy.resource.action.js.map +0 -1
- package/dist/resources/iam-role/actions/update-iam-role-with-s3-storage-policy.resource.action.d.ts +0 -20
- package/dist/resources/iam-role/actions/update-iam-role-with-s3-storage-policy.resource.action.js +0 -157
- package/dist/resources/iam-role/actions/update-iam-role-with-s3-storage-policy.resource.action.js.map +0 -1
- package/dist/resources/iam-role/actions/validate-iam-role.resource.action.d.ts +0 -17
- package/dist/resources/iam-role/actions/validate-iam-role.resource.action.js +0 -207
- package/dist/resources/iam-role/actions/validate-iam-role.resource.action.js.map +0 -1
- package/dist/resources/iam-user/actions/add-iam-user.resource.action.d.ts +0 -20
- package/dist/resources/iam-user/actions/add-iam-user.resource.action.js +0 -92
- package/dist/resources/iam-user/actions/add-iam-user.resource.action.js.map +0 -1
- package/dist/resources/iam-user/actions/delete-iam-user.resource.action.d.ts +0 -18
- package/dist/resources/iam-user/actions/delete-iam-user.resource.action.js +0 -63
- package/dist/resources/iam-user/actions/delete-iam-user.resource.action.js.map +0 -1
- package/dist/resources/iam-user/actions/update-iam-user-tags.resource.action.d.ts +0 -18
- package/dist/resources/iam-user/actions/update-iam-user-tags.resource.action.js +0 -53
- package/dist/resources/iam-user/actions/update-iam-user-tags.resource.action.js.map +0 -1
- package/dist/resources/iam-user/actions/update-iam-user-with-s3-storage-policy.resource.action.d.ts +0 -20
- package/dist/resources/iam-user/actions/update-iam-user-with-s3-storage-policy.resource.action.js +0 -157
- package/dist/resources/iam-user/actions/update-iam-user-with-s3-storage-policy.resource.action.js.map +0 -1
- package/dist/resources/iam-user/actions/validate-iam-user.resource.action.d.ts +0 -17
- package/dist/resources/iam-user/actions/validate-iam-user.resource.action.js +0 -181
- package/dist/resources/iam-user/actions/validate-iam-user.resource.action.js.map +0 -1
- package/dist/resources/internet-gateway/actions/add-internet-gateway.resource.action.d.ts +0 -19
- package/dist/resources/internet-gateway/actions/add-internet-gateway.resource.action.js +0 -95
- package/dist/resources/internet-gateway/actions/add-internet-gateway.resource.action.js.map +0 -1
- package/dist/resources/internet-gateway/actions/delete-internet-gateway.resource.action.d.ts +0 -18
- package/dist/resources/internet-gateway/actions/delete-internet-gateway.resource.action.js +0 -80
- package/dist/resources/internet-gateway/actions/delete-internet-gateway.resource.action.js.map +0 -1
- package/dist/resources/internet-gateway/actions/update-internet-gateway-tags.resource.action.d.ts +0 -18
- package/dist/resources/internet-gateway/actions/update-internet-gateway-tags.resource.action.js +0 -52
- package/dist/resources/internet-gateway/actions/update-internet-gateway-tags.resource.action.js.map +0 -1
- package/dist/resources/internet-gateway/actions/validate-internet-gateway.resource.action.d.ts +0 -17
- package/dist/resources/internet-gateway/actions/validate-internet-gateway.resource.action.js +0 -88
- package/dist/resources/internet-gateway/actions/validate-internet-gateway.resource.action.js.map +0 -1
- package/dist/resources/nat-gateway/actions/add-nat-gateway.resource.action.d.ts +0 -20
- package/dist/resources/nat-gateway/actions/add-nat-gateway.resource.action.js +0 -112
- package/dist/resources/nat-gateway/actions/add-nat-gateway.resource.action.js.map +0 -1
- package/dist/resources/nat-gateway/actions/delete-nat-gateway.resource.action.d.ts +0 -18
- package/dist/resources/nat-gateway/actions/delete-nat-gateway.resource.action.js +0 -92
- package/dist/resources/nat-gateway/actions/delete-nat-gateway.resource.action.js.map +0 -1
- package/dist/resources/nat-gateway/actions/update-eip-tags.resource.action.d.ts +0 -18
- package/dist/resources/nat-gateway/actions/update-eip-tags.resource.action.js +0 -77
- package/dist/resources/nat-gateway/actions/update-eip-tags.resource.action.js.map +0 -1
- package/dist/resources/nat-gateway/actions/update-nat-gateway-tags.resource.action.d.ts +0 -18
- package/dist/resources/nat-gateway/actions/update-nat-gateway-tags.resource.action.js +0 -52
- package/dist/resources/nat-gateway/actions/update-nat-gateway-tags.resource.action.js.map +0 -1
- package/dist/resources/nat-gateway/actions/validate-nat-gateway.resource.action.d.ts +0 -17
- package/dist/resources/nat-gateway/actions/validate-nat-gateway.resource.action.js +0 -115
- package/dist/resources/nat-gateway/actions/validate-nat-gateway.resource.action.js.map +0 -1
- package/dist/resources/network-acl/actions/add-network-acl.resource.action.d.ts +0 -20
- package/dist/resources/network-acl/actions/add-network-acl.resource.action.js +0 -119
- package/dist/resources/network-acl/actions/add-network-acl.resource.action.js.map +0 -1
- package/dist/resources/network-acl/actions/delete-network-acl.resource.action.d.ts +0 -18
- package/dist/resources/network-acl/actions/delete-network-acl.resource.action.js +0 -69
- package/dist/resources/network-acl/actions/delete-network-acl.resource.action.js.map +0 -1
- package/dist/resources/network-acl/actions/update-network-acl-entries.resource.action.d.ts +0 -18
- package/dist/resources/network-acl/actions/update-network-acl-entries.resource.action.js +0 -143
- package/dist/resources/network-acl/actions/update-network-acl-entries.resource.action.js.map +0 -1
- package/dist/resources/network-acl/actions/update-network-acl-tags.resource.action.d.ts +0 -18
- package/dist/resources/network-acl/actions/update-network-acl-tags.resource.action.js +0 -52
- package/dist/resources/network-acl/actions/update-network-acl-tags.resource.action.js.map +0 -1
- package/dist/resources/network-acl/actions/validate-network-acl.resource.action.d.ts +0 -17
- package/dist/resources/network-acl/actions/validate-network-acl.resource.action.js +0 -126
- package/dist/resources/network-acl/actions/validate-network-acl.resource.action.js.map +0 -1
- package/dist/resources/route-table/actions/add-route-table.resource.action.d.ts +0 -20
- package/dist/resources/route-table/actions/add-route-table.resource.action.js +0 -105
- package/dist/resources/route-table/actions/add-route-table.resource.action.js.map +0 -1
- package/dist/resources/route-table/actions/delete-route-table.resource.action.d.ts +0 -18
- package/dist/resources/route-table/actions/delete-route-table.resource.action.js +0 -68
- package/dist/resources/route-table/actions/delete-route-table.resource.action.js.map +0 -1
- package/dist/resources/route-table/actions/update-nat-gateway-parent-in-route-table.resource.action.d.ts +0 -19
- package/dist/resources/route-table/actions/update-nat-gateway-parent-in-route-table.resource.action.js +0 -85
- package/dist/resources/route-table/actions/update-nat-gateway-parent-in-route-table.resource.action.js.map +0 -1
- package/dist/resources/route-table/actions/update-route-table-tags.resource.action.d.ts +0 -18
- package/dist/resources/route-table/actions/update-route-table-tags.resource.action.js +0 -52
- package/dist/resources/route-table/actions/update-route-table-tags.resource.action.js.map +0 -1
- package/dist/resources/route-table/actions/validate-route-table.resource.action.d.ts +0 -17
- package/dist/resources/route-table/actions/validate-route-table.resource.action.js +0 -124
- package/dist/resources/route-table/actions/validate-route-table.resource.action.js.map +0 -1
- package/dist/resources/s3-storage/actions/add-s3-storage.resource.action.d.ts +0 -20
- package/dist/resources/s3-storage/actions/add-s3-storage.resource.action.js +0 -73
- package/dist/resources/s3-storage/actions/add-s3-storage.resource.action.js.map +0 -1
- package/dist/resources/s3-storage/actions/delete-s3-storage.resource.action.d.ts +0 -18
- package/dist/resources/s3-storage/actions/delete-s3-storage.resource.action.js +0 -82
- package/dist/resources/s3-storage/actions/delete-s3-storage.resource.action.js.map +0 -1
- package/dist/resources/s3-storage/actions/update-parent-in-s3-storage.resource.action.d.ts +0 -16
- package/dist/resources/s3-storage/actions/update-parent-in-s3-storage.resource.action.js +0 -40
- package/dist/resources/s3-storage/actions/update-parent-in-s3-storage.resource.action.js.map +0 -1
- package/dist/resources/s3-storage/actions/update-permissions-in-s3-storage.resource.action.d.ts +0 -18
- package/dist/resources/s3-storage/actions/update-permissions-in-s3-storage.resource.action.js +0 -110
- package/dist/resources/s3-storage/actions/update-permissions-in-s3-storage.resource.action.js.map +0 -1
- package/dist/resources/s3-storage/actions/update-s3-storage-tags.resource.action.d.ts +0 -18
- package/dist/resources/s3-storage/actions/update-s3-storage-tags.resource.action.js +0 -52
- package/dist/resources/s3-storage/actions/update-s3-storage-tags.resource.action.js.map +0 -1
- package/dist/resources/s3-storage/actions/validate-s3-storage.resource.action.d.ts +0 -17
- package/dist/resources/s3-storage/actions/validate-s3-storage.resource.action.js +0 -181
- package/dist/resources/s3-storage/actions/validate-s3-storage.resource.action.js.map +0 -1
- package/dist/resources/s3-website/actions/add-s3-website.resource.action.d.ts +0 -20
- package/dist/resources/s3-website/actions/add-s3-website.resource.action.js +0 -114
- package/dist/resources/s3-website/actions/add-s3-website.resource.action.js.map +0 -1
- package/dist/resources/s3-website/actions/delete-s3-website.resource.action.d.ts +0 -18
- package/dist/resources/s3-website/actions/delete-s3-website.resource.action.js +0 -82
- package/dist/resources/s3-website/actions/delete-s3-website.resource.action.js.map +0 -1
- package/dist/resources/s3-website/actions/update-s3-website-tags.resource.action.d.ts +0 -18
- package/dist/resources/s3-website/actions/update-s3-website-tags.resource.action.js +0 -52
- package/dist/resources/s3-website/actions/update-s3-website-tags.resource.action.js.map +0 -1
- package/dist/resources/s3-website/actions/update-source-paths-in-s3-website.resource.action.d.ts +0 -18
- package/dist/resources/s3-website/actions/update-source-paths-in-s3-website.resource.action.js +0 -89
- package/dist/resources/s3-website/actions/update-source-paths-in-s3-website.resource.action.js.map +0 -1
- package/dist/resources/s3-website/actions/validate-s3-website.resource.action.d.ts +0 -17
- package/dist/resources/s3-website/actions/validate-s3-website.resource.action.js +0 -154
- package/dist/resources/s3-website/actions/validate-s3-website.resource.action.js.map +0 -1
- package/dist/resources/security-group/actions/add-security-group.resource.action.d.ts +0 -20
- package/dist/resources/security-group/actions/add-security-group.resource.action.js +0 -141
- package/dist/resources/security-group/actions/add-security-group.resource.action.js.map +0 -1
- package/dist/resources/security-group/actions/delete-security-group.resource.action.d.ts +0 -18
- package/dist/resources/security-group/actions/delete-security-group.resource.action.js +0 -73
- package/dist/resources/security-group/actions/delete-security-group.resource.action.js.map +0 -1
- package/dist/resources/security-group/actions/update-security-group-rules.resource.action.d.ts +0 -20
- package/dist/resources/security-group/actions/update-security-group-rules.resource.action.js +0 -139
- package/dist/resources/security-group/actions/update-security-group-rules.resource.action.js.map +0 -1
- package/dist/resources/security-group/actions/update-security-group-tags.resource.action.d.ts +0 -18
- package/dist/resources/security-group/actions/update-security-group-tags.resource.action.js +0 -52
- package/dist/resources/security-group/actions/update-security-group-tags.resource.action.js.map +0 -1
- package/dist/resources/security-group/actions/validate-security-group.resource.action.d.ts +0 -17
- package/dist/resources/security-group/actions/validate-security-group.resource.action.js +0 -132
- package/dist/resources/security-group/actions/validate-security-group.resource.action.js.map +0 -1
- package/dist/resources/subnet/actions/add-subnet.resource.action.d.ts +0 -20
- package/dist/resources/subnet/actions/add-subnet.resource.action.js +0 -89
- package/dist/resources/subnet/actions/add-subnet.resource.action.js.map +0 -1
- package/dist/resources/subnet/actions/delete-subnet.resource.action.d.ts +0 -18
- package/dist/resources/subnet/actions/delete-subnet.resource.action.js +0 -64
- package/dist/resources/subnet/actions/delete-subnet.resource.action.js.map +0 -1
- package/dist/resources/subnet/actions/update-subnet-tags.resource.action.d.ts +0 -18
- package/dist/resources/subnet/actions/update-subnet-tags.resource.action.js +0 -52
- package/dist/resources/subnet/actions/update-subnet-tags.resource.action.js.map +0 -1
- package/dist/resources/subnet/actions/validate-subnet.resource.action.d.ts +0 -17
- package/dist/resources/subnet/actions/validate-subnet.resource.action.js +0 -90
- package/dist/resources/subnet/actions/validate-subnet.resource.action.js.map +0 -1
- package/dist/resources/vpc/actions/add-vpc.resource.action.d.ts +0 -20
- package/dist/resources/vpc/actions/add-vpc.resource.action.js +0 -93
- package/dist/resources/vpc/actions/add-vpc.resource.action.js.map +0 -1
- package/dist/resources/vpc/actions/delete-vpc.resource.action.d.ts +0 -18
- package/dist/resources/vpc/actions/delete-vpc.resource.action.js +0 -64
- package/dist/resources/vpc/actions/delete-vpc.resource.action.js.map +0 -1
- package/dist/resources/vpc/actions/update-vpc-tags.resource.action.d.ts +0 -18
- package/dist/resources/vpc/actions/update-vpc-tags.resource.action.js +0 -52
- package/dist/resources/vpc/actions/update-vpc-tags.resource.action.js.map +0 -1
- package/dist/resources/vpc/actions/validate-vpc.resource.action.d.ts +0 -17
- package/dist/resources/vpc/actions/validate-vpc.resource.action.js +0 -100
- package/dist/resources/vpc/actions/validate-vpc.resource.action.js.map +0 -1
- package/dist/utilities/actions/generic-resource-tagging.action.d.ts +0 -14
- package/dist/utilities/actions/generic-resource-tagging.action.js +0 -34
- package/dist/utilities/actions/generic-resource-tagging.action.js.map +0 -1
- package/dist/utilities/process/process.utility.d.ts +0 -7
- package/dist/utilities/process/process.utility.js +0 -17
- package/dist/utilities/process/process.utility.js.map +0 -1
- package/dist/utilities/security-group/security-group.utility.d.ts +0 -7
- package/dist/utilities/security-group/security-group.utility.js +0 -13
- package/dist/utilities/security-group/security-group.utility.js.map +0 -1
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
import { GetPolicyCommand, GetPolicyVersionCommand, GetUserCommand, IAMClient, ListAttachedUserPoliciesCommand, } from '@aws-sdk/client-iam';
|
|
11
|
-
import { ANodeAction, Action, DiffAction, Factory, TransactionError, hasNodeName, } from '@quadnix/octo';
|
|
12
|
-
import { PolicyUtility } from '../../../utilities/policy/policy.utility.js';
|
|
13
|
-
import { IamUser } from '../iam-user.resource.js';
|
|
14
|
-
/**
|
|
15
|
-
* @internal
|
|
16
|
-
*/
|
|
17
|
-
let ValidateIamUserResourceAction = class ValidateIamUserResourceAction extends ANodeAction {
|
|
18
|
-
constructor() {
|
|
19
|
-
super();
|
|
20
|
-
}
|
|
21
|
-
filter(diff) {
|
|
22
|
-
return (diff.action === DiffAction.VALIDATE &&
|
|
23
|
-
diff.node instanceof IamUser &&
|
|
24
|
-
hasNodeName(diff.node, 'iam-user') &&
|
|
25
|
-
diff.field === 'resourceId');
|
|
26
|
-
}
|
|
27
|
-
async handle(diff) {
|
|
28
|
-
// Get properties.
|
|
29
|
-
const iamUser = diff.node;
|
|
30
|
-
const properties = iamUser.properties;
|
|
31
|
-
const response = iamUser.response;
|
|
32
|
-
// Get instances.
|
|
33
|
-
const iamClient = await this.container.get(IAMClient, {
|
|
34
|
-
args: [properties.awsAccountId],
|
|
35
|
-
metadata: { package: '@octo' },
|
|
36
|
-
});
|
|
37
|
-
// Check if IAM User exists.
|
|
38
|
-
let getUserResult;
|
|
39
|
-
try {
|
|
40
|
-
getUserResult = await iamClient.send(new GetUserCommand({
|
|
41
|
-
UserName: response.UserName,
|
|
42
|
-
}));
|
|
43
|
-
}
|
|
44
|
-
catch (error) {
|
|
45
|
-
if (error.name === 'NoSuchEntity') {
|
|
46
|
-
throw new TransactionError(`IAM User with name ${response.UserName} does not exist!`);
|
|
47
|
-
}
|
|
48
|
-
throw error;
|
|
49
|
-
}
|
|
50
|
-
const actualUser = getUserResult.User;
|
|
51
|
-
// Validate user name.
|
|
52
|
-
if (actualUser.UserName !== properties.username) {
|
|
53
|
-
throw new TransactionError(`IAM User name mismatch. Expected: ${properties.username}, Actual: ${actualUser.UserName || 'undefined'}`);
|
|
54
|
-
}
|
|
55
|
-
// Validate user ID.
|
|
56
|
-
if (actualUser.UserId !== response.UserId) {
|
|
57
|
-
throw new TransactionError(`IAM User ID mismatch. Expected: ${response.UserId}, Actual: ${actualUser.UserId || 'undefined'}`);
|
|
58
|
-
}
|
|
59
|
-
// Validate user ARN.
|
|
60
|
-
if (actualUser.Arn !== response.Arn) {
|
|
61
|
-
throw new TransactionError(`IAM User ARN mismatch. Expected: ${response.Arn}, Actual: ${actualUser.Arn || 'undefined'}`);
|
|
62
|
-
}
|
|
63
|
-
// Validate ARN format (account should match).
|
|
64
|
-
const expectedArnPrefix = `arn:aws:iam::${properties.awsAccountId}:user/`;
|
|
65
|
-
if (!response.Arn.startsWith(expectedArnPrefix)) {
|
|
66
|
-
throw new TransactionError(`IAM User ARN account mismatch. Expected prefix: ${expectedArnPrefix}, Actual: ${response.Arn}`);
|
|
67
|
-
}
|
|
68
|
-
// Validate attached policies.
|
|
69
|
-
const listAttachedPoliciesResult = await iamClient.send(new ListAttachedUserPoliciesCommand({
|
|
70
|
-
UserName: response.UserName,
|
|
71
|
-
}));
|
|
72
|
-
const attachedPolicies = listAttachedPoliciesResult.AttachedPolicies || [];
|
|
73
|
-
const expectedPolicyArns = new Set();
|
|
74
|
-
// Collect all expected policy ARNs from response.
|
|
75
|
-
if (response.policies) {
|
|
76
|
-
for (const policyArns of Object.values(response.policies)) {
|
|
77
|
-
for (const arn of policyArns) {
|
|
78
|
-
expectedPolicyArns.add(arn);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
// Validate policy count matches.
|
|
83
|
-
if (attachedPolicies.length !== expectedPolicyArns.size) {
|
|
84
|
-
throw new TransactionError(`IAM User attached policy count mismatch. Expected: ${expectedPolicyArns.size}, Actual: ${attachedPolicies.length}`);
|
|
85
|
-
}
|
|
86
|
-
// Validate each expected policy is attached.
|
|
87
|
-
for (const expectedArn of expectedPolicyArns) {
|
|
88
|
-
const attachedPolicy = attachedPolicies.find((p) => p.PolicyArn === expectedArn);
|
|
89
|
-
if (!attachedPolicy) {
|
|
90
|
-
throw new TransactionError(`IAM User missing attached policy: ${expectedArn}. Current policies: ${JSON.stringify(attachedPolicies.map((p) => p.PolicyArn))}`);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
// Validate S3 storage access policies in detail.
|
|
94
|
-
const s3StoragePolicies = properties.policies.filter((p) => p.policyType === 's3-storage-access-policy');
|
|
95
|
-
for (const s3Policy of s3StoragePolicies) {
|
|
96
|
-
const policyArns = response.policies?.[s3Policy.policyId];
|
|
97
|
-
if (!policyArns || policyArns.length === 0) {
|
|
98
|
-
throw new TransactionError(`IAM User response missing policy ARN for S3 storage policy: ${s3Policy.policyId}`);
|
|
99
|
-
}
|
|
100
|
-
const policyArn = policyArns[0];
|
|
101
|
-
// Get policy version.
|
|
102
|
-
const getPolicyResult = await iamClient.send(new GetPolicyCommand({
|
|
103
|
-
PolicyArn: policyArn,
|
|
104
|
-
}));
|
|
105
|
-
const policyVersion = getPolicyResult.Policy.DefaultVersionId;
|
|
106
|
-
// Get policy document.
|
|
107
|
-
const getPolicyVersionResult = await iamClient.send(new GetPolicyVersionCommand({
|
|
108
|
-
PolicyArn: policyArn,
|
|
109
|
-
VersionId: policyVersion,
|
|
110
|
-
}));
|
|
111
|
-
const policyDocument = JSON.parse(decodeURIComponent(getPolicyVersionResult.PolicyVersion.Document));
|
|
112
|
-
const policy = s3Policy.policy;
|
|
113
|
-
// Validate policy statements.
|
|
114
|
-
const expectedS3Statements = [];
|
|
115
|
-
if (policy.allowRead) {
|
|
116
|
-
expectedS3Statements.push({
|
|
117
|
-
Action: [
|
|
118
|
-
's3:GetObject',
|
|
119
|
-
's3:GetObjectAttributes',
|
|
120
|
-
's3:GetObjectTagging',
|
|
121
|
-
's3:GetObjectVersionAcl',
|
|
122
|
-
's3:GetObjectVersionAttributes',
|
|
123
|
-
's3:GetObjectVersionTagging',
|
|
124
|
-
's3:ListBucket',
|
|
125
|
-
],
|
|
126
|
-
Effect: 'Allow',
|
|
127
|
-
Resource: policy.remoteDirectoryPath === '' || policy.remoteDirectoryPath === '/'
|
|
128
|
-
? [`arn:aws:s3:::${policy.bucketName}`, `arn:aws:s3:::${policy.bucketName}/*`]
|
|
129
|
-
: [
|
|
130
|
-
`arn:aws:s3:::${policy.bucketName}/${policy.remoteDirectoryPath}`,
|
|
131
|
-
`arn:aws:s3:::${policy.bucketName}/${policy.remoteDirectoryPath}/*`,
|
|
132
|
-
],
|
|
133
|
-
Sid: PolicyUtility.getSafeSid(`Allow read from bucket ${policy.bucketName}`),
|
|
134
|
-
});
|
|
135
|
-
}
|
|
136
|
-
if (policy.allowWrite) {
|
|
137
|
-
expectedS3Statements.push({
|
|
138
|
-
Action: ['s3:PutObject', 's3:DeleteObjectVersion', 's3:DeleteObject'],
|
|
139
|
-
Effect: 'Allow',
|
|
140
|
-
Resource: policy.remoteDirectoryPath === '' || policy.remoteDirectoryPath === '/'
|
|
141
|
-
? [`arn:aws:s3:::${policy.bucketName}`, `arn:aws:s3:::${policy.bucketName}/*`]
|
|
142
|
-
: [`arn:aws:s3:::${policy.bucketName}/${policy.remoteDirectoryPath}/*`],
|
|
143
|
-
Sid: PolicyUtility.getSafeSid(`Allow write from bucket ${policy.bucketName}`),
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
if (policyDocument.Statement?.length !== expectedS3Statements.length) {
|
|
147
|
-
throw new TransactionError(`S3 storage policy ${s3Policy.policyId} statement count mismatch. Expected: ${expectedS3Statements.length}, Actual: ${policyDocument.Statement?.length || 0}`);
|
|
148
|
-
}
|
|
149
|
-
for (const expectedStatement of expectedS3Statements) {
|
|
150
|
-
const matchingStatement = policyDocument.Statement?.find((statement) => statement.Sid === expectedStatement.Sid &&
|
|
151
|
-
statement.Effect === expectedStatement.Effect &&
|
|
152
|
-
JSON.stringify(statement.Action) === JSON.stringify(expectedStatement.Action) &&
|
|
153
|
-
JSON.stringify(statement.Resource) === JSON.stringify(expectedStatement.Resource));
|
|
154
|
-
if (!matchingStatement) {
|
|
155
|
-
throw new TransactionError(`S3 storage policy ${s3Policy.policyId} missing statement with Sid: ${expectedStatement.Sid}`);
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
};
|
|
161
|
-
ValidateIamUserResourceAction = __decorate([
|
|
162
|
-
Action(IamUser),
|
|
163
|
-
__metadata("design:paramtypes", [])
|
|
164
|
-
], ValidateIamUserResourceAction);
|
|
165
|
-
export { ValidateIamUserResourceAction };
|
|
166
|
-
/**
|
|
167
|
-
* @internal
|
|
168
|
-
*/
|
|
169
|
-
let ValidateIamUserResourceActionFactory = class ValidateIamUserResourceActionFactory {
|
|
170
|
-
static async create() {
|
|
171
|
-
if (!this.instance) {
|
|
172
|
-
this.instance = new ValidateIamUserResourceAction();
|
|
173
|
-
}
|
|
174
|
-
return this.instance;
|
|
175
|
-
}
|
|
176
|
-
};
|
|
177
|
-
ValidateIamUserResourceActionFactory = __decorate([
|
|
178
|
-
Factory(ValidateIamUserResourceAction)
|
|
179
|
-
], ValidateIamUserResourceActionFactory);
|
|
180
|
-
export { ValidateIamUserResourceActionFactory };
|
|
181
|
-
//# sourceMappingURL=validate-iam-user.resource.action.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"validate-iam-user.resource.action.js","sourceRoot":"","sources":["../../../../src/resources/iam-user/actions/validate-iam-user.resource.action.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,gBAAgB,EAChB,uBAAuB,EACvB,cAAc,EAEd,SAAS,EACT,+BAA+B,GAChC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,WAAW,EACX,MAAM,EAEN,UAAU,EACV,OAAO,EAEP,gBAAgB,EAChB,WAAW,GACZ,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,aAAa,EAAE,MAAM,6CAA6C,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAGlD;;GAEG;AAEI,IAAM,6BAA6B,GAAnC,MAAM,6BAA8B,SAAQ,WAAW;IAC5D;QACE,KAAK,EAAE,CAAC;IACV,CAAC;IAED,MAAM,CAAC,IAAU;QACf,OAAO,CACL,IAAI,CAAC,MAAM,KAAK,UAAU,CAAC,QAAQ;YACnC,IAAI,CAAC,IAAI,YAAY,OAAO;YAC5B,WAAW,CAAC,IAAI,CAAC,IAAI,EAAE,UAAU,CAAC;YAClC,IAAI,CAAC,KAAK,KAAK,YAAY,CAC5B,CAAC;IACJ,CAA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QAAQ,gCAAgC,iBAAiB,CAAC,GAAG,EAAE,CAC9F,CAAC;gBACJ,CAAC;YACH,CAAC;QACH,CAAC;IACH,CAAC;CACF,CAAA;AAvMY,6BAA6B;IADzC,MAAM,CAAC,OAAO,CAAC;;GACH,6BAA6B,CAuMzC;;AAED;;GAEG;AAEI,IAAM,oCAAoC,GAA1C,MAAM,oCAAoC;IAG/C,MAAM,CAAC,KAAK,CAAC,MAAM;QACjB,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;YACnB,IAAI,CAAC,QAAQ,GAAG,IAAI,6BAA6B,EAAE,CAAC;QACtD,CAAC;QACD,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;CACF,CAAA;AATY,oCAAoC;IADhD,OAAO,CAAgC,6BAA6B,CAAC;GACzD,oCAAoC,CAShD"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ANodeAction, type Diff, type IResourceAction } from '@quadnix/octo';
|
|
2
|
-
import type { InternetGatewaySchema } from '../index.schema.js';
|
|
3
|
-
import { InternetGateway } from '../internet-gateway.resource.js';
|
|
4
|
-
/**
|
|
5
|
-
* @internal
|
|
6
|
-
*/
|
|
7
|
-
export declare class AddInternetGatewayResourceAction extends ANodeAction implements IResourceAction<InternetGateway> {
|
|
8
|
-
constructor();
|
|
9
|
-
filter(diff: Diff): boolean;
|
|
10
|
-
handle(diff: Diff<InternetGateway>): Promise<InternetGatewaySchema['response']>;
|
|
11
|
-
mock(diff: Diff<InternetGateway>, capture: Partial<InternetGatewaySchema['response']>): Promise<InternetGatewaySchema['response']>;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* @internal
|
|
15
|
-
*/
|
|
16
|
-
export declare class AddInternetGatewayResourceActionFactory {
|
|
17
|
-
private static instance;
|
|
18
|
-
static create(): Promise<AddInternetGatewayResourceAction>;
|
|
19
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
import { AttachInternetGatewayCommand, CreateInternetGatewayCommand, EC2Client, waitUntilInternetGatewayExists, } from '@aws-sdk/client-ec2';
|
|
11
|
-
import { ANodeAction, Action, DiffAction, Factory, hasNodeName } from '@quadnix/octo';
|
|
12
|
-
import { EC2ClientFactory } from '../../../factories/aws-client.factory.js';
|
|
13
|
-
import { InternetGateway } from '../internet-gateway.resource.js';
|
|
14
|
-
/**
|
|
15
|
-
* @internal
|
|
16
|
-
*/
|
|
17
|
-
let AddInternetGatewayResourceAction = class AddInternetGatewayResourceAction extends ANodeAction {
|
|
18
|
-
constructor() {
|
|
19
|
-
super();
|
|
20
|
-
}
|
|
21
|
-
filter(diff) {
|
|
22
|
-
return (diff.action === DiffAction.ADD &&
|
|
23
|
-
diff.node instanceof InternetGateway &&
|
|
24
|
-
hasNodeName(diff.node, 'internet-gateway') &&
|
|
25
|
-
diff.field === 'resourceId');
|
|
26
|
-
}
|
|
27
|
-
async handle(diff) {
|
|
28
|
-
// Get properties.
|
|
29
|
-
const internetGateway = diff.node;
|
|
30
|
-
const properties = internetGateway.properties;
|
|
31
|
-
const { awsAccountId, awsRegionId } = properties;
|
|
32
|
-
const tags = internetGateway.tags;
|
|
33
|
-
const internetGatewayVpc = internetGateway.parents[0];
|
|
34
|
-
// Get instances.
|
|
35
|
-
const ec2Client = await this.container.get(EC2Client, {
|
|
36
|
-
args: [awsAccountId, awsRegionId],
|
|
37
|
-
metadata: { package: '@octo' },
|
|
38
|
-
});
|
|
39
|
-
// Create Internet Gateway.
|
|
40
|
-
const internetGWOutput = await ec2Client.send(new CreateInternetGatewayCommand({
|
|
41
|
-
TagSpecifications: Object.keys(tags).length > 0
|
|
42
|
-
? [
|
|
43
|
-
{
|
|
44
|
-
ResourceType: 'internet-gateway',
|
|
45
|
-
Tags: Object.entries(tags).map(([key, value]) => ({ Key: key, Value: value })),
|
|
46
|
-
},
|
|
47
|
-
]
|
|
48
|
-
: undefined,
|
|
49
|
-
}));
|
|
50
|
-
const igwId = internetGWOutput.InternetGateway.InternetGatewayId;
|
|
51
|
-
// Wait for Internet Gateway to become available.
|
|
52
|
-
this.log('Waiting for Internet Gateway to become available.');
|
|
53
|
-
await waitUntilInternetGatewayExists({ client: ec2Client, maxWaitTime: 60 }, { InternetGatewayIds: [igwId] });
|
|
54
|
-
// Attach to VPC.
|
|
55
|
-
await ec2Client.send(new AttachInternetGatewayCommand({
|
|
56
|
-
InternetGatewayId: igwId,
|
|
57
|
-
VpcId: internetGatewayVpc.getSchemaInstanceInResourceAction().response.VpcId,
|
|
58
|
-
}));
|
|
59
|
-
return {
|
|
60
|
-
InternetGatewayArn: `arn:aws:ec2:${awsRegionId}:${awsAccountId}:internet-gateway/${igwId}`,
|
|
61
|
-
InternetGatewayId: igwId,
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
async mock(diff, capture) {
|
|
65
|
-
// Get properties.
|
|
66
|
-
const internetGateway = diff.node;
|
|
67
|
-
const properties = internetGateway.properties;
|
|
68
|
-
const { awsAccountId, awsRegionId } = properties;
|
|
69
|
-
return {
|
|
70
|
-
InternetGatewayArn: `arn:aws:ec2:${awsRegionId}:${awsAccountId}:internet-gateway/${capture.InternetGatewayId}`,
|
|
71
|
-
InternetGatewayId: capture.InternetGatewayId,
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
AddInternetGatewayResourceAction = __decorate([
|
|
76
|
-
Action(InternetGateway),
|
|
77
|
-
__metadata("design:paramtypes", [])
|
|
78
|
-
], AddInternetGatewayResourceAction);
|
|
79
|
-
export { AddInternetGatewayResourceAction };
|
|
80
|
-
/**
|
|
81
|
-
* @internal
|
|
82
|
-
*/
|
|
83
|
-
let AddInternetGatewayResourceActionFactory = class AddInternetGatewayResourceActionFactory {
|
|
84
|
-
static async create() {
|
|
85
|
-
if (!this.instance) {
|
|
86
|
-
this.instance = new AddInternetGatewayResourceAction();
|
|
87
|
-
}
|
|
88
|
-
return this.instance;
|
|
89
|
-
}
|
|
90
|
-
};
|
|
91
|
-
AddInternetGatewayResourceActionFactory = __decorate([
|
|
92
|
-
Factory(AddInternetGatewayResourceAction)
|
|
93
|
-
], AddInternetGatewayResourceActionFactory);
|
|
94
|
-
export { AddInternetGatewayResourceActionFactory };
|
|
95
|
-
//# sourceMappingURL=add-internet-gateway.resource.action.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"add-internet-gateway.resource.action.js","sourceRoot":"","sources":["../../../../src/resources/internet-gateway/actions/add-internet-gateway.resource.action.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,4BAA4B,EAC5B,4BAA4B,EAC5B,SAAS,EACT,8BAA8B,GAC/B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,WAAW,EAAE,MAAM,EAAa,UAAU,EAAE,OAAO,EAAwB,WAAW,EAAE,MAAM,eAAe,CAAC;AACvH,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAE5E,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAElE;;GAEG;AAEI,IAAM,gCAAgC,GAAtC,MAAM,gCAAiC,SAAQ,WAAW;IAC/D;QACE,KAAK,EAAE,CAAC;IACV,CAAC;IAED,MAA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AI,CAAC,QAAQ,GAAG,IAAI,gCAAgC,EAAE,CAAC;QACzD,CAAC;QACD,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;CACF,CAAA;AATY,uCAAuC;IADnD,OAAO,CAAmC,gCAAgC,CAAC;GAC/D,uCAAuC,CASnD"}
|
package/dist/resources/internet-gateway/actions/delete-internet-gateway.resource.action.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ANodeAction, type Diff, type IResourceAction } from '@quadnix/octo';
|
|
2
|
-
import { InternetGateway } from '../internet-gateway.resource.js';
|
|
3
|
-
/**
|
|
4
|
-
* @internal
|
|
5
|
-
*/
|
|
6
|
-
export declare class DeleteInternetGatewayResourceAction extends ANodeAction implements IResourceAction<InternetGateway> {
|
|
7
|
-
actionTimeoutInMs: number;
|
|
8
|
-
constructor();
|
|
9
|
-
filter(diff: Diff): boolean;
|
|
10
|
-
handle(diff: Diff<InternetGateway>): Promise<void>;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* @internal
|
|
14
|
-
*/
|
|
15
|
-
export declare class DeleteInternetGatewayResourceActionFactory {
|
|
16
|
-
private static instance;
|
|
17
|
-
static create(): Promise<DeleteInternetGatewayResourceAction>;
|
|
18
|
-
}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
import { DeleteInternetGatewayCommand, DetachInternetGatewayCommand, EC2Client } from '@aws-sdk/client-ec2';
|
|
11
|
-
import { ANodeAction, Action, DiffAction, Factory, hasNodeName } from '@quadnix/octo';
|
|
12
|
-
import { EC2ClientFactory } from '../../../factories/aws-client.factory.js';
|
|
13
|
-
import { RetryUtility } from '../../../utilities/retry/retry.utility.js';
|
|
14
|
-
import { InternetGateway } from '../internet-gateway.resource.js';
|
|
15
|
-
/**
|
|
16
|
-
* @internal
|
|
17
|
-
*/
|
|
18
|
-
let DeleteInternetGatewayResourceAction = class DeleteInternetGatewayResourceAction extends ANodeAction {
|
|
19
|
-
constructor() {
|
|
20
|
-
super();
|
|
21
|
-
this.actionTimeoutInMs = 120000; // 2 minutes.
|
|
22
|
-
}
|
|
23
|
-
filter(diff) {
|
|
24
|
-
return (diff.action === DiffAction.DELETE &&
|
|
25
|
-
diff.node instanceof InternetGateway &&
|
|
26
|
-
hasNodeName(diff.node, 'internet-gateway') &&
|
|
27
|
-
diff.field === 'resourceId');
|
|
28
|
-
}
|
|
29
|
-
async handle(diff) {
|
|
30
|
-
// Get properties.
|
|
31
|
-
const internetGateway = diff.node;
|
|
32
|
-
const properties = internetGateway.properties;
|
|
33
|
-
const response = internetGateway.response;
|
|
34
|
-
const internetGatewayVpc = internetGateway.parents[0];
|
|
35
|
-
// Get instances.
|
|
36
|
-
const ec2Client = await this.container.get(EC2Client, {
|
|
37
|
-
args: [properties.awsAccountId, properties.awsRegionId],
|
|
38
|
-
metadata: { package: '@octo' },
|
|
39
|
-
});
|
|
40
|
-
// Detach from VPC.
|
|
41
|
-
await RetryUtility.retryPromise(async () => {
|
|
42
|
-
this.log('Attempting to detach Internet Gateway from VPC.');
|
|
43
|
-
await ec2Client.send(new DetachInternetGatewayCommand({
|
|
44
|
-
InternetGatewayId: response.InternetGatewayId,
|
|
45
|
-
VpcId: internetGatewayVpc.getSchemaInstanceInResourceAction().response.VpcId,
|
|
46
|
-
}));
|
|
47
|
-
return true;
|
|
48
|
-
}, {
|
|
49
|
-
initialDelayInMs: 0,
|
|
50
|
-
maxRetries: 10,
|
|
51
|
-
retryDelayInMs: 5000,
|
|
52
|
-
throwOnError: false,
|
|
53
|
-
});
|
|
54
|
-
// Delete Internet Gateway.
|
|
55
|
-
await ec2Client.send(new DeleteInternetGatewayCommand({
|
|
56
|
-
InternetGatewayId: response.InternetGatewayId,
|
|
57
|
-
}));
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
DeleteInternetGatewayResourceAction = __decorate([
|
|
61
|
-
Action(InternetGateway),
|
|
62
|
-
__metadata("design:paramtypes", [])
|
|
63
|
-
], DeleteInternetGatewayResourceAction);
|
|
64
|
-
export { DeleteInternetGatewayResourceAction };
|
|
65
|
-
/**
|
|
66
|
-
* @internal
|
|
67
|
-
*/
|
|
68
|
-
let DeleteInternetGatewayResourceActionFactory = class DeleteInternetGatewayResourceActionFactory {
|
|
69
|
-
static async create() {
|
|
70
|
-
if (!this.instance) {
|
|
71
|
-
this.instance = new DeleteInternetGatewayResourceAction();
|
|
72
|
-
}
|
|
73
|
-
return this.instance;
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
DeleteInternetGatewayResourceActionFactory = __decorate([
|
|
77
|
-
Factory(DeleteInternetGatewayResourceAction)
|
|
78
|
-
], DeleteInternetGatewayResourceActionFactory);
|
|
79
|
-
export { DeleteInternetGatewayResourceActionFactory };
|
|
80
|
-
//# sourceMappingURL=delete-internet-gateway.resource.action.js.map
|
package/dist/resources/internet-gateway/actions/delete-internet-gateway.resource.action.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"delete-internet-gateway.resource.action.js","sourceRoot":"","sources":["../../../../src/resources/internet-gateway/actions/delete-internet-gateway.resource.action.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,4BAA4B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AAY,CAAC,YAAY,CAC7B,KAAK,IAAsB,EAAE;YAC3B,IAAI,CAAC,GAAG,CAAC,iDAAiD,CAAC,CAAC;YAE5D,MAAM,SAAS,CAAC,IAAI,CAClB,IAAI,4BAA4B,CAAC;gBAC/B,iBAAiB,EAAE,QAAQ,CAAC,iBAAiB;gBAC7C,KAAK,EAAE,kBAAkB,CAAC,iCAAiC,EAAE,CAAC,QAAQ,CAAC,KAAK;aAC7E,CAAC,CACH,CAAC;YACF,OAAO,IAAI,CAAC;QACd,CAAC,EACD;YACE,gBAAgB,EAAE,CAAC;YACnB,UAAU,EAAE,EAAE;YACd,cAAc,EAAE,IAAI;YACpB,YAAY,EAAE,KAAK;SACpB,CACF,CAAC;QAEF,2BAA2B;QAC3B,MAAM,SAAS,CAAC,IAAI,CAClB,IAAI,4BAA4B,CAAC;YAC/B,iBAAiB,EAAE,QAAQ,CAAC,iBAAiB;SAC9C,CAAC,CACH,CAAC;IACJ,CAAC;CACF,CAAA;AAzDY,mCAAmC;IAD/C,MAAM,CAAC,eAAe,CAAC;;GACX,mCAAmC,CAyD/C;;AAED;;GAEG;AAEI,IAAM,0CAA0C,GAAhD,MAAM,0CAA0C;IAGrD,MAAM,CAAC,KAAK,CAAC,MAAM;QACjB,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;YACnB,IAAI,CAAC,QAAQ,GAAG,IAAI,mCAAmC,EAAE,CAAC;QAC5D,CAAC;QACD,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;CACF,CAAA;AATY,0CAA0C;IADtD,OAAO,CAAsC,mCAAmC,CAAC;GACrE,0CAA0C,CAStD"}
|
package/dist/resources/internet-gateway/actions/update-internet-gateway-tags.resource.action.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Container, type Diff, type DiffValueTypeTagUpdate, type IResourceAction } from '@quadnix/octo';
|
|
2
|
-
import { GenericResourceTaggingAction } from '../../../utilities/actions/generic-resource-tagging.action.js';
|
|
3
|
-
import { InternetGateway } from '../internet-gateway.resource.js';
|
|
4
|
-
/**
|
|
5
|
-
* @internal
|
|
6
|
-
*/
|
|
7
|
-
export declare class UpdateInternetGatewayTagsResourceAction extends GenericResourceTaggingAction implements IResourceAction<InternetGateway> {
|
|
8
|
-
constructor(container: Container);
|
|
9
|
-
filter(diff: Diff): boolean;
|
|
10
|
-
handle(diff: Diff<InternetGateway, DiffValueTypeTagUpdate>): Promise<void>;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* @internal
|
|
14
|
-
*/
|
|
15
|
-
export declare class UpdateInternetGatewayTagsResourceActionFactory {
|
|
16
|
-
private static instance;
|
|
17
|
-
static create(): Promise<UpdateInternetGatewayTagsResourceAction>;
|
|
18
|
-
}
|
package/dist/resources/internet-gateway/actions/update-internet-gateway-tags.resource.action.js
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
import { Action, Container, Factory, } from '@quadnix/octo';
|
|
11
|
-
import { GenericResourceTaggingAction } from '../../../utilities/actions/generic-resource-tagging.action.js';
|
|
12
|
-
import { InternetGateway } from '../internet-gateway.resource.js';
|
|
13
|
-
/**
|
|
14
|
-
* @internal
|
|
15
|
-
*/
|
|
16
|
-
let UpdateInternetGatewayTagsResourceAction = class UpdateInternetGatewayTagsResourceAction extends GenericResourceTaggingAction {
|
|
17
|
-
constructor(container) {
|
|
18
|
-
super(container);
|
|
19
|
-
}
|
|
20
|
-
filter(diff) {
|
|
21
|
-
return super.filter(diff);
|
|
22
|
-
}
|
|
23
|
-
async handle(diff) {
|
|
24
|
-
// Get properties.
|
|
25
|
-
const igw = diff.node;
|
|
26
|
-
const properties = igw.properties;
|
|
27
|
-
const response = igw.response;
|
|
28
|
-
await super.handle(diff, { ...properties, resourceArn: response.InternetGatewayArn });
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
UpdateInternetGatewayTagsResourceAction = __decorate([
|
|
32
|
-
Action(InternetGateway),
|
|
33
|
-
__metadata("design:paramtypes", [Container])
|
|
34
|
-
], UpdateInternetGatewayTagsResourceAction);
|
|
35
|
-
export { UpdateInternetGatewayTagsResourceAction };
|
|
36
|
-
/**
|
|
37
|
-
* @internal
|
|
38
|
-
*/
|
|
39
|
-
let UpdateInternetGatewayTagsResourceActionFactory = class UpdateInternetGatewayTagsResourceActionFactory {
|
|
40
|
-
static async create() {
|
|
41
|
-
if (!this.instance) {
|
|
42
|
-
const container = Container.getInstance();
|
|
43
|
-
this.instance = new UpdateInternetGatewayTagsResourceAction(container);
|
|
44
|
-
}
|
|
45
|
-
return this.instance;
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
UpdateInternetGatewayTagsResourceActionFactory = __decorate([
|
|
49
|
-
Factory(UpdateInternetGatewayTagsResourceAction)
|
|
50
|
-
], UpdateInternetGatewayTagsResourceActionFactory);
|
|
51
|
-
export { UpdateInternetGatewayTagsResourceActionFactory };
|
|
52
|
-
//# sourceMappingURL=update-internet-gateway-tags.resource.action.js.map
|
package/dist/resources/internet-gateway/actions/update-internet-gateway-tags.resource.action.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update-internet-gateway-tags.resource.action.js","s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;IACvB,CAAC;CACF,CAAA;AAVY,8CAA8C;IAD1D,OAAO,CAA0C,uCAAuC,CAAC;GAC7E,8CAA8C,CAU1D"}
|
package/dist/resources/internet-gateway/actions/validate-internet-gateway.resource.action.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ANodeAction, type Diff, type IResourceAction } from '@quadnix/octo';
|
|
2
|
-
import { InternetGateway } from '../internet-gateway.resource.js';
|
|
3
|
-
/**
|
|
4
|
-
* @internal
|
|
5
|
-
*/
|
|
6
|
-
export declare class ValidateInternetGatewayResourceAction extends ANodeAction implements IResourceAction<InternetGateway> {
|
|
7
|
-
constructor();
|
|
8
|
-
filter(diff: Diff): boolean;
|
|
9
|
-
handle(diff: Diff<InternetGateway>): Promise<void>;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* @internal
|
|
13
|
-
*/
|
|
14
|
-
export declare class ValidateInternetGatewayResourceActionFactory {
|
|
15
|
-
private static instance;
|
|
16
|
-
static create(): Promise<ValidateInternetGatewayResourceAction>;
|
|
17
|
-
}
|
package/dist/resources/internet-gateway/actions/validate-internet-gateway.resource.action.js
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
import { DescribeInternetGatewaysCommand, EC2Client } from '@aws-sdk/client-ec2';
|
|
11
|
-
import { ANodeAction, Action, DiffAction, Factory, TransactionError, hasNodeName, } from '@quadnix/octo';
|
|
12
|
-
import { EC2ClientFactory } from '../../../factories/aws-client.factory.js';
|
|
13
|
-
import { InternetGateway } from '../internet-gateway.resource.js';
|
|
14
|
-
/**
|
|
15
|
-
* @internal
|
|
16
|
-
*/
|
|
17
|
-
let ValidateInternetGatewayResourceAction = class ValidateInternetGatewayResourceAction extends ANodeAction {
|
|
18
|
-
constructor() {
|
|
19
|
-
super();
|
|
20
|
-
}
|
|
21
|
-
filter(diff) {
|
|
22
|
-
return (diff.action === DiffAction.VALIDATE &&
|
|
23
|
-
diff.node instanceof InternetGateway &&
|
|
24
|
-
hasNodeName(diff.node, 'internet-gateway') &&
|
|
25
|
-
diff.field === 'resourceId');
|
|
26
|
-
}
|
|
27
|
-
async handle(diff) {
|
|
28
|
-
// Get properties.
|
|
29
|
-
const internetGateway = diff.node;
|
|
30
|
-
const properties = internetGateway.properties;
|
|
31
|
-
const response = internetGateway.response;
|
|
32
|
-
const internetGatewayVpc = internetGateway.parents[0];
|
|
33
|
-
// Get instances.
|
|
34
|
-
const ec2Client = await this.container.get(EC2Client, {
|
|
35
|
-
args: [properties.awsAccountId, properties.awsRegionId],
|
|
36
|
-
metadata: { package: '@octo' },
|
|
37
|
-
});
|
|
38
|
-
// Check if Internet Gateway exists.
|
|
39
|
-
const describeInternetGatewaysResult = await ec2Client.send(new DescribeInternetGatewaysCommand({
|
|
40
|
-
InternetGatewayIds: [response.InternetGatewayId],
|
|
41
|
-
}));
|
|
42
|
-
if (!describeInternetGatewaysResult.InternetGateways ||
|
|
43
|
-
describeInternetGatewaysResult.InternetGateways.length === 0) {
|
|
44
|
-
throw new TransactionError(`Internet Gateway with ID ${response.InternetGatewayId} does not exist!`);
|
|
45
|
-
}
|
|
46
|
-
// Validate Internet Gateway VPC attachment (parent).
|
|
47
|
-
const actualInternetGateway = describeInternetGatewaysResult.InternetGateways[0];
|
|
48
|
-
const expectedVpcId = internetGatewayVpc.getSchemaInstanceInResourceAction().response.VpcId;
|
|
49
|
-
const attachments = actualInternetGateway.Attachments || [];
|
|
50
|
-
const vpcAttachment = attachments.find((attachment) => attachment.VpcId === expectedVpcId);
|
|
51
|
-
if (!vpcAttachment) {
|
|
52
|
-
throw new TransactionError(`Internet Gateway is not attached to VPC ${expectedVpcId}. Current attachments: ${JSON.stringify(attachments.map((a) => a.VpcId))}`);
|
|
53
|
-
}
|
|
54
|
-
if (vpcAttachment.State !== 'available') {
|
|
55
|
-
throw new TransactionError(`Internet Gateway attachment to VPC ${expectedVpcId} is not in available state. Current state: ${vpcAttachment.State}`);
|
|
56
|
-
}
|
|
57
|
-
// Validate Internet Gateway owner (AWS account).
|
|
58
|
-
if (actualInternetGateway.OwnerId !== properties.awsAccountId) {
|
|
59
|
-
throw new TransactionError(`Internet Gateway account ID mismatch. Expected: ${properties.awsAccountId}, Actual: ${actualInternetGateway.OwnerId || 'undefined'}`);
|
|
60
|
-
}
|
|
61
|
-
// Validate Internet Gateway ARN format (region should match).
|
|
62
|
-
const expectedArnPrefix = `arn:aws:ec2:${properties.awsRegionId}:${properties.awsAccountId}:internet-gateway/`;
|
|
63
|
-
if (!response.InternetGatewayArn.startsWith(expectedArnPrefix)) {
|
|
64
|
-
throw new TransactionError(`Internet Gateway ARN region/account mismatch. Expected prefix: ${expectedArnPrefix}, Actual: ${response.InternetGatewayArn}`);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
ValidateInternetGatewayResourceAction = __decorate([
|
|
69
|
-
Action(InternetGateway),
|
|
70
|
-
__metadata("design:paramtypes", [])
|
|
71
|
-
], ValidateInternetGatewayResourceAction);
|
|
72
|
-
export { ValidateInternetGatewayResourceAction };
|
|
73
|
-
/**
|
|
74
|
-
* @internal
|
|
75
|
-
*/
|
|
76
|
-
let ValidateInternetGatewayResourceActionFactory = class ValidateInternetGatewayResourceActionFactory {
|
|
77
|
-
static async create() {
|
|
78
|
-
if (!this.instance) {
|
|
79
|
-
this.instance = new ValidateInternetGatewayResourceAction();
|
|
80
|
-
}
|
|
81
|
-
return this.instance;
|
|
82
|
-
}
|
|
83
|
-
};
|
|
84
|
-
ValidateInternetGatewayResourceActionFactory = __decorate([
|
|
85
|
-
Factory(ValidateInternetGatewayResourceAction)
|
|
86
|
-
], ValidateInternetGatewayResourceActionFactory);
|
|
87
|
-
export { ValidateInternetGatewayResourceActionFactory };
|
|
88
|
-
//# sourceMappingURL=validate-internet-gateway.resource.action.js.map
|
package/dist/resources/internet-gateway/actions/validate-internet-gateway.resource.action.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"validate-internet-gateway.resource.action.js","sourceRoot":"","sources":["../../../../src/resources/internet-gateway/actions/validate-internet-gateway.resource.action.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,+BAA+B,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACjF,OAAO,EACL,WAAW,EACX,MAAM,EAEN,UAAU,EACV,OAAO,EAEP,gBAAgB,EAChB,WAAW,GACZ,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAC5E,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAElE;;GAEG;AAEI,IAAM,qCAAqC,GAA3C,MAAM,qCAAsC,SAAQ,WAAW;IACpE;QACE,KAAK,EAAE,CAAC;IACV,CAAC;IAED,MAAM,CAAC,IAAU;QACf,OAAO,CACL,IAAI,CAAC,MAAM,KAAK,UAAU,CAAC,QAAQ;YACnC,IAAI,CAAC,IAAI,YAAY,eAAe;YACpC,WAAW,CAAC,IAAI,CAAC,IAAI,EAAE,kBAAkB,CAAC;YAC1C,IAAI,CAAC,KAAK,KAAK,YAAY,CAC5B,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,MAAM,CAA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4CAA4C;IADxD,OAAO,CAAwC,qCAAqC,CAAC;GACzE,4CAA4C,CASxD"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ANodeAction, type Diff, type IResourceAction } from '@quadnix/octo';
|
|
2
|
-
import type { NatGatewaySchema } from '../index.schema.js';
|
|
3
|
-
import { NatGateway } from '../nat-gateway.resource.js';
|
|
4
|
-
/**
|
|
5
|
-
* @internal
|
|
6
|
-
*/
|
|
7
|
-
export declare class AddNatGatewayResourceAction extends ANodeAction implements IResourceAction<NatGateway> {
|
|
8
|
-
actionTimeoutInMs: number;
|
|
9
|
-
constructor();
|
|
10
|
-
filter(diff: Diff): boolean;
|
|
11
|
-
handle(diff: Diff<NatGateway>): Promise<NatGatewaySchema['response']>;
|
|
12
|
-
mock(diff: Diff<NatGateway>, capture: Partial<NatGatewaySchema['response']>): Promise<NatGatewaySchema['response']>;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* @internal
|
|
16
|
-
*/
|
|
17
|
-
export declare class AddNatGatewayResourceActionFactory {
|
|
18
|
-
private static instance;
|
|
19
|
-
static create(): Promise<AddNatGatewayResourceAction>;
|
|
20
|
-
}
|