@rio-cloud/cdk-v2-constructs 7.14.0-alpha.2 → 7.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +7 -7
- package/lib/contributions/team-transport-two/datadog-synthetics/datadog-synthetics-test-custom-resource/handler.cjs +2195 -1273
- package/lib/datadogv2/secret-locator-custom-resource/on-create.cjs +2363 -1441
- package/lib/datadogv2/service-catalog-custom-resource/on-create.cjs +2234 -1312
- package/lib/fargate/codedeploy-custom-resources/create-deployment-is-complete.cjs +2237 -1315
- package/lib/fargate/codedeploy-custom-resources/create-deployment-on-create.cjs +2237 -1315
- package/lib/fargate/codedeploy-custom-resources/run-monitoring-test-suite-runner.cjs +2242 -1319
- package/lib/fargate/datadog.js +3 -1
- package/node_modules/@aws-sdk/client-cloudformation/README.md +26 -46
- package/node_modules/@aws-sdk/client-cloudformation/node_modules/@smithy/util-retry/package.json +3 -3
- package/node_modules/@aws-sdk/client-cloudformation/package.json +39 -39
- package/node_modules/@aws-sdk/client-codedeploy/README.md +26 -46
- package/node_modules/@aws-sdk/client-codedeploy/node_modules/@smithy/util-retry/package.json +3 -3
- package/node_modules/@aws-sdk/client-codedeploy/package.json +39 -39
- package/node_modules/@aws-sdk/client-ecs/README.md +26 -46
- package/node_modules/@aws-sdk/client-ecs/dist-cjs/schemas/schemas_0.js +5 -4
- package/node_modules/@aws-sdk/client-ecs/dist-es/schemas/schemas_0.js +5 -4
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/CreateCapacityProviderCommand.d.ts +2 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DeleteCapacityProviderCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/DescribeCapacityProvidersCommand.d.ts +1 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/commands/UpdateCapacityProviderCommand.d.ts +2 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/models/models_0.d.ts +10 -0
- package/node_modules/@aws-sdk/client-ecs/dist-types/ts3.4/models/models_0.d.ts +2 -0
- package/node_modules/@aws-sdk/client-ecs/node_modules/@smithy/util-retry/package.json +3 -3
- package/node_modules/@aws-sdk/client-ecs/package.json +39 -39
- package/node_modules/@aws-sdk/client-organizations/README.md +26 -46
- package/node_modules/@aws-sdk/client-organizations/node_modules/@smithy/util-retry/package.json +3 -3
- package/node_modules/@aws-sdk/client-organizations/package.json +38 -38
- package/node_modules/@aws-sdk/client-secrets-manager/README.md +26 -46
- package/node_modules/@aws-sdk/client-secrets-manager/node_modules/@smithy/util-retry/package.json +3 -3
- package/node_modules/@aws-sdk/client-secrets-manager/package.json +39 -39
- package/node_modules/@aws-sdk/client-ssm/README.md +26 -46
- package/node_modules/@aws-sdk/client-ssm/node_modules/@smithy/util-retry/package.json +3 -3
- package/node_modules/@aws-sdk/client-ssm/package.json +39 -39
- package/node_modules/@aws-sdk/core/dist-cjs/index.js +58 -21
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +58 -21
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/ProtocolLib.js +24 -6
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.js +6 -5
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js +2 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJson1_0Protocol.js +2 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJson1_1Protocol.js +2 -1
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +6 -4
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +6 -4
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsEc2QueryProtocol.js +3 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsQueryProtocol.js +4 -2
- package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/AwsRestXmlProtocol.js +9 -3
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/ProtocolLib.d.ts +13 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.d.ts +3 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/index.d.ts +2 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_0Protocol.d.ts +3 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJson1_1Protocol.d.ts +3 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +3 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/AwsRestJsonProtocol.d.ts +3 -1
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/AwsEc2QueryProtocol.d.ts +7 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/AwsQueryProtocol.d.ts +3 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/query/QuerySerializerSettings.d.ts +3 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/AwsRestXmlProtocol.d.ts +2 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/ProtocolLib.d.ts +6 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.d.ts +3 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/index.d.ts +2 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_0Protocol.d.ts +3 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJson1_1Protocol.d.ts +3 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsJsonRpcProtocol.d.ts +3 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/AwsRestJsonProtocol.d.ts +8 -1
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsEc2QueryProtocol.d.ts +4 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/query/AwsQueryProtocol.d.ts +3 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/AwsRestXmlProtocol.d.ts +6 -1
- package/node_modules/@aws-sdk/core/package.json +14 -14
- package/node_modules/@aws-sdk/credential-provider-env/package.json +6 -6
- package/node_modules/@aws-sdk/credential-provider-http/package.json +11 -11
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +15 -15
- package/node_modules/@aws-sdk/credential-provider-login/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-node/package.json +13 -13
- package/node_modules/@aws-sdk/credential-provider-process/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +8 -8
- package/node_modules/@aws-sdk/middleware-host-header/package.json +5 -5
- package/node_modules/@aws-sdk/middleware-logger/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +5 -5
- package/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +9 -9
- package/node_modules/@aws-sdk/middleware-user-agent/dist-es/check-features.js +9 -9
- package/node_modules/@aws-sdk/middleware-user-agent/dist-types/check-features.d.ts +4 -2
- package/node_modules/@aws-sdk/middleware-user-agent/dist-types/ts3.4/check-features.d.ts +3 -3
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@smithy/util-retry/LICENSE +201 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@smithy/util-retry/README.md +78 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@smithy/util-retry/dist-cjs/index.js +278 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@smithy/util-retry/dist-es/AdaptiveRetryStrategy.js +27 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@smithy/util-retry/dist-es/ConfiguredRetryStrategy.js +19 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@smithy/util-retry/dist-es/DefaultRateLimiter.js +109 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@smithy/util-retry/dist-es/StandardRetryStrategy.js +67 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@smithy/util-retry/dist-es/config.js +7 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@smithy/util-retry/dist-es/constants.js +9 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@smithy/util-retry/dist-es/defaultRetryBackoffStrategy.js +14 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@smithy/util-retry/dist-es/defaultRetryToken.js +11 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@smithy/util-retry/dist-es/index.js +7 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@smithy/util-retry/dist-es/types.js +1 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@smithy/util-retry/dist-types/AdaptiveRetryStrategy.d.ts +33 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@smithy/util-retry/dist-types/ConfiguredRetryStrategy.d.ts +32 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@smithy/util-retry/dist-types/DefaultRateLimiter.d.ts +49 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@smithy/util-retry/dist-types/StandardRetryStrategy.d.ts +26 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@smithy/util-retry/dist-types/config.d.ts +20 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@smithy/util-retry/dist-types/constants.d.ts +59 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@smithy/util-retry/dist-types/defaultRetryBackoffStrategy.d.ts +5 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@smithy/util-retry/dist-types/defaultRetryToken.d.ts +9 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@smithy/util-retry/dist-types/index.d.ts +7 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@smithy/util-retry/dist-types/ts3.4/AdaptiveRetryStrategy.d.ts +33 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@smithy/util-retry/dist-types/ts3.4/ConfiguredRetryStrategy.d.ts +32 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@smithy/util-retry/dist-types/ts3.4/DefaultRateLimiter.d.ts +49 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@smithy/util-retry/dist-types/ts3.4/StandardRetryStrategy.d.ts +26 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@smithy/util-retry/dist-types/ts3.4/config.d.ts +20 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@smithy/util-retry/dist-types/ts3.4/constants.d.ts +59 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@smithy/util-retry/dist-types/ts3.4/defaultRetryBackoffStrategy.d.ts +5 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@smithy/util-retry/dist-types/ts3.4/defaultRetryToken.d.ts +9 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@smithy/util-retry/dist-types/ts3.4/index.d.ts +7 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@smithy/util-retry/dist-types/ts3.4/types.d.ts +19 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@smithy/util-retry/dist-types/types.d.ts +19 -0
- package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@smithy/util-retry/package.json +71 -0
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +9 -8
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/util-retry/package.json +3 -3
- package/node_modules/@aws-sdk/nested-clients/package.json +39 -37
- package/node_modules/@aws-sdk/region-config-resolver/package.json +6 -6
- package/node_modules/@aws-sdk/token-providers/package.json +8 -8
- package/node_modules/@aws-sdk/types/package.json +3 -3
- package/node_modules/@aws-sdk/util-endpoints/package.json +6 -6
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +4 -4
- package/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +75 -19
- package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getNodeModulesParentDirs.js +15 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getSanitizedDevTypeScriptVersion.js +14 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getTypeScriptUserAgentPair.js +53 -7
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/{getTypeScriptPackageJsonPaths.d.ts → getNodeModulesParentDirs.d.ts} +2 -2
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/getSanitizedDevTypeScriptVersion.d.ts +8 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/getNodeModulesParentDirs.d.ts +1 -0
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/getSanitizedDevTypeScriptVersion.d.ts +3 -0
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +7 -6
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js +21 -11
- package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.js +5 -1
- package/node_modules/@aws-sdk/xml-builder/dist-es/escape-attribute.js +8 -1
- package/node_modules/@aws-sdk/xml-builder/dist-es/escape-element.js +13 -10
- package/node_modules/@aws-sdk/xml-builder/dist-es/xml-parser.js +5 -1
- package/node_modules/@aws-sdk/xml-builder/package.json +4 -4
- package/node_modules/@smithy/abort-controller/package.json +2 -2
- package/node_modules/@smithy/config-resolver/dist-cjs/index.js +12 -0
- package/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js +5 -0
- package/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/NodeUseFipsEndpointConfigOptions.js +5 -0
- package/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/NodeUseDualstackEndpointConfigOptions.d.ts +6 -0
- package/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/NodeUseFipsEndpointConfigOptions.d.ts +6 -0
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/NodeUseDualstackEndpointConfigOptions.d.ts +6 -0
- package/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/NodeUseFipsEndpointConfigOptions.d.ts +6 -0
- package/node_modules/@smithy/config-resolver/package.json +5 -5
- package/node_modules/@smithy/core/dist-cjs/index.js +1 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +7 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +22 -0
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +1 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +11 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +42 -5
- package/node_modules/@smithy/core/dist-es/middleware-http-auth-scheme/getHttpAuthSchemePlugin.js +1 -2
- package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +7 -1
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/index.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/toEndpointV1.js +17 -0
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +10 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +1 -1
- package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaSerializationMiddleware.js +3 -2
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +31 -2
- package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/translateTraits.js +5 -1
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/submodules/endpoints/toEndpointV1.d.ts +6 -0
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts +11 -0
- package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/translateTraits.d.ts +6 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/toEndpointV1.d.ts +6 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts +11 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/translateTraits.d.ts +6 -0
- package/node_modules/@smithy/core/endpoints.d.ts +7 -0
- package/node_modules/@smithy/core/endpoints.js +6 -0
- package/node_modules/@smithy/core/package.json +16 -7
- package/node_modules/@smithy/credential-provider-imds/package.json +5 -5
- package/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +4 -1
- package/node_modules/@smithy/fetch-http-handler/dist-es/fetch-http-handler.js +4 -1
- 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/dist-cjs/index.js +17 -1
- package/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointFromInstructions.js +9 -0
- package/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/toEndpointV1.js +8 -1
- package/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/toEndpointV1.d.ts +1 -0
- package/node_modules/@smithy/middleware-endpoint/dist-types/resolveEndpointConfig.d.ts +2 -2
- package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/adaptors/toEndpointV1.d.ts +1 -0
- package/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/resolveEndpointConfig.d.ts +2 -2
- package/node_modules/@smithy/middleware-endpoint/package.json +8 -8
- package/node_modules/@smithy/middleware-retry/dist-cjs/index.js +9 -12
- package/node_modules/@smithy/middleware-retry/dist-es/configurations.js +9 -12
- package/node_modules/@smithy/middleware-retry/node_modules/@smithy/util-retry/package.json +3 -3
- package/node_modules/@smithy/middleware-retry/package.json +8 -8
- package/node_modules/@smithy/middleware-serde/dist-cjs/index.js +3 -2
- package/node_modules/@smithy/middleware-serde/dist-es/serializerMiddleware.js +3 -2
- package/node_modules/@smithy/middleware-serde/package.json +4 -3
- 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 +48 -38
- package/node_modules/@smithy/node-http-handler/dist-es/build-abort-error.js +4 -1
- package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +38 -31
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +1 -1
- package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +1 -1
- package/node_modules/@smithy/node-http-handler/dist-es/readable.mock.js +1 -1
- package/node_modules/@smithy/node-http-handler/dist-es/server.mock.js +6 -6
- package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/collector.js +1 -1
- package/node_modules/@smithy/node-http-handler/dist-es/stream-collector/readable.mock.js +1 -1
- package/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/build-abort-error.d.ts +4 -3
- package/node_modules/@smithy/node-http-handler/dist-types/get-transformed-headers.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +4 -4
- package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-pool.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/readable.mock.d.ts +2 -2
- package/node_modules/@smithy/node-http-handler/dist-types/server.mock.d.ts +3 -3
- package/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/set-request-timeout.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/set-socket-keep-alive.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/collector.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/stream-collector/readable.mock.d.ts +2 -2
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/build-abort-error.d.ts +4 -3
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/get-transformed-headers.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +4 -4
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-manager.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-pool.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/readable.mock.d.ts +2 -2
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/server.mock.d.ts +3 -3
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-connection-timeout.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-request-timeout.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-keep-alive.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/collector.d.ts +1 -1
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/readable.mock.d.ts +2 -2
- package/node_modules/@smithy/node-http-handler/dist-types/ts3.4/write-request-body.d.ts +2 -2
- package/node_modules/@smithy/node-http-handler/dist-types/write-request-body.d.ts +2 -2
- 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/package.json +2 -2
- package/node_modules/@smithy/shared-ini-file-loader/package.json +2 -2
- package/node_modules/@smithy/signature-v4/package.json +4 -4
- package/node_modules/@smithy/smithy-client/package.json +7 -7
- package/node_modules/@smithy/types/dist-types/http.d.ts +1 -0
- package/node_modules/@smithy/types/dist-types/ts3.4/http.d.ts +1 -0
- 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/package.json +3 -3
- package/node_modules/@smithy/util-middleware/package.json +2 -2
- package/node_modules/@smithy/util-stream/package.json +4 -4
- package/node_modules/@smithy/util-waiter/dist-cjs/index.js +1 -1
- package/node_modules/@smithy/util-waiter/dist-es/poller.js +1 -1
- package/node_modules/@smithy/util-waiter/package.json +3 -3
- package/node_modules/fast-xml-builder/CHANGELOG.md +16 -0
- package/node_modules/fast-xml-builder/README.md +1 -1
- package/node_modules/fast-xml-builder/lib/fxb.cjs +1 -0
- package/node_modules/fast-xml-builder/lib/fxb.d.cts +22 -9
- package/node_modules/fast-xml-builder/lib/fxb.min.js +2 -0
- package/node_modules/fast-xml-builder/lib/fxb.min.js.map +1 -0
- package/node_modules/fast-xml-builder/package.json +7 -5
- package/node_modules/fast-xml-builder/src/fxb.d.ts +27 -3
- package/node_modules/fast-xml-builder/src/fxb.js +265 -21
- package/node_modules/fast-xml-builder/src/orderedJs2Xml.js +165 -18
- package/node_modules/fast-xml-parser/CHANGELOG.md +40 -4
- package/node_modules/fast-xml-parser/README.md +8 -7
- package/node_modules/fast-xml-parser/lib/fxbuilder.min.js +1 -1
- package/node_modules/fast-xml-parser/lib/fxbuilder.min.js.map +1 -1
- package/node_modules/fast-xml-parser/lib/fxp.cjs +1 -1
- package/node_modules/fast-xml-parser/lib/fxp.d.cts +82 -20
- package/node_modules/fast-xml-parser/lib/fxp.min.js +1 -1
- package/node_modules/fast-xml-parser/lib/fxp.min.js.map +1 -1
- package/node_modules/fast-xml-parser/lib/fxparser.min.js +1 -1
- package/node_modules/fast-xml-parser/lib/fxparser.min.js.map +1 -1
- package/node_modules/fast-xml-parser/lib/fxvalidator.min.js.map +1 -1
- package/node_modules/fast-xml-parser/lib/pem.d.cts +148 -0
- package/node_modules/fast-xml-parser/package.json +4 -3
- package/node_modules/fast-xml-parser/src/fxp.d.ts +75 -19
- package/node_modules/fast-xml-parser/src/pem.d.ts +135 -0
- package/node_modules/fast-xml-parser/src/util.js +18 -0
- package/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js +37 -18
- package/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js +76 -5
- package/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +298 -116
- package/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js +2 -2
- package/node_modules/fast-xml-parser/src/xmlparser/node2json.js +65 -15
- package/node_modules/path-expression-matcher/LICENSE +21 -0
- package/node_modules/path-expression-matcher/README.md +720 -0
- package/node_modules/path-expression-matcher/lib/pem.cjs +1 -0
- package/node_modules/path-expression-matcher/lib/pem.d.cts +523 -0
- package/node_modules/path-expression-matcher/lib/pem.min.js +2 -0
- package/node_modules/path-expression-matcher/lib/pem.min.js.map +1 -0
- package/node_modules/path-expression-matcher/package.json +78 -0
- package/node_modules/path-expression-matcher/src/Expression.js +232 -0
- package/node_modules/path-expression-matcher/src/Matcher.js +498 -0
- package/node_modules/path-expression-matcher/src/index.d.ts +518 -0
- package/node_modules/path-expression-matcher/src/index.js +28 -0
- package/package.json +7 -7
- package/version.json +1 -1
- package/node_modules/@aws-sdk/util-user-agent-node/dist-es/getTypeScriptPackageJsonPaths.js +0 -17
- package/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/getTypeScriptPackageJsonPaths.d.ts +0 -3
- package/node_modules/fast-xml-builder/lib/builder.cjs +0 -1
- package/node_modules/fast-xml-builder/lib/builder.min.js +0 -2
- package/node_modules/fast-xml-builder/lib/builder.min.js.map +0 -1
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { Provider, RetryBackoffStrategy, RetryErrorInfo, RetryStrategyV2, StandardRetryToken } from "@smithy/types";
|
|
2
|
+
import { StandardRetryStrategy } from "./StandardRetryStrategy";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*
|
|
6
|
+
* This extension of the StandardRetryStrategy allows customizing the
|
|
7
|
+
* backoff computation.
|
|
8
|
+
*/
|
|
9
|
+
export declare class ConfiguredRetryStrategy extends StandardRetryStrategy implements RetryStrategyV2 {
|
|
10
|
+
private readonly computeNextBackoffDelay;
|
|
11
|
+
/**
|
|
12
|
+
* @param maxAttempts - the maximum number of retry attempts allowed.
|
|
13
|
+
* e.g., if set to 3, then 4 total requests are possible.
|
|
14
|
+
* @param computeNextBackoffDelay - a millisecond delay for each retry or a function that takes the retry attempt
|
|
15
|
+
* and returns the delay.
|
|
16
|
+
*
|
|
17
|
+
* @example exponential backoff.
|
|
18
|
+
* ```js
|
|
19
|
+
* new Client({
|
|
20
|
+
* retryStrategy: new ConfiguredRetryStrategy(3, (attempt) => attempt ** 2)
|
|
21
|
+
* });
|
|
22
|
+
* ```
|
|
23
|
+
* @example constant delay.
|
|
24
|
+
* ```js
|
|
25
|
+
* new Client({
|
|
26
|
+
* retryStrategy: new ConfiguredRetryStrategy(3, 2000)
|
|
27
|
+
* });
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
constructor(maxAttempts: number | Provider<number>, computeNextBackoffDelay?: number | RetryBackoffStrategy["computeNextBackoffDelay"]);
|
|
31
|
+
refreshRetryTokenForRetry(tokenToRenew: StandardRetryToken, errorInfo: RetryErrorInfo): Promise<StandardRetryToken>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { RateLimiter } from "./types";
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
export interface DefaultRateLimiterOptions {
|
|
6
|
+
beta?: number;
|
|
7
|
+
minCapacity?: number;
|
|
8
|
+
minFillRate?: number;
|
|
9
|
+
scaleConstant?: number;
|
|
10
|
+
smooth?: number;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* @public
|
|
14
|
+
*/
|
|
15
|
+
export declare class DefaultRateLimiter implements RateLimiter {
|
|
16
|
+
/**
|
|
17
|
+
* Only used in testing.
|
|
18
|
+
*/
|
|
19
|
+
private static setTimeoutFn;
|
|
20
|
+
private beta;
|
|
21
|
+
private minCapacity;
|
|
22
|
+
private minFillRate;
|
|
23
|
+
private scaleConstant;
|
|
24
|
+
private smooth;
|
|
25
|
+
private currentCapacity;
|
|
26
|
+
private enabled;
|
|
27
|
+
private lastMaxRate;
|
|
28
|
+
private measuredTxRate;
|
|
29
|
+
private requestCount;
|
|
30
|
+
private fillRate;
|
|
31
|
+
private lastThrottleTime;
|
|
32
|
+
private lastTimestamp;
|
|
33
|
+
private lastTxRateBucket;
|
|
34
|
+
private maxCapacity;
|
|
35
|
+
private timeWindow;
|
|
36
|
+
constructor(options?: DefaultRateLimiterOptions);
|
|
37
|
+
private getCurrentTimeInSeconds;
|
|
38
|
+
getSendToken(): Promise<void>;
|
|
39
|
+
private acquireTokenBucket;
|
|
40
|
+
private refillTokenBucket;
|
|
41
|
+
updateClientSendingRate(response: any): void;
|
|
42
|
+
private calculateTimeWindow;
|
|
43
|
+
private cubicThrottle;
|
|
44
|
+
private cubicSuccess;
|
|
45
|
+
private enableTokenBucket;
|
|
46
|
+
private updateTokenBucketRate;
|
|
47
|
+
private updateMeasuredRate;
|
|
48
|
+
private getPrecise;
|
|
49
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { Provider, RetryErrorInfo, RetryStrategyV2, StandardRetryToken } from "@smithy/types";
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
export declare class StandardRetryStrategy implements RetryStrategyV2 {
|
|
6
|
+
private readonly maxAttempts;
|
|
7
|
+
readonly mode: string;
|
|
8
|
+
private capacity;
|
|
9
|
+
private readonly retryBackoffStrategy;
|
|
10
|
+
private readonly maxAttemptsProvider;
|
|
11
|
+
constructor(maxAttempts: number);
|
|
12
|
+
constructor(maxAttemptsProvider: Provider<number>);
|
|
13
|
+
acquireInitialRetryToken(retryTokenScope: string): Promise<StandardRetryToken>;
|
|
14
|
+
refreshRetryTokenForRetry(token: StandardRetryToken, errorInfo: RetryErrorInfo): Promise<StandardRetryToken>;
|
|
15
|
+
recordSuccess(token: StandardRetryToken): void;
|
|
16
|
+
/**
|
|
17
|
+
* @returns the current available retry capacity.
|
|
18
|
+
*
|
|
19
|
+
* This number decreases when retries are executed and refills when requests or retries succeed.
|
|
20
|
+
*/
|
|
21
|
+
getCapacity(): number;
|
|
22
|
+
private getMaxAttempts;
|
|
23
|
+
private shouldRetry;
|
|
24
|
+
private getCapacityCost;
|
|
25
|
+
private isRetryableError;
|
|
26
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @public
|
|
3
|
+
*/
|
|
4
|
+
export declare enum RETRY_MODES {
|
|
5
|
+
STANDARD = "standard",
|
|
6
|
+
ADAPTIVE = "adaptive"
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* @public
|
|
10
|
+
*
|
|
11
|
+
* The default value for how many HTTP requests an SDK should make for a
|
|
12
|
+
* single SDK operation invocation before giving up
|
|
13
|
+
*/
|
|
14
|
+
export declare const DEFAULT_MAX_ATTEMPTS = 3;
|
|
15
|
+
/**
|
|
16
|
+
* @public
|
|
17
|
+
*
|
|
18
|
+
* The default retry algorithm to use.
|
|
19
|
+
*/
|
|
20
|
+
export declare const DEFAULT_RETRY_MODE = RETRY_MODES.STANDARD;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @public
|
|
3
|
+
*
|
|
4
|
+
* The base number of milliseconds to use in calculating a suitable cool-down
|
|
5
|
+
* time when a retryable error is encountered.
|
|
6
|
+
*/
|
|
7
|
+
export declare const DEFAULT_RETRY_DELAY_BASE = 100;
|
|
8
|
+
/**
|
|
9
|
+
* @public
|
|
10
|
+
*
|
|
11
|
+
* The maximum amount of time (in milliseconds) that will be used as a delay
|
|
12
|
+
* between retry attempts.
|
|
13
|
+
*/
|
|
14
|
+
export declare const MAXIMUM_RETRY_DELAY: number;
|
|
15
|
+
/**
|
|
16
|
+
* @public
|
|
17
|
+
*
|
|
18
|
+
* The retry delay base (in milliseconds) to use when a throttling error is
|
|
19
|
+
* encountered.
|
|
20
|
+
*/
|
|
21
|
+
export declare const THROTTLING_RETRY_DELAY_BASE = 500;
|
|
22
|
+
/**
|
|
23
|
+
* @public
|
|
24
|
+
*
|
|
25
|
+
* Initial number of retry tokens in Retry Quota
|
|
26
|
+
*/
|
|
27
|
+
export declare const INITIAL_RETRY_TOKENS = 500;
|
|
28
|
+
/**
|
|
29
|
+
* @public
|
|
30
|
+
*
|
|
31
|
+
* The total amount of retry tokens to be decremented from retry token balance.
|
|
32
|
+
*/
|
|
33
|
+
export declare const RETRY_COST = 5;
|
|
34
|
+
/**
|
|
35
|
+
* @public
|
|
36
|
+
*
|
|
37
|
+
* The total amount of retry tokens to be decremented from retry token balance
|
|
38
|
+
* when a throttling error is encountered.
|
|
39
|
+
*/
|
|
40
|
+
export declare const TIMEOUT_RETRY_COST = 10;
|
|
41
|
+
/**
|
|
42
|
+
* @public
|
|
43
|
+
*
|
|
44
|
+
* The total amount of retry token to be incremented from retry token balance
|
|
45
|
+
* if an SDK operation invocation succeeds without requiring a retry request.
|
|
46
|
+
*/
|
|
47
|
+
export declare const NO_RETRY_INCREMENT = 1;
|
|
48
|
+
/**
|
|
49
|
+
* @public
|
|
50
|
+
*
|
|
51
|
+
* Header name for SDK invocation ID
|
|
52
|
+
*/
|
|
53
|
+
export declare const INVOCATION_ID_HEADER = "amz-sdk-invocation-id";
|
|
54
|
+
/**
|
|
55
|
+
* @public
|
|
56
|
+
*
|
|
57
|
+
* Header name for request retry information.
|
|
58
|
+
*/
|
|
59
|
+
export declare const REQUEST_HEADER = "amz-sdk-request";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { StandardRetryToken } from "@smithy/types";
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
export declare const createDefaultRetryToken: ({ retryDelay, retryCount, retryCost, }: {
|
|
6
|
+
retryDelay: number;
|
|
7
|
+
retryCount: number;
|
|
8
|
+
retryCost?: number;
|
|
9
|
+
}) => StandardRetryToken;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Provider, RetryErrorInfo, RetryStrategyV2, RetryToken, StandardRetryToken } from "@smithy/types";
|
|
2
|
+
import { RateLimiter } from "./types";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*
|
|
6
|
+
* Strategy options to be passed to AdaptiveRetryStrategy
|
|
7
|
+
*/
|
|
8
|
+
export interface AdaptiveRetryStrategyOptions {
|
|
9
|
+
rateLimiter?: RateLimiter;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* @public
|
|
13
|
+
*
|
|
14
|
+
* The AdaptiveRetryStrategy is a retry strategy for executing against a very
|
|
15
|
+
* resource constrained set of resources. Care should be taken when using this
|
|
16
|
+
* retry strategy. By default, it uses a dynamic backoff delay based on load
|
|
17
|
+
* currently perceived against the downstream resource and performs circuit
|
|
18
|
+
* breaking to disable retries in the event of high downstream failures using
|
|
19
|
+
* the DefaultRateLimiter.
|
|
20
|
+
*
|
|
21
|
+
* @see {@link StandardRetryStrategy}
|
|
22
|
+
* @see {@link DefaultRateLimiter }
|
|
23
|
+
*/
|
|
24
|
+
export declare class AdaptiveRetryStrategy implements RetryStrategyV2 {
|
|
25
|
+
private readonly maxAttemptsProvider;
|
|
26
|
+
private rateLimiter;
|
|
27
|
+
private standardRetryStrategy;
|
|
28
|
+
readonly mode: string;
|
|
29
|
+
constructor(maxAttemptsProvider: Provider<number>, options?: AdaptiveRetryStrategyOptions);
|
|
30
|
+
acquireInitialRetryToken(retryTokenScope: string): Promise<RetryToken>;
|
|
31
|
+
refreshRetryTokenForRetry(tokenToRenew: StandardRetryToken, errorInfo: RetryErrorInfo): Promise<RetryToken>;
|
|
32
|
+
recordSuccess(token: StandardRetryToken): void;
|
|
33
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Provider, RetryBackoffStrategy, RetryErrorInfo, RetryStrategyV2, StandardRetryToken } from "@smithy/types";
|
|
2
|
+
import { StandardRetryStrategy } from "./StandardRetryStrategy";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*
|
|
6
|
+
* This extension of the StandardRetryStrategy allows customizing the
|
|
7
|
+
* backoff computation.
|
|
8
|
+
*/
|
|
9
|
+
export declare class ConfiguredRetryStrategy extends StandardRetryStrategy implements RetryStrategyV2 {
|
|
10
|
+
private readonly computeNextBackoffDelay;
|
|
11
|
+
/**
|
|
12
|
+
* @param maxAttempts - the maximum number of retry attempts allowed.
|
|
13
|
+
* e.g., if set to 3, then 4 total requests are possible.
|
|
14
|
+
* @param computeNextBackoffDelay - a millisecond delay for each retry or a function that takes the retry attempt
|
|
15
|
+
* and returns the delay.
|
|
16
|
+
*
|
|
17
|
+
* @example exponential backoff.
|
|
18
|
+
* ```js
|
|
19
|
+
* new Client({
|
|
20
|
+
* retryStrategy: new ConfiguredRetryStrategy(3, (attempt) => attempt ** 2)
|
|
21
|
+
* });
|
|
22
|
+
* ```
|
|
23
|
+
* @example constant delay.
|
|
24
|
+
* ```js
|
|
25
|
+
* new Client({
|
|
26
|
+
* retryStrategy: new ConfiguredRetryStrategy(3, 2000)
|
|
27
|
+
* });
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
constructor(maxAttempts: number | Provider<number>, computeNextBackoffDelay?: number | RetryBackoffStrategy["computeNextBackoffDelay"]);
|
|
31
|
+
refreshRetryTokenForRetry(tokenToRenew: StandardRetryToken, errorInfo: RetryErrorInfo): Promise<StandardRetryToken>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { RateLimiter } from "./types";
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
export interface DefaultRateLimiterOptions {
|
|
6
|
+
beta?: number;
|
|
7
|
+
minCapacity?: number;
|
|
8
|
+
minFillRate?: number;
|
|
9
|
+
scaleConstant?: number;
|
|
10
|
+
smooth?: number;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* @public
|
|
14
|
+
*/
|
|
15
|
+
export declare class DefaultRateLimiter implements RateLimiter {
|
|
16
|
+
/**
|
|
17
|
+
* Only used in testing.
|
|
18
|
+
*/
|
|
19
|
+
private static setTimeoutFn;
|
|
20
|
+
private beta;
|
|
21
|
+
private minCapacity;
|
|
22
|
+
private minFillRate;
|
|
23
|
+
private scaleConstant;
|
|
24
|
+
private smooth;
|
|
25
|
+
private currentCapacity;
|
|
26
|
+
private enabled;
|
|
27
|
+
private lastMaxRate;
|
|
28
|
+
private measuredTxRate;
|
|
29
|
+
private requestCount;
|
|
30
|
+
private fillRate;
|
|
31
|
+
private lastThrottleTime;
|
|
32
|
+
private lastTimestamp;
|
|
33
|
+
private lastTxRateBucket;
|
|
34
|
+
private maxCapacity;
|
|
35
|
+
private timeWindow;
|
|
36
|
+
constructor(options?: DefaultRateLimiterOptions);
|
|
37
|
+
private getCurrentTimeInSeconds;
|
|
38
|
+
getSendToken(): Promise<void>;
|
|
39
|
+
private acquireTokenBucket;
|
|
40
|
+
private refillTokenBucket;
|
|
41
|
+
updateClientSendingRate(response: any): void;
|
|
42
|
+
private calculateTimeWindow;
|
|
43
|
+
private cubicThrottle;
|
|
44
|
+
private cubicSuccess;
|
|
45
|
+
private enableTokenBucket;
|
|
46
|
+
private updateTokenBucketRate;
|
|
47
|
+
private updateMeasuredRate;
|
|
48
|
+
private getPrecise;
|
|
49
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Provider, RetryErrorInfo, RetryStrategyV2, StandardRetryToken } from "@smithy/types";
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
export declare class StandardRetryStrategy implements RetryStrategyV2 {
|
|
6
|
+
private readonly maxAttempts;
|
|
7
|
+
readonly mode: string;
|
|
8
|
+
private capacity;
|
|
9
|
+
private readonly retryBackoffStrategy;
|
|
10
|
+
private readonly maxAttemptsProvider;
|
|
11
|
+
constructor(maxAttempts: number);
|
|
12
|
+
constructor(maxAttemptsProvider: Provider<number>);
|
|
13
|
+
acquireInitialRetryToken(retryTokenScope: string): Promise<StandardRetryToken>;
|
|
14
|
+
refreshRetryTokenForRetry(token: StandardRetryToken, errorInfo: RetryErrorInfo): Promise<StandardRetryToken>;
|
|
15
|
+
recordSuccess(token: StandardRetryToken): void;
|
|
16
|
+
/**
|
|
17
|
+
* @returns the current available retry capacity.
|
|
18
|
+
*
|
|
19
|
+
* This number decreases when retries are executed and refills when requests or retries succeed.
|
|
20
|
+
*/
|
|
21
|
+
getCapacity(): number;
|
|
22
|
+
private getMaxAttempts;
|
|
23
|
+
private shouldRetry;
|
|
24
|
+
private getCapacityCost;
|
|
25
|
+
private isRetryableError;
|
|
26
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @public
|
|
3
|
+
*/
|
|
4
|
+
export declare enum RETRY_MODES {
|
|
5
|
+
STANDARD = "standard",
|
|
6
|
+
ADAPTIVE = "adaptive"
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* @public
|
|
10
|
+
*
|
|
11
|
+
* The default value for how many HTTP requests an SDK should make for a
|
|
12
|
+
* single SDK operation invocation before giving up
|
|
13
|
+
*/
|
|
14
|
+
export declare const DEFAULT_MAX_ATTEMPTS = 3;
|
|
15
|
+
/**
|
|
16
|
+
* @public
|
|
17
|
+
*
|
|
18
|
+
* The default retry algorithm to use.
|
|
19
|
+
*/
|
|
20
|
+
export declare const DEFAULT_RETRY_MODE = RETRY_MODES.STANDARD;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @public
|
|
3
|
+
*
|
|
4
|
+
* The base number of milliseconds to use in calculating a suitable cool-down
|
|
5
|
+
* time when a retryable error is encountered.
|
|
6
|
+
*/
|
|
7
|
+
export declare const DEFAULT_RETRY_DELAY_BASE = 100;
|
|
8
|
+
/**
|
|
9
|
+
* @public
|
|
10
|
+
*
|
|
11
|
+
* The maximum amount of time (in milliseconds) that will be used as a delay
|
|
12
|
+
* between retry attempts.
|
|
13
|
+
*/
|
|
14
|
+
export declare const MAXIMUM_RETRY_DELAY: number;
|
|
15
|
+
/**
|
|
16
|
+
* @public
|
|
17
|
+
*
|
|
18
|
+
* The retry delay base (in milliseconds) to use when a throttling error is
|
|
19
|
+
* encountered.
|
|
20
|
+
*/
|
|
21
|
+
export declare const THROTTLING_RETRY_DELAY_BASE = 500;
|
|
22
|
+
/**
|
|
23
|
+
* @public
|
|
24
|
+
*
|
|
25
|
+
* Initial number of retry tokens in Retry Quota
|
|
26
|
+
*/
|
|
27
|
+
export declare const INITIAL_RETRY_TOKENS = 500;
|
|
28
|
+
/**
|
|
29
|
+
* @public
|
|
30
|
+
*
|
|
31
|
+
* The total amount of retry tokens to be decremented from retry token balance.
|
|
32
|
+
*/
|
|
33
|
+
export declare const RETRY_COST = 5;
|
|
34
|
+
/**
|
|
35
|
+
* @public
|
|
36
|
+
*
|
|
37
|
+
* The total amount of retry tokens to be decremented from retry token balance
|
|
38
|
+
* when a throttling error is encountered.
|
|
39
|
+
*/
|
|
40
|
+
export declare const TIMEOUT_RETRY_COST = 10;
|
|
41
|
+
/**
|
|
42
|
+
* @public
|
|
43
|
+
*
|
|
44
|
+
* The total amount of retry token to be incremented from retry token balance
|
|
45
|
+
* if an SDK operation invocation succeeds without requiring a retry request.
|
|
46
|
+
*/
|
|
47
|
+
export declare const NO_RETRY_INCREMENT = 1;
|
|
48
|
+
/**
|
|
49
|
+
* @public
|
|
50
|
+
*
|
|
51
|
+
* Header name for SDK invocation ID
|
|
52
|
+
*/
|
|
53
|
+
export declare const INVOCATION_ID_HEADER = "amz-sdk-invocation-id";
|
|
54
|
+
/**
|
|
55
|
+
* @public
|
|
56
|
+
*
|
|
57
|
+
* Header name for request retry information.
|
|
58
|
+
*/
|
|
59
|
+
export declare const REQUEST_HEADER = "amz-sdk-request";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @internal
|
|
3
|
+
*/
|
|
4
|
+
export interface RateLimiter {
|
|
5
|
+
/**
|
|
6
|
+
* If there is sufficient capacity (tokens) available, it immediately returns.
|
|
7
|
+
* If there is not sufficient capacity, it will either sleep a certain amount
|
|
8
|
+
* of time until the rate limiter can retrieve a token from its token bucket
|
|
9
|
+
* or raise an exception indicating there is insufficient capacity.
|
|
10
|
+
*/
|
|
11
|
+
getSendToken: () => Promise<void>;
|
|
12
|
+
/**
|
|
13
|
+
* Updates the client sending rate based on response.
|
|
14
|
+
* If the response was successful, the capacity and fill rate are increased.
|
|
15
|
+
* If the response was a throttling response, the capacity and fill rate are
|
|
16
|
+
* decreased. Transient errors do not affect the rate limiter.
|
|
17
|
+
*/
|
|
18
|
+
updateClientSendingRate: (response: any) => void;
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @internal
|
|
3
|
+
*/
|
|
4
|
+
export interface RateLimiter {
|
|
5
|
+
/**
|
|
6
|
+
* If there is sufficient capacity (tokens) available, it immediately returns.
|
|
7
|
+
* If there is not sufficient capacity, it will either sleep a certain amount
|
|
8
|
+
* of time until the rate limiter can retrieve a token from its token bucket
|
|
9
|
+
* or raise an exception indicating there is insufficient capacity.
|
|
10
|
+
*/
|
|
11
|
+
getSendToken: () => Promise<void>;
|
|
12
|
+
/**
|
|
13
|
+
* Updates the client sending rate based on response.
|
|
14
|
+
* If the response was successful, the capacity and fill rate are increased.
|
|
15
|
+
* If the response was a throttling response, the capacity and fill rate are
|
|
16
|
+
* decreased. Transient errors do not affect the rate limiter.
|
|
17
|
+
*/
|
|
18
|
+
updateClientSendingRate: (response: any) => void;
|
|
19
|
+
}
|
package/node_modules/@aws-sdk/middleware-user-agent/node_modules/@smithy/util-retry/package.json
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@smithy/util-retry",
|
|
3
|
+
"version": "4.2.12",
|
|
4
|
+
"description": "Shared retry utilities to be used in middleware packages.",
|
|
5
|
+
"main": "./dist-cjs/index.js",
|
|
6
|
+
"module": "./dist-es/index.js",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
|
|
9
|
+
"build:cjs": "node ../../scripts/inline util-retry",
|
|
10
|
+
"build:es": "yarn g:tsc -p tsconfig.es.json",
|
|
11
|
+
"build:types": "yarn g:tsc -p tsconfig.types.json",
|
|
12
|
+
"build:types:downlevel": "premove dist-types/ts3.4 && downlevel-dts dist-types dist-types/ts3.4",
|
|
13
|
+
"stage-release": "premove .release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz",
|
|
14
|
+
"clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
|
|
15
|
+
"lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"",
|
|
16
|
+
"format": "prettier --config ../../prettier.config.js --ignore-path ../../.prettierignore --write \"**/*.{ts,md,json}\"",
|
|
17
|
+
"extract:docs": "api-extractor run --local",
|
|
18
|
+
"test": "yarn g:vitest run",
|
|
19
|
+
"test:watch": "yarn g:vitest watch",
|
|
20
|
+
"test:integration": "yarn g:vitest run -c vitest.config.integ.mts",
|
|
21
|
+
"test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
|
|
22
|
+
},
|
|
23
|
+
"keywords": [
|
|
24
|
+
"aws",
|
|
25
|
+
"retry"
|
|
26
|
+
],
|
|
27
|
+
"author": {
|
|
28
|
+
"name": "AWS SDK for JavaScript Team",
|
|
29
|
+
"url": "https://aws.amazon.com/javascript/"
|
|
30
|
+
},
|
|
31
|
+
"license": "Apache-2.0",
|
|
32
|
+
"sideEffects": false,
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@smithy/service-error-classification": "^4.2.12",
|
|
35
|
+
"@smithy/types": "^4.13.1",
|
|
36
|
+
"tslib": "^2.6.2"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"@types/node": "^18.11.9",
|
|
40
|
+
"concurrently": "7.0.0",
|
|
41
|
+
"downlevel-dts": "0.10.1",
|
|
42
|
+
"premove": "4.0.0",
|
|
43
|
+
"typedoc": "0.23.23"
|
|
44
|
+
},
|
|
45
|
+
"types": "./dist-types/index.d.ts",
|
|
46
|
+
"engines": {
|
|
47
|
+
"node": ">=18.0.0"
|
|
48
|
+
},
|
|
49
|
+
"typesVersions": {
|
|
50
|
+
"<4.5": {
|
|
51
|
+
"types/*": [
|
|
52
|
+
"types/ts3.4/*"
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"files": [
|
|
57
|
+
"dist-*/**"
|
|
58
|
+
],
|
|
59
|
+
"homepage": "https://github.com/smithy-lang/smithy-typescript/tree/master/packages/util-retry",
|
|
60
|
+
"repository": {
|
|
61
|
+
"type": "git",
|
|
62
|
+
"url": "https://github.com/smithy-lang/smithy-typescript.git",
|
|
63
|
+
"directory": "packages/util-retry"
|
|
64
|
+
},
|
|
65
|
+
"typedoc": {
|
|
66
|
+
"entryPoint": "src/index.ts"
|
|
67
|
+
},
|
|
68
|
+
"publishConfig": {
|
|
69
|
+
"directory": ".release/package"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/middleware-user-agent",
|
|
3
|
-
"version": "3.972.
|
|
3
|
+
"version": "3.972.25",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline middleware-user-agent",
|
|
@@ -25,12 +25,13 @@
|
|
|
25
25
|
},
|
|
26
26
|
"license": "Apache-2.0",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@aws-sdk/core": "^3.973.
|
|
29
|
-
"@aws-sdk/types": "^3.973.
|
|
30
|
-
"@aws-sdk/util-endpoints": "^3.996.
|
|
31
|
-
"@smithy/core": "^3.23.
|
|
32
|
-
"@smithy/protocol-http": "^5.3.
|
|
33
|
-
"@smithy/types": "^4.13.
|
|
28
|
+
"@aws-sdk/core": "^3.973.24",
|
|
29
|
+
"@aws-sdk/types": "^3.973.6",
|
|
30
|
+
"@aws-sdk/util-endpoints": "^3.996.5",
|
|
31
|
+
"@smithy/core": "^3.23.12",
|
|
32
|
+
"@smithy/protocol-http": "^5.3.12",
|
|
33
|
+
"@smithy/types": "^4.13.1",
|
|
34
|
+
"@smithy/util-retry": "^4.2.12",
|
|
34
35
|
"tslib": "^2.6.2"
|
|
35
36
|
},
|
|
36
37
|
"devDependencies": {
|
|
@@ -44,7 +45,7 @@
|
|
|
44
45
|
"node": ">=20.0.0"
|
|
45
46
|
},
|
|
46
47
|
"typesVersions": {
|
|
47
|
-
"<4.
|
|
48
|
+
"<4.5": {
|
|
48
49
|
"dist-types/*": [
|
|
49
50
|
"dist-types/ts3.4/*"
|
|
50
51
|
]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smithy/util-retry",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.12",
|
|
4
4
|
"description": "Shared retry utilities to be used in middleware packages.",
|
|
5
5
|
"main": "./dist-cjs/index.js",
|
|
6
6
|
"module": "./dist-es/index.js",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"license": "Apache-2.0",
|
|
32
32
|
"sideEffects": false,
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@smithy/service-error-classification": "^4.2.
|
|
35
|
-
"@smithy/types": "^4.13.
|
|
34
|
+
"@smithy/service-error-classification": "^4.2.12",
|
|
35
|
+
"@smithy/types": "^4.13.1",
|
|
36
36
|
"tslib": "^2.6.2"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|