@cdklabs/cdk-ecs-codedeploy 0.0.437 → 0.0.439
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 +3 -3
- package/lib/api-canary/index.js +1 -1
- package/lib/ecs-appspec/index.js +1 -1
- package/lib/ecs-deployment/index.js +1 -1
- package/lib/ecs-patterns/application-load-balanced-codedeployed-fargate-service.js +1 -1
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/endpoint/bdd.js +49 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/endpoint/endpointResolver.js +2 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/endpoint/bdd.js +46 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/endpoint/endpointResolver.js +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/endpoint/bdd.d.ts +2 -0
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/endpoint/bdd.d.ts +2 -0
- package/node_modules/@aws-sdk/client-codedeploy/package.json +34 -34
- package/node_modules/@aws-sdk/core/dist-cjs/index.js +72 -61
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +3 -0
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +70 -61
- package/node_modules/@aws-sdk/core/dist-es/submodules/client/setFeature.js +2 -0
- 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/JsonShapeDeserializer.js +6 -4
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/JsonShapeSerializer.js +15 -10
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +2 -1
- 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/query/QueryShapeSerializer.js +2 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/AwsRestXmlProtocol.js +2 -2
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeSerializer.js +4 -2
- package/node_modules/@aws-sdk/core/dist-types/submodules/client/setFeature.d.ts +1 -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 +14 -12
- 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 +581 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/toStream.browser.js +11 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/toStream.js +7 -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 +51 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/toStream.browser.js +8 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-es/toStream.js +4 -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 +21 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/toStream.browser.d.ts +4 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/toStream.d.ts +5 -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 +19 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/toStream.browser.d.ts +1 -0
- package/node_modules/@aws-sdk/middleware-sdk-s3/dist-types/ts3.4/toStream.d.ts +2 -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 +79 -0
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +8 -8
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/endpoint/bdd.js +100 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/endpoint/endpointResolver.js +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/endpoint/bdd.js +90 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/endpoint/endpointResolver.js +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/endpoint/bdd.js +80 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/endpoint/endpointResolver.js +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/bdd.js +80 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/endpointResolver.js +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/STSClient.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/auth/httpAuthSchemeProvider.js +87 -5
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/bdd.js +150 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/endpointResolver.js +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/models/errors.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.js +6 -0
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/runtimeConfig.shared.js +7 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/endpoint/bdd.js +97 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/endpoint/endpointResolver.js +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/bdd.js +87 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/endpointResolver.js +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/bdd.js +77 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/endpointResolver.js +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/bdd.js +77 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/endpointResolver.js +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/STSClient.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/auth/httpAuthSchemeProvider.js +88 -4
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/bdd.js +147 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/endpointResolver.js +3 -3
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/models/errors.js +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.js +7 -1
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeConfig.shared.js +8 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/endpoint/bdd.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/endpoint/bdd.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/endpoint/bdd.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/endpoint/bdd.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/auth/httpAuthSchemeProvider.d.ts +15 -7
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/endpoint/bdd.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/models/errors.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.browser.d.ts +3 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.d.ts +10 -4
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.native.d.ts +3 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/runtimeConfig.shared.d.ts +3 -1
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/endpoint/bdd.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/endpoint/bdd.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/endpoint/bdd.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/endpoint/bdd.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/auth/httpAuthSchemeProvider.d.ts +20 -9
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/endpoint/bdd.d.ts +2 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/models/errors.d.ts +1 -0
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.browser.d.ts +11 -5
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.d.ts +35 -16
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.native.d.ts +11 -5
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/runtimeConfig.shared.d.ts +8 -1
- package/node_modules/@aws-sdk/nested-clients/package.json +33 -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/dist-cjs/xml-parser.js +0 -2
- package/node_modules/@aws-sdk/xml-builder/dist-es/xml-parser.js +0 -2
- package/node_modules/@aws-sdk/xml-builder/package.json +3 -3
- package/node_modules/@nodable/entities/README.md +41 -0
- package/node_modules/@nodable/entities/package.json +54 -0
- package/node_modules/@nodable/entities/src/EntityDecoder.js +543 -0
- package/node_modules/@nodable/entities/src/EntityEncoder.js +194 -0
- package/node_modules/@nodable/entities/src/entities.js +1177 -0
- package/node_modules/@nodable/entities/src/entityTries.js +49 -0
- package/node_modules/@nodable/entities/src/index.d.ts +264 -0
- package/node_modules/@nodable/entities/src/index.js +29 -0
- 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 +208 -102
- package/node_modules/@smithy/node-http-handler/dist-es/http2/ClientHttp2SessionRef.js +50 -0
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +83 -41
- 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 +46 -0
- package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts +32 -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 +6 -0
- package/node_modules/@smithy/service-error-classification/dist-es/index.js +5 -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/dist-cjs/index.js +20 -10
- package/node_modules/@smithy/util-retry/dist-es/StandardRetryStrategy.js +20 -10
- package/node_modules/@smithy/util-retry/dist-types/StandardRetryStrategy.d.ts +12 -4
- 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/dist-cjs/index.js +59 -34
- package/node_modules/@smithy/util-waiter/dist-es/poller.js +61 -34
- package/node_modules/@smithy/util-waiter/dist-types/createWaiter.d.ts +1 -1
- package/node_modules/@smithy/util-waiter/dist-types/poller.d.ts +2 -1
- package/node_modules/@smithy/util-waiter/dist-types/waiter.d.ts +13 -13
- 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/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/CHANGELOG.md +53 -0
- package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/README.md +8 -28
- package/node_modules/fast-xml-parser/lib/fxbuilder.min.js +2 -0
- package/node_modules/fast-xml-parser/lib/fxbuilder.min.js.map +1 -0
- package/node_modules/fast-xml-parser/lib/fxp.cjs +1 -0
- package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/lib/fxp.d.cts +172 -6
- package/node_modules/fast-xml-parser/lib/fxp.min.js +2 -0
- package/node_modules/fast-xml-parser/lib/fxp.min.js.map +1 -0
- package/node_modules/fast-xml-parser/lib/fxparser.min.js +2 -0
- package/node_modules/fast-xml-parser/lib/fxparser.min.js.map +1 -0
- package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/package.json +5 -4
- package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/fxp.d.ts +162 -3
- package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/xmlparser/DocTypeReader.js +2 -5
- package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/xmlparser/OptionsBuilder.js +15 -11
- package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/xmlparser/OrderedObjParser.js +168 -244
- package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/xmlparser/XMLParser.js +1 -1
- package/package.json +5 -5
- package/node_modules/@aws-sdk/client-codedeploy/dist-cjs/endpoint/ruleset.js +0 -7
- package/node_modules/@aws-sdk/client-codedeploy/dist-es/endpoint/ruleset.js +0 -4
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/endpoint/ruleset.d.ts +0 -2
- package/node_modules/@aws-sdk/client-codedeploy/dist-types/ts3.4/endpoint/ruleset.d.ts +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/endpoint/ruleset.js +0 -146
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/endpoint/ruleset.js +0 -133
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/endpoint/ruleset.js +0 -106
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/endpoint/ruleset.js +0 -106
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/endpoint/ruleset.js +0 -145
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/cognito-identity/endpoint/ruleset.js +0 -143
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/endpoint/ruleset.js +0 -130
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso/endpoint/ruleset.js +0 -103
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/endpoint/ruleset.js +0 -103
- package/node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/endpoint/ruleset.js +0 -142
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/cognito-identity/endpoint/ruleset.d.ts +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/signin/endpoint/ruleset.d.ts +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso/endpoint/ruleset.d.ts +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sso-oidc/endpoint/ruleset.d.ts +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/submodules/sts/endpoint/ruleset.d.ts +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/cognito-identity/endpoint/ruleset.d.ts +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/signin/endpoint/ruleset.d.ts +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso/endpoint/ruleset.d.ts +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sso-oidc/endpoint/ruleset.d.ts +0 -2
- package/node_modules/@aws-sdk/nested-clients/dist-types/ts3.4/submodules/sts/endpoint/ruleset.d.ts +0 -2
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxbuilder.min.js +0 -2
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxbuilder.min.js.map +0 -1
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxp.cjs +0 -1
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxp.min.js +0 -2
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxp.min.js.map +0 -1
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxparser.min.js +0 -2
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxparser.min.js.map +0 -1
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/pem.d.cts +0 -148
- package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/pem.d.ts +0 -135
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/LICENSE +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/lib/fxvalidator.min.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/lib/fxvalidator.min.js.map +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/cli/cli.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/cli/man.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/cli/read.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/fxp.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/ignoreAttributes.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/util.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/CharsSymbol.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/EntitiesParser.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/OptionsBuilder.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/OutputBuilders/BaseOutputBuilder.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/OutputBuilders/JsArrBuilder.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/OutputBuilders/JsMinArrBuilder.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/OutputBuilders/JsObjBuilder.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/OutputBuilders/ParserOptionsBuilder.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/Report.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/TagPath.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/TagPathMatcher.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/XMLParser.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/Xml2JsParser.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/XmlPartReader.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/XmlSpecialTagsReader.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/inputSource/BufferSource.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/inputSource/StringSource.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/valueParsers/EntitiesParser.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/valueParsers/booleanParser.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/valueParsers/booleanParserExt.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/valueParsers/currency.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/valueParsers/join.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/valueParsers/number.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/v6/valueParsers/trim.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/validator.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/xmlbuilder/json2xml.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/xmlparser/node2json.js +0 -0
- /package/node_modules/{@aws-sdk/xml-builder/node_modules/fast-xml-parser → fast-xml-parser}/src/xmlparser/xmlNode.js +0 -0
- /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
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var utilRetry = require('@smithy/util-retry');
|
|
3
4
|
var protocolHttp = require('@smithy/protocol-http');
|
|
4
5
|
var core = require('@smithy/core');
|
|
5
6
|
var propertyProvider = require('@smithy/property-provider');
|
|
@@ -54,6 +55,7 @@ function setCredentialFeature(credentials, feature, value) {
|
|
|
54
55
|
return credentials;
|
|
55
56
|
}
|
|
56
57
|
|
|
58
|
+
utilRetry.Retry.v2026 ||= typeof process === "object" && process.env?.AWS_NEW_RETRIES_2026 === "true";
|
|
57
59
|
function setFeature(context, feature, value) {
|
|
58
60
|
if (!context.__aws_sdk_context) {
|
|
59
61
|
context.__aws_sdk_context = {
|
|
@@ -450,12 +452,11 @@ class ProtocolLib {
|
|
|
450
452
|
if (msg) {
|
|
451
453
|
error.message = msg;
|
|
452
454
|
}
|
|
453
|
-
error.Error
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
};
|
|
455
|
+
const errorObj = error.Error ?? {};
|
|
456
|
+
errorObj.Type = error.Error?.Type;
|
|
457
|
+
errorObj.Code = error.Error?.Code;
|
|
458
|
+
errorObj.Message = error.Error?.message ?? error.Error?.Message ?? msg;
|
|
459
|
+
error.Error = errorObj;
|
|
459
460
|
const reqId = error.$metadata.requestId;
|
|
460
461
|
if (reqId) {
|
|
461
462
|
error.RequestId = reqId;
|
|
@@ -468,14 +469,16 @@ class ProtocolLib {
|
|
|
468
469
|
const queryErrorHeader = response.headers?.["x-amzn-query-error"];
|
|
469
470
|
if (output !== undefined && queryErrorHeader != null) {
|
|
470
471
|
const [Code, Type] = queryErrorHeader.split(";");
|
|
471
|
-
const
|
|
472
|
+
const keys = Object.keys(output);
|
|
472
473
|
const Error = {
|
|
473
474
|
Code,
|
|
474
475
|
Type,
|
|
475
476
|
};
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
477
|
+
output.Code = Code;
|
|
478
|
+
output.Type = Type;
|
|
479
|
+
for (let i = 0; i < keys.length; i++) {
|
|
480
|
+
const k = keys[i];
|
|
481
|
+
Error[k === "message" ? "Message" : k] = output[k];
|
|
479
482
|
}
|
|
480
483
|
delete Error.__type;
|
|
481
484
|
output.Error = Error;
|
|
@@ -614,7 +617,10 @@ class UnionSerde {
|
|
|
614
617
|
constructor(from, to) {
|
|
615
618
|
this.from = from;
|
|
616
619
|
this.to = to;
|
|
617
|
-
|
|
620
|
+
const keys = Object.keys(this.from);
|
|
621
|
+
const set = new Set(keys);
|
|
622
|
+
set.delete("__type");
|
|
623
|
+
this.keys = set;
|
|
618
624
|
}
|
|
619
625
|
mark(key) {
|
|
620
626
|
this.keys.delete(key);
|
|
@@ -672,24 +678,24 @@ const parseJsonErrorBody = async (errorBody, context) => {
|
|
|
672
678
|
value.message = value.message ?? value.Message;
|
|
673
679
|
return value;
|
|
674
680
|
};
|
|
681
|
+
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
682
|
+
const sanitizeErrorCode = (rawValue) => {
|
|
683
|
+
let cleanValue = rawValue;
|
|
684
|
+
if (typeof cleanValue === "number") {
|
|
685
|
+
cleanValue = cleanValue.toString();
|
|
686
|
+
}
|
|
687
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
688
|
+
cleanValue = cleanValue.split(",")[0];
|
|
689
|
+
}
|
|
690
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
691
|
+
cleanValue = cleanValue.split(":")[0];
|
|
692
|
+
}
|
|
693
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
694
|
+
cleanValue = cleanValue.split("#")[1];
|
|
695
|
+
}
|
|
696
|
+
return cleanValue;
|
|
697
|
+
};
|
|
675
698
|
const loadRestJsonErrorCode = (output, data) => {
|
|
676
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
677
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
678
|
-
let cleanValue = rawValue;
|
|
679
|
-
if (typeof cleanValue === "number") {
|
|
680
|
-
cleanValue = cleanValue.toString();
|
|
681
|
-
}
|
|
682
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
683
|
-
cleanValue = cleanValue.split(",")[0];
|
|
684
|
-
}
|
|
685
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
686
|
-
cleanValue = cleanValue.split(":")[0];
|
|
687
|
-
}
|
|
688
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
689
|
-
cleanValue = cleanValue.split("#")[1];
|
|
690
|
-
}
|
|
691
|
-
return cleanValue;
|
|
692
|
-
};
|
|
693
699
|
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
694
700
|
if (headerKey !== undefined) {
|
|
695
701
|
return sanitizeErrorCode(output.headers[headerKey]);
|
|
@@ -751,7 +757,8 @@ class JsonShapeDeserializer extends SerdeContextConfig {
|
|
|
751
757
|
unionSerde.writeUnknown();
|
|
752
758
|
}
|
|
753
759
|
else if (typeof record.__type === "string") {
|
|
754
|
-
for (const
|
|
760
|
+
for (const k in record) {
|
|
761
|
+
const v = record[k];
|
|
755
762
|
const t = jsonName ? nameMap[k] ?? k : k;
|
|
756
763
|
if (!(t in out)) {
|
|
757
764
|
out[t] = v;
|
|
@@ -771,8 +778,8 @@ class JsonShapeDeserializer extends SerdeContextConfig {
|
|
|
771
778
|
if (ns.isMapSchema()) {
|
|
772
779
|
const mapMember = ns.getValueSchema();
|
|
773
780
|
const out = {};
|
|
774
|
-
for (const
|
|
775
|
-
out[_k] = this._read(mapMember,
|
|
781
|
+
for (const _k in value) {
|
|
782
|
+
out[_k] = this._read(mapMember, value[_k]);
|
|
776
783
|
}
|
|
777
784
|
return out;
|
|
778
785
|
}
|
|
@@ -829,7 +836,8 @@ class JsonShapeDeserializer extends SerdeContextConfig {
|
|
|
829
836
|
if (ns.isDocumentSchema()) {
|
|
830
837
|
if (isObject) {
|
|
831
838
|
const out = Array.isArray(value) ? [] : {};
|
|
832
|
-
for (const
|
|
839
|
+
for (const k in value) {
|
|
840
|
+
const v = value[k];
|
|
833
841
|
if (v instanceof serde.NumericValue) {
|
|
834
842
|
out[k] = v;
|
|
835
843
|
}
|
|
@@ -906,12 +914,6 @@ class JsonShapeSerializer extends SerdeContextConfig {
|
|
|
906
914
|
this.rootSchema = schema.NormalizedSchema.of(schema$1);
|
|
907
915
|
this.buffer = this._write(this.rootSchema, value);
|
|
908
916
|
}
|
|
909
|
-
writeDiscriminatedDocument(schema$1, value) {
|
|
910
|
-
this.write(schema$1, value);
|
|
911
|
-
if (typeof this.buffer === "object") {
|
|
912
|
-
this.buffer.__type = schema.NormalizedSchema.of(schema$1).getName(true);
|
|
913
|
-
}
|
|
914
|
-
}
|
|
915
917
|
flush() {
|
|
916
918
|
const { rootSchema, useReplacer } = this;
|
|
917
919
|
this.rootSchema = undefined;
|
|
@@ -925,6 +927,12 @@ class JsonShapeSerializer extends SerdeContextConfig {
|
|
|
925
927
|
}
|
|
926
928
|
return this.buffer;
|
|
927
929
|
}
|
|
930
|
+
writeDiscriminatedDocument(schema$1, value) {
|
|
931
|
+
this.write(schema$1, value);
|
|
932
|
+
if (typeof this.buffer === "object") {
|
|
933
|
+
this.buffer.__type = schema.NormalizedSchema.of(schema$1).getName(true);
|
|
934
|
+
}
|
|
935
|
+
}
|
|
928
936
|
_write(schema$1, value, container) {
|
|
929
937
|
const isObject = value !== null && typeof value === "object";
|
|
930
938
|
const ns = schema.NormalizedSchema.of(schema$1);
|
|
@@ -937,6 +945,7 @@ class JsonShapeSerializer extends SerdeContextConfig {
|
|
|
937
945
|
if (jsonName) {
|
|
938
946
|
nameMap = {};
|
|
939
947
|
}
|
|
948
|
+
let outCount = 0;
|
|
940
949
|
for (const [memberName, memberSchema] of ns.structIterator()) {
|
|
941
950
|
const serializableValue = this._write(memberSchema, record[memberName], ns);
|
|
942
951
|
if (serializableValue !== undefined) {
|
|
@@ -946,9 +955,10 @@ class JsonShapeSerializer extends SerdeContextConfig {
|
|
|
946
955
|
nameMap[memberName] = targetKey;
|
|
947
956
|
}
|
|
948
957
|
out[targetKey] = serializableValue;
|
|
958
|
+
outCount++;
|
|
949
959
|
}
|
|
950
960
|
}
|
|
951
|
-
if (ns.isUnionSchema() &&
|
|
961
|
+
if (ns.isUnionSchema() && outCount === 0) {
|
|
952
962
|
const { $unknown } = record;
|
|
953
963
|
if (Array.isArray($unknown)) {
|
|
954
964
|
const [k, v] = $unknown;
|
|
@@ -956,7 +966,8 @@ class JsonShapeSerializer extends SerdeContextConfig {
|
|
|
956
966
|
}
|
|
957
967
|
}
|
|
958
968
|
else if (typeof record.__type === "string") {
|
|
959
|
-
for (const
|
|
969
|
+
for (const k in record) {
|
|
970
|
+
const v = record[k];
|
|
960
971
|
const targetKey = jsonName ? nameMap[k] ?? k : k;
|
|
961
972
|
if (!(targetKey in out)) {
|
|
962
973
|
out[targetKey] = this._write(15, v);
|
|
@@ -980,7 +991,8 @@ class JsonShapeSerializer extends SerdeContextConfig {
|
|
|
980
991
|
const mapMember = ns.getValueSchema();
|
|
981
992
|
const out = {};
|
|
982
993
|
const sparse = !!ns.getMergedTraits().sparse;
|
|
983
|
-
for (const
|
|
994
|
+
for (const _k in value) {
|
|
995
|
+
const _v = value[_k];
|
|
984
996
|
if (sparse || _v != null) {
|
|
985
997
|
out[_k] = this._write(mapMember, _v);
|
|
986
998
|
}
|
|
@@ -1045,7 +1057,8 @@ class JsonShapeSerializer extends SerdeContextConfig {
|
|
|
1045
1057
|
if (ns.isDocumentSchema()) {
|
|
1046
1058
|
if (isObject) {
|
|
1047
1059
|
const out = Array.isArray(value) ? [] : {};
|
|
1048
|
-
for (const
|
|
1060
|
+
for (const k in value) {
|
|
1061
|
+
const v = value[k];
|
|
1049
1062
|
if (v instanceof serde.NumericValue) {
|
|
1050
1063
|
this.useReplacer = true;
|
|
1051
1064
|
out[k] = v;
|
|
@@ -1114,10 +1127,8 @@ class AwsJsonRpcProtocol extends protocols.RpcProtocol {
|
|
|
1114
1127
|
if (!request.path.endsWith("/")) {
|
|
1115
1128
|
request.path += "/";
|
|
1116
1129
|
}
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
"x-amz-target": `${this.serviceTarget}.${operationSchema.name}`,
|
|
1120
|
-
});
|
|
1130
|
+
request.headers["content-type"] = `application/x-amz-json-${this.getJsonRpcVersion()}`;
|
|
1131
|
+
request.headers["x-amz-target"] = `${this.serviceTarget}.${operationSchema.name}`;
|
|
1121
1132
|
if (this.awsQueryCompatible) {
|
|
1122
1133
|
request.headers["x-amzn-query-mode"] = "true";
|
|
1123
1134
|
}
|
|
@@ -1141,9 +1152,10 @@ class AwsJsonRpcProtocol extends protocols.RpcProtocol {
|
|
|
1141
1152
|
const ErrorCtor = this.compositeErrorRegistry.getErrorCtor(errorSchema) ?? Error;
|
|
1142
1153
|
const exception = new ErrorCtor(message);
|
|
1143
1154
|
const output = {};
|
|
1155
|
+
const errorDeserializer = this.codec.createDeserializer();
|
|
1144
1156
|
for (const [name, member] of ns.structIterator()) {
|
|
1145
1157
|
if (dataObject[name] != null) {
|
|
1146
|
-
output[name] =
|
|
1158
|
+
output[name] = errorDeserializer.readObject(member, dataObject[name]);
|
|
1147
1159
|
}
|
|
1148
1160
|
}
|
|
1149
1161
|
if (this.awsQueryCompatible) {
|
|
@@ -1264,9 +1276,10 @@ class AwsRestJsonProtocol extends protocols.HttpBindingProtocol {
|
|
|
1264
1276
|
const exception = new ErrorCtor(message);
|
|
1265
1277
|
await this.deserializeHttpMessage(errorSchema, context, response, dataObject);
|
|
1266
1278
|
const output = {};
|
|
1279
|
+
const errorDeserializer = this.codec.createDeserializer();
|
|
1267
1280
|
for (const [name, member] of ns.structIterator()) {
|
|
1268
1281
|
const target = member.getMergedTraits().jsonName ?? name;
|
|
1269
|
-
output[name] =
|
|
1282
|
+
output[name] = errorDeserializer.readObject(member, dataObject[target]);
|
|
1270
1283
|
}
|
|
1271
1284
|
throw this.mixin.decorateServiceException(Object.assign(exception, errorMetadata, {
|
|
1272
1285
|
$fault: ns.getMergedTraits().error,
|
|
@@ -1544,7 +1557,8 @@ class QueryShapeSerializer extends SerdeContextConfig {
|
|
|
1544
1557
|
const memberSchema = ns.getValueSchema();
|
|
1545
1558
|
const flat = ns.getMergedTraits().xmlFlattened;
|
|
1546
1559
|
let i = 1;
|
|
1547
|
-
for (const
|
|
1560
|
+
for (const k in value) {
|
|
1561
|
+
const v = value[k];
|
|
1548
1562
|
if (v == null) {
|
|
1549
1563
|
continue;
|
|
1550
1564
|
}
|
|
@@ -1657,9 +1671,7 @@ class AwsQueryProtocol extends protocols.RpcProtocol {
|
|
|
1657
1671
|
if (!request.path.endsWith("/")) {
|
|
1658
1672
|
request.path += "/";
|
|
1659
1673
|
}
|
|
1660
|
-
|
|
1661
|
-
"content-type": `application/x-www-form-urlencoded`,
|
|
1662
|
-
});
|
|
1674
|
+
request.headers["content-type"] = "application/x-www-form-urlencoded";
|
|
1663
1675
|
if (schema.deref(operationSchema.input) === "unit" || !request.body) {
|
|
1664
1676
|
request.body = "";
|
|
1665
1677
|
}
|
|
@@ -1692,11 +1704,8 @@ class AwsQueryProtocol extends protocols.RpcProtocol {
|
|
|
1692
1704
|
if (bytes.byteLength > 0) {
|
|
1693
1705
|
Object.assign(dataObject, await deserializer.read(ns, bytes, awsQueryResultKey));
|
|
1694
1706
|
}
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
...dataObject,
|
|
1698
|
-
};
|
|
1699
|
-
return output;
|
|
1707
|
+
dataObject.$metadata = this.deserializeMetadata(response);
|
|
1708
|
+
return dataObject;
|
|
1700
1709
|
}
|
|
1701
1710
|
useNestedResult() {
|
|
1702
1711
|
return true;
|
|
@@ -2003,7 +2012,8 @@ class XmlShapeSerializer extends SerdeContextConfig {
|
|
|
2003
2012
|
entry.addChildNode(valueNode);
|
|
2004
2013
|
};
|
|
2005
2014
|
if (flat) {
|
|
2006
|
-
for (const
|
|
2015
|
+
for (const key in map) {
|
|
2016
|
+
const val = map[key];
|
|
2007
2017
|
if (sparse || val != null) {
|
|
2008
2018
|
const entry = xmlBuilder.XmlNode.of(mapTraits.xmlName ?? mapMember.getMemberName());
|
|
2009
2019
|
addKeyValue(entry, key, val);
|
|
@@ -2020,7 +2030,8 @@ class XmlShapeSerializer extends SerdeContextConfig {
|
|
|
2020
2030
|
}
|
|
2021
2031
|
container.addChildNode(mapNode);
|
|
2022
2032
|
}
|
|
2023
|
-
for (const
|
|
2033
|
+
for (const key in map) {
|
|
2034
|
+
const val = map[key];
|
|
2024
2035
|
if (sparse || val != null) {
|
|
2025
2036
|
const entry = xmlBuilder.XmlNode.of("entry");
|
|
2026
2037
|
addKeyValue(entry, key, val);
|
|
@@ -2143,7 +2154,6 @@ class AwsRestXmlProtocol extends protocols.HttpBindingProtocol {
|
|
|
2143
2154
|
this.codec = new XmlCodec(settings);
|
|
2144
2155
|
this.serializer = new protocols.HttpInterceptingShapeSerializer(this.codec.createSerializer(), settings);
|
|
2145
2156
|
this.deserializer = new protocols.HttpInterceptingShapeDeserializer(this.codec.createDeserializer(), settings);
|
|
2146
|
-
this.compositeErrorRegistry;
|
|
2147
2157
|
}
|
|
2148
2158
|
getPayloadCodec() {
|
|
2149
2159
|
return this.codec;
|
|
@@ -2196,10 +2206,11 @@ class AwsRestXmlProtocol extends protocols.HttpBindingProtocol {
|
|
|
2196
2206
|
const exception = new ErrorCtor(message);
|
|
2197
2207
|
await this.deserializeHttpMessage(errorSchema, context, response, dataObject);
|
|
2198
2208
|
const output = {};
|
|
2209
|
+
const errorDeserializer = this.codec.createDeserializer();
|
|
2199
2210
|
for (const [name, member] of ns.structIterator()) {
|
|
2200
2211
|
const target = member.getMergedTraits().xmlName ?? name;
|
|
2201
2212
|
const value = dataObject.Error?.[target] ?? dataObject[target];
|
|
2202
|
-
output[name] =
|
|
2213
|
+
output[name] = errorDeserializer.readSchema(member, value);
|
|
2203
2214
|
}
|
|
2204
2215
|
throw this.mixin.decorateServiceException(Object.assign(exception, errorMetadata, {
|
|
2205
2216
|
$fault: ns.getMergedTraits().error,
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var utilRetry = require('@smithy/util-retry');
|
|
4
|
+
|
|
3
5
|
const state = {
|
|
4
6
|
warningEmitted: false,
|
|
5
7
|
};
|
|
@@ -40,6 +42,7 @@ function setCredentialFeature(credentials, feature, value) {
|
|
|
40
42
|
return credentials;
|
|
41
43
|
}
|
|
42
44
|
|
|
45
|
+
utilRetry.Retry.v2026 ||= typeof process === "object" && process.env?.AWS_NEW_RETRIES_2026 === "true";
|
|
43
46
|
function setFeature(context, feature, value) {
|
|
44
47
|
if (!context.__aws_sdk_context) {
|
|
45
48
|
context.__aws_sdk_context = {
|
|
@@ -96,12 +96,11 @@ class ProtocolLib {
|
|
|
96
96
|
if (msg) {
|
|
97
97
|
error.message = msg;
|
|
98
98
|
}
|
|
99
|
-
error.Error
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
};
|
|
99
|
+
const errorObj = error.Error ?? {};
|
|
100
|
+
errorObj.Type = error.Error?.Type;
|
|
101
|
+
errorObj.Code = error.Error?.Code;
|
|
102
|
+
errorObj.Message = error.Error?.message ?? error.Error?.Message ?? msg;
|
|
103
|
+
error.Error = errorObj;
|
|
105
104
|
const reqId = error.$metadata.requestId;
|
|
106
105
|
if (reqId) {
|
|
107
106
|
error.RequestId = reqId;
|
|
@@ -114,14 +113,16 @@ class ProtocolLib {
|
|
|
114
113
|
const queryErrorHeader = response.headers?.["x-amzn-query-error"];
|
|
115
114
|
if (output !== undefined && queryErrorHeader != null) {
|
|
116
115
|
const [Code, Type] = queryErrorHeader.split(";");
|
|
117
|
-
const
|
|
116
|
+
const keys = Object.keys(output);
|
|
118
117
|
const Error = {
|
|
119
118
|
Code,
|
|
120
119
|
Type,
|
|
121
120
|
};
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
121
|
+
output.Code = Code;
|
|
122
|
+
output.Type = Type;
|
|
123
|
+
for (let i = 0; i < keys.length; i++) {
|
|
124
|
+
const k = keys[i];
|
|
125
|
+
Error[k === "message" ? "Message" : k] = output[k];
|
|
125
126
|
}
|
|
126
127
|
delete Error.__type;
|
|
127
128
|
output.Error = Error;
|
|
@@ -260,7 +261,10 @@ class UnionSerde {
|
|
|
260
261
|
constructor(from, to) {
|
|
261
262
|
this.from = from;
|
|
262
263
|
this.to = to;
|
|
263
|
-
|
|
264
|
+
const keys = Object.keys(this.from);
|
|
265
|
+
const set = new Set(keys);
|
|
266
|
+
set.delete("__type");
|
|
267
|
+
this.keys = set;
|
|
264
268
|
}
|
|
265
269
|
mark(key) {
|
|
266
270
|
this.keys.delete(key);
|
|
@@ -318,24 +322,24 @@ const parseJsonErrorBody = async (errorBody, context) => {
|
|
|
318
322
|
value.message = value.message ?? value.Message;
|
|
319
323
|
return value;
|
|
320
324
|
};
|
|
325
|
+
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
326
|
+
const sanitizeErrorCode = (rawValue) => {
|
|
327
|
+
let cleanValue = rawValue;
|
|
328
|
+
if (typeof cleanValue === "number") {
|
|
329
|
+
cleanValue = cleanValue.toString();
|
|
330
|
+
}
|
|
331
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
332
|
+
cleanValue = cleanValue.split(",")[0];
|
|
333
|
+
}
|
|
334
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
335
|
+
cleanValue = cleanValue.split(":")[0];
|
|
336
|
+
}
|
|
337
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
338
|
+
cleanValue = cleanValue.split("#")[1];
|
|
339
|
+
}
|
|
340
|
+
return cleanValue;
|
|
341
|
+
};
|
|
321
342
|
const loadRestJsonErrorCode = (output, data) => {
|
|
322
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
323
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
324
|
-
let cleanValue = rawValue;
|
|
325
|
-
if (typeof cleanValue === "number") {
|
|
326
|
-
cleanValue = cleanValue.toString();
|
|
327
|
-
}
|
|
328
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
329
|
-
cleanValue = cleanValue.split(",")[0];
|
|
330
|
-
}
|
|
331
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
332
|
-
cleanValue = cleanValue.split(":")[0];
|
|
333
|
-
}
|
|
334
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
335
|
-
cleanValue = cleanValue.split("#")[1];
|
|
336
|
-
}
|
|
337
|
-
return cleanValue;
|
|
338
|
-
};
|
|
339
343
|
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
340
344
|
if (headerKey !== undefined) {
|
|
341
345
|
return sanitizeErrorCode(output.headers[headerKey]);
|
|
@@ -397,7 +401,8 @@ class JsonShapeDeserializer extends SerdeContextConfig {
|
|
|
397
401
|
unionSerde.writeUnknown();
|
|
398
402
|
}
|
|
399
403
|
else if (typeof record.__type === "string") {
|
|
400
|
-
for (const
|
|
404
|
+
for (const k in record) {
|
|
405
|
+
const v = record[k];
|
|
401
406
|
const t = jsonName ? nameMap[k] ?? k : k;
|
|
402
407
|
if (!(t in out)) {
|
|
403
408
|
out[t] = v;
|
|
@@ -417,8 +422,8 @@ class JsonShapeDeserializer extends SerdeContextConfig {
|
|
|
417
422
|
if (ns.isMapSchema()) {
|
|
418
423
|
const mapMember = ns.getValueSchema();
|
|
419
424
|
const out = {};
|
|
420
|
-
for (const
|
|
421
|
-
out[_k] = this._read(mapMember,
|
|
425
|
+
for (const _k in value) {
|
|
426
|
+
out[_k] = this._read(mapMember, value[_k]);
|
|
422
427
|
}
|
|
423
428
|
return out;
|
|
424
429
|
}
|
|
@@ -475,7 +480,8 @@ class JsonShapeDeserializer extends SerdeContextConfig {
|
|
|
475
480
|
if (ns.isDocumentSchema()) {
|
|
476
481
|
if (isObject) {
|
|
477
482
|
const out = Array.isArray(value) ? [] : {};
|
|
478
|
-
for (const
|
|
483
|
+
for (const k in value) {
|
|
484
|
+
const v = value[k];
|
|
479
485
|
if (v instanceof serde.NumericValue) {
|
|
480
486
|
out[k] = v;
|
|
481
487
|
}
|
|
@@ -552,12 +558,6 @@ class JsonShapeSerializer extends SerdeContextConfig {
|
|
|
552
558
|
this.rootSchema = schema.NormalizedSchema.of(schema$1);
|
|
553
559
|
this.buffer = this._write(this.rootSchema, value);
|
|
554
560
|
}
|
|
555
|
-
writeDiscriminatedDocument(schema$1, value) {
|
|
556
|
-
this.write(schema$1, value);
|
|
557
|
-
if (typeof this.buffer === "object") {
|
|
558
|
-
this.buffer.__type = schema.NormalizedSchema.of(schema$1).getName(true);
|
|
559
|
-
}
|
|
560
|
-
}
|
|
561
561
|
flush() {
|
|
562
562
|
const { rootSchema, useReplacer } = this;
|
|
563
563
|
this.rootSchema = undefined;
|
|
@@ -571,6 +571,12 @@ class JsonShapeSerializer extends SerdeContextConfig {
|
|
|
571
571
|
}
|
|
572
572
|
return this.buffer;
|
|
573
573
|
}
|
|
574
|
+
writeDiscriminatedDocument(schema$1, value) {
|
|
575
|
+
this.write(schema$1, value);
|
|
576
|
+
if (typeof this.buffer === "object") {
|
|
577
|
+
this.buffer.__type = schema.NormalizedSchema.of(schema$1).getName(true);
|
|
578
|
+
}
|
|
579
|
+
}
|
|
574
580
|
_write(schema$1, value, container) {
|
|
575
581
|
const isObject = value !== null && typeof value === "object";
|
|
576
582
|
const ns = schema.NormalizedSchema.of(schema$1);
|
|
@@ -583,6 +589,7 @@ class JsonShapeSerializer extends SerdeContextConfig {
|
|
|
583
589
|
if (jsonName) {
|
|
584
590
|
nameMap = {};
|
|
585
591
|
}
|
|
592
|
+
let outCount = 0;
|
|
586
593
|
for (const [memberName, memberSchema] of ns.structIterator()) {
|
|
587
594
|
const serializableValue = this._write(memberSchema, record[memberName], ns);
|
|
588
595
|
if (serializableValue !== undefined) {
|
|
@@ -592,9 +599,10 @@ class JsonShapeSerializer extends SerdeContextConfig {
|
|
|
592
599
|
nameMap[memberName] = targetKey;
|
|
593
600
|
}
|
|
594
601
|
out[targetKey] = serializableValue;
|
|
602
|
+
outCount++;
|
|
595
603
|
}
|
|
596
604
|
}
|
|
597
|
-
if (ns.isUnionSchema() &&
|
|
605
|
+
if (ns.isUnionSchema() && outCount === 0) {
|
|
598
606
|
const { $unknown } = record;
|
|
599
607
|
if (Array.isArray($unknown)) {
|
|
600
608
|
const [k, v] = $unknown;
|
|
@@ -602,7 +610,8 @@ class JsonShapeSerializer extends SerdeContextConfig {
|
|
|
602
610
|
}
|
|
603
611
|
}
|
|
604
612
|
else if (typeof record.__type === "string") {
|
|
605
|
-
for (const
|
|
613
|
+
for (const k in record) {
|
|
614
|
+
const v = record[k];
|
|
606
615
|
const targetKey = jsonName ? nameMap[k] ?? k : k;
|
|
607
616
|
if (!(targetKey in out)) {
|
|
608
617
|
out[targetKey] = this._write(15, v);
|
|
@@ -626,7 +635,8 @@ class JsonShapeSerializer extends SerdeContextConfig {
|
|
|
626
635
|
const mapMember = ns.getValueSchema();
|
|
627
636
|
const out = {};
|
|
628
637
|
const sparse = !!ns.getMergedTraits().sparse;
|
|
629
|
-
for (const
|
|
638
|
+
for (const _k in value) {
|
|
639
|
+
const _v = value[_k];
|
|
630
640
|
if (sparse || _v != null) {
|
|
631
641
|
out[_k] = this._write(mapMember, _v);
|
|
632
642
|
}
|
|
@@ -691,7 +701,8 @@ class JsonShapeSerializer extends SerdeContextConfig {
|
|
|
691
701
|
if (ns.isDocumentSchema()) {
|
|
692
702
|
if (isObject) {
|
|
693
703
|
const out = Array.isArray(value) ? [] : {};
|
|
694
|
-
for (const
|
|
704
|
+
for (const k in value) {
|
|
705
|
+
const v = value[k];
|
|
695
706
|
if (v instanceof serde.NumericValue) {
|
|
696
707
|
this.useReplacer = true;
|
|
697
708
|
out[k] = v;
|
|
@@ -760,10 +771,8 @@ class AwsJsonRpcProtocol extends protocols.RpcProtocol {
|
|
|
760
771
|
if (!request.path.endsWith("/")) {
|
|
761
772
|
request.path += "/";
|
|
762
773
|
}
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
"x-amz-target": `${this.serviceTarget}.${operationSchema.name}`,
|
|
766
|
-
});
|
|
774
|
+
request.headers["content-type"] = `application/x-amz-json-${this.getJsonRpcVersion()}`;
|
|
775
|
+
request.headers["x-amz-target"] = `${this.serviceTarget}.${operationSchema.name}`;
|
|
767
776
|
if (this.awsQueryCompatible) {
|
|
768
777
|
request.headers["x-amzn-query-mode"] = "true";
|
|
769
778
|
}
|
|
@@ -787,9 +796,10 @@ class AwsJsonRpcProtocol extends protocols.RpcProtocol {
|
|
|
787
796
|
const ErrorCtor = this.compositeErrorRegistry.getErrorCtor(errorSchema) ?? Error;
|
|
788
797
|
const exception = new ErrorCtor(message);
|
|
789
798
|
const output = {};
|
|
799
|
+
const errorDeserializer = this.codec.createDeserializer();
|
|
790
800
|
for (const [name, member] of ns.structIterator()) {
|
|
791
801
|
if (dataObject[name] != null) {
|
|
792
|
-
output[name] =
|
|
802
|
+
output[name] = errorDeserializer.readObject(member, dataObject[name]);
|
|
793
803
|
}
|
|
794
804
|
}
|
|
795
805
|
if (this.awsQueryCompatible) {
|
|
@@ -910,9 +920,10 @@ class AwsRestJsonProtocol extends protocols.HttpBindingProtocol {
|
|
|
910
920
|
const exception = new ErrorCtor(message);
|
|
911
921
|
await this.deserializeHttpMessage(errorSchema, context, response, dataObject);
|
|
912
922
|
const output = {};
|
|
923
|
+
const errorDeserializer = this.codec.createDeserializer();
|
|
913
924
|
for (const [name, member] of ns.structIterator()) {
|
|
914
925
|
const target = member.getMergedTraits().jsonName ?? name;
|
|
915
|
-
output[name] =
|
|
926
|
+
output[name] = errorDeserializer.readObject(member, dataObject[target]);
|
|
916
927
|
}
|
|
917
928
|
throw this.mixin.decorateServiceException(Object.assign(exception, errorMetadata, {
|
|
918
929
|
$fault: ns.getMergedTraits().error,
|
|
@@ -1190,7 +1201,8 @@ class QueryShapeSerializer extends SerdeContextConfig {
|
|
|
1190
1201
|
const memberSchema = ns.getValueSchema();
|
|
1191
1202
|
const flat = ns.getMergedTraits().xmlFlattened;
|
|
1192
1203
|
let i = 1;
|
|
1193
|
-
for (const
|
|
1204
|
+
for (const k in value) {
|
|
1205
|
+
const v = value[k];
|
|
1194
1206
|
if (v == null) {
|
|
1195
1207
|
continue;
|
|
1196
1208
|
}
|
|
@@ -1303,9 +1315,7 @@ class AwsQueryProtocol extends protocols.RpcProtocol {
|
|
|
1303
1315
|
if (!request.path.endsWith("/")) {
|
|
1304
1316
|
request.path += "/";
|
|
1305
1317
|
}
|
|
1306
|
-
|
|
1307
|
-
"content-type": `application/x-www-form-urlencoded`,
|
|
1308
|
-
});
|
|
1318
|
+
request.headers["content-type"] = "application/x-www-form-urlencoded";
|
|
1309
1319
|
if (schema.deref(operationSchema.input) === "unit" || !request.body) {
|
|
1310
1320
|
request.body = "";
|
|
1311
1321
|
}
|
|
@@ -1338,11 +1348,8 @@ class AwsQueryProtocol extends protocols.RpcProtocol {
|
|
|
1338
1348
|
if (bytes.byteLength > 0) {
|
|
1339
1349
|
Object.assign(dataObject, await deserializer.read(ns, bytes, awsQueryResultKey));
|
|
1340
1350
|
}
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
...dataObject,
|
|
1344
|
-
};
|
|
1345
|
-
return output;
|
|
1351
|
+
dataObject.$metadata = this.deserializeMetadata(response);
|
|
1352
|
+
return dataObject;
|
|
1346
1353
|
}
|
|
1347
1354
|
useNestedResult() {
|
|
1348
1355
|
return true;
|
|
@@ -1649,7 +1656,8 @@ class XmlShapeSerializer extends SerdeContextConfig {
|
|
|
1649
1656
|
entry.addChildNode(valueNode);
|
|
1650
1657
|
};
|
|
1651
1658
|
if (flat) {
|
|
1652
|
-
for (const
|
|
1659
|
+
for (const key in map) {
|
|
1660
|
+
const val = map[key];
|
|
1653
1661
|
if (sparse || val != null) {
|
|
1654
1662
|
const entry = xmlBuilder.XmlNode.of(mapTraits.xmlName ?? mapMember.getMemberName());
|
|
1655
1663
|
addKeyValue(entry, key, val);
|
|
@@ -1666,7 +1674,8 @@ class XmlShapeSerializer extends SerdeContextConfig {
|
|
|
1666
1674
|
}
|
|
1667
1675
|
container.addChildNode(mapNode);
|
|
1668
1676
|
}
|
|
1669
|
-
for (const
|
|
1677
|
+
for (const key in map) {
|
|
1678
|
+
const val = map[key];
|
|
1670
1679
|
if (sparse || val != null) {
|
|
1671
1680
|
const entry = xmlBuilder.XmlNode.of("entry");
|
|
1672
1681
|
addKeyValue(entry, key, val);
|
|
@@ -1789,7 +1798,6 @@ class AwsRestXmlProtocol extends protocols.HttpBindingProtocol {
|
|
|
1789
1798
|
this.codec = new XmlCodec(settings);
|
|
1790
1799
|
this.serializer = new protocols.HttpInterceptingShapeSerializer(this.codec.createSerializer(), settings);
|
|
1791
1800
|
this.deserializer = new protocols.HttpInterceptingShapeDeserializer(this.codec.createDeserializer(), settings);
|
|
1792
|
-
this.compositeErrorRegistry;
|
|
1793
1801
|
}
|
|
1794
1802
|
getPayloadCodec() {
|
|
1795
1803
|
return this.codec;
|
|
@@ -1842,10 +1850,11 @@ class AwsRestXmlProtocol extends protocols.HttpBindingProtocol {
|
|
|
1842
1850
|
const exception = new ErrorCtor(message);
|
|
1843
1851
|
await this.deserializeHttpMessage(errorSchema, context, response, dataObject);
|
|
1844
1852
|
const output = {};
|
|
1853
|
+
const errorDeserializer = this.codec.createDeserializer();
|
|
1845
1854
|
for (const [name, member] of ns.structIterator()) {
|
|
1846
1855
|
const target = member.getMergedTraits().xmlName ?? name;
|
|
1847
1856
|
const value = dataObject.Error?.[target] ?? dataObject[target];
|
|
1848
|
-
output[name] =
|
|
1857
|
+
output[name] = errorDeserializer.readSchema(member, value);
|
|
1849
1858
|
}
|
|
1850
1859
|
throw this.mixin.decorateServiceException(Object.assign(exception, errorMetadata, {
|
|
1851
1860
|
$fault: ns.getMergedTraits().error,
|