diff --git a/build.sh b/build.sh deleted file mode 100755 index 249af03..0000000 --- a/build.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh - -cp $(which node) dist/bpsets -node script/build.js -node --experimental-sea-config sea-config.json -pnpx postject dist/bpsets NODE_SEA_BLOB dist/sea-prep.blob --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2 --overwrite diff --git a/package.json b/package.json index 5c86b59..2804de4 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,11 @@ { "name": "bpsets", "version": "0.1.0", - "main": "build/main.js", + "main": "dist/main.js", "scripts": { - "build": "./build.sh", - "start": "./build.sh && ./dist/bpsets" + "build": "tsc", + "start": "node .", + "dev": "nodemon -e ts --exec \"tsc && node . || exit 1\"" }, "author": "Minhyeok Park", "license": "MIT", @@ -45,7 +46,7 @@ "@types/express": "^5.0.0", "@types/node": "^22.10.2", "@types/sha.js": "^2.4.4", - "esbuild": "^0.24.2", + "nodemon": "^3.1.9", "typescript": "^5.7.2" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 994f0bf..82a89b0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -111,9 +111,9 @@ importers: '@types/sha.js': specifier: ^2.4.4 version: 2.4.4 - esbuild: - specifier: ^0.24.2 - version: 0.24.2 + nodemon: + specifier: ^3.1.9 + version: 3.1.9 typescript: specifier: ^5.7.2 version: 5.7.2 @@ -411,156 +411,6 @@ packages: resolution: {integrity: sha512-2GPCwlNxeHspoK/Mc8nbk9cBOkSpp3j2SJUQmFnyQK6V/pR6II2oPRyZkMomug1Rc10hqlBHByMecq4zhV2uUw==} engines: {node: '>=16.0.0'} - '@esbuild/aix-ppc64@0.24.2': - resolution: {integrity: sha512-thpVCb/rhxE/BnMLQ7GReQLLN8q9qbHmI55F4489/ByVg2aQaQ6kbcLb6FHkocZzQhxc4gx0sCk0tJkKBFzDhA==} - engines: {node: '>=18'} - cpu: [ppc64] - os: [aix] - - '@esbuild/android-arm64@0.24.2': - resolution: {integrity: sha512-cNLgeqCqV8WxfcTIOeL4OAtSmL8JjcN6m09XIgro1Wi7cF4t/THaWEa7eL5CMoMBdjoHOTh/vwTO/o2TRXIyzg==} - engines: {node: '>=18'} - cpu: [arm64] - os: [android] - - '@esbuild/android-arm@0.24.2': - resolution: {integrity: sha512-tmwl4hJkCfNHwFB3nBa8z1Uy3ypZpxqxfTQOcHX+xRByyYgunVbZ9MzUUfb0RxaHIMnbHagwAxuTL+tnNM+1/Q==} - engines: {node: '>=18'} - cpu: [arm] - os: [android] - - '@esbuild/android-x64@0.24.2': - resolution: {integrity: sha512-B6Q0YQDqMx9D7rvIcsXfmJfvUYLoP722bgfBlO5cGvNVb5V/+Y7nhBE3mHV9OpxBf4eAS2S68KZztiPaWq4XYw==} - engines: {node: '>=18'} - cpu: [x64] - os: [android] - - '@esbuild/darwin-arm64@0.24.2': - resolution: {integrity: sha512-kj3AnYWc+CekmZnS5IPu9D+HWtUI49hbnyqk0FLEJDbzCIQt7hg7ucF1SQAilhtYpIujfaHr6O0UHlzzSPdOeA==} - engines: {node: '>=18'} - cpu: [arm64] - os: [darwin] - - '@esbuild/darwin-x64@0.24.2': - resolution: {integrity: sha512-WeSrmwwHaPkNR5H3yYfowhZcbriGqooyu3zI/3GGpF8AyUdsrrP0X6KumITGA9WOyiJavnGZUwPGvxvwfWPHIA==} - engines: {node: '>=18'} - cpu: [x64] - os: [darwin] - - '@esbuild/freebsd-arm64@0.24.2': - resolution: {integrity: sha512-UN8HXjtJ0k/Mj6a9+5u6+2eZ2ERD7Edt1Q9IZiB5UZAIdPnVKDoG7mdTVGhHJIeEml60JteamR3qhsr1r8gXvg==} - engines: {node: '>=18'} - cpu: [arm64] - os: [freebsd] - - '@esbuild/freebsd-x64@0.24.2': - resolution: {integrity: sha512-TvW7wE/89PYW+IevEJXZ5sF6gJRDY/14hyIGFXdIucxCsbRmLUcjseQu1SyTko+2idmCw94TgyaEZi9HUSOe3Q==} - engines: {node: '>=18'} - cpu: [x64] - os: [freebsd] - - '@esbuild/linux-arm64@0.24.2': - resolution: {integrity: sha512-7HnAD6074BW43YvvUmE/35Id9/NB7BeX5EoNkK9obndmZBUk8xmJJeU7DwmUeN7tkysslb2eSl6CTrYz6oEMQg==} - engines: {node: '>=18'} - cpu: [arm64] - os: [linux] - - '@esbuild/linux-arm@0.24.2': - resolution: {integrity: sha512-n0WRM/gWIdU29J57hJyUdIsk0WarGd6To0s+Y+LwvlC55wt+GT/OgkwoXCXvIue1i1sSNWblHEig00GBWiJgfA==} - engines: {node: '>=18'} - cpu: [arm] - os: [linux] - - '@esbuild/linux-ia32@0.24.2': - resolution: {integrity: sha512-sfv0tGPQhcZOgTKO3oBE9xpHuUqguHvSo4jl+wjnKwFpapx+vUDcawbwPNuBIAYdRAvIDBfZVvXprIj3HA+Ugw==} - engines: {node: '>=18'} - cpu: [ia32] - os: [linux] - - '@esbuild/linux-loong64@0.24.2': - resolution: {integrity: sha512-CN9AZr8kEndGooS35ntToZLTQLHEjtVB5n7dl8ZcTZMonJ7CCfStrYhrzF97eAecqVbVJ7APOEe18RPI4KLhwQ==} - engines: {node: '>=18'} - cpu: [loong64] - os: [linux] - - '@esbuild/linux-mips64el@0.24.2': - resolution: {integrity: sha512-iMkk7qr/wl3exJATwkISxI7kTcmHKE+BlymIAbHO8xanq/TjHaaVThFF6ipWzPHryoFsesNQJPE/3wFJw4+huw==} - engines: {node: '>=18'} - cpu: [mips64el] - os: [linux] - - '@esbuild/linux-ppc64@0.24.2': - resolution: {integrity: sha512-shsVrgCZ57Vr2L8mm39kO5PPIb+843FStGt7sGGoqiiWYconSxwTiuswC1VJZLCjNiMLAMh34jg4VSEQb+iEbw==} - engines: {node: '>=18'} - cpu: [ppc64] - os: [linux] - - '@esbuild/linux-riscv64@0.24.2': - resolution: {integrity: sha512-4eSFWnU9Hhd68fW16GD0TINewo1L6dRrB+oLNNbYyMUAeOD2yCK5KXGK1GH4qD/kT+bTEXjsyTCiJGHPZ3eM9Q==} - engines: {node: '>=18'} - cpu: [riscv64] - os: [linux] - - '@esbuild/linux-s390x@0.24.2': - resolution: {integrity: sha512-S0Bh0A53b0YHL2XEXC20bHLuGMOhFDO6GN4b3YjRLK//Ep3ql3erpNcPlEFed93hsQAjAQDNsvcK+hV90FubSw==} - engines: {node: '>=18'} - cpu: [s390x] - os: [linux] - - '@esbuild/linux-x64@0.24.2': - resolution: {integrity: sha512-8Qi4nQcCTbLnK9WoMjdC9NiTG6/E38RNICU6sUNqK0QFxCYgoARqVqxdFmWkdonVsvGqWhmm7MO0jyTqLqwj0Q==} - engines: {node: '>=18'} - cpu: [x64] - os: [linux] - - '@esbuild/netbsd-arm64@0.24.2': - resolution: {integrity: sha512-wuLK/VztRRpMt9zyHSazyCVdCXlpHkKm34WUyinD2lzK07FAHTq0KQvZZlXikNWkDGoT6x3TD51jKQ7gMVpopw==} - engines: {node: '>=18'} - cpu: [arm64] - os: [netbsd] - - '@esbuild/netbsd-x64@0.24.2': - resolution: {integrity: sha512-VefFaQUc4FMmJuAxmIHgUmfNiLXY438XrL4GDNV1Y1H/RW3qow68xTwjZKfj/+Plp9NANmzbH5R40Meudu8mmw==} - engines: {node: '>=18'} - cpu: [x64] - os: [netbsd] - - '@esbuild/openbsd-arm64@0.24.2': - resolution: {integrity: sha512-YQbi46SBct6iKnszhSvdluqDmxCJA+Pu280Av9WICNwQmMxV7nLRHZfjQzwbPs3jeWnuAhE9Jy0NrnJ12Oz+0A==} - engines: {node: '>=18'} - cpu: [arm64] - os: [openbsd] - - '@esbuild/openbsd-x64@0.24.2': - resolution: {integrity: sha512-+iDS6zpNM6EnJyWv0bMGLWSWeXGN/HTaF/LXHXHwejGsVi+ooqDfMCCTerNFxEkM3wYVcExkeGXNqshc9iMaOA==} - engines: {node: '>=18'} - cpu: [x64] - os: [openbsd] - - '@esbuild/sunos-x64@0.24.2': - resolution: {integrity: sha512-hTdsW27jcktEvpwNHJU4ZwWFGkz2zRJUz8pvddmXPtXDzVKTTINmlmga3ZzwcuMpUvLw7JkLy9QLKyGpD2Yxig==} - engines: {node: '>=18'} - cpu: [x64] - os: [sunos] - - '@esbuild/win32-arm64@0.24.2': - resolution: {integrity: sha512-LihEQ2BBKVFLOC9ZItT9iFprsE9tqjDjnbulhHoFxYQtQfai7qfluVODIYxt1PgdoyQkz23+01rzwNwYfutxUQ==} - engines: {node: '>=18'} - cpu: [arm64] - os: [win32] - - '@esbuild/win32-ia32@0.24.2': - resolution: {integrity: sha512-q+iGUwfs8tncmFC9pcnD5IvRHAzmbwQ3GPS5/ceCyHdjXubwQWI12MKWSNSMYLJMq23/IUCvJMS76PDqXe1fxA==} - engines: {node: '>=18'} - cpu: [ia32] - os: [win32] - - '@esbuild/win32-x64@0.24.2': - resolution: {integrity: sha512-7VTgWzgMGvup6aSqDPLiW5zHaxYJGTO4OokMjIlrCtf+VpEL+cXKtCvg723iguPYI5oaUNdS+/V7OU2gvXVWEg==} - engines: {node: '>=18'} - cpu: [x64] - os: [win32] - '@smithy/abort-controller@3.1.9': resolution: {integrity: sha512-yiW0WI30zj8ZKoSYNx90no7ugVn3khlyH/z5W8qtKBtVE6awRALbhSG+2SAHA1r6bO/6M9utxYKVZ3PCJ1rWxw==} engines: {node: '>=16.0.0'} @@ -827,9 +677,20 @@ packages: resolution: {integrity: sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==} engines: {node: '>= 0.6'} + anymatch@3.1.3: + resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==} + engines: {node: '>= 8'} + array-flatten@1.1.1: resolution: {integrity: sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==} + balanced-match@1.0.2: + resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} + + binary-extensions@2.3.0: + resolution: {integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==} + engines: {node: '>=8'} + body-parser@1.20.3: resolution: {integrity: sha512-7rAxByjUMqQ3/bHJy7D6OGXvx/MMc4IqBn/X0fcM1QUcAItpZrBEYhWGem+tzXH90c+G01ypMcYJBO9Y30203g==} engines: {node: '>= 0.8', npm: 1.2.8000 || >= 1.4.16} @@ -837,6 +698,13 @@ packages: bowser@2.11.0: resolution: {integrity: sha512-AlcaJBi/pqqJBIQ8U9Mcpc9i8Aqxn88Skv5d+xBX006BY5u8N3mGLHa5Lgppa7L/HfwgwLgZ6NYs+Ag6uUmJRA==} + brace-expansion@1.1.11: + resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==} + + braces@3.0.3: + resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} + engines: {node: '>=8'} + bytes@3.1.2: resolution: {integrity: sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==} engines: {node: '>= 0.8'} @@ -849,6 +717,13 @@ packages: resolution: {integrity: sha512-YTd+6wGlNlPxSuri7Y6X8tY2dmm12UMH66RpKMhiX6rsk5wXXnYgbUcOt8kiS31/AjfoTOvCsE+w8nZQLQnzHA==} engines: {node: '>= 0.4'} + chokidar@3.6.0: + resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==} + engines: {node: '>= 8.10.0'} + + concat-map@0.0.1: + resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} + content-disposition@0.5.4: resolution: {integrity: sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==} engines: {node: '>= 0.6'} @@ -872,6 +747,15 @@ packages: supports-color: optional: true + debug@4.4.0: + resolution: {integrity: sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==} + engines: {node: '>=6.0'} + peerDependencies: + supports-color: '*' + peerDependenciesMeta: + supports-color: + optional: true + depd@2.0.0: resolution: {integrity: sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==} engines: {node: '>= 0.8'} @@ -907,11 +791,6 @@ packages: resolution: {integrity: sha512-MZ4iQ6JwHOBQjahnjwaC1ZtIBH+2ohjamzAO3oaHcXYup7qxjF2fixyH+Q71voWHeOkI2q/TnJao/KfXYIZWbw==} engines: {node: '>= 0.4'} - esbuild@0.24.2: - resolution: {integrity: sha512-+9egpBW8I3CD5XPe0n6BfT5fxLzxrlDzqydF3aviG+9ni1lDC/OvMHcxqEFV0+LANZG5R1bFMWfUrjVsdwxJvA==} - engines: {node: '>=18'} - hasBin: true - escape-html@1.0.3: resolution: {integrity: sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==} @@ -930,6 +809,10 @@ packages: fflate@0.8.1: resolution: {integrity: sha512-/exOvEuc+/iaUm105QIiOt4LpBdMTWsXxqR0HDF35vx3fmaKzw7354gTilCh5rkzEt8WYyG//ku3h3nRmd7CHQ==} + fill-range@7.1.1: + resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} + engines: {node: '>=8'} + finalhandler@1.3.1: resolution: {integrity: sha512-6BN9trH7bp3qvnrRyzsBz+g3lZxTNZTbVO2EV1CS0WIcDbawYVdYvGflME/9QP0h0pYlCDBCTjYa9nZzMDpyxQ==} engines: {node: '>= 0.8'} @@ -942,6 +825,11 @@ packages: resolution: {integrity: sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==} engines: {node: '>= 0.6'} + fsevents@2.3.3: + resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} + engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} + os: [darwin] + function-bind@1.1.2: resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==} @@ -949,10 +837,18 @@ packages: resolution: {integrity: sha512-qxsEs+9A+u85HhllWJJFicJfPDhRmjzoYdl64aMWW9yRIJmSyxdn8IEkuIM530/7T+lv0TIHd8L6Q/ra0tEoeA==} engines: {node: '>= 0.4'} + glob-parent@5.1.2: + resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==} + engines: {node: '>= 6'} + gopd@1.2.0: resolution: {integrity: sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==} engines: {node: '>= 0.4'} + has-flag@3.0.0: + resolution: {integrity: sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==} + engines: {node: '>=4'} + has-symbols@1.1.0: resolution: {integrity: sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==} engines: {node: '>= 0.4'} @@ -969,6 +865,9 @@ packages: resolution: {integrity: sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==} engines: {node: '>=0.10.0'} + ignore-by-default@1.0.1: + resolution: {integrity: sha512-Ius2VYcGNk7T90CppJqcIkS5ooHUZyIQK+ClZfMfMNFEF9VSE73Fq+906u/CWu92x4gzZMWOwfFYckPObzdEbA==} + inherits@2.0.4: resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} @@ -976,6 +875,22 @@ packages: resolution: {integrity: sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==} engines: {node: '>= 0.10'} + is-binary-path@2.1.0: + resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==} + engines: {node: '>=8'} + + is-extglob@2.1.1: + resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==} + engines: {node: '>=0.10.0'} + + is-glob@4.0.3: + resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} + engines: {node: '>=0.10.0'} + + is-number@7.0.0: + resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==} + engines: {node: '>=0.12.0'} + math-intrinsics@1.1.0: resolution: {integrity: sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==} engines: {node: '>= 0.4'} @@ -1004,6 +919,9 @@ packages: engines: {node: '>=4'} hasBin: true + minimatch@3.1.2: + resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} + mnemonist@0.38.3: resolution: {integrity: sha512-2K9QYubXx/NAjv4VLq1d1Ly8pWNC5L3BrixtdkyTegXWJIqY+zLNDhhX/A+ZwWt70tB1S8H4BE8FLYEFyNoOBw==} @@ -1017,6 +935,15 @@ packages: resolution: {integrity: sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==} engines: {node: '>= 0.6'} + nodemon@3.1.9: + resolution: {integrity: sha512-hdr1oIb2p6ZSxu3PB2JWWYS7ZQ0qvaZsc3hK8DR8f02kRzc8rjYmxAIvdz+aYC+8F2IjNaB7HMcSDg8nQpJxyg==} + engines: {node: '>=10'} + hasBin: true + + normalize-path@3.0.0: + resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==} + engines: {node: '>=0.10.0'} + object-inspect@1.13.3: resolution: {integrity: sha512-kDCGIbxkDSXE3euJZZXzc6to7fCrKHNI/hSRQnRuQ+BWjFNzZwiFF8fj/6o2t2G9/jTj8PSIYTfCLelLZEeRpA==} engines: {node: '>= 0.4'} @@ -1035,10 +962,17 @@ packages: path-to-regexp@0.1.12: resolution: {integrity: sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ==} + picomatch@2.3.1: + resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} + engines: {node: '>=8.6'} + proxy-addr@2.0.7: resolution: {integrity: sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==} engines: {node: '>= 0.10'} + pstree.remy@1.1.8: + resolution: {integrity: sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w==} + qs@6.13.0: resolution: {integrity: sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==} engines: {node: '>=0.6'} @@ -1051,12 +985,21 @@ packages: resolution: {integrity: sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==} engines: {node: '>= 0.8'} + readdirp@3.6.0: + resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==} + engines: {node: '>=8.10.0'} + safe-buffer@5.2.1: resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==} safer-buffer@2.1.2: resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} + semver@7.6.3: + resolution: {integrity: sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==} + engines: {node: '>=10'} + hasBin: true + send@0.19.0: resolution: {integrity: sha512-dW41u5VfLXu8SJh5bwRmyYUbAoSB3c9uQh6L8h/KtsFREPWpbX1lrljJo186Jc4nmci/sGUZ9a0a0J2zgfq2hw==} engines: {node: '>= 0.8.0'} @@ -1088,6 +1031,10 @@ packages: resolution: {integrity: sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==} engines: {node: '>= 0.4'} + simple-update-notifier@2.0.0: + resolution: {integrity: sha512-a2B9Y0KlNXl9u/vsW6sTIu9vGEpfKu2wRV6l1H3XEas/0gUIzGzBoP/IouTcUQbm9JWZLH3COxyn03TYlFax6w==} + engines: {node: '>=10'} + statuses@2.0.1: resolution: {integrity: sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==} engines: {node: '>= 0.8'} @@ -1095,10 +1042,22 @@ packages: strnum@1.0.5: resolution: {integrity: sha512-J8bbNyKKXl5qYcR36TIO8W3mVGVHrmmxsd5PAItGkmyzwJvybiw2IVq5nqd0i4LSNSkB/sx9VHllbfFdr9k1JA==} + supports-color@5.5.0: + resolution: {integrity: sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==} + engines: {node: '>=4'} + + to-regex-range@5.0.1: + resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} + engines: {node: '>=8.0'} + toidentifier@1.0.1: resolution: {integrity: sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==} engines: {node: '>=0.6'} + touch@3.1.1: + resolution: {integrity: sha512-r0eojU4bI8MnHr8c5bNo7lJDdI2qXlWWJk6a9EAFG7vbhTjElYhBVS3/miuE0uOuoLdb8Mc/rVfsmm6eo5o9GA==} + hasBin: true + tslib@2.8.1: resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==} @@ -1111,6 +1070,9 @@ packages: engines: {node: '>=14.17'} hasBin: true + undefsafe@2.0.5: + resolution: {integrity: sha512-WxONCrssBM8TSPRqN5EmsjVrsv4A8X12J4ArBiiayv3DyyG3ZlIg6yysuuSYdZsVz3TKcTg2fd//Ujd4CHV1iA==} + undici-types@6.20.0: resolution: {integrity: sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==} @@ -2943,81 +2905,6 @@ snapshots: '@smithy/types': 3.7.2 tslib: 2.8.1 - '@esbuild/aix-ppc64@0.24.2': - optional: true - - '@esbuild/android-arm64@0.24.2': - optional: true - - '@esbuild/android-arm@0.24.2': - optional: true - - '@esbuild/android-x64@0.24.2': - optional: true - - '@esbuild/darwin-arm64@0.24.2': - optional: true - - '@esbuild/darwin-x64@0.24.2': - optional: true - - '@esbuild/freebsd-arm64@0.24.2': - optional: true - - '@esbuild/freebsd-x64@0.24.2': - optional: true - - '@esbuild/linux-arm64@0.24.2': - optional: true - - '@esbuild/linux-arm@0.24.2': - optional: true - - '@esbuild/linux-ia32@0.24.2': - optional: true - - '@esbuild/linux-loong64@0.24.2': - optional: true - - '@esbuild/linux-mips64el@0.24.2': - optional: true - - '@esbuild/linux-ppc64@0.24.2': - optional: true - - '@esbuild/linux-riscv64@0.24.2': - optional: true - - '@esbuild/linux-s390x@0.24.2': - optional: true - - '@esbuild/linux-x64@0.24.2': - optional: true - - '@esbuild/netbsd-arm64@0.24.2': - optional: true - - '@esbuild/netbsd-x64@0.24.2': - optional: true - - '@esbuild/openbsd-arm64@0.24.2': - optional: true - - '@esbuild/openbsd-x64@0.24.2': - optional: true - - '@esbuild/sunos-x64@0.24.2': - optional: true - - '@esbuild/win32-arm64@0.24.2': - optional: true - - '@esbuild/win32-ia32@0.24.2': - optional: true - - '@esbuild/win32-x64@0.24.2': - optional: true - '@smithy/abort-controller@3.1.9': dependencies: '@smithy/types': 3.7.2 @@ -3456,8 +3343,17 @@ snapshots: mime-types: 2.1.35 negotiator: 0.6.3 + anymatch@3.1.3: + dependencies: + normalize-path: 3.0.0 + picomatch: 2.3.1 + array-flatten@1.1.1: {} + balanced-match@1.0.2: {} + + binary-extensions@2.3.0: {} + body-parser@1.20.3: dependencies: bytes: 3.1.2 @@ -3477,6 +3373,15 @@ snapshots: bowser@2.11.0: {} + brace-expansion@1.1.11: + dependencies: + balanced-match: 1.0.2 + concat-map: 0.0.1 + + braces@3.0.3: + dependencies: + fill-range: 7.1.1 + bytes@3.1.2: {} call-bind-apply-helpers@1.0.1: @@ -3489,6 +3394,20 @@ snapshots: call-bind-apply-helpers: 1.0.1 get-intrinsic: 1.2.6 + chokidar@3.6.0: + dependencies: + anymatch: 3.1.3 + braces: 3.0.3 + glob-parent: 5.1.2 + is-binary-path: 2.1.0 + is-glob: 4.0.3 + normalize-path: 3.0.0 + readdirp: 3.6.0 + optionalDependencies: + fsevents: 2.3.3 + + concat-map@0.0.1: {} + content-disposition@0.5.4: dependencies: safe-buffer: 5.2.1 @@ -3503,6 +3422,12 @@ snapshots: dependencies: ms: 2.0.0 + debug@4.4.0(supports-color@5.5.0): + dependencies: + ms: 2.1.3 + optionalDependencies: + supports-color: 5.5.0 + depd@2.0.0: {} destroy@1.2.0: {} @@ -3527,34 +3452,6 @@ snapshots: dependencies: es-errors: 1.3.0 - esbuild@0.24.2: - optionalDependencies: - '@esbuild/aix-ppc64': 0.24.2 - '@esbuild/android-arm': 0.24.2 - '@esbuild/android-arm64': 0.24.2 - '@esbuild/android-x64': 0.24.2 - '@esbuild/darwin-arm64': 0.24.2 - '@esbuild/darwin-x64': 0.24.2 - '@esbuild/freebsd-arm64': 0.24.2 - '@esbuild/freebsd-x64': 0.24.2 - '@esbuild/linux-arm': 0.24.2 - '@esbuild/linux-arm64': 0.24.2 - '@esbuild/linux-ia32': 0.24.2 - '@esbuild/linux-loong64': 0.24.2 - '@esbuild/linux-mips64el': 0.24.2 - '@esbuild/linux-ppc64': 0.24.2 - '@esbuild/linux-riscv64': 0.24.2 - '@esbuild/linux-s390x': 0.24.2 - '@esbuild/linux-x64': 0.24.2 - '@esbuild/netbsd-arm64': 0.24.2 - '@esbuild/netbsd-x64': 0.24.2 - '@esbuild/openbsd-arm64': 0.24.2 - '@esbuild/openbsd-x64': 0.24.2 - '@esbuild/sunos-x64': 0.24.2 - '@esbuild/win32-arm64': 0.24.2 - '@esbuild/win32-ia32': 0.24.2 - '@esbuild/win32-x64': 0.24.2 - escape-html@1.0.3: {} etag@1.8.1: {} @@ -3601,6 +3498,10 @@ snapshots: fflate@0.8.1: {} + fill-range@7.1.1: + dependencies: + to-regex-range: 5.0.1 + finalhandler@1.3.1: dependencies: debug: 2.6.9 @@ -3617,6 +3518,9 @@ snapshots: fresh@0.5.2: {} + fsevents@2.3.3: + optional: true + function-bind@1.1.2: {} get-intrinsic@1.2.6: @@ -3632,8 +3536,14 @@ snapshots: hasown: 2.0.2 math-intrinsics: 1.1.0 + glob-parent@5.1.2: + dependencies: + is-glob: 4.0.3 + gopd@1.2.0: {} + has-flag@3.0.0: {} + has-symbols@1.1.0: {} hasown@2.0.2: @@ -3652,10 +3562,24 @@ snapshots: dependencies: safer-buffer: 2.1.2 + ignore-by-default@1.0.1: {} + inherits@2.0.4: {} ipaddr.js@1.9.1: {} + is-binary-path@2.1.0: + dependencies: + binary-extensions: 2.3.0 + + is-extglob@2.1.1: {} + + is-glob@4.0.3: + dependencies: + is-extglob: 2.1.1 + + is-number@7.0.0: {} + math-intrinsics@1.1.0: {} media-typer@0.3.0: {} @@ -3672,6 +3596,10 @@ snapshots: mime@1.6.0: {} + minimatch@3.1.2: + dependencies: + brace-expansion: 1.1.11 + mnemonist@0.38.3: dependencies: obliterator: 1.6.1 @@ -3682,6 +3610,21 @@ snapshots: negotiator@0.6.3: {} + nodemon@3.1.9: + dependencies: + chokidar: 3.6.0 + debug: 4.4.0(supports-color@5.5.0) + ignore-by-default: 1.0.1 + minimatch: 3.1.2 + pstree.remy: 1.1.8 + semver: 7.6.3 + simple-update-notifier: 2.0.0 + supports-color: 5.5.0 + touch: 3.1.1 + undefsafe: 2.0.5 + + normalize-path@3.0.0: {} + object-inspect@1.13.3: {} obliterator@1.6.1: {} @@ -3694,11 +3637,15 @@ snapshots: path-to-regexp@0.1.12: {} + picomatch@2.3.1: {} + proxy-addr@2.0.7: dependencies: forwarded: 0.2.0 ipaddr.js: 1.9.1 + pstree.remy@1.1.8: {} + qs@6.13.0: dependencies: side-channel: 1.1.0 @@ -3712,10 +3659,16 @@ snapshots: iconv-lite: 0.4.24 unpipe: 1.0.0 + readdirp@3.6.0: + dependencies: + picomatch: 2.3.1 + safe-buffer@5.2.1: {} safer-buffer@2.1.2: {} + semver@7.6.3: {} + send@0.19.0: dependencies: debug: 2.6.9 @@ -3778,12 +3731,26 @@ snapshots: side-channel-map: 1.0.1 side-channel-weakmap: 1.0.2 + simple-update-notifier@2.0.0: + dependencies: + semver: 7.6.3 + statuses@2.0.1: {} strnum@1.0.5: {} + supports-color@5.5.0: + dependencies: + has-flag: 3.0.0 + + to-regex-range@5.0.1: + dependencies: + is-number: 7.0.0 + toidentifier@1.0.1: {} + touch@3.1.1: {} + tslib@2.8.1: {} type-is@1.6.18: @@ -3793,6 +3760,8 @@ snapshots: typescript@5.7.2: {} + undefsafe@2.0.5: {} + undici-types@6.20.0: {} unpipe@1.0.0: {} diff --git a/public/index.html b/public/index.html new file mode 100644 index 0000000..f065f6f --- /dev/null +++ b/public/index.html @@ -0,0 +1,29 @@ + + + + + + + BPSets + + +

BPSets

+ + + + + + + + + + + + + + + +
NamePriorityCategoryPassResource StatusActions
Loading... +
+ + diff --git a/public/style.css b/public/style.css new file mode 100644 index 0000000..d0d564c --- /dev/null +++ b/public/style.css @@ -0,0 +1,3 @@ +:root { + font-family: Arial, Helvetica, sans-serif; +} diff --git a/script/build.js b/script/build.js deleted file mode 100644 index 7a83df5..0000000 --- a/script/build.js +++ /dev/null @@ -1,9 +0,0 @@ -const { build } = require("esbuild") - -build({ - entryPoints: ["src/main.ts"], - outfile: "dist/main.js", - platform: 'node', - bundle: true, - minify: true -}) diff --git a/sea-config.json b/sea-config.json deleted file mode 100644 index 76c3f2f..0000000 --- a/sea-config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "main": "dist/main.js", - "output": "dist/sea-prep.blob", - "disableExperimentalSEAWarning": true -} diff --git a/src/APIServer.ts b/src/APIServer.ts new file mode 100644 index 0000000..0b20b6a --- /dev/null +++ b/src/APIServer.ts @@ -0,0 +1,17 @@ +import express, { Request, Response } from 'express' + +export class APIServer { + private readonly router = + express.Router() + + constructor () { + this.router.get('/bp_status', this.getBPStatus.bind(this)) + } + + private getBPStatus (req: Request, res: Response) { + res.send([]) + } + + public getRouter = () => + this.router +} diff --git a/src/WebServer.ts b/src/WebServer.ts index bd9985d..673e04a 100644 --- a/src/WebServer.ts +++ b/src/WebServer.ts @@ -1,17 +1,45 @@ -import express from 'express' +import express, { Request, Response } from 'express' +import { APIServer } from './APIServer' -export class WebServer { +export class WebServer { private readonly app = express() - - public WebServer () { + private readonly apiServer = new APIServer() + constructor ( + private readonly port = 2424 + ) { + this.initRoutes() + this.app.listen(this.port, this.showBanner.bind(this)) } private initRoutes () { - + this.app.use(express.static('./public')) + this.app.use('/api', this.apiServer.getRouter()) + this.app.use(this.error404) } - public listen() { - this.app.listen() + private error404 (_: Request, res: Response) { + res.status(404).send({ success: false, message: 'Page not found' }) + } + + private showBanner () { + console.log(` + + _______ _______ _______ _______ _______ _______ + | _ || || || || || | + | |_| || _ || _____|| ___||_ _|| _____| + | || |_| || |_____ | |___ | | | |_____ + | _ | | ___||_____ || ___| | | |_____ | + | |_| || | _____| || |___ | | _____| | + |_______||___| |_______||_______| |___| |_______| + Created By Minhyeok Park + + Server is now on http://127.0.0.1:${this.port} + + ` + .split('\n') + .map((v) => v.replace(/ /, '')) + .join('\n') + ) } } diff --git a/src/bpsets/alb/ALBHttpDropInvalidHeaderEnabled.ts b/src/bpsets/alb/ALBHttpDropInvalidHeaderEnabled.ts index b5e9665..70ac514 100644 --- a/src/bpsets/alb/ALBHttpDropInvalidHeaderEnabled.ts +++ b/src/bpsets/alb/ALBHttpDropInvalidHeaderEnabled.ts @@ -4,7 +4,7 @@ import { DescribeLoadBalancerAttributesCommand, ModifyLoadBalancerAttributesCommand } from '@aws-sdk/client-elastic-load-balancing-v2' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class ALBHttpDropInvalidHeaderEnabled implements BPSet { diff --git a/src/bpsets/alb/ALBWAFEnabled.ts b/src/bpsets/alb/ALBWAFEnabled.ts index 647416b..81b29d5 100644 --- a/src/bpsets/alb/ALBWAFEnabled.ts +++ b/src/bpsets/alb/ALBWAFEnabled.ts @@ -1,6 +1,6 @@ import { ElasticLoadBalancingV2Client, DescribeLoadBalancersCommand } from '@aws-sdk/client-elastic-load-balancing-v2' import { WAFV2Client, GetWebACLForResourceCommand, AssociateWebACLCommand } from '@aws-sdk/client-wafv2' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class ALBWAFEnabled implements BPSet { diff --git a/src/bpsets/alb/ELBCrossZoneLoadBalancingEnabled.ts b/src/bpsets/alb/ELBCrossZoneLoadBalancingEnabled.ts index aa290f6..14e626f 100644 --- a/src/bpsets/alb/ELBCrossZoneLoadBalancingEnabled.ts +++ b/src/bpsets/alb/ELBCrossZoneLoadBalancingEnabled.ts @@ -4,7 +4,7 @@ import { DescribeLoadBalancerAttributesCommand, ModifyLoadBalancerAttributesCommand } from '@aws-sdk/client-elastic-load-balancing-v2' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class ELBCrossZoneLoadBalancingEnabled implements BPSet { diff --git a/src/bpsets/alb/ELBDeletionProtectionEnabled.ts b/src/bpsets/alb/ELBDeletionProtectionEnabled.ts index 1000709..c566e79 100644 --- a/src/bpsets/alb/ELBDeletionProtectionEnabled.ts +++ b/src/bpsets/alb/ELBDeletionProtectionEnabled.ts @@ -4,7 +4,7 @@ import { DescribeLoadBalancerAttributesCommand, ModifyLoadBalancerAttributesCommand } from '@aws-sdk/client-elastic-load-balancing-v2' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class ELBDeletionProtectionEnabled implements BPSet { diff --git a/src/bpsets/alb/ELBLoggingEnabled.ts b/src/bpsets/alb/ELBLoggingEnabled.ts index e7e681f..5fd0263 100644 --- a/src/bpsets/alb/ELBLoggingEnabled.ts +++ b/src/bpsets/alb/ELBLoggingEnabled.ts @@ -4,7 +4,7 @@ import { DescribeLoadBalancerAttributesCommand, ModifyLoadBalancerAttributesCommand } from '@aws-sdk/client-elastic-load-balancing-v2' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class ELBLoggingEnabled implements BPSet { diff --git a/src/bpsets/apigw/APIGatewayAssociatedWithWAF.ts b/src/bpsets/apigw/APIGatewayAssociatedWithWAF.ts index a8e21e4..7d66ef9 100644 --- a/src/bpsets/apigw/APIGatewayAssociatedWithWAF.ts +++ b/src/bpsets/apigw/APIGatewayAssociatedWithWAF.ts @@ -4,7 +4,7 @@ import { GetStagesCommand } from '@aws-sdk/client-apigatewayv2' import { WAFV2Client, GetWebACLForResourceCommand, AssociateWebACLCommand } from '@aws-sdk/client-wafv2' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class APIGatewayAssociatedWithWAF implements BPSet { diff --git a/src/bpsets/apigw/APIGatewayExecutionLoggingEnabled.ts b/src/bpsets/apigw/APIGatewayExecutionLoggingEnabled.ts index 998c1bf..1d0cdd8 100644 --- a/src/bpsets/apigw/APIGatewayExecutionLoggingEnabled.ts +++ b/src/bpsets/apigw/APIGatewayExecutionLoggingEnabled.ts @@ -4,7 +4,7 @@ import { GetStagesCommand, UpdateStageCommand } from '@aws-sdk/client-apigatewayv2' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class APIGatewayExecutionLoggingEnabled implements BPSet { diff --git a/src/bpsets/apigw/APIGatewayV2AccessLogsEnabled.ts b/src/bpsets/apigw/APIGatewayV2AccessLogsEnabled.ts index e71f7e8..d571b6b 100644 --- a/src/bpsets/apigw/APIGatewayV2AccessLogsEnabled.ts +++ b/src/bpsets/apigw/APIGatewayV2AccessLogsEnabled.ts @@ -4,7 +4,7 @@ import { GetStagesCommand, UpdateStageCommand } from '@aws-sdk/client-apigatewayv2' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class APIGatewayV2AccessLogsEnabled implements BPSet { diff --git a/src/bpsets/apigw/APIGatewayV2AuthorizationTypeConfigured.ts b/src/bpsets/apigw/APIGatewayV2AuthorizationTypeConfigured.ts index a35fc2d..034f0d9 100644 --- a/src/bpsets/apigw/APIGatewayV2AuthorizationTypeConfigured.ts +++ b/src/bpsets/apigw/APIGatewayV2AuthorizationTypeConfigured.ts @@ -4,7 +4,7 @@ import { GetRoutesCommand, UpdateRouteCommand } from '@aws-sdk/client-apigatewayv2' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class APIGatewayV2AuthorizationTypeConfigured implements BPSet { diff --git a/src/bpsets/asg/AutoScalingGroupELBHealthCheckRequired.ts b/src/bpsets/asg/AutoScalingGroupELBHealthCheckRequired.ts index 7984cdc..e05751a 100644 --- a/src/bpsets/asg/AutoScalingGroupELBHealthCheckRequired.ts +++ b/src/bpsets/asg/AutoScalingGroupELBHealthCheckRequired.ts @@ -1,5 +1,5 @@ import { AutoScalingClient, DescribeAutoScalingGroupsCommand, UpdateAutoScalingGroupCommand } from '@aws-sdk/client-auto-scaling' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class AutoScalingGroupELBHealthCheckRequired implements BPSet { diff --git a/src/bpsets/asg/AutoScalingLaunchTemplate.ts b/src/bpsets/asg/AutoScalingLaunchTemplate.ts index 1ebad9d..9834a47 100644 --- a/src/bpsets/asg/AutoScalingLaunchTemplate.ts +++ b/src/bpsets/asg/AutoScalingLaunchTemplate.ts @@ -1,5 +1,5 @@ import { AutoScalingClient, DescribeAutoScalingGroupsCommand, UpdateAutoScalingGroupCommand } from '@aws-sdk/client-auto-scaling' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class AutoScalingLaunchTemplate implements BPSet { diff --git a/src/bpsets/asg/AutoScalingMultipleAZ.ts b/src/bpsets/asg/AutoScalingMultipleAZ.ts index 45b329b..3920346 100644 --- a/src/bpsets/asg/AutoScalingMultipleAZ.ts +++ b/src/bpsets/asg/AutoScalingMultipleAZ.ts @@ -1,5 +1,5 @@ import { AutoScalingClient, DescribeAutoScalingGroupsCommand, UpdateAutoScalingGroupCommand } from '@aws-sdk/client-auto-scaling' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class AutoScalingMultipleAZ implements BPSet { diff --git a/src/bpsets/cloudfront/CloudFrontAccessLogsEnabled.ts b/src/bpsets/cloudfront/CloudFrontAccessLogsEnabled.ts index 29d3d08..669eeaf 100644 --- a/src/bpsets/cloudfront/CloudFrontAccessLogsEnabled.ts +++ b/src/bpsets/cloudfront/CloudFrontAccessLogsEnabled.ts @@ -4,7 +4,7 @@ import { GetDistributionCommand, UpdateDistributionCommand } from '@aws-sdk/client-cloudfront' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class CloudFrontAccessLogsEnabled implements BPSet { diff --git a/src/bpsets/cloudfront/CloudFrontAssociatedWithWAF.ts b/src/bpsets/cloudfront/CloudFrontAssociatedWithWAF.ts index 5edaf41..e5c0f60 100644 --- a/src/bpsets/cloudfront/CloudFrontAssociatedWithWAF.ts +++ b/src/bpsets/cloudfront/CloudFrontAssociatedWithWAF.ts @@ -4,7 +4,7 @@ import { GetDistributionCommand, UpdateDistributionCommand } from '@aws-sdk/client-cloudfront' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class CloudFrontAssociatedWithWAF implements BPSet { diff --git a/src/bpsets/cloudfront/CloudFrontDefaultRootObjectConfigured.ts b/src/bpsets/cloudfront/CloudFrontDefaultRootObjectConfigured.ts index 5f20350..0f02464 100644 --- a/src/bpsets/cloudfront/CloudFrontDefaultRootObjectConfigured.ts +++ b/src/bpsets/cloudfront/CloudFrontDefaultRootObjectConfigured.ts @@ -4,7 +4,7 @@ import { GetDistributionCommand, UpdateDistributionCommand } from '@aws-sdk/client-cloudfront' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class CloudFrontDefaultRootObjectConfigured implements BPSet { diff --git a/src/bpsets/cloudfront/CloudFrontNoDeprecatedSSLProtocols.ts b/src/bpsets/cloudfront/CloudFrontNoDeprecatedSSLProtocols.ts index ff31cff..796adc9 100644 --- a/src/bpsets/cloudfront/CloudFrontNoDeprecatedSSLProtocols.ts +++ b/src/bpsets/cloudfront/CloudFrontNoDeprecatedSSLProtocols.ts @@ -4,7 +4,7 @@ import { GetDistributionCommand, UpdateDistributionCommand } from '@aws-sdk/client-cloudfront' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class CloudFrontNoDeprecatedSSLProtocols implements BPSet { diff --git a/src/bpsets/cloudfront/CloudFrontS3OriginAccessControlEnabled.ts b/src/bpsets/cloudfront/CloudFrontS3OriginAccessControlEnabled.ts index 8b22494..e303959 100644 --- a/src/bpsets/cloudfront/CloudFrontS3OriginAccessControlEnabled.ts +++ b/src/bpsets/cloudfront/CloudFrontS3OriginAccessControlEnabled.ts @@ -4,7 +4,7 @@ import { GetDistributionCommand, UpdateDistributionCommand } from '@aws-sdk/client-cloudfront' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class CloudFrontS3OriginAccessControlEnabled implements BPSet { diff --git a/src/bpsets/cloudfront/CloudFrontViewerPolicyHTTPS.ts b/src/bpsets/cloudfront/CloudFrontViewerPolicyHTTPS.ts index cafe64a..9bbeb06 100644 --- a/src/bpsets/cloudfront/CloudFrontViewerPolicyHTTPS.ts +++ b/src/bpsets/cloudfront/CloudFrontViewerPolicyHTTPS.ts @@ -4,7 +4,7 @@ import { GetDistributionCommand, UpdateDistributionCommand } from '@aws-sdk/client-cloudfront' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class CloudFrontViewerPolicyHTTPS implements BPSet { diff --git a/src/bpsets/cloudwatch/CWLogGroupRetentionPeriodCheck.ts b/src/bpsets/cloudwatch/CWLogGroupRetentionPeriodCheck.ts index eacac82..e3eaead 100644 --- a/src/bpsets/cloudwatch/CWLogGroupRetentionPeriodCheck.ts +++ b/src/bpsets/cloudwatch/CWLogGroupRetentionPeriodCheck.ts @@ -3,7 +3,7 @@ import { DescribeLogGroupsCommand, PutRetentionPolicyCommand } from '@aws-sdk/client-cloudwatch-logs' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class CWLogGroupRetentionPeriodCheck implements BPSet { diff --git a/src/bpsets/cloudwatch/CloudWatchAlarmSettingsCheck.ts b/src/bpsets/cloudwatch/CloudWatchAlarmSettingsCheck.ts index b2efaf2..14be718 100644 --- a/src/bpsets/cloudwatch/CloudWatchAlarmSettingsCheck.ts +++ b/src/bpsets/cloudwatch/CloudWatchAlarmSettingsCheck.ts @@ -3,7 +3,7 @@ import { DescribeAlarmsCommand, PutMetricAlarmCommand } from '@aws-sdk/client-cloudwatch' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class CloudWatchAlarmSettingsCheck implements BPSet { diff --git a/src/bpsets/codeseries/CodeBuildProjectEnvironmentPrivilegedCheck.ts b/src/bpsets/codeseries/CodeBuildProjectEnvironmentPrivilegedCheck.ts index 87031b4..0ccb126 100644 --- a/src/bpsets/codeseries/CodeBuildProjectEnvironmentPrivilegedCheck.ts +++ b/src/bpsets/codeseries/CodeBuildProjectEnvironmentPrivilegedCheck.ts @@ -4,7 +4,7 @@ import { BatchGetProjectsCommand, UpdateProjectCommand } from '@aws-sdk/client-codebuild' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class CodeBuildProjectEnvironmentPrivilegedCheck implements BPSet { diff --git a/src/bpsets/codeseries/CodeBuildProjectLoggingEnabled.ts b/src/bpsets/codeseries/CodeBuildProjectLoggingEnabled.ts index 3a00dcf..de2b170 100644 --- a/src/bpsets/codeseries/CodeBuildProjectLoggingEnabled.ts +++ b/src/bpsets/codeseries/CodeBuildProjectLoggingEnabled.ts @@ -4,7 +4,7 @@ import { BatchGetProjectsCommand, UpdateProjectCommand } from '@aws-sdk/client-codebuild' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class CodeBuildProjectLoggingEnabled implements BPSet { diff --git a/src/bpsets/codeseries/CodeDeployAutoRollbackMonitorEnabled.ts b/src/bpsets/codeseries/CodeDeployAutoRollbackMonitorEnabled.ts index f9e9ba2..f821e95 100644 --- a/src/bpsets/codeseries/CodeDeployAutoRollbackMonitorEnabled.ts +++ b/src/bpsets/codeseries/CodeDeployAutoRollbackMonitorEnabled.ts @@ -5,7 +5,7 @@ import { BatchGetDeploymentGroupsCommand, UpdateDeploymentGroupCommand } from '@aws-sdk/client-codedeploy' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class CodeDeployAutoRollbackMonitorEnabled implements BPSet { diff --git a/src/bpsets/dynamodb/DynamoDBAutoscalingEnabled.ts b/src/bpsets/dynamodb/DynamoDBAutoscalingEnabled.ts index f202ddd..c56bcd7 100644 --- a/src/bpsets/dynamodb/DynamoDBAutoscalingEnabled.ts +++ b/src/bpsets/dynamodb/DynamoDBAutoscalingEnabled.ts @@ -9,7 +9,7 @@ import { PutScalingPolicyCommand, DescribeScalingPoliciesCommand } from '@aws-sdk/client-application-auto-scaling' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class DynamoDBAutoscalingEnabled implements BPSet { diff --git a/src/bpsets/dynamodb/DynamoDBLastBackupRecoveryPointCreated.ts b/src/bpsets/dynamodb/DynamoDBLastBackupRecoveryPointCreated.ts index 7d5dc55..945a976 100644 --- a/src/bpsets/dynamodb/DynamoDBLastBackupRecoveryPointCreated.ts +++ b/src/bpsets/dynamodb/DynamoDBLastBackupRecoveryPointCreated.ts @@ -8,7 +8,7 @@ import { ListRecoveryPointsByResourceCommand, StartBackupJobCommand } from '@aws-sdk/client-backup' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class DynamoDBLastBackupRecoveryPointCreated implements BPSet { diff --git a/src/bpsets/dynamodb/DynamoDBPITREnabled.ts b/src/bpsets/dynamodb/DynamoDBPITREnabled.ts index 332f688..9bce6fb 100644 --- a/src/bpsets/dynamodb/DynamoDBPITREnabled.ts +++ b/src/bpsets/dynamodb/DynamoDBPITREnabled.ts @@ -5,7 +5,7 @@ import { DescribeContinuousBackupsCommand, UpdateContinuousBackupsCommand } from '@aws-sdk/client-dynamodb' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class DynamoDBPITREnabled implements BPSet { diff --git a/src/bpsets/dynamodb/DynamoDBTableDeletionProtectionEnabled.ts b/src/bpsets/dynamodb/DynamoDBTableDeletionProtectionEnabled.ts index 933d14e..c35a9c5 100644 --- a/src/bpsets/dynamodb/DynamoDBTableDeletionProtectionEnabled.ts +++ b/src/bpsets/dynamodb/DynamoDBTableDeletionProtectionEnabled.ts @@ -4,7 +4,7 @@ import { DescribeTableCommand, UpdateTableCommand } from '@aws-sdk/client-dynamodb' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class DynamoDBTableDeletionProtectionEnabled implements BPSet { diff --git a/src/bpsets/dynamodb/DynamoDBTableEncryptedKMS.ts b/src/bpsets/dynamodb/DynamoDBTableEncryptedKMS.ts index 916d63e..97767f6 100644 --- a/src/bpsets/dynamodb/DynamoDBTableEncryptedKMS.ts +++ b/src/bpsets/dynamodb/DynamoDBTableEncryptedKMS.ts @@ -4,7 +4,7 @@ import { DescribeTableCommand, UpdateTableCommand } from '@aws-sdk/client-dynamodb' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class DynamoDBTableEncryptedKMS implements BPSet { diff --git a/src/bpsets/dynamodb/DynamoDBTableEncryptionEnabled.ts b/src/bpsets/dynamodb/DynamoDBTableEncryptionEnabled.ts index f705e91..f8f317d 100644 --- a/src/bpsets/dynamodb/DynamoDBTableEncryptionEnabled.ts +++ b/src/bpsets/dynamodb/DynamoDBTableEncryptionEnabled.ts @@ -4,7 +4,7 @@ import { DescribeTableCommand, UpdateTableCommand } from '@aws-sdk/client-dynamodb' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class DynamoDBTableEncryptionEnabled implements BPSet { diff --git a/src/bpsets/ec2/EC2EbsEncryptionByDefault.ts b/src/bpsets/ec2/EC2EbsEncryptionByDefault.ts index c9e49a4..09854e6 100644 --- a/src/bpsets/ec2/EC2EbsEncryptionByDefault.ts +++ b/src/bpsets/ec2/EC2EbsEncryptionByDefault.ts @@ -3,7 +3,7 @@ import { DescribeVolumesCommand, EnableEbsEncryptionByDefaultCommand } from '@aws-sdk/client-ec2' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class EC2EbsEncryptionByDefault implements BPSet { diff --git a/src/bpsets/ec2/EC2Imdsv2Check.ts b/src/bpsets/ec2/EC2Imdsv2Check.ts index 166d2cf..c291325 100644 --- a/src/bpsets/ec2/EC2Imdsv2Check.ts +++ b/src/bpsets/ec2/EC2Imdsv2Check.ts @@ -3,7 +3,7 @@ import { EC2Client, ModifyInstanceMetadataOptionsCommand } from '@aws-sdk/client-ec2' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class EC2Imdsv2Check implements BPSet { diff --git a/src/bpsets/ec2/EC2InstanceDetailedMonitoringEnabled.ts b/src/bpsets/ec2/EC2InstanceDetailedMonitoringEnabled.ts index 3c10a11..9387767 100644 --- a/src/bpsets/ec2/EC2InstanceDetailedMonitoringEnabled.ts +++ b/src/bpsets/ec2/EC2InstanceDetailedMonitoringEnabled.ts @@ -3,7 +3,7 @@ import { EC2Client, MonitorInstancesCommand } from '@aws-sdk/client-ec2' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class EC2InstanceDetailedMonitoringEnabled implements BPSet { diff --git a/src/bpsets/ec2/EC2InstanceManagedBySystemsManager.ts b/src/bpsets/ec2/EC2InstanceManagedBySystemsManager.ts index a1c0dfa..1930beb 100644 --- a/src/bpsets/ec2/EC2InstanceManagedBySystemsManager.ts +++ b/src/bpsets/ec2/EC2InstanceManagedBySystemsManager.ts @@ -3,7 +3,7 @@ import { DescribeInstancesCommand } from '@aws-sdk/client-ec2' import { SSMClient, DescribeInstanceInformationCommand } from '@aws-sdk/client-ssm' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class EC2InstanceManagedBySystemsManager implements BPSet { diff --git a/src/bpsets/ec2/EC2InstanceProfileAttached.ts b/src/bpsets/ec2/EC2InstanceProfileAttached.ts index 13b534f..99ff713 100644 --- a/src/bpsets/ec2/EC2InstanceProfileAttached.ts +++ b/src/bpsets/ec2/EC2InstanceProfileAttached.ts @@ -3,7 +3,7 @@ import { DescribeInstancesCommand, AssociateIamInstanceProfileCommand } from '@aws-sdk/client-ec2' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class EC2InstanceProfileAttached implements BPSet { diff --git a/src/bpsets/ec2/EC2NoAmazonKeyPair.ts b/src/bpsets/ec2/EC2NoAmazonKeyPair.ts index 7a9bd43..9e92d89 100644 --- a/src/bpsets/ec2/EC2NoAmazonKeyPair.ts +++ b/src/bpsets/ec2/EC2NoAmazonKeyPair.ts @@ -2,7 +2,7 @@ import { EC2Client, DescribeInstancesCommand } from '@aws-sdk/client-ec2' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class EC2NoAmazonKeyPair implements BPSet { diff --git a/src/bpsets/ec2/EC2StoppedInstance.ts b/src/bpsets/ec2/EC2StoppedInstance.ts index 4e6707a..5dc6336 100644 --- a/src/bpsets/ec2/EC2StoppedInstance.ts +++ b/src/bpsets/ec2/EC2StoppedInstance.ts @@ -3,7 +3,7 @@ import { DescribeInstancesCommand, TerminateInstancesCommand } from '@aws-sdk/client-ec2' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class EC2StoppedInstance implements BPSet { diff --git a/src/bpsets/ec2/EC2TokenHopLimitCheck.ts b/src/bpsets/ec2/EC2TokenHopLimitCheck.ts index 53467ce..6528ae2 100644 --- a/src/bpsets/ec2/EC2TokenHopLimitCheck.ts +++ b/src/bpsets/ec2/EC2TokenHopLimitCheck.ts @@ -3,7 +3,7 @@ import { DescribeInstancesCommand, ModifyInstanceMetadataOptionsCommand } from '@aws-sdk/client-ec2' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class EC2TokenHopLimitCheck implements BPSet { diff --git a/src/bpsets/ecr/ECRKmsEncryption1.ts b/src/bpsets/ecr/ECRKmsEncryption1.ts index 4c3d3ed..9a2e204 100644 --- a/src/bpsets/ecr/ECRKmsEncryption1.ts +++ b/src/bpsets/ecr/ECRKmsEncryption1.ts @@ -7,7 +7,7 @@ import { PutImageCommand, DeleteRepositoryCommand } from '@aws-sdk/client-ecr' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class ECRKmsEncryption1 implements BPSet { diff --git a/src/bpsets/ecr/ECRPrivateImageScanningEnabled.ts b/src/bpsets/ecr/ECRPrivateImageScanningEnabled.ts index b682db3..464d8d3 100644 --- a/src/bpsets/ecr/ECRPrivateImageScanningEnabled.ts +++ b/src/bpsets/ecr/ECRPrivateImageScanningEnabled.ts @@ -3,7 +3,7 @@ import { DescribeRepositoriesCommand, PutImageScanningConfigurationCommand } from '@aws-sdk/client-ecr' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class ECRPrivateImageScanningEnabled implements BPSet { diff --git a/src/bpsets/ecr/ECRPrivateLifecyclePolicyConfigured.ts b/src/bpsets/ecr/ECRPrivateLifecyclePolicyConfigured.ts index 46ab532..59e5bcf 100644 --- a/src/bpsets/ecr/ECRPrivateLifecyclePolicyConfigured.ts +++ b/src/bpsets/ecr/ECRPrivateLifecyclePolicyConfigured.ts @@ -4,7 +4,7 @@ import { PutLifecyclePolicyCommand, GetLifecyclePolicyCommand } from '@aws-sdk/client-ecr' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class ECRPrivateLifecyclePolicyConfigured implements BPSet { diff --git a/src/bpsets/ecr/ECRPrivateTagImmutabilityEnabled.ts b/src/bpsets/ecr/ECRPrivateTagImmutabilityEnabled.ts index 1c5ebd7..b7f5b9d 100644 --- a/src/bpsets/ecr/ECRPrivateTagImmutabilityEnabled.ts +++ b/src/bpsets/ecr/ECRPrivateTagImmutabilityEnabled.ts @@ -3,7 +3,7 @@ import { DescribeRepositoriesCommand, PutImageTagMutabilityCommand } from '@aws-sdk/client-ecr' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class ECRPrivateTagImmutabilityEnabled implements BPSet { diff --git a/src/bpsets/ecs/ECSAwsVpcNetworkingEnabled.ts b/src/bpsets/ecs/ECSAwsVpcNetworkingEnabled.ts index bb717f0..f090edc 100644 --- a/src/bpsets/ecs/ECSAwsVpcNetworkingEnabled.ts +++ b/src/bpsets/ecs/ECSAwsVpcNetworkingEnabled.ts @@ -4,7 +4,7 @@ import { DescribeTaskDefinitionCommand, RegisterTaskDefinitionCommand } from '@aws-sdk/client-ecs' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class ECSAwsVpcNetworkingEnabled implements BPSet { diff --git a/src/bpsets/ecs/ECSContainerInsightsEnabled.ts b/src/bpsets/ecs/ECSContainerInsightsEnabled.ts index cab3436..a1af608 100644 --- a/src/bpsets/ecs/ECSContainerInsightsEnabled.ts +++ b/src/bpsets/ecs/ECSContainerInsightsEnabled.ts @@ -3,7 +3,7 @@ import { DescribeClustersCommand, UpdateClusterSettingsCommand } from '@aws-sdk/client-ecs' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class ECSContainerInsightsEnabled implements BPSet { diff --git a/src/bpsets/ecs/ECSContainersNonPrivileged.ts b/src/bpsets/ecs/ECSContainersNonPrivileged.ts index 0cb413a..7289f86 100644 --- a/src/bpsets/ecs/ECSContainersNonPrivileged.ts +++ b/src/bpsets/ecs/ECSContainersNonPrivileged.ts @@ -4,7 +4,7 @@ import { RegisterTaskDefinitionCommand, ListTaskDefinitionsCommand } from '@aws-sdk/client-ecs' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class ECSContainersNonPrivileged implements BPSet { diff --git a/src/bpsets/ecs/ECSContainersReadonlyAccess.ts b/src/bpsets/ecs/ECSContainersReadonlyAccess.ts index 70fe0ad..641f11e 100644 --- a/src/bpsets/ecs/ECSContainersReadonlyAccess.ts +++ b/src/bpsets/ecs/ECSContainersReadonlyAccess.ts @@ -4,7 +4,7 @@ import { RegisterTaskDefinitionCommand, ListTaskDefinitionsCommand } from '@aws-sdk/client-ecs' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class ECSContainersReadonlyAccess implements BPSet { diff --git a/src/bpsets/ecs/ECSFargateLatestPlatformVersion.ts b/src/bpsets/ecs/ECSFargateLatestPlatformVersion.ts index d219b9b..e48a13f 100644 --- a/src/bpsets/ecs/ECSFargateLatestPlatformVersion.ts +++ b/src/bpsets/ecs/ECSFargateLatestPlatformVersion.ts @@ -5,7 +5,7 @@ import { DescribeServicesCommand, UpdateServiceCommand } from '@aws-sdk/client-ecs' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class ECSFargateLatestPlatformVersion implements BPSet { diff --git a/src/bpsets/ecs/ECSTaskDefinitionLogConfiguration.ts b/src/bpsets/ecs/ECSTaskDefinitionLogConfiguration.ts index d4a3e65..d96fd13 100644 --- a/src/bpsets/ecs/ECSTaskDefinitionLogConfiguration.ts +++ b/src/bpsets/ecs/ECSTaskDefinitionLogConfiguration.ts @@ -4,7 +4,7 @@ import { DescribeTaskDefinitionCommand, RegisterTaskDefinitionCommand } from '@aws-sdk/client-ecs' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class ECSTaskDefinitionLogConfiguration implements BPSet { diff --git a/src/bpsets/ecs/ECSTaskDefinitionMemoryHardLimit.ts b/src/bpsets/ecs/ECSTaskDefinitionMemoryHardLimit.ts index ea30024..b2d83cb 100644 --- a/src/bpsets/ecs/ECSTaskDefinitionMemoryHardLimit.ts +++ b/src/bpsets/ecs/ECSTaskDefinitionMemoryHardLimit.ts @@ -4,7 +4,7 @@ import { DescribeTaskDefinitionCommand, RegisterTaskDefinitionCommand } from '@aws-sdk/client-ecs' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class ECSTaskDefinitionMemoryHardLimit implements BPSet { diff --git a/src/bpsets/ecs/ECSTaskDefinitionNonRootUser.ts b/src/bpsets/ecs/ECSTaskDefinitionNonRootUser.ts index 1d81f83..1b81207 100644 --- a/src/bpsets/ecs/ECSTaskDefinitionNonRootUser.ts +++ b/src/bpsets/ecs/ECSTaskDefinitionNonRootUser.ts @@ -4,7 +4,7 @@ import { DescribeTaskDefinitionCommand, RegisterTaskDefinitionCommand } from '@aws-sdk/client-ecs' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class ECSTaskDefinitionNonRootUser implements BPSet { diff --git a/src/bpsets/efs/EFSAccessPointEnforceRootDirectory.ts b/src/bpsets/efs/EFSAccessPointEnforceRootDirectory.ts index 03ee052..77bf5e5 100644 --- a/src/bpsets/efs/EFSAccessPointEnforceRootDirectory.ts +++ b/src/bpsets/efs/EFSAccessPointEnforceRootDirectory.ts @@ -4,7 +4,7 @@ import { DeleteAccessPointCommand, CreateAccessPointCommand } from '@aws-sdk/client-efs' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class EFSAccessPointEnforceRootDirectory implements BPSet { diff --git a/src/bpsets/efs/EFSAccessPointEnforceUserIdentity.ts b/src/bpsets/efs/EFSAccessPointEnforceUserIdentity.ts index 421e06f..2fe7803 100644 --- a/src/bpsets/efs/EFSAccessPointEnforceUserIdentity.ts +++ b/src/bpsets/efs/EFSAccessPointEnforceUserIdentity.ts @@ -4,7 +4,7 @@ import { DeleteAccessPointCommand, CreateAccessPointCommand } from '@aws-sdk/client-efs' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class EFSAccessPointEnforceUserIdentity implements BPSet { diff --git a/src/bpsets/efs/EFSAutomaticBackupsEnabled.ts b/src/bpsets/efs/EFSAutomaticBackupsEnabled.ts index 7500671..b24cdc3 100644 --- a/src/bpsets/efs/EFSAutomaticBackupsEnabled.ts +++ b/src/bpsets/efs/EFSAutomaticBackupsEnabled.ts @@ -4,7 +4,7 @@ import { PutBackupPolicyCommand, DescribeBackupPolicyCommand } from '@aws-sdk/client-efs' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class EFSAutomaticBackupsEnabled implements BPSet { diff --git a/src/bpsets/efs/EFSEncryptedCheck.ts b/src/bpsets/efs/EFSEncryptedCheck.ts index 78cd514..5c35292 100644 --- a/src/bpsets/efs/EFSEncryptedCheck.ts +++ b/src/bpsets/efs/EFSEncryptedCheck.ts @@ -4,7 +4,7 @@ import { CreateFileSystemCommand, DeleteFileSystemCommand } from '@aws-sdk/client-efs' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class EFSEncryptedCheck implements BPSet { diff --git a/src/bpsets/efs/EFSMountTargetPublicAccessible.ts b/src/bpsets/efs/EFSMountTargetPublicAccessible.ts index e523aea..04b8d87 100644 --- a/src/bpsets/efs/EFSMountTargetPublicAccessible.ts +++ b/src/bpsets/efs/EFSMountTargetPublicAccessible.ts @@ -4,7 +4,7 @@ import { DescribeMountTargetsCommand } from '@aws-sdk/client-efs' import { EC2Client, DescribeRouteTablesCommand } from '@aws-sdk/client-ec2' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class EFSMountTargetPublicAccessible implements BPSet { diff --git a/src/bpsets/eks/EKSClusterLoggingEnabled.ts b/src/bpsets/eks/EKSClusterLoggingEnabled.ts index 06c6be4..c523f02 100644 --- a/src/bpsets/eks/EKSClusterLoggingEnabled.ts +++ b/src/bpsets/eks/EKSClusterLoggingEnabled.ts @@ -4,7 +4,7 @@ import { DescribeClusterCommand, UpdateClusterConfigCommand } from '@aws-sdk/client-eks' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class EKSClusterLoggingEnabled implements BPSet { diff --git a/src/bpsets/eks/EKSClusterSecretsEncrypted.ts b/src/bpsets/eks/EKSClusterSecretsEncrypted.ts index 9587a0a..e48217d 100644 --- a/src/bpsets/eks/EKSClusterSecretsEncrypted.ts +++ b/src/bpsets/eks/EKSClusterSecretsEncrypted.ts @@ -4,7 +4,7 @@ import { DescribeClusterCommand, AssociateEncryptionConfigCommand } from '@aws-sdk/client-eks' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class EKSClusterSecretsEncrypted implements BPSet { diff --git a/src/bpsets/eks/EKSEndpointNoPublicAccess.ts b/src/bpsets/eks/EKSEndpointNoPublicAccess.ts index 0be846a..433d730 100644 --- a/src/bpsets/eks/EKSEndpointNoPublicAccess.ts +++ b/src/bpsets/eks/EKSEndpointNoPublicAccess.ts @@ -4,7 +4,7 @@ import { DescribeClusterCommand, UpdateClusterConfigCommand } from '@aws-sdk/client-eks' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class EKSEndpointNoPublicAccess implements BPSet { diff --git a/src/bpsets/elasticache/ElastiCacheAutoMinorVersionUpgradeCheck.ts b/src/bpsets/elasticache/ElastiCacheAutoMinorVersionUpgradeCheck.ts index 3b95d79..98c10ea 100644 --- a/src/bpsets/elasticache/ElastiCacheAutoMinorVersionUpgradeCheck.ts +++ b/src/bpsets/elasticache/ElastiCacheAutoMinorVersionUpgradeCheck.ts @@ -3,7 +3,7 @@ import { DescribeCacheClustersCommand, ModifyCacheClusterCommand } from '@aws-sdk/client-elasticache' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class ElastiCacheAutoMinorVersionUpgradeCheck implements BPSet { diff --git a/src/bpsets/elasticache/ElastiCacheRedisClusterAutomaticBackupCheck.ts b/src/bpsets/elasticache/ElastiCacheRedisClusterAutomaticBackupCheck.ts index 19c7738..c05e7c7 100644 --- a/src/bpsets/elasticache/ElastiCacheRedisClusterAutomaticBackupCheck.ts +++ b/src/bpsets/elasticache/ElastiCacheRedisClusterAutomaticBackupCheck.ts @@ -3,7 +3,7 @@ import { DescribeReplicationGroupsCommand, ModifyReplicationGroupCommand } from '@aws-sdk/client-elasticache' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class ElastiCacheRedisClusterAutomaticBackupCheck implements BPSet { diff --git a/src/bpsets/elasticache/ElastiCacheReplGrpAutoFailoverEnabled.ts b/src/bpsets/elasticache/ElastiCacheReplGrpAutoFailoverEnabled.ts index 99a6d8e..9158734 100644 --- a/src/bpsets/elasticache/ElastiCacheReplGrpAutoFailoverEnabled.ts +++ b/src/bpsets/elasticache/ElastiCacheReplGrpAutoFailoverEnabled.ts @@ -3,7 +3,7 @@ import { DescribeReplicationGroupsCommand, ModifyReplicationGroupCommand } from '@aws-sdk/client-elasticache' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class ElastiCacheReplGrpAutoFailoverEnabled implements BPSet { diff --git a/src/bpsets/elasticache/ElastiCacheReplGrpEncryptedAtRest.ts b/src/bpsets/elasticache/ElastiCacheReplGrpEncryptedAtRest.ts index 95ccf47..fe5b444 100644 --- a/src/bpsets/elasticache/ElastiCacheReplGrpEncryptedAtRest.ts +++ b/src/bpsets/elasticache/ElastiCacheReplGrpEncryptedAtRest.ts @@ -3,7 +3,7 @@ import { DescribeReplicationGroupsCommand, ModifyReplicationGroupCommand } from '@aws-sdk/client-elasticache' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class ElastiCacheReplGrpEncryptedAtRest implements BPSet { diff --git a/src/bpsets/elasticache/ElastiCacheReplGrpEncryptedInTransit.ts b/src/bpsets/elasticache/ElastiCacheReplGrpEncryptedInTransit.ts index 9c8cd35..572ab37 100644 --- a/src/bpsets/elasticache/ElastiCacheReplGrpEncryptedInTransit.ts +++ b/src/bpsets/elasticache/ElastiCacheReplGrpEncryptedInTransit.ts @@ -3,7 +3,7 @@ import { DescribeReplicationGroupsCommand, ModifyReplicationGroupCommand } from '@aws-sdk/client-elasticache' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class ElastiCacheReplGrpEncryptedInTransit implements BPSet { diff --git a/src/bpsets/elasticache/ElastiCacheSubnetGroupCheck.ts b/src/bpsets/elasticache/ElastiCacheSubnetGroupCheck.ts index 8f2a08d..d91754a 100644 --- a/src/bpsets/elasticache/ElastiCacheSubnetGroupCheck.ts +++ b/src/bpsets/elasticache/ElastiCacheSubnetGroupCheck.ts @@ -4,7 +4,7 @@ import { DeleteCacheClusterCommand, CreateCacheClusterCommand } from '@aws-sdk/client-elasticache' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class ElastiCacheSubnetGroupCheck implements BPSet { diff --git a/src/bpsets/iam/IAMPolicyNoStatementsWithAdminAccess.ts b/src/bpsets/iam/IAMPolicyNoStatementsWithAdminAccess.ts index ef8c524..a9b1460 100644 --- a/src/bpsets/iam/IAMPolicyNoStatementsWithAdminAccess.ts +++ b/src/bpsets/iam/IAMPolicyNoStatementsWithAdminAccess.ts @@ -4,7 +4,7 @@ import { GetPolicyVersionCommand, DeletePolicyCommand } from '@aws-sdk/client-iam' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class IAMPolicyNoStatementsWithAdminAccess implements BPSet { diff --git a/src/bpsets/iam/IAMPolicyNoStatementsWithFullAccess.ts b/src/bpsets/iam/IAMPolicyNoStatementsWithFullAccess.ts index ef8c524..a9b1460 100644 --- a/src/bpsets/iam/IAMPolicyNoStatementsWithFullAccess.ts +++ b/src/bpsets/iam/IAMPolicyNoStatementsWithFullAccess.ts @@ -4,7 +4,7 @@ import { GetPolicyVersionCommand, DeletePolicyCommand } from '@aws-sdk/client-iam' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class IAMPolicyNoStatementsWithAdminAccess implements BPSet { diff --git a/src/bpsets/iam/IAMRoleManagedPolicyCheck.ts b/src/bpsets/iam/IAMRoleManagedPolicyCheck.ts index 46d13d0..ee1943e 100644 --- a/src/bpsets/iam/IAMRoleManagedPolicyCheck.ts +++ b/src/bpsets/iam/IAMRoleManagedPolicyCheck.ts @@ -3,7 +3,7 @@ import { ListPoliciesCommand, ListEntitiesForPolicyCommand } from '@aws-sdk/client-iam' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class IAMRoleManagedPolicyCheck implements BPSet { diff --git a/src/bpsets/lambda/LambdaDLQCheck.ts b/src/bpsets/lambda/LambdaDLQCheck.ts index 2c246e1..a822f2c 100644 --- a/src/bpsets/lambda/LambdaDLQCheck.ts +++ b/src/bpsets/lambda/LambdaDLQCheck.ts @@ -1,5 +1,5 @@ import { LambdaClient, ListFunctionsCommand, UpdateFunctionConfigurationCommand } from '@aws-sdk/client-lambda' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class LambdaDLQCheck implements BPSet { diff --git a/src/bpsets/lambda/LambdaFunctionPublicAccessProhibited.ts b/src/bpsets/lambda/LambdaFunctionPublicAccessProhibited.ts index b1e1593..1ae0a4d 100644 --- a/src/bpsets/lambda/LambdaFunctionPublicAccessProhibited.ts +++ b/src/bpsets/lambda/LambdaFunctionPublicAccessProhibited.ts @@ -4,7 +4,7 @@ import { GetPolicyCommand, RemovePermissionCommand } from '@aws-sdk/client-lambda' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class LambdaFunctionPublicAccessProhibited implements BPSet { diff --git a/src/bpsets/lambda/LambdaFunctionSettingsCheck.ts b/src/bpsets/lambda/LambdaFunctionSettingsCheck.ts index 8bd96d6..faad49e 100644 --- a/src/bpsets/lambda/LambdaFunctionSettingsCheck.ts +++ b/src/bpsets/lambda/LambdaFunctionSettingsCheck.ts @@ -1,5 +1,5 @@ import { LambdaClient, ListFunctionsCommand, UpdateFunctionConfigurationCommand } from '@aws-sdk/client-lambda' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class LambdaFunctionSettingsCheck implements BPSet { diff --git a/src/bpsets/lambda/LambdaInsideVPC.ts b/src/bpsets/lambda/LambdaInsideVPC.ts index f58cba0..fa139fe 100644 --- a/src/bpsets/lambda/LambdaInsideVPC.ts +++ b/src/bpsets/lambda/LambdaInsideVPC.ts @@ -3,7 +3,7 @@ import { ListFunctionsCommand, UpdateFunctionConfigurationCommand } from '@aws-sdk/client-lambda' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class LambdaInsideVPC implements BPSet { diff --git a/src/bpsets/rds/AuroraLastBackupRecoveryPointCreated.ts b/src/bpsets/rds/AuroraLastBackupRecoveryPointCreated.ts index f617392..dc58965 100644 --- a/src/bpsets/rds/AuroraLastBackupRecoveryPointCreated.ts +++ b/src/bpsets/rds/AuroraLastBackupRecoveryPointCreated.ts @@ -7,7 +7,7 @@ import { BackupClient, ListRecoveryPointsByResourceCommand } from '@aws-sdk/client-backup' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class AuroraLastBackupRecoveryPointCreated implements BPSet { diff --git a/src/bpsets/rds/AuroraMySQLBacktrackingEnabled.ts b/src/bpsets/rds/AuroraMySQLBacktrackingEnabled.ts index 34bfbd4..c0f147a 100644 --- a/src/bpsets/rds/AuroraMySQLBacktrackingEnabled.ts +++ b/src/bpsets/rds/AuroraMySQLBacktrackingEnabled.ts @@ -3,7 +3,7 @@ import { DescribeDBClustersCommand, ModifyDBClusterCommand } from '@aws-sdk/client-rds' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class AuroraMySQLBacktrackingEnabled implements BPSet { diff --git a/src/bpsets/rds/DBInstanceBackupEnabled.ts b/src/bpsets/rds/DBInstanceBackupEnabled.ts index 55c1425..0b22c33 100644 --- a/src/bpsets/rds/DBInstanceBackupEnabled.ts +++ b/src/bpsets/rds/DBInstanceBackupEnabled.ts @@ -3,7 +3,7 @@ import { DescribeDBInstancesCommand, ModifyDBInstanceCommand } from '@aws-sdk/client-rds' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class DBInstanceBackupEnabled implements BPSet { diff --git a/src/bpsets/rds/RDSClusterAutoMinorVersionUpgradeEnabled.ts b/src/bpsets/rds/RDSClusterAutoMinorVersionUpgradeEnabled.ts index bca7f2d..643193f 100644 --- a/src/bpsets/rds/RDSClusterAutoMinorVersionUpgradeEnabled.ts +++ b/src/bpsets/rds/RDSClusterAutoMinorVersionUpgradeEnabled.ts @@ -3,7 +3,7 @@ import { DescribeDBClustersCommand, ModifyDBClusterCommand } from '@aws-sdk/client-rds' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class RDSClusterAutoMinorVersionUpgradeEnabled implements BPSet { diff --git a/src/bpsets/rds/RDSClusterDefaultAdminCheck.ts b/src/bpsets/rds/RDSClusterDefaultAdminCheck.ts index a63abd9..60a1de9 100644 --- a/src/bpsets/rds/RDSClusterDefaultAdminCheck.ts +++ b/src/bpsets/rds/RDSClusterDefaultAdminCheck.ts @@ -3,7 +3,7 @@ import { DescribeDBClustersCommand, ModifyDBClusterCommand } from '@aws-sdk/client-rds' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class RDSClusterDefaultAdminCheck implements BPSet { diff --git a/src/bpsets/rds/RDSClusterDeletionProtectionEnabled.ts b/src/bpsets/rds/RDSClusterDeletionProtectionEnabled.ts index 6cfbe34..6cbe99d 100644 --- a/src/bpsets/rds/RDSClusterDeletionProtectionEnabled.ts +++ b/src/bpsets/rds/RDSClusterDeletionProtectionEnabled.ts @@ -3,7 +3,7 @@ import { DescribeDBClustersCommand, ModifyDBClusterCommand } from '@aws-sdk/client-rds' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class RDSClusterDeletionProtectionEnabled implements BPSet { diff --git a/src/bpsets/rds/RDSClusterEncryptedAtRest.ts b/src/bpsets/rds/RDSClusterEncryptedAtRest.ts index ac53ca8..6494a1b 100644 --- a/src/bpsets/rds/RDSClusterEncryptedAtRest.ts +++ b/src/bpsets/rds/RDSClusterEncryptedAtRest.ts @@ -3,7 +3,7 @@ import { DescribeDBClustersCommand, ModifyDBClusterCommand } from '@aws-sdk/client-rds' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class RDSClusterEncryptedAtRest implements BPSet { diff --git a/src/bpsets/rds/RDSClusterIAMAuthenticationEnabled.ts b/src/bpsets/rds/RDSClusterIAMAuthenticationEnabled.ts index 2c01579..555607a 100644 --- a/src/bpsets/rds/RDSClusterIAMAuthenticationEnabled.ts +++ b/src/bpsets/rds/RDSClusterIAMAuthenticationEnabled.ts @@ -3,7 +3,7 @@ import { DescribeDBClustersCommand, ModifyDBClusterCommand } from '@aws-sdk/client-rds' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class RDSClusterIAMAuthenticationEnabled implements BPSet { diff --git a/src/bpsets/rds/RDSClusterMultiAZEnabled.ts b/src/bpsets/rds/RDSClusterMultiAZEnabled.ts index b56b6a2..0c79b11 100644 --- a/src/bpsets/rds/RDSClusterMultiAZEnabled.ts +++ b/src/bpsets/rds/RDSClusterMultiAZEnabled.ts @@ -3,7 +3,7 @@ import { DescribeDBClustersCommand, ModifyDBClusterCommand } from '@aws-sdk/client-rds' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class RDSClusterMultiAZEnabled implements BPSet { diff --git a/src/bpsets/rds/RDSDBSecurityGroupNotAllowed.ts b/src/bpsets/rds/RDSDBSecurityGroupNotAllowed.ts index d5274b6..5d07774 100644 --- a/src/bpsets/rds/RDSDBSecurityGroupNotAllowed.ts +++ b/src/bpsets/rds/RDSDBSecurityGroupNotAllowed.ts @@ -4,7 +4,7 @@ import { ModifyDBClusterCommand } from '@aws-sdk/client-rds' import { EC2Client, DescribeSecurityGroupsCommand } from '@aws-sdk/client-ec2' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class RDSDBSecurityGroupNotAllowed implements BPSet { diff --git a/src/bpsets/rds/RDSEnhancedMonitoringEnabled.ts b/src/bpsets/rds/RDSEnhancedMonitoringEnabled.ts index 7c27a7b..82dace9 100644 --- a/src/bpsets/rds/RDSEnhancedMonitoringEnabled.ts +++ b/src/bpsets/rds/RDSEnhancedMonitoringEnabled.ts @@ -3,7 +3,7 @@ import { DescribeDBInstancesCommand, ModifyDBInstanceCommand } from '@aws-sdk/client-rds' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class RDSEnhancedMonitoringEnabled implements BPSet { diff --git a/src/bpsets/rds/RDSInstancePublicAccessCheck.ts b/src/bpsets/rds/RDSInstancePublicAccessCheck.ts index d86c081..cdc6b7d 100644 --- a/src/bpsets/rds/RDSInstancePublicAccessCheck.ts +++ b/src/bpsets/rds/RDSInstancePublicAccessCheck.ts @@ -3,7 +3,7 @@ import { DescribeDBInstancesCommand, ModifyDBInstanceCommand } from '@aws-sdk/client-rds' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class RDSInstancePublicAccessCheck implements BPSet { diff --git a/src/bpsets/rds/RDSLoggingEnabled.ts b/src/bpsets/rds/RDSLoggingEnabled.ts index d1867d6..91af5e1 100644 --- a/src/bpsets/rds/RDSLoggingEnabled.ts +++ b/src/bpsets/rds/RDSLoggingEnabled.ts @@ -3,7 +3,7 @@ import { DescribeDBClustersCommand, ModifyDBClusterCommand } from '@aws-sdk/client-rds' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class RDSLoggingEnabled implements BPSet { diff --git a/src/bpsets/rds/RDSSnapshotEncrypted.ts b/src/bpsets/rds/RDSSnapshotEncrypted.ts index 98fe85c..a2b9eec 100644 --- a/src/bpsets/rds/RDSSnapshotEncrypted.ts +++ b/src/bpsets/rds/RDSSnapshotEncrypted.ts @@ -3,7 +3,7 @@ import { DescribeDBClusterSnapshotsCommand, CopyDBClusterSnapshotCommand } from '@aws-sdk/client-rds' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class RDSSnapshotEncrypted implements BPSet { diff --git a/src/bpsets/s3/S3AccessPointInVpcOnly.ts b/src/bpsets/s3/S3AccessPointInVpcOnly.ts index 5454322..c1c579e 100644 --- a/src/bpsets/s3/S3AccessPointInVpcOnly.ts +++ b/src/bpsets/s3/S3AccessPointInVpcOnly.ts @@ -5,7 +5,7 @@ import { CreateAccessPointCommand } from '@aws-sdk/client-s3-control' import { STSClient, GetCallerIdentityCommand } from '@aws-sdk/client-sts' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class S3AccessPointInVpcOnly implements BPSet { diff --git a/src/bpsets/s3/S3BucketDefaultLockEnabled.ts b/src/bpsets/s3/S3BucketDefaultLockEnabled.ts index d75fa2a..6210251 100644 --- a/src/bpsets/s3/S3BucketDefaultLockEnabled.ts +++ b/src/bpsets/s3/S3BucketDefaultLockEnabled.ts @@ -4,7 +4,7 @@ import { GetObjectLockConfigurationCommand, PutObjectLockConfigurationCommand } from '@aws-sdk/client-s3' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class S3BucketDefaultLockEnabled implements BPSet { diff --git a/src/bpsets/s3/S3BucketLevelPublicAccessProhibited.ts b/src/bpsets/s3/S3BucketLevelPublicAccessProhibited.ts index 4020a2f..e62c76e 100644 --- a/src/bpsets/s3/S3BucketLevelPublicAccessProhibited.ts +++ b/src/bpsets/s3/S3BucketLevelPublicAccessProhibited.ts @@ -4,7 +4,7 @@ import { GetPublicAccessBlockCommand, PutPublicAccessBlockCommand } from '@aws-sdk/client-s3' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class S3BucketLevelPublicAccessProhibited implements BPSet { diff --git a/src/bpsets/s3/S3BucketLoggingEnabled.ts b/src/bpsets/s3/S3BucketLoggingEnabled.ts index c48a29d..be60647 100644 --- a/src/bpsets/s3/S3BucketLoggingEnabled.ts +++ b/src/bpsets/s3/S3BucketLoggingEnabled.ts @@ -4,7 +4,7 @@ import { GetBucketLoggingCommand, PutBucketLoggingCommand } from '@aws-sdk/client-s3' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class S3BucketLoggingEnabled implements BPSet { diff --git a/src/bpsets/s3/S3BucketSSLRequestsOnly.ts b/src/bpsets/s3/S3BucketSSLRequestsOnly.ts index b27b6bf..46099f7 100644 --- a/src/bpsets/s3/S3BucketSSLRequestsOnly.ts +++ b/src/bpsets/s3/S3BucketSSLRequestsOnly.ts @@ -4,7 +4,7 @@ import { GetBucketPolicyCommand, PutBucketPolicyCommand } from '@aws-sdk/client-s3' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class S3BucketSSLRequestsOnly implements BPSet { diff --git a/src/bpsets/s3/S3BucketVersioningEnabled.ts b/src/bpsets/s3/S3BucketVersioningEnabled.ts index e9bf8a1..2514d8a 100644 --- a/src/bpsets/s3/S3BucketVersioningEnabled.ts +++ b/src/bpsets/s3/S3BucketVersioningEnabled.ts @@ -4,7 +4,7 @@ import { GetBucketVersioningCommand, PutBucketVersioningCommand } from '@aws-sdk/client-s3' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class S3BucketVersioningEnabled implements BPSet { diff --git a/src/bpsets/s3/S3DefaultEncryptionKMS.ts b/src/bpsets/s3/S3DefaultEncryptionKMS.ts index 93da7ef..d90d46f 100644 --- a/src/bpsets/s3/S3DefaultEncryptionKMS.ts +++ b/src/bpsets/s3/S3DefaultEncryptionKMS.ts @@ -4,7 +4,7 @@ import { GetBucketEncryptionCommand, PutBucketEncryptionCommand } from '@aws-sdk/client-s3' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class S3DefaultEncryptionKMS implements BPSet { diff --git a/src/bpsets/s3/S3EventNotificationsEnabled.ts b/src/bpsets/s3/S3EventNotificationsEnabled.ts index 56ce14e..7c925ae 100644 --- a/src/bpsets/s3/S3EventNotificationsEnabled.ts +++ b/src/bpsets/s3/S3EventNotificationsEnabled.ts @@ -4,7 +4,7 @@ import { GetBucketNotificationConfigurationCommand, PutBucketNotificationConfigurationCommand } from '@aws-sdk/client-s3' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class S3EventNotificationsEnabled implements BPSet { diff --git a/src/bpsets/s3/S3LastBackupRecoveryPointCreated.ts b/src/bpsets/s3/S3LastBackupRecoveryPointCreated.ts index e58ff62..418fb4c 100644 --- a/src/bpsets/s3/S3LastBackupRecoveryPointCreated.ts +++ b/src/bpsets/s3/S3LastBackupRecoveryPointCreated.ts @@ -3,7 +3,7 @@ import { ListBucketsCommand } from '@aws-sdk/client-s3' import { BackupClient, ListRecoveryPointsByResourceCommand } from '@aws-sdk/client-backup' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class S3LastBackupRecoveryPointCreated implements BPSet { diff --git a/src/bpsets/s3/S3LifecyclePolicyCheck.ts b/src/bpsets/s3/S3LifecyclePolicyCheck.ts index 47725da..4903aca 100644 --- a/src/bpsets/s3/S3LifecyclePolicyCheck.ts +++ b/src/bpsets/s3/S3LifecyclePolicyCheck.ts @@ -4,7 +4,7 @@ import { GetBucketLifecycleConfigurationCommand, PutBucketLifecycleConfigurationCommand } from '@aws-sdk/client-s3' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class S3LifecyclePolicyCheck implements BPSet { diff --git a/src/bpsets/secretsmanager/SecretsManagerRotationEnabledCheck.ts b/src/bpsets/secretsmanager/SecretsManagerRotationEnabledCheck.ts index 54ed7a7..8393d0b 100644 --- a/src/bpsets/secretsmanager/SecretsManagerRotationEnabledCheck.ts +++ b/src/bpsets/secretsmanager/SecretsManagerRotationEnabledCheck.ts @@ -4,7 +4,7 @@ import { RotateSecretCommand, UpdateSecretCommand } from '@aws-sdk/client-secrets-manager' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class SecretsManagerRotationEnabledCheck implements BPSet { diff --git a/src/bpsets/secretsmanager/SecretsManagerScheduledRotationSuccessCheck.ts b/src/bpsets/secretsmanager/SecretsManagerScheduledRotationSuccessCheck.ts index 8052656..6663418 100644 --- a/src/bpsets/secretsmanager/SecretsManagerScheduledRotationSuccessCheck.ts +++ b/src/bpsets/secretsmanager/SecretsManagerScheduledRotationSuccessCheck.ts @@ -3,7 +3,7 @@ import { ListSecretsCommand, RotateSecretCommand } from '@aws-sdk/client-secrets-manager' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class SecretsManagerScheduledRotationSuccessCheck implements BPSet { diff --git a/src/bpsets/secretsmanager/SecretsManagerSecretPeriodicRotation.ts b/src/bpsets/secretsmanager/SecretsManagerSecretPeriodicRotation.ts index 7f8faa1..3d8f14b 100644 --- a/src/bpsets/secretsmanager/SecretsManagerSecretPeriodicRotation.ts +++ b/src/bpsets/secretsmanager/SecretsManagerSecretPeriodicRotation.ts @@ -3,7 +3,7 @@ import { ListSecretsCommand, RotateSecretCommand } from '@aws-sdk/client-secrets-manager' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class SecretsManagerSecretPeriodicRotation implements BPSet { diff --git a/src/bpsets/securityhub/SecurityHubEnabled.ts b/src/bpsets/securityhub/SecurityHubEnabled.ts index 2d2e044..1f0d035 100644 --- a/src/bpsets/securityhub/SecurityHubEnabled.ts +++ b/src/bpsets/securityhub/SecurityHubEnabled.ts @@ -4,7 +4,7 @@ import { EnableSecurityHubCommand } from '@aws-sdk/client-securityhub' import { STSClient, GetCallerIdentityCommand } from '@aws-sdk/client-sts' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class SecurityHubEnabled implements BPSet { diff --git a/src/bpsets/sns/SNSEncryptedKMS.ts b/src/bpsets/sns/SNSEncryptedKMS.ts index dcc3000..c67451a 100644 --- a/src/bpsets/sns/SNSEncryptedKMS.ts +++ b/src/bpsets/sns/SNSEncryptedKMS.ts @@ -4,7 +4,7 @@ import { GetTopicAttributesCommand, SetTopicAttributesCommand } from '@aws-sdk/client-sns' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class SNSEncryptedKMS implements BPSet { diff --git a/src/bpsets/sns/SNSTopicMessageDeliveryNotificationEnabled.ts b/src/bpsets/sns/SNSTopicMessageDeliveryNotificationEnabled.ts index 073405f..9d0681b 100644 --- a/src/bpsets/sns/SNSTopicMessageDeliveryNotificationEnabled.ts +++ b/src/bpsets/sns/SNSTopicMessageDeliveryNotificationEnabled.ts @@ -4,7 +4,7 @@ import { GetTopicAttributesCommand, SetTopicAttributesCommand } from '@aws-sdk/client-sns' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class SNSTopicMessageDeliveryNotificationEnabled implements BPSet { diff --git a/src/bpsets/vpc/EC2TransitGatewayAutoVPCAttachDisabled.ts b/src/bpsets/vpc/EC2TransitGatewayAutoVPCAttachDisabled.ts index a1068d6..45a4908 100644 --- a/src/bpsets/vpc/EC2TransitGatewayAutoVPCAttachDisabled.ts +++ b/src/bpsets/vpc/EC2TransitGatewayAutoVPCAttachDisabled.ts @@ -3,7 +3,7 @@ import { DescribeTransitGatewaysCommand, ModifyTransitGatewayCommand } from '@aws-sdk/client-ec2' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class EC2TransitGatewayAutoVPCAttachDisabled implements BPSet { diff --git a/src/bpsets/vpc/RestrictedCommonPorts.ts b/src/bpsets/vpc/RestrictedCommonPorts.ts index c68002b..cc1293f 100644 --- a/src/bpsets/vpc/RestrictedCommonPorts.ts +++ b/src/bpsets/vpc/RestrictedCommonPorts.ts @@ -3,7 +3,7 @@ import { DescribeSecurityGroupRulesCommand, RevokeSecurityGroupIngressCommand } from '@aws-sdk/client-ec2' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class RestrictedCommonPorts implements BPSet { diff --git a/src/bpsets/vpc/RestrictedSSH.ts b/src/bpsets/vpc/RestrictedSSH.ts index c0264e7..685aa7f 100644 --- a/src/bpsets/vpc/RestrictedSSH.ts +++ b/src/bpsets/vpc/RestrictedSSH.ts @@ -3,7 +3,7 @@ import { DescribeSecurityGroupRulesCommand, RevokeSecurityGroupIngressCommand } from '@aws-sdk/client-ec2' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class RestrictedSSH implements BPSet { diff --git a/src/bpsets/vpc/SubnetAutoAssignPublicIPDisabled.ts b/src/bpsets/vpc/SubnetAutoAssignPublicIPDisabled.ts index c42426f..6909d35 100644 --- a/src/bpsets/vpc/SubnetAutoAssignPublicIPDisabled.ts +++ b/src/bpsets/vpc/SubnetAutoAssignPublicIPDisabled.ts @@ -3,7 +3,7 @@ import { DescribeSubnetsCommand, ModifySubnetAttributeCommand } from '@aws-sdk/client-ec2' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class SubnetAutoAssignPublicIPDisabled implements BPSet { diff --git a/src/bpsets/vpc/VPCDefaultSecurityGroupClosed.ts b/src/bpsets/vpc/VPCDefaultSecurityGroupClosed.ts index 49e9fb3..4952d09 100644 --- a/src/bpsets/vpc/VPCDefaultSecurityGroupClosed.ts +++ b/src/bpsets/vpc/VPCDefaultSecurityGroupClosed.ts @@ -4,7 +4,7 @@ import { RevokeSecurityGroupIngressCommand, RevokeSecurityGroupEgressCommand } from '@aws-sdk/client-ec2' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class VPCDefaultSecurityGroupClosed implements BPSet { diff --git a/src/bpsets/vpc/VPCFlowLogsEnabled.ts b/src/bpsets/vpc/VPCFlowLogsEnabled.ts index 62bf533..3db350e 100644 --- a/src/bpsets/vpc/VPCFlowLogsEnabled.ts +++ b/src/bpsets/vpc/VPCFlowLogsEnabled.ts @@ -4,7 +4,7 @@ import { DescribeFlowLogsCommand, CreateFlowLogsCommand } from '@aws-sdk/client-ec2' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class VPCFlowLogsEnabled implements BPSet { diff --git a/src/bpsets/vpc/VPCNetworkACLUnusedCheck.ts b/src/bpsets/vpc/VPCNetworkACLUnusedCheck.ts index f2382c0..8dc7478 100644 --- a/src/bpsets/vpc/VPCNetworkACLUnusedCheck.ts +++ b/src/bpsets/vpc/VPCNetworkACLUnusedCheck.ts @@ -3,7 +3,7 @@ import { DescribeNetworkAclsCommand, DeleteNetworkAclCommand } from '@aws-sdk/client-ec2' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class VPCNetworkACLUnusedCheck implements BPSet { diff --git a/src/bpsets/vpc/VPCPeeringDNSResolutionCheck.ts b/src/bpsets/vpc/VPCPeeringDNSResolutionCheck.ts index dd8afc3..47db69e 100644 --- a/src/bpsets/vpc/VPCPeeringDNSResolutionCheck.ts +++ b/src/bpsets/vpc/VPCPeeringDNSResolutionCheck.ts @@ -3,7 +3,7 @@ import { DescribeVpcPeeringConnectionsCommand, ModifyVpcPeeringConnectionOptionsCommand } from '@aws-sdk/client-ec2' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class VPCPeeringDNSResolutionCheck implements BPSet { diff --git a/src/bpsets/vpc/VPCSGOpenOnlyToAuthorizedPorts.ts b/src/bpsets/vpc/VPCSGOpenOnlyToAuthorizedPorts.ts index dafbc40..501dad2 100644 --- a/src/bpsets/vpc/VPCSGOpenOnlyToAuthorizedPorts.ts +++ b/src/bpsets/vpc/VPCSGOpenOnlyToAuthorizedPorts.ts @@ -3,7 +3,7 @@ import { DescribeSecurityGroupRulesCommand, RevokeSecurityGroupIngressCommand } from '@aws-sdk/client-ec2' -import { BPSet } from '../BPSet' +import { BPSet } from '../../types' import { Memorizer } from '../../Memorizer' export class VPCSGOpenOnlyToAuthorizedPorts implements BPSet { diff --git a/src/bpsets/waf/WAFv2LoggingEnabled.ts b/src/bpsets/waf/WAFv2LoggingEnabled.ts index 02db714..9d6bffc 100644 --- a/src/bpsets/waf/WAFv2LoggingEnabled.ts +++ b/src/bpsets/waf/WAFv2LoggingEnabled.ts @@ -4,7 +4,7 @@ import { GetLoggingConfigurationCommand, PutLoggingConfigurationCommand, } from '@aws-sdk/client-wafv2'; -import { BPSet } from '../BPSet'; +import { BPSet } from '../../types'; import { Memorizer } from '../../Memorizer'; export class WAFv2LoggingEnabled implements BPSet { diff --git a/src/bpsets/waf/WAFv2RuleGroupLoggingEnabled.ts b/src/bpsets/waf/WAFv2RuleGroupLoggingEnabled.ts index 9d12e80..cd2c863 100644 --- a/src/bpsets/waf/WAFv2RuleGroupLoggingEnabled.ts +++ b/src/bpsets/waf/WAFv2RuleGroupLoggingEnabled.ts @@ -4,7 +4,7 @@ import { GetRuleGroupCommand, UpdateRuleGroupCommand, } from '@aws-sdk/client-wafv2'; -import { BPSet } from '../BPSet'; +import { BPSet } from '../../types'; import { Memorizer } from '../../Memorizer'; export class WAFv2RuleGroupLoggingEnabled implements BPSet { diff --git a/src/bpsets/waf/WAFv2RuleGroupNotEmpty.ts b/src/bpsets/waf/WAFv2RuleGroupNotEmpty.ts index 1b553ed..71b71b4 100644 --- a/src/bpsets/waf/WAFv2RuleGroupNotEmpty.ts +++ b/src/bpsets/waf/WAFv2RuleGroupNotEmpty.ts @@ -4,7 +4,7 @@ import { GetRuleGroupCommand, UpdateRuleGroupCommand } from '@aws-sdk/client-wafv2'; -import { BPSet } from '../BPSet'; +import { BPSet } from '../../types'; import { Memorizer } from '../../Memorizer'; export class WAFv2RuleGroupNotEmpty implements BPSet { diff --git a/src/bpsets/waf/WAFv2WebACLNotEmpty.ts b/src/bpsets/waf/WAFv2WebACLNotEmpty.ts index da105f7..968b046 100644 --- a/src/bpsets/waf/WAFv2WebACLNotEmpty.ts +++ b/src/bpsets/waf/WAFv2WebACLNotEmpty.ts @@ -4,7 +4,7 @@ import { GetWebACLCommand, UpdateWebACLCommand } from '@aws-sdk/client-wafv2'; -import { BPSet } from '../BPSet'; +import { BPSet } from '../../types'; import { Memorizer } from '../../Memorizer'; export class WAFv2WebACLNotEmpty implements BPSet { diff --git a/src/main.ts b/src/main.ts index 334cd08..c622f33 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,9 +1,3 @@ -import { S3BucketVersioningEnabled } from "./bpsets/s3/S3BucketVersioningEnabled"; +import { WebServer } from "./WebServer" -new S3BucketVersioningEnabled() - .check() - .then(({ nonCompliantResources }) => { - new S3BucketVersioningEnabled() - .fix(nonCompliantResources, []) - .then(() => console.log('Done')) - }) +new WebServer() diff --git a/src/bpsets/BPSet.ts b/src/types.d.ts similarity index 50% rename from src/bpsets/BPSet.ts rename to src/types.d.ts index 82cd59f..da4f537 100644 --- a/src/bpsets/BPSet.ts +++ b/src/types.d.ts @@ -22,3 +22,29 @@ export interface BPSet { }[] ) => Promise } + +export interface BPSetMetadata { + name: string + description: string + priority: number + priorityReason: string + awsService: string + awsServiceCategory: string + bestPracticeCategory: string + requiredParametersForFix: { + name: string + description: string + default: string + example: string + }[] + isFixFunctionUsesDestructiveCommand: boolean + commandUsedInCheckFunction: { + name: string + reason: string + }[] + commandUsedInFixFunction: { + name: string + reason: string + }[] + adviseBeforeFixFunction: string +}