@cdklabs/cdk-construct-connect-datalake 0.0.5 → 0.0.6
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 +10 -10
- package/lib/index.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/package.json +34 -34
- package/node_modules/@aws-sdk/client-connect/dist-cjs/index.js +1 -0
- package/node_modules/@aws-sdk/client-connect/dist-cjs/schemas/schemas_0.js +3 -3
- package/node_modules/@aws-sdk/client-connect/dist-es/models/enums.js +1 -0
- package/node_modules/@aws-sdk/client-connect/dist-es/schemas/schemas_0.js +3 -3
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/CreateRuleCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/DescribeRuleCommand.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/ListRulesCommand.d.ts +2 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/commands/ListTestCaseExecutionsCommand.d.ts +2 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/models/enums.d.ts +1 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/models/models_1.d.ts +1 -1
- package/node_modules/@aws-sdk/client-connect/dist-types/models/models_2.d.ts +2 -2
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/enums.d.ts +1 -0
- package/node_modules/@aws-sdk/client-connect/dist-types/ts3.4/models/models_2.d.ts +2 -2
- package/node_modules/@aws-sdk/client-connect/package.json +33 -33
- package/node_modules/@aws-sdk/client-glue/dist-types/models/models_0.d.ts +1 -1
- package/node_modules/@aws-sdk/client-glue/dist-types/models/models_3.d.ts +3 -3
- package/node_modules/@aws-sdk/client-glue/package.json +33 -33
- package/node_modules/@aws-sdk/client-lakeformation/package.json +34 -34
- package/node_modules/@aws-sdk/client-ram/package.json +33 -33
- package/node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-cjs/auth/httpAuthSchemeProvider.js +96 -17
- package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js +6 -0
- package/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js +7 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/STSClient.js +1 -0
- package/node_modules/@aws-sdk/client-sts/dist-es/auth/httpAuthSchemeProvider.js +97 -16
- package/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.js +7 -1
- package/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.shared.js +8 -1
- package/node_modules/@aws-sdk/client-sts/dist-types/auth/httpAuthSchemeProvider.d.ts +15 -7
- package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.browser.d.ts +3 -2
- package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.d.ts +10 -4
- package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.native.d.ts +3 -2
- package/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.shared.d.ts +3 -1
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +20 -9
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.browser.d.ts +11 -5
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.d.ts +35 -16
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.native.d.ts +11 -5
- package/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.shared.d.ts +8 -1
- package/node_modules/@aws-sdk/client-sts/package.json +35 -34
- package/node_modules/@aws-sdk/core/dist-cjs/index.js +52 -50
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +52 -50
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/ProtocolLib.js +11 -10
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/UnionSerde.js +4 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +4 -5
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +2 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +9 -7
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/parseJsonBody.js +17 -17
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsQueryProtocol.js +3 -8
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/AwsRestXmlProtocol.js +2 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/JsonShapeSerializer.d.ts +2 -2
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/JsonShapeSerializer.d.ts +1 -1
- package/node_modules/@aws-sdk/core/package.json +11 -11
- package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-http/package.json +10 -10
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +14 -14
- package/node_modules/@aws-sdk/credential-provider-login/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-node/package.json +12 -12
- package/node_modules/@aws-sdk/credential-provider-process/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +8 -8
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +7 -7
- package/node_modules/@aws-sdk/middleware-host-header/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-logger/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-sdk-s3/LICENSE +201 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/README.md +4 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.js +597 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/bucket-endpoint-middleware.js +36 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/check-content-length-header.js +32 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/index.js +9 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/protocol/S3RestXmlProtocol.js +25 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/region-redirect-endpoint-middleware.js +41 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/region-redirect-middleware.js +42 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-expires-middleware.js +33 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/classes/S3ExpressIdentityCache.js +39 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/classes/S3ExpressIdentityCacheEntry.js +14 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/classes/S3ExpressIdentityProviderImpl.js +49 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/classes/SignatureV4S3Express.js +41 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/constants.js +13 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/functions/s3ExpressHttpSigningMiddleware.js +38 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/functions/s3ExpressMiddleware.js +41 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/functions/signS3Express.js +7 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/index.js +7 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/interfaces/S3ExpressIdentity.js +1 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3-express/interfaces/S3ExpressIdentityProvider.js +1 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/s3Configuration.js +17 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/throw-200-exceptions.js +67 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/validate-bucket-name.js +25 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/bucket-endpoint-middleware.d.ts +13 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/check-content-length-header.d.ts +16 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/index.d.ts +9 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/protocol/S3RestXmlProtocol.d.ts +20 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/region-redirect-endpoint-middleware.d.ts +10 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/region-redirect-middleware.d.ts +20 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3-expires-middleware.d.ts +26 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3-express/classes/S3ExpressIdentityCache.d.ts +16 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3-express/classes/S3ExpressIdentityCacheEntry.d.ts +16 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3-express/classes/S3ExpressIdentityProviderImpl.d.ts +32 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3-express/classes/SignatureV4S3Express.d.ts +17 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3-express/constants.d.ts +37 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3-express/functions/s3ExpressHttpSigningMiddleware.d.ts +27 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3-express/functions/s3ExpressMiddleware.d.ts +32 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3-express/functions/signS3Express.d.ts +9 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3-express/index.d.ts +9 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3-express/interfaces/S3ExpressIdentity.d.ts +6 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3-express/interfaces/S3ExpressIdentityProvider.d.ts +12 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/s3Configuration.d.ts +79 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/throw-200-exceptions.d.ts +20 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/bucket-endpoint-middleware.d.ts +9 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/check-content-length-header.d.ts +13 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/index.d.ts +9 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/protocol/S3RestXmlProtocol.d.ts +15 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/region-redirect-endpoint-middleware.d.ts +6 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/region-redirect-middleware.d.ts +17 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/s3-expires-middleware.d.ts +14 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/s3-express/classes/S3ExpressIdentityCache.d.ts +14 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/s3-express/classes/S3ExpressIdentityCacheEntry.d.ts +12 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/s3-express/classes/S3ExpressIdentityProviderImpl.d.ts +31 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/s3-express/classes/SignatureV4S3Express.d.ts +19 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/s3-express/constants.d.ts +11 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/s3-express/functions/s3ExpressHttpSigningMiddleware.d.ts +40 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/s3-express/functions/s3ExpressMiddleware.d.ts +27 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/s3-express/functions/signS3Express.d.ts +21 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/s3-express/index.d.ts +17 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/s3-express/interfaces/S3ExpressIdentity.d.ts +2 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/s3-express/interfaces/S3ExpressIdentityProvider.d.ts +8 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/s3Configuration.d.ts +33 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/throw-200-exceptions.d.ts +17 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/validate-bucket-name.d.ts +13 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/validate-bucket-name.d.ts +14 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +72 -0
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +8 -8
- package/node_modules/@aws-sdk/nested-clients/package.json +32 -32
- package/node_modules/@aws-sdk/region-config-resolver/package.json +5 -5
- package/node_modules/@aws-sdk/signature-v4-multi-region/LICENSE +201 -0
- package/node_modules/@aws-sdk/signature-v4-multi-region/README.md +32 -0
- package/node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js +121 -0
- package/node_modules/@aws-sdk/signature-v4-multi-region/dist-es/SignatureV4MultiRegion.js +112 -0
- package/node_modules/@aws-sdk/signature-v4-multi-region/dist-es/index.js +2 -0
- package/node_modules/@aws-sdk/signature-v4-multi-region/dist-es/signature-v4-crt-container.js +3 -0
- package/node_modules/@aws-sdk/signature-v4-multi-region/dist-types/SignatureV4MultiRegion.d.ts +35 -0
- package/node_modules/@aws-sdk/signature-v4-multi-region/dist-types/index.d.ts +5 -0
- package/node_modules/@aws-sdk/signature-v4-multi-region/dist-types/signature-v4-crt-container.d.ts +28 -0
- package/node_modules/@aws-sdk/signature-v4-multi-region/dist-types/ts3.4/SignatureV4MultiRegion.d.ts +41 -0
- package/node_modules/@aws-sdk/signature-v4-multi-region/dist-types/ts3.4/index.d.ts +2 -0
- package/node_modules/@aws-sdk/signature-v4-multi-region/dist-types/ts3.4/signature-v4-crt-container.d.ts +20 -0
- package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +61 -0
- package/node_modules/@aws-sdk/token-providers/package.json +7 -7
- package/node_modules/@aws-sdk/types/package.json +2 -2
- package/node_modules/@aws-sdk/util-arn-parser/LICENSE +201 -0
- package/node_modules/@aws-sdk/util-arn-parser/README.md +4 -0
- package/node_modules/@aws-sdk/util-arn-parser/dist-cjs/index.js +27 -0
- package/node_modules/@aws-sdk/util-arn-parser/dist-es/index.js +21 -0
- package/node_modules/@aws-sdk/util-arn-parser/dist-types/index.d.ts +32 -0
- package/node_modules/@aws-sdk/util-arn-parser/dist-types/ts3.4/index.d.ts +14 -0
- package/node_modules/@aws-sdk/util-arn-parser/package.json +55 -0
- package/node_modules/@aws-sdk/util-endpoints/package.json +5 -5
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +5 -5
- package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
- package/node_modules/@smithy/config-resolver/package.json +5 -5
- package/node_modules/@smithy/core/dist-cjs/index.js +2 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +32 -14
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +2 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +16 -8
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +17 -10
- package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +6 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +6 -3
- package/node_modules/@smithy/core/dist-cjs/util-identity-and-auth/DefaultIdentityProviderConfig.js +2 -1
- package/node_modules/@smithy/core/dist-es/submodules/cbor/CborCodec.js +23 -11
- package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +9 -3
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/toEndpointV1.js +2 -2
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +16 -8
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +9 -4
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +8 -6
- package/node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js +6 -1
- package/node_modules/@smithy/core/dist-es/submodules/serde/parse-utils.js +6 -3
- package/node_modules/@smithy/core/dist-es/util-identity-and-auth/DefaultIdentityProviderConfig.js +2 -1
- package/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts +1 -1
- package/node_modules/@smithy/core/package.json +7 -7
- package/node_modules/@smithy/credential-provider-imds/package.json +5 -5
- package/node_modules/@smithy/fetch-http-handler/package.json +5 -5
- package/node_modules/@smithy/hash-node/package.json +2 -2
- package/node_modules/@smithy/invalid-dependency/package.json +2 -2
- package/node_modules/@smithy/middleware-content-length/package.json +3 -3
- package/node_modules/@smithy/middleware-endpoint/package.json +8 -8
- package/node_modules/@smithy/middleware-retry/package.json +9 -9
- package/node_modules/@smithy/middleware-serde/package.json +4 -4
- package/node_modules/@smithy/middleware-stack/package.json +2 -2
- package/node_modules/@smithy/node-config-provider/package.json +4 -4
- package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +191 -96
- package/node_modules/@smithy/node-http-handler/dist-es/http2/ClientHttp2SessionRef.js +45 -0
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +71 -35
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-pool.js +32 -18
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +44 -43
- package/node_modules/@smithy/node-http-handler/dist-types/http2/ClientHttp2SessionRef.d.ts +42 -0
- package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts +34 -14
- package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-pool.d.ts +32 -8
- package/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +14 -6
- package/node_modules/@smithy/node-http-handler/package.json +5 -5
- package/node_modules/@smithy/property-provider/package.json +2 -2
- package/node_modules/@smithy/protocol-http/package.json +2 -2
- package/node_modules/@smithy/querystring-builder/package.json +2 -2
- package/node_modules/@smithy/querystring-parser/package.json +2 -2
- package/node_modules/@smithy/service-error-classification/dist-cjs/index.js +5 -0
- package/node_modules/@smithy/service-error-classification/dist-es/index.js +4 -0
- package/node_modules/@smithy/service-error-classification/dist-types/index.d.ts +6 -0
- package/node_modules/@smithy/service-error-classification/package.json +2 -2
- package/node_modules/@smithy/shared-ini-file-loader/package.json +2 -2
- package/node_modules/@smithy/signature-v4/dist-cjs/index.js +11 -5
- package/node_modules/@smithy/signature-v4/dist-es/SignatureV4.js +11 -5
- package/node_modules/@smithy/signature-v4/dist-types/SignatureV4.d.ts +3 -3
- package/node_modules/@smithy/signature-v4/package.json +4 -4
- package/node_modules/@smithy/smithy-client/dist-cjs/index.js +8 -1
- package/node_modules/@smithy/smithy-client/dist-es/command.js +8 -1
- package/node_modules/@smithy/smithy-client/package.json +7 -7
- package/node_modules/@smithy/types/dist-types/connection/config.d.ts +5 -0
- package/node_modules/@smithy/types/dist-types/signature.d.ts +20 -3
- package/node_modules/@smithy/types/package.json +1 -1
- package/node_modules/@smithy/url-parser/package.json +3 -3
- package/node_modules/@smithy/util-defaults-mode-browser/package.json +4 -4
- package/node_modules/@smithy/util-defaults-mode-node/package.json +7 -7
- package/node_modules/@smithy/util-endpoints/dist-cjs/index.js +79 -71
- package/node_modules/@smithy/util-endpoints/dist-es/decideEndpoint.js +4 -3
- package/node_modules/@smithy/util-endpoints/dist-es/lib/getAttr.js +2 -1
- package/node_modules/@smithy/util-endpoints/dist-es/resolveEndpoint.js +8 -13
- package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateCondition.js +9 -7
- package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateConditions.js +12 -8
- package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateEndpointRule.js +14 -13
- package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateErrorRule.js +7 -4
- package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateExpression.js +10 -8
- package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateRules.js +4 -4
- package/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointHeaders.js +5 -5
- package/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointProperties.js +4 -4
- package/node_modules/@smithy/util-endpoints/dist-types/bdd/BinaryDecisionDiagram.d.ts +2 -2
- package/node_modules/@smithy/util-endpoints/dist-types/types/shared.d.ts +3 -3
- package/node_modules/@smithy/util-endpoints/dist-types/utils/endpointFunctions.d.ts +2 -15
- package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateCondition.d.ts +6 -3
- package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateConditions.d.ts +3 -3
- package/node_modules/@smithy/util-endpoints/dist-types/utils/getEndpointHeaders.d.ts +1 -1
- package/node_modules/@smithy/util-endpoints/dist-types/utils/getEndpointProperties.d.ts +2 -2
- package/node_modules/@smithy/util-endpoints/dist-types/utils/getReferenceValue.d.ts +2 -2
- package/node_modules/@smithy/util-endpoints/package.json +3 -3
- package/node_modules/@smithy/util-middleware/package.json +2 -2
- package/node_modules/@smithy/util-retry/package.json +3 -3
- package/node_modules/@smithy/util-stream/package.json +4 -4
- package/node_modules/@smithy/util-waiter/package.json +3 -3
- package/node_modules/fast-xml-builder/package.json +1 -1
- package/node_modules/fast-xml-builder/src/fxb.js +6 -2
- package/node_modules/fast-xml-builder/src/orderedJs2Xml.js +16 -2
- package/node_modules/hasown/CHANGELOG.md +11 -0
- package/node_modules/hasown/eslint.config.mjs +6 -0
- package/node_modules/hasown/index.d.ts +1 -0
- package/node_modules/hasown/package.json +14 -14
- package/package.json +11 -11
- package/node_modules/hasown/.eslintrc +0 -5
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/strnum → strnum}/CHANGELOG.md +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/strnum → strnum}/LICENSE +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/strnum → strnum}/README.md +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/strnum → strnum}/package.json +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/strnum → strnum}/strnum.js +0 -0
|
@@ -33,15 +33,17 @@ export class NodeHttp2Handler {
|
|
|
33
33
|
destroy() {
|
|
34
34
|
this.connectionManager.destroy();
|
|
35
35
|
}
|
|
36
|
-
async handle(request, { abortSignal, requestTimeout } = {}) {
|
|
36
|
+
async handle(request, { abortSignal, requestTimeout, isEventStream } = {}) {
|
|
37
37
|
if (!this.config) {
|
|
38
38
|
this.config = await this.configProvider;
|
|
39
|
-
this.
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
const { disableConcurrentStreams, maxConcurrentStreams } = this.config;
|
|
40
|
+
this.connectionManager.setDisableConcurrentStreams(disableConcurrentStreams ?? false);
|
|
41
|
+
if (maxConcurrentStreams) {
|
|
42
|
+
this.connectionManager.setMaxConcurrentStreams(maxConcurrentStreams);
|
|
42
43
|
}
|
|
43
44
|
}
|
|
44
45
|
const { requestTimeout: configRequestTimeout, disableConcurrentStreams } = this.config;
|
|
46
|
+
const useIsolatedSession = disableConcurrentStreams || isEventStream;
|
|
45
47
|
const effectiveRequestTimeout = requestTimeout ?? configRequestTimeout;
|
|
46
48
|
return new Promise((_resolve, _reject) => {
|
|
47
49
|
let fulfilled = false;
|
|
@@ -69,18 +71,22 @@ export class NodeHttp2Handler {
|
|
|
69
71
|
}
|
|
70
72
|
const authority = `${protocol}//${auth}${hostname}${port ? `:${port}` : ""}`;
|
|
71
73
|
const requestContext = { destination: new URL(authority) };
|
|
72
|
-
const
|
|
74
|
+
const connectConfig = {
|
|
73
75
|
requestTimeout: this.config?.sessionTimeout,
|
|
74
|
-
|
|
75
|
-
}
|
|
76
|
+
isEventStream,
|
|
77
|
+
};
|
|
78
|
+
const ref = useIsolatedSession
|
|
79
|
+
? this.connectionManager.createIsolatedSession(requestContext, connectConfig)
|
|
80
|
+
: this.connectionManager.lease(requestContext, connectConfig);
|
|
81
|
+
const session = ref.deref();
|
|
76
82
|
const rejectWithDestroy = (err) => {
|
|
77
|
-
if (
|
|
78
|
-
|
|
83
|
+
if (useIsolatedSession) {
|
|
84
|
+
ref.destroy();
|
|
79
85
|
}
|
|
80
86
|
fulfilled = true;
|
|
81
87
|
reject(err);
|
|
82
88
|
};
|
|
83
|
-
const queryString = buildQueryString(query
|
|
89
|
+
const queryString = buildQueryString(query ?? {});
|
|
84
90
|
let path = request.path;
|
|
85
91
|
if (queryString) {
|
|
86
92
|
path += `?${queryString}`;
|
|
@@ -88,28 +94,14 @@ export class NodeHttp2Handler {
|
|
|
88
94
|
if (request.fragment) {
|
|
89
95
|
path += `#${request.fragment}`;
|
|
90
96
|
}
|
|
91
|
-
const
|
|
97
|
+
const clientHttp2Stream = session.request({
|
|
92
98
|
...request.headers,
|
|
93
99
|
[constants.HTTP2_HEADER_PATH]: path,
|
|
94
100
|
[constants.HTTP2_HEADER_METHOD]: method,
|
|
95
101
|
});
|
|
96
|
-
session.ref();
|
|
97
|
-
req.on("response", (headers) => {
|
|
98
|
-
const httpResponse = new HttpResponse({
|
|
99
|
-
statusCode: headers[":status"] || -1,
|
|
100
|
-
headers: getTransformedHeaders(headers),
|
|
101
|
-
body: req,
|
|
102
|
-
});
|
|
103
|
-
fulfilled = true;
|
|
104
|
-
resolve({ response: httpResponse });
|
|
105
|
-
if (disableConcurrentStreams) {
|
|
106
|
-
session.close();
|
|
107
|
-
this.connectionManager.deleteSession(authority, session);
|
|
108
|
-
}
|
|
109
|
-
});
|
|
110
102
|
if (effectiveRequestTimeout) {
|
|
111
|
-
|
|
112
|
-
|
|
103
|
+
clientHttp2Stream.setTimeout(effectiveRequestTimeout, () => {
|
|
104
|
+
clientHttp2Stream.close();
|
|
113
105
|
const timeoutError = new Error(`Stream timed out because of no activity for ${effectiveRequestTimeout} ms`);
|
|
114
106
|
timeoutError.name = "TimeoutError";
|
|
115
107
|
rejectWithDestroy(timeoutError);
|
|
@@ -117,36 +109,50 @@ export class NodeHttp2Handler {
|
|
|
117
109
|
}
|
|
118
110
|
if (abortSignal) {
|
|
119
111
|
const onAbort = () => {
|
|
120
|
-
|
|
112
|
+
clientHttp2Stream.close();
|
|
121
113
|
const abortError = buildAbortError(abortSignal);
|
|
122
114
|
rejectWithDestroy(abortError);
|
|
123
115
|
};
|
|
124
116
|
if (typeof abortSignal.addEventListener === "function") {
|
|
125
117
|
const signal = abortSignal;
|
|
126
118
|
signal.addEventListener("abort", onAbort, { once: true });
|
|
127
|
-
|
|
119
|
+
clientHttp2Stream.once("close", () => signal.removeEventListener("abort", onAbort));
|
|
128
120
|
}
|
|
129
121
|
else {
|
|
130
122
|
abortSignal.onabort = onAbort;
|
|
131
123
|
}
|
|
132
124
|
}
|
|
133
|
-
|
|
125
|
+
clientHttp2Stream.on("frameError", (type, code, id) => {
|
|
134
126
|
rejectWithDestroy(new Error(`Frame type id ${type} in stream id ${id} has failed with code ${code}.`));
|
|
135
127
|
});
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
rejectWithDestroy(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${
|
|
128
|
+
clientHttp2Stream.on("error", rejectWithDestroy);
|
|
129
|
+
clientHttp2Stream.on("aborted", () => {
|
|
130
|
+
rejectWithDestroy(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${clientHttp2Stream.rstCode}.`));
|
|
131
|
+
});
|
|
132
|
+
clientHttp2Stream.on("response", (headers) => {
|
|
133
|
+
const httpResponse = new HttpResponse({
|
|
134
|
+
statusCode: headers[":status"] ?? -1,
|
|
135
|
+
headers: getTransformedHeaders(headers),
|
|
136
|
+
body: clientHttp2Stream,
|
|
137
|
+
});
|
|
138
|
+
fulfilled = true;
|
|
139
|
+
resolve({ response: httpResponse });
|
|
140
|
+
if (useIsolatedSession) {
|
|
141
|
+
session.close();
|
|
142
|
+
}
|
|
139
143
|
});
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
+
clientHttp2Stream.on("close", () => {
|
|
145
|
+
if (useIsolatedSession) {
|
|
146
|
+
ref.destroy();
|
|
147
|
+
}
|
|
148
|
+
else {
|
|
149
|
+
this.connectionManager.release(requestContext, ref);
|
|
144
150
|
}
|
|
145
151
|
if (!fulfilled) {
|
|
146
152
|
rejectWithDestroy(new Error("Unexpected error: http2 request did not get a response"));
|
|
147
153
|
}
|
|
148
154
|
});
|
|
149
|
-
writeRequestBodyPromise = writeRequestBody(
|
|
155
|
+
writeRequestBodyPromise = writeRequestBody(clientHttp2Stream, request, effectiveRequestTimeout);
|
|
150
156
|
});
|
|
151
157
|
}
|
|
152
158
|
updateHttpClientConfig(key, value) {
|
|
@@ -161,9 +167,4 @@ export class NodeHttp2Handler {
|
|
|
161
167
|
httpHandlerConfigs() {
|
|
162
168
|
return this.config ?? {};
|
|
163
169
|
}
|
|
164
|
-
destroySession(session) {
|
|
165
|
-
if (!session.destroyed) {
|
|
166
|
-
session.destroy();
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
170
|
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { ClientHttp2Session } from "node:http2";
|
|
2
|
+
/**
|
|
3
|
+
* Shared access ref counter for ClientHttp2Session, where owners are
|
|
4
|
+
* in-flight requests.
|
|
5
|
+
*
|
|
6
|
+
* @internal
|
|
7
|
+
* @since 4.6.0
|
|
8
|
+
*/
|
|
9
|
+
export declare class ClientHttp2SessionRef {
|
|
10
|
+
readonly id: number;
|
|
11
|
+
/**
|
|
12
|
+
* Total calls to retain for this session.
|
|
13
|
+
*/
|
|
14
|
+
total: number;
|
|
15
|
+
/**
|
|
16
|
+
* Max ref count observed.
|
|
17
|
+
*/
|
|
18
|
+
max: number;
|
|
19
|
+
private readonly session;
|
|
20
|
+
private refs;
|
|
21
|
+
constructor(session: ClientHttp2Session);
|
|
22
|
+
/**
|
|
23
|
+
* Signal that the session is entering a request span and has an additional owning request.
|
|
24
|
+
* This must be called when beginning a request using the session.
|
|
25
|
+
*/
|
|
26
|
+
retain(): void;
|
|
27
|
+
/**
|
|
28
|
+
* Release reference to session, to be called when it exits request span, indicating one fewer owning request.
|
|
29
|
+
* When reaching zero, the session is unref'd.
|
|
30
|
+
* This must be called when concluding a request using the session.
|
|
31
|
+
*/
|
|
32
|
+
free(): void;
|
|
33
|
+
/**
|
|
34
|
+
* Access the session (don't call ref/unref on it).
|
|
35
|
+
*/
|
|
36
|
+
deref(): ClientHttp2Session;
|
|
37
|
+
destroy(): void;
|
|
38
|
+
/**
|
|
39
|
+
* @returns the current number of active references (in-flight requests).
|
|
40
|
+
*/
|
|
41
|
+
useCount(): number;
|
|
42
|
+
}
|
package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts
CHANGED
|
@@ -1,24 +1,44 @@
|
|
|
1
|
-
import type { RequestContext } from "@smithy/types";
|
|
2
|
-
import
|
|
3
|
-
import type { ConnectionManager, ConnectionManagerConfiguration } from "@smithy/types";
|
|
4
|
-
import type { ClientHttp2Session } from "node:http2";
|
|
1
|
+
import type { ConnectConfiguration, ConnectionManager, ConnectionManagerConfiguration, RequestContext } from "@smithy/types";
|
|
2
|
+
import { ClientHttp2SessionRef } from "./http2/ClientHttp2SessionRef";
|
|
5
3
|
/**
|
|
6
|
-
*
|
|
4
|
+
* This class previously implemented the ConnectionManager<ClientHttp2Session> interface,
|
|
5
|
+
* but this class isn't exported from this package, except as a private property of NodeHttp2Handler.
|
|
6
|
+
*
|
|
7
|
+
* @since 4.6.0
|
|
8
|
+
* @internal
|
|
7
9
|
*/
|
|
8
|
-
export declare class NodeHttp2ConnectionManager implements ConnectionManager<
|
|
9
|
-
constructor(config: ConnectionManagerConfiguration);
|
|
10
|
+
export declare class NodeHttp2ConnectionManager implements ConnectionManager<ClientHttp2SessionRef> {
|
|
10
11
|
private config;
|
|
11
|
-
private readonly
|
|
12
|
-
|
|
12
|
+
private readonly connectionPools;
|
|
13
|
+
constructor(config: ConnectionManagerConfiguration);
|
|
14
|
+
/**
|
|
15
|
+
* Acquire a session for making a request.
|
|
16
|
+
*/
|
|
17
|
+
lease(requestContext: RequestContext, connectionConfiguration: ConnectConfiguration): ClientHttp2SessionRef;
|
|
18
|
+
/**
|
|
19
|
+
* Signal that a request using this session has completed.
|
|
20
|
+
*
|
|
21
|
+
* The session remains in its pool for reuse.
|
|
22
|
+
* This method is not called for isolated sessions.
|
|
23
|
+
*/
|
|
24
|
+
release(_requestContext: RequestContext, ref: ClientHttp2SessionRef): void;
|
|
13
25
|
/**
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* @param session The session to delete.
|
|
26
|
+
* Create an isolated session that isn't part of the connection pools.
|
|
27
|
+
* For use in event-streams or when concurrency is turned off.
|
|
17
28
|
*/
|
|
18
|
-
|
|
19
|
-
release(requestContext: RequestContext, session: ClientHttp2Session): void;
|
|
29
|
+
createIsolatedSession(requestContext: RequestContext, connectionConfiguration: ConnectConfiguration): ClientHttp2SessionRef;
|
|
20
30
|
destroy(): void;
|
|
21
31
|
setMaxConcurrentStreams(maxConcurrentStreams: number): void;
|
|
22
32
|
setDisableConcurrentStreams(disableConcurrentStreams: boolean): void;
|
|
33
|
+
/**
|
|
34
|
+
* @internal
|
|
35
|
+
* @returns a snapshot of the state of all connection pools and their sessions.
|
|
36
|
+
*/
|
|
37
|
+
debug(): Record<string, any>;
|
|
38
|
+
/**
|
|
39
|
+
* Remove a session from the pools. Does not destroy it.
|
|
40
|
+
*/
|
|
41
|
+
private removeFromPool;
|
|
42
|
+
private getPool;
|
|
23
43
|
private getUrlString;
|
|
24
44
|
}
|
|
@@ -1,12 +1,36 @@
|
|
|
1
1
|
import type { ConnectionPool } from "@smithy/types";
|
|
2
2
|
import type { ClientHttp2Session } from "node:http2";
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
import { ClientHttp2SessionRef } from "./http2/ClientHttp2SessionRef";
|
|
4
|
+
/**
|
|
5
|
+
* These are keyed by URL, therefore all sessions within this class' state
|
|
6
|
+
* are for the same URL.
|
|
7
|
+
*
|
|
8
|
+
* Sessions remain in the pool for their entire lifetime (until destroyed or
|
|
9
|
+
* removed). The pool tracks capacity via each session's ref count.
|
|
10
|
+
*
|
|
11
|
+
* Interface implementation changed from ConnectionPool<ClientHttp2Session>.
|
|
12
|
+
* @since 4.6.0
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
15
|
+
export declare class NodeHttp2ConnectionPool implements ConnectionPool<ClientHttp2SessionRef> {
|
|
16
|
+
private readonly sessions;
|
|
17
|
+
private maxConcurrency;
|
|
5
18
|
constructor(sessions?: ClientHttp2Session[]);
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
19
|
+
/**
|
|
20
|
+
* Find a session with available capacity (refs < maxConcurrency).
|
|
21
|
+
* Returns undefined if all sessions are at capacity or the pool is empty.
|
|
22
|
+
*/
|
|
23
|
+
poll(): ClientHttp2SessionRef | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Add a session to the pool.
|
|
26
|
+
*/
|
|
27
|
+
offerLast(ref: ClientHttp2SessionRef): void;
|
|
28
|
+
remove(ref: ClientHttp2SessionRef): void;
|
|
29
|
+
[Symbol.iterator](): ArrayIterator<ClientHttp2SessionRef>;
|
|
30
|
+
setMaxConcurrency(maxConcurrency: number): void;
|
|
31
|
+
/**
|
|
32
|
+
* This is unused, but part of the interface.
|
|
33
|
+
* @deprecated
|
|
34
|
+
*/
|
|
35
|
+
destroy(ref: ClientHttp2SessionRef): void;
|
|
12
36
|
}
|
|
@@ -32,6 +32,18 @@ export interface NodeHttp2HandlerOptions {
|
|
|
32
32
|
*/
|
|
33
33
|
maxConcurrentStreams?: number;
|
|
34
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* This is derived from the smithyContext object. This signals to the NodeHttp2Handler specifically
|
|
37
|
+
* that the connection pool should not be used to acquire a connection. The event stream should
|
|
38
|
+
* have its own new connection.
|
|
39
|
+
*
|
|
40
|
+
* This does not apply to WebSocket event streams, since there is no pooling.
|
|
41
|
+
*
|
|
42
|
+
* @internal
|
|
43
|
+
*/
|
|
44
|
+
type EventStreamSignal = {
|
|
45
|
+
isEventStream?: boolean;
|
|
46
|
+
};
|
|
35
47
|
/**
|
|
36
48
|
* A request handler using the node:http2 package.
|
|
37
49
|
* @public
|
|
@@ -50,14 +62,10 @@ export declare class NodeHttp2Handler implements HttpHandler<NodeHttp2HandlerOpt
|
|
|
50
62
|
static create(instanceOrOptions?: HttpHandler<any> | NodeHttp2HandlerOptions | Provider<NodeHttp2HandlerOptions | void>): HttpHandler<any> | NodeHttp2Handler;
|
|
51
63
|
constructor(options?: NodeHttp2HandlerOptions | Provider<NodeHttp2HandlerOptions | void>);
|
|
52
64
|
destroy(): void;
|
|
53
|
-
handle(request: HttpRequest, { abortSignal, requestTimeout }?: HttpHandlerOptions): Promise<{
|
|
65
|
+
handle(request: HttpRequest, { abortSignal, requestTimeout, isEventStream }?: HttpHandlerOptions & EventStreamSignal): Promise<{
|
|
54
66
|
response: HttpResponse;
|
|
55
67
|
}>;
|
|
56
68
|
updateHttpClientConfig(key: keyof NodeHttp2HandlerOptions, value: NodeHttp2HandlerOptions[typeof key]): void;
|
|
57
69
|
httpHandlerConfigs(): NodeHttp2HandlerOptions;
|
|
58
|
-
/**
|
|
59
|
-
* Destroys a session.
|
|
60
|
-
* @param session - the session to destroy.
|
|
61
|
-
*/
|
|
62
|
-
private destroySession;
|
|
63
70
|
}
|
|
71
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/node-http-handler",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.6.0",
|
|
4
4
|
"description": "Provides a way to make requests",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
|
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
"module": "./dist-es/index.js",
|
|
27
27
|
"types": "./dist-types/index.d.ts",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@smithy/protocol-http": "^5.3.
|
|
30
|
-
"@smithy/querystring-builder": "^4.2.
|
|
31
|
-
"@smithy/types": "^4.14.
|
|
29
|
+
"@smithy/protocol-http": "^5.3.14",
|
|
30
|
+
"@smithy/querystring-builder": "^4.2.14",
|
|
31
|
+
"@smithy/types": "^4.14.1",
|
|
32
32
|
"tslib": "^2.6.2"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@smithy/abort-controller": "^4.2.
|
|
35
|
+
"@smithy/abort-controller": "^4.2.14",
|
|
36
36
|
"@types/node": "^18.11.9",
|
|
37
37
|
"concurrently": "7.0.0",
|
|
38
38
|
"downlevel-dts": "0.10.1",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/property-provider",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.14",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
|
|
6
6
|
"build:es:cjs": "yarn g:tsc -p tsconfig.es.json && node ../../scripts/inline property-provider",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"sideEffects": false,
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@smithy/types": "^4.14.
|
|
26
|
+
"@smithy/types": "^4.14.1",
|
|
27
27
|
"tslib": "^2.6.2"
|
|
28
28
|
},
|
|
29
29
|
"engines": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/protocol-http",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.14",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
|
|
6
6
|
"build:es:cjs": "yarn g:tsc -p tsconfig.es.json && node ../../scripts/inline protocol-http",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"sideEffects": false,
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@smithy/types": "^4.14.
|
|
27
|
+
"@smithy/types": "^4.14.1",
|
|
28
28
|
"tslib": "^2.6.2"
|
|
29
29
|
},
|
|
30
30
|
"engines": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/querystring-builder",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.14",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
|
|
6
6
|
"build:es:cjs": "yarn g:tsc -p tsconfig.es.json && node ../../scripts/inline querystring-builder",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"license": "Apache-2.0",
|
|
23
23
|
"sideEffects": false,
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@smithy/types": "^4.14.
|
|
25
|
+
"@smithy/types": "^4.14.1",
|
|
26
26
|
"@smithy/util-uri-escape": "^4.2.2",
|
|
27
27
|
"tslib": "^2.6.2"
|
|
28
28
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/querystring-parser",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.14",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
|
|
6
6
|
"build:es:cjs": "yarn g:tsc -p tsconfig.es.json && node ../../scripts/inline querystring-parser",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"license": "Apache-2.0",
|
|
24
24
|
"sideEffects": false,
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@smithy/types": "^4.14.
|
|
26
|
+
"@smithy/types": "^4.14.1",
|
|
27
27
|
"tslib": "^2.6.2"
|
|
28
28
|
},
|
|
29
29
|
"engines": {
|
|
@@ -56,6 +56,7 @@ const isTransientError = (error, depth = 0) => isRetryableByTrait(error) ||
|
|
|
56
56
|
NODEJS_NETWORK_ERROR_CODES.includes(error?.code || "") ||
|
|
57
57
|
TRANSIENT_ERROR_STATUS_CODES.includes(error.$metadata?.httpStatusCode || 0) ||
|
|
58
58
|
isBrowserNetworkError(error) ||
|
|
59
|
+
isNodeJsHttp2TransientError(error) ||
|
|
59
60
|
(error.cause !== undefined && depth <= 10 && isTransientError(error.cause, depth + 1));
|
|
60
61
|
const isServerError = (error) => {
|
|
61
62
|
if (error.$metadata?.httpStatusCode !== undefined) {
|
|
@@ -67,10 +68,14 @@ const isServerError = (error) => {
|
|
|
67
68
|
}
|
|
68
69
|
return false;
|
|
69
70
|
};
|
|
71
|
+
function isNodeJsHttp2TransientError(error) {
|
|
72
|
+
return error.code === "ERR_HTTP2_STREAM_ERROR" && error.message.includes("NGHTTP2_REFUSED_STREAM");
|
|
73
|
+
}
|
|
70
74
|
|
|
71
75
|
exports.isBrowserNetworkError = isBrowserNetworkError;
|
|
72
76
|
exports.isClockSkewCorrectedError = isClockSkewCorrectedError;
|
|
73
77
|
exports.isClockSkewError = isClockSkewError;
|
|
78
|
+
exports.isNodeJsHttp2TransientError = isNodeJsHttp2TransientError;
|
|
74
79
|
exports.isRetryableByTrait = isRetryableByTrait;
|
|
75
80
|
exports.isServerError = isServerError;
|
|
76
81
|
exports.isThrottlingError = isThrottlingError;
|
|
@@ -26,6 +26,7 @@ export const isTransientError = (error, depth = 0) => isRetryableByTrait(error)
|
|
|
26
26
|
NODEJS_NETWORK_ERROR_CODES.includes(error?.code || "") ||
|
|
27
27
|
TRANSIENT_ERROR_STATUS_CODES.includes(error.$metadata?.httpStatusCode || 0) ||
|
|
28
28
|
isBrowserNetworkError(error) ||
|
|
29
|
+
isNodeJsHttp2TransientError(error) ||
|
|
29
30
|
(error.cause !== undefined && depth <= 10 && isTransientError(error.cause, depth + 1));
|
|
30
31
|
export const isServerError = (error) => {
|
|
31
32
|
if (error.$metadata?.httpStatusCode !== undefined) {
|
|
@@ -37,3 +38,6 @@ export const isServerError = (error) => {
|
|
|
37
38
|
}
|
|
38
39
|
return false;
|
|
39
40
|
};
|
|
41
|
+
export function isNodeJsHttp2TransientError(error) {
|
|
42
|
+
return error.code === "ERR_HTTP2_STREAM_ERROR" && error.message.includes("NGHTTP2_REFUSED_STREAM");
|
|
43
|
+
}
|
|
@@ -22,3 +22,9 @@ export declare const isThrottlingError: (error: SdkError) => boolean;
|
|
|
22
22
|
*/
|
|
23
23
|
export declare const isTransientError: (error: SdkError, depth?: number) => boolean;
|
|
24
24
|
export declare const isServerError: (error: SdkError) => boolean;
|
|
25
|
+
/**
|
|
26
|
+
* @internal
|
|
27
|
+
*/
|
|
28
|
+
export declare function isNodeJsHttp2TransientError(error: Error & {
|
|
29
|
+
code?: string;
|
|
30
|
+
}): boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/service-error-classification",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es:cjs'",
|
|
6
6
|
"build:es:cjs": "yarn g:tsc -p tsconfig.es.json && node ../../scripts/inline service-error-classification",
|
|
@@ -54,6 +54,6 @@
|
|
|
54
54
|
"directory": ".release/package"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@smithy/types": "^4.14.
|
|
57
|
+
"@smithy/types": "^4.14.1"
|
|
58
58
|
}
|
|
59
59
|
}
|
|
@@ -448,7 +448,7 @@ class SignatureV4 extends SignatureV4Base {
|
|
|
448
448
|
return this.signRequest(toSign, options);
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
|
-
async signEvent({ headers, payload }, { signingDate = new Date(), priorSignature, signingRegion, signingService }) {
|
|
451
|
+
async signEvent({ headers, payload }, { signingDate = new Date(), priorSignature, signingRegion, signingService, eventStreamCredentials, }) {
|
|
452
452
|
const region = signingRegion ?? (await this.regionProvider());
|
|
453
453
|
const { shortDate, longDate } = this.formatDate(signingDate);
|
|
454
454
|
const scope = createScope(shortDate, region, signingService ?? this.service);
|
|
@@ -464,9 +464,14 @@ class SignatureV4 extends SignatureV4Base {
|
|
|
464
464
|
hashedHeaders,
|
|
465
465
|
hashedPayload,
|
|
466
466
|
].join("\n");
|
|
467
|
-
return this.signString(stringToSign, {
|
|
467
|
+
return this.signString(stringToSign, {
|
|
468
|
+
signingDate,
|
|
469
|
+
signingRegion: region,
|
|
470
|
+
signingService,
|
|
471
|
+
eventStreamCredentials,
|
|
472
|
+
});
|
|
468
473
|
}
|
|
469
|
-
async signMessage(signableMessage, { signingDate = new Date(), signingRegion, signingService }) {
|
|
474
|
+
async signMessage(signableMessage, { signingDate = new Date(), signingRegion, signingService, eventStreamCredentials }) {
|
|
470
475
|
const promise = this.signEvent({
|
|
471
476
|
headers: this.headerFormatter.format(signableMessage.message.headers),
|
|
472
477
|
payload: signableMessage.message.body,
|
|
@@ -475,13 +480,14 @@ class SignatureV4 extends SignatureV4Base {
|
|
|
475
480
|
signingRegion,
|
|
476
481
|
signingService,
|
|
477
482
|
priorSignature: signableMessage.priorSignature,
|
|
483
|
+
eventStreamCredentials,
|
|
478
484
|
});
|
|
479
485
|
return promise.then((signature) => {
|
|
480
486
|
return { message: signableMessage.message, signature };
|
|
481
487
|
});
|
|
482
488
|
}
|
|
483
|
-
async signString(stringToSign, { signingDate = new Date(), signingRegion, signingService } = {}) {
|
|
484
|
-
const credentials = await this.credentialProvider();
|
|
489
|
+
async signString(stringToSign, { signingDate = new Date(), signingRegion, signingService, eventStreamCredentials, } = {}) {
|
|
490
|
+
const credentials = eventStreamCredentials ?? (await this.credentialProvider());
|
|
485
491
|
this.validateResolvedCredentials(credentials);
|
|
486
492
|
const region = signingRegion ?? (await this.regionProvider());
|
|
487
493
|
const { shortDate } = this.formatDate(signingDate);
|
|
@@ -58,7 +58,7 @@ export class SignatureV4 extends SignatureV4Base {
|
|
|
58
58
|
return this.signRequest(toSign, options);
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
async signEvent({ headers, payload }, { signingDate = new Date(), priorSignature, signingRegion, signingService }) {
|
|
61
|
+
async signEvent({ headers, payload }, { signingDate = new Date(), priorSignature, signingRegion, signingService, eventStreamCredentials, }) {
|
|
62
62
|
const region = signingRegion ?? (await this.regionProvider());
|
|
63
63
|
const { shortDate, longDate } = this.formatDate(signingDate);
|
|
64
64
|
const scope = createScope(shortDate, region, signingService ?? this.service);
|
|
@@ -74,9 +74,14 @@ export class SignatureV4 extends SignatureV4Base {
|
|
|
74
74
|
hashedHeaders,
|
|
75
75
|
hashedPayload,
|
|
76
76
|
].join("\n");
|
|
77
|
-
return this.signString(stringToSign, {
|
|
77
|
+
return this.signString(stringToSign, {
|
|
78
|
+
signingDate,
|
|
79
|
+
signingRegion: region,
|
|
80
|
+
signingService,
|
|
81
|
+
eventStreamCredentials,
|
|
82
|
+
});
|
|
78
83
|
}
|
|
79
|
-
async signMessage(signableMessage, { signingDate = new Date(), signingRegion, signingService }) {
|
|
84
|
+
async signMessage(signableMessage, { signingDate = new Date(), signingRegion, signingService, eventStreamCredentials }) {
|
|
80
85
|
const promise = this.signEvent({
|
|
81
86
|
headers: this.headerFormatter.format(signableMessage.message.headers),
|
|
82
87
|
payload: signableMessage.message.body,
|
|
@@ -85,13 +90,14 @@ export class SignatureV4 extends SignatureV4Base {
|
|
|
85
90
|
signingRegion,
|
|
86
91
|
signingService,
|
|
87
92
|
priorSignature: signableMessage.priorSignature,
|
|
93
|
+
eventStreamCredentials,
|
|
88
94
|
});
|
|
89
95
|
return promise.then((signature) => {
|
|
90
96
|
return { message: signableMessage.message, signature };
|
|
91
97
|
});
|
|
92
98
|
}
|
|
93
|
-
async signString(stringToSign, { signingDate = new Date(), signingRegion, signingService } = {}) {
|
|
94
|
-
const credentials = await this.credentialProvider();
|
|
99
|
+
async signString(stringToSign, { signingDate = new Date(), signingRegion, signingService, eventStreamCredentials, } = {}) {
|
|
100
|
+
const credentials = eventStreamCredentials ?? (await this.credentialProvider());
|
|
95
101
|
this.validateResolvedCredentials(credentials);
|
|
96
102
|
const region = signingRegion ?? (await this.regionProvider());
|
|
97
103
|
const { shortDate } = this.formatDate(signingDate);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EventSigner, EventSigningArguments, FormattedEvent, HttpRequest, MessageSigner, RequestPresigner, RequestPresigningArguments, RequestSigner, RequestSigningArguments, SignableMessage, SignedMessage, SigningArguments, StringSigner } from "@smithy/types";
|
|
1
|
+
import type { EventSigner, EventSigningArguments, FormattedEvent, HttpRequest, MessageSigner, MessageSigningArguments, RequestPresigner, RequestPresigningArguments, RequestSigner, RequestSigningArguments, SignableMessage, SignedMessage, SigningArguments, StringSigner } from "@smithy/types";
|
|
2
2
|
import type { SignatureV4CryptoInit, SignatureV4Init } from "./SignatureV4Base";
|
|
3
3
|
import { SignatureV4Base } from "./SignatureV4Base";
|
|
4
4
|
/**
|
|
@@ -10,10 +10,10 @@ export declare class SignatureV4 extends SignatureV4Base implements RequestPresi
|
|
|
10
10
|
presign(originalRequest: HttpRequest, options?: RequestPresigningArguments): Promise<HttpRequest>;
|
|
11
11
|
sign(stringToSign: string, options?: SigningArguments): Promise<string>;
|
|
12
12
|
sign(event: FormattedEvent, options: EventSigningArguments): Promise<string>;
|
|
13
|
-
sign(event: SignableMessage, options:
|
|
13
|
+
sign(event: SignableMessage, options: MessageSigningArguments): Promise<SignedMessage>;
|
|
14
14
|
sign(requestToSign: HttpRequest, options?: RequestSigningArguments): Promise<HttpRequest>;
|
|
15
15
|
private signEvent;
|
|
16
|
-
signMessage(signableMessage: SignableMessage, { signingDate, signingRegion, signingService }:
|
|
16
|
+
signMessage(signableMessage: SignableMessage, { signingDate, signingRegion, signingService, eventStreamCredentials }: MessageSigningArguments): Promise<SignedMessage>;
|
|
17
17
|
private signString;
|
|
18
18
|
private signRequest;
|
|
19
19
|
private getSignature;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/signature-v4",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.14",
|
|
4
4
|
"description": "A standalone implementation of the AWS Signature V4 request signing algorithm",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
"sideEffects": false,
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@smithy/is-array-buffer": "^4.2.2",
|
|
29
|
-
"@smithy/protocol-http": "^5.3.
|
|
30
|
-
"@smithy/types": "^4.14.
|
|
29
|
+
"@smithy/protocol-http": "^5.3.14",
|
|
30
|
+
"@smithy/types": "^4.14.1",
|
|
31
31
|
"@smithy/util-hex-encoding": "^4.2.2",
|
|
32
|
-
"@smithy/util-middleware": "^4.2.
|
|
32
|
+
"@smithy/util-middleware": "^4.2.14",
|
|
33
33
|
"@smithy/util-uri-escape": "^4.2.2",
|
|
34
34
|
"@smithy/util-utf8": "^4.2.2",
|
|
35
35
|
"tslib": "^2.6.2"
|