diff --git a/package-lock.json b/package-lock.json index 0e5c8267d40..19d7e45ce8c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1031,6 +1031,1100 @@ "uuid": "dist/bin/uuid" } }, + "node_modules/@amzn/sql-workbench-client": { + "name": "@amzn/sqlworkbench-client", + "version": "3.0.0", + "resolved": "file:src.gen/@amzn/sql-workbench-client/3.0.0.tgz", + "integrity": "sha512-k2sBdb9RhB9A7G1Mz+Jit0r+d8zxBSKxgjlPMavuWmafEIOZlARfM942VX3wtHfrZXfVzpY3cgt3Q5LlElm0YQ==", + "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.922.0", + "@aws-sdk/credential-provider-node": "3.922.0", + "@aws-sdk/middleware-host-header": "3.922.0", + "@aws-sdk/middleware-logger": "3.922.0", + "@aws-sdk/middleware-recursion-detection": "3.922.0", + "@aws-sdk/middleware-user-agent": "3.922.0", + "@aws-sdk/region-config-resolver": "3.922.0", + "@aws-sdk/types": "3.922.0", + "@aws-sdk/util-endpoints": "3.922.0", + "@aws-sdk/util-user-agent-browser": "3.922.0", + "@aws-sdk/util-user-agent-node": "3.922.0", + "@smithy/config-resolver": "^4.4.2", + "@smithy/core": "^3.17.2", + "@smithy/fetch-http-handler": "^5.3.5", + "@smithy/hash-node": "^4.2.4", + "@smithy/invalid-dependency": "^4.2.4", + "@smithy/middleware-content-length": "^4.2.4", + "@smithy/middleware-endpoint": "^4.3.6", + "@smithy/middleware-retry": "^4.4.6", + "@smithy/middleware-serde": "^4.2.4", + "@smithy/middleware-stack": "^4.2.4", + "@smithy/node-config-provider": "^4.3.4", + "@smithy/node-http-handler": "^4.4.4", + "@smithy/protocol-http": "^5.3.4", + "@smithy/smithy-client": "^4.9.2", + "@smithy/types": "^4.8.1", + "@smithy/url-parser": "^4.2.4", + "@smithy/util-base64": "^4.3.0", + "@smithy/util-body-length-browser": "^4.2.0", + "@smithy/util-body-length-node": "^4.2.1", + "@smithy/util-defaults-mode-browser": "^4.3.5", + "@smithy/util-defaults-mode-node": "^4.2.8", + "@smithy/util-endpoints": "^3.2.4", + "@smithy/util-middleware": "^4.2.4", + "@smithy/util-retry": "^4.2.4", + "@smithy/util-stream": "^4.5.5", + "@smithy/util-utf8": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@aws-sdk/client-sso": { + "version": "3.922.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.922.0.tgz", + "integrity": "sha512-jdHs7uy7cSpiMvrxhYmqHyJxgK7hyqw4plG8OQ4YTBpq0SbfAxdoOuOkwJ1IVUUQho4otR1xYYjiX/8e8J8qwQ==", + "license": "Apache-2.0", + "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.922.0", + "@aws-sdk/middleware-host-header": "3.922.0", + "@aws-sdk/middleware-logger": "3.922.0", + "@aws-sdk/middleware-recursion-detection": "3.922.0", + "@aws-sdk/middleware-user-agent": "3.922.0", + "@aws-sdk/region-config-resolver": "3.922.0", + "@aws-sdk/types": "3.922.0", + "@aws-sdk/util-endpoints": "3.922.0", + "@aws-sdk/util-user-agent-browser": "3.922.0", + "@aws-sdk/util-user-agent-node": "3.922.0", + "@smithy/config-resolver": "^4.4.1", + "@smithy/core": "^3.17.2", + "@smithy/fetch-http-handler": "^5.3.5", + "@smithy/hash-node": "^4.2.4", + "@smithy/invalid-dependency": "^4.2.4", + "@smithy/middleware-content-length": "^4.2.4", + "@smithy/middleware-endpoint": "^4.3.6", + "@smithy/middleware-retry": "^4.4.6", + "@smithy/middleware-serde": "^4.2.4", + "@smithy/middleware-stack": "^4.2.4", + "@smithy/node-config-provider": "^4.3.4", + "@smithy/node-http-handler": "^4.4.4", + "@smithy/protocol-http": "^5.3.4", + "@smithy/smithy-client": "^4.9.2", + "@smithy/types": "^4.8.1", + "@smithy/url-parser": "^4.2.4", + "@smithy/util-base64": "^4.3.0", + "@smithy/util-body-length-browser": "^4.2.0", + "@smithy/util-body-length-node": "^4.2.1", + "@smithy/util-defaults-mode-browser": "^4.3.5", + "@smithy/util-defaults-mode-node": "^4.2.7", + "@smithy/util-endpoints": "^3.2.4", + "@smithy/util-middleware": "^4.2.4", + "@smithy/util-retry": "^4.2.4", + "@smithy/util-utf8": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@aws-sdk/core": { + "version": "3.922.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.922.0.tgz", + "integrity": "sha512-EvfP4cqJfpO3L2v5vkIlTkMesPtRwWlMfsaW6Tpfm7iYfBOuTi6jx60pMDMTyJNVfh6cGmXwh/kj1jQdR+w99Q==", + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/types": "3.922.0", + "@aws-sdk/xml-builder": "3.921.0", + "@smithy/core": "^3.17.2", + "@smithy/node-config-provider": "^4.3.4", + "@smithy/property-provider": "^4.2.4", + "@smithy/protocol-http": "^5.3.4", + "@smithy/signature-v4": "^5.3.4", + "@smithy/smithy-client": "^4.9.2", + "@smithy/types": "^4.8.1", + "@smithy/util-base64": "^4.3.0", + "@smithy/util-middleware": "^4.2.4", + "@smithy/util-utf8": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@aws-sdk/credential-provider-env": { + "version": "3.922.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.922.0.tgz", + "integrity": "sha512-WikGQpKkROJSK3D3E7odPjZ8tU7WJp5/TgGdRuZw3izsHUeH48xMv6IznafpRTmvHcjAbDQj4U3CJZNAzOK/OQ==", + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/core": "3.922.0", + "@aws-sdk/types": "3.922.0", + "@smithy/property-provider": "^4.2.4", + "@smithy/types": "^4.8.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@aws-sdk/credential-provider-http": { + "version": "3.922.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-http/-/credential-provider-http-3.922.0.tgz", + "integrity": "sha512-i72DgHMK7ydAEqdzU0Duqh60Q8W59EZmRJ73y0Y5oFmNOqnYsAI+UXyOoCsubp+Dkr6+yOwAn1gPt1XGE9Aowg==", + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/core": "3.922.0", + "@aws-sdk/types": "3.922.0", + "@smithy/fetch-http-handler": "^5.3.5", + "@smithy/node-http-handler": "^4.4.4", + "@smithy/property-provider": "^4.2.4", + "@smithy/protocol-http": "^5.3.4", + "@smithy/smithy-client": "^4.9.2", + "@smithy/types": "^4.8.1", + "@smithy/util-stream": "^4.5.5", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@aws-sdk/credential-provider-ini": { + "version": "3.922.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.922.0.tgz", + "integrity": "sha512-bVF+pI5UCLNkvbiZr/t2fgTtv84s8FCdOGAPxQiQcw5qOZywNuuCCY3wIIchmQr6GJr8YFkEp5LgDCac5EC5aQ==", + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/core": "3.922.0", + "@aws-sdk/credential-provider-env": "3.922.0", + "@aws-sdk/credential-provider-http": "3.922.0", + "@aws-sdk/credential-provider-process": "3.922.0", + "@aws-sdk/credential-provider-sso": "3.922.0", + "@aws-sdk/credential-provider-web-identity": "3.922.0", + "@aws-sdk/nested-clients": "3.922.0", + "@aws-sdk/types": "3.922.0", + "@smithy/credential-provider-imds": "^4.2.4", + "@smithy/property-provider": "^4.2.4", + "@smithy/shared-ini-file-loader": "^4.3.4", + "@smithy/types": "^4.8.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@aws-sdk/credential-provider-node": { + "version": "3.922.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.922.0.tgz", + "integrity": "sha512-agCwaD6mBihToHkjycL8ObIS2XOnWypWZZWhJSoWyHwFrhEKz1zGvgylK9Dc711oUfU+zU6J8e0JPKNJMNb3BQ==", + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/credential-provider-env": "3.922.0", + "@aws-sdk/credential-provider-http": "3.922.0", + "@aws-sdk/credential-provider-ini": "3.922.0", + "@aws-sdk/credential-provider-process": "3.922.0", + "@aws-sdk/credential-provider-sso": "3.922.0", + "@aws-sdk/credential-provider-web-identity": "3.922.0", + "@aws-sdk/types": "3.922.0", + "@smithy/credential-provider-imds": "^4.2.4", + "@smithy/property-provider": "^4.2.4", + "@smithy/shared-ini-file-loader": "^4.3.4", + "@smithy/types": "^4.8.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@aws-sdk/credential-provider-process": { + "version": "3.922.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.922.0.tgz", + "integrity": "sha512-1DZOYezT6okslpvMW7oA2q+y17CJd4fxjNFH0jtThfswdh9CtG62+wxenqO+NExttq0UMaKisrkZiVrYQBTShw==", + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/core": "3.922.0", + "@aws-sdk/types": "3.922.0", + "@smithy/property-provider": "^4.2.4", + "@smithy/shared-ini-file-loader": "^4.3.4", + "@smithy/types": "^4.8.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@aws-sdk/credential-provider-sso": { + "version": "3.922.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.922.0.tgz", + "integrity": "sha512-nbD3G3hShTYxLCkKMqLkLPtKwAAfxdY/k9jHtZmVBFXek2T6tQrqZHKxlAu+fd23Ga4/Aik7DLQQx1RA1a5ipg==", + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/client-sso": "3.922.0", + "@aws-sdk/core": "3.922.0", + "@aws-sdk/token-providers": "3.922.0", + "@aws-sdk/types": "3.922.0", + "@smithy/property-provider": "^4.2.4", + "@smithy/shared-ini-file-loader": "^4.3.4", + "@smithy/types": "^4.8.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@aws-sdk/credential-provider-web-identity": { + "version": "3.922.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.922.0.tgz", + "integrity": "sha512-wjGIhgMHGGQfQTdFaJphNOKyAL8wZs6znJdHADPVURmgR+EWLyN/0fDO1u7wx8xaLMZpbHIFWBEvf9TritR/cQ==", + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/core": "3.922.0", + "@aws-sdk/nested-clients": "3.922.0", + "@aws-sdk/types": "3.922.0", + "@smithy/property-provider": "^4.2.4", + "@smithy/shared-ini-file-loader": "^4.3.4", + "@smithy/types": "^4.8.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@aws-sdk/middleware-host-header": { + "version": "3.922.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.922.0.tgz", + "integrity": "sha512-HPquFgBnq/KqKRVkiuCt97PmWbKtxQ5iUNLEc6FIviqOoZTmaYG3EDsIbuFBz9C4RHJU4FKLmHL2bL3FEId6AA==", + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/types": "3.922.0", + "@smithy/protocol-http": "^5.3.4", + "@smithy/types": "^4.8.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@aws-sdk/middleware-logger": { + "version": "3.922.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.922.0.tgz", + "integrity": "sha512-AkvYO6b80FBm5/kk2E636zNNcNgjztNNUxpqVx+huyGn9ZqGTzS4kLqW2hO6CBe5APzVtPCtiQsXL24nzuOlAg==", + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/types": "3.922.0", + "@smithy/types": "^4.8.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@aws-sdk/middleware-recursion-detection": { + "version": "3.922.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.922.0.tgz", + "integrity": "sha512-TtSCEDonV/9R0VhVlCpxZbp/9sxQvTTRKzIf8LxW3uXpby6Wl8IxEciBJlxmSkoqxh542WRcko7NYODlvL/gDA==", + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/types": "3.922.0", + "@aws/lambda-invoke-store": "^0.1.1", + "@smithy/protocol-http": "^5.3.4", + "@smithy/types": "^4.8.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@aws-sdk/middleware-user-agent": { + "version": "3.922.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.922.0.tgz", + "integrity": "sha512-N4Qx/9KP3oVQBJOrSghhz8iZFtUC2NNeSZt88hpPhbqAEAtuX8aD8OzVcpnAtrwWqy82Yd2YTxlkqMGkgqnBsQ==", + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/core": "3.922.0", + "@aws-sdk/types": "3.922.0", + "@aws-sdk/util-endpoints": "3.922.0", + "@smithy/core": "^3.17.2", + "@smithy/protocol-http": "^5.3.4", + "@smithy/types": "^4.8.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@aws-sdk/nested-clients": { + "version": "3.922.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/nested-clients/-/nested-clients-3.922.0.tgz", + "integrity": "sha512-uYvKCF1TGh/MuJ4TMqmUM0Csuao02HawcseG4LUDyxdUsd/EFuxalWq1Cx4fKZQ2K8F504efZBjctMAMNY+l7A==", + "license": "Apache-2.0", + "dependencies": { + "@aws-crypto/sha256-browser": "5.2.0", + "@aws-crypto/sha256-js": "5.2.0", + "@aws-sdk/core": "3.922.0", + "@aws-sdk/middleware-host-header": "3.922.0", + "@aws-sdk/middleware-logger": "3.922.0", + "@aws-sdk/middleware-recursion-detection": "3.922.0", + "@aws-sdk/middleware-user-agent": "3.922.0", + "@aws-sdk/region-config-resolver": "3.922.0", + "@aws-sdk/types": "3.922.0", + "@aws-sdk/util-endpoints": "3.922.0", + "@aws-sdk/util-user-agent-browser": "3.922.0", + "@aws-sdk/util-user-agent-node": "3.922.0", + "@smithy/config-resolver": "^4.4.1", + "@smithy/core": "^3.17.2", + "@smithy/fetch-http-handler": "^5.3.5", + "@smithy/hash-node": "^4.2.4", + "@smithy/invalid-dependency": "^4.2.4", + "@smithy/middleware-content-length": "^4.2.4", + "@smithy/middleware-endpoint": "^4.3.6", + "@smithy/middleware-retry": "^4.4.6", + "@smithy/middleware-serde": "^4.2.4", + "@smithy/middleware-stack": "^4.2.4", + "@smithy/node-config-provider": "^4.3.4", + "@smithy/node-http-handler": "^4.4.4", + "@smithy/protocol-http": "^5.3.4", + "@smithy/smithy-client": "^4.9.2", + "@smithy/types": "^4.8.1", + "@smithy/url-parser": "^4.2.4", + "@smithy/util-base64": "^4.3.0", + "@smithy/util-body-length-browser": "^4.2.0", + "@smithy/util-body-length-node": "^4.2.1", + "@smithy/util-defaults-mode-browser": "^4.3.5", + "@smithy/util-defaults-mode-node": "^4.2.7", + "@smithy/util-endpoints": "^3.2.4", + "@smithy/util-middleware": "^4.2.4", + "@smithy/util-retry": "^4.2.4", + "@smithy/util-utf8": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@aws-sdk/region-config-resolver": { + "version": "3.922.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.922.0.tgz", + "integrity": "sha512-44Y/rNNwhngR2KHp6gkx//TOr56/hx6s4l+XLjOqH7EBCHL7XhnrT1y92L+DLiroVr1tCSmO8eHQwBv0Y2+mvw==", + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/types": "3.922.0", + "@smithy/config-resolver": "^4.4.1", + "@smithy/node-config-provider": "^4.3.4", + "@smithy/types": "^4.8.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@aws-sdk/token-providers": { + "version": "3.922.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.922.0.tgz", + "integrity": "sha512-/inmPnjZE0ZBE16zaCowAvouSx05FJ7p6BQYuzlJ8vxEU0sS0Hf8fvhuiRnN9V9eDUPIBY+/5EjbMWygXL4wlQ==", + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/core": "3.922.0", + "@aws-sdk/nested-clients": "3.922.0", + "@aws-sdk/types": "3.922.0", + "@smithy/property-provider": "^4.2.4", + "@smithy/shared-ini-file-loader": "^4.3.4", + "@smithy/types": "^4.8.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@aws-sdk/types": { + "version": "3.922.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.922.0.tgz", + "integrity": "sha512-eLA6XjVobAUAMivvM7DBL79mnHyrm+32TkXNWZua5mnxF+6kQCfblKKJvxMZLGosO53/Ex46ogim8IY5Nbqv2w==", + "license": "Apache-2.0", + "dependencies": { + "@smithy/types": "^4.8.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@aws-sdk/util-endpoints": { + "version": "3.922.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.922.0.tgz", + "integrity": "sha512-4ZdQCSuNMY8HMlR1YN4MRDdXuKd+uQTeKIr5/pIM+g3TjInZoj8imvXudjcrFGA63UF3t92YVTkBq88mg58RXQ==", + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/types": "3.922.0", + "@smithy/types": "^4.8.1", + "@smithy/url-parser": "^4.2.4", + "@smithy/util-endpoints": "^3.2.4", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@aws-sdk/util-user-agent-browser": { + "version": "3.922.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.922.0.tgz", + "integrity": "sha512-qOJAERZ3Plj1st7M4Q5henl5FRpE30uLm6L9edZqZXGR6c7ry9jzexWamWVpQ4H4xVAVmiO9dIEBAfbq4mduOA==", + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/types": "3.922.0", + "@smithy/types": "^4.8.1", + "bowser": "^2.11.0", + "tslib": "^2.6.2" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@aws-sdk/util-user-agent-node": { + "version": "3.922.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.922.0.tgz", + "integrity": "sha512-NrPe/Rsr5kcGunkog0eBV+bY0inkRELsD2SacC4lQZvZiXf8VJ2Y7j+Yq1tB+h+FPLsdt3v9wItIvDf/laAm0Q==", + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/middleware-user-agent": "3.922.0", + "@aws-sdk/types": "3.922.0", + "@smithy/node-config-provider": "^4.3.4", + "@smithy/types": "^4.8.1", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + }, + "peerDependencies": { + "aws-crt": ">=1.0.0" + }, + "peerDependenciesMeta": { + "aws-crt": { + "optional": true + } + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@aws-sdk/xml-builder": { + "version": "3.921.0", + "resolved": "https://registry.npmjs.org/@aws-sdk/xml-builder/-/xml-builder-3.921.0.tgz", + "integrity": "sha512-LVHg0jgjyicKKvpNIEMXIMr1EBViESxcPkqfOlT+X1FkmUMTNZEEVF18tOJg4m4hV5vxtkWcqtr4IEeWa1C41Q==", + "license": "Apache-2.0", + "dependencies": { + "@smithy/types": "^4.8.1", + "fast-xml-parser": "5.2.5", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@aws/lambda-invoke-store": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@aws/lambda-invoke-store/-/lambda-invoke-store-0.1.1.tgz", + "integrity": "sha512-RcLam17LdlbSOSp9VxmUu1eI6Mwxp+OwhD2QhiSNmNCzoDb0EeUXTD2n/WbcnrAYMGlmf05th6QYq23VqvJqpA==", + "license": "Apache-2.0", + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@smithy/abort-controller": { + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/@smithy/abort-controller/-/abort-controller-4.2.5.tgz", + "integrity": "sha512-j7HwVkBw68YW8UmFRcjZOmssE77Rvk0GWAIN1oFBhsaovQmZWYCIcGa9/pwRB0ExI8Sk9MWNALTjftjHZea7VA==", + "license": "Apache-2.0", + "dependencies": { + "@smithy/types": "^4.9.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@smithy/config-resolver": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/@smithy/config-resolver/-/config-resolver-4.4.3.tgz", + "integrity": "sha512-ezHLe1tKLUxDJo2LHtDuEDyWXolw8WGOR92qb4bQdWq/zKenO5BvctZGrVJBK08zjezSk7bmbKFOXIVyChvDLw==", + "license": "Apache-2.0", + "dependencies": { + "@smithy/node-config-provider": "^4.3.5", + "@smithy/types": "^4.9.0", + "@smithy/util-config-provider": "^4.2.0", + "@smithy/util-endpoints": "^3.2.5", + "@smithy/util-middleware": "^4.2.5", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@smithy/core": { + "version": "3.18.7", + "resolved": "https://registry.npmjs.org/@smithy/core/-/core-3.18.7.tgz", + "integrity": "sha512-axG9MvKhMWOhFbvf5y2DuyTxQueO0dkedY9QC3mAfndLosRI/9LJv8WaL0mw7ubNhsO4IuXX9/9dYGPFvHrqlw==", + "license": "Apache-2.0", + "dependencies": { + "@smithy/middleware-serde": "^4.2.6", + "@smithy/protocol-http": "^5.3.5", + "@smithy/types": "^4.9.0", + "@smithy/util-base64": "^4.3.0", + "@smithy/util-body-length-browser": "^4.2.0", + "@smithy/util-middleware": "^4.2.5", + "@smithy/util-stream": "^4.5.6", + "@smithy/util-utf8": "^4.2.0", + "@smithy/uuid": "^1.1.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@smithy/credential-provider-imds": { + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/@smithy/credential-provider-imds/-/credential-provider-imds-4.2.5.tgz", + "integrity": "sha512-BZwotjoZWn9+36nimwm/OLIcVe+KYRwzMjfhd4QT7QxPm9WY0HiOV8t/Wlh+HVUif0SBVV7ksq8//hPaBC/okQ==", + "license": "Apache-2.0", + "dependencies": { + "@smithy/node-config-provider": "^4.3.5", + "@smithy/property-provider": "^4.2.5", + "@smithy/types": "^4.9.0", + "@smithy/url-parser": "^4.2.5", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@smithy/fetch-http-handler": { + "version": "5.3.6", + "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-5.3.6.tgz", + "integrity": "sha512-3+RG3EA6BBJ/ofZUeTFJA7mHfSYrZtQIrDP9dI8Lf7X6Jbos2jptuLrAAteDiFVrmbEmLSuRG/bUKzfAXk7dhg==", + "license": "Apache-2.0", + "dependencies": { + "@smithy/protocol-http": "^5.3.5", + "@smithy/querystring-builder": "^4.2.5", + "@smithy/types": "^4.9.0", + "@smithy/util-base64": "^4.3.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@smithy/hash-node": { + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/@smithy/hash-node/-/hash-node-4.2.5.tgz", + "integrity": "sha512-DpYX914YOfA3UDT9CN1BM787PcHfWRBB43fFGCYrZFUH0Jv+5t8yYl+Pd5PW4+QzoGEDvn5d5QIO4j2HyYZQSA==", + "license": "Apache-2.0", + "dependencies": { + "@smithy/types": "^4.9.0", + "@smithy/util-buffer-from": "^4.2.0", + "@smithy/util-utf8": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@smithy/invalid-dependency": { + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/@smithy/invalid-dependency/-/invalid-dependency-4.2.5.tgz", + "integrity": "sha512-2L2erASEro1WC5nV+plwIMxrTXpvpfzl4e+Nre6vBVRR2HKeGGcvpJyyL3/PpiSg+cJG2KpTmZmq934Olb6e5A==", + "license": "Apache-2.0", + "dependencies": { + "@smithy/types": "^4.9.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@smithy/is-array-buffer": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-4.2.0.tgz", + "integrity": "sha512-DZZZBvC7sjcYh4MazJSGiWMI2L7E0oCiRHREDzIxi/M2LY79/21iXt6aPLHge82wi5LsuRF5A06Ds3+0mlh6CQ==", + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@smithy/middleware-content-length": { + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/@smithy/middleware-content-length/-/middleware-content-length-4.2.5.tgz", + "integrity": "sha512-Y/RabVa5vbl5FuHYV2vUCwvh/dqzrEY/K2yWPSqvhFUwIY0atLqO4TienjBXakoy4zrKAMCZwg+YEqmH7jaN7A==", + "license": "Apache-2.0", + "dependencies": { + "@smithy/protocol-http": "^5.3.5", + "@smithy/types": "^4.9.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@smithy/middleware-endpoint": { + "version": "4.3.14", + "resolved": "https://registry.npmjs.org/@smithy/middleware-endpoint/-/middleware-endpoint-4.3.14.tgz", + "integrity": "sha512-v0q4uTKgBM8dsqGjqsabZQyH85nFaTnFcgpWU1uydKFsdyyMzfvOkNum9G7VK+dOP01vUnoZxIeRiJ6uD0kjIg==", + "license": "Apache-2.0", + "dependencies": { + "@smithy/core": "^3.18.7", + "@smithy/middleware-serde": "^4.2.6", + "@smithy/node-config-provider": "^4.3.5", + "@smithy/shared-ini-file-loader": "^4.4.0", + "@smithy/types": "^4.9.0", + "@smithy/url-parser": "^4.2.5", + "@smithy/util-middleware": "^4.2.5", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@smithy/middleware-retry": { + "version": "4.4.14", + "resolved": "https://registry.npmjs.org/@smithy/middleware-retry/-/middleware-retry-4.4.14.tgz", + "integrity": "sha512-Z2DG8Ej7FyWG1UA+7HceINtSLzswUgs2np3sZX0YBBxCt+CXG4QUxv88ZDS3+2/1ldW7LqtSY1UO/6VQ1pND8Q==", + "license": "Apache-2.0", + "dependencies": { + "@smithy/node-config-provider": "^4.3.5", + "@smithy/protocol-http": "^5.3.5", + "@smithy/service-error-classification": "^4.2.5", + "@smithy/smithy-client": "^4.9.10", + "@smithy/types": "^4.9.0", + "@smithy/util-middleware": "^4.2.5", + "@smithy/util-retry": "^4.2.5", + "@smithy/uuid": "^1.1.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@smithy/middleware-serde": { + "version": "4.2.6", + "resolved": "https://registry.npmjs.org/@smithy/middleware-serde/-/middleware-serde-4.2.6.tgz", + "integrity": "sha512-VkLoE/z7e2g8pirwisLz8XJWedUSY8my/qrp81VmAdyrhi94T+riBfwP+AOEEFR9rFTSonC/5D2eWNmFabHyGQ==", + "license": "Apache-2.0", + "dependencies": { + "@smithy/protocol-http": "^5.3.5", + "@smithy/types": "^4.9.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@smithy/middleware-stack": { + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/@smithy/middleware-stack/-/middleware-stack-4.2.5.tgz", + "integrity": "sha512-bYrutc+neOyWxtZdbB2USbQttZN0mXaOyYLIsaTbJhFsfpXyGWUxJpEuO1rJ8IIJm2qH4+xJT0mxUSsEDTYwdQ==", + "license": "Apache-2.0", + "dependencies": { + "@smithy/types": "^4.9.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@smithy/node-config-provider": { + "version": "4.3.5", + "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-4.3.5.tgz", + "integrity": "sha512-UTurh1C4qkVCtqggI36DGbLB2Kv8UlcFdMXDcWMbqVY2uRg0XmT9Pb4Vj6oSQ34eizO1fvR0RnFV4Axw4IrrAg==", + "license": "Apache-2.0", + "dependencies": { + "@smithy/property-provider": "^4.2.5", + "@smithy/shared-ini-file-loader": "^4.4.0", + "@smithy/types": "^4.9.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@smithy/node-http-handler": { + "version": "4.4.5", + "resolved": "https://registry.npmjs.org/@smithy/node-http-handler/-/node-http-handler-4.4.5.tgz", + "integrity": "sha512-CMnzM9R2WqlqXQGtIlsHMEZfXKJVTIrqCNoSd/QpAyp+Dw0a1Vps13l6ma1fH8g7zSPNsA59B/kWgeylFuA/lw==", + "license": "Apache-2.0", + "dependencies": { + "@smithy/abort-controller": "^4.2.5", + "@smithy/protocol-http": "^5.3.5", + "@smithy/querystring-builder": "^4.2.5", + "@smithy/types": "^4.9.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@smithy/property-provider": { + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/@smithy/property-provider/-/property-provider-4.2.5.tgz", + "integrity": "sha512-8iLN1XSE1rl4MuxvQ+5OSk/Zb5El7NJZ1td6Tn+8dQQHIjp59Lwl6bd0+nzw6SKm2wSSriH2v/I9LPzUic7EOg==", + "license": "Apache-2.0", + "dependencies": { + "@smithy/types": "^4.9.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@smithy/protocol-http": { + "version": "5.3.5", + "resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-5.3.5.tgz", + "integrity": "sha512-RlaL+sA0LNMp03bf7XPbFmT5gN+w3besXSWMkA8rcmxLSVfiEXElQi4O2IWwPfxzcHkxqrwBFMbngB8yx/RvaQ==", + "license": "Apache-2.0", + "dependencies": { + "@smithy/types": "^4.9.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@smithy/querystring-builder": { + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/@smithy/querystring-builder/-/querystring-builder-4.2.5.tgz", + "integrity": "sha512-y98otMI1saoajeik2kLfGyRp11e5U/iJYH/wLCh3aTV/XutbGT9nziKGkgCaMD1ghK7p6htHMm6b6scl9JRUWg==", + "license": "Apache-2.0", + "dependencies": { + "@smithy/types": "^4.9.0", + "@smithy/util-uri-escape": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@smithy/querystring-parser": { + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/@smithy/querystring-parser/-/querystring-parser-4.2.5.tgz", + "integrity": "sha512-031WCTdPYgiQRYNPXznHXof2YM0GwL6SeaSyTH/P72M1Vz73TvCNH2Nq8Iu2IEPq9QP2yx0/nrw5YmSeAi/AjQ==", + "license": "Apache-2.0", + "dependencies": { + "@smithy/types": "^4.9.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@smithy/service-error-classification": { + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/@smithy/service-error-classification/-/service-error-classification-4.2.5.tgz", + "integrity": "sha512-8fEvK+WPE3wUAcDvqDQG1Vk3ANLR8Px979te96m84CbKAjBVf25rPYSzb4xU4hlTyho7VhOGnh5i62D/JVF0JQ==", + "license": "Apache-2.0", + "dependencies": { + "@smithy/types": "^4.9.0" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@smithy/shared-ini-file-loader": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-4.4.0.tgz", + "integrity": "sha512-5WmZ5+kJgJDjwXXIzr1vDTG+RhF9wzSODQBfkrQ2VVkYALKGvZX1lgVSxEkgicSAFnFhPj5rudJV0zoinqS0bA==", + "license": "Apache-2.0", + "dependencies": { + "@smithy/types": "^4.9.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@smithy/signature-v4": { + "version": "5.3.5", + "resolved": "https://registry.npmjs.org/@smithy/signature-v4/-/signature-v4-5.3.5.tgz", + "integrity": "sha512-xSUfMu1FT7ccfSXkoLl/QRQBi2rOvi3tiBZU2Tdy3I6cgvZ6SEi9QNey+lqps/sJRnogIS+lq+B1gxxbra2a/w==", + "license": "Apache-2.0", + "dependencies": { + "@smithy/is-array-buffer": "^4.2.0", + "@smithy/protocol-http": "^5.3.5", + "@smithy/types": "^4.9.0", + "@smithy/util-hex-encoding": "^4.2.0", + "@smithy/util-middleware": "^4.2.5", + "@smithy/util-uri-escape": "^4.2.0", + "@smithy/util-utf8": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@smithy/smithy-client": { + "version": "4.9.10", + "resolved": "https://registry.npmjs.org/@smithy/smithy-client/-/smithy-client-4.9.10.tgz", + "integrity": "sha512-Jaoz4Jw1QYHc1EFww/E6gVtNjhoDU+gwRKqXP6C3LKYqqH2UQhP8tMP3+t/ePrhaze7fhLE8vS2q6vVxBANFTQ==", + "license": "Apache-2.0", + "dependencies": { + "@smithy/core": "^3.18.7", + "@smithy/middleware-endpoint": "^4.3.14", + "@smithy/middleware-stack": "^4.2.5", + "@smithy/protocol-http": "^5.3.5", + "@smithy/types": "^4.9.0", + "@smithy/util-stream": "^4.5.6", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@smithy/types": { + "version": "4.9.0", + "resolved": "https://registry.npmjs.org/@smithy/types/-/types-4.9.0.tgz", + "integrity": "sha512-MvUbdnXDTwykR8cB1WZvNNwqoWVaTRA0RLlLmf/cIFNMM2cKWz01X4Ly6SMC4Kks30r8tT3Cty0jmeWfiuyHTA==", + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@smithy/url-parser": { + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/@smithy/url-parser/-/url-parser-4.2.5.tgz", + "integrity": "sha512-VaxMGsilqFnK1CeBX+LXnSuaMx4sTL/6znSZh2829txWieazdVxr54HmiyTsIbpOTLcf5nYpq9lpzmwRdxj6rQ==", + "license": "Apache-2.0", + "dependencies": { + "@smithy/querystring-parser": "^4.2.5", + "@smithy/types": "^4.9.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@smithy/util-base64": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-4.3.0.tgz", + "integrity": "sha512-GkXZ59JfyxsIwNTWFnjmFEI8kZpRNIBfxKjv09+nkAWPt/4aGaEWMM04m4sxgNVWkbt2MdSvE3KF/PfX4nFedQ==", + "license": "Apache-2.0", + "dependencies": { + "@smithy/util-buffer-from": "^4.2.0", + "@smithy/util-utf8": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@smithy/util-body-length-browser": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@smithy/util-body-length-browser/-/util-body-length-browser-4.2.0.tgz", + "integrity": "sha512-Fkoh/I76szMKJnBXWPdFkQJl2r9SjPt3cMzLdOB6eJ4Pnpas8hVoWPYemX/peO0yrrvldgCUVJqOAjUrOLjbxg==", + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@smithy/util-body-length-node": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/@smithy/util-body-length-node/-/util-body-length-node-4.2.1.tgz", + "integrity": "sha512-h53dz/pISVrVrfxV1iqXlx5pRg3V2YWFcSQyPyXZRrZoZj4R4DeWRDo1a7dd3CPTcFi3kE+98tuNyD2axyZReA==", + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@smithy/util-buffer-from": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-4.2.0.tgz", + "integrity": "sha512-kAY9hTKulTNevM2nlRtxAG2FQ3B2OR6QIrPY3zE5LqJy1oxzmgBGsHLWTcNhWXKchgA0WHW+mZkQrng/pgcCew==", + "license": "Apache-2.0", + "dependencies": { + "@smithy/is-array-buffer": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@smithy/util-config-provider": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@smithy/util-config-provider/-/util-config-provider-4.2.0.tgz", + "integrity": "sha512-YEjpl6XJ36FTKmD+kRJJWYvrHeUvm5ykaUS5xK+6oXffQPHeEM4/nXlZPe+Wu0lsgRUcNZiliYNh/y7q9c2y6Q==", + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@smithy/util-defaults-mode-browser": { + "version": "4.3.13", + "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-browser/-/util-defaults-mode-browser-4.3.13.tgz", + "integrity": "sha512-hlVLdAGrVfyNei+pKIgqDTxfu/ZI2NSyqj4IDxKd5bIsIqwR/dSlkxlPaYxFiIaDVrBy0he8orsFy+Cz119XvA==", + "license": "Apache-2.0", + "dependencies": { + "@smithy/property-provider": "^4.2.5", + "@smithy/smithy-client": "^4.9.10", + "@smithy/types": "^4.9.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@smithy/util-defaults-mode-node": { + "version": "4.2.16", + "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-4.2.16.tgz", + "integrity": "sha512-F1t22IUiJLHrxW9W1CQ6B9PN+skZ9cqSuzB18Eh06HrJPbjsyZ7ZHecAKw80DQtyGTRcVfeukKaCRYebFwclbg==", + "license": "Apache-2.0", + "dependencies": { + "@smithy/config-resolver": "^4.4.3", + "@smithy/credential-provider-imds": "^4.2.5", + "@smithy/node-config-provider": "^4.3.5", + "@smithy/property-provider": "^4.2.5", + "@smithy/smithy-client": "^4.9.10", + "@smithy/types": "^4.9.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@smithy/util-endpoints": { + "version": "3.2.5", + "resolved": "https://registry.npmjs.org/@smithy/util-endpoints/-/util-endpoints-3.2.5.tgz", + "integrity": "sha512-3O63AAWu2cSNQZp+ayl9I3NapW1p1rR5mlVHcF6hAB1dPZUQFfRPYtplWX/3xrzWthPGj5FqB12taJJCfH6s8A==", + "license": "Apache-2.0", + "dependencies": { + "@smithy/node-config-provider": "^4.3.5", + "@smithy/types": "^4.9.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@smithy/util-hex-encoding": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@smithy/util-hex-encoding/-/util-hex-encoding-4.2.0.tgz", + "integrity": "sha512-CCQBwJIvXMLKxVbO88IukazJD9a4kQ9ZN7/UMGBjBcJYvatpWk+9g870El4cB8/EJxfe+k+y0GmR9CAzkF+Nbw==", + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@smithy/util-middleware": { + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/@smithy/util-middleware/-/util-middleware-4.2.5.tgz", + "integrity": "sha512-6Y3+rvBF7+PZOc40ybeZMcGln6xJGVeY60E7jy9Mv5iKpMJpHgRE6dKy9ScsVxvfAYuEX4Q9a65DQX90KaQ3bA==", + "license": "Apache-2.0", + "dependencies": { + "@smithy/types": "^4.9.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@smithy/util-retry": { + "version": "4.2.5", + "resolved": "https://registry.npmjs.org/@smithy/util-retry/-/util-retry-4.2.5.tgz", + "integrity": "sha512-GBj3+EZBbN4NAqJ/7pAhsXdfzdlznOh8PydUijy6FpNIMnHPSMO2/rP4HKu+UFeikJxShERk528oy7GT79YiJg==", + "license": "Apache-2.0", + "dependencies": { + "@smithy/service-error-classification": "^4.2.5", + "@smithy/types": "^4.9.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@smithy/util-stream": { + "version": "4.5.6", + "resolved": "https://registry.npmjs.org/@smithy/util-stream/-/util-stream-4.5.6.tgz", + "integrity": "sha512-qWw/UM59TiaFrPevefOZ8CNBKbYEP6wBAIlLqxn3VAIo9rgnTNc4ASbVrqDmhuwI87usnjhdQrxodzAGFFzbRQ==", + "license": "Apache-2.0", + "dependencies": { + "@smithy/fetch-http-handler": "^5.3.6", + "@smithy/node-http-handler": "^4.4.5", + "@smithy/types": "^4.9.0", + "@smithy/util-base64": "^4.3.0", + "@smithy/util-buffer-from": "^4.2.0", + "@smithy/util-hex-encoding": "^4.2.0", + "@smithy/util-utf8": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@smithy/util-uri-escape": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@smithy/util-uri-escape/-/util-uri-escape-4.2.0.tgz", + "integrity": "sha512-igZpCKV9+E/Mzrpq6YacdTQ0qTiLm85gD6N/IrmyDvQFA4UnU3d5g3m8tMT/6zG/vVkWSU+VxeUyGonL62DuxA==", + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/@smithy/util-utf8": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-4.2.0.tgz", + "integrity": "sha512-zBPfuzoI8xyBtR2P6WQj63Rz8i3AmfAaJLuNG8dWsfvPe8lO4aCPYLn879mEgHndZH1zQ2oXmG8O1GGzzaoZiw==", + "license": "Apache-2.0", + "dependencies": { + "@smithy/util-buffer-from": "^4.2.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/fast-xml-parser": { + "version": "5.2.5", + "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-5.2.5.tgz", + "integrity": "sha512-pfX9uG9Ki0yekDHx2SiuRIyFdyAr1kMIMitPvb0YBo8SUfKvia7w7FIyd/l6av85pFYRhZscS75MwMnbvY+hcQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/NaturalIntelligence" + } + ], + "license": "MIT", + "dependencies": { + "strnum": "^2.1.0" + }, + "bin": { + "fxparser": "src/cli/cli.js" + } + }, + "node_modules/@amzn/sql-workbench-client/node_modules/strnum": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/strnum/-/strnum-2.1.1.tgz", + "integrity": "sha512-7ZvoFTiCnGxBtDqJ//Cu6fWtZtc7Y3x+QOirG15wztbdngGSkht27o2pyGWrVy0b4WAy3jbKmnoK6g5VlVNUUw==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/NaturalIntelligence" + } + ], + "license": "MIT" + }, "node_modules/@aws-crypto/crc32": { "version": "5.2.0", "license": "Apache-2.0", @@ -40246,6 +41340,7 @@ "@amzn/amazon-q-developer-streaming-client": "file:../../src.gen/@amzn/amazon-q-developer-streaming-client", "@amzn/codewhisperer-streaming": "file:../../src.gen/@amzn/codewhisperer-streaming", "@amzn/sagemaker-client": "file:../../src.gen/@amzn/sagemaker-client/1.0.0.tgz", + "@amzn/sql-workbench-client": "file:../../src.gen/@amzn/sql-workbench-client/3.0.0.tgz", "@aws-sdk/client-accessanalyzer": "^3.888.0", "@aws-sdk/client-api-gateway": "<3.731.0", "@aws-sdk/client-apprunner": "<3.731.0", diff --git a/packages/core/package.json b/packages/core/package.json index c8ede330efb..bec9cee6fff 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -581,6 +581,7 @@ "@amzn/amazon-q-developer-streaming-client": "file:../../src.gen/@amzn/amazon-q-developer-streaming-client", "@amzn/codewhisperer-streaming": "file:../../src.gen/@amzn/codewhisperer-streaming", "@amzn/sagemaker-client": "file:../../src.gen/@amzn/sagemaker-client/1.0.0.tgz", + "@amzn/sql-workbench-client": "file:../../src.gen/@amzn/sql-workbench-client/3.0.0.tgz", "@aws-sdk/client-accessanalyzer": "^3.888.0", "@aws-sdk/client-api-gateway": "<3.731.0", "@aws-sdk/client-apprunner": "<3.731.0", diff --git a/packages/core/scripts/build/generateServiceClient.ts b/packages/core/scripts/build/generateServiceClient.ts index ac46c307a0f..410a4a5d16c 100644 --- a/packages/core/scripts/build/generateServiceClient.ts +++ b/packages/core/scripts/build/generateServiceClient.ts @@ -245,10 +245,6 @@ void (async () => { serviceJsonPath: 'src/sagemakerunifiedstudio/shared/client/gluecatalogapi.json', serviceName: 'GlueCatalogApi', }, - { - serviceJsonPath: 'src/sagemakerunifiedstudio/shared/client/sqlworkbench.json', - serviceName: 'SQLWorkbench', - }, { serviceJsonPath: 'src/sagemakerunifiedstudio/shared/client/datazonecustomclient.json', serviceName: 'DataZoneCustomClient', diff --git a/packages/core/src/sagemakerunifiedstudio/explorer/nodes/redshiftStrategy.ts b/packages/core/src/sagemakerunifiedstudio/explorer/nodes/redshiftStrategy.ts index 00e1e74f19c..66a9e20e23f 100644 --- a/packages/core/src/sagemakerunifiedstudio/explorer/nodes/redshiftStrategy.ts +++ b/packages/core/src/sagemakerunifiedstudio/explorer/nodes/redshiftStrategy.ts @@ -458,7 +458,7 @@ function createSchemaNode(schemaName: string, connectionConfig: ConnectionConfig parentType: ResourceType.SCHEMA, }, { - parentId: schemaConnectionConfig.database, + parentId: schemaConnectionConfig.database || '', parentType: ResourceType.DATABASE, }, ], diff --git a/packages/core/src/sagemakerunifiedstudio/shared/client/sqlWorkbenchClient.ts b/packages/core/src/sagemakerunifiedstudio/shared/client/sqlWorkbenchClient.ts index 76527d1d622..d9d3d853b80 100644 --- a/packages/core/src/sagemakerunifiedstudio/shared/client/sqlWorkbenchClient.ts +++ b/packages/core/src/sagemakerunifiedstudio/shared/client/sqlWorkbenchClient.ts @@ -3,40 +3,28 @@ * SPDX-License-Identifier: Apache-2.0 */ -import { Service } from 'aws-sdk' -import { ServiceConfigurationOptions } from 'aws-sdk/lib/service' -import globals from '../../../shared/extensionGlobals' import { getLogger } from '../../../shared/logger/logger' -import * as SQLWorkbench from './sqlworkbench' -import apiConfig = require('./sqlworkbench.json') +import { + SQLWorkbench, + GetResourcesCommand, + ExecuteQueryCommand, + GetResourcesRequest, + GetResourcesResponse, + ExecuteQueryRequest, + DatabaseConnectionConfiguration, + ParentResource, + DatabaseIntegrationConnectionAuthenticationTypes, +} from '@amzn/sql-workbench-client' import { v4 as uuidv4 } from 'uuid' import { getRedshiftTypeFromHost } from '../../explorer/nodes/utils' -import { DatabaseIntegrationConnectionAuthenticationTypes, RedshiftType } from '../../explorer/nodes/types' +import { RedshiftType } from '../../explorer/nodes/types' import { ConnectionCredentialsProvider } from '../../auth/providers/connectionCredentialsProvider' -import { adaptConnectionCredentialsProvider } from './credentialsAdapter' /** * Connection configuration for SQL Workbench + * This is an alias for the SDK's DatabaseConnectionConfiguration type */ -export interface ConnectionConfig { - id: string - type: string - databaseType: string - connectableResourceIdentifier: string - connectableResourceType: string - database: string - auth?: { - secretArn?: string - } -} - -/** - * Resource parent information - */ -export interface ParentResource { - parentId: string - parentType: string -} +export type ConnectionConfig = DatabaseConnectionConfiguration /** * Gets a SQL Workbench ARN @@ -89,7 +77,7 @@ export async function createRedshiftConnectionConfig( } // Determine auth type based on the provided parameters - let authType: string + let authType: DatabaseIntegrationConnectionAuthenticationTypes if (secretArn) { authType = DatabaseIntegrationConnectionAuthenticationTypes.SECRET @@ -118,11 +106,7 @@ export async function createRedshiftConnectionConfig( } // Add auth object for SECRET authentication type - if ( - (authType as DatabaseIntegrationConnectionAuthenticationTypes) === - DatabaseIntegrationConnectionAuthenticationTypes.SECRET && - secretArn - ) { + if (authType === DatabaseIntegrationConnectionAuthenticationTypes.SECRET && secretArn) { connectionConfig.auth = { secretArn } } @@ -177,7 +161,7 @@ export class SQLWorkbenchClient { /** * Gets resources from SQL Workbench * @param params Request parameters - * @returns Raw response from getResources API + * @returns Response containing resources and optional next token */ public async getResources(params: { connection: ConnectionConfig @@ -187,13 +171,13 @@ export class SQLWorkbenchClient { parents?: ParentResource[] pageToken?: string forceRefresh?: boolean - }): Promise { + }): Promise { try { this.logger.info(`SQLWorkbenchClient: Getting resources in region ${this.region}`) const sqlClient = await this.getSQLClient() - const requestParams = { + const requestParams: GetResourcesRequest = { connection: params.connection, type: params.resourceType, maxItems: params.maxItems || 100, @@ -203,13 +187,9 @@ export class SQLWorkbenchClient { accountSettings: {}, } - // Call the GetResources API - const response = await sqlClient.getResources(requestParams).promise() - - return { - resources: response.resources || [], - nextToken: response.nextToken, - } + // Call the GetResources API using SDK v3 Command pattern + const command = new GetResourcesCommand(requestParams) + return await sqlClient.send(command) } catch (err) { this.logger.error('SQLWorkbenchClient: Failed to get resources: %s', err as Error) throw err @@ -228,26 +208,27 @@ export class SQLWorkbenchClient { const sqlClient = await this.getSQLClient() - // Call the ExecuteQuery API - const response = await sqlClient - .executeQuery({ - connection: connectionConfig as any, - databaseType: 'REDSHIFT', - accountSettings: {}, - executionContext: [ - { - parentType: 'DATABASE', - parentId: connectionConfig.database || '', - }, - ], - query, - queryExecutionType: 'NO_SESSION', - queryResponseDeliveryType: 'ASYNC', - maxItems: 100, - ignoreHistory: true, - tabId: 'data_explorer', - }) - .promise() + const requestParams: ExecuteQueryRequest = { + connection: connectionConfig, + databaseType: 'REDSHIFT', + accountSettings: {}, + executionContext: [ + { + parentType: 'DATABASE', + parentId: connectionConfig.database || '', + }, + ], + query, + queryExecutionType: 'NO_SESSION', + queryResponseDeliveryType: 'ASYNC', + maxItems: 100, + ignoreHistory: true, + tabId: 'data_explorer', + } + + // Call the ExecuteQuery API using SDK v3 Command pattern + const command = new ExecuteQueryCommand(requestParams) + const response = await sqlClient.send(command) // Log the response this.logger.info( @@ -261,9 +242,6 @@ export class SQLWorkbenchClient { } } - /** - * Gets the SQL client, initializing it if necessary - */ /** * Gets the SQL Workbench endpoint URL for the given region * @param region AWS region @@ -273,6 +251,9 @@ export class SQLWorkbenchClient { return `https://api-v2.sqlworkbench.${region}.amazonaws.com` } + /** + * Gets the SQL client, initializing it if necessary + */ private async getSQLClient(): Promise { if (!this.sqlClient) { try { @@ -281,30 +262,27 @@ export class SQLWorkbenchClient { this.logger.info(`Using SQL Workbench endpoint: ${endpoint}`) if (this.connectionCredentialsProvider) { - // Create client with provided credentials - this.sqlClient = (await globals.sdkClientBuilder.createAwsService( - Service, - { - apiConfig: apiConfig, - region: this.region, - endpoint: endpoint, - credentialProvider: adaptConnectionCredentialsProvider(this.connectionCredentialsProvider), - } as ServiceConfigurationOptions, - undefined, - false - )) as SQLWorkbench + // Create client with credential provider function for auto-refresh + const awsCredentialProvider = async () => { + const credentials = await this.connectionCredentialsProvider!.getCredentials() + return { + accessKeyId: credentials.accessKeyId, + secretAccessKey: credentials.secretAccessKey, + sessionToken: credentials.sessionToken, + expiration: credentials.expiration, + } + } + this.sqlClient = new SQLWorkbench({ + region: this.region, + endpoint: endpoint, + credentials: awsCredentialProvider, + }) } else { - // Use the SDK client builder for default credentials - this.sqlClient = (await globals.sdkClientBuilder.createAwsService( - Service, - { - apiConfig: apiConfig, - region: this.region, - endpoint: endpoint, - } as ServiceConfigurationOptions, - undefined, - false - )) as SQLWorkbench + // Use default credentials + this.sqlClient = new SQLWorkbench({ + region: this.region, + endpoint: endpoint, + }) } this.logger.debug('SQLWorkbenchClient: Successfully created SQL client') diff --git a/packages/core/src/sagemakerunifiedstudio/shared/client/sqlworkbench.json b/packages/core/src/sagemakerunifiedstudio/shared/client/sqlworkbench.json deleted file mode 100644 index e403ec34a88..00000000000 --- a/packages/core/src/sagemakerunifiedstudio/shared/client/sqlworkbench.json +++ /dev/null @@ -1,2102 +0,0 @@ -{ - "version": "2.0", - "metadata": { - "apiVersion": "2024-02-12", - "auth": ["aws.auth#sigv4"], - "endpointPrefix": "sqlworkbench", - "protocol": "rest-json", - "protocols": ["rest-json"], - "serviceFullName": "AmazonSQLWorkbench", - "serviceId": "SQLWorkbench", - "signatureVersion": "v4", - "signingName": "sqlworkbench", - "uid": "sqlworkbench-2024-02-12" - }, - "operations": { - "CancelQueries": { - "name": "CancelQueries", - "http": { - "method": "POST", - "requestUri": "/database/cancelQueries", - "responseCode": 200 - }, - "input": { "shape": "CancelQueriesRequest" }, - "output": { "shape": "CancelQueriesResponse" }, - "errors": [ - { "shape": "ThrottlingException" }, - { "shape": "BadRequestError" }, - { "shape": "ResourceNotFoundException" }, - { "shape": "ServiceQuotaExceededException" }, - { "shape": "AccessDeniedException" }, - { "shape": "ConflictException" }, - { "shape": "InternalServerError" }, - { "shape": "ValidationException" } - ] - }, - "CreateConnection": { - "name": "CreateConnection", - "http": { - "method": "PUT", - "requestUri": "/connections", - "responseCode": 200 - }, - "input": { "shape": "CreateConnectionRequest" }, - "output": { "shape": "CreateConnectionResponse" }, - "errors": [ - { "shape": "ThrottlingException" }, - { "shape": "ResourceNotFoundException" }, - { "shape": "ServiceQuotaExceededException" }, - { "shape": "AccessDeniedException" }, - { "shape": "ConflictException" }, - { "shape": "InternalServerError" }, - { "shape": "ValidationException" } - ] - }, - "DeleteConnection": { - "name": "DeleteConnection", - "http": { - "method": "DELETE", - "requestUri": "/connections/{connectionId}", - "responseCode": 200 - }, - "input": { "shape": "DeleteConnectionRequest" }, - "output": { "shape": "DeleteConnectionResponse" }, - "errors": [ - { "shape": "ThrottlingException" }, - { "shape": "ResourceNotFoundException" }, - { "shape": "ServiceQuotaExceededException" }, - { "shape": "AccessDeniedException" }, - { "shape": "ConflictException" }, - { "shape": "InternalServerError" }, - { "shape": "ValidationException" } - ] - }, - "ExecuteQuery": { - "name": "ExecuteQuery", - "http": { - "method": "POST", - "requestUri": "/database/executeQuery", - "responseCode": 200 - }, - "input": { "shape": "ExecuteQueryRequest" }, - "output": { "shape": "ExecuteQueryResponse" }, - "errors": [ - { "shape": "ThrottlingException" }, - { "shape": "BadRequestError" }, - { "shape": "ResourceNotFoundException" }, - { "shape": "ServiceQuotaExceededException" }, - { "shape": "AccessDeniedException" }, - { "shape": "ConflictException" }, - { "shape": "InternalServerError" }, - { "shape": "ValidationException" } - ] - }, - "ExportQueryResults": { - "name": "ExportQueryResults", - "http": { - "method": "POST", - "requestUri": "/database/exportResults", - "responseCode": 200 - }, - "input": { "shape": "ExportQueryResultsRequest" }, - "output": { "shape": "ExportQueryResultsResponse" }, - "errors": [ - { "shape": "ThrottlingException" }, - { "shape": "BadRequestError" }, - { "shape": "ResourceNotFoundException" }, - { "shape": "ServiceQuotaExceededException" }, - { "shape": "AccessDeniedException" }, - { "shape": "ConflictException" }, - { "shape": "InternalServerError" }, - { "shape": "ValidationException" } - ] - }, - "GetConnectableResources": { - "name": "GetConnectableResources", - "http": { - "method": "POST", - "requestUri": "/database/getConnectableResources", - "responseCode": 200 - }, - "input": { "shape": "GetConnectableResourcesRequest" }, - "output": { "shape": "GetConnectableResourcesResponse" }, - "errors": [ - { "shape": "ThrottlingException" }, - { "shape": "BadRequestError" }, - { "shape": "ResourceNotFoundException" }, - { "shape": "ServiceQuotaExceededException" }, - { "shape": "AccessDeniedException" }, - { "shape": "ConflictException" }, - { "shape": "InternalServerError" }, - { "shape": "ValidationException" } - ] - }, - "GetConnection": { - "name": "GetConnection", - "http": { - "method": "GET", - "requestUri": "/connections/{connectionId}", - "responseCode": 200 - }, - "input": { "shape": "GetConnectionRequest" }, - "output": { "shape": "GetConnectionResponse" }, - "errors": [ - { "shape": "ThrottlingException" }, - { "shape": "ResourceNotFoundException" }, - { "shape": "ServiceQuotaExceededException" }, - { "shape": "AccessDeniedException" }, - { "shape": "ConflictException" }, - { "shape": "InternalServerError" }, - { "shape": "ValidationException" } - ] - }, - "GetDatabaseConfigurations": { - "name": "GetDatabaseConfigurations", - "http": { - "method": "POST", - "requestUri": "/database/configurations", - "responseCode": 200 - }, - "input": { "shape": "GetDatabaseConfigurationsRequest" }, - "output": { "shape": "GetDatabaseConfigurationsResponse" }, - "errors": [ - { "shape": "ThrottlingException" }, - { "shape": "BadRequestError" }, - { "shape": "ResourceNotFoundException" }, - { "shape": "ServiceQuotaExceededException" }, - { "shape": "AccessDeniedException" }, - { "shape": "ConflictException" }, - { "shape": "InternalServerError" }, - { "shape": "ValidationException" } - ] - }, - "GetQueryExecutionHistory": { - "name": "GetQueryExecutionHistory", - "http": { - "method": "POST", - "requestUri": "/queryExecutionHistory/details", - "responseCode": 200 - }, - "input": { "shape": "GetQueryExecutionHistoryRequest" }, - "output": { "shape": "GetQueryExecutionHistoryResponse" }, - "errors": [ - { "shape": "ThrottlingException" }, - { "shape": "BadRequestError" }, - { "shape": "ResourceNotFoundException" }, - { "shape": "ServiceQuotaExceededException" }, - { "shape": "AccessDeniedException" }, - { "shape": "ConflictException" }, - { "shape": "InternalServerError" }, - { "shape": "ValidationException" } - ] - }, - "GetQueryResult": { - "name": "GetQueryResult", - "http": { - "method": "POST", - "requestUri": "/database/getQueryResults", - "responseCode": 200 - }, - "input": { "shape": "GetQueryResultRequest" }, - "output": { "shape": "GetQueryResultResponse" }, - "errors": [ - { "shape": "ThrottlingException" }, - { "shape": "BadRequestError" }, - { "shape": "ResourceNotFoundException" }, - { "shape": "ServiceQuotaExceededException" }, - { "shape": "AccessDeniedException" }, - { "shape": "ConflictException" }, - { "shape": "InternalServerError" }, - { "shape": "ValidationException" } - ] - }, - "GetResources": { - "name": "GetResources", - "http": { - "method": "POST", - "requestUri": "/database/getResources", - "responseCode": 200 - }, - "input": { "shape": "GetResourcesRequest" }, - "output": { "shape": "GetResourcesResponse" }, - "errors": [ - { "shape": "ThrottlingException" }, - { "shape": "BadRequestError" }, - { "shape": "ResourceNotFoundException" }, - { "shape": "ServiceQuotaExceededException" }, - { "shape": "AccessDeniedException" }, - { "shape": "ConflictException" }, - { "shape": "InternalServerError" }, - { "shape": "ValidationException" } - ] - }, - "GetTabStates": { - "name": "GetTabStates", - "http": { - "method": "POST", - "requestUri": "/tab/state", - "responseCode": 200 - }, - "input": { "shape": "GetTabStatesRequest" }, - "output": { "shape": "GetTabStatesResponse" }, - "errors": [ - { "shape": "ThrottlingException" }, - { "shape": "BadRequestError" }, - { "shape": "ResourceNotFoundException" }, - { "shape": "ServiceQuotaExceededException" }, - { "shape": "AccessDeniedException" }, - { "shape": "ConflictException" }, - { "shape": "InternalServerError" }, - { "shape": "ValidationException" } - ] - }, - "ListQueryExecutionHistory": { - "name": "ListQueryExecutionHistory", - "http": { - "method": "POST", - "requestUri": "/queryExecutionHistory/list", - "responseCode": 200 - }, - "input": { "shape": "ListQueryExecutionHistoryRequest" }, - "output": { "shape": "ListQueryExecutionHistoryResponse" }, - "errors": [ - { "shape": "ThrottlingException" }, - { "shape": "BadRequestError" }, - { "shape": "ResourceNotFoundException" }, - { "shape": "ServiceQuotaExceededException" }, - { "shape": "AccessDeniedException" }, - { "shape": "ConflictException" }, - { "shape": "InternalServerError" }, - { "shape": "ValidationException" } - ] - }, - "ListTagsForResource": { - "name": "ListTagsForResource", - "http": { - "method": "GET", - "requestUri": "/tags/{resourceArn}", - "responseCode": 200 - }, - "input": { "shape": "ListTagsForResourceRequest" }, - "output": { "shape": "ListTagsForResourceResponse" }, - "errors": [ - { "shape": "BadRequestError" }, - { "shape": "ThrottlingException" }, - { "shape": "ResourceNotFoundException" }, - { "shape": "ServiceQuotaExceededException" }, - { "shape": "AccessDeniedException" }, - { "shape": "ConflictException" }, - { "shape": "InternalServerError" }, - { "shape": "ValidationException" } - ] - }, - "PollQueryExecutionEvents": { - "name": "PollQueryExecutionEvents", - "http": { - "method": "POST", - "requestUri": "/database/pollQueryExecutionEvents", - "responseCode": 200 - }, - "input": { "shape": "PollQueryExecutionEventsRequest" }, - "output": { "shape": "PollQueryExecutionEventsResponse" }, - "errors": [ - { "shape": "ThrottlingException" }, - { "shape": "BadRequestError" }, - { "shape": "ResourceNotFoundException" }, - { "shape": "ServiceQuotaExceededException" }, - { "shape": "AccessDeniedException" }, - { "shape": "ConflictException" }, - { "shape": "InternalServerError" }, - { "shape": "ValidationException" } - ] - }, - "TagResource": { - "name": "TagResource", - "http": { - "method": "POST", - "requestUri": "/tags/{resourceArn}", - "responseCode": 204 - }, - "input": { "shape": "TagResourceRequest" }, - "output": { "shape": "TagResourceResponse" }, - "errors": [ - { "shape": "BadRequestError" }, - { "shape": "ThrottlingException" }, - { "shape": "ResourceNotFoundException" }, - { "shape": "ServiceQuotaExceededException" }, - { "shape": "AccessDeniedException" }, - { "shape": "ConflictException" }, - { "shape": "InternalServerError" }, - { "shape": "ValidationException" } - ] - }, - "UntagResource": { - "name": "UntagResource", - "http": { - "method": "DELETE", - "requestUri": "/tags/{resourceArn}", - "responseCode": 204 - }, - "input": { "shape": "UntagResourceRequest" }, - "output": { "shape": "UntagResourceResponse" }, - "errors": [ - { "shape": "BadRequestError" }, - { "shape": "ThrottlingException" }, - { "shape": "ResourceNotFoundException" }, - { "shape": "ServiceQuotaExceededException" }, - { "shape": "AccessDeniedException" }, - { "shape": "ConflictException" }, - { "shape": "InternalServerError" }, - { "shape": "ValidationException" } - ], - "idempotent": true - }, - "UpdateConnection": { - "name": "UpdateConnection", - "http": { - "method": "POST", - "requestUri": "/connections", - "responseCode": 200 - }, - "input": { "shape": "UpdateConnectionRequest" }, - "output": { "shape": "UpdateConnectionResponse" }, - "errors": [ - { "shape": "ThrottlingException" }, - { "shape": "ResourceNotFoundException" }, - { "shape": "ServiceQuotaExceededException" }, - { "shape": "AccessDeniedException" }, - { "shape": "ConflictException" }, - { "shape": "InternalServerError" }, - { "shape": "ValidationException" } - ] - }, - "VerifyResourcesExistForTagris": { - "name": "VerifyResourcesExistForTagris", - "http": { - "method": "POST", - "requestUri": "/verifyResourcesExistForTagris", - "responseCode": 200 - }, - "input": { "shape": "TagrisVerifyResourcesExistInput" }, - "output": { "shape": "TagrisVerifyResourcesExistOutput" }, - "errors": [ - { "shape": "ThrottlingException" }, - { "shape": "InternalServerError" }, - { "shape": "TagrisInvalidParameterException" }, - { "shape": "TagrisAccessDeniedException" }, - { "shape": "TagrisInvalidArnException" }, - { "shape": "ResourceNotFoundException" }, - { "shape": "TagrisInternalServiceException" }, - { "shape": "ServiceQuotaExceededException" }, - { "shape": "AccessDeniedException" }, - { "shape": "TagrisPartialResourcesExistResultsException" }, - { "shape": "TagrisThrottledException" }, - { "shape": "ConflictException" }, - { "shape": "ValidationException" } - ] - } - }, - "shapes": { - "AccessDeniedException": { - "type": "structure", - "required": ["message"], - "members": { - "message": { "shape": "String" }, - "code": { "shape": "ErrorCode" } - }, - "error": { - "httpStatusCode": 403, - "senderFault": true - }, - "exception": true - }, - "AckIds": { - "type": "list", - "member": { "shape": "AckIdsMemberString" } - }, - "AckIdsMemberString": { - "type": "string", - "max": 100, - "min": 0 - }, - "Arn": { - "type": "string", - "max": 1011, - "min": 20 - }, - "AvailableConnectionConfigurationOptions": { - "type": "list", - "member": { "shape": "AvailableConnectionConfigurationOptionsMemberString" } - }, - "AvailableConnectionConfigurationOptionsMemberString": { - "type": "string", - "max": 50, - "min": 0 - }, - "BadRequestError": { - "type": "structure", - "required": ["message"], - "members": { - "message": { "shape": "String" }, - "code": { "shape": "ErrorCode" } - }, - "error": { - "httpStatusCode": 400, - "senderFault": true - }, - "exception": true - }, - "Boolean": { - "type": "boolean", - "box": true - }, - "CancelQueriesRequest": { - "type": "structure", - "required": ["queryExecutionIds", "databaseType"], - "members": { - "sqlworkbenchSource": { - "shape": "SqlworkbenchSource", - "location": "header", - "locationName": "sqlworkbench-source" - }, - "accountSettings": { "shape": "DatabaseConnectionAccountSettings" }, - "queryExecutionIds": { "shape": "CancelQueriesRequestQueryExecutionIdsList" }, - "databaseType": { - "shape": "DatabaseType", - "location": "querystring", - "locationName": "databaseType" - } - } - }, - "CancelQueriesRequestQueryExecutionIdsList": { - "type": "list", - "member": { "shape": "CancelQueriesRequestQueryExecutionIdsListMemberString" }, - "max": 100, - "min": 1 - }, - "CancelQueriesRequestQueryExecutionIdsListMemberString": { - "type": "string", - "max": 100, - "min": 1 - }, - "CancelQueriesResponse": { - "type": "structure", - "required": ["cancelQueryResponses"], - "members": { - "cancelQueryResponses": { "shape": "CancelQueryResponses" } - } - }, - "CancelQueryResponse": { - "type": "structure", - "required": ["queryExecutionId"], - "members": { - "queryExecutionId": { "shape": "CancelQueryResponseQueryExecutionIdString" }, - "queryCancellationStatus": { "shape": "QueryCancellationStatus" } - } - }, - "CancelQueryResponseQueryExecutionIdString": { - "type": "string", - "max": 1000, - "min": 0 - }, - "CancelQueryResponses": { - "type": "list", - "member": { "shape": "CancelQueryResponse" } - }, - "ChildObjectTypes": { - "type": "list", - "member": { "shape": "ChildObjectTypesMemberString" } - }, - "ChildObjectTypesMemberString": { - "type": "string", - "max": 50, - "min": 0 - }, - "Columns": { - "type": "list", - "member": { "shape": "QueryResultCellValue" } - }, - "ConflictException": { - "type": "structure", - "required": ["message"], - "members": { - "message": { "shape": "String" }, - "code": { "shape": "ErrorCode" } - }, - "error": { - "httpStatusCode": 409, - "senderFault": true - }, - "exception": true - }, - "ConnectableResource": { - "type": "structure", - "required": ["displayName", "identifier", "childObjectTypes", "availableConnectionConfigurationOptions"], - "members": { - "displayName": { "shape": "ResourceDisplayName" }, - "identifier": { "shape": "ResourceIdentifier" }, - "type": { "shape": "ConnectableResourceTypeString" }, - "unavailable": { "shape": "Boolean" }, - "tooltipTranslationKey": { "shape": "ConnectableResourceTooltipTranslationKeyString" }, - "childObjectTypes": { "shape": "ChildObjectTypes" }, - "availableConnectionConfigurationOptions": { "shape": "AvailableConnectionConfigurationOptions" } - } - }, - "ConnectableResourceTooltipTranslationKeyString": { - "type": "string", - "max": 50, - "min": 0 - }, - "ConnectableResourceTypeString": { - "type": "string", - "max": 50, - "min": 0 - }, - "ConnectableResourceTypes": { - "type": "list", - "member": { "shape": "ConnectableResourceTypesMemberString" } - }, - "ConnectableResourceTypesMemberString": { - "type": "string", - "max": 50, - "min": 0 - }, - "ConnectableResources": { - "type": "list", - "member": { "shape": "ConnectableResource" } - }, - "Connection": { - "type": "structure", - "members": { - "id": { - "shape": "String", - "documentation": "

Id of the connection

" - }, - "name": { - "shape": "ConnectionName", - "documentation": "

Name of the connection

" - }, - "authenticationType": { - "shape": "ConnectionAuthenticationTypes", - "documentation": "

Number representing the type of authentication to use (2 = IAM, 3 = Username and Password). Today we only support the types 2 and 3

" - }, - "secretArn": { - "shape": "String", - "documentation": "

Secret that is linked to this connection

" - }, - "databaseName": { - "shape": "DatabaseName", - "documentation": "

Name of the database where the query is run

" - }, - "clusterId": { - "shape": "String", - "documentation": "

Id of the cluster of the connection

" - }, - "dbUser": { - "shape": "DbUser", - "documentation": "

User of the database

" - }, - "isServerless": { "shape": "Boolean" }, - "isProd": { "shape": "String" }, - "isEnabled": { "shape": "String" }, - "userSettings": { "shape": "UserSettings" }, - "recordDate": { "shape": "String" }, - "updatedDate": { "shape": "String" }, - "tags": { "shape": "Tags" }, - "databaseType": { "shape": "DatabaseType" }, - "connectableResourceType": { "shape": "String" }, - "connectableResourceIdentifier": { "shape": "ResourceIdentifier" } - } - }, - "ConnectionAuthenticationTypes": { - "type": "string", - "enum": ["2", "3", "4", "5", "6", "7", "8"], - "sensitive": true - }, - "ConnectionName": { - "type": "string", - "sensitive": true - }, - "ConnectionProperties": { - "type": "map", - "key": { "shape": "ConnectionPropertyKey" }, - "value": { "shape": "ConnectionPropertyValue" }, - "max": 50, - "min": 1 - }, - "ConnectionPropertyKey": { - "type": "string", - "max": 1000, - "min": 1 - }, - "ConnectionPropertyValue": { - "type": "string", - "max": 1000, - "min": 0 - }, - "CreateConnectionRequest": { - "type": "structure", - "required": ["name", "databaseName", "authenticationType"], - "members": { - "sqlworkbenchSource": { - "shape": "SqlworkbenchSource", - "location": "header", - "locationName": "sqlworkbench-source" - }, - "name": { - "shape": "CreateConnectionRequestNameString", - "documentation": "

Name of the connection

" - }, - "databaseName": { - "shape": "CreateConnectionRequestDatabaseNameString", - "documentation": "

Name of the database used for this connection

" - }, - "authenticationType": { - "shape": "CreateConnectionRequestAuthenticationTypeEnum", - "documentation": "

Number representing the type of authentication to use (2 = IAM, 3 = Username and Password, 4 = Federated connection)

" - }, - "isProd": { "shape": "CreateConnectionRequestIsProdString" }, - "userSettings": { "shape": "UserSettings" }, - "secretArn": { - "shape": "CreateConnectionRequestSecretArnString", - "documentation": "

secretArn for redshift cluster

" - }, - "clusterId": { - "shape": "CreateConnectionRequestClusterIdString", - "documentation": "

Id of the cluster used for this connection

" - }, - "isServerless": { - "shape": "Boolean", - "documentation": "

Is serverless connection

" - }, - "dbUser": { - "shape": "DbUser", - "documentation": "

User of the database used for this connection

" - }, - "isStoreNewSecret": { "shape": "CreateConnectionRequestIsStoreNewSecretString" }, - "username": { - "shape": "DbUser", - "documentation": "

Username used in the Username_Password connection type

" - }, - "password": { - "shape": "CreateConnectionRequestPasswordString", - "documentation": "

Password of the user used for this connection

" - }, - "tags": { "shape": "Tags" }, - "host": { - "shape": "CreateConnectionRequestHostString", - "documentation": "

Host address used for creating secret for Username_Password connection type

" - }, - "secretName": { "shape": "CreateConnectionRequestSecretNameString" }, - "description": { "shape": "CreateConnectionRequestDescriptionString" }, - "databaseType": { "shape": "DatabaseType" }, - "connectableResourceIdentifier": { - "shape": "CreateConnectionRequestConnectableResourceIdentifierString", - "documentation": "

Id of the connectable resource used for this connection

" - }, - "connectableResourceType": { - "shape": "CreateConnectionRequestConnectableResourceTypeString", - "documentation": "

Type of the connectable resource used for this connection

" - } - } - }, - "CreateConnectionRequestAuthenticationTypeEnum": { - "type": "string", - "enum": ["2", "3", "4", "5", "6", "7", "8"], - "max": 1, - "min": 1, - "sensitive": true - }, - "CreateConnectionRequestClusterIdString": { - "type": "string", - "max": 63, - "min": 1 - }, - "CreateConnectionRequestConnectableResourceIdentifierString": { - "type": "string", - "max": 63, - "min": 1, - "sensitive": true - }, - "CreateConnectionRequestConnectableResourceTypeString": { - "type": "string", - "max": 63, - "min": 1 - }, - "CreateConnectionRequestDatabaseNameString": { - "type": "string", - "max": 64, - "min": 1, - "sensitive": true - }, - "CreateConnectionRequestDescriptionString": { - "type": "string", - "max": 1000, - "min": 0 - }, - "CreateConnectionRequestHostString": { - "type": "string", - "max": 1000, - "min": 0 - }, - "CreateConnectionRequestIsProdString": { - "type": "string", - "max": 1000, - "min": 0 - }, - "CreateConnectionRequestIsStoreNewSecretString": { - "type": "string", - "max": 1000, - "min": 0 - }, - "CreateConnectionRequestNameString": { - "type": "string", - "max": 512, - "min": 1, - "sensitive": true - }, - "CreateConnectionRequestPasswordString": { - "type": "string", - "max": 64, - "min": 8, - "sensitive": true - }, - "CreateConnectionRequestSecretArnString": { - "type": "string", - "max": 1000, - "min": 1 - }, - "CreateConnectionRequestSecretNameString": { - "type": "string", - "max": 1000, - "min": 0 - }, - "CreateConnectionResponse": { - "type": "structure", - "members": { - "data": { "shape": "Connection" } - } - }, - "DatabaseAuthenticationMethod": { - "type": "string", - "enum": ["USERNAME_PASSWORD", "TEMPORARY_CREDENTIALS_WITH_IAM"] - }, - "DatabaseAuthenticationMethods": { - "type": "list", - "member": { "shape": "DatabaseAuthenticationMethod" } - }, - "DatabaseAuthenticationOption": { - "type": "structure", - "required": ["connectableResourceType", "authenticationMethods"], - "members": { - "connectableResourceType": { "shape": "String" }, - "authenticationMethods": { "shape": "DatabaseAuthenticationMethods" } - } - }, - "DatabaseAuthenticationOptions": { - "type": "list", - "member": { "shape": "DatabaseAuthenticationOption" } - }, - "DatabaseConfiguration": { - "type": "structure", - "required": [ - "databaseType", - "authenticationOptions", - "connectableResourceTypes", - "sessionSupported", - "eventAcknowledgementSupported", - "appendingLimitToQuerySupported", - "queryStatsSupported" - ], - "members": { - "databaseType": { "shape": "DatabaseType" }, - "authenticationOptions": { "shape": "DatabaseAuthenticationOptions" }, - "connectableResourceTypes": { "shape": "ConnectableResourceTypes" }, - "sessionSupported": { "shape": "Boolean" }, - "eventAcknowledgementSupported": { "shape": "Boolean" }, - "appendingLimitToQuerySupported": { "shape": "Boolean" }, - "queryStatsSupported": { "shape": "Boolean" } - } - }, - "DatabaseConfigurations": { - "type": "list", - "member": { "shape": "DatabaseConfiguration" } - }, - "DatabaseConnectionAccountSettings": { - "type": "structure", - "members": { - "masterKeyArn": { "shape": "KmsKeyArn" } - } - }, - "DatabaseConnectionConfiguration": { - "type": "structure", - "required": ["id", "type", "databaseType", "connectableResourceIdentifier", "connectableResourceType"], - "members": { - "id": { "shape": "DatabaseConnectionConfigurationIdString" }, - "type": { "shape": "DatabaseIntegrationConnectionAuthenticationTypes" }, - "auth": { "shape": "DatabaseConnectionConfigurationAuth" }, - "databaseType": { "shape": "DatabaseType" }, - "connectableResourceIdentifier": { "shape": "ResourceIdentifier" }, - "connectableResourceType": { "shape": "DatabaseConnectionConfigurationConnectableResourceTypeString" }, - "database": { "shape": "DatabaseName" } - } - }, - "DatabaseConnectionConfigurationAuth": { - "type": "structure", - "members": { - "secretArn": { "shape": "SecretKeyArn" }, - "username": { "shape": "DatabaseConnectionConfigurationAuthUsernameString" }, - "password": { "shape": "DatabaseConnectionConfigurationAuthPasswordString" } - } - }, - "DatabaseConnectionConfigurationAuthPasswordString": { - "type": "string", - "max": 1000, - "min": 0, - "sensitive": true - }, - "DatabaseConnectionConfigurationAuthUsernameString": { - "type": "string", - "max": 1000, - "min": 0, - "sensitive": true - }, - "DatabaseConnectionConfigurationConnectableResourceTypeString": { - "type": "string", - "max": 50, - "min": 0 - }, - "DatabaseConnectionConfigurationIdString": { - "type": "string", - "max": 2048, - "min": 32 - }, - "DatabaseIntegrationConnectionAuthenticationTypes": { - "type": "string", - "enum": ["4", "5", "6", "8"], - "sensitive": true - }, - "DatabaseName": { - "type": "string", - "max": 150, - "min": 0, - "sensitive": true - }, - "DatabaseType": { - "type": "string", - "enum": ["REDSHIFT", "ATHENA"] - }, - "DbUser": { - "type": "string", - "max": 127, - "min": 1, - "pattern": "[a-zA-Z0-9_][a-zA-Z_0-9+.@$-]*", - "sensitive": true - }, - "DeleteConnectionRequest": { - "type": "structure", - "required": ["connectionId"], - "members": { - "sqlworkbenchSource": { - "shape": "SqlworkbenchSource", - "location": "header", - "locationName": "sqlworkbench-source" - }, - "connectionId": { - "shape": "DeleteConnectionRequestConnectionIdString", - "documentation": "

Id of connection to delete

", - "location": "uri", - "locationName": "connectionId" - } - } - }, - "DeleteConnectionRequestConnectionIdString": { - "type": "string", - "max": 1000, - "min": 1 - }, - "DeleteConnectionResponse": { - "type": "structure", - "members": {} - }, - "ErrorCode": { - "type": "string", - "enum": ["QUERY_EXECUTION_NOT_FOUND", "QUERY_EXECUTION_ACCESS_DENIED"] - }, - "ExecuteQueryRequest": { - "type": "structure", - "required": ["query", "queryExecutionType", "queryResponseDeliveryType", "maxItems"], - "members": { - "sqlworkbenchSource": { - "shape": "SqlworkbenchSource", - "location": "header", - "locationName": "sqlworkbench-source" - }, - "connectionId": { "shape": "ExecuteQueryRequestConnectionIdString" }, - "databaseType": { - "shape": "DatabaseType", - "location": "querystring", - "locationName": "databaseType" - }, - "connection": { "shape": "DatabaseConnectionConfiguration" }, - "accountSettings": { "shape": "DatabaseConnectionAccountSettings" }, - "tabId": { "shape": "ExecuteQueryRequestTabIdString" }, - "executionContext": { "shape": "ExecuteQueryRequestExecutionContextList" }, - "query": { "shape": "ExecuteQueryRequestQueryString" }, - "queryExecutionType": { "shape": "QueryExecutionType" }, - "sessionId": { "shape": "ExecuteQueryRequestSessionIdString" }, - "queryResponseDeliveryType": { "shape": "QueryResponseDeliveryType" }, - "maxItems": { "shape": "ExecuteQueryRequestMaxItemsInteger" }, - "limitQueryResults": { "shape": "ExecuteQueryRequestLimitQueryResultsInteger" }, - "isExplain": { "shape": "Boolean" }, - "ignoreHistory": { "shape": "Boolean" }, - "timeoutMillis": { "shape": "ExecuteQueryRequestTimeoutMillisInteger" } - } - }, - "ExecuteQueryRequestConnectionIdString": { - "type": "string", - "max": 2048, - "min": 32 - }, - "ExecuteQueryRequestExecutionContextList": { - "type": "list", - "member": { "shape": "ParentResource" }, - "max": 100, - "min": 0 - }, - "ExecuteQueryRequestLimitQueryResultsInteger": { - "type": "integer", - "box": true, - "max": 1000, - "min": 0 - }, - "ExecuteQueryRequestMaxItemsInteger": { - "type": "integer", - "box": true, - "max": 100, - "min": 20 - }, - "ExecuteQueryRequestQueryString": { - "type": "string", - "max": 1000000, - "min": 0, - "sensitive": true - }, - "ExecuteQueryRequestSessionIdString": { - "type": "string", - "max": 100, - "min": 0 - }, - "ExecuteQueryRequestTabIdString": { - "type": "string", - "max": 100, - "min": 1 - }, - "ExecuteQueryRequestTimeoutMillisInteger": { - "type": "integer", - "box": true, - "max": 120000, - "min": 0 - }, - "ExecuteQueryResponse": { - "type": "structure", - "required": ["queryExecutions"], - "members": { - "sessionId": { "shape": "ExecuteQueryResponseSessionIdString" }, - "queryExecutions": { "shape": "QueryExecutions" }, - "statusCode": { - "shape": "statusCode", - "location": "statusCode" - } - } - }, - "ExecuteQueryResponseSessionIdString": { - "type": "string", - "max": 100, - "min": 0 - }, - "ExportQueryResultsRequest": { - "type": "structure", - "required": ["queryExecutionId", "databaseType"], - "members": { - "sqlworkbenchSource": { - "shape": "SqlworkbenchSource", - "location": "header", - "locationName": "sqlworkbench-source" - }, - "accountSettings": { "shape": "DatabaseConnectionAccountSettings" }, - "queryExecutionId": { "shape": "ExportQueryResultsRequestQueryExecutionIdString" }, - "databaseType": { - "shape": "DatabaseType", - "location": "querystring", - "locationName": "databaseType" - }, - "fileType": { "shape": "FileType" } - } - }, - "ExportQueryResultsRequestQueryExecutionIdString": { - "type": "string", - "max": 100, - "min": 1 - }, - "ExportQueryResultsResponse": { - "type": "structure", - "required": ["queryResult", "contentType", "fileName"], - "members": { - "queryResult": { "shape": "StreamingBlob" }, - "contentType": { - "shape": "String", - "location": "header", - "locationName": "Content-Type" - }, - "fileName": { - "shape": "String", - "location": "header", - "locationName": "Content-Disposition" - } - }, - "payload": "queryResult" - }, - "FileType": { - "type": "string", - "enum": ["JSON", "CSV"] - }, - "FullQueryText": { - "type": "string", - "max": 1000000, - "min": 0, - "sensitive": true - }, - "GetConnectableResourcesRequest": { - "type": "structure", - "required": ["type", "maxItems", "databaseType"], - "members": { - "sqlworkbenchSource": { - "shape": "SqlworkbenchSource", - "location": "header", - "locationName": "sqlworkbench-source" - }, - "accountSettings": { "shape": "DatabaseConnectionAccountSettings" }, - "type": { "shape": "GetConnectableResourcesRequestTypeString" }, - "maxItems": { "shape": "GetConnectableResourcesRequestMaxItemsInteger" }, - "pageToken": { "shape": "PageToken" }, - "databaseType": { - "shape": "DatabaseType", - "location": "querystring", - "locationName": "databaseType" - } - } - }, - "GetConnectableResourcesRequestMaxItemsInteger": { - "type": "integer", - "box": true, - "max": 50, - "min": 20 - }, - "GetConnectableResourcesRequestTypeString": { - "type": "string", - "max": 150, - "min": 0 - }, - "GetConnectableResourcesResponse": { - "type": "structure", - "required": ["connectableResources"], - "members": { - "connectableResources": { "shape": "ConnectableResources" }, - "nextToken": { "shape": "String" } - } - }, - "GetConnectionRequest": { - "type": "structure", - "required": ["connectionId"], - "members": { - "sqlworkbenchSource": { - "shape": "SqlworkbenchSource", - "location": "header", - "locationName": "sqlworkbench-source" - }, - "connectionId": { - "shape": "GetConnectionRequestConnectionIdString", - "documentation": "

Id of connection to delete

", - "location": "uri", - "locationName": "connectionId" - } - } - }, - "GetConnectionRequestConnectionIdString": { - "type": "string", - "max": 1000, - "min": 1 - }, - "GetConnectionResponse": { - "type": "structure", - "members": { - "data": { "shape": "Connection" } - } - }, - "GetDatabaseConfigurationsRequest": { - "type": "structure", - "members": { - "sqlworkbenchSource": { - "shape": "SqlworkbenchSource", - "location": "header", - "locationName": "sqlworkbench-source" - }, - "accountSettings": { "shape": "DatabaseConnectionAccountSettings" } - } - }, - "GetDatabaseConfigurationsResponse": { - "type": "structure", - "members": { - "configurations": { "shape": "DatabaseConfigurations" } - } - }, - "GetQueryExecutionHistoryRequest": { - "type": "structure", - "required": ["queryExecutionId"], - "members": { - "sqlworkbenchSource": { - "shape": "SqlworkbenchSource", - "location": "header", - "locationName": "sqlworkbench-source" - }, - "queryExecutionId": { "shape": "GetQueryExecutionHistoryRequestQueryExecutionIdString" }, - "accountSettings": { "shape": "DatabaseConnectionAccountSettings" } - } - }, - "GetQueryExecutionHistoryRequestQueryExecutionIdString": { - "type": "string", - "max": 100, - "min": 1 - }, - "GetQueryExecutionHistoryResponse": { - "type": "structure", - "members": { - "id": { "shape": "String" }, - "querySourceId": { "shape": "String" }, - "queryStartTime": { "shape": "Long" }, - "queryEndTime": { "shape": "Long" }, - "status": { "shape": "QueryExecutionStatus" }, - "queryText": { "shape": "FullQueryText" }, - "serializedMetadata": { "shape": "SerializedMetadata" }, - "serializedQueryStats": { "shape": "SerializedQueryStats" }, - "databaseType": { "shape": "DatabaseType" } - } - }, - "GetQueryResultRequest": { - "type": "structure", - "required": ["queryExecutionId", "databaseType"], - "members": { - "sqlworkbenchSource": { - "shape": "SqlworkbenchSource", - "location": "header", - "locationName": "sqlworkbench-source" - }, - "queryExecutionId": { "shape": "GetQueryResultRequestQueryExecutionIdString" }, - "accountSettings": { "shape": "DatabaseConnectionAccountSettings" }, - "pageToken": { "shape": "PageToken" }, - "databaseType": { - "shape": "DatabaseType", - "location": "querystring", - "locationName": "databaseType" - }, - "pageSize": { "shape": "GetQueryResultRequestPageSizeInteger" } - } - }, - "GetQueryResultRequestPageSizeInteger": { - "type": "integer", - "box": true, - "min": 0 - }, - "GetQueryResultRequestQueryExecutionIdString": { - "type": "string", - "max": 100, - "min": 1 - }, - "GetQueryResultResponse": { - "type": "structure", - "members": { - "queryResult": { "shape": "QueryResult" }, - "nextToken": { "shape": "String" }, - "previousToken": { "shape": "String" } - } - }, - "GetResourcesRequest": { - "type": "structure", - "required": ["parents", "type", "maxItems"], - "members": { - "sqlworkbenchSource": { - "shape": "SqlworkbenchSource", - "location": "header", - "locationName": "sqlworkbench-source" - }, - "connectionId": { "shape": "GetResourcesRequestConnectionIdString" }, - "databaseType": { - "shape": "DatabaseType", - "location": "querystring", - "locationName": "databaseType" - }, - "connection": { "shape": "DatabaseConnectionConfiguration" }, - "accountSettings": { "shape": "DatabaseConnectionAccountSettings" }, - "parents": { "shape": "ParentResources" }, - "type": { "shape": "GetResourcesRequestTypeString" }, - "maxItems": { "shape": "GetResourcesRequestMaxItemsInteger" }, - "pageToken": { "shape": "PageToken" }, - "forceRefresh": { "shape": "Boolean" }, - "forceRefreshRecursive": { "shape": "Boolean" } - } - }, - "GetResourcesRequestConnectionIdString": { - "type": "string", - "max": 2048, - "min": 32 - }, - "GetResourcesRequestMaxItemsInteger": { - "type": "integer", - "box": true, - "max": 100, - "min": 20 - }, - "GetResourcesRequestTypeString": { - "type": "string", - "max": 150, - "min": 0 - }, - "GetResourcesResponse": { - "type": "structure", - "members": { - "resources": { "shape": "Resources" }, - "nextToken": { "shape": "String" }, - "statusCode": { - "shape": "statusCode", - "location": "statusCode" - }, - "connectionProperties": { "shape": "ConnectionProperties" } - } - }, - "GetTabStatesRequest": { - "type": "structure", - "required": ["tabId"], - "members": { - "sqlworkbenchSource": { - "shape": "SqlworkbenchSource", - "location": "header", - "locationName": "sqlworkbench-source" - }, - "accountSettings": { "shape": "DatabaseConnectionAccountSettings" }, - "tabId": { "shape": "String" } - } - }, - "GetTabStatesResponse": { - "type": "structure", - "required": ["queryExecutionStates"], - "members": { - "queryExecutionStates": { "shape": "QueryExecutionStates" }, - "sessionId": { "shape": "String" } - } - }, - "Integer": { - "type": "integer", - "box": true - }, - "InternalServerError": { - "type": "structure", - "required": ["message"], - "members": { - "message": { "shape": "String" }, - "code": { "shape": "ErrorCode" } - }, - "error": { "httpStatusCode": 500 }, - "exception": true, - "fault": true - }, - "KmsKeyArn": { - "type": "string", - "max": 1000, - "min": 0, - "pattern": "arn:.*" - }, - "ListQueryExecutionHistoryRequest": { - "type": "structure", - "required": ["maxItems"], - "members": { - "sqlworkbenchSource": { - "shape": "SqlworkbenchSource", - "location": "header", - "locationName": "sqlworkbench-source" - }, - "maxItems": { "shape": "ListQueryExecutionHistoryRequestMaxItemsInteger" }, - "accountSettings": { "shape": "DatabaseConnectionAccountSettings" }, - "pageToken": { "shape": "ListQueryExecutionHistoryRequestPageTokenString" }, - "querySourceId": { "shape": "ListQueryExecutionHistoryRequestQuerySourceIdString" }, - "databaseType": { "shape": "DatabaseType" }, - "status": { "shape": "QueryExecutionStatus" }, - "startTime": { "shape": "QueryHistoryTimestamp" }, - "endTime": { "shape": "QueryHistoryTimestamp" }, - "containsText": { "shape": "ListQueryExecutionHistoryRequestContainsTextString" } - } - }, - "ListQueryExecutionHistoryRequestContainsTextString": { - "type": "string", - "max": 100, - "min": 0 - }, - "ListQueryExecutionHistoryRequestMaxItemsInteger": { - "type": "integer", - "box": true, - "max": 100, - "min": 1 - }, - "ListQueryExecutionHistoryRequestPageTokenString": { - "type": "string", - "max": 10000, - "min": 0 - }, - "ListQueryExecutionHistoryRequestQuerySourceIdString": { - "type": "string", - "max": 100, - "min": 0 - }, - "ListQueryExecutionHistoryResponse": { - "type": "structure", - "required": ["items"], - "members": { - "items": { "shape": "QueryExecutionHistoryPreviews" }, - "nextToken": { "shape": "ListQueryExecutionHistoryResponseNextTokenString" } - } - }, - "ListQueryExecutionHistoryResponseNextTokenString": { - "type": "string", - "max": 1000, - "min": 0 - }, - "ListTagsForResourceRequest": { - "type": "structure", - "required": ["resourceArn"], - "members": { - "sqlworkbenchSource": { - "shape": "SqlworkbenchSource", - "location": "header", - "locationName": "sqlworkbench-source" - }, - "resourceArn": { - "shape": "Arn", - "location": "uri", - "locationName": "resourceArn" - } - } - }, - "ListTagsForResourceResponse": { - "type": "structure", - "required": ["tags"], - "members": { - "tags": { "shape": "Tags" } - } - }, - "Long": { - "type": "long", - "box": true - }, - "PageToken": { - "type": "string", - "max": 1000, - "min": 0 - }, - "ParentResource": { - "type": "structure", - "required": ["parentId", "parentType"], - "members": { - "parentId": { "shape": "ParentResourceParentIdString" }, - "parentType": { "shape": "ParentResourceParentTypeString" } - } - }, - "ParentResourceParentIdString": { - "type": "string", - "max": 1000, - "min": 1, - "sensitive": true - }, - "ParentResourceParentTypeString": { - "type": "string", - "max": 100, - "min": 1 - }, - "ParentResources": { - "type": "list", - "member": { "shape": "ParentResource" } - }, - "PollQueryExecutionEventsRequest": { - "type": "structure", - "required": ["queryExecutionIds", "databaseType"], - "members": { - "sqlworkbenchSource": { - "shape": "SqlworkbenchSource", - "location": "header", - "locationName": "sqlworkbench-source" - }, - "queryExecutionIds": { "shape": "PollQueryExecutionEventsRequestQueryExecutionIdsList" }, - "accountSettings": { "shape": "DatabaseConnectionAccountSettings" }, - "databaseType": { - "shape": "DatabaseType", - "location": "querystring", - "locationName": "databaseType" - }, - "ackIds": { "shape": "AckIds" } - } - }, - "PollQueryExecutionEventsRequestQueryExecutionIdsList": { - "type": "list", - "member": { "shape": "PollQueryExecutionEventsRequestQueryExecutionIdsListMemberString" }, - "max": 100, - "min": 1 - }, - "PollQueryExecutionEventsRequestQueryExecutionIdsListMemberString": { - "type": "string", - "max": 100, - "min": 1 - }, - "PollQueryExecutionEventsResponse": { - "type": "structure", - "members": { - "events": { "shape": "QueryExecutionEvents" } - } - }, - "QueryCancellationStatus": { - "type": "string", - "enum": ["CANCELLED", "DOES_NOT_EXISTS", "ALREADY_FINISHED", "CANCELLATION_FAILED"] - }, - "QueryExecution": { - "type": "structure", - "required": ["queryExecutionId"], - "members": { - "queryExecutionStatus": { "shape": "QueryExecutionStatus" }, - "queryExecutionId": { "shape": "QueryExecutionQueryExecutionIdString" }, - "queryResult": { "shape": "QueryResult" }, - "queryText": { "shape": "QueryText" } - } - }, - "QueryExecutionEvent": { - "type": "structure", - "required": ["queryExecutionEventType", "queryExecutionId"], - "members": { - "queryExecutionEventType": { "shape": "QueryExecutionEventType" }, - "queryExecutionId": { "shape": "QueryExecutionEventQueryExecutionIdString" }, - "queryExecutionStatus": { "shape": "QueryExecutionStatus" }, - "queryResult": { "shape": "QueryResult" }, - "nextToken": { "shape": "String" }, - "ackId": { "shape": "String" } - } - }, - "QueryExecutionEventQueryExecutionIdString": { - "type": "string", - "max": 100, - "min": 0 - }, - "QueryExecutionEventType": { - "type": "string", - "enum": ["QUERY_EXECUTION_STATUS", "QUERY_EXECUTION_RESULT"] - }, - "QueryExecutionEvents": { - "type": "list", - "member": { "shape": "QueryExecutionEvent" } - }, - "QueryExecutionHistoryPreview": { - "type": "structure", - "members": { - "id": { "shape": "String" }, - "querySourceId": { "shape": "String" }, - "queryStartTime": { "shape": "Long" }, - "queryEndTime": { "shape": "Long" }, - "status": { "shape": "QueryExecutionStatus" }, - "queryTextPreview": { "shape": "QueryTextPreview" }, - "serializedMetadata": { "shape": "SerializedMetadata" }, - "databaseType": { "shape": "DatabaseType" } - } - }, - "QueryExecutionHistoryPreviews": { - "type": "list", - "member": { "shape": "QueryExecutionHistoryPreview" } - }, - "QueryExecutionQueryExecutionIdString": { - "type": "string", - "max": 100, - "min": 0 - }, - "QueryExecutionState": { - "type": "structure", - "required": ["queryExecutionId", "status", "databaseType"], - "members": { - "queryExecutionId": { "shape": "String" }, - "status": { "shape": "String" }, - "databaseType": { "shape": "DatabaseType" } - } - }, - "QueryExecutionStates": { - "type": "list", - "member": { "shape": "QueryExecutionState" } - }, - "QueryExecutionStatus": { - "type": "string", - "enum": ["SCHEDULED", "RUNNING", "FAILED", "CANCELLED", "FINISHED"] - }, - "QueryExecutionType": { - "type": "string", - "enum": ["PERSIST_SESSION", "NO_SESSION"] - }, - "QueryExecutionWarning": { - "type": "structure", - "members": { - "message": { "shape": "QueryExecutionWarningMessage" }, - "level": { "shape": "QueryExecutionWarningLevel" } - } - }, - "QueryExecutionWarningLevel": { - "type": "string", - "enum": ["INFO", "WARNING"] - }, - "QueryExecutionWarningMessage": { - "type": "string", - "max": 1000, - "min": 0, - "sensitive": true - }, - "QueryExecutionWarnings": { - "type": "list", - "member": { "shape": "QueryExecutionWarning" } - }, - "QueryExecutions": { - "type": "list", - "member": { "shape": "QueryExecution" } - }, - "QueryHistoryTimestamp": { - "type": "long", - "box": true - }, - "QueryResponseDeliveryType": { - "type": "string", - "enum": ["SYNC", "ASYNC"] - }, - "QueryResult": { - "type": "structure", - "members": { - "queryExecutionStatus": { "shape": "QueryExecutionStatus" }, - "headers": { "shape": "QueryResultHeaders" }, - "rows": { "shape": "Rows" }, - "affectedRows": { "shape": "Integer" }, - "totalRowCount": { "shape": "Integer" }, - "elapsedTime": { "shape": "Long" }, - "errorMessage": { "shape": "QueryResultErrorMessage" }, - "errorPosition": { "shape": "Integer" }, - "queryResultWarningCode": { "shape": "QueryResultQueryResultWarningCodeString" }, - "warnings": { "shape": "QueryExecutionWarnings" }, - "queryExecutionId": { "shape": "String" }, - "sessionId": { "shape": "String" }, - "queryText": { "shape": "QueryText" }, - "statementType": { "shape": "StatementType" }, - "serializedMetadata": { "shape": "SerializedMetadata" }, - "connectionProperties": { "shape": "ConnectionProperties" } - } - }, - "QueryResultCellType": { - "type": "string", - "enum": ["STRING", "BOOLEAN", "INTEGER", "BIG_INTEGER", "FLOAT", "BIG_DECIMAL", "DATE", "TIME", "DATETIME"] - }, - "QueryResultCellValue": { - "type": "string", - "sensitive": true - }, - "QueryResultErrorMessage": { - "type": "string", - "max": 1000, - "min": 0, - "sensitive": true - }, - "QueryResultHeader": { - "type": "structure", - "required": ["displayName", "type"], - "members": { - "displayName": { "shape": "QueryResultHeaderDisplayName" }, - "type": { "shape": "QueryResultCellType" } - } - }, - "QueryResultHeaderDisplayName": { - "type": "string", - "sensitive": true - }, - "QueryResultHeaders": { - "type": "list", - "member": { "shape": "QueryResultHeader" } - }, - "QueryResultQueryResultWarningCodeString": { - "type": "string", - "max": 100, - "min": 0 - }, - "QueryText": { - "type": "string", - "sensitive": true - }, - "QueryTextPreview": { - "type": "string", - "max": 150, - "min": 0, - "sensitive": true - }, - "Resource": { - "type": "structure", - "required": ["displayName", "identifier", "childObjectTypes"], - "members": { - "displayName": { "shape": "ResourceDisplayName" }, - "identifier": { "shape": "ResourceIdentifier" }, - "type": { "shape": "ResourceTypeString" }, - "unavailable": { "shape": "Boolean" }, - "tooltipTranslationKey": { "shape": "ResourceTooltipTranslationKeyString" }, - "childObjectTypes": { "shape": "ChildObjectTypes" }, - "allowedActions": { "shape": "ResourceActions" }, - "resourceMetadata": { "shape": "ResourceMetadataItems" } - } - }, - "ResourceAction": { - "type": "string", - "enum": ["Drop", "Truncate", "GenerateDefinition", "GenerateSelectQuery"] - }, - "ResourceActions": { - "type": "list", - "member": { "shape": "ResourceAction" } - }, - "ResourceDisplayName": { - "type": "string", - "max": 150, - "min": 0, - "sensitive": true - }, - "ResourceIdentifier": { - "type": "string", - "max": 150, - "min": 0, - "sensitive": true - }, - "ResourceMetadata": { - "type": "structure", - "members": { - "key": { "shape": "String" }, - "value": { "shape": "String" } - } - }, - "ResourceMetadataItems": { - "type": "list", - "member": { "shape": "ResourceMetadata" } - }, - "ResourceNotFoundException": { - "type": "structure", - "required": ["message"], - "members": { - "message": { "shape": "String" }, - "code": { "shape": "ErrorCode" } - }, - "error": { - "httpStatusCode": 404, - "senderFault": true - }, - "exception": true - }, - "ResourceTooltipTranslationKeyString": { - "type": "string", - "max": 50, - "min": 0 - }, - "ResourceTypeString": { - "type": "string", - "max": 50, - "min": 0 - }, - "Resources": { - "type": "list", - "member": { "shape": "Resource" } - }, - "Row": { - "type": "structure", - "members": { - "row": { "shape": "Columns" } - } - }, - "Rows": { - "type": "list", - "member": { "shape": "Row" } - }, - "SecretKeyArn": { - "type": "string", - "max": 1000, - "min": 0, - "pattern": "arn:.*" - }, - "SerializedMetadata": { - "type": "string", - "max": 1000000, - "min": 0, - "sensitive": true - }, - "SerializedQueryStats": { - "type": "string", - "max": 1000000, - "min": 0, - "sensitive": true - }, - "ServiceQuotaExceededException": { - "type": "structure", - "required": ["message"], - "members": { - "message": { "shape": "String" }, - "code": { "shape": "ErrorCode" } - }, - "error": { - "httpStatusCode": 402, - "senderFault": true - }, - "exception": true - }, - "SqlworkbenchSource": { - "type": "string", - "enum": ["SUS", "RQEV2"] - }, - "StatementType": { - "type": "string", - "enum": ["DQL", "DML", "DDL", "DCL", "Utility"] - }, - "StreamingBlob": { - "type": "blob", - "streaming": true - }, - "String": { "type": "string" }, - "TagKey": { - "type": "string", - "max": 128, - "min": 1, - "pattern": "([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)" - }, - "TagKeyList": { - "type": "list", - "member": { "shape": "TagKey" }, - "max": 6500, - "min": 1 - }, - "TagResourceRequest": { - "type": "structure", - "required": ["resourceArn", "tags"], - "members": { - "sqlworkbenchSource": { - "shape": "SqlworkbenchSource", - "location": "header", - "locationName": "sqlworkbench-source" - }, - "resourceArn": { - "shape": "Arn", - "location": "uri", - "locationName": "resourceArn" - }, - "tags": { "shape": "Tags" } - } - }, - "TagResourceResponse": { - "type": "structure", - "members": {} - }, - "TagValue": { - "type": "string", - "max": 256, - "min": 0, - "pattern": "([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)" - }, - "TagrisAccessDeniedException": { - "type": "structure", - "members": { - "message": { "shape": "TagrisExceptionMessage" } - }, - "exception": true - }, - "TagrisAccountId": { - "type": "string", - "max": 12, - "min": 12 - }, - "TagrisAmazonResourceName": { - "type": "string", - "max": 1011, - "min": 1 - }, - "TagrisExceptionMessage": { - "type": "string", - "max": 2048, - "min": 0 - }, - "TagrisInternalId": { - "type": "string", - "max": 64, - "min": 0 - }, - "TagrisInternalServiceException": { - "type": "structure", - "members": { - "message": { "shape": "TagrisExceptionMessage" } - }, - "exception": true, - "fault": true - }, - "TagrisInvalidArnException": { - "type": "structure", - "members": { - "message": { "shape": "TagrisExceptionMessage" }, - "sweepListItem": { "shape": "TagrisSweepListItem" } - }, - "exception": true - }, - "TagrisInvalidParameterException": { - "type": "structure", - "members": { - "message": { "shape": "TagrisExceptionMessage" } - }, - "exception": true - }, - "TagrisPartialResourcesExistResultsException": { - "type": "structure", - "members": { - "message": { "shape": "TagrisExceptionMessage" }, - "resourceExistenceInformation": { "shape": "TagrisSweepListResult" } - }, - "exception": true - }, - "TagrisStatus": { - "type": "string", - "enum": ["ACTIVE", "NOT_ACTIVE"] - }, - "TagrisSweepList": { - "type": "list", - "member": { "shape": "TagrisSweepListItem" } - }, - "TagrisSweepListItem": { - "type": "structure", - "members": { - "TagrisAccountId": { "shape": "TagrisAccountId" }, - "TagrisAmazonResourceName": { "shape": "TagrisAmazonResourceName" }, - "TagrisInternalId": { "shape": "TagrisInternalId" }, - "TagrisVersion": { "shape": "TagrisVersion" } - } - }, - "TagrisSweepListResult": { - "type": "map", - "key": { "shape": "TagrisAmazonResourceName" }, - "value": { "shape": "TagrisStatus" } - }, - "TagrisThrottledException": { - "type": "structure", - "members": { - "message": { "shape": "TagrisExceptionMessage" } - }, - "exception": true - }, - "TagrisVerifyResourcesExistInput": { - "type": "structure", - "required": ["TagrisSweepList"], - "members": { - "TagrisSweepList": { "shape": "TagrisSweepList" } - } - }, - "TagrisVerifyResourcesExistOutput": { - "type": "structure", - "required": ["TagrisSweepListResult"], - "members": { - "TagrisSweepListResult": { "shape": "TagrisSweepListResult" } - } - }, - "TagrisVersion": { "type": "long" }, - "Tags": { - "type": "map", - "key": { "shape": "TagKey" }, - "value": { "shape": "TagValue" }, - "max": 50, - "min": 1 - }, - "ThrottlingException": { - "type": "structure", - "required": ["message"], - "members": { - "message": { "shape": "String" }, - "code": { "shape": "ErrorCode" } - }, - "error": { - "httpStatusCode": 429, - "senderFault": true - }, - "exception": true - }, - "UntagResourceRequest": { - "type": "structure", - "required": ["resourceArn", "tagKeys"], - "members": { - "sqlworkbenchSource": { - "shape": "SqlworkbenchSource", - "location": "header", - "locationName": "sqlworkbench-source" - }, - "resourceArn": { - "shape": "Arn", - "location": "uri", - "locationName": "resourceArn" - }, - "tagKeys": { - "shape": "TagKeyList", - "location": "querystring", - "locationName": "tagKeys" - } - } - }, - "UntagResourceResponse": { - "type": "structure", - "members": {} - }, - "UpdateConnectionRequest": { - "type": "structure", - "required": ["id", "authenticationType"], - "members": { - "sqlworkbenchSource": { - "shape": "SqlworkbenchSource", - "location": "header", - "locationName": "sqlworkbench-source" - }, - "id": { - "shape": "UpdateConnectionRequestIdString", - "documentation": "

Id of the connection to update

" - }, - "name": { - "shape": "UpdateConnectionRequestNameString", - "documentation": "

Name of the connection

" - }, - "databaseName": { - "shape": "UpdateConnectionRequestDatabaseNameString", - "documentation": "

Name of the database used for this connection

" - }, - "authenticationType": { - "shape": "UpdateConnectionRequestAuthenticationTypeEnum", - "documentation": "

Number representing the type of authentication to use (2 = IAM, 3 = Username and Password, 4 = Federated connection)

" - }, - "secretArn": { - "shape": "UpdateConnectionRequestSecretArnString", - "documentation": "

secretArn for redshift cluster

" - }, - "clusterId": { - "shape": "UpdateConnectionRequestClusterIdString", - "documentation": "

Id of the cluster used for this connection

" - }, - "isServerless": { - "shape": "Boolean", - "documentation": "

Is serverless connection

" - }, - "dbUser": { - "shape": "DbUser", - "documentation": "

User of the database used for this connection

" - }, - "username": { - "shape": "DbUser", - "documentation": "

Username used in the Username_Password connection type

" - }, - "password": { - "shape": "UpdateConnectionRequestPasswordString", - "documentation": "

Password of the user used for this connection

" - }, - "host": { - "shape": "String", - "documentation": "

Host address used for creating secret for Username_Password connection type

" - }, - "databaseType": { "shape": "DatabaseType" }, - "connectableResourceIdentifier": { - "shape": "UpdateConnectionRequestConnectableResourceIdentifierString", - "documentation": "

Id of the connectable resource used for this connection

" - }, - "connectableResourceType": { - "shape": "UpdateConnectionRequestConnectableResourceTypeString", - "documentation": "

Type of the connectable resource used for this connection

" - } - } - }, - "UpdateConnectionRequestAuthenticationTypeEnum": { - "type": "string", - "enum": ["2", "3", "4", "5", "6", "7", "8"], - "max": 1, - "min": 1, - "sensitive": true - }, - "UpdateConnectionRequestClusterIdString": { - "type": "string", - "max": 63, - "min": 1 - }, - "UpdateConnectionRequestConnectableResourceIdentifierString": { - "type": "string", - "max": 63, - "min": 1, - "sensitive": true - }, - "UpdateConnectionRequestConnectableResourceTypeString": { - "type": "string", - "max": 63, - "min": 1 - }, - "UpdateConnectionRequestDatabaseNameString": { - "type": "string", - "max": 64, - "min": 1, - "sensitive": true - }, - "UpdateConnectionRequestIdString": { - "type": "string", - "max": 2048, - "min": 32 - }, - "UpdateConnectionRequestNameString": { - "type": "string", - "max": 512, - "min": 1, - "sensitive": true - }, - "UpdateConnectionRequestPasswordString": { - "type": "string", - "max": 64, - "min": 8, - "sensitive": true - }, - "UpdateConnectionRequestSecretArnString": { - "type": "string", - "max": 1000, - "min": 1 - }, - "UpdateConnectionResponse": { - "type": "structure", - "members": { - "data": { "shape": "Connection" } - } - }, - "UserSettings": { - "type": "string", - "sensitive": true - }, - "ValidationException": { - "type": "structure", - "required": ["message"], - "members": { - "message": { "shape": "String" }, - "code": { "shape": "ErrorCode" } - }, - "error": { - "httpStatusCode": 400, - "senderFault": true - }, - "exception": true - }, - "statusCode": { - "type": "integer", - "box": true, - "max": 500, - "min": 100 - } - } -} diff --git a/packages/core/src/test/sagemakerunifiedstudio/shared/client/sqlWorkbenchClient.test.ts b/packages/core/src/test/sagemakerunifiedstudio/shared/client/sqlWorkbenchClient.test.ts index e4b1dc50a85..7533b15ded1 100644 --- a/packages/core/src/test/sagemakerunifiedstudio/shared/client/sqlWorkbenchClient.test.ts +++ b/packages/core/src/test/sagemakerunifiedstudio/shared/client/sqlWorkbenchClient.test.ts @@ -11,36 +11,23 @@ import { createRedshiftConnectionConfig, } from '../../../../sagemakerunifiedstudio/shared/client/sqlWorkbenchClient' import { STSClient } from '@aws-sdk/client-sts' -import globals from '../../../../shared/extensionGlobals' import { ConnectionCredentialsProvider } from '../../../../sagemakerunifiedstudio/auth/providers/connectionCredentialsProvider' +import { + DatabaseIntegrationConnectionAuthenticationTypes, + SQLWorkbench, + GetResourcesCommand, + ExecuteQueryCommand, +} from '@amzn/sql-workbench-client' describe('SQLWorkbenchClient', function () { let sandbox: sinon.SinonSandbox - let mockSqlClient: any - let mockSdkClientBuilder: any + let sendStub: sinon.SinonStub beforeEach(function () { sandbox = sinon.createSandbox() - mockSqlClient = { - getResources: sandbox.stub().returns({ - promise: sandbox.stub().resolves({ - resources: [{ name: 'test-resource' }], - nextToken: 'next-token', - }), - }), - executeQuery: sandbox.stub().returns({ - promise: sandbox.stub().resolves({ - queryExecutions: [{ queryExecutionId: 'test-execution-id' }], - }), - }), - } - - mockSdkClientBuilder = { - createAwsService: sandbox.stub().resolves(mockSqlClient), - } - - sandbox.stub(globals, 'sdkClientBuilder').value(mockSdkClientBuilder) + // Mock SDK v3 send method + sendStub = sandbox.stub(SQLWorkbench.prototype, 'send') }) afterEach(function () { @@ -83,11 +70,17 @@ describe('SQLWorkbenchClient', function () { describe('getResources', function () { it('should get resources with connection', async function () { + // Mock the send method to return expected response + sendStub.resolves({ + resources: [{ displayName: 'test-resource' }], + nextToken: 'next-token', + }) + const client = SQLWorkbenchClient.getInstance('us-east-1') const connectionConfig = { - id: 'test-id', - type: 'test-type', - databaseType: 'REDSHIFT', + id: 'arn:aws:sqlworkbench:us-east-1:123456789012:connection/test-uuid-1234', + type: DatabaseIntegrationConnectionAuthenticationTypes.FEDERATED, + databaseType: 'REDSHIFT' as const, connectableResourceIdentifier: 'test-identifier', connectableResourceType: 'CLUSTER', database: 'test-db', @@ -99,15 +92,15 @@ describe('SQLWorkbenchClient', function () { maxItems: 50, }) - assert.deepStrictEqual(result.resources, [{ name: 'test-resource' }]) + assert.deepStrictEqual(result.resources, [{ displayName: 'test-resource' }]) assert.strictEqual(result.nextToken, 'next-token') + assert.ok(sendStub.calledOnce) + assert.ok(sendStub.firstCall.args[0] instanceof GetResourcesCommand) }) it('should handle API errors', async function () { const error = new Error('API Error') - mockSqlClient.getResources.returns({ - promise: sandbox.stub().rejects(error), - }) + sendStub.rejects(error) const client = SQLWorkbenchClient.getInstance('us-east-1') @@ -115,9 +108,9 @@ describe('SQLWorkbenchClient', function () { async () => await client.getResources({ connection: { - id: '', - type: '', - databaseType: '', + id: 'arn:aws:sqlworkbench:us-east-1:123456789012:connection/test-uuid-1234', + type: DatabaseIntegrationConnectionAuthenticationTypes.FEDERATED, + databaseType: 'REDSHIFT' as const, connectableResourceIdentifier: '', connectableResourceType: '', database: '', @@ -131,11 +124,16 @@ describe('SQLWorkbenchClient', function () { describe('executeQuery', function () { it('should execute query successfully', async function () { + // Mock the send method to return expected response + sendStub.resolves({ + queryExecutions: [{ queryExecutionId: 'test-execution-id' }], + }) + const client = SQLWorkbenchClient.getInstance('us-east-1') const connectionConfig = { - id: 'test-id', - type: 'test-type', - databaseType: 'REDSHIFT', + id: 'arn:aws:sqlworkbench:us-east-1:123456789012:connection/test-uuid-1234', + type: DatabaseIntegrationConnectionAuthenticationTypes.FEDERATED, + databaseType: 'REDSHIFT' as const, connectableResourceIdentifier: 'test-identifier', connectableResourceType: 'CLUSTER', database: 'test-db', @@ -144,19 +142,19 @@ describe('SQLWorkbenchClient', function () { const result = await client.executeQuery(connectionConfig, 'SELECT 1') assert.strictEqual(result, 'test-execution-id') + assert.ok(sendStub.calledOnce) + assert.ok(sendStub.firstCall.args[0] instanceof ExecuteQueryCommand) }) it('should handle query execution errors', async function () { const error = new Error('Query Error') - mockSqlClient.executeQuery.returns({ - promise: sandbox.stub().rejects(error), - }) + sendStub.rejects(error) const client = SQLWorkbenchClient.getInstance('us-east-1') const connectionConfig = { - id: 'test-id', - type: 'test-type', - databaseType: 'REDSHIFT', + id: 'arn:aws:sqlworkbench:us-east-1:123456789012:connection/test-uuid-1234', + type: DatabaseIntegrationConnectionAuthenticationTypes.FEDERATED, + databaseType: 'REDSHIFT' as const, connectableResourceIdentifier: 'test-identifier', connectableResourceType: 'CLUSTER', database: 'test-db', diff --git a/src.gen/@amzn/sql-workbench-client/3.0.0.tgz b/src.gen/@amzn/sql-workbench-client/3.0.0.tgz new file mode 100644 index 00000000000..eab84f8a353 Binary files /dev/null and b/src.gen/@amzn/sql-workbench-client/3.0.0.tgz differ