@rio-cloud/cdk-v2-constructs 7.14.0 → 7.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +7 -7
- package/lib/contributions/team-transport-two/datadog-synthetics/datadog-synthetics-test-custom-resource/handler.cjs +344 -272
- package/lib/datadogv2/secret-locator-custom-resource/on-create.cjs +356 -284
- package/lib/datadogv2/service-catalog-custom-resource/on-create.cjs +344 -272
- package/lib/fargate/codedeploy-custom-resources/create-deployment-is-complete.cjs +344 -272
- package/lib/fargate/codedeploy-custom-resources/create-deployment-on-create.cjs +344 -272
- package/lib/fargate/codedeploy-custom-resources/run-monitoring-test-suite-runner.cjs +344 -272
- package/node_modules/@aws-sdk/client-cloudformation/package.json +12 -12
- package/node_modules/@aws-sdk/client-codedeploy/package.json +12 -12
- package/node_modules/@aws-sdk/client-ecs/package.json +12 -12
- package/node_modules/@aws-sdk/client-organizations/package.json +12 -12
- package/node_modules/@aws-sdk/client-secrets-manager/package.json +12 -12
- package/node_modules/@aws-sdk/client-ssm/package.json +12 -12
- package/node_modules/@aws-sdk/core/dist-cjs/index.js +54 -21
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +54 -21
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/ProtocolLib.js +24 -6
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.js +6 -5
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJson1_0Protocol.js +2 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJson1_1Protocol.js +2 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +6 -4
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +6 -4
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsQueryProtocol.js +4 -2
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/AwsRestXmlProtocol.js +9 -3
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/ProtocolLib.d.ts +13 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.d.ts +3 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_0Protocol.d.ts +3 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_1Protocol.d.ts +3 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +3 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsRestJsonProtocol.d.ts +3 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/AwsEc2QueryProtocol.d.ts +3 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/AwsQueryProtocol.d.ts +3 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/AwsRestXmlProtocol.d.ts +2 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/ProtocolLib.d.ts +6 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.d.ts +3 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_0Protocol.d.ts +3 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_1Protocol.d.ts +3 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +3 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsRestJsonProtocol.d.ts +8 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsEc2QueryProtocol.d.ts +3 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsQueryProtocol.d.ts +3 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/AwsRestXmlProtocol.d.ts +6 -1
- package/node_modules/@aws-sdk/core/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-http/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-login/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/CognitoIdentity.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/CognitoIdentity.d.ts +2 -2
- package/node_modules/@aws-sdk/nested-clients/package.json +11 -11
- package/node_modules/@aws-sdk/region-config-resolver/package.json +2 -2
- package/node_modules/@aws-sdk/token-providers/package.json +3 -3
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
- package/node_modules/@aws-sdk/xml-builder/dist-types/ts3.4/XmlNode.d.ts +29 -49
- package/node_modules/@aws-sdk/xml-builder/dist-types/ts3.4/XmlText.d.ts +6 -11
- package/node_modules/@aws-sdk/xml-builder/dist-types/ts3.4/escape-attribute.d.ts +1 -6
- package/node_modules/@aws-sdk/xml-builder/dist-types/ts3.4/escape-element.d.ts +1 -6
- package/node_modules/@aws-sdk/xml-builder/dist-types/ts3.4/index.d.ts +3 -12
- package/node_modules/@aws-sdk/xml-builder/dist-types/ts3.4/stringable.d.ts +3 -6
- package/node_modules/@aws-sdk/xml-builder/dist-types/ts3.4/xml-parser.browser.d.ts +1 -9
- package/node_modules/@aws-sdk/xml-builder/dist-types/ts3.4/xml-parser.d.ts +1 -4
- package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
- package/node_modules/@smithy/config-resolver/dist-cjs/index.js +12 -0
- package/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js +5 -0
- package/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/NodeUseFipsEndpointConfigOptions.js +5 -0
- package/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/NodeUseDualstackEndpointConfigOptions.d.ts +6 -0
- package/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/NodeUseFipsEndpointConfigOptions.d.ts +6 -0
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/NodeUseDualstackEndpointConfigOptions.d.ts +6 -0
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/NodeUseFipsEndpointConfigOptions.d.ts +6 -0
- package/node_modules/@smithy/config-resolver/package.json +1 -1
- package/node_modules/@smithy/middleware-endpoint/dist-types/resolveEndpointConfig.d.ts +2 -2
- package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/resolveEndpointConfig.d.ts +2 -2
- package/node_modules/@smithy/middleware-endpoint/package.json +1 -1
- package/node_modules/@smithy/middleware-retry/package.json +2 -2
- package/node_modules/@smithy/smithy-client/package.json +2 -2
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +2 -2
- package/node_modules/@smithy/util-defaults-mode-node/package.json +3 -3
- package/node_modules/fast-xml-parser/CHANGELOG.md +7 -0
- package/node_modules/fast-xml-parser/lib/fxbuilder.min.js +1 -1
- package/node_modules/fast-xml-parser/lib/fxbuilder.min.js.map +1 -1
- package/node_modules/fast-xml-parser/lib/fxp.cjs +1 -1
- package/node_modules/fast-xml-parser/lib/fxp.d.cts +20 -12
- package/node_modules/fast-xml-parser/lib/fxp.min.js +1 -1
- package/node_modules/fast-xml-parser/lib/fxp.min.js.map +1 -1
- package/node_modules/fast-xml-parser/lib/fxparser.min.js +1 -1
- package/node_modules/fast-xml-parser/lib/fxparser.min.js.map +1 -1
- package/node_modules/fast-xml-parser/lib/pem.d.cts +148 -0
- package/node_modules/fast-xml-parser/package.json +3 -3
- package/node_modules/fast-xml-parser/src/fxp.d.ts +13 -11
- package/node_modules/fast-xml-parser/src/pem.d.ts +135 -0
- package/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js +26 -17
- package/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js +6 -6
- package/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +22 -16
- package/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js +2 -2
- package/node_modules/fast-xml-parser/src/xmlparser/node2json.js +10 -11
- package/node_modules/path-expression-matcher/README.md +98 -13
- package/node_modules/path-expression-matcher/lib/pem.cjs +1 -1
- package/node_modules/path-expression-matcher/lib/pem.d.cts +188 -0
- package/node_modules/path-expression-matcher/lib/pem.min.js +1 -1
- package/node_modules/path-expression-matcher/lib/pem.min.js.map +1 -1
- package/node_modules/path-expression-matcher/package.json +2 -2
- package/node_modules/path-expression-matcher/src/Matcher.js +84 -0
- package/node_modules/path-expression-matcher/src/index.d.ts +152 -0
- package/package.json +7 -7
- package/version.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-cloudformation",
|
|
3
3
|
"description": "AWS SDK for JavaScript Cloudformation Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.1015.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-cloudformation",
|
|
@@ -23,38 +23,38 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
25
25
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
26
|
-
"@aws-sdk/core": "^3.973.
|
|
27
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
26
|
+
"@aws-sdk/core": "^3.973.24",
|
|
27
|
+
"@aws-sdk/credential-provider-node": "^3.972.25",
|
|
28
28
|
"@aws-sdk/middleware-host-header": "^3.972.8",
|
|
29
29
|
"@aws-sdk/middleware-logger": "^3.972.8",
|
|
30
30
|
"@aws-sdk/middleware-recursion-detection": "^3.972.8",
|
|
31
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
32
|
-
"@aws-sdk/region-config-resolver": "^3.972.
|
|
31
|
+
"@aws-sdk/middleware-user-agent": "^3.972.25",
|
|
32
|
+
"@aws-sdk/region-config-resolver": "^3.972.9",
|
|
33
33
|
"@aws-sdk/types": "^3.973.6",
|
|
34
34
|
"@aws-sdk/util-endpoints": "^3.996.5",
|
|
35
35
|
"@aws-sdk/util-user-agent-browser": "^3.972.8",
|
|
36
|
-
"@aws-sdk/util-user-agent-node": "^3.973.
|
|
37
|
-
"@smithy/config-resolver": "^4.4.
|
|
36
|
+
"@aws-sdk/util-user-agent-node": "^3.973.11",
|
|
37
|
+
"@smithy/config-resolver": "^4.4.13",
|
|
38
38
|
"@smithy/core": "^3.23.12",
|
|
39
39
|
"@smithy/fetch-http-handler": "^5.3.15",
|
|
40
40
|
"@smithy/hash-node": "^4.2.12",
|
|
41
41
|
"@smithy/invalid-dependency": "^4.2.12",
|
|
42
42
|
"@smithy/middleware-content-length": "^4.2.12",
|
|
43
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
44
|
-
"@smithy/middleware-retry": "^4.4.
|
|
43
|
+
"@smithy/middleware-endpoint": "^4.4.27",
|
|
44
|
+
"@smithy/middleware-retry": "^4.4.44",
|
|
45
45
|
"@smithy/middleware-serde": "^4.2.15",
|
|
46
46
|
"@smithy/middleware-stack": "^4.2.12",
|
|
47
47
|
"@smithy/node-config-provider": "^4.3.12",
|
|
48
48
|
"@smithy/node-http-handler": "^4.5.0",
|
|
49
49
|
"@smithy/protocol-http": "^5.3.12",
|
|
50
|
-
"@smithy/smithy-client": "^4.12.
|
|
50
|
+
"@smithy/smithy-client": "^4.12.7",
|
|
51
51
|
"@smithy/types": "^4.13.1",
|
|
52
52
|
"@smithy/url-parser": "^4.2.12",
|
|
53
53
|
"@smithy/util-base64": "^4.3.2",
|
|
54
54
|
"@smithy/util-body-length-browser": "^4.2.2",
|
|
55
55
|
"@smithy/util-body-length-node": "^4.2.3",
|
|
56
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
57
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
56
|
+
"@smithy/util-defaults-mode-browser": "^4.3.43",
|
|
57
|
+
"@smithy/util-defaults-mode-node": "^4.2.47",
|
|
58
58
|
"@smithy/util-endpoints": "^3.3.3",
|
|
59
59
|
"@smithy/util-middleware": "^4.2.12",
|
|
60
60
|
"@smithy/util-retry": "^4.2.12",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-codedeploy",
|
|
3
3
|
"description": "AWS SDK for JavaScript Codedeploy Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.1015.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-codedeploy",
|
|
@@ -23,38 +23,38 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
25
25
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
26
|
-
"@aws-sdk/core": "^3.973.
|
|
27
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
26
|
+
"@aws-sdk/core": "^3.973.24",
|
|
27
|
+
"@aws-sdk/credential-provider-node": "^3.972.25",
|
|
28
28
|
"@aws-sdk/middleware-host-header": "^3.972.8",
|
|
29
29
|
"@aws-sdk/middleware-logger": "^3.972.8",
|
|
30
30
|
"@aws-sdk/middleware-recursion-detection": "^3.972.8",
|
|
31
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
32
|
-
"@aws-sdk/region-config-resolver": "^3.972.
|
|
31
|
+
"@aws-sdk/middleware-user-agent": "^3.972.25",
|
|
32
|
+
"@aws-sdk/region-config-resolver": "^3.972.9",
|
|
33
33
|
"@aws-sdk/types": "^3.973.6",
|
|
34
34
|
"@aws-sdk/util-endpoints": "^3.996.5",
|
|
35
35
|
"@aws-sdk/util-user-agent-browser": "^3.972.8",
|
|
36
|
-
"@aws-sdk/util-user-agent-node": "^3.973.
|
|
37
|
-
"@smithy/config-resolver": "^4.4.
|
|
36
|
+
"@aws-sdk/util-user-agent-node": "^3.973.11",
|
|
37
|
+
"@smithy/config-resolver": "^4.4.13",
|
|
38
38
|
"@smithy/core": "^3.23.12",
|
|
39
39
|
"@smithy/fetch-http-handler": "^5.3.15",
|
|
40
40
|
"@smithy/hash-node": "^4.2.12",
|
|
41
41
|
"@smithy/invalid-dependency": "^4.2.12",
|
|
42
42
|
"@smithy/middleware-content-length": "^4.2.12",
|
|
43
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
44
|
-
"@smithy/middleware-retry": "^4.4.
|
|
43
|
+
"@smithy/middleware-endpoint": "^4.4.27",
|
|
44
|
+
"@smithy/middleware-retry": "^4.4.44",
|
|
45
45
|
"@smithy/middleware-serde": "^4.2.15",
|
|
46
46
|
"@smithy/middleware-stack": "^4.2.12",
|
|
47
47
|
"@smithy/node-config-provider": "^4.3.12",
|
|
48
48
|
"@smithy/node-http-handler": "^4.5.0",
|
|
49
49
|
"@smithy/protocol-http": "^5.3.12",
|
|
50
|
-
"@smithy/smithy-client": "^4.12.
|
|
50
|
+
"@smithy/smithy-client": "^4.12.7",
|
|
51
51
|
"@smithy/types": "^4.13.1",
|
|
52
52
|
"@smithy/url-parser": "^4.2.12",
|
|
53
53
|
"@smithy/util-base64": "^4.3.2",
|
|
54
54
|
"@smithy/util-body-length-browser": "^4.2.2",
|
|
55
55
|
"@smithy/util-body-length-node": "^4.2.3",
|
|
56
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
57
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
56
|
+
"@smithy/util-defaults-mode-browser": "^4.3.43",
|
|
57
|
+
"@smithy/util-defaults-mode-node": "^4.2.47",
|
|
58
58
|
"@smithy/util-endpoints": "^3.3.3",
|
|
59
59
|
"@smithy/util-middleware": "^4.2.12",
|
|
60
60
|
"@smithy/util-retry": "^4.2.12",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-ecs",
|
|
3
3
|
"description": "AWS SDK for JavaScript Ecs Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.1015.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-ecs",
|
|
@@ -23,38 +23,38 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
25
25
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
26
|
-
"@aws-sdk/core": "^3.973.
|
|
27
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
26
|
+
"@aws-sdk/core": "^3.973.24",
|
|
27
|
+
"@aws-sdk/credential-provider-node": "^3.972.25",
|
|
28
28
|
"@aws-sdk/middleware-host-header": "^3.972.8",
|
|
29
29
|
"@aws-sdk/middleware-logger": "^3.972.8",
|
|
30
30
|
"@aws-sdk/middleware-recursion-detection": "^3.972.8",
|
|
31
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
32
|
-
"@aws-sdk/region-config-resolver": "^3.972.
|
|
31
|
+
"@aws-sdk/middleware-user-agent": "^3.972.25",
|
|
32
|
+
"@aws-sdk/region-config-resolver": "^3.972.9",
|
|
33
33
|
"@aws-sdk/types": "^3.973.6",
|
|
34
34
|
"@aws-sdk/util-endpoints": "^3.996.5",
|
|
35
35
|
"@aws-sdk/util-user-agent-browser": "^3.972.8",
|
|
36
|
-
"@aws-sdk/util-user-agent-node": "^3.973.
|
|
37
|
-
"@smithy/config-resolver": "^4.4.
|
|
36
|
+
"@aws-sdk/util-user-agent-node": "^3.973.11",
|
|
37
|
+
"@smithy/config-resolver": "^4.4.13",
|
|
38
38
|
"@smithy/core": "^3.23.12",
|
|
39
39
|
"@smithy/fetch-http-handler": "^5.3.15",
|
|
40
40
|
"@smithy/hash-node": "^4.2.12",
|
|
41
41
|
"@smithy/invalid-dependency": "^4.2.12",
|
|
42
42
|
"@smithy/middleware-content-length": "^4.2.12",
|
|
43
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
44
|
-
"@smithy/middleware-retry": "^4.4.
|
|
43
|
+
"@smithy/middleware-endpoint": "^4.4.27",
|
|
44
|
+
"@smithy/middleware-retry": "^4.4.44",
|
|
45
45
|
"@smithy/middleware-serde": "^4.2.15",
|
|
46
46
|
"@smithy/middleware-stack": "^4.2.12",
|
|
47
47
|
"@smithy/node-config-provider": "^4.3.12",
|
|
48
48
|
"@smithy/node-http-handler": "^4.5.0",
|
|
49
49
|
"@smithy/protocol-http": "^5.3.12",
|
|
50
|
-
"@smithy/smithy-client": "^4.12.
|
|
50
|
+
"@smithy/smithy-client": "^4.12.7",
|
|
51
51
|
"@smithy/types": "^4.13.1",
|
|
52
52
|
"@smithy/url-parser": "^4.2.12",
|
|
53
53
|
"@smithy/util-base64": "^4.3.2",
|
|
54
54
|
"@smithy/util-body-length-browser": "^4.2.2",
|
|
55
55
|
"@smithy/util-body-length-node": "^4.2.3",
|
|
56
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
57
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
56
|
+
"@smithy/util-defaults-mode-browser": "^4.3.43",
|
|
57
|
+
"@smithy/util-defaults-mode-node": "^4.2.47",
|
|
58
58
|
"@smithy/util-endpoints": "^3.3.3",
|
|
59
59
|
"@smithy/util-middleware": "^4.2.12",
|
|
60
60
|
"@smithy/util-retry": "^4.2.12",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-organizations",
|
|
3
3
|
"description": "AWS SDK for JavaScript Organizations Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.1015.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-organizations",
|
|
@@ -21,38 +21,38 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
|
-
"@aws-sdk/core": "^3.973.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
24
|
+
"@aws-sdk/core": "^3.973.24",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "^3.972.25",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "^3.972.8",
|
|
27
27
|
"@aws-sdk/middleware-logger": "^3.972.8",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "^3.972.8",
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
30
|
-
"@aws-sdk/region-config-resolver": "^3.972.
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "^3.972.25",
|
|
30
|
+
"@aws-sdk/region-config-resolver": "^3.972.9",
|
|
31
31
|
"@aws-sdk/types": "^3.973.6",
|
|
32
32
|
"@aws-sdk/util-endpoints": "^3.996.5",
|
|
33
33
|
"@aws-sdk/util-user-agent-browser": "^3.972.8",
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "^3.973.
|
|
35
|
-
"@smithy/config-resolver": "^4.4.
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "^3.973.11",
|
|
35
|
+
"@smithy/config-resolver": "^4.4.13",
|
|
36
36
|
"@smithy/core": "^3.23.12",
|
|
37
37
|
"@smithy/fetch-http-handler": "^5.3.15",
|
|
38
38
|
"@smithy/hash-node": "^4.2.12",
|
|
39
39
|
"@smithy/invalid-dependency": "^4.2.12",
|
|
40
40
|
"@smithy/middleware-content-length": "^4.2.12",
|
|
41
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
42
|
-
"@smithy/middleware-retry": "^4.4.
|
|
41
|
+
"@smithy/middleware-endpoint": "^4.4.27",
|
|
42
|
+
"@smithy/middleware-retry": "^4.4.44",
|
|
43
43
|
"@smithy/middleware-serde": "^4.2.15",
|
|
44
44
|
"@smithy/middleware-stack": "^4.2.12",
|
|
45
45
|
"@smithy/node-config-provider": "^4.3.12",
|
|
46
46
|
"@smithy/node-http-handler": "^4.5.0",
|
|
47
47
|
"@smithy/protocol-http": "^5.3.12",
|
|
48
|
-
"@smithy/smithy-client": "^4.12.
|
|
48
|
+
"@smithy/smithy-client": "^4.12.7",
|
|
49
49
|
"@smithy/types": "^4.13.1",
|
|
50
50
|
"@smithy/url-parser": "^4.2.12",
|
|
51
51
|
"@smithy/util-base64": "^4.3.2",
|
|
52
52
|
"@smithy/util-body-length-browser": "^4.2.2",
|
|
53
53
|
"@smithy/util-body-length-node": "^4.2.3",
|
|
54
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
55
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
54
|
+
"@smithy/util-defaults-mode-browser": "^4.3.43",
|
|
55
|
+
"@smithy/util-defaults-mode-node": "^4.2.47",
|
|
56
56
|
"@smithy/util-endpoints": "^3.3.3",
|
|
57
57
|
"@smithy/util-middleware": "^4.2.12",
|
|
58
58
|
"@smithy/util-retry": "^4.2.12",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-secrets-manager",
|
|
3
3
|
"description": "AWS SDK for JavaScript Secrets Manager Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.1015.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-secrets-manager",
|
|
@@ -25,38 +25,38 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
27
27
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
28
|
-
"@aws-sdk/core": "^3.973.
|
|
29
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
28
|
+
"@aws-sdk/core": "^3.973.24",
|
|
29
|
+
"@aws-sdk/credential-provider-node": "^3.972.25",
|
|
30
30
|
"@aws-sdk/middleware-host-header": "^3.972.8",
|
|
31
31
|
"@aws-sdk/middleware-logger": "^3.972.8",
|
|
32
32
|
"@aws-sdk/middleware-recursion-detection": "^3.972.8",
|
|
33
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
34
|
-
"@aws-sdk/region-config-resolver": "^3.972.
|
|
33
|
+
"@aws-sdk/middleware-user-agent": "^3.972.25",
|
|
34
|
+
"@aws-sdk/region-config-resolver": "^3.972.9",
|
|
35
35
|
"@aws-sdk/types": "^3.973.6",
|
|
36
36
|
"@aws-sdk/util-endpoints": "^3.996.5",
|
|
37
37
|
"@aws-sdk/util-user-agent-browser": "^3.972.8",
|
|
38
|
-
"@aws-sdk/util-user-agent-node": "^3.973.
|
|
39
|
-
"@smithy/config-resolver": "^4.4.
|
|
38
|
+
"@aws-sdk/util-user-agent-node": "^3.973.11",
|
|
39
|
+
"@smithy/config-resolver": "^4.4.13",
|
|
40
40
|
"@smithy/core": "^3.23.12",
|
|
41
41
|
"@smithy/fetch-http-handler": "^5.3.15",
|
|
42
42
|
"@smithy/hash-node": "^4.2.12",
|
|
43
43
|
"@smithy/invalid-dependency": "^4.2.12",
|
|
44
44
|
"@smithy/middleware-content-length": "^4.2.12",
|
|
45
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
46
|
-
"@smithy/middleware-retry": "^4.4.
|
|
45
|
+
"@smithy/middleware-endpoint": "^4.4.27",
|
|
46
|
+
"@smithy/middleware-retry": "^4.4.44",
|
|
47
47
|
"@smithy/middleware-serde": "^4.2.15",
|
|
48
48
|
"@smithy/middleware-stack": "^4.2.12",
|
|
49
49
|
"@smithy/node-config-provider": "^4.3.12",
|
|
50
50
|
"@smithy/node-http-handler": "^4.5.0",
|
|
51
51
|
"@smithy/protocol-http": "^5.3.12",
|
|
52
|
-
"@smithy/smithy-client": "^4.12.
|
|
52
|
+
"@smithy/smithy-client": "^4.12.7",
|
|
53
53
|
"@smithy/types": "^4.13.1",
|
|
54
54
|
"@smithy/url-parser": "^4.2.12",
|
|
55
55
|
"@smithy/util-base64": "^4.3.2",
|
|
56
56
|
"@smithy/util-body-length-browser": "^4.2.2",
|
|
57
57
|
"@smithy/util-body-length-node": "^4.2.3",
|
|
58
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
59
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
58
|
+
"@smithy/util-defaults-mode-browser": "^4.3.43",
|
|
59
|
+
"@smithy/util-defaults-mode-node": "^4.2.47",
|
|
60
60
|
"@smithy/util-endpoints": "^3.3.3",
|
|
61
61
|
"@smithy/util-middleware": "^4.2.12",
|
|
62
62
|
"@smithy/util-retry": "^4.2.12",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-ssm",
|
|
3
3
|
"description": "AWS SDK for JavaScript Ssm Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.1015.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-ssm",
|
|
@@ -23,38 +23,38 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
25
25
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
26
|
-
"@aws-sdk/core": "^3.973.
|
|
27
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
26
|
+
"@aws-sdk/core": "^3.973.24",
|
|
27
|
+
"@aws-sdk/credential-provider-node": "^3.972.25",
|
|
28
28
|
"@aws-sdk/middleware-host-header": "^3.972.8",
|
|
29
29
|
"@aws-sdk/middleware-logger": "^3.972.8",
|
|
30
30
|
"@aws-sdk/middleware-recursion-detection": "^3.972.8",
|
|
31
|
-
"@aws-sdk/middleware-user-agent": "^3.972.
|
|
32
|
-
"@aws-sdk/region-config-resolver": "^3.972.
|
|
31
|
+
"@aws-sdk/middleware-user-agent": "^3.972.25",
|
|
32
|
+
"@aws-sdk/region-config-resolver": "^3.972.9",
|
|
33
33
|
"@aws-sdk/types": "^3.973.6",
|
|
34
34
|
"@aws-sdk/util-endpoints": "^3.996.5",
|
|
35
35
|
"@aws-sdk/util-user-agent-browser": "^3.972.8",
|
|
36
|
-
"@aws-sdk/util-user-agent-node": "^3.973.
|
|
37
|
-
"@smithy/config-resolver": "^4.4.
|
|
36
|
+
"@aws-sdk/util-user-agent-node": "^3.973.11",
|
|
37
|
+
"@smithy/config-resolver": "^4.4.13",
|
|
38
38
|
"@smithy/core": "^3.23.12",
|
|
39
39
|
"@smithy/fetch-http-handler": "^5.3.15",
|
|
40
40
|
"@smithy/hash-node": "^4.2.12",
|
|
41
41
|
"@smithy/invalid-dependency": "^4.2.12",
|
|
42
42
|
"@smithy/middleware-content-length": "^4.2.12",
|
|
43
|
-
"@smithy/middleware-endpoint": "^4.4.
|
|
44
|
-
"@smithy/middleware-retry": "^4.4.
|
|
43
|
+
"@smithy/middleware-endpoint": "^4.4.27",
|
|
44
|
+
"@smithy/middleware-retry": "^4.4.44",
|
|
45
45
|
"@smithy/middleware-serde": "^4.2.15",
|
|
46
46
|
"@smithy/middleware-stack": "^4.2.12",
|
|
47
47
|
"@smithy/node-config-provider": "^4.3.12",
|
|
48
48
|
"@smithy/node-http-handler": "^4.5.0",
|
|
49
49
|
"@smithy/protocol-http": "^5.3.12",
|
|
50
|
-
"@smithy/smithy-client": "^4.12.
|
|
50
|
+
"@smithy/smithy-client": "^4.12.7",
|
|
51
51
|
"@smithy/types": "^4.13.1",
|
|
52
52
|
"@smithy/url-parser": "^4.2.12",
|
|
53
53
|
"@smithy/util-base64": "^4.3.2",
|
|
54
54
|
"@smithy/util-body-length-browser": "^4.2.2",
|
|
55
55
|
"@smithy/util-body-length-node": "^4.2.3",
|
|
56
|
-
"@smithy/util-defaults-mode-browser": "^4.3.
|
|
57
|
-
"@smithy/util-defaults-mode-node": "^4.2.
|
|
56
|
+
"@smithy/util-defaults-mode-browser": "^4.3.43",
|
|
57
|
+
"@smithy/util-defaults-mode-node": "^4.2.47",
|
|
58
58
|
"@smithy/util-endpoints": "^3.3.3",
|
|
59
59
|
"@smithy/util-middleware": "^4.2.12",
|
|
60
60
|
"@smithy/util-retry": "^4.2.12",
|
|
@@ -349,6 +349,7 @@ function bindCallerConfig(config, credentialsProvider) {
|
|
|
349
349
|
|
|
350
350
|
class ProtocolLib {
|
|
351
351
|
queryCompat;
|
|
352
|
+
errorRegistry;
|
|
352
353
|
constructor(queryCompat = false) {
|
|
353
354
|
this.queryCompat = queryCompat;
|
|
354
355
|
}
|
|
@@ -384,30 +385,47 @@ class ProtocolLib {
|
|
|
384
385
|
}
|
|
385
386
|
}
|
|
386
387
|
async getErrorSchemaOrThrowBaseException(errorIdentifier, defaultNamespace, response, dataObject, metadata, getErrorSchema) {
|
|
387
|
-
let namespace = defaultNamespace;
|
|
388
388
|
let errorName = errorIdentifier;
|
|
389
389
|
if (errorIdentifier.includes("#")) {
|
|
390
|
-
[
|
|
390
|
+
[, errorName] = errorIdentifier.split("#");
|
|
391
391
|
}
|
|
392
392
|
const errorMetadata = {
|
|
393
393
|
$metadata: metadata,
|
|
394
394
|
$fault: response.statusCode < 500 ? "client" : "server",
|
|
395
395
|
};
|
|
396
|
-
|
|
396
|
+
if (!this.errorRegistry) {
|
|
397
|
+
throw new Error("@aws-sdk/core/protocols - error handler not initialized.");
|
|
398
|
+
}
|
|
397
399
|
try {
|
|
398
|
-
const errorSchema = getErrorSchema?.(
|
|
400
|
+
const errorSchema = getErrorSchema?.(this.errorRegistry, errorName) ??
|
|
401
|
+
this.errorRegistry.getSchema(errorIdentifier);
|
|
399
402
|
return { errorSchema, errorMetadata };
|
|
400
403
|
}
|
|
401
404
|
catch (e) {
|
|
402
405
|
dataObject.message = dataObject.message ?? dataObject.Message ?? "UnknownError";
|
|
403
|
-
const synthetic =
|
|
406
|
+
const synthetic = this.errorRegistry;
|
|
404
407
|
const baseExceptionSchema = synthetic.getBaseException();
|
|
405
408
|
if (baseExceptionSchema) {
|
|
406
409
|
const ErrorCtor = synthetic.getErrorCtor(baseExceptionSchema) ?? Error;
|
|
407
410
|
throw this.decorateServiceException(Object.assign(new ErrorCtor({ name: errorName }), errorMetadata), dataObject);
|
|
408
411
|
}
|
|
409
|
-
|
|
412
|
+
const d = dataObject;
|
|
413
|
+
const message = d?.message ?? d?.Message ?? d?.Error?.Message ?? d?.Error?.message;
|
|
414
|
+
throw this.decorateServiceException(Object.assign(new Error(message), {
|
|
415
|
+
name: errorName,
|
|
416
|
+
}, errorMetadata), dataObject);
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
compose(composite, errorIdentifier, defaultNamespace) {
|
|
420
|
+
let namespace = defaultNamespace;
|
|
421
|
+
if (errorIdentifier.includes("#")) {
|
|
422
|
+
[namespace] = errorIdentifier.split("#");
|
|
410
423
|
}
|
|
424
|
+
const staticRegistry = schema.TypeRegistry.for(namespace);
|
|
425
|
+
const defaultSyntheticRegistry = schema.TypeRegistry.for("smithy.ts.sdk.synthetic." + defaultNamespace);
|
|
426
|
+
composite.copyFrom(staticRegistry);
|
|
427
|
+
composite.copyFrom(defaultSyntheticRegistry);
|
|
428
|
+
this.errorRegistry = composite;
|
|
411
429
|
}
|
|
412
430
|
decorateServiceException(exception, additions = {}) {
|
|
413
431
|
if (this.queryCompat) {
|
|
@@ -471,8 +489,8 @@ class ProtocolLib {
|
|
|
471
489
|
class AwsSmithyRpcV2CborProtocol extends cbor.SmithyRpcV2CborProtocol {
|
|
472
490
|
awsQueryCompatible;
|
|
473
491
|
mixin;
|
|
474
|
-
constructor({ defaultNamespace, awsQueryCompatible, }) {
|
|
475
|
-
super({ defaultNamespace });
|
|
492
|
+
constructor({ defaultNamespace, errorTypeRegistries, awsQueryCompatible, }) {
|
|
493
|
+
super({ defaultNamespace, errorTypeRegistries });
|
|
476
494
|
this.awsQueryCompatible = !!awsQueryCompatible;
|
|
477
495
|
this.mixin = new ProtocolLib(this.awsQueryCompatible);
|
|
478
496
|
}
|
|
@@ -494,10 +512,11 @@ class AwsSmithyRpcV2CborProtocol extends cbor.SmithyRpcV2CborProtocol {
|
|
|
494
512
|
}
|
|
495
513
|
return cbor.loadSmithyRpcV2CborErrorCode(response, dataObject) ?? "Unknown";
|
|
496
514
|
})();
|
|
515
|
+
this.mixin.compose(this.compositeErrorRegistry, errorName, this.options.defaultNamespace);
|
|
497
516
|
const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorName, this.options.defaultNamespace, response, dataObject, metadata, this.awsQueryCompatible ? this.mixin.findQueryCompatibleError : undefined);
|
|
498
517
|
const ns = schema.NormalizedSchema.of(errorSchema);
|
|
499
|
-
const message = dataObject.message ?? dataObject.Message ?? "
|
|
500
|
-
const ErrorCtor =
|
|
518
|
+
const message = dataObject.message ?? dataObject.Message ?? "UnknownError";
|
|
519
|
+
const ErrorCtor = this.compositeErrorRegistry.getErrorCtor(errorSchema) ?? Error;
|
|
501
520
|
const exception = new ErrorCtor(message);
|
|
502
521
|
const output = {};
|
|
503
522
|
for (const [name, member] of ns.structIterator()) {
|
|
@@ -1054,9 +1073,10 @@ class AwsJsonRpcProtocol extends protocols.RpcProtocol {
|
|
|
1054
1073
|
codec;
|
|
1055
1074
|
mixin;
|
|
1056
1075
|
awsQueryCompatible;
|
|
1057
|
-
constructor({ defaultNamespace, serviceTarget, awsQueryCompatible, jsonCodec, }) {
|
|
1076
|
+
constructor({ defaultNamespace, errorTypeRegistries, serviceTarget, awsQueryCompatible, jsonCodec, }) {
|
|
1058
1077
|
super({
|
|
1059
1078
|
defaultNamespace,
|
|
1079
|
+
errorTypeRegistries,
|
|
1060
1080
|
});
|
|
1061
1081
|
this.serviceTarget = serviceTarget;
|
|
1062
1082
|
this.codec =
|
|
@@ -1098,10 +1118,11 @@ class AwsJsonRpcProtocol extends protocols.RpcProtocol {
|
|
|
1098
1118
|
this.mixin.setQueryCompatError(dataObject, response);
|
|
1099
1119
|
}
|
|
1100
1120
|
const errorIdentifier = loadRestJsonErrorCode(response, dataObject) ?? "Unknown";
|
|
1121
|
+
this.mixin.compose(this.compositeErrorRegistry, errorIdentifier, this.options.defaultNamespace);
|
|
1101
1122
|
const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, dataObject, metadata, this.awsQueryCompatible ? this.mixin.findQueryCompatibleError : undefined);
|
|
1102
1123
|
const ns = schema.NormalizedSchema.of(errorSchema);
|
|
1103
|
-
const message = dataObject.message ?? dataObject.Message ?? "
|
|
1104
|
-
const ErrorCtor =
|
|
1124
|
+
const message = dataObject.message ?? dataObject.Message ?? "UnknownError";
|
|
1125
|
+
const ErrorCtor = this.compositeErrorRegistry.getErrorCtor(errorSchema) ?? Error;
|
|
1105
1126
|
const exception = new ErrorCtor(message);
|
|
1106
1127
|
const output = {};
|
|
1107
1128
|
for (const [name, member] of ns.structIterator()) {
|
|
@@ -1120,9 +1141,10 @@ class AwsJsonRpcProtocol extends protocols.RpcProtocol {
|
|
|
1120
1141
|
}
|
|
1121
1142
|
|
|
1122
1143
|
class AwsJson1_0Protocol extends AwsJsonRpcProtocol {
|
|
1123
|
-
constructor({ defaultNamespace, serviceTarget, awsQueryCompatible, jsonCodec, }) {
|
|
1144
|
+
constructor({ defaultNamespace, errorTypeRegistries, serviceTarget, awsQueryCompatible, jsonCodec, }) {
|
|
1124
1145
|
super({
|
|
1125
1146
|
defaultNamespace,
|
|
1147
|
+
errorTypeRegistries,
|
|
1126
1148
|
serviceTarget,
|
|
1127
1149
|
awsQueryCompatible,
|
|
1128
1150
|
jsonCodec,
|
|
@@ -1140,9 +1162,10 @@ class AwsJson1_0Protocol extends AwsJsonRpcProtocol {
|
|
|
1140
1162
|
}
|
|
1141
1163
|
|
|
1142
1164
|
class AwsJson1_1Protocol extends AwsJsonRpcProtocol {
|
|
1143
|
-
constructor({ defaultNamespace, serviceTarget, awsQueryCompatible, jsonCodec, }) {
|
|
1165
|
+
constructor({ defaultNamespace, errorTypeRegistries, serviceTarget, awsQueryCompatible, jsonCodec, }) {
|
|
1144
1166
|
super({
|
|
1145
1167
|
defaultNamespace,
|
|
1168
|
+
errorTypeRegistries,
|
|
1146
1169
|
serviceTarget,
|
|
1147
1170
|
awsQueryCompatible,
|
|
1148
1171
|
jsonCodec,
|
|
@@ -1164,9 +1187,10 @@ class AwsRestJsonProtocol extends protocols.HttpBindingProtocol {
|
|
|
1164
1187
|
deserializer;
|
|
1165
1188
|
codec;
|
|
1166
1189
|
mixin = new ProtocolLib();
|
|
1167
|
-
constructor({ defaultNamespace }) {
|
|
1190
|
+
constructor({ defaultNamespace, errorTypeRegistries, }) {
|
|
1168
1191
|
super({
|
|
1169
1192
|
defaultNamespace,
|
|
1193
|
+
errorTypeRegistries,
|
|
1170
1194
|
});
|
|
1171
1195
|
const settings = {
|
|
1172
1196
|
timestampFormat: {
|
|
@@ -1216,10 +1240,11 @@ class AwsRestJsonProtocol extends protocols.HttpBindingProtocol {
|
|
|
1216
1240
|
}
|
|
1217
1241
|
async handleError(operationSchema, context, response, dataObject, metadata) {
|
|
1218
1242
|
const errorIdentifier = loadRestJsonErrorCode(response, dataObject) ?? "Unknown";
|
|
1243
|
+
this.mixin.compose(this.compositeErrorRegistry, errorIdentifier, this.options.defaultNamespace);
|
|
1219
1244
|
const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, dataObject, metadata);
|
|
1220
1245
|
const ns = schema.NormalizedSchema.of(errorSchema);
|
|
1221
|
-
const message = dataObject.message ?? dataObject.Message ?? "
|
|
1222
|
-
const ErrorCtor =
|
|
1246
|
+
const message = dataObject.message ?? dataObject.Message ?? "UnknownError";
|
|
1247
|
+
const ErrorCtor = this.compositeErrorRegistry.getErrorCtor(errorSchema) ?? Error;
|
|
1223
1248
|
const exception = new ErrorCtor(message);
|
|
1224
1249
|
await this.deserializeHttpMessage(errorSchema, context, response, dataObject);
|
|
1225
1250
|
const output = {};
|
|
@@ -1585,6 +1610,7 @@ class AwsQueryProtocol extends protocols.RpcProtocol {
|
|
|
1585
1610
|
constructor(options) {
|
|
1586
1611
|
super({
|
|
1587
1612
|
defaultNamespace: options.defaultNamespace,
|
|
1613
|
+
errorTypeRegistries: options.errorTypeRegistries,
|
|
1588
1614
|
});
|
|
1589
1615
|
this.options = options;
|
|
1590
1616
|
const settings = {
|
|
@@ -1661,6 +1687,7 @@ class AwsQueryProtocol extends protocols.RpcProtocol {
|
|
|
1661
1687
|
}
|
|
1662
1688
|
async handleError(operationSchema, context, response, dataObject, metadata) {
|
|
1663
1689
|
const errorIdentifier = this.loadQueryErrorCode(response, dataObject) ?? "Unknown";
|
|
1690
|
+
this.mixin.compose(this.compositeErrorRegistry, errorIdentifier, this.options.defaultNamespace);
|
|
1664
1691
|
const errorData = this.loadQueryError(dataObject) ?? {};
|
|
1665
1692
|
const message = this.loadQueryErrorMessage(dataObject);
|
|
1666
1693
|
errorData.message = message;
|
|
@@ -1671,7 +1698,7 @@ class AwsQueryProtocol extends protocols.RpcProtocol {
|
|
|
1671
1698
|
};
|
|
1672
1699
|
const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, errorData, metadata, this.mixin.findQueryCompatibleError);
|
|
1673
1700
|
const ns = schema.NormalizedSchema.of(errorSchema);
|
|
1674
|
-
const ErrorCtor =
|
|
1701
|
+
const ErrorCtor = this.compositeErrorRegistry.getErrorCtor(errorSchema) ?? Error;
|
|
1675
1702
|
const exception = new ErrorCtor(message);
|
|
1676
1703
|
const output = {
|
|
1677
1704
|
Type: errorData.Error.Type,
|
|
@@ -2100,6 +2127,7 @@ class AwsRestXmlProtocol extends protocols.HttpBindingProtocol {
|
|
|
2100
2127
|
this.codec = new XmlCodec(settings);
|
|
2101
2128
|
this.serializer = new protocols.HttpInterceptingShapeSerializer(this.codec.createSerializer(), settings);
|
|
2102
2129
|
this.deserializer = new protocols.HttpInterceptingShapeDeserializer(this.codec.createDeserializer(), settings);
|
|
2130
|
+
this.compositeErrorRegistry;
|
|
2103
2131
|
}
|
|
2104
2132
|
getPayloadCodec() {
|
|
2105
2133
|
return this.codec;
|
|
@@ -2129,6 +2157,7 @@ class AwsRestXmlProtocol extends protocols.HttpBindingProtocol {
|
|
|
2129
2157
|
}
|
|
2130
2158
|
async handleError(operationSchema, context, response, dataObject, metadata) {
|
|
2131
2159
|
const errorIdentifier = loadRestXmlErrorCode(response, dataObject) ?? "Unknown";
|
|
2160
|
+
this.mixin.compose(this.compositeErrorRegistry, errorIdentifier, this.options.defaultNamespace);
|
|
2132
2161
|
if (dataObject.Error && typeof dataObject.Error === "object") {
|
|
2133
2162
|
for (const key of Object.keys(dataObject.Error)) {
|
|
2134
2163
|
dataObject[key] = dataObject.Error[key];
|
|
@@ -2142,8 +2171,12 @@ class AwsRestXmlProtocol extends protocols.HttpBindingProtocol {
|
|
|
2142
2171
|
}
|
|
2143
2172
|
const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, dataObject, metadata);
|
|
2144
2173
|
const ns = schema.NormalizedSchema.of(errorSchema);
|
|
2145
|
-
const message = dataObject.Error?.message ??
|
|
2146
|
-
|
|
2174
|
+
const message = dataObject.Error?.message ??
|
|
2175
|
+
dataObject.Error?.Message ??
|
|
2176
|
+
dataObject.message ??
|
|
2177
|
+
dataObject.Message ??
|
|
2178
|
+
"UnknownError";
|
|
2179
|
+
const ErrorCtor = this.compositeErrorRegistry.getErrorCtor(errorSchema) ?? Error;
|
|
2147
2180
|
const exception = new ErrorCtor(message);
|
|
2148
2181
|
await this.deserializeHttpMessage(errorSchema, context, response, dataObject);
|
|
2149
2182
|
const output = {};
|