From 56f64f61264fef2a70f2b6d5ad2b775e184591ca Mon Sep 17 00:00:00 2001 From: Andrew Hammond <445764+ahammond@users.noreply.github.com> Date: Tue, 28 May 2024 12:34:48 -0700 Subject: [PATCH] fix: remove unused aws-sdk dep [INFRA-9971] --- .projen/deps.json | 4 - .projen/tasks.json | 4 +- .projenrc.ts | 2 +- package.json | 6 +- pnpm-lock.yaml | 135 +----------------- ...service-quotas-metric-publisher.monitor.ts | 7 +- 6 files changed, 13 insertions(+), 145 deletions(-) diff --git a/.projen/deps.json b/.projen/deps.json index 7308c3e..657817f 100644 --- a/.projen/deps.json +++ b/.projen/deps.json @@ -126,10 +126,6 @@ "name": "@aws-sdk/client-service-quotas", "type": "bundled" }, - { - "name": "aws-sdk", - "type": "bundled" - }, { "name": "@aws-cdk/integ-runner", "version": "latest", diff --git a/.projen/tasks.json b/.projen/tasks.json index c0ad7ba..2484686 100644 --- a/.projen/tasks.json +++ b/.projen/tasks.json @@ -310,13 +310,13 @@ }, "steps": [ { - "exec": "pnpm dlx npm-check-updates@16 --upgrade --target=minor --peer --dep=dev,peer,prod,optional --filter=@aws-cdk/integ-tests-alpha,@time-loop/clickup-projen,@types/jest,aws-sdk-client-mock,esbuild,eslint-config-prettier,eslint-import-resolver-typescript,eslint-plugin-import,eslint-plugin-prettier,jest,jsii-diff,jsii-docgen,jsii-pacmak,jsii-release,prettier,projen,ts-jest,@aws-sdk/client-cloudwatch,@aws-sdk/client-service-quotas,aws-sdk,multi-convention-namer" + "exec": "pnpm dlx npm-check-updates@16 --upgrade --target=minor --peer --dep=dev,peer,prod,optional --filter=@aws-cdk/integ-tests-alpha,@time-loop/clickup-projen,@types/jest,aws-sdk-client-mock,esbuild,eslint-config-prettier,eslint-import-resolver-typescript,eslint-plugin-import,eslint-plugin-prettier,jest,jsii-diff,jsii-docgen,jsii-pacmak,jsii-release,prettier,projen,ts-jest,@aws-sdk/client-cloudwatch,@aws-sdk/client-service-quotas,multi-convention-namer" }, { "exec": "pnpm i --no-frozen-lockfile" }, { - "exec": "pnpm update @aws-cdk/integ-tests-alpha @time-loop/clickup-projen @types/jest @types/node @typescript-eslint/eslint-plugin @typescript-eslint/parser aws-sdk-client-mock esbuild eslint-config-prettier eslint-import-resolver-typescript eslint-plugin-import eslint-plugin-prettier eslint jest jest-junit jsii-diff jsii-docgen jsii-pacmak jsii-release jsii-rosetta jsii prettier projen standard-version ts-jest ts-node typescript @aws-sdk/client-cloudwatch @aws-sdk/client-service-quotas aws-sdk @aws-cdk/integ-runner aws-cdk-lib constructs multi-convention-namer" + "exec": "pnpm update @aws-cdk/integ-tests-alpha @time-loop/clickup-projen @types/jest @types/node @typescript-eslint/eslint-plugin @typescript-eslint/parser aws-sdk-client-mock esbuild eslint-config-prettier eslint-import-resolver-typescript eslint-plugin-import eslint-plugin-prettier eslint jest jest-junit jsii-diff jsii-docgen jsii-pacmak jsii-release jsii-rosetta jsii prettier projen standard-version ts-jest ts-node typescript @aws-sdk/client-cloudwatch @aws-sdk/client-service-quotas @aws-cdk/integ-runner aws-cdk-lib constructs multi-convention-namer" }, { "exec": "npx projen" diff --git a/.projenrc.ts b/.projenrc.ts index 377ac01..f712392 100644 --- a/.projenrc.ts +++ b/.projenrc.ts @@ -15,7 +15,7 @@ const project = new clickupCdk.ClickUpCdkConstructLibrary({ pnpmVersion: '9', repositoryUrl: `https://github.com/time-loop/${name}.git`, - bundledDeps: ['aws-sdk', '@aws-sdk/client-cloudwatch', '@aws-sdk/client-service-quotas'], + bundledDeps: ['@aws-sdk/client-cloudwatch', '@aws-sdk/client-service-quotas'], devDeps: ['@time-loop/clickup-projen', '@aws-cdk/integ-tests-alpha', 'aws-sdk-client-mock'], peerDeps: ['multi-convention-namer'], }); diff --git a/package.json b/package.json index 7461140..cebbf17 100644 --- a/package.json +++ b/package.json @@ -76,13 +76,11 @@ }, "dependencies": { "@aws-sdk/client-cloudwatch": "^3.583.0", - "@aws-sdk/client-service-quotas": "^3.583.0", - "aws-sdk": "^2.1628.0" + "@aws-sdk/client-service-quotas": "^3.583.0" }, "bundledDependencies": [ "@aws-sdk/client-cloudwatch", - "@aws-sdk/client-service-quotas", - "aws-sdk" + "@aws-sdk/client-service-quotas" ], "pnpm": {}, "keywords": [ diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 02f38cc..751f03e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -14,9 +14,6 @@ importers: '@aws-sdk/client-service-quotas': specifier: ^3.583.0 version: 3.583.0 - aws-sdk: - specifier: ^2.1628.0 - version: 2.1628.0 devDependencies: '@aws-cdk/integ-runner': specifier: latest @@ -1214,10 +1211,6 @@ packages: aws-sdk-client-mock@4.0.0: resolution: {integrity: sha512-/rxo+pzCFaUozK7TyCqo3GYwzdBGn9Ai6EsT8ytXDoUXlD/Q5hw9hj2lOkCAyubECzGJFHMmQg9GZ1GOGlN/qQ==} - aws-sdk@2.1628.0: - resolution: {integrity: sha512-mUjvITHmV46JbCTQR8TovWzJEHZtbC9cTRySXyuIuuYQNjA2RrbfqLXXKR/xru+vPFKnfTLw+QQ/BC2l1/Ln5g==} - engines: {node: '>= 10.0.0'} - babel-jest@29.7.0: resolution: {integrity: sha512-BrvGY3xZSwEcCzKvKsCi2GgHqDqsYkOP4/by5xCgIwGXQxIEh+8ew3gmrE1y7XRR6LHZIj6yLYnUi/mm2KXKBg==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} @@ -1246,9 +1239,6 @@ packages: balanced-match@1.0.2: resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} - base64-js@1.5.1: - resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==} - bowser@2.11.0: resolution: {integrity: sha512-AlcaJBi/pqqJBIQ8U9Mcpc9i8Aqxn88Skv5d+xBX006BY5u8N3mGLHa5Lgppa7L/HfwgwLgZ6NYs+Ag6uUmJRA==} @@ -1277,9 +1267,6 @@ packages: buffer-from@1.1.2: resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==} - buffer@4.9.2: - resolution: {integrity: sha512-xq+q3SRMOxGivLhBNaUdC64hDTQwejJ+H0T/NB1XMtTVEwNTrfFF3gAxiyW0Bu/xWEGhjVKgUcMhCrUy2+uCWg==} - call-bind@1.0.7: resolution: {integrity: sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==} engines: {node: '>= 0.4'} @@ -1373,7 +1360,7 @@ packages: resolution: {integrity: sha512-zHig5N+tPWARooBnb0Zx1MFcdfpyJrfTJ3Y5L+IFvUm8rM74hHz66z0gw0x4tijh5CorKkKUCnW82R2vmpeCRA==} concat-map@0.0.1: - resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==} + resolution: {integrity: sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=} concat-stream@2.0.0: resolution: {integrity: sha512-MWufYdFw53ccGjCA+Ol7XJYpAlW6/prSMzuPOTRnJGcGzuhLn4Scrz7qf6o8bROZ514ltazcIFJZevcfbo0x7A==} @@ -1772,10 +1759,6 @@ packages: eventemitter3@4.0.7: resolution: {integrity: sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==} - events@1.1.1: - resolution: {integrity: sha512-kEcvvCBByWXGnZy6JUlgAp2gBIUjfCAV6P6TgT1/aaQKcmuAEC4OZTV1I4EWQLz2gxZw76atuVyvHhTxvi0Flw==} - engines: {node: '>=0.4.x'} - execa@5.1.1: resolution: {integrity: sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==} engines: {node: '>=10'} @@ -2040,9 +2023,6 @@ packages: resolution: {integrity: sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==} engines: {node: '>=10.17.0'} - ieee754@1.1.13: - resolution: {integrity: sha512-4vf7I2LYV/HaWerSo3XmlMkp5eZ83i+/CDluXi/IGTs/O1sejBNhTtnxzmRZfvOUqj7lZjqHkeTvpgSFDlWZTg==} - ignore@5.3.1: resolution: {integrity: sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==} engines: {node: '>= 4'} @@ -2082,10 +2062,6 @@ packages: resolution: {integrity: sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==} engines: {node: '>= 0.10'} - is-arguments@1.1.1: - resolution: {integrity: sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==} - engines: {node: '>= 0.4'} - is-array-buffer@3.0.4: resolution: {integrity: sha512-wcjaerHw0ydZwfhiKbXJWLDY8A7yV7KhjQOpb83hGgGfId/aQa4TOvwyzn2PuswW2gPCYEL/nEAiSVpdOj1lXw==} engines: {node: '>= 0.4'} @@ -2127,10 +2103,6 @@ packages: resolution: {integrity: sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==} engines: {node: '>=6'} - is-generator-function@1.0.10: - resolution: {integrity: sha512-jsEjy9l3yiXEQ+PsXdmBwEPcOxaXWLspKdplFUVI9vq1iZgIekeC0L167qeu86czQaxed3q/Uzuw0swL0irL8A==} - engines: {node: '>= 0.4'} - is-glob@4.0.3: resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==} engines: {node: '>=0.10.0'} @@ -2356,10 +2328,6 @@ packages: node-notifier: optional: true - jmespath@0.16.0: - resolution: {integrity: sha512-9FzQjJ7MATs1tSpnco1K6ayiYE3figslrXA72G2HQ/n76RzvYlofyi5QM+iX4YRs/pu3yzxlVQSST23+dMDknw==} - engines: {node: '>= 0.6.0'} - js-tokens@4.0.0: resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} @@ -2850,9 +2818,6 @@ packages: resolution: {integrity: sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==} engines: {node: '>= 6'} - punycode@1.3.2: - resolution: {integrity: sha512-RofWgt/7fL5wP1Y7fxE7/EmTLzQVnB0ycyibJ0OOHIlJqTNzglYFxVwETOcIoJqJmpDXJ9xImDv+Fq34F/d4Dw==} - punycode@2.3.1: resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==} engines: {node: '>=6'} @@ -2864,11 +2829,6 @@ packages: resolution: {integrity: sha512-kV/CThkXo6xyFEZUugw/+pIOywXcDbFYgSct5cT3gqlbkBE1SJdwy6UQoZvodiWF/ckQLZyDE/Bu1M6gVu5lVw==} engines: {node: '>=0.6.0', teleport: '>=0.2.0'} - querystring@0.2.0: - resolution: {integrity: sha512-X/xY82scca2tau62i9mDyU9K+I+djTMUsvwf7xnUX5GLvVzgJybOJf4Y6o9Zx3oJK/LSXg5tTZBjwzqVPaPO2g==} - engines: {node: '>=0.4.x'} - deprecated: The querystring API is considered Legacy. new code should use the URLSearchParams API instead. - queue-microtask@1.2.3: resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} @@ -2974,9 +2934,6 @@ packages: resolution: {integrity: sha512-CdASjNJPvRa7roO6Ra/gLYBTzYzzPyyBXxIMdGW3USQLyjWEls2RgW5UBTXaQVp+OrpeCK3bLem8smtmheoRuw==} engines: {node: '>= 0.4'} - sax@1.2.1: - resolution: {integrity: sha512-8I2a3LovHTOpm7NV5yOyO8IHqgVsfK4+UuySrXU8YXkSRX7k6hCV9b3HrkKCr3nMpgj+0bmocaJJWpvp1oc7ZA==} - semver-intersect@1.5.0: resolution: {integrity: sha512-BDjWX7yCC0haX4W/zrnV2JaMpVirwaEkGOBmgRQtH++F1N3xl9v7k9H44xfTqwl+yLNNSbMKosoVSTIiJVQ2Pw==} @@ -3315,8 +3272,8 @@ packages: engines: {node: '>=14.17'} hasBin: true - typescript@5.5.0-dev.20240527: - resolution: {integrity: sha512-v/CrVgSolgsHvUo7FgaaqYlxX9ZGr0ma12mUnjPYZ6Wimhj95iYrhdEbN2mVPBODRDyvF10/o22eTVBXZPMiqg==} + typescript@5.5.0-dev.20240528: + resolution: {integrity: sha512-lF9CgEwbCTMnq59hkXeSQOzUmqSxkhlTk5DuPKenvpyEVd7r1uH8q8EAgPaKhp5SO5m764uWJvE4MpvyXDKuJw==} engines: {node: '>=14.17'} hasBin: true @@ -3348,19 +3305,9 @@ packages: uri-js@4.4.1: resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} - url@0.10.3: - resolution: {integrity: sha512-hzSUW2q06EqL1gKM/a+obYHLIO6ct2hwPuviqTTOcfFVc61UbfJ2Q32+uGL/HCPxKqrdGB5QUwIe7UqlDgwsOQ==} - util-deprecate@1.0.2: resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} - util@0.12.5: - resolution: {integrity: sha512-kZf/K6hEIrWHI6XqOFUiiMa+79wE/D8Q+NCNAWclkyg3b4d2k7s0QGepNjiABc+aR3N1PAyHL7p6UcLY6LmrnA==} - - uuid@8.0.0: - resolution: {integrity: sha512-jOXGuXZAWdsTH7eZLtyXMqUb9EcWMGZNbL9YcGBJl4MH4nrxHmZJhEHvyLFrkxo+28uLb/NYRcStH48fnD0Vzw==} - hasBin: true - uuid@8.3.2: resolution: {integrity: sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==} hasBin: true @@ -3415,17 +3362,9 @@ packages: resolution: {integrity: sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==} engines: {node: ^12.13.0 || ^14.15.0 || >=16.0.0} - xml2js@0.6.2: - resolution: {integrity: sha512-T4rieHaC1EXcES0Kxxj4JWgaUQHDk+qwHcYOCFHfiwKz7tOVPLq7Hjq9dM1WCMhylqMEfP7hMcOIChvotiZegA==} - engines: {node: '>=4.0.0'} - xml@1.0.1: resolution: {integrity: sha512-huCv9IH9Tcf95zuYCsQraZtWnJvBtLVE0QHMOs8bWyZAFZNDcYjsPq1nEx8jKA9y+Beo9v+7OBPRisQTjinQMw==} - xmlbuilder@11.0.1: - resolution: {integrity: sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==} - engines: {node: '>=4.0'} - xmlbuilder@15.1.1: resolution: {integrity: sha512-yMqGBqtXyeN1e3TGYvgNgDVZ3j84W4cwkOXQswghol6APgZWaff9lnbvN7MHYJOiXsvGPXtjTYJEiC9J2wv9Eg==} engines: {node: '>=8.0'} @@ -5202,19 +5141,6 @@ snapshots: sinon: 16.1.3 tslib: 2.6.2 - aws-sdk@2.1628.0: - dependencies: - buffer: 4.9.2 - events: 1.1.1 - ieee754: 1.1.13 - jmespath: 0.16.0 - querystring: 0.2.0 - sax: 1.2.1 - url: 0.10.3 - util: 0.12.5 - uuid: 8.0.0 - xml2js: 0.6.2 - babel-jest@29.7.0(@babel/core@7.24.5): dependencies: '@babel/core': 7.24.5 @@ -5269,8 +5195,6 @@ snapshots: balanced-match@1.0.2: {} - base64-js@1.5.1: {} - bowser@2.11.0: {} brace-expansion@1.1.11: @@ -5303,12 +5227,6 @@ snapshots: buffer-from@1.1.2: {} - buffer@4.9.2: - dependencies: - base64-js: 1.5.1 - ieee754: 1.1.13 - isarray: 1.0.0 - call-bind@1.0.7: dependencies: es-define-property: 1.0.0 @@ -5653,7 +5571,7 @@ snapshots: dependencies: semver: 7.6.2 shelljs: 0.8.5 - typescript: 5.5.0-dev.20240527 + typescript: 5.5.0-dev.20240528 electron-to-chromium@1.4.763: {} @@ -5931,8 +5849,6 @@ snapshots: eventemitter3@4.0.7: {} - events@1.1.1: {} - execa@5.1.1: dependencies: cross-spawn: 7.0.3 @@ -6221,8 +6137,6 @@ snapshots: human-signals@2.1.0: {} - ieee754@1.1.13: {} - ignore@5.3.1: {} import-fresh@3.3.0: @@ -6256,11 +6170,6 @@ snapshots: interpret@1.4.0: {} - is-arguments@1.1.1: - dependencies: - call-bind: 1.0.7 - has-tostringtag: 1.0.2 - is-array-buffer@3.0.4: dependencies: call-bind: 1.0.7 @@ -6297,10 +6206,6 @@ snapshots: is-generator-fn@2.1.0: {} - is-generator-function@1.0.10: - dependencies: - has-tostringtag: 1.0.2 - is-glob@4.0.3: dependencies: is-extglob: 2.1.1 @@ -6713,8 +6618,6 @@ snapshots: - supports-color - ts-node - jmespath@0.16.0: {} - js-tokens@4.0.0: {} js-yaml@3.14.1: @@ -7220,16 +7123,12 @@ snapshots: kleur: 3.0.3 sisteransi: 1.0.5 - punycode@1.3.2: {} - punycode@2.3.1: {} pure-rand@6.1.0: {} q@1.5.1: {} - querystring@0.2.0: {} - queue-microtask@1.2.3: {} quick-lru@4.0.1: {} @@ -7343,8 +7242,6 @@ snapshots: es-errors: 1.3.0 is-regex: 1.1.4 - sax@1.2.1: {} - semver-intersect@1.5.0: dependencies: semver: 6.3.1 @@ -7702,7 +7599,7 @@ snapshots: typescript@5.3.3: {} - typescript@5.5.0-dev.20240527: {} + typescript@5.5.0-dev.20240528: {} uglify-js@3.17.4: optional: true @@ -7730,23 +7627,8 @@ snapshots: dependencies: punycode: 2.3.1 - url@0.10.3: - dependencies: - punycode: 1.3.2 - querystring: 0.2.0 - util-deprecate@1.0.2: {} - util@0.12.5: - dependencies: - inherits: 2.0.4 - is-arguments: 1.1.1 - is-generator-function: 1.0.10 - is-typed-array: 1.1.13 - which-typed-array: 1.1.15 - - uuid@8.0.0: {} - uuid@8.3.2: {} uuid@9.0.1: {} @@ -7807,15 +7689,8 @@ snapshots: imurmurhash: 0.1.4 signal-exit: 3.0.7 - xml2js@0.6.2: - dependencies: - sax: 1.2.1 - xmlbuilder: 11.0.1 - xml@1.0.1: {} - xmlbuilder@11.0.1: {} - xmlbuilder@15.1.1: {} xtend@4.0.2: {} diff --git a/src/service-quotas-metric-publisher.monitor.ts b/src/service-quotas-metric-publisher.monitor.ts index fb5fd11..158f06a 100644 --- a/src/service-quotas-metric-publisher.monitor.ts +++ b/src/service-quotas-metric-publisher.monitor.ts @@ -13,7 +13,6 @@ import { GetServiceQuotaCommandInput, } from '@aws-sdk/client-service-quotas'; -import { String } from 'aws-sdk/clients/acm'; import { IServiceQuota } from './service-quotas-metric-publisher'; // Define the ServiceQuotaApplied object type @@ -60,9 +59,9 @@ export const monitor = async () => { }.\n Data: ${JSON.stringify(data)}`, ); servicesQuotasApplied.push({ - serviceCode: data.Quota?.ServiceCode as String, - quotaName: data.Quota?.QuotaName as String, - quotaCode: data.Quota?.QuotaCode as String, + serviceCode: data.Quota?.ServiceCode as string, + quotaName: data.Quota?.QuotaName as string, + quotaCode: data.Quota?.QuotaCode as string, value: data.Quota?.Value, }); }