From c8e8f28d0714c8165162e1411b5f740ba729a93a Mon Sep 17 00:00:00 2001 From: George Fu Date: Mon, 9 Sep 2024 17:40:15 -0400 Subject: [PATCH] feat(endpoints): codegen sync for request creation performance improvements (#6449) * feat(middleware-endpoints): update codegen version for request creation performance improvements * chore: update smithy hash * chore: codegen sync * chore: update yarn lock * test: update client maximal config * test(lib-dynamodb): throw error for cacheMiddleware=true * fix(endpoints): avoid mutation of cached endpoint --- clients/client-accessanalyzer/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-account/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-acm-pca/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-acm/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-amp/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-amplify/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-amplifybackend/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-amplifyuibuilder/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-api-gateway/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- .../package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-apigatewayv2/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-app-mesh/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-appconfig/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-appconfigdata/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-appfabric/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-appflow/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-appintegrations/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../client-application-insights/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../client-application-signals/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-apprunner/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-appstream/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-appsync/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-apptest/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-arc-zonal-shift/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-artifact/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-athena/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-auditmanager/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../client-auto-scaling-plans/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-auto-scaling/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-b2bi/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-backup-gateway/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-backup/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-batch/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-bcm-data-exports/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../client-bedrock-agent-runtime/package.json | 48 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-bedrock-agent/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-bedrock-runtime/package.json | 50 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-bedrock/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-billingconductor/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-braket/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-budgets/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-chatbot/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../client-chime-sdk-identity/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../client-chime-sdk-meetings/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../client-chime-sdk-messaging/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-chime-sdk-voice/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-chime/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-cleanrooms/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-cleanroomsml/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-cloud9/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-cloudcontrol/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-clouddirectory/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-cloudformation/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- .../package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-cloudfront/package.json | 46 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-cloudhsm-v2/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-cloudhsm/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../client-cloudsearch-domain/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-cloudsearch/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-cloudtrail-data/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-cloudtrail/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-cloudwatch-events/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-cloudwatch-logs/package.json | 48 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-cloudwatch/package.json | 46 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-codeartifact/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-codebuild/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-codecatalyst/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-codecommit/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-codeconnections/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-codedeploy/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-codeguru-reviewer/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-codeguru-security/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-codeguruprofiler/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-codepipeline/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../client-codestar-connections/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-cognito-identity/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-cognito-sync/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-comprehend/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-comprehendmedical/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-compute-optimizer/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-config-service/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../client-connect-contact-lens/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-connect/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-connectcampaigns/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-connectcases/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../client-connectparticipant/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-controlcatalog/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-controltower/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-cost-explorer/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../client-cost-optimization-hub/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-customer-profiles/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-data-pipeline/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-databrew/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-dataexchange/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-datasync/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-datazone/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-dax/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-deadline/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-detective/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-device-farm/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-devops-guru/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-direct-connect/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-directory-service/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-dlm/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-docdb-elastic/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-docdb/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-drs/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-dynamodb-streams/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-dynamodb/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-ebs/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- .../client-ec2-instance-connect/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-ec2/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-ecr-public/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-ecr/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-ecs/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-efs/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-eks-auth/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-eks/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-elastic-beanstalk/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-elastic-inference/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- .../package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- .../client-elastic-transcoder/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-elasticache/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- .../client-elasticsearch-service/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-emr-containers/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-emr-serverless/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-emr/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-entityresolution/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-eventbridge/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-evidently/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-finspace-data/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-finspace/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-firehose/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-fis/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-fms/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-forecast/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-forecastquery/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-frauddetector/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-freetier/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-fsx/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-gamelift/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-glacier/package.json | 46 +- .../src/endpoint/endpointResolver.ts | 17 +- .../client-global-accelerator/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-glue/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-grafana/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-greengrass/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-greengrassv2/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-groundstation/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-guardduty/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-health/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-healthlake/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-iam/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-identitystore/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-imagebuilder/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-inspector-scan/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-inspector/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-inspector2/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-internetmonitor/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../client-iot-1click-projects/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-iot-data-plane/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-iot-events-data/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-iot-events/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../client-iot-jobs-data-plane/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-iot-wireless/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-iot/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-iotanalytics/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-iotdeviceadvisor/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-iotfleethub/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-iotfleetwise/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../client-iotsecuretunneling/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-iotsitewise/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-iotthingsgraph/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-iottwinmaker/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-ivs-realtime/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-ivs/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-ivschat/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-kafka/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-kafkaconnect/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-kendra-ranking/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-kendra/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-keyspaces/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../client-kinesis-analytics-v2/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-kinesis-analytics/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- .../client-kinesis-video-media/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- .../package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-kinesis-video/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-kinesis/package.json | 50 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-kms/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-lakeformation/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-lambda/package.json | 52 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-launch-wizard/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-lex-models-v2/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- .../client-lex-runtime-service/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-lex-runtime-v2/package.json | 50 +- .../src/endpoint/endpointResolver.ts | 17 +- .../package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-license-manager/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-lightsail/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-location/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-lookoutequipment/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-lookoutmetrics/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-lookoutvision/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-m2/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-machine-learning/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-macie2/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-mailmanager/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-managedblockchain/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../client-marketplace-agreement/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../client-marketplace-catalog/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../client-marketplace-metering/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-mediaconnect/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-mediaconvert/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-medialive/package.json | 46 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-mediapackage-vod/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-mediapackage/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-mediapackagev2/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-mediastore-data/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-mediastore/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-mediatailor/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-medical-imaging/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-memorydb/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-mgn/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-migration-hub/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../client-migrationhub-config/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../client-migrationhubstrategy/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-mq/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-mturk/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-mwaa/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-neptune-graph/package.json | 46 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-neptune/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-neptunedata/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-network-firewall/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-networkmanager/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-networkmonitor/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-nimble/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-oam/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-omics/package.json | 46 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-opensearch/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../client-opensearchserverless/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-opsworks/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-opsworkscm/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-organizations/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-osis/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-outposts/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-panorama/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../client-payment-cryptography/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-pca-connector-ad/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../client-pca-connector-scep/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-pcs/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../client-personalize-events/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../client-personalize-runtime/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-personalize/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-pi/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-pinpoint-email/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../client-pinpoint-sms-voice-v2/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../client-pinpoint-sms-voice/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-pinpoint/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-pipes/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-polly/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-pricing/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-privatenetworks/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-proton/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-qapps/package.json | 42 +- .../src/commands/CreateLibraryItemCommand.ts | 1 + .../src/commands/GetLibraryItemCommand.ts | 1 + .../src/commands/ListLibraryItemsCommand.ts | 3 + .../src/commands/ListQAppsCommand.ts | 6 + .../src/commands/UpdateLibraryItemCommand.ts | 1 + .../src/endpoint/endpointResolver.ts | 17 +- clients/client-qbusiness/package.json | 48 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-qconnect/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-qldb-session/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-qldb/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-quicksight/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-ram/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-rbin/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-rds-data/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-rds/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-redshift-data/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../client-redshift-serverless/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-redshift/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-rekognition/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- .../client-rekognitionstreaming/package.json | 48 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-repostspace/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-resiliencehub/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../client-resource-explorer-2/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-resource-groups/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-robomaker/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-rolesanywhere/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-route-53-domains/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-route-53/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- .../package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- .../package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-route53profiles/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-route53resolver/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-rum/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-s3-control/package.json | 50 +- .../src/endpoint/endpointResolver.ts | 28 +- clients/client-s3/package.json | 58 +- .../src/endpoint/endpointResolver.ts | 32 +- clients/client-s3outposts/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../client-sagemaker-a2i-runtime/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-sagemaker-edge/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../client-sagemaker-geospatial/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-sagemaker-metrics/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-sagemaker-runtime/package.json | 50 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-sagemaker/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-savingsplans/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-scheduler/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-schemas/package.json | 46 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-secrets-manager/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-securityhub/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-securitylake/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-service-catalog/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-service-quotas/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-servicediscovery/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-ses/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-sesv2/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-sfn/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-shield/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-signer/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-simspaceweaver/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-sms/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-snowball/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-sns/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-sqs/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-ssm-contacts/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-ssm-incidents/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-ssm-quicksetup/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-ssm-sap/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-ssm/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-sso-admin/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-sso-oidc/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-sso/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-storage-gateway/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-sts/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-supplychain/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-support-app/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-support/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-swf/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-synthetics/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-taxsettings/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-textract/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../client-timestream-influxdb/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-timestream-query/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-timestream-write/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-tnb/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- .../client-transcribe-streaming/package.json | 48 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-transcribe/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-transfer/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-translate/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-trustedadvisor/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../client-verifiedpermissions/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-voice-id/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-vpc-lattice/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-waf-regional/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-waf/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-wafv2/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-wellarchitected/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-wisdom/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-workdocs/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-worklink/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-workmail/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../client-workmailmessageflow/package.json | 44 +- .../src/endpoint/endpointResolver.ts | 17 +- .../package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-workspaces-web/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-workspaces/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- clients/client-xray/package.json | 42 +- .../src/endpoint/endpointResolver.ts | 17 +- .../DocumentBareBonesClientGenerator.java | 7 + lib/lib-dynamodb/package.json | 6 +- .../src/DynamoDBDocumentClient.ts | 5 + .../src/test/lib-dynamodb.e2e.spec.ts | 12 + lib/lib-storage/package.json | 8 +- packages/body-checksum-browser/package.json | 4 +- packages/body-checksum-node/package.json | 4 +- packages/cloudfront-signer/package.json | 2 +- packages/core/package.json | 16 +- .../package.json | 4 +- packages/credential-provider-env/package.json | 4 +- .../credential-provider-http/package.json | 14 +- packages/credential-provider-ini/package.json | 8 +- .../credential-provider-node/package.json | 8 +- .../credential-provider-process/package.json | 6 +- packages/credential-provider-sso/package.json | 6 +- .../package.json | 4 +- packages/credential-providers/package.json | 6 +- packages/ec2-metadata-service/package.json | 10 +- .../eventstream-handler-node/package.json | 4 +- packages/middleware-api-key/package.json | 6 +- .../middleware-bucket-endpoint/package.json | 6 +- .../package.json | 6 +- packages/middleware-eventstream/package.json | 4 +- .../middleware-expect-continue/package.json | 4 +- .../package.json | 6 +- packages/middleware-host-header/package.json | 4 +- .../package.json | 2 +- packages/middleware-logger/package.json | 2 +- .../package.json | 4 +- .../middleware-sdk-api-gateway/package.json | 4 +- packages/middleware-sdk-ec2/package.json | 10 +- packages/middleware-sdk-glacier/package.json | 4 +- .../package.json | 4 +- packages/middleware-sdk-rds/package.json | 8 +- packages/middleware-sdk-route53/package.json | 2 +- .../middleware-sdk-s3-control/package.json | 8 +- packages/middleware-sdk-s3/package.json | 16 +- .../src/bucket-endpoint-middleware.ts | 5 +- packages/middleware-sdk-sqs/package.json | 4 +- packages/middleware-sdk-sqs/src/queue-url.ts | 5 +- packages/middleware-sdk-sts/package.json | 2 +- .../package.json | 8 +- packages/middleware-signing/package.json | 10 +- packages/middleware-ssec/package.json | 2 +- packages/middleware-token/package.json | 8 +- packages/middleware-user-agent/package.json | 4 +- packages/middleware-websocket/package.json | 12 +- packages/polly-request-presigner/package.json | 6 +- packages/rds-signer/package.json | 14 +- packages/region-config-resolver/package.json | 6 +- packages/s3-presigned-post/package.json | 6 +- packages/s3-request-presigner/package.json | 10 +- packages/sha256-tree-hash/package.json | 2 +- packages/signature-v4-crt/package.json | 10 +- .../signature-v4-multi-region/package.json | 6 +- packages/smithy-client/package.json | 2 +- packages/token-providers/package.json | 6 +- packages/types/package.json | 2 +- packages/util-create-request/package.json | 8 +- packages/util-endpoints/package.json | 4 +- packages/util-format-url/package.json | 4 +- packages/util-user-agent-browser/package.json | 2 +- packages/util-user-agent-node/package.json | 4 +- packages/xhr-http-handler/package.json | 8 +- packages/xml-builder/package.json | 2 +- private/aws-client-api-test/package.json | 26 +- .../initializeWithMaximalConfiguration.ts | 2 + private/aws-client-retry-test/package.json | 6 +- private/aws-echo-service/package.json | 38 +- private/aws-middleware-test/package.json | 6 +- private/aws-protocoltests-ec2/package.json | 40 +- .../aws-protocoltests-ec2/src/endpoints.ts | 2 +- .../aws-protocoltests-json-10/package.json | 40 +- .../src/endpoints.ts | 2 +- .../package.json | 38 +- .../src/endpoints.ts | 2 +- private/aws-protocoltests-json/package.json | 40 +- .../aws-protocoltests-json/src/endpoints.ts | 2 +- private/aws-protocoltests-query/package.json | 40 +- .../aws-protocoltests-query/src/endpoints.ts | 2 +- .../package.json | 38 +- .../src/endpoints.ts | 2 +- .../package.json | 38 +- .../src/endpoints.ts | 2 +- .../aws-protocoltests-restjson/package.json | 52 +- .../src/endpoints.ts | 2 +- .../aws-protocoltests-restxml/package.json | 44 +- .../src/endpoints.ts | 2 +- .../package.json | 38 +- private/aws-restjson-server/package.json | 30 +- .../package.json | 30 +- private/aws-util-test/package.json | 4 +- .../.gitignore | 9 - .../CHANGELOG.md | 489 ---- .../LICENSE | 201 -- .../README.md | 2427 ----------------- .../api-extractor.json | 4 - .../package.json | 94 - .../src/Weather.ts | 264 -- .../src/WeatherClient.ts | 332 --- .../auth/httpAuthExtensionConfiguration.ts | 101 - .../src/auth/httpAuthSchemeProvider.ts | 252 -- .../src/commands/OnlyCustomAuthCommand.ts | 71 - .../commands/OnlyCustomAuthOptionalCommand.ts | 71 - .../OnlyHttpApiKeyAndBearerAuthCommand.ts | 71 - ...yHttpApiKeyAndBearerAuthReversedCommand.ts | 71 - .../src/commands/OnlyHttpApiKeyAuthCommand.ts | 71 - .../OnlyHttpApiKeyAuthOptionalCommand.ts | 71 - .../src/commands/OnlyHttpBearerAuthCommand.ts | 71 - .../OnlyHttpBearerAuthOptionalCommand.ts | 71 - .../src/commands/OnlySigv4AuthCommand.ts | 71 - .../commands/OnlySigv4AuthOptionalCommand.ts | 71 - .../src/commands/SameAsServiceCommand.ts | 74 - .../src/commands/index.ts | 12 - .../src/extensionConfiguration.ts | 14 - .../src/index.ts | 10 - .../src/models/WeatherServiceException.ts | 24 - .../src/models/index.ts | 2 - .../src/models/models_0.ts | 7 - .../src/runtimeConfig.browser.ts | 38 - .../src/runtimeConfig.native.ts | 17 - .../src/runtimeConfig.shared.ts | 52 - .../src/runtimeConfig.ts | 47 - .../src/runtimeExtensions.ts | 47 - .../tsconfig.cjs.json | 6 - .../tsconfig.es.json | 8 - .../tsconfig.json | 13 - .../tsconfig.types.json | 10 - private/weather-legacy-auth/package.json | 38 +- private/weather/package.json | 40 +- scripts/generate-clients/config.js | 2 +- yarn.lock | 585 ++-- 910 files changed, 13727 insertions(+), 16244 deletions(-) delete mode 100644 private/weather-experimental-identity-and-auth/.gitignore delete mode 100644 private/weather-experimental-identity-and-auth/CHANGELOG.md delete mode 100644 private/weather-experimental-identity-and-auth/LICENSE delete mode 100644 private/weather-experimental-identity-and-auth/README.md delete mode 100644 private/weather-experimental-identity-and-auth/api-extractor.json delete mode 100644 private/weather-experimental-identity-and-auth/package.json delete mode 100644 private/weather-experimental-identity-and-auth/src/Weather.ts delete mode 100644 private/weather-experimental-identity-and-auth/src/WeatherClient.ts delete mode 100644 private/weather-experimental-identity-and-auth/src/auth/httpAuthExtensionConfiguration.ts delete mode 100644 private/weather-experimental-identity-and-auth/src/auth/httpAuthSchemeProvider.ts delete mode 100644 private/weather-experimental-identity-and-auth/src/commands/OnlyCustomAuthCommand.ts delete mode 100644 private/weather-experimental-identity-and-auth/src/commands/OnlyCustomAuthOptionalCommand.ts delete mode 100644 private/weather-experimental-identity-and-auth/src/commands/OnlyHttpApiKeyAndBearerAuthCommand.ts delete mode 100644 private/weather-experimental-identity-and-auth/src/commands/OnlyHttpApiKeyAndBearerAuthReversedCommand.ts delete mode 100644 private/weather-experimental-identity-and-auth/src/commands/OnlyHttpApiKeyAuthCommand.ts delete mode 100644 private/weather-experimental-identity-and-auth/src/commands/OnlyHttpApiKeyAuthOptionalCommand.ts delete mode 100644 private/weather-experimental-identity-and-auth/src/commands/OnlyHttpBearerAuthCommand.ts delete mode 100644 private/weather-experimental-identity-and-auth/src/commands/OnlyHttpBearerAuthOptionalCommand.ts delete mode 100644 private/weather-experimental-identity-and-auth/src/commands/OnlySigv4AuthCommand.ts delete mode 100644 private/weather-experimental-identity-and-auth/src/commands/OnlySigv4AuthOptionalCommand.ts delete mode 100644 private/weather-experimental-identity-and-auth/src/commands/SameAsServiceCommand.ts delete mode 100644 private/weather-experimental-identity-and-auth/src/commands/index.ts delete mode 100644 private/weather-experimental-identity-and-auth/src/extensionConfiguration.ts delete mode 100644 private/weather-experimental-identity-and-auth/src/index.ts delete mode 100644 private/weather-experimental-identity-and-auth/src/models/WeatherServiceException.ts delete mode 100644 private/weather-experimental-identity-and-auth/src/models/index.ts delete mode 100644 private/weather-experimental-identity-and-auth/src/models/models_0.ts delete mode 100644 private/weather-experimental-identity-and-auth/src/runtimeConfig.browser.ts delete mode 100644 private/weather-experimental-identity-and-auth/src/runtimeConfig.native.ts delete mode 100644 private/weather-experimental-identity-and-auth/src/runtimeConfig.shared.ts delete mode 100644 private/weather-experimental-identity-and-auth/src/runtimeConfig.ts delete mode 100644 private/weather-experimental-identity-and-auth/src/runtimeExtensions.ts delete mode 100644 private/weather-experimental-identity-and-auth/tsconfig.cjs.json delete mode 100644 private/weather-experimental-identity-and-auth/tsconfig.es.json delete mode 100644 private/weather-experimental-identity-and-auth/tsconfig.json delete mode 100644 private/weather-experimental-identity-and-auth/tsconfig.types.json diff --git a/clients/client-accessanalyzer/package.json b/clients/client-accessanalyzer/package.json index 1a1799447a33..f89ae76d26eb 100644 --- a/clients/client-accessanalyzer/package.json +++ b/clients/client-accessanalyzer/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-accessanalyzer/src/endpoint/endpointResolver.ts b/clients/client-accessanalyzer/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-accessanalyzer/src/endpoint/endpointResolver.ts +++ b/clients/client-accessanalyzer/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-account/package.json b/clients/client-account/package.json index b16c32384b09..780035ac59e8 100644 --- a/clients/client-account/package.json +++ b/clients/client-account/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-account/src/endpoint/endpointResolver.ts b/clients/client-account/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-account/src/endpoint/endpointResolver.ts +++ b/clients/client-account/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-acm-pca/package.json b/clients/client-acm-pca/package.json index 6802b59a1d25..478c987b3d65 100644 --- a/clients/client-acm-pca/package.json +++ b/clients/client-acm-pca/package.json @@ -33,32 +33,32 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", + "@smithy/util-waiter": "^3.1.3", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/clients/client-acm-pca/src/endpoint/endpointResolver.ts b/clients/client-acm-pca/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-acm-pca/src/endpoint/endpointResolver.ts +++ b/clients/client-acm-pca/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-acm/package.json b/clients/client-acm/package.json index 13c09600f41e..ec17dc4b139b 100644 --- a/clients/client-acm/package.json +++ b/clients/client-acm/package.json @@ -33,32 +33,32 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", + "@smithy/util-waiter": "^3.1.3", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/clients/client-acm/src/endpoint/endpointResolver.ts b/clients/client-acm/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-acm/src/endpoint/endpointResolver.ts +++ b/clients/client-acm/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-amp/package.json b/clients/client-amp/package.json index f224f3b09d8a..fba200a86592 100644 --- a/clients/client-amp/package.json +++ b/clients/client-amp/package.json @@ -33,32 +33,32 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", + "@smithy/util-waiter": "^3.1.3", "tslib": "^2.6.2", "uuid": "^9.0.1" }, diff --git a/clients/client-amp/src/endpoint/endpointResolver.ts b/clients/client-amp/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-amp/src/endpoint/endpointResolver.ts +++ b/clients/client-amp/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-amplify/package.json b/clients/client-amplify/package.json index 9492798107a3..60adc917e8a0 100644 --- a/clients/client-amplify/package.json +++ b/clients/client-amplify/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-amplify/src/endpoint/endpointResolver.ts b/clients/client-amplify/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-amplify/src/endpoint/endpointResolver.ts +++ b/clients/client-amplify/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-amplifybackend/package.json b/clients/client-amplifybackend/package.json index 95e7b5cedf69..3461e4dd5375 100644 --- a/clients/client-amplifybackend/package.json +++ b/clients/client-amplifybackend/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-amplifybackend/src/endpoint/endpointResolver.ts b/clients/client-amplifybackend/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-amplifybackend/src/endpoint/endpointResolver.ts +++ b/clients/client-amplifybackend/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-amplifyuibuilder/package.json b/clients/client-amplifyuibuilder/package.json index 3853f0d3ec97..33f288ea0bab 100644 --- a/clients/client-amplifyuibuilder/package.json +++ b/clients/client-amplifyuibuilder/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-amplifyuibuilder/src/endpoint/endpointResolver.ts b/clients/client-amplifyuibuilder/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-amplifyuibuilder/src/endpoint/endpointResolver.ts +++ b/clients/client-amplifyuibuilder/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-api-gateway/package.json b/clients/client-api-gateway/package.json index 87ebfcd6d8eb..0eb68400f50b 100644 --- a/clients/client-api-gateway/package.json +++ b/clients/client-api-gateway/package.json @@ -34,31 +34,31 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-stream": "^3.1.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", + "@smithy/util-stream": "^3.1.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-api-gateway/src/endpoint/endpointResolver.ts b/clients/client-api-gateway/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-api-gateway/src/endpoint/endpointResolver.ts +++ b/clients/client-api-gateway/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-apigatewaymanagementapi/package.json b/clients/client-apigatewaymanagementapi/package.json index f50c7f7d539b..fc5e1a824d42 100644 --- a/clients/client-apigatewaymanagementapi/package.json +++ b/clients/client-apigatewaymanagementapi/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-apigatewaymanagementapi/src/endpoint/endpointResolver.ts b/clients/client-apigatewaymanagementapi/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-apigatewaymanagementapi/src/endpoint/endpointResolver.ts +++ b/clients/client-apigatewaymanagementapi/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-apigatewayv2/package.json b/clients/client-apigatewayv2/package.json index 04175e63c205..978ed828f838 100644 --- a/clients/client-apigatewayv2/package.json +++ b/clients/client-apigatewayv2/package.json @@ -33,31 +33,31 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-stream": "^3.1.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", + "@smithy/util-stream": "^3.1.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-apigatewayv2/src/endpoint/endpointResolver.ts b/clients/client-apigatewayv2/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-apigatewayv2/src/endpoint/endpointResolver.ts +++ b/clients/client-apigatewayv2/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-app-mesh/package.json b/clients/client-app-mesh/package.json index 85c3aa5bf1e6..b20ea660292d 100644 --- a/clients/client-app-mesh/package.json +++ b/clients/client-app-mesh/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-app-mesh/src/endpoint/endpointResolver.ts b/clients/client-app-mesh/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-app-mesh/src/endpoint/endpointResolver.ts +++ b/clients/client-app-mesh/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-appconfig/package.json b/clients/client-appconfig/package.json index dd614948c715..c7f0cabe0527 100644 --- a/clients/client-appconfig/package.json +++ b/clients/client-appconfig/package.json @@ -33,31 +33,31 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-stream": "^3.1.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", + "@smithy/util-stream": "^3.1.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-appconfig/src/endpoint/endpointResolver.ts b/clients/client-appconfig/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-appconfig/src/endpoint/endpointResolver.ts +++ b/clients/client-appconfig/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-appconfigdata/package.json b/clients/client-appconfigdata/package.json index 6079e5f67db2..8d20eb543f0c 100644 --- a/clients/client-appconfigdata/package.json +++ b/clients/client-appconfigdata/package.json @@ -33,31 +33,31 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-stream": "^3.1.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", + "@smithy/util-stream": "^3.1.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-appconfigdata/src/endpoint/endpointResolver.ts b/clients/client-appconfigdata/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-appconfigdata/src/endpoint/endpointResolver.ts +++ b/clients/client-appconfigdata/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-appfabric/package.json b/clients/client-appfabric/package.json index 02ebf8213412..b3afbd8fd6b8 100644 --- a/clients/client-appfabric/package.json +++ b/clients/client-appfabric/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-appfabric/src/endpoint/endpointResolver.ts b/clients/client-appfabric/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-appfabric/src/endpoint/endpointResolver.ts +++ b/clients/client-appfabric/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-appflow/package.json b/clients/client-appflow/package.json index 0aea4d668acd..4d053d26c4b3 100644 --- a/clients/client-appflow/package.json +++ b/clients/client-appflow/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-appflow/src/endpoint/endpointResolver.ts b/clients/client-appflow/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-appflow/src/endpoint/endpointResolver.ts +++ b/clients/client-appflow/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-appintegrations/package.json b/clients/client-appintegrations/package.json index b8448fb63adf..8e62c21f3b28 100644 --- a/clients/client-appintegrations/package.json +++ b/clients/client-appintegrations/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-appintegrations/src/endpoint/endpointResolver.ts b/clients/client-appintegrations/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-appintegrations/src/endpoint/endpointResolver.ts +++ b/clients/client-appintegrations/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-application-auto-scaling/package.json b/clients/client-application-auto-scaling/package.json index 97aaefe494a8..094422a2242a 100644 --- a/clients/client-application-auto-scaling/package.json +++ b/clients/client-application-auto-scaling/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-application-auto-scaling/src/endpoint/endpointResolver.ts b/clients/client-application-auto-scaling/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-application-auto-scaling/src/endpoint/endpointResolver.ts +++ b/clients/client-application-auto-scaling/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-application-discovery-service/package.json b/clients/client-application-discovery-service/package.json index 766ef410c74a..636c56ce82ae 100644 --- a/clients/client-application-discovery-service/package.json +++ b/clients/client-application-discovery-service/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-application-discovery-service/src/endpoint/endpointResolver.ts b/clients/client-application-discovery-service/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-application-discovery-service/src/endpoint/endpointResolver.ts +++ b/clients/client-application-discovery-service/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-application-insights/package.json b/clients/client-application-insights/package.json index 99f7f9a0bde0..d5fee5f3d18a 100644 --- a/clients/client-application-insights/package.json +++ b/clients/client-application-insights/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-application-insights/src/endpoint/endpointResolver.ts b/clients/client-application-insights/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-application-insights/src/endpoint/endpointResolver.ts +++ b/clients/client-application-insights/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-application-signals/package.json b/clients/client-application-signals/package.json index 9601f68ae850..4120a04e4cae 100644 --- a/clients/client-application-signals/package.json +++ b/clients/client-application-signals/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-application-signals/src/endpoint/endpointResolver.ts b/clients/client-application-signals/src/endpoint/endpointResolver.ts index 26fe4c3775a6..b08a72482ca0 100644 --- a/clients/client-application-signals/src/endpoint/endpointResolver.ts +++ b/clients/client-application-signals/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-applicationcostprofiler/package.json b/clients/client-applicationcostprofiler/package.json index ea0c494c246f..367ae86522a6 100644 --- a/clients/client-applicationcostprofiler/package.json +++ b/clients/client-applicationcostprofiler/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-applicationcostprofiler/src/endpoint/endpointResolver.ts b/clients/client-applicationcostprofiler/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-applicationcostprofiler/src/endpoint/endpointResolver.ts +++ b/clients/client-applicationcostprofiler/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-apprunner/package.json b/clients/client-apprunner/package.json index 220e32bd83bf..2a6a7af4b20c 100644 --- a/clients/client-apprunner/package.json +++ b/clients/client-apprunner/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-apprunner/src/endpoint/endpointResolver.ts b/clients/client-apprunner/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-apprunner/src/endpoint/endpointResolver.ts +++ b/clients/client-apprunner/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-appstream/package.json b/clients/client-appstream/package.json index f9248510d0c8..0a9c5bf6496b 100644 --- a/clients/client-appstream/package.json +++ b/clients/client-appstream/package.json @@ -33,32 +33,32 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", + "@smithy/util-waiter": "^3.1.3", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/clients/client-appstream/src/endpoint/endpointResolver.ts b/clients/client-appstream/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-appstream/src/endpoint/endpointResolver.ts +++ b/clients/client-appstream/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-appsync/package.json b/clients/client-appsync/package.json index 1bd1e4f1babe..81b09b051053 100644 --- a/clients/client-appsync/package.json +++ b/clients/client-appsync/package.json @@ -33,31 +33,31 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-stream": "^3.1.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", + "@smithy/util-stream": "^3.1.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-appsync/src/endpoint/endpointResolver.ts b/clients/client-appsync/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-appsync/src/endpoint/endpointResolver.ts +++ b/clients/client-appsync/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-apptest/package.json b/clients/client-apptest/package.json index 937f5dc6bb5a..0f1608282e5a 100644 --- a/clients/client-apptest/package.json +++ b/clients/client-apptest/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-apptest/src/endpoint/endpointResolver.ts b/clients/client-apptest/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-apptest/src/endpoint/endpointResolver.ts +++ b/clients/client-apptest/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-arc-zonal-shift/package.json b/clients/client-arc-zonal-shift/package.json index 1683a1945187..5b1e59d2392d 100644 --- a/clients/client-arc-zonal-shift/package.json +++ b/clients/client-arc-zonal-shift/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-arc-zonal-shift/src/endpoint/endpointResolver.ts b/clients/client-arc-zonal-shift/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-arc-zonal-shift/src/endpoint/endpointResolver.ts +++ b/clients/client-arc-zonal-shift/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-artifact/package.json b/clients/client-artifact/package.json index 5962dd7b855a..23e9ddc61188 100644 --- a/clients/client-artifact/package.json +++ b/clients/client-artifact/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-artifact/src/endpoint/endpointResolver.ts b/clients/client-artifact/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-artifact/src/endpoint/endpointResolver.ts +++ b/clients/client-artifact/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-athena/package.json b/clients/client-athena/package.json index 01def4507f3b..921ba1bb1c8b 100644 --- a/clients/client-athena/package.json +++ b/clients/client-athena/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-athena/src/endpoint/endpointResolver.ts b/clients/client-athena/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-athena/src/endpoint/endpointResolver.ts +++ b/clients/client-athena/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-auditmanager/package.json b/clients/client-auditmanager/package.json index ef88b2f312fa..44e288bc5358 100644 --- a/clients/client-auditmanager/package.json +++ b/clients/client-auditmanager/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-auditmanager/src/endpoint/endpointResolver.ts b/clients/client-auditmanager/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-auditmanager/src/endpoint/endpointResolver.ts +++ b/clients/client-auditmanager/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-auto-scaling-plans/package.json b/clients/client-auto-scaling-plans/package.json index c11d9c658d9a..2ece73bc3580 100644 --- a/clients/client-auto-scaling-plans/package.json +++ b/clients/client-auto-scaling-plans/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-auto-scaling-plans/src/endpoint/endpointResolver.ts b/clients/client-auto-scaling-plans/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-auto-scaling-plans/src/endpoint/endpointResolver.ts +++ b/clients/client-auto-scaling-plans/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-auto-scaling/package.json b/clients/client-auto-scaling/package.json index c389f32dd26a..0566d04044a5 100644 --- a/clients/client-auto-scaling/package.json +++ b/clients/client-auto-scaling/package.json @@ -33,32 +33,32 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", + "@smithy/util-waiter": "^3.1.3", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/clients/client-auto-scaling/src/endpoint/endpointResolver.ts b/clients/client-auto-scaling/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-auto-scaling/src/endpoint/endpointResolver.ts +++ b/clients/client-auto-scaling/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-b2bi/package.json b/clients/client-b2bi/package.json index 7a2a6536094d..1fe7d78efbdc 100644 --- a/clients/client-b2bi/package.json +++ b/clients/client-b2bi/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-b2bi/src/endpoint/endpointResolver.ts b/clients/client-b2bi/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-b2bi/src/endpoint/endpointResolver.ts +++ b/clients/client-b2bi/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-backup-gateway/package.json b/clients/client-backup-gateway/package.json index d8f1a90175c1..9dd173b8f7a5 100644 --- a/clients/client-backup-gateway/package.json +++ b/clients/client-backup-gateway/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-backup-gateway/src/endpoint/endpointResolver.ts b/clients/client-backup-gateway/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-backup-gateway/src/endpoint/endpointResolver.ts +++ b/clients/client-backup-gateway/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-backup/package.json b/clients/client-backup/package.json index 7613bfd49e20..8058d7c8ffc6 100644 --- a/clients/client-backup/package.json +++ b/clients/client-backup/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-backup/src/endpoint/endpointResolver.ts b/clients/client-backup/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-backup/src/endpoint/endpointResolver.ts +++ b/clients/client-backup/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-batch/package.json b/clients/client-batch/package.json index 9fb2cffc356b..a2825083a629 100644 --- a/clients/client-batch/package.json +++ b/clients/client-batch/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-batch/src/endpoint/endpointResolver.ts b/clients/client-batch/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-batch/src/endpoint/endpointResolver.ts +++ b/clients/client-batch/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-bcm-data-exports/package.json b/clients/client-bcm-data-exports/package.json index 645396371906..7952bdf0ec35 100644 --- a/clients/client-bcm-data-exports/package.json +++ b/clients/client-bcm-data-exports/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-bcm-data-exports/src/endpoint/endpointResolver.ts b/clients/client-bcm-data-exports/src/endpoint/endpointResolver.ts index 26fe4c3775a6..b08a72482ca0 100644 --- a/clients/client-bcm-data-exports/src/endpoint/endpointResolver.ts +++ b/clients/client-bcm-data-exports/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-bedrock-agent-runtime/package.json b/clients/client-bedrock-agent-runtime/package.json index 2e8f2835228b..d4c9e7585885 100644 --- a/clients/client-bedrock-agent-runtime/package.json +++ b/clients/client-bedrock-agent-runtime/package.json @@ -33,33 +33,33 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/eventstream-serde-browser": "^3.0.6", - "@smithy/eventstream-serde-config-resolver": "^3.0.3", - "@smithy/eventstream-serde-node": "^3.0.5", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/eventstream-serde-browser": "^3.0.7", + "@smithy/eventstream-serde-config-resolver": "^3.0.4", + "@smithy/eventstream-serde-node": "^3.0.6", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-bedrock-agent-runtime/src/endpoint/endpointResolver.ts b/clients/client-bedrock-agent-runtime/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-bedrock-agent-runtime/src/endpoint/endpointResolver.ts +++ b/clients/client-bedrock-agent-runtime/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-bedrock-agent/package.json b/clients/client-bedrock-agent/package.json index 881bfb216507..791116d3e84b 100644 --- a/clients/client-bedrock-agent/package.json +++ b/clients/client-bedrock-agent/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-bedrock-agent/src/endpoint/endpointResolver.ts b/clients/client-bedrock-agent/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-bedrock-agent/src/endpoint/endpointResolver.ts +++ b/clients/client-bedrock-agent/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-bedrock-runtime/package.json b/clients/client-bedrock-runtime/package.json index ee8deb9d3446..fab417f17cac 100644 --- a/clients/client-bedrock-runtime/package.json +++ b/clients/client-bedrock-runtime/package.json @@ -33,34 +33,34 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/eventstream-serde-browser": "^3.0.6", - "@smithy/eventstream-serde-config-resolver": "^3.0.3", - "@smithy/eventstream-serde-node": "^3.0.5", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/eventstream-serde-browser": "^3.0.7", + "@smithy/eventstream-serde-config-resolver": "^3.0.4", + "@smithy/eventstream-serde-node": "^3.0.6", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-stream": "^3.1.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", + "@smithy/util-stream": "^3.1.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-bedrock-runtime/src/endpoint/endpointResolver.ts b/clients/client-bedrock-runtime/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-bedrock-runtime/src/endpoint/endpointResolver.ts +++ b/clients/client-bedrock-runtime/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-bedrock/package.json b/clients/client-bedrock/package.json index 66f7d6167d6d..21137135c296 100644 --- a/clients/client-bedrock/package.json +++ b/clients/client-bedrock/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-bedrock/src/endpoint/endpointResolver.ts b/clients/client-bedrock/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-bedrock/src/endpoint/endpointResolver.ts +++ b/clients/client-bedrock/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-billingconductor/package.json b/clients/client-billingconductor/package.json index e40a3806c094..ed1224fdc8ab 100644 --- a/clients/client-billingconductor/package.json +++ b/clients/client-billingconductor/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-billingconductor/src/endpoint/endpointResolver.ts b/clients/client-billingconductor/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-billingconductor/src/endpoint/endpointResolver.ts +++ b/clients/client-billingconductor/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-braket/package.json b/clients/client-braket/package.json index 701e8401f5e2..5bab6dfeb84f 100644 --- a/clients/client-braket/package.json +++ b/clients/client-braket/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-braket/src/endpoint/endpointResolver.ts b/clients/client-braket/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-braket/src/endpoint/endpointResolver.ts +++ b/clients/client-braket/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-budgets/package.json b/clients/client-budgets/package.json index 2b8994cae7be..055a62b56ed6 100644 --- a/clients/client-budgets/package.json +++ b/clients/client-budgets/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-budgets/src/endpoint/endpointResolver.ts b/clients/client-budgets/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-budgets/src/endpoint/endpointResolver.ts +++ b/clients/client-budgets/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-chatbot/package.json b/clients/client-chatbot/package.json index cafb8087cca9..581194339970 100644 --- a/clients/client-chatbot/package.json +++ b/clients/client-chatbot/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-chatbot/src/endpoint/endpointResolver.ts b/clients/client-chatbot/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-chatbot/src/endpoint/endpointResolver.ts +++ b/clients/client-chatbot/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-chime-sdk-identity/package.json b/clients/client-chime-sdk-identity/package.json index 1b37d944bb6f..4ed93b3d46f9 100644 --- a/clients/client-chime-sdk-identity/package.json +++ b/clients/client-chime-sdk-identity/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-chime-sdk-identity/src/endpoint/endpointResolver.ts b/clients/client-chime-sdk-identity/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-chime-sdk-identity/src/endpoint/endpointResolver.ts +++ b/clients/client-chime-sdk-identity/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-chime-sdk-media-pipelines/package.json b/clients/client-chime-sdk-media-pipelines/package.json index 6a25977fb947..8706ec4076e6 100644 --- a/clients/client-chime-sdk-media-pipelines/package.json +++ b/clients/client-chime-sdk-media-pipelines/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-chime-sdk-media-pipelines/src/endpoint/endpointResolver.ts b/clients/client-chime-sdk-media-pipelines/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-chime-sdk-media-pipelines/src/endpoint/endpointResolver.ts +++ b/clients/client-chime-sdk-media-pipelines/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-chime-sdk-meetings/package.json b/clients/client-chime-sdk-meetings/package.json index 90ad259b43dd..e34518505655 100644 --- a/clients/client-chime-sdk-meetings/package.json +++ b/clients/client-chime-sdk-meetings/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-chime-sdk-meetings/src/endpoint/endpointResolver.ts b/clients/client-chime-sdk-meetings/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-chime-sdk-meetings/src/endpoint/endpointResolver.ts +++ b/clients/client-chime-sdk-meetings/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-chime-sdk-messaging/package.json b/clients/client-chime-sdk-messaging/package.json index ee88114fadf0..23743c27ce8f 100644 --- a/clients/client-chime-sdk-messaging/package.json +++ b/clients/client-chime-sdk-messaging/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-chime-sdk-messaging/src/endpoint/endpointResolver.ts b/clients/client-chime-sdk-messaging/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-chime-sdk-messaging/src/endpoint/endpointResolver.ts +++ b/clients/client-chime-sdk-messaging/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-chime-sdk-voice/package.json b/clients/client-chime-sdk-voice/package.json index 9507fd496299..2eba64bcc7f0 100644 --- a/clients/client-chime-sdk-voice/package.json +++ b/clients/client-chime-sdk-voice/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-chime-sdk-voice/src/endpoint/endpointResolver.ts b/clients/client-chime-sdk-voice/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-chime-sdk-voice/src/endpoint/endpointResolver.ts +++ b/clients/client-chime-sdk-voice/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-chime/package.json b/clients/client-chime/package.json index 9660868e275d..925dceeffdd2 100644 --- a/clients/client-chime/package.json +++ b/clients/client-chime/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-chime/src/endpoint/endpointResolver.ts b/clients/client-chime/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-chime/src/endpoint/endpointResolver.ts +++ b/clients/client-chime/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-cleanrooms/package.json b/clients/client-cleanrooms/package.json index cc26cf17c3c0..a9eea4c0adba 100644 --- a/clients/client-cleanrooms/package.json +++ b/clients/client-cleanrooms/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-cleanrooms/src/endpoint/endpointResolver.ts b/clients/client-cleanrooms/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-cleanrooms/src/endpoint/endpointResolver.ts +++ b/clients/client-cleanrooms/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-cleanroomsml/package.json b/clients/client-cleanroomsml/package.json index 18da57dd45c3..7afebbc265cf 100644 --- a/clients/client-cleanroomsml/package.json +++ b/clients/client-cleanroomsml/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-cleanroomsml/src/endpoint/endpointResolver.ts b/clients/client-cleanroomsml/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-cleanroomsml/src/endpoint/endpointResolver.ts +++ b/clients/client-cleanroomsml/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-cloud9/package.json b/clients/client-cloud9/package.json index 0db6433ef999..9075b2fbcbca 100644 --- a/clients/client-cloud9/package.json +++ b/clients/client-cloud9/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-cloud9/src/endpoint/endpointResolver.ts b/clients/client-cloud9/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-cloud9/src/endpoint/endpointResolver.ts +++ b/clients/client-cloud9/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-cloudcontrol/package.json b/clients/client-cloudcontrol/package.json index 9e9f72750199..9c5c79898a10 100644 --- a/clients/client-cloudcontrol/package.json +++ b/clients/client-cloudcontrol/package.json @@ -33,32 +33,32 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", + "@smithy/util-waiter": "^3.1.3", "tslib": "^2.6.2", "uuid": "^9.0.1" }, diff --git a/clients/client-cloudcontrol/src/endpoint/endpointResolver.ts b/clients/client-cloudcontrol/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-cloudcontrol/src/endpoint/endpointResolver.ts +++ b/clients/client-cloudcontrol/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-clouddirectory/package.json b/clients/client-clouddirectory/package.json index 91768402f889..7e98ade376d4 100644 --- a/clients/client-clouddirectory/package.json +++ b/clients/client-clouddirectory/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-clouddirectory/src/endpoint/endpointResolver.ts b/clients/client-clouddirectory/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-clouddirectory/src/endpoint/endpointResolver.ts +++ b/clients/client-clouddirectory/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-cloudformation/package.json b/clients/client-cloudformation/package.json index aa835a212042..669f49348ac2 100644 --- a/clients/client-cloudformation/package.json +++ b/clients/client-cloudformation/package.json @@ -33,32 +33,32 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", + "@smithy/util-waiter": "^3.1.3", "tslib": "^2.6.2", "uuid": "^9.0.1" }, diff --git a/clients/client-cloudformation/src/endpoint/endpointResolver.ts b/clients/client-cloudformation/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-cloudformation/src/endpoint/endpointResolver.ts +++ b/clients/client-cloudformation/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-cloudfront-keyvaluestore/package.json b/clients/client-cloudfront-keyvaluestore/package.json index 4f5900a7b7b5..0d9225cd6b80 100644 --- a/clients/client-cloudfront-keyvaluestore/package.json +++ b/clients/client-cloudfront-keyvaluestore/package.json @@ -34,30 +34,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-cloudfront-keyvaluestore/src/endpoint/endpointResolver.ts b/clients/client-cloudfront-keyvaluestore/src/endpoint/endpointResolver.ts index 26fe4c3775a6..5e32ce1b80b9 100644 --- a/clients/client-cloudfront-keyvaluestore/src/endpoint/endpointResolver.ts +++ b/clients/client-cloudfront-keyvaluestore/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "KvsARN", "Region", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-cloudfront/package.json b/clients/client-cloudfront/package.json index b6ad80eb270d..3f4e76744863 100644 --- a/clients/client-cloudfront/package.json +++ b/clients/client-cloudfront/package.json @@ -34,33 +34,33 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@aws-sdk/xml-builder": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-stream": "^3.1.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", + "@smithy/util-stream": "^3.1.4", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", + "@smithy/util-waiter": "^3.1.3", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/clients/client-cloudfront/src/endpoint/endpointResolver.ts b/clients/client-cloudfront/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-cloudfront/src/endpoint/endpointResolver.ts +++ b/clients/client-cloudfront/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-cloudhsm-v2/package.json b/clients/client-cloudhsm-v2/package.json index a8216272bc5d..4e079c6ac9ec 100644 --- a/clients/client-cloudhsm-v2/package.json +++ b/clients/client-cloudhsm-v2/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-cloudhsm-v2/src/endpoint/endpointResolver.ts b/clients/client-cloudhsm-v2/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-cloudhsm-v2/src/endpoint/endpointResolver.ts +++ b/clients/client-cloudhsm-v2/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-cloudhsm/package.json b/clients/client-cloudhsm/package.json index 6c6a667d73c3..a04a0739f2f7 100644 --- a/clients/client-cloudhsm/package.json +++ b/clients/client-cloudhsm/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-cloudhsm/src/endpoint/endpointResolver.ts b/clients/client-cloudhsm/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-cloudhsm/src/endpoint/endpointResolver.ts +++ b/clients/client-cloudhsm/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-cloudsearch-domain/package.json b/clients/client-cloudsearch-domain/package.json index 17645461158f..78e16d911ce2 100644 --- a/clients/client-cloudsearch-domain/package.json +++ b/clients/client-cloudsearch-domain/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-cloudsearch-domain/src/endpoint/endpointResolver.ts b/clients/client-cloudsearch-domain/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-cloudsearch-domain/src/endpoint/endpointResolver.ts +++ b/clients/client-cloudsearch-domain/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-cloudsearch/package.json b/clients/client-cloudsearch/package.json index 9c7e67cb7ac9..6f1700b34186 100644 --- a/clients/client-cloudsearch/package.json +++ b/clients/client-cloudsearch/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-cloudsearch/src/endpoint/endpointResolver.ts b/clients/client-cloudsearch/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-cloudsearch/src/endpoint/endpointResolver.ts +++ b/clients/client-cloudsearch/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-cloudtrail-data/package.json b/clients/client-cloudtrail-data/package.json index 267e98d0d747..00a44389306a 100644 --- a/clients/client-cloudtrail-data/package.json +++ b/clients/client-cloudtrail-data/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-cloudtrail-data/src/endpoint/endpointResolver.ts b/clients/client-cloudtrail-data/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-cloudtrail-data/src/endpoint/endpointResolver.ts +++ b/clients/client-cloudtrail-data/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-cloudtrail/package.json b/clients/client-cloudtrail/package.json index 152c32a00e15..60d9380294a0 100644 --- a/clients/client-cloudtrail/package.json +++ b/clients/client-cloudtrail/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-cloudtrail/src/endpoint/endpointResolver.ts b/clients/client-cloudtrail/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-cloudtrail/src/endpoint/endpointResolver.ts +++ b/clients/client-cloudtrail/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-cloudwatch-events/package.json b/clients/client-cloudwatch-events/package.json index a65a7ec343b7..da407b6fea39 100644 --- a/clients/client-cloudwatch-events/package.json +++ b/clients/client-cloudwatch-events/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-cloudwatch-events/src/endpoint/endpointResolver.ts b/clients/client-cloudwatch-events/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-cloudwatch-events/src/endpoint/endpointResolver.ts +++ b/clients/client-cloudwatch-events/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-cloudwatch-logs/package.json b/clients/client-cloudwatch-logs/package.json index 03db17c6da50..79d72ceef2a7 100644 --- a/clients/client-cloudwatch-logs/package.json +++ b/clients/client-cloudwatch-logs/package.json @@ -33,33 +33,33 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/eventstream-serde-browser": "^3.0.6", - "@smithy/eventstream-serde-config-resolver": "^3.0.3", - "@smithy/eventstream-serde-node": "^3.0.5", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/eventstream-serde-browser": "^3.0.7", + "@smithy/eventstream-serde-config-resolver": "^3.0.4", + "@smithy/eventstream-serde-node": "^3.0.6", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-cloudwatch-logs/src/endpoint/endpointResolver.ts b/clients/client-cloudwatch-logs/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-cloudwatch-logs/src/endpoint/endpointResolver.ts +++ b/clients/client-cloudwatch-logs/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-cloudwatch/package.json b/clients/client-cloudwatch/package.json index b2a9dd56e6a9..e131a4adeca0 100644 --- a/clients/client-cloudwatch/package.json +++ b/clients/client-cloudwatch/package.json @@ -33,33 +33,33 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-compression": "^3.0.7", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-compression": "^3.0.8", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", + "@smithy/util-waiter": "^3.1.3", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/clients/client-cloudwatch/src/endpoint/endpointResolver.ts b/clients/client-cloudwatch/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-cloudwatch/src/endpoint/endpointResolver.ts +++ b/clients/client-cloudwatch/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-codeartifact/package.json b/clients/client-codeartifact/package.json index 65145818d6dd..e2d42ccd98ac 100644 --- a/clients/client-codeartifact/package.json +++ b/clients/client-codeartifact/package.json @@ -33,31 +33,31 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-stream": "^3.1.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", + "@smithy/util-stream": "^3.1.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-codeartifact/src/endpoint/endpointResolver.ts b/clients/client-codeartifact/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-codeartifact/src/endpoint/endpointResolver.ts +++ b/clients/client-codeartifact/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-codebuild/package.json b/clients/client-codebuild/package.json index dbaeb52e717d..eb25a2a13858 100644 --- a/clients/client-codebuild/package.json +++ b/clients/client-codebuild/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-codebuild/src/endpoint/endpointResolver.ts b/clients/client-codebuild/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-codebuild/src/endpoint/endpointResolver.ts +++ b/clients/client-codebuild/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-codecatalyst/package.json b/clients/client-codecatalyst/package.json index 33b3305c23e4..062228aeab7d 100644 --- a/clients/client-codecatalyst/package.json +++ b/clients/client-codecatalyst/package.json @@ -31,30 +31,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-codecatalyst/src/endpoint/endpointResolver.ts b/clients/client-codecatalyst/src/endpoint/endpointResolver.ts index 26fe4c3775a6..b08a72482ca0 100644 --- a/clients/client-codecatalyst/src/endpoint/endpointResolver.ts +++ b/clients/client-codecatalyst/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-codecommit/package.json b/clients/client-codecommit/package.json index c06bf4a0f063..a4ccdbe57b05 100644 --- a/clients/client-codecommit/package.json +++ b/clients/client-codecommit/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-codecommit/src/endpoint/endpointResolver.ts b/clients/client-codecommit/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-codecommit/src/endpoint/endpointResolver.ts +++ b/clients/client-codecommit/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-codeconnections/package.json b/clients/client-codeconnections/package.json index f663f8ce4e4c..69d2ccaabf3e 100644 --- a/clients/client-codeconnections/package.json +++ b/clients/client-codeconnections/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-codeconnections/src/endpoint/endpointResolver.ts b/clients/client-codeconnections/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-codeconnections/src/endpoint/endpointResolver.ts +++ b/clients/client-codeconnections/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-codedeploy/package.json b/clients/client-codedeploy/package.json index 7bc2acf704e1..c0e6e06b8fe7 100644 --- a/clients/client-codedeploy/package.json +++ b/clients/client-codedeploy/package.json @@ -33,32 +33,32 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", + "@smithy/util-waiter": "^3.1.3", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/clients/client-codedeploy/src/endpoint/endpointResolver.ts b/clients/client-codedeploy/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-codedeploy/src/endpoint/endpointResolver.ts +++ b/clients/client-codedeploy/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-codeguru-reviewer/package.json b/clients/client-codeguru-reviewer/package.json index ca068554b819..c0425a257b9a 100644 --- a/clients/client-codeguru-reviewer/package.json +++ b/clients/client-codeguru-reviewer/package.json @@ -33,32 +33,32 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", + "@smithy/util-waiter": "^3.1.3", "tslib": "^2.6.2", "uuid": "^9.0.1" }, diff --git a/clients/client-codeguru-reviewer/src/endpoint/endpointResolver.ts b/clients/client-codeguru-reviewer/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-codeguru-reviewer/src/endpoint/endpointResolver.ts +++ b/clients/client-codeguru-reviewer/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-codeguru-security/package.json b/clients/client-codeguru-security/package.json index 8237227a5896..0541b839df80 100644 --- a/clients/client-codeguru-security/package.json +++ b/clients/client-codeguru-security/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-codeguru-security/src/endpoint/endpointResolver.ts b/clients/client-codeguru-security/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-codeguru-security/src/endpoint/endpointResolver.ts +++ b/clients/client-codeguru-security/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-codeguruprofiler/package.json b/clients/client-codeguruprofiler/package.json index 43aa930d1710..9abbda53a49a 100644 --- a/clients/client-codeguruprofiler/package.json +++ b/clients/client-codeguruprofiler/package.json @@ -33,31 +33,31 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-stream": "^3.1.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", + "@smithy/util-stream": "^3.1.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-codeguruprofiler/src/endpoint/endpointResolver.ts b/clients/client-codeguruprofiler/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-codeguruprofiler/src/endpoint/endpointResolver.ts +++ b/clients/client-codeguruprofiler/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-codepipeline/package.json b/clients/client-codepipeline/package.json index 38d2e7ba994b..afb1614b21ad 100644 --- a/clients/client-codepipeline/package.json +++ b/clients/client-codepipeline/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-codepipeline/src/endpoint/endpointResolver.ts b/clients/client-codepipeline/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-codepipeline/src/endpoint/endpointResolver.ts +++ b/clients/client-codepipeline/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-codestar-connections/package.json b/clients/client-codestar-connections/package.json index 3f72d6894143..01d393b6423c 100644 --- a/clients/client-codestar-connections/package.json +++ b/clients/client-codestar-connections/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-codestar-connections/src/endpoint/endpointResolver.ts b/clients/client-codestar-connections/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-codestar-connections/src/endpoint/endpointResolver.ts +++ b/clients/client-codestar-connections/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-codestar-notifications/package.json b/clients/client-codestar-notifications/package.json index 432e0c980207..505389d1f8b1 100644 --- a/clients/client-codestar-notifications/package.json +++ b/clients/client-codestar-notifications/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-codestar-notifications/src/endpoint/endpointResolver.ts b/clients/client-codestar-notifications/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-codestar-notifications/src/endpoint/endpointResolver.ts +++ b/clients/client-codestar-notifications/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-cognito-identity-provider/package.json b/clients/client-cognito-identity-provider/package.json index 0b97a52e9b56..215de224b38d 100644 --- a/clients/client-cognito-identity-provider/package.json +++ b/clients/client-cognito-identity-provider/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-cognito-identity-provider/src/endpoint/endpointResolver.ts b/clients/client-cognito-identity-provider/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-cognito-identity-provider/src/endpoint/endpointResolver.ts +++ b/clients/client-cognito-identity-provider/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-cognito-identity/package.json b/clients/client-cognito-identity/package.json index 3bb482d2812e..d467fa15144e 100644 --- a/clients/client-cognito-identity/package.json +++ b/clients/client-cognito-identity/package.json @@ -34,30 +34,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-cognito-identity/src/endpoint/endpointResolver.ts b/clients/client-cognito-identity/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-cognito-identity/src/endpoint/endpointResolver.ts +++ b/clients/client-cognito-identity/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-cognito-sync/package.json b/clients/client-cognito-sync/package.json index 1c6f1d8f64cc..493f69def47d 100644 --- a/clients/client-cognito-sync/package.json +++ b/clients/client-cognito-sync/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-cognito-sync/src/endpoint/endpointResolver.ts b/clients/client-cognito-sync/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-cognito-sync/src/endpoint/endpointResolver.ts +++ b/clients/client-cognito-sync/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-comprehend/package.json b/clients/client-comprehend/package.json index d30b734176b6..a50ffa9a5162 100644 --- a/clients/client-comprehend/package.json +++ b/clients/client-comprehend/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-comprehend/src/endpoint/endpointResolver.ts b/clients/client-comprehend/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-comprehend/src/endpoint/endpointResolver.ts +++ b/clients/client-comprehend/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-comprehendmedical/package.json b/clients/client-comprehendmedical/package.json index 2a520511351d..51406ae9b752 100644 --- a/clients/client-comprehendmedical/package.json +++ b/clients/client-comprehendmedical/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-comprehendmedical/src/endpoint/endpointResolver.ts b/clients/client-comprehendmedical/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-comprehendmedical/src/endpoint/endpointResolver.ts +++ b/clients/client-comprehendmedical/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-compute-optimizer/package.json b/clients/client-compute-optimizer/package.json index 7b2d45f50d48..5ff93f0380a6 100644 --- a/clients/client-compute-optimizer/package.json +++ b/clients/client-compute-optimizer/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-compute-optimizer/src/endpoint/endpointResolver.ts b/clients/client-compute-optimizer/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-compute-optimizer/src/endpoint/endpointResolver.ts +++ b/clients/client-compute-optimizer/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-config-service/package.json b/clients/client-config-service/package.json index 6c51e71c3f91..69757ac5813e 100644 --- a/clients/client-config-service/package.json +++ b/clients/client-config-service/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-config-service/src/endpoint/endpointResolver.ts b/clients/client-config-service/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-config-service/src/endpoint/endpointResolver.ts +++ b/clients/client-config-service/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-connect-contact-lens/package.json b/clients/client-connect-contact-lens/package.json index 5eb77ed773f7..cf8103161ba1 100644 --- a/clients/client-connect-contact-lens/package.json +++ b/clients/client-connect-contact-lens/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-connect-contact-lens/src/endpoint/endpointResolver.ts b/clients/client-connect-contact-lens/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-connect-contact-lens/src/endpoint/endpointResolver.ts +++ b/clients/client-connect-contact-lens/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-connect/package.json b/clients/client-connect/package.json index e52106187e28..51bf0626da0e 100644 --- a/clients/client-connect/package.json +++ b/clients/client-connect/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-connect/src/endpoint/endpointResolver.ts b/clients/client-connect/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-connect/src/endpoint/endpointResolver.ts +++ b/clients/client-connect/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-connectcampaigns/package.json b/clients/client-connectcampaigns/package.json index 3a5c77eb37c4..76bad3546d30 100644 --- a/clients/client-connectcampaigns/package.json +++ b/clients/client-connectcampaigns/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-connectcampaigns/src/endpoint/endpointResolver.ts b/clients/client-connectcampaigns/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-connectcampaigns/src/endpoint/endpointResolver.ts +++ b/clients/client-connectcampaigns/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-connectcases/package.json b/clients/client-connectcases/package.json index 4f9e58c6e391..d41f16bc9625 100644 --- a/clients/client-connectcases/package.json +++ b/clients/client-connectcases/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-connectcases/src/endpoint/endpointResolver.ts b/clients/client-connectcases/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-connectcases/src/endpoint/endpointResolver.ts +++ b/clients/client-connectcases/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-connectparticipant/package.json b/clients/client-connectparticipant/package.json index f45272702d7e..f1c7e6089547 100644 --- a/clients/client-connectparticipant/package.json +++ b/clients/client-connectparticipant/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-connectparticipant/src/endpoint/endpointResolver.ts b/clients/client-connectparticipant/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-connectparticipant/src/endpoint/endpointResolver.ts +++ b/clients/client-connectparticipant/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-controlcatalog/package.json b/clients/client-controlcatalog/package.json index abbc6af7c669..fd68dfeabf3e 100644 --- a/clients/client-controlcatalog/package.json +++ b/clients/client-controlcatalog/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-controlcatalog/src/endpoint/endpointResolver.ts b/clients/client-controlcatalog/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-controlcatalog/src/endpoint/endpointResolver.ts +++ b/clients/client-controlcatalog/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-controltower/package.json b/clients/client-controltower/package.json index 40154c9e93c6..bd990a1fd15e 100644 --- a/clients/client-controltower/package.json +++ b/clients/client-controltower/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-controltower/src/endpoint/endpointResolver.ts b/clients/client-controltower/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-controltower/src/endpoint/endpointResolver.ts +++ b/clients/client-controltower/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-cost-and-usage-report-service/package.json b/clients/client-cost-and-usage-report-service/package.json index fab4a218ce0f..65025c61f3d5 100644 --- a/clients/client-cost-and-usage-report-service/package.json +++ b/clients/client-cost-and-usage-report-service/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-cost-and-usage-report-service/src/endpoint/endpointResolver.ts b/clients/client-cost-and-usage-report-service/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-cost-and-usage-report-service/src/endpoint/endpointResolver.ts +++ b/clients/client-cost-and-usage-report-service/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-cost-explorer/package.json b/clients/client-cost-explorer/package.json index 4af2833bf6fe..af1c2d6791a5 100644 --- a/clients/client-cost-explorer/package.json +++ b/clients/client-cost-explorer/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-cost-explorer/src/endpoint/endpointResolver.ts b/clients/client-cost-explorer/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-cost-explorer/src/endpoint/endpointResolver.ts +++ b/clients/client-cost-explorer/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-cost-optimization-hub/package.json b/clients/client-cost-optimization-hub/package.json index 8631dfdb70b7..7754c3cb6bb3 100644 --- a/clients/client-cost-optimization-hub/package.json +++ b/clients/client-cost-optimization-hub/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-cost-optimization-hub/src/endpoint/endpointResolver.ts b/clients/client-cost-optimization-hub/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-cost-optimization-hub/src/endpoint/endpointResolver.ts +++ b/clients/client-cost-optimization-hub/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-customer-profiles/package.json b/clients/client-customer-profiles/package.json index f03c3a3dfaa3..a3ce69f23081 100644 --- a/clients/client-customer-profiles/package.json +++ b/clients/client-customer-profiles/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-customer-profiles/src/endpoint/endpointResolver.ts b/clients/client-customer-profiles/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-customer-profiles/src/endpoint/endpointResolver.ts +++ b/clients/client-customer-profiles/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-data-pipeline/package.json b/clients/client-data-pipeline/package.json index c4029b992b57..fd5f1b6bb54c 100644 --- a/clients/client-data-pipeline/package.json +++ b/clients/client-data-pipeline/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-data-pipeline/src/endpoint/endpointResolver.ts b/clients/client-data-pipeline/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-data-pipeline/src/endpoint/endpointResolver.ts +++ b/clients/client-data-pipeline/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-database-migration-service/package.json b/clients/client-database-migration-service/package.json index bc317672f9fe..2e40ce51360f 100644 --- a/clients/client-database-migration-service/package.json +++ b/clients/client-database-migration-service/package.json @@ -33,32 +33,32 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", + "@smithy/util-waiter": "^3.1.3", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/clients/client-database-migration-service/src/endpoint/endpointResolver.ts b/clients/client-database-migration-service/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-database-migration-service/src/endpoint/endpointResolver.ts +++ b/clients/client-database-migration-service/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-databrew/package.json b/clients/client-databrew/package.json index ec5ec010ddf9..9fca4bfa0d8b 100644 --- a/clients/client-databrew/package.json +++ b/clients/client-databrew/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-databrew/src/endpoint/endpointResolver.ts b/clients/client-databrew/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-databrew/src/endpoint/endpointResolver.ts +++ b/clients/client-databrew/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-dataexchange/package.json b/clients/client-dataexchange/package.json index 148bfa0dec2c..7170e9e85930 100644 --- a/clients/client-dataexchange/package.json +++ b/clients/client-dataexchange/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-dataexchange/src/endpoint/endpointResolver.ts b/clients/client-dataexchange/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-dataexchange/src/endpoint/endpointResolver.ts +++ b/clients/client-dataexchange/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-datasync/package.json b/clients/client-datasync/package.json index cf14f553fd8b..55c079a1f9e4 100644 --- a/clients/client-datasync/package.json +++ b/clients/client-datasync/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-datasync/src/endpoint/endpointResolver.ts b/clients/client-datasync/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-datasync/src/endpoint/endpointResolver.ts +++ b/clients/client-datasync/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-datazone/package.json b/clients/client-datazone/package.json index 76a3876b762e..ab1587cbecea 100644 --- a/clients/client-datazone/package.json +++ b/clients/client-datazone/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-datazone/src/endpoint/endpointResolver.ts b/clients/client-datazone/src/endpoint/endpointResolver.ts index 26fe4c3775a6..b08a72482ca0 100644 --- a/clients/client-datazone/src/endpoint/endpointResolver.ts +++ b/clients/client-datazone/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-dax/package.json b/clients/client-dax/package.json index 15393203276b..74e8fd146b56 100644 --- a/clients/client-dax/package.json +++ b/clients/client-dax/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-dax/src/endpoint/endpointResolver.ts b/clients/client-dax/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-dax/src/endpoint/endpointResolver.ts +++ b/clients/client-dax/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-deadline/package.json b/clients/client-deadline/package.json index fa6d2573bcf6..a6832c22c2de 100644 --- a/clients/client-deadline/package.json +++ b/clients/client-deadline/package.json @@ -33,32 +33,32 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", + "@smithy/util-waiter": "^3.1.3", "tslib": "^2.6.2", "uuid": "^9.0.1" }, diff --git a/clients/client-deadline/src/endpoint/endpointResolver.ts b/clients/client-deadline/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-deadline/src/endpoint/endpointResolver.ts +++ b/clients/client-deadline/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-detective/package.json b/clients/client-detective/package.json index 0a8f06386263..001d4d5fa692 100644 --- a/clients/client-detective/package.json +++ b/clients/client-detective/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-detective/src/endpoint/endpointResolver.ts b/clients/client-detective/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-detective/src/endpoint/endpointResolver.ts +++ b/clients/client-detective/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-device-farm/package.json b/clients/client-device-farm/package.json index 32ce9664230d..b64c01ff562c 100644 --- a/clients/client-device-farm/package.json +++ b/clients/client-device-farm/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-device-farm/src/endpoint/endpointResolver.ts b/clients/client-device-farm/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-device-farm/src/endpoint/endpointResolver.ts +++ b/clients/client-device-farm/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-devops-guru/package.json b/clients/client-devops-guru/package.json index 18c05875eed6..c117e20b87c6 100644 --- a/clients/client-devops-guru/package.json +++ b/clients/client-devops-guru/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-devops-guru/src/endpoint/endpointResolver.ts b/clients/client-devops-guru/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-devops-guru/src/endpoint/endpointResolver.ts +++ b/clients/client-devops-guru/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-direct-connect/package.json b/clients/client-direct-connect/package.json index 50637292f5d9..7afd32c19b37 100644 --- a/clients/client-direct-connect/package.json +++ b/clients/client-direct-connect/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-direct-connect/src/endpoint/endpointResolver.ts b/clients/client-direct-connect/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-direct-connect/src/endpoint/endpointResolver.ts +++ b/clients/client-direct-connect/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-directory-service/package.json b/clients/client-directory-service/package.json index f1c603ba47b0..89e028590ed1 100644 --- a/clients/client-directory-service/package.json +++ b/clients/client-directory-service/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-directory-service/src/endpoint/endpointResolver.ts b/clients/client-directory-service/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-directory-service/src/endpoint/endpointResolver.ts +++ b/clients/client-directory-service/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-dlm/package.json b/clients/client-dlm/package.json index aa02b80bc6c9..10074ec20f42 100644 --- a/clients/client-dlm/package.json +++ b/clients/client-dlm/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-dlm/src/endpoint/endpointResolver.ts b/clients/client-dlm/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-dlm/src/endpoint/endpointResolver.ts +++ b/clients/client-dlm/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-docdb-elastic/package.json b/clients/client-docdb-elastic/package.json index 397b0f169657..a3bd084376b3 100644 --- a/clients/client-docdb-elastic/package.json +++ b/clients/client-docdb-elastic/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-docdb-elastic/src/endpoint/endpointResolver.ts b/clients/client-docdb-elastic/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-docdb-elastic/src/endpoint/endpointResolver.ts +++ b/clients/client-docdb-elastic/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-docdb/package.json b/clients/client-docdb/package.json index 36b49c5dd07b..0bd8f4ca1ba0 100644 --- a/clients/client-docdb/package.json +++ b/clients/client-docdb/package.json @@ -34,32 +34,32 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", + "@smithy/util-waiter": "^3.1.3", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/clients/client-docdb/src/endpoint/endpointResolver.ts b/clients/client-docdb/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-docdb/src/endpoint/endpointResolver.ts +++ b/clients/client-docdb/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-drs/package.json b/clients/client-drs/package.json index 9c24c3b686a5..0a6817293504 100644 --- a/clients/client-drs/package.json +++ b/clients/client-drs/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-drs/src/endpoint/endpointResolver.ts b/clients/client-drs/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-drs/src/endpoint/endpointResolver.ts +++ b/clients/client-drs/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-dynamodb-streams/package.json b/clients/client-dynamodb-streams/package.json index d3eb2c3dc017..2b9ca0b7e82a 100644 --- a/clients/client-dynamodb-streams/package.json +++ b/clients/client-dynamodb-streams/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-dynamodb-streams/src/endpoint/endpointResolver.ts b/clients/client-dynamodb-streams/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-dynamodb-streams/src/endpoint/endpointResolver.ts +++ b/clients/client-dynamodb-streams/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-dynamodb/package.json b/clients/client-dynamodb/package.json index e72f7827677f..3cab788658d6 100644 --- a/clients/client-dynamodb/package.json +++ b/clients/client-dynamodb/package.json @@ -34,32 +34,32 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", + "@smithy/util-waiter": "^3.1.3", "tslib": "^2.6.2", "uuid": "^9.0.1" }, diff --git a/clients/client-dynamodb/src/endpoint/endpointResolver.ts b/clients/client-dynamodb/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-dynamodb/src/endpoint/endpointResolver.ts +++ b/clients/client-dynamodb/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-ebs/package.json b/clients/client-ebs/package.json index b9de8972981c..914014ce000d 100644 --- a/clients/client-ebs/package.json +++ b/clients/client-ebs/package.json @@ -33,31 +33,31 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-stream": "^3.1.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", + "@smithy/util-stream": "^3.1.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-ebs/src/endpoint/endpointResolver.ts b/clients/client-ebs/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-ebs/src/endpoint/endpointResolver.ts +++ b/clients/client-ebs/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-ec2-instance-connect/package.json b/clients/client-ec2-instance-connect/package.json index 219806eadb18..562d0c0eb6ef 100644 --- a/clients/client-ec2-instance-connect/package.json +++ b/clients/client-ec2-instance-connect/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-ec2-instance-connect/src/endpoint/endpointResolver.ts b/clients/client-ec2-instance-connect/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-ec2-instance-connect/src/endpoint/endpointResolver.ts +++ b/clients/client-ec2-instance-connect/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-ec2/package.json b/clients/client-ec2/package.json index e830204160c9..dfb509935179 100644 --- a/clients/client-ec2/package.json +++ b/clients/client-ec2/package.json @@ -34,32 +34,32 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", + "@smithy/util-waiter": "^3.1.3", "tslib": "^2.6.2", "uuid": "^9.0.1" }, diff --git a/clients/client-ec2/src/endpoint/endpointResolver.ts b/clients/client-ec2/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-ec2/src/endpoint/endpointResolver.ts +++ b/clients/client-ec2/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-ecr-public/package.json b/clients/client-ecr-public/package.json index 7b12cf3fde2f..c2ea650c96ab 100644 --- a/clients/client-ecr-public/package.json +++ b/clients/client-ecr-public/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-ecr-public/src/endpoint/endpointResolver.ts b/clients/client-ecr-public/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-ecr-public/src/endpoint/endpointResolver.ts +++ b/clients/client-ecr-public/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-ecr/package.json b/clients/client-ecr/package.json index 2353937bc1c2..da99579aec10 100644 --- a/clients/client-ecr/package.json +++ b/clients/client-ecr/package.json @@ -33,32 +33,32 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", + "@smithy/util-waiter": "^3.1.3", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/clients/client-ecr/src/endpoint/endpointResolver.ts b/clients/client-ecr/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-ecr/src/endpoint/endpointResolver.ts +++ b/clients/client-ecr/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-ecs/package.json b/clients/client-ecs/package.json index 43a373213d21..2d7b75dba0c3 100644 --- a/clients/client-ecs/package.json +++ b/clients/client-ecs/package.json @@ -33,32 +33,32 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", + "@smithy/util-waiter": "^3.1.3", "tslib": "^2.6.2", "uuid": "^9.0.1" }, diff --git a/clients/client-ecs/src/endpoint/endpointResolver.ts b/clients/client-ecs/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-ecs/src/endpoint/endpointResolver.ts +++ b/clients/client-ecs/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-efs/package.json b/clients/client-efs/package.json index f0244e0e3c95..2d89fae1b01a 100644 --- a/clients/client-efs/package.json +++ b/clients/client-efs/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-efs/src/endpoint/endpointResolver.ts b/clients/client-efs/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-efs/src/endpoint/endpointResolver.ts +++ b/clients/client-efs/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-eks-auth/package.json b/clients/client-eks-auth/package.json index cb3d95806291..f7b1571bc0ef 100644 --- a/clients/client-eks-auth/package.json +++ b/clients/client-eks-auth/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-eks-auth/src/endpoint/endpointResolver.ts b/clients/client-eks-auth/src/endpoint/endpointResolver.ts index 26fe4c3775a6..b08a72482ca0 100644 --- a/clients/client-eks-auth/src/endpoint/endpointResolver.ts +++ b/clients/client-eks-auth/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-eks/package.json b/clients/client-eks/package.json index d0d038046674..c25b851e95a5 100644 --- a/clients/client-eks/package.json +++ b/clients/client-eks/package.json @@ -33,32 +33,32 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", + "@smithy/util-waiter": "^3.1.3", "tslib": "^2.6.2", "uuid": "^9.0.1" }, diff --git a/clients/client-eks/src/endpoint/endpointResolver.ts b/clients/client-eks/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-eks/src/endpoint/endpointResolver.ts +++ b/clients/client-eks/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-elastic-beanstalk/package.json b/clients/client-elastic-beanstalk/package.json index 18a15e2ef199..7b5ba78959a0 100644 --- a/clients/client-elastic-beanstalk/package.json +++ b/clients/client-elastic-beanstalk/package.json @@ -33,32 +33,32 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", + "@smithy/util-waiter": "^3.1.3", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/clients/client-elastic-beanstalk/src/endpoint/endpointResolver.ts b/clients/client-elastic-beanstalk/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-elastic-beanstalk/src/endpoint/endpointResolver.ts +++ b/clients/client-elastic-beanstalk/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-elastic-inference/package.json b/clients/client-elastic-inference/package.json index f5b49f0795c9..d145826c0a38 100644 --- a/clients/client-elastic-inference/package.json +++ b/clients/client-elastic-inference/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-elastic-inference/src/endpoint/endpointResolver.ts b/clients/client-elastic-inference/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-elastic-inference/src/endpoint/endpointResolver.ts +++ b/clients/client-elastic-inference/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-elastic-load-balancing-v2/package.json b/clients/client-elastic-load-balancing-v2/package.json index 4397497b10e3..65bcf461ce05 100644 --- a/clients/client-elastic-load-balancing-v2/package.json +++ b/clients/client-elastic-load-balancing-v2/package.json @@ -33,32 +33,32 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", + "@smithy/util-waiter": "^3.1.3", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/clients/client-elastic-load-balancing-v2/src/endpoint/endpointResolver.ts b/clients/client-elastic-load-balancing-v2/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-elastic-load-balancing-v2/src/endpoint/endpointResolver.ts +++ b/clients/client-elastic-load-balancing-v2/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-elastic-load-balancing/package.json b/clients/client-elastic-load-balancing/package.json index b118405b2a8b..0f6a35b5225d 100644 --- a/clients/client-elastic-load-balancing/package.json +++ b/clients/client-elastic-load-balancing/package.json @@ -33,32 +33,32 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", + "@smithy/util-waiter": "^3.1.3", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/clients/client-elastic-load-balancing/src/endpoint/endpointResolver.ts b/clients/client-elastic-load-balancing/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-elastic-load-balancing/src/endpoint/endpointResolver.ts +++ b/clients/client-elastic-load-balancing/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-elastic-transcoder/package.json b/clients/client-elastic-transcoder/package.json index a6bf4f2531bd..f62d67401b3a 100644 --- a/clients/client-elastic-transcoder/package.json +++ b/clients/client-elastic-transcoder/package.json @@ -33,32 +33,32 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", + "@smithy/util-waiter": "^3.1.3", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/clients/client-elastic-transcoder/src/endpoint/endpointResolver.ts b/clients/client-elastic-transcoder/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-elastic-transcoder/src/endpoint/endpointResolver.ts +++ b/clients/client-elastic-transcoder/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-elasticache/package.json b/clients/client-elasticache/package.json index bd0761b7efd2..b13b11597371 100644 --- a/clients/client-elasticache/package.json +++ b/clients/client-elasticache/package.json @@ -33,32 +33,32 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", + "@smithy/util-waiter": "^3.1.3", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/clients/client-elasticache/src/endpoint/endpointResolver.ts b/clients/client-elasticache/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-elasticache/src/endpoint/endpointResolver.ts +++ b/clients/client-elasticache/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-elasticsearch-service/package.json b/clients/client-elasticsearch-service/package.json index 897c75c60acc..ab1875189090 100644 --- a/clients/client-elasticsearch-service/package.json +++ b/clients/client-elasticsearch-service/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-elasticsearch-service/src/endpoint/endpointResolver.ts b/clients/client-elasticsearch-service/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-elasticsearch-service/src/endpoint/endpointResolver.ts +++ b/clients/client-elasticsearch-service/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-emr-containers/package.json b/clients/client-emr-containers/package.json index 8595afea1dbd..ae193dfb2f0e 100644 --- a/clients/client-emr-containers/package.json +++ b/clients/client-emr-containers/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-emr-containers/src/endpoint/endpointResolver.ts b/clients/client-emr-containers/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-emr-containers/src/endpoint/endpointResolver.ts +++ b/clients/client-emr-containers/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-emr-serverless/package.json b/clients/client-emr-serverless/package.json index 77ec9315032b..ac41c6599eed 100644 --- a/clients/client-emr-serverless/package.json +++ b/clients/client-emr-serverless/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-emr-serverless/src/endpoint/endpointResolver.ts b/clients/client-emr-serverless/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-emr-serverless/src/endpoint/endpointResolver.ts +++ b/clients/client-emr-serverless/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-emr/package.json b/clients/client-emr/package.json index b52a9efddd48..fba362899919 100644 --- a/clients/client-emr/package.json +++ b/clients/client-emr/package.json @@ -33,32 +33,32 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", + "@smithy/util-waiter": "^3.1.3", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/clients/client-emr/src/endpoint/endpointResolver.ts b/clients/client-emr/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-emr/src/endpoint/endpointResolver.ts +++ b/clients/client-emr/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-entityresolution/package.json b/clients/client-entityresolution/package.json index e71fa6f4ec7b..a09f35d0f678 100644 --- a/clients/client-entityresolution/package.json +++ b/clients/client-entityresolution/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-entityresolution/src/endpoint/endpointResolver.ts b/clients/client-entityresolution/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-entityresolution/src/endpoint/endpointResolver.ts +++ b/clients/client-entityresolution/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-eventbridge/package.json b/clients/client-eventbridge/package.json index 60ec71e13ae1..b121dbe57f59 100644 --- a/clients/client-eventbridge/package.json +++ b/clients/client-eventbridge/package.json @@ -36,30 +36,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-eventbridge/src/endpoint/endpointResolver.ts b/clients/client-eventbridge/src/endpoint/endpointResolver.ts index 26fe4c3775a6..30df04e5bbbc 100644 --- a/clients/client-eventbridge/src/endpoint/endpointResolver.ts +++ b/clients/client-eventbridge/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "EndpointId", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-evidently/package.json b/clients/client-evidently/package.json index 6104e1c5ac89..f19e506b5cf3 100644 --- a/clients/client-evidently/package.json +++ b/clients/client-evidently/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-evidently/src/endpoint/endpointResolver.ts b/clients/client-evidently/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-evidently/src/endpoint/endpointResolver.ts +++ b/clients/client-evidently/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-finspace-data/package.json b/clients/client-finspace-data/package.json index c45c10a56598..fda8b89c5343 100644 --- a/clients/client-finspace-data/package.json +++ b/clients/client-finspace-data/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-finspace-data/src/endpoint/endpointResolver.ts b/clients/client-finspace-data/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-finspace-data/src/endpoint/endpointResolver.ts +++ b/clients/client-finspace-data/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-finspace/package.json b/clients/client-finspace/package.json index ca711ca052b2..c5959830bf9f 100644 --- a/clients/client-finspace/package.json +++ b/clients/client-finspace/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-finspace/src/endpoint/endpointResolver.ts b/clients/client-finspace/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-finspace/src/endpoint/endpointResolver.ts +++ b/clients/client-finspace/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-firehose/package.json b/clients/client-firehose/package.json index e8bc48cdf233..95fe78d39268 100644 --- a/clients/client-firehose/package.json +++ b/clients/client-firehose/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-firehose/src/endpoint/endpointResolver.ts b/clients/client-firehose/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-firehose/src/endpoint/endpointResolver.ts +++ b/clients/client-firehose/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-fis/package.json b/clients/client-fis/package.json index 20452df34b9e..1a861de80f2b 100644 --- a/clients/client-fis/package.json +++ b/clients/client-fis/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-fis/src/endpoint/endpointResolver.ts b/clients/client-fis/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-fis/src/endpoint/endpointResolver.ts +++ b/clients/client-fis/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-fms/package.json b/clients/client-fms/package.json index 4a5cf10818dc..53e5d08ecdbe 100644 --- a/clients/client-fms/package.json +++ b/clients/client-fms/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-fms/src/endpoint/endpointResolver.ts b/clients/client-fms/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-fms/src/endpoint/endpointResolver.ts +++ b/clients/client-fms/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-forecast/package.json b/clients/client-forecast/package.json index a4e332926eaa..c406f2f2758f 100644 --- a/clients/client-forecast/package.json +++ b/clients/client-forecast/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-forecast/src/endpoint/endpointResolver.ts b/clients/client-forecast/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-forecast/src/endpoint/endpointResolver.ts +++ b/clients/client-forecast/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-forecastquery/package.json b/clients/client-forecastquery/package.json index cc8535a1eedf..5c4f79c5234b 100644 --- a/clients/client-forecastquery/package.json +++ b/clients/client-forecastquery/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-forecastquery/src/endpoint/endpointResolver.ts b/clients/client-forecastquery/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-forecastquery/src/endpoint/endpointResolver.ts +++ b/clients/client-forecastquery/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-frauddetector/package.json b/clients/client-frauddetector/package.json index ae4499f28963..cb0d22399a75 100644 --- a/clients/client-frauddetector/package.json +++ b/clients/client-frauddetector/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-frauddetector/src/endpoint/endpointResolver.ts b/clients/client-frauddetector/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-frauddetector/src/endpoint/endpointResolver.ts +++ b/clients/client-frauddetector/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-freetier/package.json b/clients/client-freetier/package.json index 4f4b15b40bec..dd87ad694af1 100644 --- a/clients/client-freetier/package.json +++ b/clients/client-freetier/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-freetier/src/endpoint/endpointResolver.ts b/clients/client-freetier/src/endpoint/endpointResolver.ts index 26fe4c3775a6..b08a72482ca0 100644 --- a/clients/client-freetier/src/endpoint/endpointResolver.ts +++ b/clients/client-freetier/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-fsx/package.json b/clients/client-fsx/package.json index 24f56075e969..6510c7579d01 100644 --- a/clients/client-fsx/package.json +++ b/clients/client-fsx/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-fsx/src/endpoint/endpointResolver.ts b/clients/client-fsx/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-fsx/src/endpoint/endpointResolver.ts +++ b/clients/client-fsx/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-gamelift/package.json b/clients/client-gamelift/package.json index 7b072cfbd1d6..7481caf642aa 100644 --- a/clients/client-gamelift/package.json +++ b/clients/client-gamelift/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-gamelift/src/endpoint/endpointResolver.ts b/clients/client-gamelift/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-gamelift/src/endpoint/endpointResolver.ts +++ b/clients/client-gamelift/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-glacier/package.json b/clients/client-glacier/package.json index 44fbbbbdcdb1..86acd2e7978c 100644 --- a/clients/client-glacier/package.json +++ b/clients/client-glacier/package.json @@ -36,33 +36,33 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-stream": "^3.1.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", + "@smithy/util-stream": "^3.1.4", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", + "@smithy/util-waiter": "^3.1.3", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/clients/client-glacier/src/endpoint/endpointResolver.ts b/clients/client-glacier/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-glacier/src/endpoint/endpointResolver.ts +++ b/clients/client-glacier/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-global-accelerator/package.json b/clients/client-global-accelerator/package.json index 25c7071f4a81..a01fa4e7e6fb 100644 --- a/clients/client-global-accelerator/package.json +++ b/clients/client-global-accelerator/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-global-accelerator/src/endpoint/endpointResolver.ts b/clients/client-global-accelerator/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-global-accelerator/src/endpoint/endpointResolver.ts +++ b/clients/client-global-accelerator/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-glue/package.json b/clients/client-glue/package.json index d4c985900afb..4eefde831079 100644 --- a/clients/client-glue/package.json +++ b/clients/client-glue/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-glue/src/endpoint/endpointResolver.ts b/clients/client-glue/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-glue/src/endpoint/endpointResolver.ts +++ b/clients/client-glue/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-grafana/package.json b/clients/client-grafana/package.json index 0c6a82a51e42..e9e50c510ee0 100644 --- a/clients/client-grafana/package.json +++ b/clients/client-grafana/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-grafana/src/endpoint/endpointResolver.ts b/clients/client-grafana/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-grafana/src/endpoint/endpointResolver.ts +++ b/clients/client-grafana/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-greengrass/package.json b/clients/client-greengrass/package.json index e27757017d38..4240412a145e 100644 --- a/clients/client-greengrass/package.json +++ b/clients/client-greengrass/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-greengrass/src/endpoint/endpointResolver.ts b/clients/client-greengrass/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-greengrass/src/endpoint/endpointResolver.ts +++ b/clients/client-greengrass/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-greengrassv2/package.json b/clients/client-greengrassv2/package.json index aa8537fc7f6f..ddb8fbb172fc 100644 --- a/clients/client-greengrassv2/package.json +++ b/clients/client-greengrassv2/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-greengrassv2/src/endpoint/endpointResolver.ts b/clients/client-greengrassv2/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-greengrassv2/src/endpoint/endpointResolver.ts +++ b/clients/client-greengrassv2/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-groundstation/package.json b/clients/client-groundstation/package.json index 3d75453d6a08..b4f418607cc7 100644 --- a/clients/client-groundstation/package.json +++ b/clients/client-groundstation/package.json @@ -33,32 +33,32 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", + "@smithy/util-waiter": "^3.1.3", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/clients/client-groundstation/src/endpoint/endpointResolver.ts b/clients/client-groundstation/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-groundstation/src/endpoint/endpointResolver.ts +++ b/clients/client-groundstation/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-guardduty/package.json b/clients/client-guardduty/package.json index feea5a7a514f..1fae2f74087c 100644 --- a/clients/client-guardduty/package.json +++ b/clients/client-guardduty/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-guardduty/src/endpoint/endpointResolver.ts b/clients/client-guardduty/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-guardduty/src/endpoint/endpointResolver.ts +++ b/clients/client-guardduty/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-health/package.json b/clients/client-health/package.json index 22658748ac77..c02f51252cf5 100644 --- a/clients/client-health/package.json +++ b/clients/client-health/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-health/src/endpoint/endpointResolver.ts b/clients/client-health/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-health/src/endpoint/endpointResolver.ts +++ b/clients/client-health/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-healthlake/package.json b/clients/client-healthlake/package.json index 62bd93effba3..2fc73ccec425 100644 --- a/clients/client-healthlake/package.json +++ b/clients/client-healthlake/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-healthlake/src/endpoint/endpointResolver.ts b/clients/client-healthlake/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-healthlake/src/endpoint/endpointResolver.ts +++ b/clients/client-healthlake/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-iam/package.json b/clients/client-iam/package.json index 181a849020ab..213f0bf3f41c 100644 --- a/clients/client-iam/package.json +++ b/clients/client-iam/package.json @@ -33,32 +33,32 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", + "@smithy/util-waiter": "^3.1.3", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/clients/client-iam/src/endpoint/endpointResolver.ts b/clients/client-iam/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-iam/src/endpoint/endpointResolver.ts +++ b/clients/client-iam/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-identitystore/package.json b/clients/client-identitystore/package.json index 80f794e9d5f7..6f1a09ff3270 100644 --- a/clients/client-identitystore/package.json +++ b/clients/client-identitystore/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-identitystore/src/endpoint/endpointResolver.ts b/clients/client-identitystore/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-identitystore/src/endpoint/endpointResolver.ts +++ b/clients/client-identitystore/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-imagebuilder/package.json b/clients/client-imagebuilder/package.json index a3bfdc92694d..cda041728943 100644 --- a/clients/client-imagebuilder/package.json +++ b/clients/client-imagebuilder/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-imagebuilder/src/endpoint/endpointResolver.ts b/clients/client-imagebuilder/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-imagebuilder/src/endpoint/endpointResolver.ts +++ b/clients/client-imagebuilder/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-inspector-scan/package.json b/clients/client-inspector-scan/package.json index 2b4f4400da53..add6f47834d0 100644 --- a/clients/client-inspector-scan/package.json +++ b/clients/client-inspector-scan/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-inspector-scan/src/endpoint/endpointResolver.ts b/clients/client-inspector-scan/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-inspector-scan/src/endpoint/endpointResolver.ts +++ b/clients/client-inspector-scan/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-inspector/package.json b/clients/client-inspector/package.json index 3aed64d90b16..4a57e108ef20 100644 --- a/clients/client-inspector/package.json +++ b/clients/client-inspector/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-inspector/src/endpoint/endpointResolver.ts b/clients/client-inspector/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-inspector/src/endpoint/endpointResolver.ts +++ b/clients/client-inspector/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-inspector2/package.json b/clients/client-inspector2/package.json index 8d1035f4b6b5..fcad3cfbd248 100644 --- a/clients/client-inspector2/package.json +++ b/clients/client-inspector2/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-inspector2/src/endpoint/endpointResolver.ts b/clients/client-inspector2/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-inspector2/src/endpoint/endpointResolver.ts +++ b/clients/client-inspector2/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-internetmonitor/package.json b/clients/client-internetmonitor/package.json index 057187353e26..34d802e29e97 100644 --- a/clients/client-internetmonitor/package.json +++ b/clients/client-internetmonitor/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-internetmonitor/src/endpoint/endpointResolver.ts b/clients/client-internetmonitor/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-internetmonitor/src/endpoint/endpointResolver.ts +++ b/clients/client-internetmonitor/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-iot-1click-devices-service/package.json b/clients/client-iot-1click-devices-service/package.json index 120f42751701..c90272c6f91f 100644 --- a/clients/client-iot-1click-devices-service/package.json +++ b/clients/client-iot-1click-devices-service/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-iot-1click-devices-service/src/endpoint/endpointResolver.ts b/clients/client-iot-1click-devices-service/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-iot-1click-devices-service/src/endpoint/endpointResolver.ts +++ b/clients/client-iot-1click-devices-service/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-iot-1click-projects/package.json b/clients/client-iot-1click-projects/package.json index 8494c30409ab..6f12981a988f 100644 --- a/clients/client-iot-1click-projects/package.json +++ b/clients/client-iot-1click-projects/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-iot-1click-projects/src/endpoint/endpointResolver.ts b/clients/client-iot-1click-projects/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-iot-1click-projects/src/endpoint/endpointResolver.ts +++ b/clients/client-iot-1click-projects/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-iot-data-plane/package.json b/clients/client-iot-data-plane/package.json index 56632ca6a40c..d89b563e2da9 100644 --- a/clients/client-iot-data-plane/package.json +++ b/clients/client-iot-data-plane/package.json @@ -33,31 +33,31 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-stream": "^3.1.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", + "@smithy/util-stream": "^3.1.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-iot-data-plane/src/endpoint/endpointResolver.ts b/clients/client-iot-data-plane/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-iot-data-plane/src/endpoint/endpointResolver.ts +++ b/clients/client-iot-data-plane/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-iot-events-data/package.json b/clients/client-iot-events-data/package.json index 1801632e1b8d..6e28e51db512 100644 --- a/clients/client-iot-events-data/package.json +++ b/clients/client-iot-events-data/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-iot-events-data/src/endpoint/endpointResolver.ts b/clients/client-iot-events-data/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-iot-events-data/src/endpoint/endpointResolver.ts +++ b/clients/client-iot-events-data/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-iot-events/package.json b/clients/client-iot-events/package.json index be0d9498271e..6a7e72efc390 100644 --- a/clients/client-iot-events/package.json +++ b/clients/client-iot-events/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-iot-events/src/endpoint/endpointResolver.ts b/clients/client-iot-events/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-iot-events/src/endpoint/endpointResolver.ts +++ b/clients/client-iot-events/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-iot-jobs-data-plane/package.json b/clients/client-iot-jobs-data-plane/package.json index 4c38450488c5..f0e9bf34e900 100644 --- a/clients/client-iot-jobs-data-plane/package.json +++ b/clients/client-iot-jobs-data-plane/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-iot-jobs-data-plane/src/endpoint/endpointResolver.ts b/clients/client-iot-jobs-data-plane/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-iot-jobs-data-plane/src/endpoint/endpointResolver.ts +++ b/clients/client-iot-jobs-data-plane/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-iot-wireless/package.json b/clients/client-iot-wireless/package.json index a700a51952eb..c0edd4977aba 100644 --- a/clients/client-iot-wireless/package.json +++ b/clients/client-iot-wireless/package.json @@ -33,31 +33,31 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-stream": "^3.1.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", + "@smithy/util-stream": "^3.1.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-iot-wireless/src/endpoint/endpointResolver.ts b/clients/client-iot-wireless/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-iot-wireless/src/endpoint/endpointResolver.ts +++ b/clients/client-iot-wireless/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-iot/package.json b/clients/client-iot/package.json index 04efcc35009f..4b832256f1cb 100644 --- a/clients/client-iot/package.json +++ b/clients/client-iot/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-iot/src/endpoint/endpointResolver.ts b/clients/client-iot/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-iot/src/endpoint/endpointResolver.ts +++ b/clients/client-iot/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-iotanalytics/package.json b/clients/client-iotanalytics/package.json index 16c2a0824fc6..ad0ddce27475 100644 --- a/clients/client-iotanalytics/package.json +++ b/clients/client-iotanalytics/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-iotanalytics/src/endpoint/endpointResolver.ts b/clients/client-iotanalytics/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-iotanalytics/src/endpoint/endpointResolver.ts +++ b/clients/client-iotanalytics/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-iotdeviceadvisor/package.json b/clients/client-iotdeviceadvisor/package.json index bcc13ded5653..6a3ea199c8f1 100644 --- a/clients/client-iotdeviceadvisor/package.json +++ b/clients/client-iotdeviceadvisor/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-iotdeviceadvisor/src/endpoint/endpointResolver.ts b/clients/client-iotdeviceadvisor/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-iotdeviceadvisor/src/endpoint/endpointResolver.ts +++ b/clients/client-iotdeviceadvisor/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-iotfleethub/package.json b/clients/client-iotfleethub/package.json index 29a4cdb00d5c..e0f3f6abfc7c 100644 --- a/clients/client-iotfleethub/package.json +++ b/clients/client-iotfleethub/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-iotfleethub/src/endpoint/endpointResolver.ts b/clients/client-iotfleethub/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-iotfleethub/src/endpoint/endpointResolver.ts +++ b/clients/client-iotfleethub/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-iotfleetwise/package.json b/clients/client-iotfleetwise/package.json index c653fbe19ee4..3286bf641c64 100644 --- a/clients/client-iotfleetwise/package.json +++ b/clients/client-iotfleetwise/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-iotfleetwise/src/endpoint/endpointResolver.ts b/clients/client-iotfleetwise/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-iotfleetwise/src/endpoint/endpointResolver.ts +++ b/clients/client-iotfleetwise/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-iotsecuretunneling/package.json b/clients/client-iotsecuretunneling/package.json index 4caf05d42f1b..137f64de6f84 100644 --- a/clients/client-iotsecuretunneling/package.json +++ b/clients/client-iotsecuretunneling/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-iotsecuretunneling/src/endpoint/endpointResolver.ts b/clients/client-iotsecuretunneling/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-iotsecuretunneling/src/endpoint/endpointResolver.ts +++ b/clients/client-iotsecuretunneling/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-iotsitewise/package.json b/clients/client-iotsitewise/package.json index 341a00523fc5..7f02ae2f0e61 100644 --- a/clients/client-iotsitewise/package.json +++ b/clients/client-iotsitewise/package.json @@ -33,32 +33,32 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", + "@smithy/util-waiter": "^3.1.3", "tslib": "^2.6.2", "uuid": "^9.0.1" }, diff --git a/clients/client-iotsitewise/src/endpoint/endpointResolver.ts b/clients/client-iotsitewise/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-iotsitewise/src/endpoint/endpointResolver.ts +++ b/clients/client-iotsitewise/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-iotthingsgraph/package.json b/clients/client-iotthingsgraph/package.json index 45b73caf4c15..d1c576dd2753 100644 --- a/clients/client-iotthingsgraph/package.json +++ b/clients/client-iotthingsgraph/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-iotthingsgraph/src/endpoint/endpointResolver.ts b/clients/client-iotthingsgraph/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-iotthingsgraph/src/endpoint/endpointResolver.ts +++ b/clients/client-iotthingsgraph/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-iottwinmaker/package.json b/clients/client-iottwinmaker/package.json index 21cfe46b4340..0f630a17d0d6 100644 --- a/clients/client-iottwinmaker/package.json +++ b/clients/client-iottwinmaker/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-iottwinmaker/src/endpoint/endpointResolver.ts b/clients/client-iottwinmaker/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-iottwinmaker/src/endpoint/endpointResolver.ts +++ b/clients/client-iottwinmaker/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-ivs-realtime/package.json b/clients/client-ivs-realtime/package.json index edcd4464b6f0..04bc0eb401ac 100644 --- a/clients/client-ivs-realtime/package.json +++ b/clients/client-ivs-realtime/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-ivs-realtime/src/endpoint/endpointResolver.ts b/clients/client-ivs-realtime/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-ivs-realtime/src/endpoint/endpointResolver.ts +++ b/clients/client-ivs-realtime/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-ivs/package.json b/clients/client-ivs/package.json index 7d36a0cf6684..6a82e8f4008d 100644 --- a/clients/client-ivs/package.json +++ b/clients/client-ivs/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-ivs/src/endpoint/endpointResolver.ts b/clients/client-ivs/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-ivs/src/endpoint/endpointResolver.ts +++ b/clients/client-ivs/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-ivschat/package.json b/clients/client-ivschat/package.json index 99d925f18016..8dc8e98e33ba 100644 --- a/clients/client-ivschat/package.json +++ b/clients/client-ivschat/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-ivschat/src/endpoint/endpointResolver.ts b/clients/client-ivschat/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-ivschat/src/endpoint/endpointResolver.ts +++ b/clients/client-ivschat/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-kafka/package.json b/clients/client-kafka/package.json index 926f42049821..83346a7761da 100644 --- a/clients/client-kafka/package.json +++ b/clients/client-kafka/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-kafka/src/endpoint/endpointResolver.ts b/clients/client-kafka/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-kafka/src/endpoint/endpointResolver.ts +++ b/clients/client-kafka/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-kafkaconnect/package.json b/clients/client-kafkaconnect/package.json index 4ff9203f42db..4b207172dc81 100644 --- a/clients/client-kafkaconnect/package.json +++ b/clients/client-kafkaconnect/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-kafkaconnect/src/endpoint/endpointResolver.ts b/clients/client-kafkaconnect/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-kafkaconnect/src/endpoint/endpointResolver.ts +++ b/clients/client-kafkaconnect/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-kendra-ranking/package.json b/clients/client-kendra-ranking/package.json index cd7e0bfcb0e9..895f8d740f6d 100644 --- a/clients/client-kendra-ranking/package.json +++ b/clients/client-kendra-ranking/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-kendra-ranking/src/endpoint/endpointResolver.ts b/clients/client-kendra-ranking/src/endpoint/endpointResolver.ts index 26fe4c3775a6..b08a72482ca0 100644 --- a/clients/client-kendra-ranking/src/endpoint/endpointResolver.ts +++ b/clients/client-kendra-ranking/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-kendra/package.json b/clients/client-kendra/package.json index c390183af0b4..f7a678cb788a 100644 --- a/clients/client-kendra/package.json +++ b/clients/client-kendra/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-kendra/src/endpoint/endpointResolver.ts b/clients/client-kendra/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-kendra/src/endpoint/endpointResolver.ts +++ b/clients/client-kendra/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-keyspaces/package.json b/clients/client-keyspaces/package.json index cdef8fc40169..fbfe45d96d66 100644 --- a/clients/client-keyspaces/package.json +++ b/clients/client-keyspaces/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-keyspaces/src/endpoint/endpointResolver.ts b/clients/client-keyspaces/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-keyspaces/src/endpoint/endpointResolver.ts +++ b/clients/client-keyspaces/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-kinesis-analytics-v2/package.json b/clients/client-kinesis-analytics-v2/package.json index fb233230d499..f7dd47b6e2e4 100644 --- a/clients/client-kinesis-analytics-v2/package.json +++ b/clients/client-kinesis-analytics-v2/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-kinesis-analytics-v2/src/endpoint/endpointResolver.ts b/clients/client-kinesis-analytics-v2/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-kinesis-analytics-v2/src/endpoint/endpointResolver.ts +++ b/clients/client-kinesis-analytics-v2/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-kinesis-analytics/package.json b/clients/client-kinesis-analytics/package.json index 5c5fd5b9de75..b9ae0247990e 100644 --- a/clients/client-kinesis-analytics/package.json +++ b/clients/client-kinesis-analytics/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-kinesis-analytics/src/endpoint/endpointResolver.ts b/clients/client-kinesis-analytics/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-kinesis-analytics/src/endpoint/endpointResolver.ts +++ b/clients/client-kinesis-analytics/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-kinesis-video-archived-media/package.json b/clients/client-kinesis-video-archived-media/package.json index 1ede2139dfc2..a61a1d5c1e23 100644 --- a/clients/client-kinesis-video-archived-media/package.json +++ b/clients/client-kinesis-video-archived-media/package.json @@ -33,31 +33,31 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-stream": "^3.1.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", + "@smithy/util-stream": "^3.1.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-kinesis-video-archived-media/src/endpoint/endpointResolver.ts b/clients/client-kinesis-video-archived-media/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-kinesis-video-archived-media/src/endpoint/endpointResolver.ts +++ b/clients/client-kinesis-video-archived-media/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-kinesis-video-media/package.json b/clients/client-kinesis-video-media/package.json index 401e4226dc42..e0e1c1d2b15d 100644 --- a/clients/client-kinesis-video-media/package.json +++ b/clients/client-kinesis-video-media/package.json @@ -33,31 +33,31 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-stream": "^3.1.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", + "@smithy/util-stream": "^3.1.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-kinesis-video-media/src/endpoint/endpointResolver.ts b/clients/client-kinesis-video-media/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-kinesis-video-media/src/endpoint/endpointResolver.ts +++ b/clients/client-kinesis-video-media/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-kinesis-video-signaling/package.json b/clients/client-kinesis-video-signaling/package.json index 451c21356604..f193e442c353 100644 --- a/clients/client-kinesis-video-signaling/package.json +++ b/clients/client-kinesis-video-signaling/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-kinesis-video-signaling/src/endpoint/endpointResolver.ts b/clients/client-kinesis-video-signaling/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-kinesis-video-signaling/src/endpoint/endpointResolver.ts +++ b/clients/client-kinesis-video-signaling/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-kinesis-video-webrtc-storage/package.json b/clients/client-kinesis-video-webrtc-storage/package.json index 8f3476c3ca28..bf8f2319d78d 100644 --- a/clients/client-kinesis-video-webrtc-storage/package.json +++ b/clients/client-kinesis-video-webrtc-storage/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-kinesis-video-webrtc-storage/src/endpoint/endpointResolver.ts b/clients/client-kinesis-video-webrtc-storage/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-kinesis-video-webrtc-storage/src/endpoint/endpointResolver.ts +++ b/clients/client-kinesis-video-webrtc-storage/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-kinesis-video/package.json b/clients/client-kinesis-video/package.json index f1e9143b2bb6..0c9336d1a802 100644 --- a/clients/client-kinesis-video/package.json +++ b/clients/client-kinesis-video/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-kinesis-video/src/endpoint/endpointResolver.ts b/clients/client-kinesis-video/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-kinesis-video/src/endpoint/endpointResolver.ts +++ b/clients/client-kinesis-video/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-kinesis/package.json b/clients/client-kinesis/package.json index 5e0fb80c3259..d1ab4c3c553b 100644 --- a/clients/client-kinesis/package.json +++ b/clients/client-kinesis/package.json @@ -34,35 +34,35 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/eventstream-serde-browser": "^3.0.6", - "@smithy/eventstream-serde-config-resolver": "^3.0.3", - "@smithy/eventstream-serde-node": "^3.0.5", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/eventstream-serde-browser": "^3.0.7", + "@smithy/eventstream-serde-config-resolver": "^3.0.4", + "@smithy/eventstream-serde-node": "^3.0.6", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", + "@smithy/util-waiter": "^3.1.3", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/clients/client-kinesis/src/endpoint/endpointResolver.ts b/clients/client-kinesis/src/endpoint/endpointResolver.ts index 26fe4c3775a6..3ebd0e95bb2f 100644 --- a/clients/client-kinesis/src/endpoint/endpointResolver.ts +++ b/clients/client-kinesis/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["ConsumerARN", "Endpoint", "OperationType", "Region", "ResourceARN", "StreamARN", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-kms/package.json b/clients/client-kms/package.json index bfcbf556df99..3c8b3ddf83f7 100644 --- a/clients/client-kms/package.json +++ b/clients/client-kms/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-kms/src/endpoint/endpointResolver.ts b/clients/client-kms/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-kms/src/endpoint/endpointResolver.ts +++ b/clients/client-kms/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-lakeformation/package.json b/clients/client-lakeformation/package.json index 5c383eb713dc..02faedb5f95d 100644 --- a/clients/client-lakeformation/package.json +++ b/clients/client-lakeformation/package.json @@ -33,31 +33,31 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-stream": "^3.1.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", + "@smithy/util-stream": "^3.1.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-lakeformation/src/endpoint/endpointResolver.ts b/clients/client-lakeformation/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-lakeformation/src/endpoint/endpointResolver.ts +++ b/clients/client-lakeformation/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-lambda/package.json b/clients/client-lambda/package.json index 9b07c41f34f3..deb61656fe1e 100644 --- a/clients/client-lambda/package.json +++ b/clients/client-lambda/package.json @@ -33,36 +33,36 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/eventstream-serde-browser": "^3.0.6", - "@smithy/eventstream-serde-config-resolver": "^3.0.3", - "@smithy/eventstream-serde-node": "^3.0.5", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/eventstream-serde-browser": "^3.0.7", + "@smithy/eventstream-serde-config-resolver": "^3.0.4", + "@smithy/eventstream-serde-node": "^3.0.6", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-stream": "^3.1.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", + "@smithy/util-stream": "^3.1.4", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", + "@smithy/util-waiter": "^3.1.3", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/clients/client-lambda/src/endpoint/endpointResolver.ts b/clients/client-lambda/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-lambda/src/endpoint/endpointResolver.ts +++ b/clients/client-lambda/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-launch-wizard/package.json b/clients/client-launch-wizard/package.json index 9d665a307689..ad525b8eada1 100644 --- a/clients/client-launch-wizard/package.json +++ b/clients/client-launch-wizard/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-launch-wizard/src/endpoint/endpointResolver.ts b/clients/client-launch-wizard/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-launch-wizard/src/endpoint/endpointResolver.ts +++ b/clients/client-launch-wizard/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-lex-model-building-service/package.json b/clients/client-lex-model-building-service/package.json index 18d4e53f01ea..fbca61010741 100644 --- a/clients/client-lex-model-building-service/package.json +++ b/clients/client-lex-model-building-service/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-lex-model-building-service/src/endpoint/endpointResolver.ts b/clients/client-lex-model-building-service/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-lex-model-building-service/src/endpoint/endpointResolver.ts +++ b/clients/client-lex-model-building-service/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-lex-models-v2/package.json b/clients/client-lex-models-v2/package.json index 36a5cd2e8377..43aff894df73 100644 --- a/clients/client-lex-models-v2/package.json +++ b/clients/client-lex-models-v2/package.json @@ -33,32 +33,32 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", + "@smithy/util-waiter": "^3.1.3", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/clients/client-lex-models-v2/src/endpoint/endpointResolver.ts b/clients/client-lex-models-v2/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-lex-models-v2/src/endpoint/endpointResolver.ts +++ b/clients/client-lex-models-v2/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-lex-runtime-service/package.json b/clients/client-lex-runtime-service/package.json index df42fad2dc9d..b24c9eb73eb1 100644 --- a/clients/client-lex-runtime-service/package.json +++ b/clients/client-lex-runtime-service/package.json @@ -35,31 +35,31 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-stream": "^3.1.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", + "@smithy/util-stream": "^3.1.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-lex-runtime-service/src/endpoint/endpointResolver.ts b/clients/client-lex-runtime-service/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-lex-runtime-service/src/endpoint/endpointResolver.ts +++ b/clients/client-lex-runtime-service/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-lex-runtime-v2/package.json b/clients/client-lex-runtime-v2/package.json index c915a55c94b7..330962822307 100644 --- a/clients/client-lex-runtime-v2/package.json +++ b/clients/client-lex-runtime-v2/package.json @@ -35,34 +35,34 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/eventstream-serde-browser": "^3.0.6", - "@smithy/eventstream-serde-config-resolver": "^3.0.3", - "@smithy/eventstream-serde-node": "^3.0.5", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/eventstream-serde-browser": "^3.0.7", + "@smithy/eventstream-serde-config-resolver": "^3.0.4", + "@smithy/eventstream-serde-node": "^3.0.6", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-stream": "^3.1.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", + "@smithy/util-stream": "^3.1.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-lex-runtime-v2/src/endpoint/endpointResolver.ts b/clients/client-lex-runtime-v2/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-lex-runtime-v2/src/endpoint/endpointResolver.ts +++ b/clients/client-lex-runtime-v2/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-license-manager-linux-subscriptions/package.json b/clients/client-license-manager-linux-subscriptions/package.json index 416c307d4bea..d85b70d74c8d 100644 --- a/clients/client-license-manager-linux-subscriptions/package.json +++ b/clients/client-license-manager-linux-subscriptions/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-license-manager-linux-subscriptions/src/endpoint/endpointResolver.ts b/clients/client-license-manager-linux-subscriptions/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-license-manager-linux-subscriptions/src/endpoint/endpointResolver.ts +++ b/clients/client-license-manager-linux-subscriptions/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-license-manager-user-subscriptions/package.json b/clients/client-license-manager-user-subscriptions/package.json index d9ba21334e58..3a7c48533789 100644 --- a/clients/client-license-manager-user-subscriptions/package.json +++ b/clients/client-license-manager-user-subscriptions/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-license-manager-user-subscriptions/src/endpoint/endpointResolver.ts b/clients/client-license-manager-user-subscriptions/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-license-manager-user-subscriptions/src/endpoint/endpointResolver.ts +++ b/clients/client-license-manager-user-subscriptions/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-license-manager/package.json b/clients/client-license-manager/package.json index aba1efb4bbb6..10a31fcac5a0 100644 --- a/clients/client-license-manager/package.json +++ b/clients/client-license-manager/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-license-manager/src/endpoint/endpointResolver.ts b/clients/client-license-manager/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-license-manager/src/endpoint/endpointResolver.ts +++ b/clients/client-license-manager/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-lightsail/package.json b/clients/client-lightsail/package.json index adc2581ec20e..f2c813375eb6 100644 --- a/clients/client-lightsail/package.json +++ b/clients/client-lightsail/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-lightsail/src/endpoint/endpointResolver.ts b/clients/client-lightsail/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-lightsail/src/endpoint/endpointResolver.ts +++ b/clients/client-lightsail/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-location/package.json b/clients/client-location/package.json index 0962b2764177..4b03927c80e0 100644 --- a/clients/client-location/package.json +++ b/clients/client-location/package.json @@ -33,31 +33,31 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-stream": "^3.1.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", + "@smithy/util-stream": "^3.1.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-location/src/endpoint/endpointResolver.ts b/clients/client-location/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-location/src/endpoint/endpointResolver.ts +++ b/clients/client-location/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-lookoutequipment/package.json b/clients/client-lookoutequipment/package.json index 15891663ceb9..b3d67c20f057 100644 --- a/clients/client-lookoutequipment/package.json +++ b/clients/client-lookoutequipment/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-lookoutequipment/src/endpoint/endpointResolver.ts b/clients/client-lookoutequipment/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-lookoutequipment/src/endpoint/endpointResolver.ts +++ b/clients/client-lookoutequipment/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-lookoutmetrics/package.json b/clients/client-lookoutmetrics/package.json index f52e5fcb2a35..e669199e51c6 100644 --- a/clients/client-lookoutmetrics/package.json +++ b/clients/client-lookoutmetrics/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-lookoutmetrics/src/endpoint/endpointResolver.ts b/clients/client-lookoutmetrics/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-lookoutmetrics/src/endpoint/endpointResolver.ts +++ b/clients/client-lookoutmetrics/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-lookoutvision/package.json b/clients/client-lookoutvision/package.json index 758ea7e4a3ee..7fc9b04531fa 100644 --- a/clients/client-lookoutvision/package.json +++ b/clients/client-lookoutvision/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-lookoutvision/src/endpoint/endpointResolver.ts b/clients/client-lookoutvision/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-lookoutvision/src/endpoint/endpointResolver.ts +++ b/clients/client-lookoutvision/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-m2/package.json b/clients/client-m2/package.json index 993b0e1b21ea..a904df3b30e0 100644 --- a/clients/client-m2/package.json +++ b/clients/client-m2/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-m2/src/endpoint/endpointResolver.ts b/clients/client-m2/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-m2/src/endpoint/endpointResolver.ts +++ b/clients/client-m2/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-machine-learning/package.json b/clients/client-machine-learning/package.json index ed736d10434c..aaa348679f6c 100644 --- a/clients/client-machine-learning/package.json +++ b/clients/client-machine-learning/package.json @@ -34,32 +34,32 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", + "@smithy/util-waiter": "^3.1.3", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/clients/client-machine-learning/src/endpoint/endpointResolver.ts b/clients/client-machine-learning/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-machine-learning/src/endpoint/endpointResolver.ts +++ b/clients/client-machine-learning/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-macie2/package.json b/clients/client-macie2/package.json index 3d2bf8ac06e6..b5c3b5c6ed39 100644 --- a/clients/client-macie2/package.json +++ b/clients/client-macie2/package.json @@ -33,32 +33,32 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", + "@smithy/util-waiter": "^3.1.3", "tslib": "^2.6.2", "uuid": "^9.0.1" }, diff --git a/clients/client-macie2/src/endpoint/endpointResolver.ts b/clients/client-macie2/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-macie2/src/endpoint/endpointResolver.ts +++ b/clients/client-macie2/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-mailmanager/package.json b/clients/client-mailmanager/package.json index 4daacc5f6e7d..8533e09ed549 100644 --- a/clients/client-mailmanager/package.json +++ b/clients/client-mailmanager/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-mailmanager/src/endpoint/endpointResolver.ts b/clients/client-mailmanager/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-mailmanager/src/endpoint/endpointResolver.ts +++ b/clients/client-mailmanager/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-managedblockchain-query/package.json b/clients/client-managedblockchain-query/package.json index 5deb42edc821..ab360ad7b9c4 100644 --- a/clients/client-managedblockchain-query/package.json +++ b/clients/client-managedblockchain-query/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-managedblockchain-query/src/endpoint/endpointResolver.ts b/clients/client-managedblockchain-query/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-managedblockchain-query/src/endpoint/endpointResolver.ts +++ b/clients/client-managedblockchain-query/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-managedblockchain/package.json b/clients/client-managedblockchain/package.json index c0c47d7a6b0e..615be8cb595f 100644 --- a/clients/client-managedblockchain/package.json +++ b/clients/client-managedblockchain/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-managedblockchain/src/endpoint/endpointResolver.ts b/clients/client-managedblockchain/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-managedblockchain/src/endpoint/endpointResolver.ts +++ b/clients/client-managedblockchain/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-marketplace-agreement/package.json b/clients/client-marketplace-agreement/package.json index a272d318d945..3a26157b6260 100644 --- a/clients/client-marketplace-agreement/package.json +++ b/clients/client-marketplace-agreement/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-marketplace-agreement/src/endpoint/endpointResolver.ts b/clients/client-marketplace-agreement/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-marketplace-agreement/src/endpoint/endpointResolver.ts +++ b/clients/client-marketplace-agreement/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-marketplace-catalog/package.json b/clients/client-marketplace-catalog/package.json index 0ee6204e0c2d..a054cb6ac4bb 100644 --- a/clients/client-marketplace-catalog/package.json +++ b/clients/client-marketplace-catalog/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-marketplace-catalog/src/endpoint/endpointResolver.ts b/clients/client-marketplace-catalog/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-marketplace-catalog/src/endpoint/endpointResolver.ts +++ b/clients/client-marketplace-catalog/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-marketplace-commerce-analytics/package.json b/clients/client-marketplace-commerce-analytics/package.json index 7ae0417bac34..628ae1fe50f7 100644 --- a/clients/client-marketplace-commerce-analytics/package.json +++ b/clients/client-marketplace-commerce-analytics/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-marketplace-commerce-analytics/src/endpoint/endpointResolver.ts b/clients/client-marketplace-commerce-analytics/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-marketplace-commerce-analytics/src/endpoint/endpointResolver.ts +++ b/clients/client-marketplace-commerce-analytics/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-marketplace-deployment/package.json b/clients/client-marketplace-deployment/package.json index 37cadc1c103b..b6c1747ffc05 100644 --- a/clients/client-marketplace-deployment/package.json +++ b/clients/client-marketplace-deployment/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-marketplace-deployment/src/endpoint/endpointResolver.ts b/clients/client-marketplace-deployment/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-marketplace-deployment/src/endpoint/endpointResolver.ts +++ b/clients/client-marketplace-deployment/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-marketplace-entitlement-service/package.json b/clients/client-marketplace-entitlement-service/package.json index e58edd7985ff..47ea4a5708a6 100644 --- a/clients/client-marketplace-entitlement-service/package.json +++ b/clients/client-marketplace-entitlement-service/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-marketplace-entitlement-service/src/endpoint/endpointResolver.ts b/clients/client-marketplace-entitlement-service/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-marketplace-entitlement-service/src/endpoint/endpointResolver.ts +++ b/clients/client-marketplace-entitlement-service/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-marketplace-metering/package.json b/clients/client-marketplace-metering/package.json index 0f8e862ae56c..2b637b40be2a 100644 --- a/clients/client-marketplace-metering/package.json +++ b/clients/client-marketplace-metering/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-marketplace-metering/src/endpoint/endpointResolver.ts b/clients/client-marketplace-metering/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-marketplace-metering/src/endpoint/endpointResolver.ts +++ b/clients/client-marketplace-metering/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-mediaconnect/package.json b/clients/client-mediaconnect/package.json index 89f8df091d66..95bb575bf971 100644 --- a/clients/client-mediaconnect/package.json +++ b/clients/client-mediaconnect/package.json @@ -33,32 +33,32 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", + "@smithy/util-waiter": "^3.1.3", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/clients/client-mediaconnect/src/endpoint/endpointResolver.ts b/clients/client-mediaconnect/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-mediaconnect/src/endpoint/endpointResolver.ts +++ b/clients/client-mediaconnect/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-mediaconvert/package.json b/clients/client-mediaconvert/package.json index 2216e7430084..dc7d3651a3fb 100644 --- a/clients/client-mediaconvert/package.json +++ b/clients/client-mediaconvert/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-mediaconvert/src/endpoint/endpointResolver.ts b/clients/client-mediaconvert/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-mediaconvert/src/endpoint/endpointResolver.ts +++ b/clients/client-mediaconvert/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-medialive/package.json b/clients/client-medialive/package.json index 4390df5a06d0..667860ffebe6 100644 --- a/clients/client-medialive/package.json +++ b/clients/client-medialive/package.json @@ -33,33 +33,33 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-stream": "^3.1.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", + "@smithy/util-stream": "^3.1.4", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", + "@smithy/util-waiter": "^3.1.3", "tslib": "^2.6.2", "uuid": "^9.0.1" }, diff --git a/clients/client-medialive/src/endpoint/endpointResolver.ts b/clients/client-medialive/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-medialive/src/endpoint/endpointResolver.ts +++ b/clients/client-medialive/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-mediapackage-vod/package.json b/clients/client-mediapackage-vod/package.json index 0ba3cfbbef9a..a0f35e2ffc3f 100644 --- a/clients/client-mediapackage-vod/package.json +++ b/clients/client-mediapackage-vod/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-mediapackage-vod/src/endpoint/endpointResolver.ts b/clients/client-mediapackage-vod/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-mediapackage-vod/src/endpoint/endpointResolver.ts +++ b/clients/client-mediapackage-vod/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-mediapackage/package.json b/clients/client-mediapackage/package.json index 6d695d84a85b..649573d75ea9 100644 --- a/clients/client-mediapackage/package.json +++ b/clients/client-mediapackage/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-mediapackage/src/endpoint/endpointResolver.ts b/clients/client-mediapackage/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-mediapackage/src/endpoint/endpointResolver.ts +++ b/clients/client-mediapackage/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-mediapackagev2/package.json b/clients/client-mediapackagev2/package.json index 6b159aef9965..bc4e366e8d68 100644 --- a/clients/client-mediapackagev2/package.json +++ b/clients/client-mediapackagev2/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-mediapackagev2/src/endpoint/endpointResolver.ts b/clients/client-mediapackagev2/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-mediapackagev2/src/endpoint/endpointResolver.ts +++ b/clients/client-mediapackagev2/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-mediastore-data/package.json b/clients/client-mediastore-data/package.json index cc14840cdd20..556ac2aa2207 100644 --- a/clients/client-mediastore-data/package.json +++ b/clients/client-mediastore-data/package.json @@ -35,31 +35,31 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-stream": "^3.1.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", + "@smithy/util-stream": "^3.1.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-mediastore-data/src/endpoint/endpointResolver.ts b/clients/client-mediastore-data/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-mediastore-data/src/endpoint/endpointResolver.ts +++ b/clients/client-mediastore-data/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-mediastore/package.json b/clients/client-mediastore/package.json index bcf61e0e0661..793ace3b7e8f 100644 --- a/clients/client-mediastore/package.json +++ b/clients/client-mediastore/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-mediastore/src/endpoint/endpointResolver.ts b/clients/client-mediastore/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-mediastore/src/endpoint/endpointResolver.ts +++ b/clients/client-mediastore/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-mediatailor/package.json b/clients/client-mediatailor/package.json index 1666e7567279..bc2d68f0c1b1 100644 --- a/clients/client-mediatailor/package.json +++ b/clients/client-mediatailor/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-mediatailor/src/endpoint/endpointResolver.ts b/clients/client-mediatailor/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-mediatailor/src/endpoint/endpointResolver.ts +++ b/clients/client-mediatailor/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-medical-imaging/package.json b/clients/client-medical-imaging/package.json index fa224fea7953..589ecd533c00 100644 --- a/clients/client-medical-imaging/package.json +++ b/clients/client-medical-imaging/package.json @@ -33,31 +33,31 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-stream": "^3.1.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", + "@smithy/util-stream": "^3.1.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-medical-imaging/src/endpoint/endpointResolver.ts b/clients/client-medical-imaging/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-medical-imaging/src/endpoint/endpointResolver.ts +++ b/clients/client-medical-imaging/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-memorydb/package.json b/clients/client-memorydb/package.json index 2f9c90ad818a..855bb0eaa53a 100644 --- a/clients/client-memorydb/package.json +++ b/clients/client-memorydb/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-memorydb/src/endpoint/endpointResolver.ts b/clients/client-memorydb/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-memorydb/src/endpoint/endpointResolver.ts +++ b/clients/client-memorydb/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-mgn/package.json b/clients/client-mgn/package.json index 70050d593f14..c9d72a634b05 100644 --- a/clients/client-mgn/package.json +++ b/clients/client-mgn/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-mgn/src/endpoint/endpointResolver.ts b/clients/client-mgn/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-mgn/src/endpoint/endpointResolver.ts +++ b/clients/client-mgn/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-migration-hub-refactor-spaces/package.json b/clients/client-migration-hub-refactor-spaces/package.json index 1f0d0541bbab..a89148415937 100644 --- a/clients/client-migration-hub-refactor-spaces/package.json +++ b/clients/client-migration-hub-refactor-spaces/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-migration-hub-refactor-spaces/src/endpoint/endpointResolver.ts b/clients/client-migration-hub-refactor-spaces/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-migration-hub-refactor-spaces/src/endpoint/endpointResolver.ts +++ b/clients/client-migration-hub-refactor-spaces/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-migration-hub/package.json b/clients/client-migration-hub/package.json index db50168059fd..6fdd73ae03a2 100644 --- a/clients/client-migration-hub/package.json +++ b/clients/client-migration-hub/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-migration-hub/src/endpoint/endpointResolver.ts b/clients/client-migration-hub/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-migration-hub/src/endpoint/endpointResolver.ts +++ b/clients/client-migration-hub/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-migrationhub-config/package.json b/clients/client-migrationhub-config/package.json index 47f4cf9f14cc..45e1a10f51ee 100644 --- a/clients/client-migrationhub-config/package.json +++ b/clients/client-migrationhub-config/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-migrationhub-config/src/endpoint/endpointResolver.ts b/clients/client-migrationhub-config/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-migrationhub-config/src/endpoint/endpointResolver.ts +++ b/clients/client-migrationhub-config/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-migrationhuborchestrator/package.json b/clients/client-migrationhuborchestrator/package.json index 53e6c73f56ca..a6fb7e866caf 100644 --- a/clients/client-migrationhuborchestrator/package.json +++ b/clients/client-migrationhuborchestrator/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-migrationhuborchestrator/src/endpoint/endpointResolver.ts b/clients/client-migrationhuborchestrator/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-migrationhuborchestrator/src/endpoint/endpointResolver.ts +++ b/clients/client-migrationhuborchestrator/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-migrationhubstrategy/package.json b/clients/client-migrationhubstrategy/package.json index f4d4c163e8a4..3594283ea268 100644 --- a/clients/client-migrationhubstrategy/package.json +++ b/clients/client-migrationhubstrategy/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-migrationhubstrategy/src/endpoint/endpointResolver.ts b/clients/client-migrationhubstrategy/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-migrationhubstrategy/src/endpoint/endpointResolver.ts +++ b/clients/client-migrationhubstrategy/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-mq/package.json b/clients/client-mq/package.json index bb892514df4c..5178336be858 100644 --- a/clients/client-mq/package.json +++ b/clients/client-mq/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-mq/src/endpoint/endpointResolver.ts b/clients/client-mq/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-mq/src/endpoint/endpointResolver.ts +++ b/clients/client-mq/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-mturk/package.json b/clients/client-mturk/package.json index 4fc8f0f542d4..38a2d1cbcf45 100644 --- a/clients/client-mturk/package.json +++ b/clients/client-mturk/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-mturk/src/endpoint/endpointResolver.ts b/clients/client-mturk/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-mturk/src/endpoint/endpointResolver.ts +++ b/clients/client-mturk/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-mwaa/package.json b/clients/client-mwaa/package.json index b2440a9182cb..c7fc5359454e 100644 --- a/clients/client-mwaa/package.json +++ b/clients/client-mwaa/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-mwaa/src/endpoint/endpointResolver.ts b/clients/client-mwaa/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-mwaa/src/endpoint/endpointResolver.ts +++ b/clients/client-mwaa/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-neptune-graph/package.json b/clients/client-neptune-graph/package.json index 4cbd30d7583e..0d8ddefd97c5 100644 --- a/clients/client-neptune-graph/package.json +++ b/clients/client-neptune-graph/package.json @@ -33,33 +33,33 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-stream": "^3.1.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", + "@smithy/util-stream": "^3.1.4", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", + "@smithy/util-waiter": "^3.1.3", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/clients/client-neptune-graph/src/endpoint/endpointResolver.ts b/clients/client-neptune-graph/src/endpoint/endpointResolver.ts index 26fe4c3775a6..73609ea7b260 100644 --- a/clients/client-neptune-graph/src/endpoint/endpointResolver.ts +++ b/clients/client-neptune-graph/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["ApiType", "Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-neptune/package.json b/clients/client-neptune/package.json index d5f8781b86c7..47cd73bbe643 100644 --- a/clients/client-neptune/package.json +++ b/clients/client-neptune/package.json @@ -34,32 +34,32 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", + "@smithy/util-waiter": "^3.1.3", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/clients/client-neptune/src/endpoint/endpointResolver.ts b/clients/client-neptune/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-neptune/src/endpoint/endpointResolver.ts +++ b/clients/client-neptune/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-neptunedata/package.json b/clients/client-neptunedata/package.json index a697cd85ab32..4fb75ee1e307 100644 --- a/clients/client-neptunedata/package.json +++ b/clients/client-neptunedata/package.json @@ -33,31 +33,31 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-stream": "^3.1.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", + "@smithy/util-stream": "^3.1.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-neptunedata/src/endpoint/endpointResolver.ts b/clients/client-neptunedata/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-neptunedata/src/endpoint/endpointResolver.ts +++ b/clients/client-neptunedata/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-network-firewall/package.json b/clients/client-network-firewall/package.json index 1cb11ee0e9a0..fb7160935cb9 100644 --- a/clients/client-network-firewall/package.json +++ b/clients/client-network-firewall/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-network-firewall/src/endpoint/endpointResolver.ts b/clients/client-network-firewall/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-network-firewall/src/endpoint/endpointResolver.ts +++ b/clients/client-network-firewall/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-networkmanager/package.json b/clients/client-networkmanager/package.json index 2c3f10e1c3a7..014ca9917791 100644 --- a/clients/client-networkmanager/package.json +++ b/clients/client-networkmanager/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-networkmanager/src/endpoint/endpointResolver.ts b/clients/client-networkmanager/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-networkmanager/src/endpoint/endpointResolver.ts +++ b/clients/client-networkmanager/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-networkmonitor/package.json b/clients/client-networkmonitor/package.json index 9a907301d06f..15d1e3b7b3c7 100644 --- a/clients/client-networkmonitor/package.json +++ b/clients/client-networkmonitor/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-networkmonitor/src/endpoint/endpointResolver.ts b/clients/client-networkmonitor/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-networkmonitor/src/endpoint/endpointResolver.ts +++ b/clients/client-networkmonitor/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-nimble/package.json b/clients/client-nimble/package.json index 6174c2748674..91a9a2f2296b 100644 --- a/clients/client-nimble/package.json +++ b/clients/client-nimble/package.json @@ -33,32 +33,32 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", + "@smithy/util-waiter": "^3.1.3", "tslib": "^2.6.2", "uuid": "^9.0.1" }, diff --git a/clients/client-nimble/src/endpoint/endpointResolver.ts b/clients/client-nimble/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-nimble/src/endpoint/endpointResolver.ts +++ b/clients/client-nimble/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-oam/package.json b/clients/client-oam/package.json index e1f53ea13e26..a3a5e5de1614 100644 --- a/clients/client-oam/package.json +++ b/clients/client-oam/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-oam/src/endpoint/endpointResolver.ts b/clients/client-oam/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-oam/src/endpoint/endpointResolver.ts +++ b/clients/client-oam/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-omics/package.json b/clients/client-omics/package.json index 7913130bf580..557a82add60d 100644 --- a/clients/client-omics/package.json +++ b/clients/client-omics/package.json @@ -33,33 +33,33 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-stream": "^3.1.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", + "@smithy/util-stream": "^3.1.4", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", + "@smithy/util-waiter": "^3.1.3", "tslib": "^2.6.2", "uuid": "^9.0.1" }, diff --git a/clients/client-omics/src/endpoint/endpointResolver.ts b/clients/client-omics/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-omics/src/endpoint/endpointResolver.ts +++ b/clients/client-omics/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-opensearch/package.json b/clients/client-opensearch/package.json index c7557568cef4..05093a991581 100644 --- a/clients/client-opensearch/package.json +++ b/clients/client-opensearch/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-opensearch/src/endpoint/endpointResolver.ts b/clients/client-opensearch/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-opensearch/src/endpoint/endpointResolver.ts +++ b/clients/client-opensearch/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-opensearchserverless/package.json b/clients/client-opensearchserverless/package.json index a64ee86f854e..d3b453253dd1 100644 --- a/clients/client-opensearchserverless/package.json +++ b/clients/client-opensearchserverless/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-opensearchserverless/src/endpoint/endpointResolver.ts b/clients/client-opensearchserverless/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-opensearchserverless/src/endpoint/endpointResolver.ts +++ b/clients/client-opensearchserverless/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-opsworks/package.json b/clients/client-opsworks/package.json index b450f74c7820..c143761b120a 100644 --- a/clients/client-opsworks/package.json +++ b/clients/client-opsworks/package.json @@ -33,32 +33,32 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", + "@smithy/util-waiter": "^3.1.3", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/clients/client-opsworks/src/endpoint/endpointResolver.ts b/clients/client-opsworks/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-opsworks/src/endpoint/endpointResolver.ts +++ b/clients/client-opsworks/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-opsworkscm/package.json b/clients/client-opsworkscm/package.json index 92d903c1549e..28a29526b761 100644 --- a/clients/client-opsworkscm/package.json +++ b/clients/client-opsworkscm/package.json @@ -33,32 +33,32 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", + "@smithy/util-waiter": "^3.1.3", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/clients/client-opsworkscm/src/endpoint/endpointResolver.ts b/clients/client-opsworkscm/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-opsworkscm/src/endpoint/endpointResolver.ts +++ b/clients/client-opsworkscm/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-organizations/package.json b/clients/client-organizations/package.json index c43ea153a4d2..3559ab3c8dc4 100644 --- a/clients/client-organizations/package.json +++ b/clients/client-organizations/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-organizations/src/endpoint/endpointResolver.ts b/clients/client-organizations/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-organizations/src/endpoint/endpointResolver.ts +++ b/clients/client-organizations/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-osis/package.json b/clients/client-osis/package.json index 817631f01065..d7f34c742f3d 100644 --- a/clients/client-osis/package.json +++ b/clients/client-osis/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-osis/src/endpoint/endpointResolver.ts b/clients/client-osis/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-osis/src/endpoint/endpointResolver.ts +++ b/clients/client-osis/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-outposts/package.json b/clients/client-outposts/package.json index d6555d95cb09..9e31aa014712 100644 --- a/clients/client-outposts/package.json +++ b/clients/client-outposts/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-outposts/src/endpoint/endpointResolver.ts b/clients/client-outposts/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-outposts/src/endpoint/endpointResolver.ts +++ b/clients/client-outposts/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-panorama/package.json b/clients/client-panorama/package.json index bdcf99af07b7..b360b97d8c99 100644 --- a/clients/client-panorama/package.json +++ b/clients/client-panorama/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-panorama/src/endpoint/endpointResolver.ts b/clients/client-panorama/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-panorama/src/endpoint/endpointResolver.ts +++ b/clients/client-panorama/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-payment-cryptography-data/package.json b/clients/client-payment-cryptography-data/package.json index e8dc412941b3..5eb2f5030d99 100644 --- a/clients/client-payment-cryptography-data/package.json +++ b/clients/client-payment-cryptography-data/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-payment-cryptography-data/src/endpoint/endpointResolver.ts b/clients/client-payment-cryptography-data/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-payment-cryptography-data/src/endpoint/endpointResolver.ts +++ b/clients/client-payment-cryptography-data/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-payment-cryptography/package.json b/clients/client-payment-cryptography/package.json index 7feb8d5de19f..85d3114dcd5a 100644 --- a/clients/client-payment-cryptography/package.json +++ b/clients/client-payment-cryptography/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-payment-cryptography/src/endpoint/endpointResolver.ts b/clients/client-payment-cryptography/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-payment-cryptography/src/endpoint/endpointResolver.ts +++ b/clients/client-payment-cryptography/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-pca-connector-ad/package.json b/clients/client-pca-connector-ad/package.json index f942bef82278..fdd2cf7fe8b3 100644 --- a/clients/client-pca-connector-ad/package.json +++ b/clients/client-pca-connector-ad/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-pca-connector-ad/src/endpoint/endpointResolver.ts b/clients/client-pca-connector-ad/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-pca-connector-ad/src/endpoint/endpointResolver.ts +++ b/clients/client-pca-connector-ad/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-pca-connector-scep/package.json b/clients/client-pca-connector-scep/package.json index 5ebab89fb427..5ff8ed2f04dd 100644 --- a/clients/client-pca-connector-scep/package.json +++ b/clients/client-pca-connector-scep/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-pca-connector-scep/src/endpoint/endpointResolver.ts b/clients/client-pca-connector-scep/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-pca-connector-scep/src/endpoint/endpointResolver.ts +++ b/clients/client-pca-connector-scep/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-pcs/package.json b/clients/client-pcs/package.json index 3b45fe2bbe6f..9c4812c39a88 100644 --- a/clients/client-pcs/package.json +++ b/clients/client-pcs/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-pcs/src/endpoint/endpointResolver.ts b/clients/client-pcs/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-pcs/src/endpoint/endpointResolver.ts +++ b/clients/client-pcs/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-personalize-events/package.json b/clients/client-personalize-events/package.json index abcbbb35e30c..4ffe59659193 100644 --- a/clients/client-personalize-events/package.json +++ b/clients/client-personalize-events/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-personalize-events/src/endpoint/endpointResolver.ts b/clients/client-personalize-events/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-personalize-events/src/endpoint/endpointResolver.ts +++ b/clients/client-personalize-events/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-personalize-runtime/package.json b/clients/client-personalize-runtime/package.json index 3ff96fcedbea..f713796a78fa 100644 --- a/clients/client-personalize-runtime/package.json +++ b/clients/client-personalize-runtime/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-personalize-runtime/src/endpoint/endpointResolver.ts b/clients/client-personalize-runtime/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-personalize-runtime/src/endpoint/endpointResolver.ts +++ b/clients/client-personalize-runtime/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-personalize/package.json b/clients/client-personalize/package.json index 6e3c45d274d9..ba66998db8bc 100644 --- a/clients/client-personalize/package.json +++ b/clients/client-personalize/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-personalize/src/endpoint/endpointResolver.ts b/clients/client-personalize/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-personalize/src/endpoint/endpointResolver.ts +++ b/clients/client-personalize/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-pi/package.json b/clients/client-pi/package.json index ecd008d0ebf1..ca017b3b2d24 100644 --- a/clients/client-pi/package.json +++ b/clients/client-pi/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-pi/src/endpoint/endpointResolver.ts b/clients/client-pi/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-pi/src/endpoint/endpointResolver.ts +++ b/clients/client-pi/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-pinpoint-email/package.json b/clients/client-pinpoint-email/package.json index 05a64e1f4c6d..2bd51dbdbe26 100644 --- a/clients/client-pinpoint-email/package.json +++ b/clients/client-pinpoint-email/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-pinpoint-email/src/endpoint/endpointResolver.ts b/clients/client-pinpoint-email/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-pinpoint-email/src/endpoint/endpointResolver.ts +++ b/clients/client-pinpoint-email/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-pinpoint-sms-voice-v2/package.json b/clients/client-pinpoint-sms-voice-v2/package.json index 528acf067dbd..927c0c3860eb 100644 --- a/clients/client-pinpoint-sms-voice-v2/package.json +++ b/clients/client-pinpoint-sms-voice-v2/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-pinpoint-sms-voice-v2/src/endpoint/endpointResolver.ts b/clients/client-pinpoint-sms-voice-v2/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/endpoint/endpointResolver.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-pinpoint-sms-voice/package.json b/clients/client-pinpoint-sms-voice/package.json index 128164dedd46..9f79a6712806 100644 --- a/clients/client-pinpoint-sms-voice/package.json +++ b/clients/client-pinpoint-sms-voice/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-pinpoint-sms-voice/src/endpoint/endpointResolver.ts b/clients/client-pinpoint-sms-voice/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-pinpoint-sms-voice/src/endpoint/endpointResolver.ts +++ b/clients/client-pinpoint-sms-voice/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-pinpoint/package.json b/clients/client-pinpoint/package.json index 69a49cc87a84..c6c7cae5d2cf 100644 --- a/clients/client-pinpoint/package.json +++ b/clients/client-pinpoint/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-pinpoint/src/endpoint/endpointResolver.ts b/clients/client-pinpoint/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-pinpoint/src/endpoint/endpointResolver.ts +++ b/clients/client-pinpoint/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-pipes/package.json b/clients/client-pipes/package.json index b733718ee2f7..4590ec94e19c 100644 --- a/clients/client-pipes/package.json +++ b/clients/client-pipes/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-pipes/src/endpoint/endpointResolver.ts b/clients/client-pipes/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-pipes/src/endpoint/endpointResolver.ts +++ b/clients/client-pipes/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-polly/package.json b/clients/client-polly/package.json index 480084236650..10af1b7f98f6 100644 --- a/clients/client-polly/package.json +++ b/clients/client-polly/package.json @@ -33,31 +33,31 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-stream": "^3.1.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", + "@smithy/util-stream": "^3.1.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-polly/src/endpoint/endpointResolver.ts b/clients/client-polly/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-polly/src/endpoint/endpointResolver.ts +++ b/clients/client-polly/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-pricing/package.json b/clients/client-pricing/package.json index 08c827fcac04..26f519ebd0b1 100644 --- a/clients/client-pricing/package.json +++ b/clients/client-pricing/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-pricing/src/endpoint/endpointResolver.ts b/clients/client-pricing/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-pricing/src/endpoint/endpointResolver.ts +++ b/clients/client-pricing/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-privatenetworks/package.json b/clients/client-privatenetworks/package.json index aa5f8fc4aad4..3074f7597158 100644 --- a/clients/client-privatenetworks/package.json +++ b/clients/client-privatenetworks/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-privatenetworks/src/endpoint/endpointResolver.ts b/clients/client-privatenetworks/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-privatenetworks/src/endpoint/endpointResolver.ts +++ b/clients/client-privatenetworks/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-proton/package.json b/clients/client-proton/package.json index f62670a215f2..5373ba34c379 100644 --- a/clients/client-proton/package.json +++ b/clients/client-proton/package.json @@ -33,32 +33,32 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", + "@smithy/util-waiter": "^3.1.3", "tslib": "^2.6.2", "uuid": "^9.0.1" }, diff --git a/clients/client-proton/src/endpoint/endpointResolver.ts b/clients/client-proton/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-proton/src/endpoint/endpointResolver.ts +++ b/clients/client-proton/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-qapps/package.json b/clients/client-qapps/package.json index ef09922d7f84..95e4977c0a92 100644 --- a/clients/client-qapps/package.json +++ b/clients/client-qapps/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-qapps/src/commands/CreateLibraryItemCommand.ts b/clients/client-qapps/src/commands/CreateLibraryItemCommand.ts index e722476de2e2..52284029638d 100644 --- a/clients/client-qapps/src/commands/CreateLibraryItemCommand.ts +++ b/clients/client-qapps/src/commands/CreateLibraryItemCommand.ts @@ -109,6 +109,7 @@ export interface CreateLibraryItemCommandOutput extends CreateLibraryItemOutput, * { * "createdAt": "2024-05-21T23:17:27.350Z", * "createdBy": "a841e300-40c1-7062-fa34-5b46dadbbaac", + * "isVerified": false, * "libraryItemId": "cb9ecf72-8563-450d-9db9-994f98297316", * "ratingCount": 0, * "status": "PUBLISHED", diff --git a/clients/client-qapps/src/commands/GetLibraryItemCommand.ts b/clients/client-qapps/src/commands/GetLibraryItemCommand.ts index 4b2c8b2477bb..1b308a0495b9 100644 --- a/clients/client-qapps/src/commands/GetLibraryItemCommand.ts +++ b/clients/client-qapps/src/commands/GetLibraryItemCommand.ts @@ -125,6 +125,7 @@ export interface GetLibraryItemCommandOutput extends GetLibraryItemOutput, __Met * "createdAt": "2024-05-08T16:09:56.080Z", * "createdBy": "a841e300-40c1-7062-fa34-5b46dadbbaac", * "isRatedByUser": false, + * "isVerified": false, * "libraryItemId": "18cbebaa-196a-4aa5-a840-88d548e07f8f", * "ratingCount": 0, * "status": "PUBLISHED", diff --git a/clients/client-qapps/src/commands/ListLibraryItemsCommand.ts b/clients/client-qapps/src/commands/ListLibraryItemsCommand.ts index fa5b659e8ea1..b675b15850e7 100644 --- a/clients/client-qapps/src/commands/ListLibraryItemsCommand.ts +++ b/clients/client-qapps/src/commands/ListLibraryItemsCommand.ts @@ -128,6 +128,7 @@ export interface ListLibraryItemsCommandOutput extends ListLibraryItemsOutput, _ * "createdAt": "2024-05-21T23:17:27.350Z", * "createdBy": "a841e300-40c1-7062-fa34-5b46dadbbaac", * "isRatedByUser": true, + * "isVerified": false, * "libraryItemId": "cb9ecf72-8563-450d-9db9-994f98297316", * "ratingCount": 3, * "status": "PUBLISHED", @@ -147,6 +148,7 @@ export interface ListLibraryItemsCommandOutput extends ListLibraryItemsOutput, _ * "createdAt": "2024-05-08T16:09:56.080Z", * "createdBy": "a841e300-40c1-7062-fa34-5b46dadbbaac", * "isRatedByUser": false, + * "isVerified": false, * "libraryItemId": "18cbebaa-196a-4aa5-a840-88d548e07f8f", * "ratingCount": 5, * "status": "PUBLISHED", @@ -166,6 +168,7 @@ export interface ListLibraryItemsCommandOutput extends ListLibraryItemsOutput, _ * "createdAt": "2024-05-07T22:57:59.327Z", * "createdBy": "a841e300-40c1-7062-fa34-5b46dadbbaac", * "isRatedByUser": false, + * "isVerified": false, * "libraryItemId": "549abfe0-f5c4-45a2-bb9b-c05987a49c6d", * "ratingCount": 8, * "status": "PUBLISHED", diff --git a/clients/client-qapps/src/commands/ListQAppsCommand.ts b/clients/client-qapps/src/commands/ListQAppsCommand.ts index 2159b7081764..391eb8ceeb8c 100644 --- a/clients/client-qapps/src/commands/ListQAppsCommand.ts +++ b/clients/client-qapps/src/commands/ListQAppsCommand.ts @@ -105,6 +105,7 @@ export interface ListQAppsCommandOutput extends ListQAppsOutput, __MetadataBeare * "appId": "7b9fe303-18bb-4643-952c-bfcf9f4c427f", * "createdAt": "2024-05-21T04:09:10.401Z", * "description": "Description 1", + * "isVerified": false, * "status": "DRAFT", * "title": "App 1" * }, @@ -113,6 +114,7 @@ export interface ListQAppsCommandOutput extends ListQAppsOutput, __MetadataBeare * "appId": "dd178fd6-ad3d-49b3-a32d-e915cf423e37", * "createdAt": "2024-05-21T04:09:10.401Z", * "description": "Description 2", + * "isVerified": true, * "status": "PUBLISHED", * "title": "App 2" * }, @@ -121,6 +123,7 @@ export interface ListQAppsCommandOutput extends ListQAppsOutput, __MetadataBeare * "appId": "3274b744-1a13-4aad-953f-eda2e4149e6e", * "createdAt": "2024-05-21T04:09:10.401Z", * "description": "Description 3", + * "isVerified": false, * "status": "DRAFT", * "title": "App 3" * } @@ -149,6 +152,7 @@ export interface ListQAppsCommandOutput extends ListQAppsOutput, __MetadataBeare * "appId": "bec8ee64-2635-41e8-aace-e1e418f4f295", * "createdAt": "2024-05-21T04:09:10.401Z", * "description": "Description 4", + * "isVerified": true, * "status": "PUBLISHED", * "title": "App 4" * }, @@ -157,6 +161,7 @@ export interface ListQAppsCommandOutput extends ListQAppsOutput, __MetadataBeare * "appId": "c380a45d-bd77-45b0-a0e5-8a266c1d8bc4", * "createdAt": "2024-05-21T04:09:10.401Z", * "description": "Description 5", + * "isVerified": false, * "status": "PUBLISHED", * "title": "App 5" * }, @@ -165,6 +170,7 @@ export interface ListQAppsCommandOutput extends ListQAppsOutput, __MetadataBeare * "appId": "afc4ee80-9722-4396-85a6-7aeaff52c177", * "createdAt": "2024-05-21T04:09:10.401Z", * "description": "Description 6", + * "isVerified": false, * "status": "PUBLISHED", * "title": "App 6" * } diff --git a/clients/client-qapps/src/commands/UpdateLibraryItemCommand.ts b/clients/client-qapps/src/commands/UpdateLibraryItemCommand.ts index 308b37e662f2..886c268dbdc9 100644 --- a/clients/client-qapps/src/commands/UpdateLibraryItemCommand.ts +++ b/clients/client-qapps/src/commands/UpdateLibraryItemCommand.ts @@ -131,6 +131,7 @@ export interface UpdateLibraryItemCommandOutput extends UpdateLibraryItemOutput, * ], * "createdAt": "2024-05-21T23:17:27.350Z", * "createdBy": "a841e300-40c1-7062-fa34-5b46dadbbaac", + * "isVerified": false, * "libraryItemId": "cb9ecf72-8563-450d-9db9-994f98297316", * "ratingCount": 24, * "status": "DISABLED", diff --git a/clients/client-qapps/src/endpoint/endpointResolver.ts b/clients/client-qapps/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-qapps/src/endpoint/endpointResolver.ts +++ b/clients/client-qapps/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-qbusiness/package.json b/clients/client-qbusiness/package.json index e811df002be1..65bf1bb5de66 100644 --- a/clients/client-qbusiness/package.json +++ b/clients/client-qbusiness/package.json @@ -35,33 +35,33 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/eventstream-serde-browser": "^3.0.6", - "@smithy/eventstream-serde-config-resolver": "^3.0.3", - "@smithy/eventstream-serde-node": "^3.0.5", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/eventstream-serde-browser": "^3.0.7", + "@smithy/eventstream-serde-config-resolver": "^3.0.4", + "@smithy/eventstream-serde-node": "^3.0.6", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-qbusiness/src/endpoint/endpointResolver.ts b/clients/client-qbusiness/src/endpoint/endpointResolver.ts index 26fe4c3775a6..b08a72482ca0 100644 --- a/clients/client-qbusiness/src/endpoint/endpointResolver.ts +++ b/clients/client-qbusiness/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-qconnect/package.json b/clients/client-qconnect/package.json index 5f41e18609c9..ef7097cb3100 100644 --- a/clients/client-qconnect/package.json +++ b/clients/client-qconnect/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-qconnect/src/endpoint/endpointResolver.ts b/clients/client-qconnect/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-qconnect/src/endpoint/endpointResolver.ts +++ b/clients/client-qconnect/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-qldb-session/package.json b/clients/client-qldb-session/package.json index fce6f4b2d64d..34edc944b7af 100644 --- a/clients/client-qldb-session/package.json +++ b/clients/client-qldb-session/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-qldb-session/src/endpoint/endpointResolver.ts b/clients/client-qldb-session/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-qldb-session/src/endpoint/endpointResolver.ts +++ b/clients/client-qldb-session/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-qldb/package.json b/clients/client-qldb/package.json index 8d14d5a70ebd..480db56c8fc3 100644 --- a/clients/client-qldb/package.json +++ b/clients/client-qldb/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-qldb/src/endpoint/endpointResolver.ts b/clients/client-qldb/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-qldb/src/endpoint/endpointResolver.ts +++ b/clients/client-qldb/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-quicksight/package.json b/clients/client-quicksight/package.json index 96a48e7a3d42..c8cf76aca279 100644 --- a/clients/client-quicksight/package.json +++ b/clients/client-quicksight/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-quicksight/src/endpoint/endpointResolver.ts b/clients/client-quicksight/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-quicksight/src/endpoint/endpointResolver.ts +++ b/clients/client-quicksight/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-ram/package.json b/clients/client-ram/package.json index 5fa24f49b1bb..b70e76d6ce3d 100644 --- a/clients/client-ram/package.json +++ b/clients/client-ram/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-ram/src/endpoint/endpointResolver.ts b/clients/client-ram/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-ram/src/endpoint/endpointResolver.ts +++ b/clients/client-ram/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-rbin/package.json b/clients/client-rbin/package.json index 4924b3d43d9f..5cee17de6a4c 100644 --- a/clients/client-rbin/package.json +++ b/clients/client-rbin/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-rbin/src/endpoint/endpointResolver.ts b/clients/client-rbin/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-rbin/src/endpoint/endpointResolver.ts +++ b/clients/client-rbin/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-rds-data/package.json b/clients/client-rds-data/package.json index 3ab85f5a2a2d..576397f9a951 100644 --- a/clients/client-rds-data/package.json +++ b/clients/client-rds-data/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-rds-data/src/endpoint/endpointResolver.ts b/clients/client-rds-data/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-rds-data/src/endpoint/endpointResolver.ts +++ b/clients/client-rds-data/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-rds/package.json b/clients/client-rds/package.json index bd65745053e6..4a6d1cdae002 100644 --- a/clients/client-rds/package.json +++ b/clients/client-rds/package.json @@ -34,32 +34,32 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", + "@smithy/util-waiter": "^3.1.3", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/clients/client-rds/src/endpoint/endpointResolver.ts b/clients/client-rds/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-rds/src/endpoint/endpointResolver.ts +++ b/clients/client-rds/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-redshift-data/package.json b/clients/client-redshift-data/package.json index dea5764e2b6d..bbf000adb796 100644 --- a/clients/client-redshift-data/package.json +++ b/clients/client-redshift-data/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-redshift-data/src/endpoint/endpointResolver.ts b/clients/client-redshift-data/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-redshift-data/src/endpoint/endpointResolver.ts +++ b/clients/client-redshift-data/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-redshift-serverless/package.json b/clients/client-redshift-serverless/package.json index e1f1cfa5cc2d..598d431eab11 100644 --- a/clients/client-redshift-serverless/package.json +++ b/clients/client-redshift-serverless/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-redshift-serverless/src/endpoint/endpointResolver.ts b/clients/client-redshift-serverless/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-redshift-serverless/src/endpoint/endpointResolver.ts +++ b/clients/client-redshift-serverless/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-redshift/package.json b/clients/client-redshift/package.json index 26b8cc0673cd..1c2a2a6a371d 100644 --- a/clients/client-redshift/package.json +++ b/clients/client-redshift/package.json @@ -33,32 +33,32 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", + "@smithy/util-waiter": "^3.1.3", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/clients/client-redshift/src/endpoint/endpointResolver.ts b/clients/client-redshift/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-redshift/src/endpoint/endpointResolver.ts +++ b/clients/client-redshift/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-rekognition/package.json b/clients/client-rekognition/package.json index e1d6568f5346..50aff36d5984 100644 --- a/clients/client-rekognition/package.json +++ b/clients/client-rekognition/package.json @@ -33,32 +33,32 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", + "@smithy/util-waiter": "^3.1.3", "tslib": "^2.6.2", "uuid": "^9.0.1" }, diff --git a/clients/client-rekognition/src/endpoint/endpointResolver.ts b/clients/client-rekognition/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-rekognition/src/endpoint/endpointResolver.ts +++ b/clients/client-rekognition/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-rekognitionstreaming/package.json b/clients/client-rekognitionstreaming/package.json index 41f20663b751..76a1fb8ad3d4 100644 --- a/clients/client-rekognitionstreaming/package.json +++ b/clients/client-rekognitionstreaming/package.json @@ -36,33 +36,33 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/eventstream-serde-browser": "^3.0.6", - "@smithy/eventstream-serde-config-resolver": "^3.0.3", - "@smithy/eventstream-serde-node": "^3.0.5", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/eventstream-serde-browser": "^3.0.7", + "@smithy/eventstream-serde-config-resolver": "^3.0.4", + "@smithy/eventstream-serde-node": "^3.0.6", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-rekognitionstreaming/src/endpoint/endpointResolver.ts b/clients/client-rekognitionstreaming/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-rekognitionstreaming/src/endpoint/endpointResolver.ts +++ b/clients/client-rekognitionstreaming/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-repostspace/package.json b/clients/client-repostspace/package.json index fa6df38e7ba1..f7e21cca2c02 100644 --- a/clients/client-repostspace/package.json +++ b/clients/client-repostspace/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-repostspace/src/endpoint/endpointResolver.ts b/clients/client-repostspace/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-repostspace/src/endpoint/endpointResolver.ts +++ b/clients/client-repostspace/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-resiliencehub/package.json b/clients/client-resiliencehub/package.json index 90a47dec3e31..855599465f5a 100644 --- a/clients/client-resiliencehub/package.json +++ b/clients/client-resiliencehub/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-resiliencehub/src/endpoint/endpointResolver.ts b/clients/client-resiliencehub/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-resiliencehub/src/endpoint/endpointResolver.ts +++ b/clients/client-resiliencehub/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-resource-explorer-2/package.json b/clients/client-resource-explorer-2/package.json index 0c947687145e..747585afa5f6 100644 --- a/clients/client-resource-explorer-2/package.json +++ b/clients/client-resource-explorer-2/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-resource-explorer-2/src/endpoint/endpointResolver.ts b/clients/client-resource-explorer-2/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-resource-explorer-2/src/endpoint/endpointResolver.ts +++ b/clients/client-resource-explorer-2/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-resource-groups-tagging-api/package.json b/clients/client-resource-groups-tagging-api/package.json index 11207ee889dc..987ecc11a868 100644 --- a/clients/client-resource-groups-tagging-api/package.json +++ b/clients/client-resource-groups-tagging-api/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-resource-groups-tagging-api/src/endpoint/endpointResolver.ts b/clients/client-resource-groups-tagging-api/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-resource-groups-tagging-api/src/endpoint/endpointResolver.ts +++ b/clients/client-resource-groups-tagging-api/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-resource-groups/package.json b/clients/client-resource-groups/package.json index 61eba87f8f26..42fb5d10152a 100644 --- a/clients/client-resource-groups/package.json +++ b/clients/client-resource-groups/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-resource-groups/src/endpoint/endpointResolver.ts b/clients/client-resource-groups/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-resource-groups/src/endpoint/endpointResolver.ts +++ b/clients/client-resource-groups/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-robomaker/package.json b/clients/client-robomaker/package.json index 533162f6c496..5dd7253f74e6 100644 --- a/clients/client-robomaker/package.json +++ b/clients/client-robomaker/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-robomaker/src/endpoint/endpointResolver.ts b/clients/client-robomaker/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-robomaker/src/endpoint/endpointResolver.ts +++ b/clients/client-robomaker/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-rolesanywhere/package.json b/clients/client-rolesanywhere/package.json index 29f0b2f86774..5dee8b90c243 100644 --- a/clients/client-rolesanywhere/package.json +++ b/clients/client-rolesanywhere/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-rolesanywhere/src/endpoint/endpointResolver.ts b/clients/client-rolesanywhere/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-rolesanywhere/src/endpoint/endpointResolver.ts +++ b/clients/client-rolesanywhere/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-route-53-domains/package.json b/clients/client-route-53-domains/package.json index a08c419f9b36..5140682b3cbd 100644 --- a/clients/client-route-53-domains/package.json +++ b/clients/client-route-53-domains/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-route-53-domains/src/endpoint/endpointResolver.ts b/clients/client-route-53-domains/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-route-53-domains/src/endpoint/endpointResolver.ts +++ b/clients/client-route-53-domains/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-route-53/package.json b/clients/client-route-53/package.json index c2c729d961a1..ce017fc301c2 100644 --- a/clients/client-route-53/package.json +++ b/clients/client-route-53/package.json @@ -35,32 +35,32 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@aws-sdk/xml-builder": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", + "@smithy/util-waiter": "^3.1.3", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/clients/client-route-53/src/endpoint/endpointResolver.ts b/clients/client-route-53/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-route-53/src/endpoint/endpointResolver.ts +++ b/clients/client-route-53/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-route53-recovery-cluster/package.json b/clients/client-route53-recovery-cluster/package.json index bc80628ea6e7..a8403652a63f 100644 --- a/clients/client-route53-recovery-cluster/package.json +++ b/clients/client-route53-recovery-cluster/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-route53-recovery-cluster/src/endpoint/endpointResolver.ts b/clients/client-route53-recovery-cluster/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-route53-recovery-cluster/src/endpoint/endpointResolver.ts +++ b/clients/client-route53-recovery-cluster/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-route53-recovery-control-config/package.json b/clients/client-route53-recovery-control-config/package.json index b490b899732c..067e23e65a31 100644 --- a/clients/client-route53-recovery-control-config/package.json +++ b/clients/client-route53-recovery-control-config/package.json @@ -33,32 +33,32 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", + "@smithy/util-waiter": "^3.1.3", "tslib": "^2.6.2", "uuid": "^9.0.1" }, diff --git a/clients/client-route53-recovery-control-config/src/endpoint/endpointResolver.ts b/clients/client-route53-recovery-control-config/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-route53-recovery-control-config/src/endpoint/endpointResolver.ts +++ b/clients/client-route53-recovery-control-config/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-route53-recovery-readiness/package.json b/clients/client-route53-recovery-readiness/package.json index a524c4c4507a..24353fe0c4ed 100644 --- a/clients/client-route53-recovery-readiness/package.json +++ b/clients/client-route53-recovery-readiness/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-route53-recovery-readiness/src/endpoint/endpointResolver.ts b/clients/client-route53-recovery-readiness/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-route53-recovery-readiness/src/endpoint/endpointResolver.ts +++ b/clients/client-route53-recovery-readiness/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-route53profiles/package.json b/clients/client-route53profiles/package.json index 5cd59337f2a6..e4020402f24e 100644 --- a/clients/client-route53profiles/package.json +++ b/clients/client-route53profiles/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-route53profiles/src/endpoint/endpointResolver.ts b/clients/client-route53profiles/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-route53profiles/src/endpoint/endpointResolver.ts +++ b/clients/client-route53profiles/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-route53resolver/package.json b/clients/client-route53resolver/package.json index 51ddd5f3ca8d..b45b63ce4887 100644 --- a/clients/client-route53resolver/package.json +++ b/clients/client-route53resolver/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-route53resolver/src/endpoint/endpointResolver.ts b/clients/client-route53resolver/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-route53resolver/src/endpoint/endpointResolver.ts +++ b/clients/client-route53resolver/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-rum/package.json b/clients/client-rum/package.json index 4b5d44a9aed5..8d13e5e3b0c5 100644 --- a/clients/client-rum/package.json +++ b/clients/client-rum/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-rum/src/endpoint/endpointResolver.ts b/clients/client-rum/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-rum/src/endpoint/endpointResolver.ts +++ b/clients/client-rum/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-s3-control/package.json b/clients/client-s3-control/package.json index 2a23b98710c0..fbe8a53c05e3 100644 --- a/clients/client-s3-control/package.json +++ b/clients/client-s3-control/package.json @@ -37,34 +37,34 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@aws-sdk/xml-builder": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-blob-browser": "^3.1.2", - "@smithy/hash-node": "^3.0.3", - "@smithy/hash-stream-node": "^3.1.2", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/md5-js": "^3.0.3", - "@smithy/middleware-apply-body-checksum": "^3.0.5", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-blob-browser": "^3.1.3", + "@smithy/hash-node": "^3.0.4", + "@smithy/hash-stream-node": "^3.1.3", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/md5-js": "^3.0.4", + "@smithy/middleware-apply-body-checksum": "^3.0.6", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-s3-control/src/endpoint/endpointResolver.ts b/clients/client-s3-control/src/endpoint/endpointResolver.ts index 26fe4c3775a6..bc261acdb8ca 100644 --- a/clients/client-s3-control/src/endpoint/endpointResolver.ts +++ b/clients/client-s3-control/src/endpoint/endpointResolver.ts @@ -1,19 +1,37 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: [ + "AccessPointName", + "AccountId", + "Bucket", + "Endpoint", + "OutpostId", + "Region", + "RequiresAccountId", + "UseArnRegion", + "UseDualStack", + "UseFIPS", + ], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-s3/package.json b/clients/client-s3/package.json index d10189f135cc..ac8c1c806b4e 100644 --- a/clients/client-s3/package.json +++ b/clients/client-s3/package.json @@ -47,39 +47,39 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@aws-sdk/xml-builder": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/eventstream-serde-browser": "^3.0.6", - "@smithy/eventstream-serde-config-resolver": "^3.0.3", - "@smithy/eventstream-serde-node": "^3.0.5", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-blob-browser": "^3.1.2", - "@smithy/hash-node": "^3.0.3", - "@smithy/hash-stream-node": "^3.1.2", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/md5-js": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/eventstream-serde-browser": "^3.0.7", + "@smithy/eventstream-serde-config-resolver": "^3.0.4", + "@smithy/eventstream-serde-node": "^3.0.6", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-blob-browser": "^3.1.3", + "@smithy/hash-node": "^3.0.4", + "@smithy/hash-stream-node": "^3.1.3", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/md5-js": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-stream": "^3.1.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", + "@smithy/util-stream": "^3.1.4", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", + "@smithy/util-waiter": "^3.1.3", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/clients/client-s3/src/endpoint/endpointResolver.ts b/clients/client-s3/src/endpoint/endpointResolver.ts index 26fe4c3775a6..654426f82a1f 100644 --- a/clients/client-s3/src/endpoint/endpointResolver.ts +++ b/clients/client-s3/src/endpoint/endpointResolver.ts @@ -1,19 +1,41 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: [ + "Accelerate", + "Bucket", + "DisableAccessPoints", + "DisableMultiRegionAccessPoints", + "DisableS3ExpressSessionAuth", + "Endpoint", + "ForcePathStyle", + "Region", + "UseArnRegion", + "UseDualStack", + "UseFIPS", + "UseGlobalEndpoint", + "UseObjectLambdaEndpoint", + "UseS3ExpressControlEndpoint", + ], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-s3outposts/package.json b/clients/client-s3outposts/package.json index 74c27fd110e2..37e40c4e3012 100644 --- a/clients/client-s3outposts/package.json +++ b/clients/client-s3outposts/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-s3outposts/src/endpoint/endpointResolver.ts b/clients/client-s3outposts/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-s3outposts/src/endpoint/endpointResolver.ts +++ b/clients/client-s3outposts/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-sagemaker-a2i-runtime/package.json b/clients/client-sagemaker-a2i-runtime/package.json index 7093858489c1..970ea0961fb7 100644 --- a/clients/client-sagemaker-a2i-runtime/package.json +++ b/clients/client-sagemaker-a2i-runtime/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-sagemaker-a2i-runtime/src/endpoint/endpointResolver.ts b/clients/client-sagemaker-a2i-runtime/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-sagemaker-a2i-runtime/src/endpoint/endpointResolver.ts +++ b/clients/client-sagemaker-a2i-runtime/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-sagemaker-edge/package.json b/clients/client-sagemaker-edge/package.json index 742090799dae..dbc74ba660a7 100644 --- a/clients/client-sagemaker-edge/package.json +++ b/clients/client-sagemaker-edge/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-sagemaker-edge/src/endpoint/endpointResolver.ts b/clients/client-sagemaker-edge/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-sagemaker-edge/src/endpoint/endpointResolver.ts +++ b/clients/client-sagemaker-edge/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-sagemaker-featurestore-runtime/package.json b/clients/client-sagemaker-featurestore-runtime/package.json index 1881383049ca..45bee4db7745 100644 --- a/clients/client-sagemaker-featurestore-runtime/package.json +++ b/clients/client-sagemaker-featurestore-runtime/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-sagemaker-featurestore-runtime/src/endpoint/endpointResolver.ts b/clients/client-sagemaker-featurestore-runtime/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-sagemaker-featurestore-runtime/src/endpoint/endpointResolver.ts +++ b/clients/client-sagemaker-featurestore-runtime/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-sagemaker-geospatial/package.json b/clients/client-sagemaker-geospatial/package.json index 49a008b86805..b8bf3f4e73bf 100644 --- a/clients/client-sagemaker-geospatial/package.json +++ b/clients/client-sagemaker-geospatial/package.json @@ -33,31 +33,31 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-stream": "^3.1.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", + "@smithy/util-stream": "^3.1.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-sagemaker-geospatial/src/endpoint/endpointResolver.ts b/clients/client-sagemaker-geospatial/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-sagemaker-geospatial/src/endpoint/endpointResolver.ts +++ b/clients/client-sagemaker-geospatial/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-sagemaker-metrics/package.json b/clients/client-sagemaker-metrics/package.json index 129291b3c093..38682a6bc09c 100644 --- a/clients/client-sagemaker-metrics/package.json +++ b/clients/client-sagemaker-metrics/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-sagemaker-metrics/src/endpoint/endpointResolver.ts b/clients/client-sagemaker-metrics/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-sagemaker-metrics/src/endpoint/endpointResolver.ts +++ b/clients/client-sagemaker-metrics/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-sagemaker-runtime/package.json b/clients/client-sagemaker-runtime/package.json index 2195a650f9e9..2560d53d3e84 100644 --- a/clients/client-sagemaker-runtime/package.json +++ b/clients/client-sagemaker-runtime/package.json @@ -33,34 +33,34 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/eventstream-serde-browser": "^3.0.6", - "@smithy/eventstream-serde-config-resolver": "^3.0.3", - "@smithy/eventstream-serde-node": "^3.0.5", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/eventstream-serde-browser": "^3.0.7", + "@smithy/eventstream-serde-config-resolver": "^3.0.4", + "@smithy/eventstream-serde-node": "^3.0.6", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-stream": "^3.1.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", + "@smithy/util-stream": "^3.1.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-sagemaker-runtime/src/endpoint/endpointResolver.ts b/clients/client-sagemaker-runtime/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-sagemaker-runtime/src/endpoint/endpointResolver.ts +++ b/clients/client-sagemaker-runtime/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-sagemaker/package.json b/clients/client-sagemaker/package.json index 861cf9c68847..5e8d62978735 100644 --- a/clients/client-sagemaker/package.json +++ b/clients/client-sagemaker/package.json @@ -33,32 +33,32 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", + "@smithy/util-waiter": "^3.1.3", "tslib": "^2.6.2", "uuid": "^9.0.1" }, diff --git a/clients/client-sagemaker/src/endpoint/endpointResolver.ts b/clients/client-sagemaker/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-sagemaker/src/endpoint/endpointResolver.ts +++ b/clients/client-sagemaker/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-savingsplans/package.json b/clients/client-savingsplans/package.json index 82cef5ee85d7..f2d861c85122 100644 --- a/clients/client-savingsplans/package.json +++ b/clients/client-savingsplans/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-savingsplans/src/endpoint/endpointResolver.ts b/clients/client-savingsplans/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-savingsplans/src/endpoint/endpointResolver.ts +++ b/clients/client-savingsplans/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-scheduler/package.json b/clients/client-scheduler/package.json index b126c7de2f04..96e56437f6a8 100644 --- a/clients/client-scheduler/package.json +++ b/clients/client-scheduler/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-scheduler/src/endpoint/endpointResolver.ts b/clients/client-scheduler/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-scheduler/src/endpoint/endpointResolver.ts +++ b/clients/client-scheduler/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-schemas/package.json b/clients/client-schemas/package.json index c52bb66ba68e..3323cf1d85f8 100644 --- a/clients/client-schemas/package.json +++ b/clients/client-schemas/package.json @@ -33,33 +33,33 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-stream": "^3.1.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", + "@smithy/util-stream": "^3.1.4", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", + "@smithy/util-waiter": "^3.1.3", "tslib": "^2.6.2", "uuid": "^9.0.1" }, diff --git a/clients/client-schemas/src/endpoint/endpointResolver.ts b/clients/client-schemas/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-schemas/src/endpoint/endpointResolver.ts +++ b/clients/client-schemas/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-secrets-manager/package.json b/clients/client-secrets-manager/package.json index 00b35ddd65dd..ff99729f6e80 100644 --- a/clients/client-secrets-manager/package.json +++ b/clients/client-secrets-manager/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-secrets-manager/src/endpoint/endpointResolver.ts b/clients/client-secrets-manager/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-secrets-manager/src/endpoint/endpointResolver.ts +++ b/clients/client-secrets-manager/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-securityhub/package.json b/clients/client-securityhub/package.json index cb3966dde9ba..84cbdd1ffff8 100644 --- a/clients/client-securityhub/package.json +++ b/clients/client-securityhub/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-securityhub/src/endpoint/endpointResolver.ts b/clients/client-securityhub/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-securityhub/src/endpoint/endpointResolver.ts +++ b/clients/client-securityhub/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-securitylake/package.json b/clients/client-securitylake/package.json index 79d488368517..f4e5dd5708f7 100644 --- a/clients/client-securitylake/package.json +++ b/clients/client-securitylake/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-securitylake/src/endpoint/endpointResolver.ts b/clients/client-securitylake/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-securitylake/src/endpoint/endpointResolver.ts +++ b/clients/client-securitylake/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-serverlessapplicationrepository/package.json b/clients/client-serverlessapplicationrepository/package.json index 9815e3033198..e2d4ad594faa 100644 --- a/clients/client-serverlessapplicationrepository/package.json +++ b/clients/client-serverlessapplicationrepository/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-serverlessapplicationrepository/src/endpoint/endpointResolver.ts b/clients/client-serverlessapplicationrepository/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-serverlessapplicationrepository/src/endpoint/endpointResolver.ts +++ b/clients/client-serverlessapplicationrepository/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-service-catalog-appregistry/package.json b/clients/client-service-catalog-appregistry/package.json index cb618e6a5709..e447a0b1dd0f 100644 --- a/clients/client-service-catalog-appregistry/package.json +++ b/clients/client-service-catalog-appregistry/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-service-catalog-appregistry/src/endpoint/endpointResolver.ts b/clients/client-service-catalog-appregistry/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-service-catalog-appregistry/src/endpoint/endpointResolver.ts +++ b/clients/client-service-catalog-appregistry/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-service-catalog/package.json b/clients/client-service-catalog/package.json index 5439feeddd86..4713bcacaf61 100644 --- a/clients/client-service-catalog/package.json +++ b/clients/client-service-catalog/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-service-catalog/src/endpoint/endpointResolver.ts b/clients/client-service-catalog/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-service-catalog/src/endpoint/endpointResolver.ts +++ b/clients/client-service-catalog/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-service-quotas/package.json b/clients/client-service-quotas/package.json index c1e169664750..88dcbde61754 100644 --- a/clients/client-service-quotas/package.json +++ b/clients/client-service-quotas/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-service-quotas/src/endpoint/endpointResolver.ts b/clients/client-service-quotas/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-service-quotas/src/endpoint/endpointResolver.ts +++ b/clients/client-service-quotas/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-servicediscovery/package.json b/clients/client-servicediscovery/package.json index 6d72f9735ac9..d815e12546ba 100644 --- a/clients/client-servicediscovery/package.json +++ b/clients/client-servicediscovery/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-servicediscovery/src/endpoint/endpointResolver.ts b/clients/client-servicediscovery/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-servicediscovery/src/endpoint/endpointResolver.ts +++ b/clients/client-servicediscovery/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-ses/package.json b/clients/client-ses/package.json index 5445e678bc5d..1dd549a3f19b 100644 --- a/clients/client-ses/package.json +++ b/clients/client-ses/package.json @@ -33,32 +33,32 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", + "@smithy/util-waiter": "^3.1.3", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/clients/client-ses/src/endpoint/endpointResolver.ts b/clients/client-ses/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-ses/src/endpoint/endpointResolver.ts +++ b/clients/client-ses/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-sesv2/package.json b/clients/client-sesv2/package.json index 555a8ef7ddd1..e8c539bfbf56 100644 --- a/clients/client-sesv2/package.json +++ b/clients/client-sesv2/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-sesv2/src/endpoint/endpointResolver.ts b/clients/client-sesv2/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-sesv2/src/endpoint/endpointResolver.ts +++ b/clients/client-sesv2/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-sfn/package.json b/clients/client-sfn/package.json index 0889b8dfb6ba..3532927aa158 100644 --- a/clients/client-sfn/package.json +++ b/clients/client-sfn/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-sfn/src/endpoint/endpointResolver.ts b/clients/client-sfn/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-sfn/src/endpoint/endpointResolver.ts +++ b/clients/client-sfn/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-shield/package.json b/clients/client-shield/package.json index cf3b07713564..5288d31ecc6b 100644 --- a/clients/client-shield/package.json +++ b/clients/client-shield/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-shield/src/endpoint/endpointResolver.ts b/clients/client-shield/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-shield/src/endpoint/endpointResolver.ts +++ b/clients/client-shield/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-signer/package.json b/clients/client-signer/package.json index 31f2b70c352f..0e9c082779ec 100644 --- a/clients/client-signer/package.json +++ b/clients/client-signer/package.json @@ -33,32 +33,32 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", + "@smithy/util-waiter": "^3.1.3", "tslib": "^2.6.2", "uuid": "^9.0.1" }, diff --git a/clients/client-signer/src/endpoint/endpointResolver.ts b/clients/client-signer/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-signer/src/endpoint/endpointResolver.ts +++ b/clients/client-signer/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-simspaceweaver/package.json b/clients/client-simspaceweaver/package.json index b7729ea963bd..46f70086073c 100644 --- a/clients/client-simspaceweaver/package.json +++ b/clients/client-simspaceweaver/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-simspaceweaver/src/endpoint/endpointResolver.ts b/clients/client-simspaceweaver/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-simspaceweaver/src/endpoint/endpointResolver.ts +++ b/clients/client-simspaceweaver/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-sms/package.json b/clients/client-sms/package.json index 43a47ae1ffef..fd1ab05b9f18 100644 --- a/clients/client-sms/package.json +++ b/clients/client-sms/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-sms/src/endpoint/endpointResolver.ts b/clients/client-sms/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-sms/src/endpoint/endpointResolver.ts +++ b/clients/client-sms/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-snow-device-management/package.json b/clients/client-snow-device-management/package.json index 00d279890394..2ad4db392a3e 100644 --- a/clients/client-snow-device-management/package.json +++ b/clients/client-snow-device-management/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-snow-device-management/src/endpoint/endpointResolver.ts b/clients/client-snow-device-management/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-snow-device-management/src/endpoint/endpointResolver.ts +++ b/clients/client-snow-device-management/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-snowball/package.json b/clients/client-snowball/package.json index bae76892ca92..e644dfe5dd3d 100644 --- a/clients/client-snowball/package.json +++ b/clients/client-snowball/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-snowball/src/endpoint/endpointResolver.ts b/clients/client-snowball/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-snowball/src/endpoint/endpointResolver.ts +++ b/clients/client-snowball/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-sns/package.json b/clients/client-sns/package.json index 9d9ff777cfac..329ebc9e9f37 100644 --- a/clients/client-sns/package.json +++ b/clients/client-sns/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-sns/src/endpoint/endpointResolver.ts b/clients/client-sns/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-sns/src/endpoint/endpointResolver.ts +++ b/clients/client-sns/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-sqs/package.json b/clients/client-sqs/package.json index f3718f8010f2..84bfaa8aae70 100644 --- a/clients/client-sqs/package.json +++ b/clients/client-sqs/package.json @@ -34,31 +34,31 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/md5-js": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/md5-js": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-sqs/src/endpoint/endpointResolver.ts b/clients/client-sqs/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-sqs/src/endpoint/endpointResolver.ts +++ b/clients/client-sqs/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-ssm-contacts/package.json b/clients/client-ssm-contacts/package.json index 030753aa1b7e..bfbccf4d6326 100644 --- a/clients/client-ssm-contacts/package.json +++ b/clients/client-ssm-contacts/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-ssm-contacts/src/endpoint/endpointResolver.ts b/clients/client-ssm-contacts/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-ssm-contacts/src/endpoint/endpointResolver.ts +++ b/clients/client-ssm-contacts/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-ssm-incidents/package.json b/clients/client-ssm-incidents/package.json index 05b23d8af9cf..c43d0d94ab8a 100644 --- a/clients/client-ssm-incidents/package.json +++ b/clients/client-ssm-incidents/package.json @@ -33,32 +33,32 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", + "@smithy/util-waiter": "^3.1.3", "tslib": "^2.6.2", "uuid": "^9.0.1" }, diff --git a/clients/client-ssm-incidents/src/endpoint/endpointResolver.ts b/clients/client-ssm-incidents/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-ssm-incidents/src/endpoint/endpointResolver.ts +++ b/clients/client-ssm-incidents/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-ssm-quicksetup/package.json b/clients/client-ssm-quicksetup/package.json index c8ec64ddeae4..532a05d370e4 100644 --- a/clients/client-ssm-quicksetup/package.json +++ b/clients/client-ssm-quicksetup/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-ssm-quicksetup/src/endpoint/endpointResolver.ts b/clients/client-ssm-quicksetup/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-ssm-quicksetup/src/endpoint/endpointResolver.ts +++ b/clients/client-ssm-quicksetup/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-ssm-sap/package.json b/clients/client-ssm-sap/package.json index a3d4c0c5407b..dd9bdf92841e 100644 --- a/clients/client-ssm-sap/package.json +++ b/clients/client-ssm-sap/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-ssm-sap/src/endpoint/endpointResolver.ts b/clients/client-ssm-sap/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-ssm-sap/src/endpoint/endpointResolver.ts +++ b/clients/client-ssm-sap/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-ssm/package.json b/clients/client-ssm/package.json index f10a93a2f371..4322131252e7 100644 --- a/clients/client-ssm/package.json +++ b/clients/client-ssm/package.json @@ -33,32 +33,32 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", + "@smithy/util-waiter": "^3.1.3", "tslib": "^2.6.2", "uuid": "^9.0.1" }, diff --git a/clients/client-ssm/src/endpoint/endpointResolver.ts b/clients/client-ssm/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-ssm/src/endpoint/endpointResolver.ts +++ b/clients/client-ssm/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-sso-admin/package.json b/clients/client-sso-admin/package.json index a07f2c05ff99..326dcfb20517 100644 --- a/clients/client-sso-admin/package.json +++ b/clients/client-sso-admin/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-sso-admin/src/endpoint/endpointResolver.ts b/clients/client-sso-admin/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-sso-admin/src/endpoint/endpointResolver.ts +++ b/clients/client-sso-admin/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-sso-oidc/package.json b/clients/client-sso-oidc/package.json index 8eaaa9459ae6..f4b6525b687e 100644 --- a/clients/client-sso-oidc/package.json +++ b/clients/client-sso-oidc/package.json @@ -31,30 +31,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-sso-oidc/src/endpoint/endpointResolver.ts b/clients/client-sso-oidc/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-sso-oidc/src/endpoint/endpointResolver.ts +++ b/clients/client-sso-oidc/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-sso/package.json b/clients/client-sso/package.json index 00250f4ea254..7dc1db607bbc 100644 --- a/clients/client-sso/package.json +++ b/clients/client-sso/package.json @@ -30,30 +30,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-sso/src/endpoint/endpointResolver.ts b/clients/client-sso/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-sso/src/endpoint/endpointResolver.ts +++ b/clients/client-sso/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-storage-gateway/package.json b/clients/client-storage-gateway/package.json index cc9f11981e54..ba54ef224689 100644 --- a/clients/client-storage-gateway/package.json +++ b/clients/client-storage-gateway/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-storage-gateway/src/endpoint/endpointResolver.ts b/clients/client-storage-gateway/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-storage-gateway/src/endpoint/endpointResolver.ts +++ b/clients/client-storage-gateway/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-sts/package.json b/clients/client-sts/package.json index 8287d7195bca..1d6812500746 100644 --- a/clients/client-sts/package.json +++ b/clients/client-sts/package.json @@ -34,30 +34,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-sts/src/endpoint/endpointResolver.ts b/clients/client-sts/src/endpoint/endpointResolver.ts index 26fe4c3775a6..b1d10295e0b3 100644 --- a/clients/client-sts/src/endpoint/endpointResolver.ts +++ b/clients/client-sts/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS", "UseGlobalEndpoint"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-supplychain/package.json b/clients/client-supplychain/package.json index ffcc931ff538..136deec6950b 100644 --- a/clients/client-supplychain/package.json +++ b/clients/client-supplychain/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-supplychain/src/endpoint/endpointResolver.ts b/clients/client-supplychain/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-supplychain/src/endpoint/endpointResolver.ts +++ b/clients/client-supplychain/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-support-app/package.json b/clients/client-support-app/package.json index bad7e367b623..4b85d22536da 100644 --- a/clients/client-support-app/package.json +++ b/clients/client-support-app/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-support-app/src/endpoint/endpointResolver.ts b/clients/client-support-app/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-support-app/src/endpoint/endpointResolver.ts +++ b/clients/client-support-app/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-support/package.json b/clients/client-support/package.json index 60134349376f..2e426105e36c 100644 --- a/clients/client-support/package.json +++ b/clients/client-support/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-support/src/endpoint/endpointResolver.ts b/clients/client-support/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-support/src/endpoint/endpointResolver.ts +++ b/clients/client-support/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-swf/package.json b/clients/client-swf/package.json index f6a4577325a1..ce5abf5d24b3 100644 --- a/clients/client-swf/package.json +++ b/clients/client-swf/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-swf/src/endpoint/endpointResolver.ts b/clients/client-swf/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-swf/src/endpoint/endpointResolver.ts +++ b/clients/client-swf/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-synthetics/package.json b/clients/client-synthetics/package.json index 09f7fdfeef41..cab5cc2a8ed4 100644 --- a/clients/client-synthetics/package.json +++ b/clients/client-synthetics/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-synthetics/src/endpoint/endpointResolver.ts b/clients/client-synthetics/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-synthetics/src/endpoint/endpointResolver.ts +++ b/clients/client-synthetics/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-taxsettings/package.json b/clients/client-taxsettings/package.json index c9a086ede95a..0b9d1ea6c006 100644 --- a/clients/client-taxsettings/package.json +++ b/clients/client-taxsettings/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-taxsettings/src/endpoint/endpointResolver.ts b/clients/client-taxsettings/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-taxsettings/src/endpoint/endpointResolver.ts +++ b/clients/client-taxsettings/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-textract/package.json b/clients/client-textract/package.json index 94e156061496..17a322bfe7b6 100644 --- a/clients/client-textract/package.json +++ b/clients/client-textract/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-textract/src/endpoint/endpointResolver.ts b/clients/client-textract/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-textract/src/endpoint/endpointResolver.ts +++ b/clients/client-textract/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-timestream-influxdb/package.json b/clients/client-timestream-influxdb/package.json index de18c38aa3da..dc22e28bdd92 100644 --- a/clients/client-timestream-influxdb/package.json +++ b/clients/client-timestream-influxdb/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-timestream-influxdb/src/endpoint/endpointResolver.ts b/clients/client-timestream-influxdb/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-timestream-influxdb/src/endpoint/endpointResolver.ts +++ b/clients/client-timestream-influxdb/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-timestream-query/package.json b/clients/client-timestream-query/package.json index e3423a43222d..d7a8743ef33d 100644 --- a/clients/client-timestream-query/package.json +++ b/clients/client-timestream-query/package.json @@ -34,30 +34,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-timestream-query/src/endpoint/endpointResolver.ts b/clients/client-timestream-query/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-timestream-query/src/endpoint/endpointResolver.ts +++ b/clients/client-timestream-query/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-timestream-write/package.json b/clients/client-timestream-write/package.json index 7e5474a1fb04..55db5efe290d 100644 --- a/clients/client-timestream-write/package.json +++ b/clients/client-timestream-write/package.json @@ -34,30 +34,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-timestream-write/src/endpoint/endpointResolver.ts b/clients/client-timestream-write/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-timestream-write/src/endpoint/endpointResolver.ts +++ b/clients/client-timestream-write/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-tnb/package.json b/clients/client-tnb/package.json index 58f5c449cb75..ed16dc706f49 100644 --- a/clients/client-tnb/package.json +++ b/clients/client-tnb/package.json @@ -33,31 +33,31 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-stream": "^3.1.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", + "@smithy/util-stream": "^3.1.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-tnb/src/endpoint/endpointResolver.ts b/clients/client-tnb/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-tnb/src/endpoint/endpointResolver.ts +++ b/clients/client-tnb/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-transcribe-streaming/package.json b/clients/client-transcribe-streaming/package.json index 24c061d1c5b4..babc6e4d4557 100644 --- a/clients/client-transcribe-streaming/package.json +++ b/clients/client-transcribe-streaming/package.json @@ -38,33 +38,33 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/eventstream-serde-browser": "^3.0.6", - "@smithy/eventstream-serde-config-resolver": "^3.0.3", - "@smithy/eventstream-serde-node": "^3.0.5", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/eventstream-serde-browser": "^3.0.7", + "@smithy/eventstream-serde-config-resolver": "^3.0.4", + "@smithy/eventstream-serde-node": "^3.0.6", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-transcribe-streaming/src/endpoint/endpointResolver.ts b/clients/client-transcribe-streaming/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-transcribe-streaming/src/endpoint/endpointResolver.ts +++ b/clients/client-transcribe-streaming/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-transcribe/package.json b/clients/client-transcribe/package.json index 2d71de4fc6f7..04ec7482ed84 100644 --- a/clients/client-transcribe/package.json +++ b/clients/client-transcribe/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-transcribe/src/endpoint/endpointResolver.ts b/clients/client-transcribe/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-transcribe/src/endpoint/endpointResolver.ts +++ b/clients/client-transcribe/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-transfer/package.json b/clients/client-transfer/package.json index 5a4efa59fea4..e781468524e7 100644 --- a/clients/client-transfer/package.json +++ b/clients/client-transfer/package.json @@ -33,32 +33,32 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", - "@smithy/util-waiter": "^3.1.2", + "@smithy/util-waiter": "^3.1.3", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/clients/client-transfer/src/endpoint/endpointResolver.ts b/clients/client-transfer/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-transfer/src/endpoint/endpointResolver.ts +++ b/clients/client-transfer/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-translate/package.json b/clients/client-translate/package.json index 8132704e5fb8..2d558262bb1c 100644 --- a/clients/client-translate/package.json +++ b/clients/client-translate/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-translate/src/endpoint/endpointResolver.ts b/clients/client-translate/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-translate/src/endpoint/endpointResolver.ts +++ b/clients/client-translate/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-trustedadvisor/package.json b/clients/client-trustedadvisor/package.json index 1e0fa050b462..5788d3a29c28 100644 --- a/clients/client-trustedadvisor/package.json +++ b/clients/client-trustedadvisor/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-trustedadvisor/src/endpoint/endpointResolver.ts b/clients/client-trustedadvisor/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-trustedadvisor/src/endpoint/endpointResolver.ts +++ b/clients/client-trustedadvisor/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-verifiedpermissions/package.json b/clients/client-verifiedpermissions/package.json index 888227d3fe92..028bc9ca770b 100644 --- a/clients/client-verifiedpermissions/package.json +++ b/clients/client-verifiedpermissions/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-verifiedpermissions/src/endpoint/endpointResolver.ts b/clients/client-verifiedpermissions/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-verifiedpermissions/src/endpoint/endpointResolver.ts +++ b/clients/client-verifiedpermissions/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-voice-id/package.json b/clients/client-voice-id/package.json index d34583d1a1ed..c4b534f84499 100644 --- a/clients/client-voice-id/package.json +++ b/clients/client-voice-id/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-voice-id/src/endpoint/endpointResolver.ts b/clients/client-voice-id/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-voice-id/src/endpoint/endpointResolver.ts +++ b/clients/client-voice-id/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-vpc-lattice/package.json b/clients/client-vpc-lattice/package.json index f4f0b3ec6a59..410a72eac722 100644 --- a/clients/client-vpc-lattice/package.json +++ b/clients/client-vpc-lattice/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-vpc-lattice/src/endpoint/endpointResolver.ts b/clients/client-vpc-lattice/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-vpc-lattice/src/endpoint/endpointResolver.ts +++ b/clients/client-vpc-lattice/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-waf-regional/package.json b/clients/client-waf-regional/package.json index 6ddd5036d840..caa0272ff76a 100644 --- a/clients/client-waf-regional/package.json +++ b/clients/client-waf-regional/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-waf-regional/src/endpoint/endpointResolver.ts b/clients/client-waf-regional/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-waf-regional/src/endpoint/endpointResolver.ts +++ b/clients/client-waf-regional/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-waf/package.json b/clients/client-waf/package.json index 5a3cf6c31a4d..9be713cae5e4 100644 --- a/clients/client-waf/package.json +++ b/clients/client-waf/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-waf/src/endpoint/endpointResolver.ts b/clients/client-waf/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-waf/src/endpoint/endpointResolver.ts +++ b/clients/client-waf/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-wafv2/package.json b/clients/client-wafv2/package.json index 4ff06582aa3e..35f39f850bfa 100644 --- a/clients/client-wafv2/package.json +++ b/clients/client-wafv2/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-wafv2/src/endpoint/endpointResolver.ts b/clients/client-wafv2/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-wafv2/src/endpoint/endpointResolver.ts +++ b/clients/client-wafv2/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-wellarchitected/package.json b/clients/client-wellarchitected/package.json index 80e2b2a1c00e..749be26a2de2 100644 --- a/clients/client-wellarchitected/package.json +++ b/clients/client-wellarchitected/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-wellarchitected/src/endpoint/endpointResolver.ts b/clients/client-wellarchitected/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-wellarchitected/src/endpoint/endpointResolver.ts +++ b/clients/client-wellarchitected/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-wisdom/package.json b/clients/client-wisdom/package.json index 35c9320c9870..4cf46e5dc8c5 100644 --- a/clients/client-wisdom/package.json +++ b/clients/client-wisdom/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-wisdom/src/endpoint/endpointResolver.ts b/clients/client-wisdom/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-wisdom/src/endpoint/endpointResolver.ts +++ b/clients/client-wisdom/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-workdocs/package.json b/clients/client-workdocs/package.json index eb5a267ef223..f8046153cd8c 100644 --- a/clients/client-workdocs/package.json +++ b/clients/client-workdocs/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-workdocs/src/endpoint/endpointResolver.ts b/clients/client-workdocs/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-workdocs/src/endpoint/endpointResolver.ts +++ b/clients/client-workdocs/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-worklink/package.json b/clients/client-worklink/package.json index 50d14a137079..234017470d17 100644 --- a/clients/client-worklink/package.json +++ b/clients/client-worklink/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-worklink/src/endpoint/endpointResolver.ts b/clients/client-worklink/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-worklink/src/endpoint/endpointResolver.ts +++ b/clients/client-worklink/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-workmail/package.json b/clients/client-workmail/package.json index 01c0ed7483cf..9c3c5788c086 100644 --- a/clients/client-workmail/package.json +++ b/clients/client-workmail/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-workmail/src/endpoint/endpointResolver.ts b/clients/client-workmail/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-workmail/src/endpoint/endpointResolver.ts +++ b/clients/client-workmail/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-workmailmessageflow/package.json b/clients/client-workmailmessageflow/package.json index f4138d8be6c1..796c212df495 100644 --- a/clients/client-workmailmessageflow/package.json +++ b/clients/client-workmailmessageflow/package.json @@ -33,31 +33,31 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-stream": "^3.1.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", + "@smithy/util-stream": "^3.1.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-workmailmessageflow/src/endpoint/endpointResolver.ts b/clients/client-workmailmessageflow/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-workmailmessageflow/src/endpoint/endpointResolver.ts +++ b/clients/client-workmailmessageflow/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-workspaces-thin-client/package.json b/clients/client-workspaces-thin-client/package.json index 1896f163a66e..d7995162c941 100644 --- a/clients/client-workspaces-thin-client/package.json +++ b/clients/client-workspaces-thin-client/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-workspaces-thin-client/src/endpoint/endpointResolver.ts b/clients/client-workspaces-thin-client/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-workspaces-thin-client/src/endpoint/endpointResolver.ts +++ b/clients/client-workspaces-thin-client/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-workspaces-web/package.json b/clients/client-workspaces-web/package.json index 9f3bbc3bcc3e..c7a1032e8b65 100644 --- a/clients/client-workspaces-web/package.json +++ b/clients/client-workspaces-web/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/clients/client-workspaces-web/src/endpoint/endpointResolver.ts b/clients/client-workspaces-web/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-workspaces-web/src/endpoint/endpointResolver.ts +++ b/clients/client-workspaces-web/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-workspaces/package.json b/clients/client-workspaces/package.json index 5beb4e649639..bd64167c64e4 100644 --- a/clients/client-workspaces/package.json +++ b/clients/client-workspaces/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-workspaces/src/endpoint/endpointResolver.ts b/clients/client-workspaces/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-workspaces/src/endpoint/endpointResolver.ts +++ b/clients/client-workspaces/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/clients/client-xray/package.json b/clients/client-xray/package.json index 0a105debf3bc..04b789c1f2a3 100644 --- a/clients/client-xray/package.json +++ b/clients/client-xray/package.json @@ -33,30 +33,30 @@ "@aws-sdk/util-endpoints": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-endpoints": "^2.0.5", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-endpoints": "^2.1.0", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/clients/client-xray/src/endpoint/endpointResolver.ts b/clients/client-xray/src/endpoint/endpointResolver.ts index 26fe4c3775a6..ccee107f30d6 100644 --- a/clients/client-xray/src/endpoint/endpointResolver.ts +++ b/clients/client-xray/src/endpoint/endpointResolver.ts @@ -1,19 +1,26 @@ // smithy-typescript generated code import { awsEndpointFunctions } from "@aws-sdk/util-endpoints"; import { EndpointV2, Logger } from "@smithy/types"; -import { customEndpointFunctions, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; +import { customEndpointFunctions, EndpointCache, EndpointParams, resolveEndpoint } from "@smithy/util-endpoints"; import { EndpointParameters } from "./EndpointParameters"; import { ruleSet } from "./ruleset"; +const cache = new EndpointCache({ + size: 50, + params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"], +}); + export const defaultEndpointResolver = ( endpointParams: EndpointParameters, context: { logger?: Logger } = {} ): EndpointV2 => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams as EndpointParams, - logger: context.logger, - }); + return cache.get(endpointParams as EndpointParams, () => + resolveEndpoint(ruleSet, { + endpointParams: endpointParams as EndpointParams, + logger: context.logger, + }) + ); }; customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/DocumentBareBonesClientGenerator.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/DocumentBareBonesClientGenerator.java index 7ed48fd93bf6..840f8ec9444b 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/DocumentBareBonesClientGenerator.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/DocumentBareBonesClientGenerator.java @@ -183,6 +183,13 @@ private void generateClientConstructor() { writer.write("this.config = client.config;"); writer.write("this.config.translateConfig = translateConfig;"); writer.write("this.middlewareStack = client.middlewareStack;"); + writer.write(""" + if (this.config?.cacheMiddleware) { + throw new Error( + "@aws-sdk/lib-dynamodb - cacheMiddleware=true is not compatible with the DynamoDBDocument client. This option must be set to false." + ); + } + """); writer.popState(); }); } diff --git a/lib/lib-dynamodb/package.json b/lib/lib-dynamodb/package.json index 9007db248346..477142ac37d2 100644 --- a/lib/lib-dynamodb/package.json +++ b/lib/lib-dynamodb/package.json @@ -27,9 +27,9 @@ "license": "Apache-2.0", "dependencies": { "@aws-sdk/util-dynamodb": "*", - "@smithy/core": "^2.4.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", + "@smithy/core": "^2.4.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", "tslib": "^2.6.2" }, "peerDependencies": { diff --git a/lib/lib-dynamodb/src/DynamoDBDocumentClient.ts b/lib/lib-dynamodb/src/DynamoDBDocumentClient.ts index c48f217f122d..8d01b3abeb2e 100644 --- a/lib/lib-dynamodb/src/DynamoDBDocumentClient.ts +++ b/lib/lib-dynamodb/src/DynamoDBDocumentClient.ts @@ -144,6 +144,11 @@ export class DynamoDBDocumentClient extends __Client< this.config = client.config; this.config.translateConfig = translateConfig; this.middlewareStack = client.middlewareStack; + if (this.config?.cacheMiddleware) { + throw new Error( + "@aws-sdk/lib-dynamodb - cacheMiddleware=true is not compatible with the DynamoDBDocument client. This option must be set to false." + ); + } } static from(client: DynamoDBClient, translateConfig?: TranslateConfig) { diff --git a/lib/lib-dynamodb/src/test/lib-dynamodb.e2e.spec.ts b/lib/lib-dynamodb/src/test/lib-dynamodb.e2e.spec.ts index c37223ba0b5b..c91aa8a2e5ad 100644 --- a/lib/lib-dynamodb/src/test/lib-dynamodb.e2e.spec.ts +++ b/lib/lib-dynamodb/src/test/lib-dynamodb.e2e.spec.ts @@ -27,6 +27,18 @@ import { // expected running time: table creation (~20s) + operations 10s jest.setTimeout(180000); +describe(DynamoDBDocument.name, () => { + it("should deny initialization with cacheMiddleware: true", () => { + const dynamodb = new DynamoDB({ + credentials: {} as any, + cacheMiddleware: true, + }); + expect(() => { + DynamoDBDocument.from(dynamodb); + }).toThrow(); + }); +}); + describe(DynamoDBDocument.name, () => { type NestedList = (string | NumberValue | boolean | Set | Set | null | NestedList | NestedMap)[]; type NestedMap = { diff --git a/lib/lib-storage/package.json b/lib/lib-storage/package.json index 3b08b1784809..1814337e3e96 100644 --- a/lib/lib-storage/package.json +++ b/lib/lib-storage/package.json @@ -26,9 +26,9 @@ }, "license": "Apache-2.0", "dependencies": { - "@smithy/abort-controller": "^3.1.1", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/smithy-client": "^3.2.0", + "@smithy/abort-controller": "^3.1.2", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/smithy-client": "^3.3.0", "buffer": "5.6.0", "events": "3.3.0", "stream-browserify": "3.0.0", @@ -39,7 +39,7 @@ }, "devDependencies": { "@aws-sdk/client-s3": "*", - "@smithy/types": "^3.3.0", + "@smithy/types": "^3.4.0", "@tsconfig/recommended": "1.0.1", "@types/node": "^16.18.96", "concurrently": "7.0.0", diff --git a/packages/body-checksum-browser/package.json b/packages/body-checksum-browser/package.json index 5eb7ff87f5c9..756f741d7062 100644 --- a/packages/body-checksum-browser/package.json +++ b/packages/body-checksum-browser/package.json @@ -23,8 +23,8 @@ "@aws-sdk/sha256-tree-hash": "*", "@aws-sdk/types": "*", "@smithy/chunked-blob-reader": "^3.0.0", - "@smithy/protocol-http": "^4.1.0", - "@smithy/types": "^3.3.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/types": "^3.4.0", "@smithy/util-hex-encoding": "^3.0.0", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" diff --git a/packages/body-checksum-node/package.json b/packages/body-checksum-node/package.json index 97fb53c1463c..f6e8ac94cc34 100644 --- a/packages/body-checksum-node/package.json +++ b/packages/body-checksum-node/package.json @@ -24,8 +24,8 @@ "@aws-sdk/sha256-tree-hash": "*", "@aws-sdk/types": "*", "@smithy/is-array-buffer": "^3.0.0", - "@smithy/protocol-http": "^4.1.0", - "@smithy/types": "^3.3.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/types": "^3.4.0", "@smithy/util-hex-encoding": "^3.0.0", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" diff --git a/packages/cloudfront-signer/package.json b/packages/cloudfront-signer/package.json index 42c87a0af17b..96bff3c44e67 100644 --- a/packages/cloudfront-signer/package.json +++ b/packages/cloudfront-signer/package.json @@ -21,7 +21,7 @@ }, "license": "Apache-2.0", "dependencies": { - "@smithy/url-parser": "^3.0.3", + "@smithy/url-parser": "^3.0.4", "tslib": "^2.6.2" }, "files": [ diff --git a/packages/core/package.json b/packages/core/package.json index d554bdacc6d2..80dc43516966 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -75,14 +75,14 @@ }, "license": "Apache-2.0", "dependencies": { - "@smithy/core": "^2.4.0", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/property-provider": "^3.1.3", - "@smithy/protocol-http": "^4.1.0", - "@smithy/signature-v4": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/util-middleware": "^3.0.3", + "@smithy/core": "^2.4.1", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/property-provider": "^3.1.4", + "@smithy/protocol-http": "^4.1.1", + "@smithy/signature-v4": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/util-middleware": "^3.0.4", "fast-xml-parser": "4.4.1", "tslib": "^2.6.2" }, diff --git a/packages/credential-provider-cognito-identity/package.json b/packages/credential-provider-cognito-identity/package.json index a216c3466475..fce43a998492 100644 --- a/packages/credential-provider-cognito-identity/package.json +++ b/packages/credential-provider-cognito-identity/package.json @@ -23,8 +23,8 @@ "dependencies": { "@aws-sdk/client-cognito-identity": "*", "@aws-sdk/types": "*", - "@smithy/property-provider": "^3.1.3", - "@smithy/types": "^3.3.0", + "@smithy/property-provider": "^3.1.4", + "@smithy/types": "^3.4.0", "tslib": "^2.6.2" }, "engines": { diff --git a/packages/credential-provider-env/package.json b/packages/credential-provider-env/package.json index 702a6a2cea84..c19ea68d3ae1 100644 --- a/packages/credential-provider-env/package.json +++ b/packages/credential-provider-env/package.json @@ -25,8 +25,8 @@ "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "*", - "@smithy/property-provider": "^3.1.3", - "@smithy/types": "^3.3.0", + "@smithy/property-provider": "^3.1.4", + "@smithy/types": "^3.4.0", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/packages/credential-provider-http/package.json b/packages/credential-provider-http/package.json index 653ed77c65c6..7c30e48a6946 100644 --- a/packages/credential-provider-http/package.json +++ b/packages/credential-provider-http/package.json @@ -27,13 +27,13 @@ "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "*", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/property-provider": "^3.1.3", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/util-stream": "^3.1.3", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/property-provider": "^3.1.4", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/util-stream": "^3.1.4", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/packages/credential-provider-ini/package.json b/packages/credential-provider-ini/package.json index 56724270e7fe..664fbed7fed4 100644 --- a/packages/credential-provider-ini/package.json +++ b/packages/credential-provider-ini/package.json @@ -30,10 +30,10 @@ "@aws-sdk/credential-provider-sso": "*", "@aws-sdk/credential-provider-web-identity": "*", "@aws-sdk/types": "*", - "@smithy/credential-provider-imds": "^3.2.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", + "@smithy/credential-provider-imds": "^3.2.1", + "@smithy/property-provider": "^3.1.4", + "@smithy/shared-ini-file-loader": "^3.1.5", + "@smithy/types": "^3.4.0", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/packages/credential-provider-node/package.json b/packages/credential-provider-node/package.json index bdd3f22302ca..ded1bb697d41 100644 --- a/packages/credential-provider-node/package.json +++ b/packages/credential-provider-node/package.json @@ -35,10 +35,10 @@ "@aws-sdk/credential-provider-sso": "*", "@aws-sdk/credential-provider-web-identity": "*", "@aws-sdk/types": "*", - "@smithy/credential-provider-imds": "^3.2.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", + "@smithy/credential-provider-imds": "^3.2.1", + "@smithy/property-provider": "^3.1.4", + "@smithy/shared-ini-file-loader": "^3.1.5", + "@smithy/types": "^3.4.0", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/packages/credential-provider-process/package.json b/packages/credential-provider-process/package.json index 91a8004adb17..ccff3d9014a7 100644 --- a/packages/credential-provider-process/package.json +++ b/packages/credential-provider-process/package.json @@ -25,9 +25,9 @@ "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "*", - "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", + "@smithy/property-provider": "^3.1.4", + "@smithy/shared-ini-file-loader": "^3.1.5", + "@smithy/types": "^3.4.0", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/packages/credential-provider-sso/package.json b/packages/credential-provider-sso/package.json index 2da22b5ecc78..3fb127201f2a 100644 --- a/packages/credential-provider-sso/package.json +++ b/packages/credential-provider-sso/package.json @@ -27,9 +27,9 @@ "@aws-sdk/client-sso": "*", "@aws-sdk/token-providers": "*", "@aws-sdk/types": "*", - "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", + "@smithy/property-provider": "^3.1.4", + "@smithy/shared-ini-file-loader": "^3.1.5", + "@smithy/types": "^3.4.0", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/packages/credential-provider-web-identity/package.json b/packages/credential-provider-web-identity/package.json index be49c96fcc28..c9f9fc9662f7 100644 --- a/packages/credential-provider-web-identity/package.json +++ b/packages/credential-provider-web-identity/package.json @@ -33,8 +33,8 @@ "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "*", - "@smithy/property-provider": "^3.1.3", - "@smithy/types": "^3.3.0", + "@smithy/property-provider": "^3.1.4", + "@smithy/types": "^3.4.0", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/packages/credential-providers/package.json b/packages/credential-providers/package.json index 41432c22f6c3..187771dd920f 100644 --- a/packages/credential-providers/package.json +++ b/packages/credential-providers/package.json @@ -41,9 +41,9 @@ "@aws-sdk/credential-provider-sso": "*", "@aws-sdk/credential-provider-web-identity": "*", "@aws-sdk/types": "*", - "@smithy/credential-provider-imds": "^3.2.0", - "@smithy/property-provider": "^3.1.3", - "@smithy/types": "^3.3.0", + "@smithy/credential-provider-imds": "^3.2.1", + "@smithy/property-provider": "^3.1.4", + "@smithy/types": "^3.4.0", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/packages/ec2-metadata-service/package.json b/packages/ec2-metadata-service/package.json index 2a129804efc7..5275ac26bcf7 100644 --- a/packages/ec2-metadata-service/package.json +++ b/packages/ec2-metadata-service/package.json @@ -22,11 +22,11 @@ "types": "./dist-types/index.d.ts", "dependencies": { "@aws-sdk/types": "*", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/types": "^3.3.0", - "@smithy/util-stream": "^3.1.3", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/types": "^3.4.0", + "@smithy/util-stream": "^3.1.4", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/packages/eventstream-handler-node/package.json b/packages/eventstream-handler-node/package.json index 189717dccf79..769cac515704 100644 --- a/packages/eventstream-handler-node/package.json +++ b/packages/eventstream-handler-node/package.json @@ -21,8 +21,8 @@ "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "*", - "@smithy/eventstream-codec": "^3.1.2", - "@smithy/types": "^3.3.0", + "@smithy/eventstream-codec": "^3.1.3", + "@smithy/types": "^3.4.0", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/packages/middleware-api-key/package.json b/packages/middleware-api-key/package.json index 0c707b3a8e7f..14773ea38f98 100644 --- a/packages/middleware-api-key/package.json +++ b/packages/middleware-api-key/package.json @@ -21,9 +21,9 @@ "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "*", - "@smithy/protocol-http": "^4.1.0", - "@smithy/types": "^3.3.0", - "@smithy/util-middleware": "^3.0.3", + "@smithy/protocol-http": "^4.1.1", + "@smithy/types": "^3.4.0", + "@smithy/util-middleware": "^3.0.4", "tslib": "^2.6.2" }, "engines": { diff --git a/packages/middleware-bucket-endpoint/package.json b/packages/middleware-bucket-endpoint/package.json index 88a707709699..e7b0da9c93b8 100644 --- a/packages/middleware-bucket-endpoint/package.json +++ b/packages/middleware-bucket-endpoint/package.json @@ -23,9 +23,9 @@ "dependencies": { "@aws-sdk/types": "*", "@aws-sdk/util-arn-parser": "*", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/types": "^3.3.0", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/protocol-http": "^4.1.1", + "@smithy/types": "^3.4.0", "@smithy/util-config-provider": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/packages/middleware-endpoint-discovery/package.json b/packages/middleware-endpoint-discovery/package.json index a29fc83027bc..38f75aa87ecf 100644 --- a/packages/middleware-endpoint-discovery/package.json +++ b/packages/middleware-endpoint-discovery/package.json @@ -30,9 +30,9 @@ "dependencies": { "@aws-sdk/endpoint-cache": "*", "@aws-sdk/types": "*", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/types": "^3.3.0", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/protocol-http": "^4.1.1", + "@smithy/types": "^3.4.0", "tslib": "^2.6.2" }, "engines": { diff --git a/packages/middleware-eventstream/package.json b/packages/middleware-eventstream/package.json index 8532e54231a2..51031fb42bbe 100644 --- a/packages/middleware-eventstream/package.json +++ b/packages/middleware-eventstream/package.json @@ -22,8 +22,8 @@ "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "*", - "@smithy/protocol-http": "^4.1.0", - "@smithy/types": "^3.3.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/types": "^3.4.0", "tslib": "^2.6.2" }, "engines": { diff --git a/packages/middleware-expect-continue/package.json b/packages/middleware-expect-continue/package.json index 402e770d1ba4..2915b021239f 100644 --- a/packages/middleware-expect-continue/package.json +++ b/packages/middleware-expect-continue/package.json @@ -22,8 +22,8 @@ "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "*", - "@smithy/protocol-http": "^4.1.0", - "@smithy/types": "^3.3.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/types": "^3.4.0", "tslib": "^2.6.2" }, "engines": { diff --git a/packages/middleware-flexible-checksums/package.json b/packages/middleware-flexible-checksums/package.json index a686828ff947..6b825697a564 100644 --- a/packages/middleware-flexible-checksums/package.json +++ b/packages/middleware-flexible-checksums/package.json @@ -32,13 +32,13 @@ "@aws-crypto/crc32c": "5.2.0", "@aws-sdk/types": "*", "@smithy/is-array-buffer": "^3.0.0", - "@smithy/protocol-http": "^4.1.0", - "@smithy/types": "^3.3.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/types": "^3.4.0", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, "devDependencies": { - "@smithy/node-http-handler": "^3.1.4", + "@smithy/node-http-handler": "^3.2.0", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", "rimraf": "3.0.2", diff --git a/packages/middleware-host-header/package.json b/packages/middleware-host-header/package.json index 9a1512225434..975c806b2a67 100644 --- a/packages/middleware-host-header/package.json +++ b/packages/middleware-host-header/package.json @@ -22,8 +22,8 @@ "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "*", - "@smithy/protocol-http": "^4.1.0", - "@smithy/types": "^3.3.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/types": "^3.4.0", "tslib": "^2.6.2" }, "engines": { diff --git a/packages/middleware-location-constraint/package.json b/packages/middleware-location-constraint/package.json index 4cba461f8d71..95233e0e7b19 100644 --- a/packages/middleware-location-constraint/package.json +++ b/packages/middleware-location-constraint/package.json @@ -22,7 +22,7 @@ "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "*", - "@smithy/types": "^3.3.0", + "@smithy/types": "^3.4.0", "tslib": "^2.6.2" }, "engines": { diff --git a/packages/middleware-logger/package.json b/packages/middleware-logger/package.json index ce64078245b5..a85513f480d6 100644 --- a/packages/middleware-logger/package.json +++ b/packages/middleware-logger/package.json @@ -23,7 +23,7 @@ "types": "./dist-types/index.d.ts", "dependencies": { "@aws-sdk/types": "*", - "@smithy/types": "^3.3.0", + "@smithy/types": "^3.4.0", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/packages/middleware-recursion-detection/package.json b/packages/middleware-recursion-detection/package.json index 4a682a1cca92..920b2e2c39e8 100644 --- a/packages/middleware-recursion-detection/package.json +++ b/packages/middleware-recursion-detection/package.json @@ -22,8 +22,8 @@ "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "*", - "@smithy/protocol-http": "^4.1.0", - "@smithy/types": "^3.3.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/types": "^3.4.0", "tslib": "^2.6.2" }, "engines": { diff --git a/packages/middleware-sdk-api-gateway/package.json b/packages/middleware-sdk-api-gateway/package.json index 20bc81e4aa4d..ea0613eb9086 100644 --- a/packages/middleware-sdk-api-gateway/package.json +++ b/packages/middleware-sdk-api-gateway/package.json @@ -22,8 +22,8 @@ "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "*", - "@smithy/protocol-http": "^4.1.0", - "@smithy/types": "^3.3.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/types": "^3.4.0", "tslib": "^2.6.2" }, "engines": { diff --git a/packages/middleware-sdk-ec2/package.json b/packages/middleware-sdk-ec2/package.json index 3f8d1c6e9d5a..f49756e9052b 100644 --- a/packages/middleware-sdk-ec2/package.json +++ b/packages/middleware-sdk-ec2/package.json @@ -23,11 +23,11 @@ "dependencies": { "@aws-sdk/types": "*", "@aws-sdk/util-format-url": "*", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/protocol-http": "^4.1.0", - "@smithy/signature-v4": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/protocol-http": "^4.1.1", + "@smithy/signature-v4": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", "tslib": "^2.6.2" }, "engines": { diff --git a/packages/middleware-sdk-glacier/package.json b/packages/middleware-sdk-glacier/package.json index 47e903361b8c..397a0bff1441 100644 --- a/packages/middleware-sdk-glacier/package.json +++ b/packages/middleware-sdk-glacier/package.json @@ -22,8 +22,8 @@ "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "*", - "@smithy/protocol-http": "^4.1.0", - "@smithy/types": "^3.3.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/types": "^3.4.0", "tslib": "^2.6.2" }, "engines": { diff --git a/packages/middleware-sdk-machinelearning/package.json b/packages/middleware-sdk-machinelearning/package.json index 1b75cb51da28..31a2b7f385d6 100644 --- a/packages/middleware-sdk-machinelearning/package.json +++ b/packages/middleware-sdk-machinelearning/package.json @@ -22,8 +22,8 @@ "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "*", - "@smithy/protocol-http": "^4.1.0", - "@smithy/types": "^3.3.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/types": "^3.4.0", "tslib": "^2.6.2" }, "engines": { diff --git a/packages/middleware-sdk-rds/package.json b/packages/middleware-sdk-rds/package.json index 0e36d6f13473..474d53f4d479 100644 --- a/packages/middleware-sdk-rds/package.json +++ b/packages/middleware-sdk-rds/package.json @@ -23,10 +23,10 @@ "dependencies": { "@aws-sdk/types": "*", "@aws-sdk/util-format-url": "*", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/protocol-http": "^4.1.0", - "@smithy/signature-v4": "^4.1.0", - "@smithy/types": "^3.3.0", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/protocol-http": "^4.1.1", + "@smithy/signature-v4": "^4.1.1", + "@smithy/types": "^3.4.0", "tslib": "^2.6.2" }, "engines": { diff --git a/packages/middleware-sdk-route53/package.json b/packages/middleware-sdk-route53/package.json index b10d4bce1767..a37022e28e67 100644 --- a/packages/middleware-sdk-route53/package.json +++ b/packages/middleware-sdk-route53/package.json @@ -22,7 +22,7 @@ "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "*", - "@smithy/types": "^3.3.0", + "@smithy/types": "^3.4.0", "tslib": "^2.6.2" }, "engines": { diff --git a/packages/middleware-sdk-s3-control/package.json b/packages/middleware-sdk-s3-control/package.json index 53802e28af97..5ea5e667662d 100644 --- a/packages/middleware-sdk-s3-control/package.json +++ b/packages/middleware-sdk-s3-control/package.json @@ -26,13 +26,13 @@ "@aws-sdk/types": "*", "@aws-sdk/util-arn-parser": "*", "@aws-sdk/util-endpoints": "*", - "@smithy/protocol-http": "^4.1.0", - "@smithy/types": "^3.3.0", - "@smithy/util-endpoints": "^2.0.5", + "@smithy/protocol-http": "^4.1.1", + "@smithy/types": "^3.4.0", + "@smithy/util-endpoints": "^2.1.0", "tslib": "^2.6.2" }, "devDependencies": { - "@smithy/middleware-stack": "^3.0.3", + "@smithy/middleware-stack": "^3.0.4", "@tsconfig/recommended": "1.0.1", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", diff --git a/packages/middleware-sdk-s3/package.json b/packages/middleware-sdk-s3/package.json index 4759ef67947b..21fb1247a431 100644 --- a/packages/middleware-sdk-s3/package.json +++ b/packages/middleware-sdk-s3/package.json @@ -26,15 +26,15 @@ "@aws-sdk/core": "*", "@aws-sdk/types": "*", "@aws-sdk/util-arn-parser": "*", - "@smithy/core": "^2.4.0", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/signature-v4": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", + "@smithy/core": "^2.4.1", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/protocol-http": "^4.1.1", + "@smithy/signature-v4": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", "@smithy/util-config-provider": "^3.0.0", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-stream": "^3.1.3", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-stream": "^3.1.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/packages/middleware-sdk-s3/src/bucket-endpoint-middleware.ts b/packages/middleware-sdk-s3/src/bucket-endpoint-middleware.ts index 58d19d0eec30..a199409569c9 100644 --- a/packages/middleware-sdk-s3/src/bucket-endpoint-middleware.ts +++ b/packages/middleware-sdk-s3/src/bucket-endpoint-middleware.ts @@ -28,7 +28,10 @@ export function bucketEndpointMiddleware(options: PreviouslyResolved): Serialize if (typeof bucket === "string") { try { const bucketEndpointUrl = new URL(bucket); - endpoint.url = bucketEndpointUrl; + context.endpointV2 = { + ...endpoint, + url: bucketEndpointUrl, + }; } catch (e) { const warning = `@aws-sdk/middleware-sdk-s3: bucketEndpoint=true was set but Bucket=${bucket} could not be parsed as URL.`; if (context.logger?.constructor?.name === "NoOpLogger") { diff --git a/packages/middleware-sdk-sqs/package.json b/packages/middleware-sdk-sqs/package.json index efcadb7d2bdb..6ee48da9c4d4 100644 --- a/packages/middleware-sdk-sqs/package.json +++ b/packages/middleware-sdk-sqs/package.json @@ -22,8 +22,8 @@ "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "*", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", "@smithy/util-hex-encoding": "^3.0.0", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" diff --git a/packages/middleware-sdk-sqs/src/queue-url.ts b/packages/middleware-sdk-sqs/src/queue-url.ts index 447437352719..659029b6a280 100644 --- a/packages/middleware-sdk-sqs/src/queue-url.ts +++ b/packages/middleware-sdk-sqs/src/queue-url.ts @@ -66,7 +66,10 @@ export function queueUrlMiddleware({ useQueueUrlAsEndpoint, endpoint }: QueueUrl } differs from SQSClient resolved endpoint=${resolvedEndpoint.url.toString()}, using QueueUrl host as endpoint. Set [endpoint=string] or [useQueueUrlAsEndpoint=false] on the SQSClient.` ); - resolvedEndpoint.url = queueUrlOrigin; + context.endpointV2 = { + ...resolvedEndpoint, + url: queueUrlOrigin, + }; } } catch (e: unknown) { logger.warn(e); diff --git a/packages/middleware-sdk-sts/package.json b/packages/middleware-sdk-sts/package.json index 137d92e1f6c8..263927de07a5 100644 --- a/packages/middleware-sdk-sts/package.json +++ b/packages/middleware-sdk-sts/package.json @@ -23,7 +23,7 @@ "dependencies": { "@aws-sdk/middleware-signing": "*", "@aws-sdk/types": "*", - "@smithy/types": "^3.3.0", + "@smithy/types": "^3.4.0", "tslib": "^2.6.2" }, "engines": { diff --git a/packages/middleware-sdk-transcribe-streaming/package.json b/packages/middleware-sdk-transcribe-streaming/package.json index 4fee78dfa51c..919991fa912b 100644 --- a/packages/middleware-sdk-transcribe-streaming/package.json +++ b/packages/middleware-sdk-transcribe-streaming/package.json @@ -23,10 +23,10 @@ "dependencies": { "@aws-sdk/types": "*", "@aws-sdk/util-format-url": "*", - "@smithy/eventstream-serde-browser": "^3.0.6", - "@smithy/protocol-http": "^4.1.0", - "@smithy/signature-v4": "^4.1.0", - "@smithy/types": "^3.3.0", + "@smithy/eventstream-serde-browser": "^3.0.7", + "@smithy/protocol-http": "^4.1.1", + "@smithy/signature-v4": "^4.1.1", + "@smithy/types": "^3.4.0", "tslib": "^2.6.2", "uuid": "^9.0.1" }, diff --git a/packages/middleware-signing/package.json b/packages/middleware-signing/package.json index 6335dcb613c6..acf9a798be68 100644 --- a/packages/middleware-signing/package.json +++ b/packages/middleware-signing/package.json @@ -23,11 +23,11 @@ "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "*", - "@smithy/property-provider": "^3.1.3", - "@smithy/protocol-http": "^4.1.0", - "@smithy/signature-v4": "^4.1.0", - "@smithy/types": "^3.3.0", - "@smithy/util-middleware": "^3.0.3", + "@smithy/property-provider": "^3.1.4", + "@smithy/protocol-http": "^4.1.1", + "@smithy/signature-v4": "^4.1.1", + "@smithy/types": "^3.4.0", + "@smithy/util-middleware": "^3.0.4", "tslib": "^2.6.2" }, "engines": { diff --git a/packages/middleware-ssec/package.json b/packages/middleware-ssec/package.json index edf36d2e0be7..93c7df27d3ff 100644 --- a/packages/middleware-ssec/package.json +++ b/packages/middleware-ssec/package.json @@ -22,7 +22,7 @@ "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "*", - "@smithy/types": "^3.3.0", + "@smithy/types": "^3.4.0", "tslib": "^2.6.2" }, "engines": { diff --git a/packages/middleware-token/package.json b/packages/middleware-token/package.json index b6c7a9d80570..8c64c6e1b291 100644 --- a/packages/middleware-token/package.json +++ b/packages/middleware-token/package.json @@ -28,10 +28,10 @@ "dependencies": { "@aws-sdk/token-providers": "*", "@aws-sdk/types": "*", - "@smithy/property-provider": "^3.1.3", - "@smithy/protocol-http": "^4.1.0", - "@smithy/types": "^3.3.0", - "@smithy/util-middleware": "^3.0.3", + "@smithy/property-provider": "^3.1.4", + "@smithy/protocol-http": "^4.1.1", + "@smithy/types": "^3.4.0", + "@smithy/util-middleware": "^3.0.4", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/packages/middleware-user-agent/package.json b/packages/middleware-user-agent/package.json index b2196288cbf5..b78678add230 100644 --- a/packages/middleware-user-agent/package.json +++ b/packages/middleware-user-agent/package.json @@ -24,8 +24,8 @@ "dependencies": { "@aws-sdk/types": "*", "@aws-sdk/util-endpoints": "*", - "@smithy/protocol-http": "^4.1.0", - "@smithy/types": "^3.3.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/types": "^3.4.0", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/packages/middleware-websocket/package.json b/packages/middleware-websocket/package.json index da28c92633f9..d0e8943f835f 100644 --- a/packages/middleware-websocket/package.json +++ b/packages/middleware-websocket/package.json @@ -24,12 +24,12 @@ "@aws-sdk/middleware-signing": "*", "@aws-sdk/types": "*", "@aws-sdk/util-format-url": "*", - "@smithy/eventstream-codec": "^3.1.2", - "@smithy/eventstream-serde-browser": "^3.0.6", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/signature-v4": "^4.1.0", - "@smithy/types": "^3.3.0", + "@smithy/eventstream-codec": "^3.1.3", + "@smithy/eventstream-serde-browser": "^3.0.7", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/protocol-http": "^4.1.1", + "@smithy/signature-v4": "^4.1.1", + "@smithy/types": "^3.4.0", "@smithy/util-hex-encoding": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/packages/polly-request-presigner/package.json b/packages/polly-request-presigner/package.json index 9ca9c53a77b7..d8cf2d928441 100644 --- a/packages/polly-request-presigner/package.json +++ b/packages/polly-request-presigner/package.json @@ -24,9 +24,9 @@ "@aws-sdk/client-polly": "*", "@aws-sdk/types": "*", "@aws-sdk/util-format-url": "*", - "@smithy/protocol-http": "^4.1.0", - "@smithy/signature-v4": "^4.1.0", - "@smithy/types": "^3.3.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/signature-v4": "^4.1.1", + "@smithy/types": "^3.4.0", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/packages/rds-signer/package.json b/packages/rds-signer/package.json index 8ccb3fb4aacc..e0e105fdb7db 100644 --- a/packages/rds-signer/package.json +++ b/packages/rds-signer/package.json @@ -29,13 +29,13 @@ "@aws-crypto/sha256-js": "5.2.0", "@aws-sdk/credential-providers": "*", "@aws-sdk/util-format-url": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/signature-v4": "^4.1.0", - "@smithy/types": "^3.3.0", + "@smithy/config-resolver": "^3.0.6", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/protocol-http": "^4.1.1", + "@smithy/signature-v4": "^4.1.1", + "@smithy/types": "^3.4.0", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/packages/region-config-resolver/package.json b/packages/region-config-resolver/package.json index 37c17616b8d7..e858fb1e4f93 100644 --- a/packages/region-config-resolver/package.json +++ b/packages/region-config-resolver/package.json @@ -22,10 +22,10 @@ "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "*", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/types": "^3.3.0", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/types": "^3.4.0", "@smithy/util-config-provider": "^3.0.0", - "@smithy/util-middleware": "^3.0.3", + "@smithy/util-middleware": "^3.0.4", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/packages/s3-presigned-post/package.json b/packages/s3-presigned-post/package.json index 385574630645..af6e2ba6ea18 100644 --- a/packages/s3-presigned-post/package.json +++ b/packages/s3-presigned-post/package.json @@ -25,9 +25,9 @@ "@aws-sdk/client-s3": "*", "@aws-sdk/types": "*", "@aws-sdk/util-format-url": "*", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/signature-v4": "^4.1.0", - "@smithy/types": "^3.3.0", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/signature-v4": "^4.1.1", + "@smithy/types": "^3.4.0", "@smithy/util-hex-encoding": "^3.0.0", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" diff --git a/packages/s3-request-presigner/package.json b/packages/s3-request-presigner/package.json index 446538252443..d32cc208fca1 100644 --- a/packages/s3-request-presigner/package.json +++ b/packages/s3-request-presigner/package.json @@ -24,15 +24,15 @@ "@aws-sdk/signature-v4-multi-region": "*", "@aws-sdk/types": "*", "@aws-sdk/util-format-url": "*", - "@smithy/middleware-endpoint": "^3.1.0", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", + "@smithy/middleware-endpoint": "^3.1.1", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", "tslib": "^2.6.2" }, "devDependencies": { "@aws-sdk/client-s3": "*", - "@smithy/hash-node": "^3.0.3", + "@smithy/hash-node": "^3.0.4", "@tsconfig/recommended": "1.0.1", "@types/node": "^16.18.96", "concurrently": "7.0.0", diff --git a/packages/sha256-tree-hash/package.json b/packages/sha256-tree-hash/package.json index 3bae682ab425..57105cf45ee5 100644 --- a/packages/sha256-tree-hash/package.json +++ b/packages/sha256-tree-hash/package.json @@ -21,7 +21,7 @@ "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "*", - "@smithy/types": "^3.3.0", + "@smithy/types": "^3.4.0", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/packages/signature-v4-crt/package.json b/packages/signature-v4-crt/package.json index f9020c68e54e..960f67384bdd 100644 --- a/packages/signature-v4-crt/package.json +++ b/packages/signature-v4-crt/package.json @@ -25,16 +25,16 @@ "@aws-sdk/signature-v4-multi-region": "*", "@aws-sdk/types": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/querystring-parser": "^3.0.3", - "@smithy/signature-v4": "^4.1.0", - "@smithy/types": "^3.3.0", - "@smithy/util-middleware": "^3.0.3", + "@smithy/querystring-parser": "^3.0.4", + "@smithy/signature-v4": "^4.1.1", + "@smithy/types": "^3.4.0", + "@smithy/util-middleware": "^3.0.4", "aws-crt": "^1.18.3", "tslib": "^2.6.2" }, "devDependencies": { "@aws-crypto/sha256-js": "5.2.0", - "@smithy/protocol-http": "^4.1.0", + "@smithy/protocol-http": "^4.1.1", "@tsconfig/recommended": "1.0.1", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", diff --git a/packages/signature-v4-multi-region/package.json b/packages/signature-v4-multi-region/package.json index 8d3c694f8fb1..40efba824c9e 100644 --- a/packages/signature-v4-multi-region/package.json +++ b/packages/signature-v4-multi-region/package.json @@ -22,9 +22,9 @@ "dependencies": { "@aws-sdk/middleware-sdk-s3": "*", "@aws-sdk/types": "*", - "@smithy/protocol-http": "^4.1.0", - "@smithy/signature-v4": "^4.1.0", - "@smithy/types": "^3.3.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/signature-v4": "^4.1.1", + "@smithy/types": "^3.4.0", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/packages/smithy-client/package.json b/packages/smithy-client/package.json index 14ad5f7fa9dd..d9e446aef6c2 100644 --- a/packages/smithy-client/package.json +++ b/packages/smithy-client/package.json @@ -22,7 +22,7 @@ }, "license": "Apache-2.0", "dependencies": { - "@smithy/smithy-client": "^3.2.0", + "@smithy/smithy-client": "^3.3.0", "tslib": "^2.6.2" }, "engines": { diff --git a/packages/token-providers/package.json b/packages/token-providers/package.json index 0f52a29ccf68..40a24a925ff1 100644 --- a/packages/token-providers/package.json +++ b/packages/token-providers/package.json @@ -27,9 +27,9 @@ "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "*", - "@smithy/property-provider": "^3.1.3", - "@smithy/shared-ini-file-loader": "^3.1.4", - "@smithy/types": "^3.3.0", + "@smithy/property-provider": "^3.1.4", + "@smithy/shared-ini-file-loader": "^3.1.5", + "@smithy/types": "^3.4.0", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/packages/types/package.json b/packages/types/package.json index 8e266328df8b..9eccffe62145 100755 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -41,7 +41,7 @@ "directory": "packages/types" }, "dependencies": { - "@smithy/types": "^3.3.0", + "@smithy/types": "^3.4.0", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/packages/util-create-request/package.json b/packages/util-create-request/package.json index 5773a65b68df..5728f9f9e0d0 100644 --- a/packages/util-create-request/package.json +++ b/packages/util-create-request/package.json @@ -22,13 +22,13 @@ "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "*", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", "tslib": "^2.6.2" }, "devDependencies": { - "@smithy/protocol-http": "^4.1.0", + "@smithy/protocol-http": "^4.1.1", "@tsconfig/recommended": "1.0.1", "@types/node": "^16.18.96", "concurrently": "7.0.0", diff --git a/packages/util-endpoints/package.json b/packages/util-endpoints/package.json index c0a4299ee0c5..27cef36fc1c9 100644 --- a/packages/util-endpoints/package.json +++ b/packages/util-endpoints/package.json @@ -23,8 +23,8 @@ "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "*", - "@smithy/types": "^3.3.0", - "@smithy/util-endpoints": "^2.0.5", + "@smithy/types": "^3.4.0", + "@smithy/util-endpoints": "^2.1.0", "tslib": "^2.6.2" }, "engines": { diff --git a/packages/util-format-url/package.json b/packages/util-format-url/package.json index b65cb399cbae..3da4a354e5da 100644 --- a/packages/util-format-url/package.json +++ b/packages/util-format-url/package.json @@ -21,8 +21,8 @@ "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "*", - "@smithy/querystring-builder": "^3.0.3", - "@smithy/types": "^3.3.0", + "@smithy/querystring-builder": "^3.0.4", + "@smithy/types": "^3.4.0", "tslib": "^2.6.2" }, "engines": { diff --git a/packages/util-user-agent-browser/package.json b/packages/util-user-agent-browser/package.json index 1c980d398816..a28628ee98ed 100644 --- a/packages/util-user-agent-browser/package.json +++ b/packages/util-user-agent-browser/package.json @@ -23,7 +23,7 @@ "react-native": "dist-es/index.native.js", "dependencies": { "@aws-sdk/types": "*", - "@smithy/types": "^3.3.0", + "@smithy/types": "^3.4.0", "bowser": "^2.11.0", "tslib": "^2.6.2" }, diff --git a/packages/util-user-agent-node/package.json b/packages/util-user-agent-node/package.json index 8894ca81927d..4289325ae53c 100644 --- a/packages/util-user-agent-node/package.json +++ b/packages/util-user-agent-node/package.json @@ -21,8 +21,8 @@ "license": "Apache-2.0", "dependencies": { "@aws-sdk/types": "*", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/types": "^3.3.0", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/types": "^3.4.0", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/packages/xhr-http-handler/package.json b/packages/xhr-http-handler/package.json index 8c19370e82fd..b1ac58c3cc51 100644 --- a/packages/xhr-http-handler/package.json +++ b/packages/xhr-http-handler/package.json @@ -20,14 +20,14 @@ "types": "./dist-types/index.d.ts", "dependencies": { "@aws-sdk/types": "*", - "@smithy/protocol-http": "^4.1.0", - "@smithy/querystring-builder": "^3.0.3", - "@smithy/types": "^3.3.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/querystring-builder": "^3.0.4", + "@smithy/types": "^3.4.0", "events": "3.3.0", "tslib": "^2.6.2" }, "devDependencies": { - "@smithy/abort-controller": "^3.1.1", + "@smithy/abort-controller": "^3.1.2", "@tsconfig/recommended": "1.0.1", "concurrently": "7.0.0", "downlevel-dts": "0.10.1", diff --git a/packages/xml-builder/package.json b/packages/xml-builder/package.json index cbec9e40a929..511de0e54e32 100644 --- a/packages/xml-builder/package.json +++ b/packages/xml-builder/package.json @@ -3,7 +3,7 @@ "version": "3.609.0", "description": "XML builder for the AWS SDK", "dependencies": { - "@smithy/types": "^3.3.0", + "@smithy/types": "^3.4.0", "tslib": "^2.6.2" }, "scripts": { diff --git a/private/aws-client-api-test/package.json b/private/aws-client-api-test/package.json index 24be75e000fd..2c4e3bf512b2 100644 --- a/private/aws-client-api-test/package.json +++ b/private/aws-client-api-test/package.json @@ -23,21 +23,21 @@ "@aws-sdk/middleware-sdk-s3": "*", "@aws-sdk/signature-v4-multi-region": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/eventstream-serde-node": "^3.0.5", - "@smithy/hash-node": "^3.0.3", - "@smithy/hash-stream-node": "^3.1.2", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/eventstream-serde-node": "^3.0.6", + "@smithy/hash-node": "^3.0.4", + "@smithy/hash-stream-node": "^3.1.3", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-stream": "^3.1.3", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-retry": "^3.0.4", + "@smithy/util-stream": "^3.1.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/private/aws-client-api-test/src/client-interface-tests/client-s3/impl/initializeWithMaximalConfiguration.ts b/private/aws-client-api-test/src/client-interface-tests/client-s3/impl/initializeWithMaximalConfiguration.ts index c6f7e9a9e992..628b96366aea 100644 --- a/private/aws-client-api-test/src/client-interface-tests/client-s3/impl/initializeWithMaximalConfiguration.ts +++ b/private/aws-client-api-test/src/client-interface-tests/client-s3/impl/initializeWithMaximalConfiguration.ts @@ -40,6 +40,7 @@ export const initializeWithMaximalConfiguration = () => { region: loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), credentials: defaultProvider({}), endpoint: "endpoint", + cacheMiddleware: true, requestHandler: new NodeHttpHandler({ httpsAgent: new https.Agent({ maxSockets: 200, @@ -106,6 +107,7 @@ export const initializeWithMaximalConfiguration = () => { utf8Encoder: toUtf8, httpAuthSchemes: [], httpAuthSchemeProvider: (() => null) as unknown as HttpAuthSchemeProvider, + serviceConfiguredEndpoint: null as never, // END internal options // S3 specific options below diff --git a/private/aws-client-retry-test/package.json b/private/aws-client-retry-test/package.json index 29d4b916d2d2..b17baf5e9b93 100644 --- a/private/aws-client-retry-test/package.json +++ b/private/aws-client-retry-test/package.json @@ -18,9 +18,9 @@ "sideEffects": false, "dependencies": { "@aws-sdk/client-s3": "*", - "@smithy/protocol-http": "^4.1.0", - "@smithy/types": "^3.3.0", - "@smithy/util-retry": "^3.0.3", + "@smithy/protocol-http": "^4.1.1", + "@smithy/types": "^3.4.0", + "@smithy/util-retry": "^3.0.4", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/private/aws-echo-service/package.json b/private/aws-echo-service/package.json index 301a1489ebcb..47ebc3b47cd0 100644 --- a/private/aws-echo-service/package.json +++ b/private/aws-echo-service/package.json @@ -27,28 +27,28 @@ "@aws-sdk/types": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/private/aws-middleware-test/package.json b/private/aws-middleware-test/package.json index 5cea43581411..1d4a288c9116 100644 --- a/private/aws-middleware-test/package.json +++ b/private/aws-middleware-test/package.json @@ -25,9 +25,9 @@ "@aws-sdk/client-sagemaker": "*", "@aws-sdk/client-sagemaker-runtime": "*", "@aws-sdk/client-xray": "*", - "@smithy/protocol-http": "^4.1.0", - "@smithy/types": "^3.3.0", - "@smithy/util-stream": "^3.1.3", + "@smithy/protocol-http": "^4.1.1", + "@smithy/types": "^3.4.0", + "@smithy/util-stream": "^3.1.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/private/aws-protocoltests-ec2/package.json b/private/aws-protocoltests-ec2/package.json index d523e5f08592..37dcef0b7c61 100644 --- a/private/aws-protocoltests-ec2/package.json +++ b/private/aws-protocoltests-ec2/package.json @@ -31,29 +31,29 @@ "@aws-sdk/types": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-compression": "^3.0.7", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-compression": "^3.0.8", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/private/aws-protocoltests-ec2/src/endpoints.ts b/private/aws-protocoltests-ec2/src/endpoints.ts index 9e16bec4c14f..0d0710dc418a 100644 --- a/private/aws-protocoltests-ec2/src/endpoints.ts +++ b/private/aws-protocoltests-ec2/src/endpoints.ts @@ -38,7 +38,7 @@ const partitionHash: PartitionHash = { "us-west-1", "us-west-2", ], - regionRegex: "^(us|eu|ap|sa|ca|me|af|il)\\-\\w+\\-\\d+$", + regionRegex: "^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$", variants: [ { hostname: "awsec2.{region}.amazonaws.com", diff --git a/private/aws-protocoltests-json-10/package.json b/private/aws-protocoltests-json-10/package.json index 096ff809e77c..18217f3e1448 100644 --- a/private/aws-protocoltests-json-10/package.json +++ b/private/aws-protocoltests-json-10/package.json @@ -31,29 +31,29 @@ "@aws-sdk/types": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-compression": "^3.0.7", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-compression": "^3.0.8", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/private/aws-protocoltests-json-10/src/endpoints.ts b/private/aws-protocoltests-json-10/src/endpoints.ts index c811960de630..fa8829624614 100644 --- a/private/aws-protocoltests-json-10/src/endpoints.ts +++ b/private/aws-protocoltests-json-10/src/endpoints.ts @@ -38,7 +38,7 @@ const partitionHash: PartitionHash = { "us-west-1", "us-west-2", ], - regionRegex: "^(us|eu|ap|sa|ca|me|af|il)\\-\\w+\\-\\d+$", + regionRegex: "^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$", variants: [ { hostname: "jsonrpc10.{region}.amazonaws.com", diff --git a/private/aws-protocoltests-json-machinelearning/package.json b/private/aws-protocoltests-json-machinelearning/package.json index 8a0eae395b0d..e1cd6b2d825c 100644 --- a/private/aws-protocoltests-json-machinelearning/package.json +++ b/private/aws-protocoltests-json-machinelearning/package.json @@ -32,28 +32,28 @@ "@aws-sdk/types": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/private/aws-protocoltests-json-machinelearning/src/endpoints.ts b/private/aws-protocoltests-json-machinelearning/src/endpoints.ts index f4e8b7fa4f93..a662425d9843 100644 --- a/private/aws-protocoltests-json-machinelearning/src/endpoints.ts +++ b/private/aws-protocoltests-json-machinelearning/src/endpoints.ts @@ -38,7 +38,7 @@ const partitionHash: PartitionHash = { "us-west-1", "us-west-2", ], - regionRegex: "^(us|eu|ap|sa|ca|me|af|il)\\-\\w+\\-\\d+$", + regionRegex: "^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$", variants: [ { hostname: "machinelearning.{region}.amazonaws.com", diff --git a/private/aws-protocoltests-json/package.json b/private/aws-protocoltests-json/package.json index 63cad7575f20..a495f0de3897 100644 --- a/private/aws-protocoltests-json/package.json +++ b/private/aws-protocoltests-json/package.json @@ -31,29 +31,29 @@ "@aws-sdk/types": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-compression": "^3.0.7", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-compression": "^3.0.8", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/private/aws-protocoltests-json/src/endpoints.ts b/private/aws-protocoltests-json/src/endpoints.ts index e1491f6ceb47..66569e15f74b 100644 --- a/private/aws-protocoltests-json/src/endpoints.ts +++ b/private/aws-protocoltests-json/src/endpoints.ts @@ -38,7 +38,7 @@ const partitionHash: PartitionHash = { "us-west-1", "us-west-2", ], - regionRegex: "^(us|eu|ap|sa|ca|me|af|il)\\-\\w+\\-\\d+$", + regionRegex: "^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$", variants: [ { hostname: "jsonprotocol.{region}.amazonaws.com", diff --git a/private/aws-protocoltests-query/package.json b/private/aws-protocoltests-query/package.json index 38a65f043db0..b9e0414df69e 100644 --- a/private/aws-protocoltests-query/package.json +++ b/private/aws-protocoltests-query/package.json @@ -31,29 +31,29 @@ "@aws-sdk/types": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-compression": "^3.0.7", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-compression": "^3.0.8", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/private/aws-protocoltests-query/src/endpoints.ts b/private/aws-protocoltests-query/src/endpoints.ts index 754d9733a084..4a3f001c8bfb 100644 --- a/private/aws-protocoltests-query/src/endpoints.ts +++ b/private/aws-protocoltests-query/src/endpoints.ts @@ -38,7 +38,7 @@ const partitionHash: PartitionHash = { "us-west-1", "us-west-2", ], - regionRegex: "^(us|eu|ap|sa|ca|me|af|il)\\-\\w+\\-\\d+$", + regionRegex: "^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$", variants: [ { hostname: "awsquery.{region}.amazonaws.com", diff --git a/private/aws-protocoltests-restjson-apigateway/package.json b/private/aws-protocoltests-restjson-apigateway/package.json index 775829932409..07a95394348e 100644 --- a/private/aws-protocoltests-restjson-apigateway/package.json +++ b/private/aws-protocoltests-restjson-apigateway/package.json @@ -32,28 +32,28 @@ "@aws-sdk/types": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/private/aws-protocoltests-restjson-apigateway/src/endpoints.ts b/private/aws-protocoltests-restjson-apigateway/src/endpoints.ts index d58ae9bc274f..9c11f1a132a7 100644 --- a/private/aws-protocoltests-restjson-apigateway/src/endpoints.ts +++ b/private/aws-protocoltests-restjson-apigateway/src/endpoints.ts @@ -93,7 +93,7 @@ const partitionHash: PartitionHash = { "us-west-1", "us-west-2", ], - regionRegex: "^(us|eu|ap|sa|ca|me|af|il)\\-\\w+\\-\\d+$", + regionRegex: "^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$", variants: [ { hostname: "apigateway.{region}.amazonaws.com", diff --git a/private/aws-protocoltests-restjson-glacier/package.json b/private/aws-protocoltests-restjson-glacier/package.json index 83ea4f6d58e2..7b6b0986b9f4 100644 --- a/private/aws-protocoltests-restjson-glacier/package.json +++ b/private/aws-protocoltests-restjson-glacier/package.json @@ -34,28 +34,28 @@ "@aws-sdk/types": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/private/aws-protocoltests-restjson-glacier/src/endpoints.ts b/private/aws-protocoltests-restjson-glacier/src/endpoints.ts index 49c9bfc1b71c..6a1055168f79 100644 --- a/private/aws-protocoltests-restjson-glacier/src/endpoints.ts +++ b/private/aws-protocoltests-restjson-glacier/src/endpoints.ts @@ -100,7 +100,7 @@ const partitionHash: PartitionHash = { "us-west-1", "us-west-2", ], - regionRegex: "^(us|eu|ap|sa|ca|me|af|il)\\-\\w+\\-\\d+$", + regionRegex: "^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$", variants: [ { hostname: "glacier.{region}.amazonaws.com", diff --git a/private/aws-protocoltests-restjson/package.json b/private/aws-protocoltests-restjson/package.json index c079aa0422c8..b27f0638890a 100644 --- a/private/aws-protocoltests-restjson/package.json +++ b/private/aws-protocoltests-restjson/package.json @@ -31,35 +31,35 @@ "@aws-sdk/types": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-blob-browser": "^3.1.2", - "@smithy/hash-node": "^3.0.3", - "@smithy/hash-stream-node": "^3.1.2", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/md5-js": "^3.0.3", - "@smithy/middleware-apply-body-checksum": "^3.0.5", - "@smithy/middleware-compression": "^3.0.7", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/querystring-builder": "^3.0.3", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-blob-browser": "^3.1.3", + "@smithy/hash-node": "^3.0.4", + "@smithy/hash-stream-node": "^3.1.3", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/md5-js": "^3.0.4", + "@smithy/middleware-apply-body-checksum": "^3.0.6", + "@smithy/middleware-compression": "^3.0.8", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/querystring-builder": "^3.0.4", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-stream": "^3.1.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", + "@smithy/util-stream": "^3.1.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/private/aws-protocoltests-restjson/src/endpoints.ts b/private/aws-protocoltests-restjson/src/endpoints.ts index b1351b61cef4..27d48236044a 100644 --- a/private/aws-protocoltests-restjson/src/endpoints.ts +++ b/private/aws-protocoltests-restjson/src/endpoints.ts @@ -38,7 +38,7 @@ const partitionHash: PartitionHash = { "us-west-1", "us-west-2", ], - regionRegex: "^(us|eu|ap|sa|ca|me|af|il)\\-\\w+\\-\\d+$", + regionRegex: "^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$", variants: [ { hostname: "restjson.{region}.amazonaws.com", diff --git a/private/aws-protocoltests-restxml/package.json b/private/aws-protocoltests-restxml/package.json index 6986258522a1..cf03f89b0591 100644 --- a/private/aws-protocoltests-restxml/package.json +++ b/private/aws-protocoltests-restxml/package.json @@ -32,31 +32,31 @@ "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", "@aws-sdk/xml-builder": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-compression": "^3.0.7", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/querystring-builder": "^3.0.3", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-compression": "^3.0.8", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/querystring-builder": "^3.0.4", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-stream": "^3.1.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", + "@smithy/util-stream": "^3.1.4", "@smithy/util-utf8": "^3.0.0", "entities": "2.2.0", "fast-xml-parser": "4.4.1", diff --git a/private/aws-protocoltests-restxml/src/endpoints.ts b/private/aws-protocoltests-restxml/src/endpoints.ts index 6361190e34f8..e32abc544bd0 100644 --- a/private/aws-protocoltests-restxml/src/endpoints.ts +++ b/private/aws-protocoltests-restxml/src/endpoints.ts @@ -38,7 +38,7 @@ const partitionHash: PartitionHash = { "us-west-1", "us-west-2", ], - regionRegex: "^(us|eu|ap|sa|ca|me|af|il)\\-\\w+\\-\\d+$", + regionRegex: "^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$", variants: [ { hostname: "restxml.{region}.amazonaws.com", diff --git a/private/aws-protocoltests-smithy-rpcv2-cbor/package.json b/private/aws-protocoltests-smithy-rpcv2-cbor/package.json index 02fba45a8b6c..5a006479171c 100644 --- a/private/aws-protocoltests-smithy-rpcv2-cbor/package.json +++ b/private/aws-protocoltests-smithy-rpcv2-cbor/package.json @@ -26,28 +26,28 @@ "@aws-sdk/types": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/private/aws-restjson-server/package.json b/private/aws-restjson-server/package.json index 79331a7406cd..92efdee2cd0d 100644 --- a/private/aws-restjson-server/package.json +++ b/private/aws-restjson-server/package.json @@ -23,24 +23,24 @@ "@aws-sdk/core": "*", "@aws-sdk/types": "*", "@aws-smithy/server-common": "1.0.0-alpha.10", - "@smithy/config-resolver": "^3.0.5", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/private/aws-restjson-validation-server/package.json b/private/aws-restjson-validation-server/package.json index c9ae3453bc09..4e29e8d0fc48 100644 --- a/private/aws-restjson-validation-server/package.json +++ b/private/aws-restjson-validation-server/package.json @@ -23,24 +23,24 @@ "@aws-sdk/core": "*", "@aws-sdk/types": "*", "@aws-smithy/server-common": "1.0.0-alpha.10", - "@smithy/config-resolver": "^3.0.5", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2" }, diff --git a/private/aws-util-test/package.json b/private/aws-util-test/package.json index 5f27035452cc..f4ceff161e1e 100644 --- a/private/aws-util-test/package.json +++ b/private/aws-util-test/package.json @@ -17,8 +17,8 @@ "sideEffects": false, "dependencies": { "@aws-sdk/aws-protocoltests-json": "*", - "@smithy/protocol-http": "^4.1.0", - "@smithy/types": "^3.3.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/types": "^3.4.0", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/private/weather-experimental-identity-and-auth/.gitignore b/private/weather-experimental-identity-and-auth/.gitignore deleted file mode 100644 index 54f14c9aef25..000000000000 --- a/private/weather-experimental-identity-and-auth/.gitignore +++ /dev/null @@ -1,9 +0,0 @@ -/node_modules/ -/build/ -/coverage/ -/docs/ -/dist-* -*.tsbuildinfo -*.tgz -*.log -package-lock.json diff --git a/private/weather-experimental-identity-and-auth/CHANGELOG.md b/private/weather-experimental-identity-and-auth/CHANGELOG.md deleted file mode 100644 index bbfffa2e614a..000000000000 --- a/private/weather-experimental-identity-and-auth/CHANGELOG.md +++ /dev/null @@ -1,489 +0,0 @@ -# Change Log - -All notable changes to this project will be documented in this file. -See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. - -# [3.645.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.644.0...v3.645.0) (2024-09-04) - -**Note:** Version bump only for package @aws-sdk/weather-experimental-identity-and-auth - - - - - -# [3.637.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.636.0...v3.637.0) (2024-08-22) - -**Note:** Version bump only for package @aws-sdk/weather-experimental-identity-and-auth - - - - - -# [3.635.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.634.0...v3.635.0) (2024-08-20) - - -### Features - -* **codegen:** add Smithy RPCv2 CBOR to list of protocols ([#6096](https://github.com/aws/aws-sdk-js-v3/issues/6096)) ([5154d4f](https://github.com/aws/aws-sdk-js-v3/commit/5154d4f19bc77a7bad075b35ce135d3b5f60ad1d)) - - - - - -# [3.632.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.631.0...v3.632.0) (2024-08-15) - -**Note:** Version bump only for package @aws-sdk/weather-experimental-identity-and-auth - - - - - -# [3.631.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.630.0...v3.631.0) (2024-08-14) - -**Note:** Version bump only for package @aws-sdk/weather-experimental-identity-and-auth - - - - - -# [3.622.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.621.0...v3.622.0) (2024-08-01) - -**Note:** Version bump only for package @aws-sdk/weather-experimental-identity-and-auth - - - - - -# [3.621.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.620.1...v3.621.0) (2024-07-30) - -**Note:** Version bump only for package @aws-sdk/weather-experimental-identity-and-auth - - - - - -# [3.620.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.619.0...v3.620.0) (2024-07-25) - -**Note:** Version bump only for package @aws-sdk/weather-experimental-identity-and-auth - - - - - -# [3.616.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.615.0...v3.616.0) (2024-07-18) - -**Note:** Version bump only for package @aws-sdk/weather-experimental-identity-and-auth - - - - - -# [3.614.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.613.0...v3.614.0) (2024-07-10) - -**Note:** Version bump only for package @aws-sdk/weather-experimental-identity-and-auth - - - - - -# [3.609.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.608.0...v3.609.0) (2024-07-02) - -**Note:** Version bump only for package @aws-sdk/weather-experimental-identity-and-auth - - - - - -# [3.598.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.597.0...v3.598.0) (2024-06-14) - -**Note:** Version bump only for package @aws-sdk/weather-experimental-identity-and-auth - - - - - -# [3.592.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.591.0...v3.592.0) (2024-06-06) - -**Note:** Version bump only for package @aws-sdk/weather-experimental-identity-and-auth - - - - - -# [3.590.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.589.0...v3.590.0) (2024-06-04) - - -### Bug Fixes - -* **codegen:** consistently add region as config option when generated client is Sigv4 but not AWS ([#6156](https://github.com/aws/aws-sdk-js-v3/issues/6156)) ([06f51cc](https://github.com/aws/aws-sdk-js-v3/commit/06f51ccdc1c825f4b4de6a865520ace78c098ff3)) - - - - - -# [3.587.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.586.0...v3.587.0) (2024-05-30) - -**Note:** Version bump only for package @aws-sdk/weather-experimental-identity-and-auth - - - - - -# [3.583.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.582.0...v3.583.0) (2024-05-23) - -**Note:** Version bump only for package @aws-sdk/weather-experimental-identity-and-auth - - - - - -# [3.582.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.581.0...v3.582.0) (2024-05-22) - -**Note:** Version bump only for package @aws-sdk/weather-experimental-identity-and-auth - - - - - -# [3.577.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.576.0...v3.577.0) (2024-05-15) - -**Note:** Version bump only for package @aws-sdk/weather-experimental-identity-and-auth - - - - - -# [3.575.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.574.0...v3.575.0) (2024-05-13) - -**Note:** Version bump only for package @aws-sdk/weather-experimental-identity-and-auth - - - - - -# [3.572.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.571.0...v3.572.0) (2024-05-08) - -**Note:** Version bump only for package @aws-sdk/weather-experimental-identity-and-auth - - - - - -# [3.568.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.567.0...v3.568.0) (2024-05-02) - -**Note:** Version bump only for package @aws-sdk/weather-experimental-identity-and-auth - - - - - -# [3.567.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.566.0...v3.567.0) (2024-05-01) - - -### Features - -* end support for Node.js 14.x ([#6034](https://github.com/aws/aws-sdk-js-v3/issues/6034)) ([d196411](https://github.com/aws/aws-sdk-js-v3/commit/d19641119f07d62c29f12348f448cd834d841533)) - - - - - -# [3.556.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.555.0...v3.556.0) (2024-04-16) - -**Note:** Version bump only for package @aws-sdk/weather-experimental-identity-and-auth - - - - - -# [3.552.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.551.0...v3.552.0) (2024-04-09) - -**Note:** Version bump only for package @aws-sdk/weather-experimental-identity-and-auth - - - - - -# [3.549.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.548.0...v3.549.0) (2024-04-04) - -**Note:** Version bump only for package @aws-sdk/weather-experimental-identity-and-auth - - - - - -# [3.540.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.539.0...v3.540.0) (2024-03-22) - -**Note:** Version bump only for package @aws-sdk/weather-experimental-identity-and-auth - - - - - -# [3.535.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.534.0...v3.535.0) (2024-03-15) - -**Note:** Version bump only for package @aws-sdk/weather-experimental-identity-and-auth - - - - - -# [3.533.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.532.0...v3.533.0) (2024-03-13) - -**Note:** Version bump only for package @aws-sdk/weather-experimental-identity-and-auth - - - - - -# [3.525.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.524.0...v3.525.0) (2024-02-29) - -**Note:** Version bump only for package @aws-sdk/weather-experimental-identity-and-auth - - - - - -# [3.523.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.522.0...v3.523.0) (2024-02-27) - -**Note:** Version bump only for package @aws-sdk/weather-experimental-identity-and-auth - - - - - -# [3.521.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.520.0...v3.521.0) (2024-02-23) - - -### Features - -* requestHandler ctor param pass-through ([#5820](https://github.com/aws/aws-sdk-js-v3/issues/5820)) ([9fec71d](https://github.com/aws/aws-sdk-js-v3/commit/9fec71d1933cd8e3db118c164bca16edc2305532)) - - - - - -# [3.515.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.514.0...v3.515.0) (2024-02-15) - -**Note:** Version bump only for package @aws-sdk/weather-experimental-identity-and-auth - - - - - -# [3.513.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.512.0...v3.513.0) (2024-02-13) - - -### Features - -* **experimentalIdentityAndAuth:** release phase for services without customizations ([#5787](https://github.com/aws/aws-sdk-js-v3/issues/5787)) ([4004ff6](https://github.com/aws/aws-sdk-js-v3/commit/4004ff68a8ad20f6e60e8fab1f8952928f92f4b7)) - - - - - -# [3.511.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.510.0...v3.511.0) (2024-02-09) - -**Note:** Version bump only for package @aws-sdk/weather-experimental-identity-and-auth - - - - - -# [3.502.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.501.0...v3.502.0) (2024-01-29) - -**Note:** Version bump only for package @aws-sdk/weather-experimental-identity-and-auth - - - - - -# [3.496.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.495.0...v3.496.0) (2024-01-19) - - -### Bug Fixes - -* get full list of exports for esm compat in dist-cjs ([#5694](https://github.com/aws/aws-sdk-js-v3/issues/5694)) ([5d26da6](https://github.com/aws/aws-sdk-js-v3/commit/5d26da6d07b593ae286ca674fb3cbff7c833cbb0)) - - - - - -# [3.495.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.494.0...v3.495.0) (2024-01-18) - - -### Features - -* use bundled dist-cjs build ([#5687](https://github.com/aws/aws-sdk-js-v3/issues/5687)) ([5f79e22](https://github.com/aws/aws-sdk-js-v3/commit/5f79e225e32f0b2ed5b432ae4e4108663eb0acfb)) - - - - - -# [3.490.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.489.0...v3.490.0) (2024-01-11) - - -### Features - -* **experimentalIdentityAndAuth:** release phase for services with customizations ([#5288](https://github.com/aws/aws-sdk-js-v3/issues/5288)) ([ddc477c](https://github.com/aws/aws-sdk-js-v3/commit/ddc477c39da563db4d26e552f9e6edf7254d4ea3)) - - - - - -# [3.489.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.488.0...v3.489.0) (2024-01-10) - -**Note:** Version bump only for package @aws-sdk/weather-experimental-identity-and-auth - - - - - -# [3.485.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.484.0...v3.485.0) (2024-01-03) - - -### Features - -* **credential-providers:** add credentialScope field ([#5606](https://github.com/aws/aws-sdk-js-v3/issues/5606)) ([04c1459](https://github.com/aws/aws-sdk-js-v3/commit/04c14592898ac63ed87d47f2a53320ccaa991083)) - - - - - -# [3.484.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.483.0...v3.484.0) (2023-12-29) - -**Note:** Version bump only for package @aws-sdk/weather-experimental-identity-and-auth - - - - - -# [3.481.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.480.0...v3.481.0) (2023-12-26) - - -### Features - -* codegen for command class builder ([#5604](https://github.com/aws/aws-sdk-js-v3/issues/5604)) ([4835de4](https://github.com/aws/aws-sdk-js-v3/commit/4835de4ebb8f302ae1e838ac1efaf5f12384910d)) - - - - - -# [3.478.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.477.0...v3.478.0) (2023-12-20) - -**Note:** Version bump only for package @aws-sdk/weather-experimental-identity-and-auth - - - - - -# [3.477.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.476.0...v3.477.0) (2023-12-19) - - -### Features - -* xml codegen reduction ([#5566](https://github.com/aws/aws-sdk-js-v3/issues/5566)) ([3ed7c81](https://github.com/aws/aws-sdk-js-v3/commit/3ed7c81f9191182826de7645078cc6ed1d2ee959)) - - - - - -# [3.473.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.472.0...v3.473.0) (2023-12-13) - -**Note:** Version bump only for package @aws-sdk/weather-experimental-identity-and-auth - - - - - -# [3.470.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.469.0...v3.470.0) (2023-12-08) - -**Note:** Version bump only for package @aws-sdk/weather-experimental-identity-and-auth - - - - - -# [3.468.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.467.0...v3.468.0) (2023-12-06) - -**Note:** Version bump only for package @aws-sdk/weather-experimental-identity-and-auth - - - - - -# [3.465.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.464.0...v3.465.0) (2023-12-01) - -**Note:** Version bump only for package @aws-sdk/weather-experimental-identity-and-auth - - - - - -# [3.462.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.461.0...v3.462.0) (2023-11-29) - -**Note:** Version bump only for package @aws-sdk/weather-experimental-identity-and-auth - - - - - -# [3.461.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.460.0...v3.461.0) (2023-11-28) - -**Note:** Version bump only for package @aws-sdk/weather-experimental-identity-and-auth - - - - - -# [3.460.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.459.0...v3.460.0) (2023-11-28) - -**Note:** Version bump only for package @aws-sdk/weather-experimental-identity-and-auth - - - - - -# [3.458.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.457.0...v3.458.0) (2023-11-27) - -**Note:** Version bump only for package @aws-sdk/weather-experimental-identity-and-auth - - - - - -# [3.454.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.453.0...v3.454.0) (2023-11-17) - -**Note:** Version bump only for package @aws-sdk/weather-experimental-identity-and-auth - - - - - -# [3.451.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.450.0...v3.451.0) (2023-11-14) - -**Note:** Version bump only for package @aws-sdk/weather-experimental-identity-and-auth - - - - - -# [3.450.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.449.0...v3.450.0) (2023-11-13) - -**Note:** Version bump only for package @aws-sdk/weather-experimental-identity-and-auth - - - - - -# [3.449.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.448.0...v3.449.0) (2023-11-10) - -**Note:** Version bump only for package @aws-sdk/weather-experimental-identity-and-auth - - - - - -# [3.445.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.444.0...v3.445.0) (2023-11-07) - -**Note:** Version bump only for package @aws-sdk/weather-experimental-identity-and-auth diff --git a/private/weather-experimental-identity-and-auth/LICENSE b/private/weather-experimental-identity-and-auth/LICENSE deleted file mode 100644 index 5001cd317c44..000000000000 --- a/private/weather-experimental-identity-and-auth/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/private/weather-experimental-identity-and-auth/README.md b/private/weather-experimental-identity-and-auth/README.md deleted file mode 100644 index 86035278d0bd..000000000000 --- a/private/weather-experimental-identity-and-auth/README.md +++ /dev/null @@ -1,2427 +0,0 @@ - - -# @aws-sdk/weather-experimental-identity-and-auth - -## Description - -AWS SDK for JavaScript Weather Client for Node.js, Browser and React Native. - -## Installing - -To install the this package, simply type add or install @aws-sdk/weather-experimental-identity-and-auth -using your favorite package manager: - -- `npm install @aws-sdk/weather-experimental-identity-and-auth` -- `yarn add @aws-sdk/weather-experimental-identity-and-auth` -- `pnpm add @aws-sdk/weather-experimental-identity-and-auth` - -## Getting Started - -### Import - -The AWS SDK is modulized by clients and commands. -To send a request, you only need to import the `WeatherClient` and -the commands you need, for example `OnlyCustomAuthCommand`: - -```js -// ES5 example -const { WeatherClient, OnlyCustomAuthCommand } = require("@aws-sdk/weather-experimental-identity-and-auth"); -``` - -```ts -// ES6+ example -import { WeatherClient, OnlyCustomAuthCommand } from "@aws-sdk/weather-experimental-identity-and-auth"; -``` - -### Usage - -To send a request, you: - -- Initiate client with configuration (e.g. credentials, region). -- Initiate command with input parameters. -- Call `send` operation on client with command object as input. -- If you are using a custom http handler, you may call `destroy()` to close open connections. - -```js -// a client can be shared by different commands. -const client = new WeatherClient({ region: "REGION" }); - -const params = { - /** input parameters */ -}; -const command = new OnlyCustomAuthCommand(params); -``` - -#### Async/await - -We recommend using [await](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/await) -operator to wait for the promise returned by send operation as follows: - -```js -// async/await. -try { - const data = await client.send(command); - // process data. -} catch (error) { - // error handling. -} finally { - // finally. -} -``` - -Async-await is clean, concise, intuitive, easy to debug and has better error handling -as compared to using Promise chains or callbacks. - -#### Promises - -You can also use [Promise chaining](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises#chaining) -to execute send operation. - -```js -client.send(command).then( - (data) => { - // process data. - }, - (error) => { - // error handling. - } -); -``` - -Promises can also be called using `.catch()` and `.finally()` as follows: - -```js -client - .send(command) - .then((data) => { - // process data. - }) - .catch((error) => { - // error handling. - }) - .finally(() => { - // finally. - }); -``` - -#### Callbacks - -We do not recommend using callbacks because of [callback hell](http://callbackhell.com/), -but they are supported by the send operation. - -```js -// callbacks. -client.send(command, (err, data) => { - // process err and data. -}); -``` - -#### v2 compatible style - -The client can also send requests using v2 compatible style. -However, it results in a bigger bundle size and may be dropped in next major version. More details in the blog post -on [modular packages in AWS SDK for JavaScript](https://aws.amazon.com/blogs/developer/modular-packages-in-aws-sdk-for-javascript/) - -```ts -import * as AWS from "@aws-sdk/weather-experimental-identity-and-auth"; -const client = new AWS.Weather({ region: "REGION" }); - -// async/await. -try { - const data = await client.onlyCustomAuth(params); - // process data. -} catch (error) { - // error handling. -} - -// Promises. -client - .onlyCustomAuth(params) - .then((data) => { - // process data. - }) - .catch((error) => { - // error handling. - }); - -// callbacks. -client.onlyCustomAuth(params, (err, data) => { - // process err and data. -}); -``` - -### Troubleshooting - -When the service returns an exception, the error will include the exception information, -as well as response metadata (e.g. request id). - -```js -try { - const data = await client.send(command); - // process data. -} catch (error) { - const { requestId, cfId, extendedRequestId } = error.$metadata; - console.log({ requestId, cfId, extendedRequestId }); - /** - * The keys within exceptions are also parsed. - * You can access them by specifying exception names: - * if (error.name === 'SomeServiceException') { - * const value = error.specialKeyInException; - * } - */ -} -``` - -## Getting Help - -Please use these community resources for getting help. -We use the GitHub issues for tracking bugs and feature requests, but have limited bandwidth to address them. - -- Visit [Developer Guide](https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/welcome.html) - or [API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/index.html). -- Check out the blog posts tagged with [`aws-sdk-js`](https://aws.amazon.com/blogs/developer/tag/aws-sdk-js/) - on AWS Developer Blog. -- Ask a question on [StackOverflow](https://stackoverflow.com/questions/tagged/aws-sdk-js) and tag it with `aws-sdk-js`. -- Join the AWS JavaScript community on [gitter](https://gitter.im/aws/aws-sdk-js-v3). -- If it turns out that you may have found a bug, please [open an issue](https://github.com/aws/aws-sdk-js-v3/issues/new/choose). - -To test your universal JavaScript code in Node.js, browser and react-native environments, -visit our [code samples repo](https://github.com/aws-samples/aws-sdk-js-tests). - -## Contributing - -This client code is generated automatically. Any modifications will be overwritten the next time the `@aws-sdk/weather-experimental-identity-and-auth` package is updated. -To contribute to client you can check our [generate clients scripts](https://github.com/aws/aws-sdk-js-v3/tree/main/scripts/generate-clients). - -## License - -This SDK is distributed under the -[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0), -see LICENSE for more information. - -## Client Commands (Operations List) - -
- -DatetimeOffsets - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/DatetimeOffsetsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/DatetimeOffsetsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/DatetimeOffsetsCommandOutput/) - -
-
- -EmptyInputAndEmptyOutput - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/EmptyInputAndEmptyOutputCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/EmptyInputAndEmptyOutputCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/EmptyInputAndEmptyOutputCommandOutput/) - -
-
- -EndpointOperation - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/EndpointOperationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/EndpointOperationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/EndpointOperationCommandOutput/) - -
-
- -EndpointWithHostLabelOperation - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/EndpointWithHostLabelOperationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/EndpointWithHostLabelOperationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/EndpointWithHostLabelOperationCommandOutput/) - -
-
- -FractionalSeconds - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/FractionalSecondsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/FractionalSecondsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/FractionalSecondsCommandOutput/) - -
-
- -GreetingWithErrors - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/GreetingWithErrorsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/GreetingWithErrorsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/GreetingWithErrorsCommandOutput/) - -
-
- -HostWithPathOperation - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/HostWithPathOperationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HostWithPathOperationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HostWithPathOperationCommandOutput/) - -
-
- -IgnoresWrappingXmlName - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/IgnoresWrappingXmlNameCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/IgnoresWrappingXmlNameCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/IgnoresWrappingXmlNameCommandOutput/) - -
-
- -NestedStructures - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/NestedStructuresCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/NestedStructuresCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/NestedStructuresCommandOutput/) - -
-
- -NoInputAndOutput - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/NoInputAndOutputCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/NoInputAndOutputCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/NoInputAndOutputCommandOutput/) - -
-
- -PutWithContentEncoding - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/PutWithContentEncodingCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/PutWithContentEncodingCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/PutWithContentEncodingCommandOutput/) - -
-
- -QueryIdempotencyTokenAutoFill - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/QueryIdempotencyTokenAutoFillCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/QueryIdempotencyTokenAutoFillCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/QueryIdempotencyTokenAutoFillCommandOutput/) - -
-
- -QueryLists - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/QueryListsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/QueryListsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/QueryListsCommandOutput/) - -
-
- -QueryTimestamps - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/QueryTimestampsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/QueryTimestampsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/QueryTimestampsCommandOutput/) - -
-
- -RecursiveXmlShapes - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/RecursiveXmlShapesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/RecursiveXmlShapesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/RecursiveXmlShapesCommandOutput/) - -
-
- -SimpleInputParams - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/SimpleInputParamsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/SimpleInputParamsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/SimpleInputParamsCommandOutput/) - -
-
- -SimpleScalarXmlProperties - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/SimpleScalarXmlPropertiesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/SimpleScalarXmlPropertiesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/SimpleScalarXmlPropertiesCommandOutput/) - -
-
- -XmlBlobs - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/XmlBlobsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlBlobsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlBlobsCommandOutput/) - -
-
- -XmlEmptyBlobs - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/XmlEmptyBlobsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlEmptyBlobsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlEmptyBlobsCommandOutput/) - -
-
- -XmlEmptyLists - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/XmlEmptyListsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlEmptyListsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlEmptyListsCommandOutput/) - -
-
- -XmlEnums - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/XmlEnumsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlEnumsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlEnumsCommandOutput/) - -
-
- -XmlIntEnums - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/XmlIntEnumsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlIntEnumsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlIntEnumsCommandOutput/) - -
-
- -XmlLists - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/XmlListsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlListsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlListsCommandOutput/) - -
-
- -XmlNamespaces - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/XmlNamespacesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlNamespacesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlNamespacesCommandOutput/) - -
-
- -XmlTimestamps - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/XmlTimestampsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlTimestampsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlTimestampsCommandOutput/) - -
-
- -DatetimeOffsets - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/DatetimeOffsetsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/DatetimeOffsetsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/DatetimeOffsetsCommandOutput/) - -
-
- -EmptyOperation - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/EmptyOperationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/EmptyOperationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/EmptyOperationCommandOutput/) - -
-
- -EndpointOperation - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/EndpointOperationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/EndpointOperationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/EndpointOperationCommandOutput/) - -
-
- -EndpointWithHostLabelOperation - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/EndpointWithHostLabelOperationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/EndpointWithHostLabelOperationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/EndpointWithHostLabelOperationCommandOutput/) - -
-
- -FractionalSeconds - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/FractionalSecondsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/FractionalSecondsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/FractionalSecondsCommandOutput/) - -
-
- -GreetingWithErrors - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/GreetingWithErrorsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/GreetingWithErrorsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/GreetingWithErrorsCommandOutput/) - -
-
- -HostWithPathOperation - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/HostWithPathOperationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HostWithPathOperationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HostWithPathOperationCommandOutput/) - -
-
- -JsonEnums - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/JsonEnumsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/JsonEnumsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/JsonEnumsCommandOutput/) - -
-
- -JsonIntEnums - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/JsonIntEnumsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/JsonIntEnumsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/JsonIntEnumsCommandOutput/) - -
-
- -JsonUnions - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/JsonUnionsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/JsonUnionsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/JsonUnionsCommandOutput/) - -
-
- -KitchenSinkOperation - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/KitchenSinkOperationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/KitchenSinkOperationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/KitchenSinkOperationCommandOutput/) - -
-
- -NullOperation - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/NullOperationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/NullOperationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/NullOperationCommandOutput/) - -
-
- -OperationWithOptionalInputOutput - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/OperationWithOptionalInputOutputCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/OperationWithOptionalInputOutputCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/OperationWithOptionalInputOutputCommandOutput/) - -
-
- -PutAndGetInlineDocuments - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/PutAndGetInlineDocumentsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/PutAndGetInlineDocumentsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/PutAndGetInlineDocumentsCommandOutput/) - -
-
- -PutWithContentEncoding - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/PutWithContentEncodingCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/PutWithContentEncodingCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/PutWithContentEncodingCommandOutput/) - -
-
- -SimpleScalarProperties - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/SimpleScalarPropertiesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/SimpleScalarPropertiesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/SimpleScalarPropertiesCommandOutput/) - -
-
- -EmptyInputAndEmptyOutput - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/EmptyInputAndEmptyOutputCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/EmptyInputAndEmptyOutputCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/EmptyInputAndEmptyOutputCommandOutput/) - -
-
- -EndpointOperation - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/EndpointOperationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/EndpointOperationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/EndpointOperationCommandOutput/) - -
-
- -EndpointWithHostLabelOperation - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/EndpointWithHostLabelOperationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/EndpointWithHostLabelOperationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/EndpointWithHostLabelOperationCommandOutput/) - -
-
- -GreetingWithErrors - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/GreetingWithErrorsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/GreetingWithErrorsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/GreetingWithErrorsCommandOutput/) - -
-
- -HostWithPathOperation - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/HostWithPathOperationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HostWithPathOperationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HostWithPathOperationCommandOutput/) - -
-
- -JsonUnions - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/JsonUnionsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/JsonUnionsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/JsonUnionsCommandOutput/) - -
-
- -NoInputAndNoOutput - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/NoInputAndNoOutputCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/NoInputAndNoOutputCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/NoInputAndNoOutputCommandOutput/) - -
-
- -NoInputAndOutput - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/NoInputAndOutputCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/NoInputAndOutputCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/NoInputAndOutputCommandOutput/) - -
-
- -OperationWithDefaults - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/OperationWithDefaultsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/OperationWithDefaultsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/OperationWithDefaultsCommandOutput/) - -
-
- -OperationWithNestedStructure - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/OperationWithNestedStructureCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/OperationWithNestedStructureCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/OperationWithNestedStructureCommandOutput/) - -
-
- -OperationWithRequiredMembers - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/OperationWithRequiredMembersCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/OperationWithRequiredMembersCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/OperationWithRequiredMembersCommandOutput/) - -
-
- -OperationWithRequiredMembersWithDefaults - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/OperationWithRequiredMembersWithDefaultsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/OperationWithRequiredMembersWithDefaultsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/OperationWithRequiredMembersWithDefaultsCommandOutput/) - -
-
- -PutWithContentEncoding - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/PutWithContentEncodingCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/PutWithContentEncodingCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/PutWithContentEncodingCommandOutput/) - -
-
- -SimpleScalarProperties - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/SimpleScalarPropertiesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/SimpleScalarPropertiesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/SimpleScalarPropertiesCommandOutput/) - -
-
- -AcceptHeaderStarService - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/AcceptHeaderStarServiceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/AcceptHeaderStarServiceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/AcceptHeaderStarServiceCommandOutput/) - -
-
- -DatetimeOffsets - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/DatetimeOffsetsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/DatetimeOffsetsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/DatetimeOffsetsCommandOutput/) - -
-
- -EmptyInputAndEmptyOutput - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/EmptyInputAndEmptyOutputCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/EmptyInputAndEmptyOutputCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/EmptyInputAndEmptyOutputCommandOutput/) - -
-
- -EndpointOperation - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/EndpointOperationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/EndpointOperationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/EndpointOperationCommandOutput/) - -
-
- -EndpointWithHostLabelOperation - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/EndpointWithHostLabelOperationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/EndpointWithHostLabelOperationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/EndpointWithHostLabelOperationCommandOutput/) - -
-
- -FlattenedXmlMap - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/FlattenedXmlMapCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/FlattenedXmlMapCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/FlattenedXmlMapCommandOutput/) - -
-
- -FlattenedXmlMapWithXmlName - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/FlattenedXmlMapWithXmlNameCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/FlattenedXmlMapWithXmlNameCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/FlattenedXmlMapWithXmlNameCommandOutput/) - -
-
- -FlattenedXmlMapWithXmlNamespace - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/FlattenedXmlMapWithXmlNamespaceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/FlattenedXmlMapWithXmlNamespaceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/FlattenedXmlMapWithXmlNamespaceCommandOutput/) - -
-
- -FractionalSeconds - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/FractionalSecondsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/FractionalSecondsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/FractionalSecondsCommandOutput/) - -
-
- -GreetingWithErrors - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/GreetingWithErrorsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/GreetingWithErrorsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/GreetingWithErrorsCommandOutput/) - -
-
- -HostWithPathOperation - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/HostWithPathOperationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HostWithPathOperationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HostWithPathOperationCommandOutput/) - -
-
- -IgnoresWrappingXmlName - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/IgnoresWrappingXmlNameCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/IgnoresWrappingXmlNameCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/IgnoresWrappingXmlNameCommandOutput/) - -
-
- -NestedStructures - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/NestedStructuresCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/NestedStructuresCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/NestedStructuresCommandOutput/) - -
-
- -NoInputAndNoOutput - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/NoInputAndNoOutputCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/NoInputAndNoOutputCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/NoInputAndNoOutputCommandOutput/) - -
-
- -NoInputAndOutput - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/NoInputAndOutputCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/NoInputAndOutputCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/NoInputAndOutputCommandOutput/) - -
-
- -PutWithContentEncoding - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/PutWithContentEncodingCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/PutWithContentEncodingCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/PutWithContentEncodingCommandOutput/) - -
-
- -QueryIdempotencyTokenAutoFill - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/QueryIdempotencyTokenAutoFillCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/QueryIdempotencyTokenAutoFillCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/QueryIdempotencyTokenAutoFillCommandOutput/) - -
-
- -QueryLists - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/QueryListsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/QueryListsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/QueryListsCommandOutput/) - -
-
- -QueryMaps - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/QueryMapsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/QueryMapsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/QueryMapsCommandOutput/) - -
-
- -QueryTimestamps - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/QueryTimestampsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/QueryTimestampsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/QueryTimestampsCommandOutput/) - -
-
- -RecursiveXmlShapes - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/RecursiveXmlShapesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/RecursiveXmlShapesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/RecursiveXmlShapesCommandOutput/) - -
-
- -SimpleInputParams - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/SimpleInputParamsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/SimpleInputParamsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/SimpleInputParamsCommandOutput/) - -
-
- -SimpleScalarXmlProperties - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/SimpleScalarXmlPropertiesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/SimpleScalarXmlPropertiesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/SimpleScalarXmlPropertiesCommandOutput/) - -
-
- -XmlBlobs - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/XmlBlobsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlBlobsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlBlobsCommandOutput/) - -
-
- -XmlEmptyBlobs - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/XmlEmptyBlobsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlEmptyBlobsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlEmptyBlobsCommandOutput/) - -
-
- -XmlEmptyLists - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/XmlEmptyListsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlEmptyListsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlEmptyListsCommandOutput/) - -
-
- -XmlEmptyMaps - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/XmlEmptyMapsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlEmptyMapsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlEmptyMapsCommandOutput/) - -
-
- -XmlEnums - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/XmlEnumsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlEnumsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlEnumsCommandOutput/) - -
-
- -XmlIntEnums - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/XmlIntEnumsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlIntEnumsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlIntEnumsCommandOutput/) - -
-
- -XmlLists - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/XmlListsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlListsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlListsCommandOutput/) - -
-
- -XmlMaps - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/XmlMapsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlMapsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlMapsCommandOutput/) - -
-
- -XmlMapsXmlName - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/XmlMapsXmlNameCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlMapsXmlNameCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlMapsXmlNameCommandOutput/) - -
-
- -XmlNamespaces - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/XmlNamespacesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlNamespacesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlNamespacesCommandOutput/) - -
-
- -XmlTimestamps - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/XmlTimestampsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlTimestampsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlTimestampsCommandOutput/) - -
-
- -AllQueryStringTypes - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/AllQueryStringTypesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/AllQueryStringTypesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/AllQueryStringTypesCommandOutput/) - -
-
- -ConstantAndVariableQueryString - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/ConstantAndVariableQueryStringCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/ConstantAndVariableQueryStringCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/ConstantAndVariableQueryStringCommandOutput/) - -
-
- -ConstantQueryString - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/ConstantQueryStringCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/ConstantQueryStringCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/ConstantQueryStringCommandOutput/) - -
-
- -DatetimeOffsets - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/DatetimeOffsetsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/DatetimeOffsetsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/DatetimeOffsetsCommandOutput/) - -
-
- -DocumentType - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/DocumentTypeCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/DocumentTypeCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/DocumentTypeCommandOutput/) - -
-
- -DocumentTypeAsPayload - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/DocumentTypeAsPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/DocumentTypeAsPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/DocumentTypeAsPayloadCommandOutput/) - -
-
- -EmptyInputAndEmptyOutput - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/EmptyInputAndEmptyOutputCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/EmptyInputAndEmptyOutputCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/EmptyInputAndEmptyOutputCommandOutput/) - -
-
- -EndpointOperation - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/EndpointOperationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/EndpointOperationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/EndpointOperationCommandOutput/) - -
-
- -EndpointWithHostLabelOperation - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/EndpointWithHostLabelOperationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/EndpointWithHostLabelOperationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/EndpointWithHostLabelOperationCommandOutput/) - -
-
- -FractionalSeconds - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/FractionalSecondsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/FractionalSecondsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/FractionalSecondsCommandOutput/) - -
-
- -GreetingWithErrors - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/GreetingWithErrorsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/GreetingWithErrorsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/GreetingWithErrorsCommandOutput/) - -
-
- -HostWithPathOperation - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/HostWithPathOperationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HostWithPathOperationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HostWithPathOperationCommandOutput/) - -
-
- -HttpChecksumRequired - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/HttpChecksumRequiredCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpChecksumRequiredCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpChecksumRequiredCommandOutput/) - -
-
- -HttpEnumPayload - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/HttpEnumPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpEnumPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpEnumPayloadCommandOutput/) - -
-
- -HttpPayloadTraits - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/HttpPayloadTraitsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpPayloadTraitsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpPayloadTraitsCommandOutput/) - -
-
- -HttpPayloadTraitsWithMediaType - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/HttpPayloadTraitsWithMediaTypeCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpPayloadTraitsWithMediaTypeCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpPayloadTraitsWithMediaTypeCommandOutput/) - -
-
- -HttpPayloadWithStructure - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/HttpPayloadWithStructureCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpPayloadWithStructureCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpPayloadWithStructureCommandOutput/) - -
-
- -HttpPayloadWithUnion - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/HttpPayloadWithUnionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpPayloadWithUnionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpPayloadWithUnionCommandOutput/) - -
-
- -HttpPrefixHeaders - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/HttpPrefixHeadersCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpPrefixHeadersCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpPrefixHeadersCommandOutput/) - -
-
- -HttpPrefixHeadersInResponse - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/HttpPrefixHeadersInResponseCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpPrefixHeadersInResponseCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpPrefixHeadersInResponseCommandOutput/) - -
-
- -HttpRequestWithFloatLabels - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/HttpRequestWithFloatLabelsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpRequestWithFloatLabelsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpRequestWithFloatLabelsCommandOutput/) - -
-
- -HttpRequestWithGreedyLabelInPath - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/HttpRequestWithGreedyLabelInPathCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpRequestWithGreedyLabelInPathCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpRequestWithGreedyLabelInPathCommandOutput/) - -
-
- -HttpRequestWithLabels - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/HttpRequestWithLabelsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpRequestWithLabelsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpRequestWithLabelsCommandOutput/) - -
-
- -HttpRequestWithLabelsAndTimestampFormat - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/HttpRequestWithLabelsAndTimestampFormatCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpRequestWithLabelsAndTimestampFormatCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpRequestWithLabelsAndTimestampFormatCommandOutput/) - -
-
- -HttpRequestWithRegexLiteral - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/HttpRequestWithRegexLiteralCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpRequestWithRegexLiteralCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpRequestWithRegexLiteralCommandOutput/) - -
-
- -HttpResponseCode - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/HttpResponseCodeCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpResponseCodeCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpResponseCodeCommandOutput/) - -
-
- -HttpStringPayload - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/HttpStringPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpStringPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpStringPayloadCommandOutput/) - -
-
- -IgnoreQueryParamsInResponse - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/IgnoreQueryParamsInResponseCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/IgnoreQueryParamsInResponseCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/IgnoreQueryParamsInResponseCommandOutput/) - -
-
- -InputAndOutputWithHeaders - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/InputAndOutputWithHeadersCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/InputAndOutputWithHeadersCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/InputAndOutputWithHeadersCommandOutput/) - -
-
- -JsonBlobs - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/JsonBlobsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/JsonBlobsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/JsonBlobsCommandOutput/) - -
-
- -JsonEnums - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/JsonEnumsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/JsonEnumsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/JsonEnumsCommandOutput/) - -
-
- -JsonIntEnums - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/JsonIntEnumsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/JsonIntEnumsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/JsonIntEnumsCommandOutput/) - -
-
- -JsonLists - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/JsonListsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/JsonListsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/JsonListsCommandOutput/) - -
-
- -JsonMaps - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/JsonMapsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/JsonMapsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/JsonMapsCommandOutput/) - -
-
- -JsonTimestamps - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/JsonTimestampsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/JsonTimestampsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/JsonTimestampsCommandOutput/) - -
-
- -JsonUnions - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/JsonUnionsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/JsonUnionsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/JsonUnionsCommandOutput/) - -
-
- -MalformedAcceptWithBody - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/MalformedAcceptWithBodyCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedAcceptWithBodyCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedAcceptWithBodyCommandOutput/) - -
-
- -MalformedAcceptWithGenericString - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/MalformedAcceptWithGenericStringCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedAcceptWithGenericStringCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedAcceptWithGenericStringCommandOutput/) - -
-
- -MalformedAcceptWithPayload - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/MalformedAcceptWithPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedAcceptWithPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedAcceptWithPayloadCommandOutput/) - -
-
- -MalformedBlob - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/MalformedBlobCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedBlobCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedBlobCommandOutput/) - -
-
- -MalformedBoolean - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/MalformedBooleanCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedBooleanCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedBooleanCommandOutput/) - -
-
- -MalformedByte - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/MalformedByteCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedByteCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedByteCommandOutput/) - -
-
- -MalformedContentTypeWithBody - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/MalformedContentTypeWithBodyCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedContentTypeWithBodyCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedContentTypeWithBodyCommandOutput/) - -
-
- -MalformedContentTypeWithGenericString - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/MalformedContentTypeWithGenericStringCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedContentTypeWithGenericStringCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedContentTypeWithGenericStringCommandOutput/) - -
-
- -MalformedContentTypeWithoutBody - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/MalformedContentTypeWithoutBodyCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedContentTypeWithoutBodyCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedContentTypeWithoutBodyCommandOutput/) - -
-
- -MalformedContentTypeWithoutBodyEmptyInput - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/MalformedContentTypeWithoutBodyEmptyInputCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedContentTypeWithoutBodyEmptyInputCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedContentTypeWithoutBodyEmptyInputCommandOutput/) - -
-
- -MalformedContentTypeWithPayload - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/MalformedContentTypeWithPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedContentTypeWithPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedContentTypeWithPayloadCommandOutput/) - -
-
- -MalformedDouble - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/MalformedDoubleCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedDoubleCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedDoubleCommandOutput/) - -
-
- -MalformedFloat - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/MalformedFloatCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedFloatCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedFloatCommandOutput/) - -
-
- -MalformedInteger - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/MalformedIntegerCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedIntegerCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedIntegerCommandOutput/) - -
-
- -MalformedList - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/MalformedListCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedListCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedListCommandOutput/) - -
-
- -MalformedLong - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/MalformedLongCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedLongCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedLongCommandOutput/) - -
-
- -MalformedMap - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/MalformedMapCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedMapCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedMapCommandOutput/) - -
-
- -MalformedRequestBody - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/MalformedRequestBodyCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedRequestBodyCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedRequestBodyCommandOutput/) - -
-
- -MalformedShort - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/MalformedShortCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedShortCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedShortCommandOutput/) - -
-
- -MalformedString - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/MalformedStringCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedStringCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedStringCommandOutput/) - -
-
- -MalformedTimestampBodyDateTime - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/MalformedTimestampBodyDateTimeCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedTimestampBodyDateTimeCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedTimestampBodyDateTimeCommandOutput/) - -
-
- -MalformedTimestampBodyDefault - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/MalformedTimestampBodyDefaultCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedTimestampBodyDefaultCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedTimestampBodyDefaultCommandOutput/) - -
-
- -MalformedTimestampBodyHttpDate - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/MalformedTimestampBodyHttpDateCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedTimestampBodyHttpDateCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedTimestampBodyHttpDateCommandOutput/) - -
-
- -MalformedTimestampHeaderDateTime - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/MalformedTimestampHeaderDateTimeCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedTimestampHeaderDateTimeCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedTimestampHeaderDateTimeCommandOutput/) - -
-
- -MalformedTimestampHeaderDefault - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/MalformedTimestampHeaderDefaultCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedTimestampHeaderDefaultCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedTimestampHeaderDefaultCommandOutput/) - -
-
- -MalformedTimestampHeaderEpoch - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/MalformedTimestampHeaderEpochCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedTimestampHeaderEpochCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedTimestampHeaderEpochCommandOutput/) - -
-
- -MalformedTimestampPathDefault - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/MalformedTimestampPathDefaultCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedTimestampPathDefaultCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedTimestampPathDefaultCommandOutput/) - -
-
- -MalformedTimestampPathEpoch - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/MalformedTimestampPathEpochCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedTimestampPathEpochCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedTimestampPathEpochCommandOutput/) - -
-
- -MalformedTimestampPathHttpDate - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/MalformedTimestampPathHttpDateCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedTimestampPathHttpDateCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedTimestampPathHttpDateCommandOutput/) - -
-
- -MalformedTimestampQueryDefault - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/MalformedTimestampQueryDefaultCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedTimestampQueryDefaultCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedTimestampQueryDefaultCommandOutput/) - -
-
- -MalformedTimestampQueryEpoch - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/MalformedTimestampQueryEpochCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedTimestampQueryEpochCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedTimestampQueryEpochCommandOutput/) - -
-
- -MalformedTimestampQueryHttpDate - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/MalformedTimestampQueryHttpDateCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedTimestampQueryHttpDateCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedTimestampQueryHttpDateCommandOutput/) - -
-
- -MalformedUnion - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/MalformedUnionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedUnionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedUnionCommandOutput/) - -
-
- -MediaTypeHeader - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/MediaTypeHeaderCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MediaTypeHeaderCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MediaTypeHeaderCommandOutput/) - -
-
- -NoInputAndNoOutput - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/NoInputAndNoOutputCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/NoInputAndNoOutputCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/NoInputAndNoOutputCommandOutput/) - -
-
- -NoInputAndOutput - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/NoInputAndOutputCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/NoInputAndOutputCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/NoInputAndOutputCommandOutput/) - -
-
- -NullAndEmptyHeadersClient - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/NullAndEmptyHeadersClientCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/NullAndEmptyHeadersClientCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/NullAndEmptyHeadersClientCommandOutput/) - -
-
- -NullAndEmptyHeadersServer - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/NullAndEmptyHeadersServerCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/NullAndEmptyHeadersServerCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/NullAndEmptyHeadersServerCommandOutput/) - -
-
- -OmitsNullSerializesEmptyString - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/OmitsNullSerializesEmptyStringCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/OmitsNullSerializesEmptyStringCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/OmitsNullSerializesEmptyStringCommandOutput/) - -
-
- -OmitsSerializingEmptyLists - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/OmitsSerializingEmptyListsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/OmitsSerializingEmptyListsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/OmitsSerializingEmptyListsCommandOutput/) - -
-
- -PostPlayerAction - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/PostPlayerActionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/PostPlayerActionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/PostPlayerActionCommandOutput/) - -
-
- -PostUnionWithJsonName - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/PostUnionWithJsonNameCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/PostUnionWithJsonNameCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/PostUnionWithJsonNameCommandOutput/) - -
-
- -PutWithContentEncoding - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/PutWithContentEncodingCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/PutWithContentEncodingCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/PutWithContentEncodingCommandOutput/) - -
-
- -QueryIdempotencyTokenAutoFill - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/QueryIdempotencyTokenAutoFillCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/QueryIdempotencyTokenAutoFillCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/QueryIdempotencyTokenAutoFillCommandOutput/) - -
-
- -QueryParamsAsStringListMap - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/QueryParamsAsStringListMapCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/QueryParamsAsStringListMapCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/QueryParamsAsStringListMapCommandOutput/) - -
-
- -QueryPrecedence - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/QueryPrecedenceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/QueryPrecedenceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/QueryPrecedenceCommandOutput/) - -
-
- -RecursiveShapes - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/RecursiveShapesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/RecursiveShapesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/RecursiveShapesCommandOutput/) - -
-
- -ResponseCodeHttpFallback - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/ResponseCodeHttpFallbackCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/ResponseCodeHttpFallbackCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/ResponseCodeHttpFallbackCommandOutput/) - -
-
- -ResponseCodeRequired - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/ResponseCodeRequiredCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/ResponseCodeRequiredCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/ResponseCodeRequiredCommandOutput/) - -
-
- -SimpleScalarProperties - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/SimpleScalarPropertiesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/SimpleScalarPropertiesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/SimpleScalarPropertiesCommandOutput/) - -
-
- -StreamingTraits - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/StreamingTraitsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/StreamingTraitsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/StreamingTraitsCommandOutput/) - -
-
- -StreamingTraitsRequireLength - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/StreamingTraitsRequireLengthCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/StreamingTraitsRequireLengthCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/StreamingTraitsRequireLengthCommandOutput/) - -
-
- -StreamingTraitsWithMediaType - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/StreamingTraitsWithMediaTypeCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/StreamingTraitsWithMediaTypeCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/StreamingTraitsWithMediaTypeCommandOutput/) - -
-
- -TestBodyStructure - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/TestBodyStructureCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/TestBodyStructureCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/TestBodyStructureCommandOutput/) - -
-
- -TestNoPayload - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/TestNoPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/TestNoPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/TestNoPayloadCommandOutput/) - -
-
- -TestPayloadBlob - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/TestPayloadBlobCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/TestPayloadBlobCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/TestPayloadBlobCommandOutput/) - -
-
- -TestPayloadStructure - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/TestPayloadStructureCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/TestPayloadStructureCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/TestPayloadStructureCommandOutput/) - -
-
- -TimestampFormatHeaders - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/TimestampFormatHeadersCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/TimestampFormatHeadersCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/TimestampFormatHeadersCommandOutput/) - -
-
- -UnitInputAndOutput - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/UnitInputAndOutputCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/UnitInputAndOutputCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/UnitInputAndOutputCommandOutput/) - -
-
- -MalformedEnum - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/MalformedEnumCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedEnumCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedEnumCommandOutput/) - -
-
- -MalformedLength - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/MalformedLengthCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedLengthCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedLengthCommandOutput/) - -
-
- -MalformedLengthOverride - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/MalformedLengthOverrideCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedLengthOverrideCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedLengthOverrideCommandOutput/) - -
-
- -MalformedLengthQueryString - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/MalformedLengthQueryStringCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedLengthQueryStringCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedLengthQueryStringCommandOutput/) - -
-
- -MalformedPattern - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/MalformedPatternCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedPatternCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedPatternCommandOutput/) - -
-
- -MalformedPatternOverride - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/MalformedPatternOverrideCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedPatternOverrideCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedPatternOverrideCommandOutput/) - -
-
- -MalformedRange - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/MalformedRangeCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedRangeCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedRangeCommandOutput/) - -
-
- -MalformedRangeOverride - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/MalformedRangeOverrideCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedRangeOverrideCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedRangeOverrideCommandOutput/) - -
-
- -MalformedRequired - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/MalformedRequiredCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedRequiredCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedRequiredCommandOutput/) - -
-
- -MalformedUniqueItems - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/MalformedUniqueItemsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedUniqueItemsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/MalformedUniqueItemsCommandOutput/) - -
-
- -RecursiveStructures - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/RecursiveStructuresCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/RecursiveStructuresCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/RecursiveStructuresCommandOutput/) - -
-
- -SensitiveValidation - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/SensitiveValidationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/SensitiveValidationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/SensitiveValidationCommandOutput/) - -
-
- -AllQueryStringTypes - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/AllQueryStringTypesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/AllQueryStringTypesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/AllQueryStringTypesCommandOutput/) - -
-
- -BodyWithXmlName - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/BodyWithXmlNameCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/BodyWithXmlNameCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/BodyWithXmlNameCommandOutput/) - -
-
- -ConstantAndVariableQueryString - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/ConstantAndVariableQueryStringCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/ConstantAndVariableQueryStringCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/ConstantAndVariableQueryStringCommandOutput/) - -
-
- -ConstantQueryString - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/ConstantQueryStringCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/ConstantQueryStringCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/ConstantQueryStringCommandOutput/) - -
-
- -DatetimeOffsets - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/DatetimeOffsetsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/DatetimeOffsetsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/DatetimeOffsetsCommandOutput/) - -
-
- -EmptyInputAndEmptyOutput - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/EmptyInputAndEmptyOutputCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/EmptyInputAndEmptyOutputCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/EmptyInputAndEmptyOutputCommandOutput/) - -
-
- -EndpointOperation - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/EndpointOperationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/EndpointOperationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/EndpointOperationCommandOutput/) - -
-
- -EndpointWithHostLabelHeaderOperation - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/EndpointWithHostLabelHeaderOperationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/EndpointWithHostLabelHeaderOperationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/EndpointWithHostLabelHeaderOperationCommandOutput/) - -
-
- -EndpointWithHostLabelOperation - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/EndpointWithHostLabelOperationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/EndpointWithHostLabelOperationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/EndpointWithHostLabelOperationCommandOutput/) - -
-
- -FlattenedXmlMap - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/FlattenedXmlMapCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/FlattenedXmlMapCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/FlattenedXmlMapCommandOutput/) - -
-
- -FlattenedXmlMapWithXmlName - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/FlattenedXmlMapWithXmlNameCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/FlattenedXmlMapWithXmlNameCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/FlattenedXmlMapWithXmlNameCommandOutput/) - -
-
- -FlattenedXmlMapWithXmlNamespace - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/FlattenedXmlMapWithXmlNamespaceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/FlattenedXmlMapWithXmlNamespaceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/FlattenedXmlMapWithXmlNamespaceCommandOutput/) - -
-
- -FractionalSeconds - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/FractionalSecondsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/FractionalSecondsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/FractionalSecondsCommandOutput/) - -
-
- -GreetingWithErrors - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/GreetingWithErrorsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/GreetingWithErrorsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/GreetingWithErrorsCommandOutput/) - -
-
- -HttpEnumPayload - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/HttpEnumPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpEnumPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpEnumPayloadCommandOutput/) - -
-
- -HttpPayloadTraits - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/HttpPayloadTraitsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpPayloadTraitsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpPayloadTraitsCommandOutput/) - -
-
- -HttpPayloadTraitsWithMediaType - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/HttpPayloadTraitsWithMediaTypeCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpPayloadTraitsWithMediaTypeCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpPayloadTraitsWithMediaTypeCommandOutput/) - -
-
- -HttpPayloadWithMemberXmlName - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/HttpPayloadWithMemberXmlNameCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpPayloadWithMemberXmlNameCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpPayloadWithMemberXmlNameCommandOutput/) - -
-
- -HttpPayloadWithStructure - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/HttpPayloadWithStructureCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpPayloadWithStructureCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpPayloadWithStructureCommandOutput/) - -
-
- -HttpPayloadWithUnion - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/HttpPayloadWithUnionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpPayloadWithUnionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpPayloadWithUnionCommandOutput/) - -
-
- -HttpPayloadWithXmlName - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/HttpPayloadWithXmlNameCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpPayloadWithXmlNameCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpPayloadWithXmlNameCommandOutput/) - -
-
- -HttpPayloadWithXmlNamespace - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/HttpPayloadWithXmlNamespaceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpPayloadWithXmlNamespaceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpPayloadWithXmlNamespaceCommandOutput/) - -
-
- -HttpPayloadWithXmlNamespaceAndPrefix - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/HttpPayloadWithXmlNamespaceAndPrefixCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpPayloadWithXmlNamespaceAndPrefixCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpPayloadWithXmlNamespaceAndPrefixCommandOutput/) - -
-
- -HttpPrefixHeaders - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/HttpPrefixHeadersCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpPrefixHeadersCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpPrefixHeadersCommandOutput/) - -
-
- -HttpRequestWithFloatLabels - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/HttpRequestWithFloatLabelsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpRequestWithFloatLabelsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpRequestWithFloatLabelsCommandOutput/) - -
-
- -HttpRequestWithGreedyLabelInPath - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/HttpRequestWithGreedyLabelInPathCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpRequestWithGreedyLabelInPathCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpRequestWithGreedyLabelInPathCommandOutput/) - -
-
- -HttpRequestWithLabels - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/HttpRequestWithLabelsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpRequestWithLabelsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpRequestWithLabelsCommandOutput/) - -
-
- -HttpRequestWithLabelsAndTimestampFormat - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/HttpRequestWithLabelsAndTimestampFormatCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpRequestWithLabelsAndTimestampFormatCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpRequestWithLabelsAndTimestampFormatCommandOutput/) - -
-
- -HttpResponseCode - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/HttpResponseCodeCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpResponseCodeCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpResponseCodeCommandOutput/) - -
-
- -HttpStringPayload - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/HttpStringPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpStringPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/HttpStringPayloadCommandOutput/) - -
-
- -IgnoreQueryParamsInResponse - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/IgnoreQueryParamsInResponseCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/IgnoreQueryParamsInResponseCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/IgnoreQueryParamsInResponseCommandOutput/) - -
-
- -InputAndOutputWithHeaders - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/InputAndOutputWithHeadersCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/InputAndOutputWithHeadersCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/InputAndOutputWithHeadersCommandOutput/) - -
-
- -NestedXmlMaps - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/NestedXmlMapsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/NestedXmlMapsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/NestedXmlMapsCommandOutput/) - -
-
- -NoInputAndNoOutput - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/NoInputAndNoOutputCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/NoInputAndNoOutputCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/NoInputAndNoOutputCommandOutput/) - -
-
- -NoInputAndOutput - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/NoInputAndOutputCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/NoInputAndOutputCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/NoInputAndOutputCommandOutput/) - -
-
- -NullAndEmptyHeadersClient - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/NullAndEmptyHeadersClientCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/NullAndEmptyHeadersClientCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/NullAndEmptyHeadersClientCommandOutput/) - -
-
- -NullAndEmptyHeadersServer - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/NullAndEmptyHeadersServerCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/NullAndEmptyHeadersServerCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/NullAndEmptyHeadersServerCommandOutput/) - -
-
- -OmitsNullSerializesEmptyString - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/OmitsNullSerializesEmptyStringCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/OmitsNullSerializesEmptyStringCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/OmitsNullSerializesEmptyStringCommandOutput/) - -
-
- -PutWithContentEncoding - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/PutWithContentEncodingCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/PutWithContentEncodingCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/PutWithContentEncodingCommandOutput/) - -
-
- -QueryIdempotencyTokenAutoFill - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/QueryIdempotencyTokenAutoFillCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/QueryIdempotencyTokenAutoFillCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/QueryIdempotencyTokenAutoFillCommandOutput/) - -
-
- -QueryParamsAsStringListMap - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/QueryParamsAsStringListMapCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/QueryParamsAsStringListMapCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/QueryParamsAsStringListMapCommandOutput/) - -
-
- -QueryPrecedence - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/QueryPrecedenceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/QueryPrecedenceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/QueryPrecedenceCommandOutput/) - -
-
- -RecursiveShapes - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/RecursiveShapesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/RecursiveShapesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/RecursiveShapesCommandOutput/) - -
-
- -SimpleScalarProperties - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/SimpleScalarPropertiesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/SimpleScalarPropertiesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/SimpleScalarPropertiesCommandOutput/) - -
-
- -TimestampFormatHeaders - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/TimestampFormatHeadersCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/TimestampFormatHeadersCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/TimestampFormatHeadersCommandOutput/) - -
-
- -XmlAttributes - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/XmlAttributesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlAttributesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlAttributesCommandOutput/) - -
-
- -XmlAttributesOnPayload - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/XmlAttributesOnPayloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlAttributesOnPayloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlAttributesOnPayloadCommandOutput/) - -
-
- -XmlBlobs - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/XmlBlobsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlBlobsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlBlobsCommandOutput/) - -
-
- -XmlEmptyBlobs - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/XmlEmptyBlobsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlEmptyBlobsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlEmptyBlobsCommandOutput/) - -
-
- -XmlEmptyLists - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/XmlEmptyListsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlEmptyListsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlEmptyListsCommandOutput/) - -
-
- -XmlEmptyMaps - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/XmlEmptyMapsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlEmptyMapsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlEmptyMapsCommandOutput/) - -
-
- -XmlEmptyStrings - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/XmlEmptyStringsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlEmptyStringsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlEmptyStringsCommandOutput/) - -
-
- -XmlEnums - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/XmlEnumsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlEnumsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlEnumsCommandOutput/) - -
-
- -XmlIntEnums - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/XmlIntEnumsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlIntEnumsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlIntEnumsCommandOutput/) - -
-
- -XmlLists - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/XmlListsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlListsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlListsCommandOutput/) - -
-
- -XmlMaps - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/XmlMapsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlMapsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlMapsCommandOutput/) - -
-
- -XmlMapsXmlName - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/XmlMapsXmlNameCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlMapsXmlNameCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlMapsXmlNameCommandOutput/) - -
-
- -XmlMapWithXmlNamespace - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/XmlMapWithXmlNamespaceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlMapWithXmlNamespaceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlMapWithXmlNamespaceCommandOutput/) - -
-
- -XmlNamespaces - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/XmlNamespacesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlNamespacesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlNamespacesCommandOutput/) - -
-
- -XmlTimestamps - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/XmlTimestampsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlTimestampsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlTimestampsCommandOutput/) - -
-
- -XmlUnions - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/XmlUnionsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlUnionsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/XmlUnionsCommandOutput/) - -
-
- -SimpleScalarProperties - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/SimpleScalarPropertiesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/SimpleScalarPropertiesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/SimpleScalarPropertiesCommandOutput/) - -
-
- -Echo - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/EchoCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/EchoCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/EchoCommandOutput/) - -
-
- -Length - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/LengthCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/LengthCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/LengthCommandOutput/) - -
-
- -GetRestApis - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/GetRestApisCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/GetRestApisCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/GetRestApisCommandOutput/) - -
-
- -UploadArchive - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/UploadArchiveCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/UploadArchiveCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/UploadArchiveCommandOutput/) - -
-
- -UploadMultipartPart - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/UploadMultipartPartCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/UploadMultipartPartCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/UploadMultipartPartCommandOutput/) - -
-
- -Predict - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/PredictCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/PredictCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/PredictCommandOutput/) - -
-
- -DeleteObjectTagging - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/DeleteObjectTaggingCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/DeleteObjectTaggingCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/DeleteObjectTaggingCommandOutput/) - -
-
- -GetBucketLocation - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/GetBucketLocationCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/GetBucketLocationCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/GetBucketLocationCommandOutput/) - -
-
- -ListObjectsV2 - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/ListObjectsV2Command/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/ListObjectsV2CommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/ListObjectsV2CommandOutput/) - -
-
- -OnlyCustomAuth - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/OnlyCustomAuthCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/OnlyCustomAuthCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/OnlyCustomAuthCommandOutput/) - -
-
- -OnlyCustomAuthOptional - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/OnlyCustomAuthOptionalCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/OnlyCustomAuthOptionalCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/OnlyCustomAuthOptionalCommandOutput/) - -
-
- -OnlyHttpApiKeyAndBearerAuth - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/OnlyHttpApiKeyAndBearerAuthCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/OnlyHttpApiKeyAndBearerAuthCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/OnlyHttpApiKeyAndBearerAuthCommandOutput/) - -
-
- -OnlyHttpApiKeyAndBearerAuthReversed - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/OnlyHttpApiKeyAndBearerAuthReversedCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/OnlyHttpApiKeyAndBearerAuthReversedCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/OnlyHttpApiKeyAndBearerAuthReversedCommandOutput/) - -
-
- -OnlyHttpApiKeyAuth - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/OnlyHttpApiKeyAuthCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/OnlyHttpApiKeyAuthCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/OnlyHttpApiKeyAuthCommandOutput/) - -
-
- -OnlyHttpApiKeyAuthOptional - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/OnlyHttpApiKeyAuthOptionalCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/OnlyHttpApiKeyAuthOptionalCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/OnlyHttpApiKeyAuthOptionalCommandOutput/) - -
-
- -OnlyHttpBearerAuth - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/OnlyHttpBearerAuthCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/OnlyHttpBearerAuthCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/OnlyHttpBearerAuthCommandOutput/) - -
-
- -OnlyHttpBearerAuthOptional - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/OnlyHttpBearerAuthOptionalCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/OnlyHttpBearerAuthOptionalCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/OnlyHttpBearerAuthOptionalCommandOutput/) - -
-
- -OnlySigv4Auth - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/OnlySigv4AuthCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/OnlySigv4AuthCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/OnlySigv4AuthCommandOutput/) - -
-
- -OnlySigv4AuthOptional - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/OnlySigv4AuthOptionalCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/OnlySigv4AuthOptionalCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/OnlySigv4AuthOptionalCommandOutput/) - -
-
- -SameAsService - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/weather/command/SameAsServiceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/SameAsServiceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-weather/Interface/SameAsServiceCommandOutput/) - -
diff --git a/private/weather-experimental-identity-and-auth/api-extractor.json b/private/weather-experimental-identity-and-auth/api-extractor.json deleted file mode 100644 index d5bf5ffeee85..000000000000 --- a/private/weather-experimental-identity-and-auth/api-extractor.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "extends": "../../api-extractor.json", - "mainEntryPointFilePath": "/dist-types/index.d.ts" -} diff --git a/private/weather-experimental-identity-and-auth/package.json b/private/weather-experimental-identity-and-auth/package.json deleted file mode 100644 index feda54851b16..000000000000 --- a/private/weather-experimental-identity-and-auth/package.json +++ /dev/null @@ -1,94 +0,0 @@ -{ - "name": "@aws-sdk/weather-experimental-identity-and-auth", - "description": "@aws-sdk/weather-experimental-identity-and-auth client", - "version": "3.645.0", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", - "build:cjs": "tsc -p tsconfig.cjs.json", - "build:es": "tsc -p tsconfig.es.json", - "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build", - "build:types": "tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo" - }, - "main": "./dist-cjs/index.js", - "types": "./dist-types/index.d.ts", - "module": "./dist-es/index.js", - "sideEffects": false, - "dependencies": { - "@aws-crypto/sha256-browser": "5.2.0", - "@aws-crypto/sha256-js": "5.2.0", - "@aws-sdk/middleware-host-header": "*", - "@aws-sdk/middleware-logger": "*", - "@aws-sdk/middleware-recursion-detection": "*", - "@aws-sdk/middleware-user-agent": "*", - "@aws-sdk/region-config-resolver": "*", - "@aws-sdk/types": "*", - "@aws-sdk/util-user-agent-browser": "*", - "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/experimental-identity-and-auth": "^0.3.17", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", - "@smithy/util-base64": "^3.0.0", - "@smithy/util-body-length-browser": "^3.0.0", - "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", - "@smithy/util-utf8": "^3.0.0", - "tslib": "^2.6.2" - }, - "devDependencies": { - "@tsconfig/node16": "16.1.3", - "@types/node": "^16.18.96", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "rimraf": "3.0.2", - "typescript": "~4.9.5" - }, - "engines": { - "node": ">=16.0.0" - }, - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "author": { - "name": "AWS SDK for JavaScript Team", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "browser": { - "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser" - }, - "react-native": { - "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native" - }, - "private": true, - "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/weather-experimental-identity-and-auth", - "repository": { - "type": "git", - "url": "https://github.com/aws/aws-sdk-js-v3.git", - "directory": "clients/weather-experimental-identity-and-auth" - } -} diff --git a/private/weather-experimental-identity-and-auth/src/Weather.ts b/private/weather-experimental-identity-and-auth/src/Weather.ts deleted file mode 100644 index c21f4bc1acc9..000000000000 --- a/private/weather-experimental-identity-and-auth/src/Weather.ts +++ /dev/null @@ -1,264 +0,0 @@ -// smithy-typescript generated code -import { WeatherClient, WeatherClientConfig } from "./WeatherClient"; -import { - OnlyCustomAuthCommand, - OnlyCustomAuthCommandInput, - OnlyCustomAuthCommandOutput, -} from "./commands/OnlyCustomAuthCommand"; -import { - OnlyCustomAuthOptionalCommand, - OnlyCustomAuthOptionalCommandInput, - OnlyCustomAuthOptionalCommandOutput, -} from "./commands/OnlyCustomAuthOptionalCommand"; -import { - OnlyHttpApiKeyAndBearerAuthCommand, - OnlyHttpApiKeyAndBearerAuthCommandInput, - OnlyHttpApiKeyAndBearerAuthCommandOutput, -} from "./commands/OnlyHttpApiKeyAndBearerAuthCommand"; -import { - OnlyHttpApiKeyAndBearerAuthReversedCommand, - OnlyHttpApiKeyAndBearerAuthReversedCommandInput, - OnlyHttpApiKeyAndBearerAuthReversedCommandOutput, -} from "./commands/OnlyHttpApiKeyAndBearerAuthReversedCommand"; -import { - OnlyHttpApiKeyAuthCommand, - OnlyHttpApiKeyAuthCommandInput, - OnlyHttpApiKeyAuthCommandOutput, -} from "./commands/OnlyHttpApiKeyAuthCommand"; -import { - OnlyHttpApiKeyAuthOptionalCommand, - OnlyHttpApiKeyAuthOptionalCommandInput, - OnlyHttpApiKeyAuthOptionalCommandOutput, -} from "./commands/OnlyHttpApiKeyAuthOptionalCommand"; -import { - OnlyHttpBearerAuthCommand, - OnlyHttpBearerAuthCommandInput, - OnlyHttpBearerAuthCommandOutput, -} from "./commands/OnlyHttpBearerAuthCommand"; -import { - OnlyHttpBearerAuthOptionalCommand, - OnlyHttpBearerAuthOptionalCommandInput, - OnlyHttpBearerAuthOptionalCommandOutput, -} from "./commands/OnlyHttpBearerAuthOptionalCommand"; -import { - OnlySigv4AuthCommand, - OnlySigv4AuthCommandInput, - OnlySigv4AuthCommandOutput, -} from "./commands/OnlySigv4AuthCommand"; -import { - OnlySigv4AuthOptionalCommand, - OnlySigv4AuthOptionalCommandInput, - OnlySigv4AuthOptionalCommandOutput, -} from "./commands/OnlySigv4AuthOptionalCommand"; -import { - SameAsServiceCommand, - SameAsServiceCommandInput, - SameAsServiceCommandOutput, -} from "./commands/SameAsServiceCommand"; -import { createAggregatedClient } from "@smithy/smithy-client"; -import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types"; - -const commands = { - OnlyCustomAuthCommand, - OnlyCustomAuthOptionalCommand, - OnlyHttpApiKeyAndBearerAuthCommand, - OnlyHttpApiKeyAndBearerAuthReversedCommand, - OnlyHttpApiKeyAuthCommand, - OnlyHttpApiKeyAuthOptionalCommand, - OnlyHttpBearerAuthCommand, - OnlyHttpBearerAuthOptionalCommand, - OnlySigv4AuthCommand, - OnlySigv4AuthOptionalCommand, - SameAsServiceCommand, -}; - -export interface Weather { - /** - * @see {@link OnlyCustomAuthCommand} - */ - onlyCustomAuth(): Promise; - onlyCustomAuth( - args: OnlyCustomAuthCommandInput, - options?: __HttpHandlerOptions - ): Promise; - onlyCustomAuth(args: OnlyCustomAuthCommandInput, cb: (err: any, data?: OnlyCustomAuthCommandOutput) => void): void; - onlyCustomAuth( - args: OnlyCustomAuthCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: OnlyCustomAuthCommandOutput) => void - ): void; - - /** - * @see {@link OnlyCustomAuthOptionalCommand} - */ - onlyCustomAuthOptional(): Promise; - onlyCustomAuthOptional( - args: OnlyCustomAuthOptionalCommandInput, - options?: __HttpHandlerOptions - ): Promise; - onlyCustomAuthOptional( - args: OnlyCustomAuthOptionalCommandInput, - cb: (err: any, data?: OnlyCustomAuthOptionalCommandOutput) => void - ): void; - onlyCustomAuthOptional( - args: OnlyCustomAuthOptionalCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: OnlyCustomAuthOptionalCommandOutput) => void - ): void; - - /** - * @see {@link OnlyHttpApiKeyAndBearerAuthCommand} - */ - onlyHttpApiKeyAndBearerAuth(): Promise; - onlyHttpApiKeyAndBearerAuth( - args: OnlyHttpApiKeyAndBearerAuthCommandInput, - options?: __HttpHandlerOptions - ): Promise; - onlyHttpApiKeyAndBearerAuth( - args: OnlyHttpApiKeyAndBearerAuthCommandInput, - cb: (err: any, data?: OnlyHttpApiKeyAndBearerAuthCommandOutput) => void - ): void; - onlyHttpApiKeyAndBearerAuth( - args: OnlyHttpApiKeyAndBearerAuthCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: OnlyHttpApiKeyAndBearerAuthCommandOutput) => void - ): void; - - /** - * @see {@link OnlyHttpApiKeyAndBearerAuthReversedCommand} - */ - onlyHttpApiKeyAndBearerAuthReversed(): Promise; - onlyHttpApiKeyAndBearerAuthReversed( - args: OnlyHttpApiKeyAndBearerAuthReversedCommandInput, - options?: __HttpHandlerOptions - ): Promise; - onlyHttpApiKeyAndBearerAuthReversed( - args: OnlyHttpApiKeyAndBearerAuthReversedCommandInput, - cb: (err: any, data?: OnlyHttpApiKeyAndBearerAuthReversedCommandOutput) => void - ): void; - onlyHttpApiKeyAndBearerAuthReversed( - args: OnlyHttpApiKeyAndBearerAuthReversedCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: OnlyHttpApiKeyAndBearerAuthReversedCommandOutput) => void - ): void; - - /** - * @see {@link OnlyHttpApiKeyAuthCommand} - */ - onlyHttpApiKeyAuth(): Promise; - onlyHttpApiKeyAuth( - args: OnlyHttpApiKeyAuthCommandInput, - options?: __HttpHandlerOptions - ): Promise; - onlyHttpApiKeyAuth( - args: OnlyHttpApiKeyAuthCommandInput, - cb: (err: any, data?: OnlyHttpApiKeyAuthCommandOutput) => void - ): void; - onlyHttpApiKeyAuth( - args: OnlyHttpApiKeyAuthCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: OnlyHttpApiKeyAuthCommandOutput) => void - ): void; - - /** - * @see {@link OnlyHttpApiKeyAuthOptionalCommand} - */ - onlyHttpApiKeyAuthOptional(): Promise; - onlyHttpApiKeyAuthOptional( - args: OnlyHttpApiKeyAuthOptionalCommandInput, - options?: __HttpHandlerOptions - ): Promise; - onlyHttpApiKeyAuthOptional( - args: OnlyHttpApiKeyAuthOptionalCommandInput, - cb: (err: any, data?: OnlyHttpApiKeyAuthOptionalCommandOutput) => void - ): void; - onlyHttpApiKeyAuthOptional( - args: OnlyHttpApiKeyAuthOptionalCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: OnlyHttpApiKeyAuthOptionalCommandOutput) => void - ): void; - - /** - * @see {@link OnlyHttpBearerAuthCommand} - */ - onlyHttpBearerAuth(): Promise; - onlyHttpBearerAuth( - args: OnlyHttpBearerAuthCommandInput, - options?: __HttpHandlerOptions - ): Promise; - onlyHttpBearerAuth( - args: OnlyHttpBearerAuthCommandInput, - cb: (err: any, data?: OnlyHttpBearerAuthCommandOutput) => void - ): void; - onlyHttpBearerAuth( - args: OnlyHttpBearerAuthCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: OnlyHttpBearerAuthCommandOutput) => void - ): void; - - /** - * @see {@link OnlyHttpBearerAuthOptionalCommand} - */ - onlyHttpBearerAuthOptional(): Promise; - onlyHttpBearerAuthOptional( - args: OnlyHttpBearerAuthOptionalCommandInput, - options?: __HttpHandlerOptions - ): Promise; - onlyHttpBearerAuthOptional( - args: OnlyHttpBearerAuthOptionalCommandInput, - cb: (err: any, data?: OnlyHttpBearerAuthOptionalCommandOutput) => void - ): void; - onlyHttpBearerAuthOptional( - args: OnlyHttpBearerAuthOptionalCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: OnlyHttpBearerAuthOptionalCommandOutput) => void - ): void; - - /** - * @see {@link OnlySigv4AuthCommand} - */ - onlySigv4Auth(): Promise; - onlySigv4Auth(args: OnlySigv4AuthCommandInput, options?: __HttpHandlerOptions): Promise; - onlySigv4Auth(args: OnlySigv4AuthCommandInput, cb: (err: any, data?: OnlySigv4AuthCommandOutput) => void): void; - onlySigv4Auth( - args: OnlySigv4AuthCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: OnlySigv4AuthCommandOutput) => void - ): void; - - /** - * @see {@link OnlySigv4AuthOptionalCommand} - */ - onlySigv4AuthOptional(): Promise; - onlySigv4AuthOptional( - args: OnlySigv4AuthOptionalCommandInput, - options?: __HttpHandlerOptions - ): Promise; - onlySigv4AuthOptional( - args: OnlySigv4AuthOptionalCommandInput, - cb: (err: any, data?: OnlySigv4AuthOptionalCommandOutput) => void - ): void; - onlySigv4AuthOptional( - args: OnlySigv4AuthOptionalCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: OnlySigv4AuthOptionalCommandOutput) => void - ): void; - - /** - * @see {@link SameAsServiceCommand} - */ - sameAsService(): Promise; - sameAsService(args: SameAsServiceCommandInput, options?: __HttpHandlerOptions): Promise; - sameAsService(args: SameAsServiceCommandInput, cb: (err: any, data?: SameAsServiceCommandOutput) => void): void; - sameAsService( - args: SameAsServiceCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: SameAsServiceCommandOutput) => void - ): void; -} - -/** - * @public - */ -export class Weather extends WeatherClient implements Weather {} -createAggregatedClient(commands, Weather); diff --git a/private/weather-experimental-identity-and-auth/src/WeatherClient.ts b/private/weather-experimental-identity-and-auth/src/WeatherClient.ts deleted file mode 100644 index d5c1ef0dda3d..000000000000 --- a/private/weather-experimental-identity-and-auth/src/WeatherClient.ts +++ /dev/null @@ -1,332 +0,0 @@ -// smithy-typescript generated code -import { - HttpAuthSchemeInputConfig, - HttpAuthSchemeResolvedConfig, - defaultWeatherHttpAuthSchemeParametersProvider, - resolveHttpAuthSchemeConfig, -} from "./auth/httpAuthSchemeProvider"; -import { OnlyCustomAuthCommandInput, OnlyCustomAuthCommandOutput } from "./commands/OnlyCustomAuthCommand"; -import { - OnlyCustomAuthOptionalCommandInput, - OnlyCustomAuthOptionalCommandOutput, -} from "./commands/OnlyCustomAuthOptionalCommand"; -import { - OnlyHttpApiKeyAndBearerAuthCommandInput, - OnlyHttpApiKeyAndBearerAuthCommandOutput, -} from "./commands/OnlyHttpApiKeyAndBearerAuthCommand"; -import { - OnlyHttpApiKeyAndBearerAuthReversedCommandInput, - OnlyHttpApiKeyAndBearerAuthReversedCommandOutput, -} from "./commands/OnlyHttpApiKeyAndBearerAuthReversedCommand"; -import { OnlyHttpApiKeyAuthCommandInput, OnlyHttpApiKeyAuthCommandOutput } from "./commands/OnlyHttpApiKeyAuthCommand"; -import { - OnlyHttpApiKeyAuthOptionalCommandInput, - OnlyHttpApiKeyAuthOptionalCommandOutput, -} from "./commands/OnlyHttpApiKeyAuthOptionalCommand"; -import { OnlyHttpBearerAuthCommandInput, OnlyHttpBearerAuthCommandOutput } from "./commands/OnlyHttpBearerAuthCommand"; -import { - OnlyHttpBearerAuthOptionalCommandInput, - OnlyHttpBearerAuthOptionalCommandOutput, -} from "./commands/OnlyHttpBearerAuthOptionalCommand"; -import { OnlySigv4AuthCommandInput, OnlySigv4AuthCommandOutput } from "./commands/OnlySigv4AuthCommand"; -import { - OnlySigv4AuthOptionalCommandInput, - OnlySigv4AuthOptionalCommandOutput, -} from "./commands/OnlySigv4AuthOptionalCommand"; -import { SameAsServiceCommandInput, SameAsServiceCommandOutput } from "./commands/SameAsServiceCommand"; -import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig"; -import { RuntimeExtension, RuntimeExtensionsConfig, resolveRuntimeExtensions } from "./runtimeExtensions"; -import { - HostHeaderInputConfig, - HostHeaderResolvedConfig, - getHostHeaderPlugin, - resolveHostHeaderConfig, -} from "@aws-sdk/middleware-host-header"; -import { getLoggerPlugin } from "@aws-sdk/middleware-logger"; -import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection"; -import { - UserAgentInputConfig, - UserAgentResolvedConfig, - getUserAgentPlugin, - resolveUserAgentConfig, -} from "@aws-sdk/middleware-user-agent"; -import { - CustomEndpointsInputConfig, - CustomEndpointsResolvedConfig, - RegionInputConfig, - RegionResolvedConfig, - resolveCustomEndpointsConfig, - resolveRegionConfig, -} from "@smithy/config-resolver"; -import { DefaultIdentityProviderConfig, getHttpAuthSchemePlugin, getHttpSigningPlugin } from "@smithy/core"; -import { getContentLengthPlugin } from "@smithy/middleware-content-length"; -import { RetryInputConfig, RetryResolvedConfig, getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry"; -import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http"; -import { - Client as __Client, - DefaultsMode as __DefaultsMode, - SmithyConfiguration as __SmithyConfiguration, - SmithyResolvedConfiguration as __SmithyResolvedConfiguration, -} from "@smithy/smithy-client"; -import { - Provider, - BodyLengthCalculator as __BodyLengthCalculator, - CheckOptionalClientConfig as __CheckOptionalClientConfig, - ChecksumConstructor as __ChecksumConstructor, - Decoder as __Decoder, - Encoder as __Encoder, - HashConstructor as __HashConstructor, - HttpHandlerOptions as __HttpHandlerOptions, - Logger as __Logger, - Provider as __Provider, - StreamCollector as __StreamCollector, - UrlParser as __UrlParser, - UserAgent as __UserAgent, -} from "@smithy/types"; - -export { __Client }; - -/** - * @public - */ -export type ServiceInputTypes = - | OnlyCustomAuthCommandInput - | OnlyCustomAuthOptionalCommandInput - | OnlyHttpApiKeyAndBearerAuthCommandInput - | OnlyHttpApiKeyAndBearerAuthReversedCommandInput - | OnlyHttpApiKeyAuthCommandInput - | OnlyHttpApiKeyAuthOptionalCommandInput - | OnlyHttpBearerAuthCommandInput - | OnlyHttpBearerAuthOptionalCommandInput - | OnlySigv4AuthCommandInput - | OnlySigv4AuthOptionalCommandInput - | SameAsServiceCommandInput; - -/** - * @public - */ -export type ServiceOutputTypes = - | OnlyCustomAuthCommandOutput - | OnlyCustomAuthOptionalCommandOutput - | OnlyHttpApiKeyAndBearerAuthCommandOutput - | OnlyHttpApiKeyAndBearerAuthReversedCommandOutput - | OnlyHttpApiKeyAuthCommandOutput - | OnlyHttpApiKeyAuthOptionalCommandOutput - | OnlyHttpBearerAuthCommandOutput - | OnlyHttpBearerAuthOptionalCommandOutput - | OnlySigv4AuthCommandOutput - | OnlySigv4AuthOptionalCommandOutput - | SameAsServiceCommandOutput; - -/** - * @public - */ -export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> { - /** - * The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs. - */ - requestHandler?: __HttpHandlerUserInput; - - /** - * A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface - * that computes the SHA-256 HMAC or checksum of a string or binary buffer. - * @internal - */ - sha256?: __ChecksumConstructor | __HashConstructor; - - /** - * The function that will be used to convert strings into HTTP endpoints. - * @internal - */ - urlParser?: __UrlParser; - - /** - * A function that can calculate the length of a request body. - * @internal - */ - bodyLengthChecker?: __BodyLengthCalculator; - - /** - * A function that converts a stream into an array of bytes. - * @internal - */ - streamCollector?: __StreamCollector; - - /** - * The function that will be used to convert a base64-encoded string to a byte array. - * @internal - */ - base64Decoder?: __Decoder; - - /** - * The function that will be used to convert binary data to a base64-encoded string. - * @internal - */ - base64Encoder?: __Encoder; - - /** - * The function that will be used to convert a UTF8-encoded string to a byte array. - * @internal - */ - utf8Decoder?: __Decoder; - - /** - * The function that will be used to convert binary data to a UTF-8 encoded string. - * @internal - */ - utf8Encoder?: __Encoder; - - /** - * The runtime environment. - * @internal - */ - runtime?: string; - - /** - * Disable dynamically changing the endpoint of the client based on the hostPrefix - * trait of an operation. - */ - disableHostPrefix?: boolean; - - /** - * The AWS region to use as signing region for AWS Auth - */ - region?: string | __Provider; - - /** - * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header - * @internal - */ - defaultUserAgentProvider?: Provider<__UserAgent>; - - /** - * The service name to use as the signing service for AWS Auth - * @internal - */ - signingName?: string; - - /** - * Value for how many times a request will be made at most in case of retry. - */ - maxAttempts?: number | __Provider; - - /** - * Specifies which retry algorithm to use. - * @see https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-util-retry/Enum/RETRY_MODES/ - * - */ - retryMode?: string | __Provider; - - /** - * Optional logger for logging debug/info/warn/error. - */ - logger?: __Logger; - - /** - * Optional extensions - */ - extensions?: RuntimeExtension[]; - - /** - * The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK. - */ - defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>; -} - -/** - * @public - */ -export type WeatherClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & - ClientDefaults & - RegionInputConfig & - HostHeaderInputConfig & - UserAgentInputConfig & - CustomEndpointsInputConfig & - RetryInputConfig & - HttpAuthSchemeInputConfig; -/** - * @public - * - * The configuration interface of WeatherClient class constructor that set the region, credentials and other options. - */ -export interface WeatherClientConfig extends WeatherClientConfigType {} - -/** - * @public - */ -export type WeatherClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & - Required & - RuntimeExtensionsConfig & - RegionResolvedConfig & - HostHeaderResolvedConfig & - UserAgentResolvedConfig & - CustomEndpointsResolvedConfig & - RetryResolvedConfig & - HttpAuthSchemeResolvedConfig; -/** - * @public - * - * The resolved configuration interface of WeatherClient class. This is resolved and normalized from the {@link WeatherClientConfig | constructor configuration interface}. - */ -export interface WeatherClientResolvedConfig extends WeatherClientResolvedConfigType {} - -/** - * @public - */ -export class WeatherClient extends __Client< - __HttpHandlerOptions, - ServiceInputTypes, - ServiceOutputTypes, - WeatherClientResolvedConfig -> { - /** - * The resolved configuration of WeatherClient class. This is resolved and normalized from the {@link WeatherClientConfig | constructor configuration interface}. - */ - readonly config: WeatherClientResolvedConfig; - - constructor(...[configuration]: __CheckOptionalClientConfig) { - let _config_0 = __getRuntimeConfig(configuration || {}); - let _config_1 = resolveRegionConfig(_config_0); - let _config_2 = resolveHostHeaderConfig(_config_1); - let _config_3 = resolveUserAgentConfig(_config_2); - let _config_4 = resolveCustomEndpointsConfig(_config_3); - let _config_5 = resolveRetryConfig(_config_4); - let _config_6 = resolveHttpAuthSchemeConfig(_config_5); - let _config_7 = resolveRuntimeExtensions(_config_6, configuration?.extensions || []); - super(_config_7); - this.config = _config_7; - this.middlewareStack.use(getHostHeaderPlugin(this.config)); - this.middlewareStack.use(getLoggerPlugin(this.config)); - this.middlewareStack.use(getRecursionDetectionPlugin(this.config)); - this.middlewareStack.use(getUserAgentPlugin(this.config)); - this.middlewareStack.use(getRetryPlugin(this.config)); - this.middlewareStack.use(getContentLengthPlugin(this.config)); - this.middlewareStack.use( - getHttpAuthSchemePlugin(this.config, { - httpAuthSchemeParametersProvider: this.getDefaultHttpAuthSchemeParametersProvider(), - identityProviderConfigProvider: this.getIdentityProviderConfigProvider(), - }) - ); - this.middlewareStack.use(getHttpSigningPlugin(this.config)); - } - - /** - * Destroy underlying resources, like sockets. It's usually not necessary to do this. - * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed. - * Otherwise, sockets might stay open for quite a long time before the server terminates them. - */ - destroy(): void { - super.destroy(); - } - private getDefaultHttpAuthSchemeParametersProvider() { - return defaultWeatherHttpAuthSchemeParametersProvider; - } - private getIdentityProviderConfigProvider() { - return async (config: WeatherClientResolvedConfig) => - new DefaultIdentityProviderConfig({ - "aws.auth#sigv4": config.credentials, - "smithy.api#httpApiKeyAuth": config.apiKey, - "smithy.api#httpBearerAuth": config.token, - }); - } -} diff --git a/private/weather-experimental-identity-and-auth/src/auth/httpAuthExtensionConfiguration.ts b/private/weather-experimental-identity-and-auth/src/auth/httpAuthExtensionConfiguration.ts deleted file mode 100644 index fcdf057a6ff3..000000000000 --- a/private/weather-experimental-identity-and-auth/src/auth/httpAuthExtensionConfiguration.ts +++ /dev/null @@ -1,101 +0,0 @@ -// smithy-typescript generated code -import { WeatherHttpAuthSchemeProvider } from "./httpAuthSchemeProvider"; -import { - ApiKeyIdentity, - ApiKeyIdentityProvider, - AwsCredentialIdentity, - AwsCredentialIdentityProvider, - HttpAuthScheme, - TokenIdentity, - TokenIdentityProvider, -} from "@smithy/types"; - -/** - * @internal - */ -export interface HttpAuthExtensionConfiguration { - setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void; - httpAuthSchemes(): HttpAuthScheme[]; - setHttpAuthSchemeProvider(httpAuthSchemeProvider: WeatherHttpAuthSchemeProvider): void; - httpAuthSchemeProvider(): WeatherHttpAuthSchemeProvider; - setApiKey(apiKey: ApiKeyIdentity | ApiKeyIdentityProvider): void; - apiKey(): ApiKeyIdentity | ApiKeyIdentityProvider | undefined; - setCredentials(credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider): void; - credentials(): AwsCredentialIdentity | AwsCredentialIdentityProvider | undefined; - setToken(token: TokenIdentity | TokenIdentityProvider): void; - token(): TokenIdentity | TokenIdentityProvider | undefined; -} - -/** - * @internal - */ -export type HttpAuthRuntimeConfig = Partial<{ - httpAuthSchemes: HttpAuthScheme[]; - httpAuthSchemeProvider: WeatherHttpAuthSchemeProvider; - apiKey: ApiKeyIdentity | ApiKeyIdentityProvider; - credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider; - token: TokenIdentity | TokenIdentityProvider; -}>; - -/** - * @internal - */ -export const getHttpAuthExtensionConfiguration = ( - runtimeConfig: HttpAuthRuntimeConfig -): HttpAuthExtensionConfiguration => { - let _httpAuthSchemes = runtimeConfig.httpAuthSchemes!; - let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider!; - let _apiKey = runtimeConfig.apiKey; - let _credentials = runtimeConfig.credentials; - let _token = runtimeConfig.token; - return { - setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void { - const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId); - if (index === -1) { - _httpAuthSchemes.push(httpAuthScheme); - } else { - _httpAuthSchemes.splice(index, 1, httpAuthScheme); - } - }, - httpAuthSchemes(): HttpAuthScheme[] { - return _httpAuthSchemes; - }, - setHttpAuthSchemeProvider(httpAuthSchemeProvider: WeatherHttpAuthSchemeProvider): void { - _httpAuthSchemeProvider = httpAuthSchemeProvider; - }, - httpAuthSchemeProvider(): WeatherHttpAuthSchemeProvider { - return _httpAuthSchemeProvider; - }, - setApiKey(apiKey: ApiKeyIdentity | ApiKeyIdentityProvider): void { - _apiKey = apiKey; - }, - apiKey(): ApiKeyIdentity | ApiKeyIdentityProvider | undefined { - return _apiKey; - }, - setCredentials(credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider): void { - _credentials = credentials; - }, - credentials(): AwsCredentialIdentity | AwsCredentialIdentityProvider | undefined { - return _credentials; - }, - setToken(token: TokenIdentity | TokenIdentityProvider): void { - _token = token; - }, - token(): TokenIdentity | TokenIdentityProvider | undefined { - return _token; - }, - }; -}; - -/** - * @internal - */ -export const resolveHttpAuthRuntimeConfig = (config: HttpAuthExtensionConfiguration): HttpAuthRuntimeConfig => { - return { - httpAuthSchemes: config.httpAuthSchemes(), - httpAuthSchemeProvider: config.httpAuthSchemeProvider(), - apiKey: config.apiKey(), - credentials: config.credentials(), - token: config.token(), - }; -}; diff --git a/private/weather-experimental-identity-and-auth/src/auth/httpAuthSchemeProvider.ts b/private/weather-experimental-identity-and-auth/src/auth/httpAuthSchemeProvider.ts deleted file mode 100644 index 0fc3877a1182..000000000000 --- a/private/weather-experimental-identity-and-auth/src/auth/httpAuthSchemeProvider.ts +++ /dev/null @@ -1,252 +0,0 @@ -// smithy-typescript generated code -import { WeatherClientResolvedConfig } from "../WeatherClient"; -import { doesIdentityRequireRefresh, isIdentityExpired, memoizeIdentityProvider } from "@smithy/core"; -import { - ApiKeyIdentity, - ApiKeyIdentityProvider, - AwsCredentialIdentity, - AwsCredentialIdentityProvider, - HandlerExecutionContext, - HttpApiKeyAuthLocation, - HttpAuthOption, - HttpAuthScheme, - HttpAuthSchemeParameters, - HttpAuthSchemeParametersProvider, - HttpAuthSchemeProvider, - TokenIdentity, - TokenIdentityProvider, - Provider as __Provider, -} from "@smithy/types"; -import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware"; - -/** - * @internal - */ -export interface WeatherHttpAuthSchemeParameters extends HttpAuthSchemeParameters { - region?: string; -} - -/** - * @internal - */ -export interface WeatherHttpAuthSchemeParametersProvider - extends HttpAuthSchemeParametersProvider< - WeatherClientResolvedConfig, - HandlerExecutionContext, - WeatherHttpAuthSchemeParameters, - object - > {} - -/** - * @internal - */ -export const defaultWeatherHttpAuthSchemeParametersProvider = async ( - config: WeatherClientResolvedConfig, - context: HandlerExecutionContext, - input: object -): Promise => { - return { - operation: getSmithyContext(context).operation as string, - region: - (await normalizeProvider(config.region)()) || - (() => { - throw new Error("expected `region` to be configured for `aws.auth#sigv4`"); - })(), - }; -}; - -function createAwsAuthSigv4HttpAuthOption(authParameters: WeatherHttpAuthSchemeParameters): HttpAuthOption { - return { - schemeId: "aws.auth#sigv4", - signingProperties: { - name: "weather", - region: authParameters.region, - }, - propertiesExtractor: (config, context) => { - return { - /** - * @internal - */ - signingProperties: { - context, - }, - }; - }, - }; -} - -function createExampleWeatherCustomAuthHttpAuthOption(authParameters: WeatherHttpAuthSchemeParameters): HttpAuthOption { - return { - schemeId: "example.weather#customAuth", - }; -} - -function createSmithyApiHttpApiKeyAuthHttpAuthOption(authParameters: WeatherHttpAuthSchemeParameters): HttpAuthOption { - return { - schemeId: "smithy.api#httpApiKeyAuth", - signingProperties: { - name: "X-Api-Key", - in: HttpApiKeyAuthLocation.HEADER, - scheme: undefined, - }, - }; -} - -function createSmithyApiHttpBearerAuthHttpAuthOption(authParameters: WeatherHttpAuthSchemeParameters): HttpAuthOption { - return { - schemeId: "smithy.api#httpBearerAuth", - }; -} - -function createSmithyApiNoAuthHttpAuthOption(authParameters: WeatherHttpAuthSchemeParameters): HttpAuthOption { - return { - schemeId: "smithy.api#noAuth", - }; -} - -/** - * @internal - */ -export interface WeatherHttpAuthSchemeProvider extends HttpAuthSchemeProvider {} - -/** - * @internal - */ -export const defaultWeatherHttpAuthSchemeProvider: WeatherHttpAuthSchemeProvider = (authParameters) => { - const options: HttpAuthOption[] = []; - switch (authParameters.operation) { - case "OnlyCustomAuth": { - options.push(createExampleWeatherCustomAuthHttpAuthOption(authParameters)); - break; - } - case "OnlyCustomAuthOptional": { - options.push(createExampleWeatherCustomAuthHttpAuthOption(authParameters)); - options.push(createSmithyApiNoAuthHttpAuthOption(authParameters)); - break; - } - case "OnlyHttpApiKeyAndBearerAuth": { - options.push(createSmithyApiHttpApiKeyAuthHttpAuthOption(authParameters)); - options.push(createSmithyApiHttpBearerAuthHttpAuthOption(authParameters)); - break; - } - case "OnlyHttpApiKeyAndBearerAuthReversed": { - options.push(createSmithyApiHttpBearerAuthHttpAuthOption(authParameters)); - options.push(createSmithyApiHttpApiKeyAuthHttpAuthOption(authParameters)); - break; - } - case "OnlyHttpApiKeyAuth": { - options.push(createSmithyApiHttpApiKeyAuthHttpAuthOption(authParameters)); - break; - } - case "OnlyHttpApiKeyAuthOptional": { - options.push(createSmithyApiHttpApiKeyAuthHttpAuthOption(authParameters)); - options.push(createSmithyApiNoAuthHttpAuthOption(authParameters)); - break; - } - case "OnlyHttpBearerAuth": { - options.push(createSmithyApiHttpBearerAuthHttpAuthOption(authParameters)); - break; - } - case "OnlyHttpBearerAuthOptional": { - options.push(createSmithyApiHttpBearerAuthHttpAuthOption(authParameters)); - options.push(createSmithyApiNoAuthHttpAuthOption(authParameters)); - break; - } - case "OnlySigv4AuthOptional": { - options.push(createAwsAuthSigv4HttpAuthOption(authParameters)); - options.push(createSmithyApiNoAuthHttpAuthOption(authParameters)); - break; - } - default: { - options.push(createAwsAuthSigv4HttpAuthOption(authParameters)); - } - } - return options; -}; - -/** - * @internal - */ -export interface HttpAuthSchemeInputConfig { - /** - * experimentalIdentityAndAuth: Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. - * @internal - */ - httpAuthSchemes?: HttpAuthScheme[]; - - /** - * experimentalIdentityAndAuth: Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use. - * @internal - */ - httpAuthSchemeProvider?: WeatherHttpAuthSchemeProvider; - - /** - * The API key to use when making requests. - */ - apiKey?: ApiKeyIdentity | ApiKeyIdentityProvider; - /** - * The credentials used to sign requests. - */ - credentials?: AwsCredentialIdentity | AwsCredentialIdentityProvider; - /** - * The AWS region to which this client will send requests. - */ - region?: string | __Provider; - /** - * The token used to authenticate requests. - */ - token?: TokenIdentity | TokenIdentityProvider; -} - -/** - * @internal - */ -export interface HttpAuthSchemeResolvedConfig { - /** - * experimentalIdentityAndAuth: Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme. - * @internal - */ - readonly httpAuthSchemes: HttpAuthScheme[]; - - /** - * experimentalIdentityAndAuth: Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use. - * @internal - */ - readonly httpAuthSchemeProvider: WeatherHttpAuthSchemeProvider; - - /** - * The API key to use when making requests. - */ - readonly apiKey?: ApiKeyIdentityProvider; - /** - * The credentials used to sign requests. - */ - readonly credentials?: AwsCredentialIdentityProvider; - /** - * The AWS region to which this client will send requests. - */ - readonly region?: __Provider; - /** - * The token used to authenticate requests. - */ - readonly token?: TokenIdentityProvider; -} - -/** - * @internal - */ -export const resolveHttpAuthSchemeConfig = ( - config: T & HttpAuthSchemeInputConfig -): T & HttpAuthSchemeResolvedConfig => { - const apiKey = memoizeIdentityProvider(config.apiKey, isIdentityExpired, doesIdentityRequireRefresh); - const credentials = memoizeIdentityProvider(config.credentials, isIdentityExpired, doesIdentityRequireRefresh); - const region = config.region ? normalizeProvider(config.region) : undefined; - const token = memoizeIdentityProvider(config.token, isIdentityExpired, doesIdentityRequireRefresh); - return { - ...config, - apiKey, - credentials, - region, - token, - } as T & HttpAuthSchemeResolvedConfig; -}; diff --git a/private/weather-experimental-identity-and-auth/src/commands/OnlyCustomAuthCommand.ts b/private/weather-experimental-identity-and-auth/src/commands/OnlyCustomAuthCommand.ts deleted file mode 100644 index ee2160e5ea8e..000000000000 --- a/private/weather-experimental-identity-and-auth/src/commands/OnlyCustomAuthCommand.ts +++ /dev/null @@ -1,71 +0,0 @@ -// smithy-typescript generated code -import { ServiceInputTypes, ServiceOutputTypes, WeatherClientResolvedConfig } from "../WeatherClient"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { MetadataBearer as __MetadataBearer } from "@smithy/types"; - -/** - * @public - */ -export type { __MetadataBearer }; -export { $Command }; -/** - * @public - * - * The input for {@link OnlyCustomAuthCommand}. - */ -export interface OnlyCustomAuthCommandInput {} -/** - * @public - * - * The output of {@link OnlyCustomAuthCommand}. - */ -export interface OnlyCustomAuthCommandOutput extends __MetadataBearer {} - -/** - * @public - * - * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { WeatherClient, OnlyCustomAuthCommand } from "@aws-sdk/weather-experimental-identity-and-auth"; // ES Modules import - * // const { WeatherClient, OnlyCustomAuthCommand } = require("@aws-sdk/weather-experimental-identity-and-auth"); // CommonJS import - * const client = new WeatherClient(config); - * const input = {}; - * const command = new OnlyCustomAuthCommand(input); - * const response = await client.send(command); - * // {}; - * - * ``` - * - * @param OnlyCustomAuthCommandInput - {@link OnlyCustomAuthCommandInput} - * @returns {@link OnlyCustomAuthCommandOutput} - * @see {@link OnlyCustomAuthCommandInput} for command's `input` shape. - * @see {@link OnlyCustomAuthCommandOutput} for command's `response` shape. - * @see {@link WeatherClientResolvedConfig | config} for WeatherClient's `config` shape. - * - * @throws {@link WeatherServiceException} - *

Base exception class for all service exceptions from Weather service.

- * - */ -export class OnlyCustomAuthCommand extends $Command - .classBuilder< - OnlyCustomAuthCommandInput, - OnlyCustomAuthCommandOutput, - WeatherClientResolvedConfig, - ServiceInputTypes, - ServiceOutputTypes - >() - .m(function (this: any, Command: any, cs: any, config: WeatherClientResolvedConfig, o: any) { - return [getSerdePlugin(config, this.serialize, this.deserialize)]; - }) - .s("Weather", "OnlyCustomAuth", {}) - .n("WeatherClient", "OnlyCustomAuthCommand") - .f(void 0, void 0) - .ser(() => { - throw new Error("No supported protocol was found"); - }) - .de(() => { - throw new Error("No supported protocol was found"); - }) - .build() {} diff --git a/private/weather-experimental-identity-and-auth/src/commands/OnlyCustomAuthOptionalCommand.ts b/private/weather-experimental-identity-and-auth/src/commands/OnlyCustomAuthOptionalCommand.ts deleted file mode 100644 index d6ff52ea6f06..000000000000 --- a/private/weather-experimental-identity-and-auth/src/commands/OnlyCustomAuthOptionalCommand.ts +++ /dev/null @@ -1,71 +0,0 @@ -// smithy-typescript generated code -import { ServiceInputTypes, ServiceOutputTypes, WeatherClientResolvedConfig } from "../WeatherClient"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { MetadataBearer as __MetadataBearer } from "@smithy/types"; - -/** - * @public - */ -export type { __MetadataBearer }; -export { $Command }; -/** - * @public - * - * The input for {@link OnlyCustomAuthOptionalCommand}. - */ -export interface OnlyCustomAuthOptionalCommandInput {} -/** - * @public - * - * The output of {@link OnlyCustomAuthOptionalCommand}. - */ -export interface OnlyCustomAuthOptionalCommandOutput extends __MetadataBearer {} - -/** - * @public - * - * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { WeatherClient, OnlyCustomAuthOptionalCommand } from "@aws-sdk/weather-experimental-identity-and-auth"; // ES Modules import - * // const { WeatherClient, OnlyCustomAuthOptionalCommand } = require("@aws-sdk/weather-experimental-identity-and-auth"); // CommonJS import - * const client = new WeatherClient(config); - * const input = {}; - * const command = new OnlyCustomAuthOptionalCommand(input); - * const response = await client.send(command); - * // {}; - * - * ``` - * - * @param OnlyCustomAuthOptionalCommandInput - {@link OnlyCustomAuthOptionalCommandInput} - * @returns {@link OnlyCustomAuthOptionalCommandOutput} - * @see {@link OnlyCustomAuthOptionalCommandInput} for command's `input` shape. - * @see {@link OnlyCustomAuthOptionalCommandOutput} for command's `response` shape. - * @see {@link WeatherClientResolvedConfig | config} for WeatherClient's `config` shape. - * - * @throws {@link WeatherServiceException} - *

Base exception class for all service exceptions from Weather service.

- * - */ -export class OnlyCustomAuthOptionalCommand extends $Command - .classBuilder< - OnlyCustomAuthOptionalCommandInput, - OnlyCustomAuthOptionalCommandOutput, - WeatherClientResolvedConfig, - ServiceInputTypes, - ServiceOutputTypes - >() - .m(function (this: any, Command: any, cs: any, config: WeatherClientResolvedConfig, o: any) { - return [getSerdePlugin(config, this.serialize, this.deserialize)]; - }) - .s("Weather", "OnlyCustomAuthOptional", {}) - .n("WeatherClient", "OnlyCustomAuthOptionalCommand") - .f(void 0, void 0) - .ser(() => { - throw new Error("No supported protocol was found"); - }) - .de(() => { - throw new Error("No supported protocol was found"); - }) - .build() {} diff --git a/private/weather-experimental-identity-and-auth/src/commands/OnlyHttpApiKeyAndBearerAuthCommand.ts b/private/weather-experimental-identity-and-auth/src/commands/OnlyHttpApiKeyAndBearerAuthCommand.ts deleted file mode 100644 index 728a44c093f8..000000000000 --- a/private/weather-experimental-identity-and-auth/src/commands/OnlyHttpApiKeyAndBearerAuthCommand.ts +++ /dev/null @@ -1,71 +0,0 @@ -// smithy-typescript generated code -import { ServiceInputTypes, ServiceOutputTypes, WeatherClientResolvedConfig } from "../WeatherClient"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { MetadataBearer as __MetadataBearer } from "@smithy/types"; - -/** - * @public - */ -export type { __MetadataBearer }; -export { $Command }; -/** - * @public - * - * The input for {@link OnlyHttpApiKeyAndBearerAuthCommand}. - */ -export interface OnlyHttpApiKeyAndBearerAuthCommandInput {} -/** - * @public - * - * The output of {@link OnlyHttpApiKeyAndBearerAuthCommand}. - */ -export interface OnlyHttpApiKeyAndBearerAuthCommandOutput extends __MetadataBearer {} - -/** - * @public - * - * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { WeatherClient, OnlyHttpApiKeyAndBearerAuthCommand } from "@aws-sdk/weather-experimental-identity-and-auth"; // ES Modules import - * // const { WeatherClient, OnlyHttpApiKeyAndBearerAuthCommand } = require("@aws-sdk/weather-experimental-identity-and-auth"); // CommonJS import - * const client = new WeatherClient(config); - * const input = {}; - * const command = new OnlyHttpApiKeyAndBearerAuthCommand(input); - * const response = await client.send(command); - * // {}; - * - * ``` - * - * @param OnlyHttpApiKeyAndBearerAuthCommandInput - {@link OnlyHttpApiKeyAndBearerAuthCommandInput} - * @returns {@link OnlyHttpApiKeyAndBearerAuthCommandOutput} - * @see {@link OnlyHttpApiKeyAndBearerAuthCommandInput} for command's `input` shape. - * @see {@link OnlyHttpApiKeyAndBearerAuthCommandOutput} for command's `response` shape. - * @see {@link WeatherClientResolvedConfig | config} for WeatherClient's `config` shape. - * - * @throws {@link WeatherServiceException} - *

Base exception class for all service exceptions from Weather service.

- * - */ -export class OnlyHttpApiKeyAndBearerAuthCommand extends $Command - .classBuilder< - OnlyHttpApiKeyAndBearerAuthCommandInput, - OnlyHttpApiKeyAndBearerAuthCommandOutput, - WeatherClientResolvedConfig, - ServiceInputTypes, - ServiceOutputTypes - >() - .m(function (this: any, Command: any, cs: any, config: WeatherClientResolvedConfig, o: any) { - return [getSerdePlugin(config, this.serialize, this.deserialize)]; - }) - .s("Weather", "OnlyHttpApiKeyAndBearerAuth", {}) - .n("WeatherClient", "OnlyHttpApiKeyAndBearerAuthCommand") - .f(void 0, void 0) - .ser(() => { - throw new Error("No supported protocol was found"); - }) - .de(() => { - throw new Error("No supported protocol was found"); - }) - .build() {} diff --git a/private/weather-experimental-identity-and-auth/src/commands/OnlyHttpApiKeyAndBearerAuthReversedCommand.ts b/private/weather-experimental-identity-and-auth/src/commands/OnlyHttpApiKeyAndBearerAuthReversedCommand.ts deleted file mode 100644 index a6cdcd98ec26..000000000000 --- a/private/weather-experimental-identity-and-auth/src/commands/OnlyHttpApiKeyAndBearerAuthReversedCommand.ts +++ /dev/null @@ -1,71 +0,0 @@ -// smithy-typescript generated code -import { ServiceInputTypes, ServiceOutputTypes, WeatherClientResolvedConfig } from "../WeatherClient"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { MetadataBearer as __MetadataBearer } from "@smithy/types"; - -/** - * @public - */ -export type { __MetadataBearer }; -export { $Command }; -/** - * @public - * - * The input for {@link OnlyHttpApiKeyAndBearerAuthReversedCommand}. - */ -export interface OnlyHttpApiKeyAndBearerAuthReversedCommandInput {} -/** - * @public - * - * The output of {@link OnlyHttpApiKeyAndBearerAuthReversedCommand}. - */ -export interface OnlyHttpApiKeyAndBearerAuthReversedCommandOutput extends __MetadataBearer {} - -/** - * @public - * - * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { WeatherClient, OnlyHttpApiKeyAndBearerAuthReversedCommand } from "@aws-sdk/weather-experimental-identity-and-auth"; // ES Modules import - * // const { WeatherClient, OnlyHttpApiKeyAndBearerAuthReversedCommand } = require("@aws-sdk/weather-experimental-identity-and-auth"); // CommonJS import - * const client = new WeatherClient(config); - * const input = {}; - * const command = new OnlyHttpApiKeyAndBearerAuthReversedCommand(input); - * const response = await client.send(command); - * // {}; - * - * ``` - * - * @param OnlyHttpApiKeyAndBearerAuthReversedCommandInput - {@link OnlyHttpApiKeyAndBearerAuthReversedCommandInput} - * @returns {@link OnlyHttpApiKeyAndBearerAuthReversedCommandOutput} - * @see {@link OnlyHttpApiKeyAndBearerAuthReversedCommandInput} for command's `input` shape. - * @see {@link OnlyHttpApiKeyAndBearerAuthReversedCommandOutput} for command's `response` shape. - * @see {@link WeatherClientResolvedConfig | config} for WeatherClient's `config` shape. - * - * @throws {@link WeatherServiceException} - *

Base exception class for all service exceptions from Weather service.

- * - */ -export class OnlyHttpApiKeyAndBearerAuthReversedCommand extends $Command - .classBuilder< - OnlyHttpApiKeyAndBearerAuthReversedCommandInput, - OnlyHttpApiKeyAndBearerAuthReversedCommandOutput, - WeatherClientResolvedConfig, - ServiceInputTypes, - ServiceOutputTypes - >() - .m(function (this: any, Command: any, cs: any, config: WeatherClientResolvedConfig, o: any) { - return [getSerdePlugin(config, this.serialize, this.deserialize)]; - }) - .s("Weather", "OnlyHttpApiKeyAndBearerAuthReversed", {}) - .n("WeatherClient", "OnlyHttpApiKeyAndBearerAuthReversedCommand") - .f(void 0, void 0) - .ser(() => { - throw new Error("No supported protocol was found"); - }) - .de(() => { - throw new Error("No supported protocol was found"); - }) - .build() {} diff --git a/private/weather-experimental-identity-and-auth/src/commands/OnlyHttpApiKeyAuthCommand.ts b/private/weather-experimental-identity-and-auth/src/commands/OnlyHttpApiKeyAuthCommand.ts deleted file mode 100644 index 5c7a636e3ce9..000000000000 --- a/private/weather-experimental-identity-and-auth/src/commands/OnlyHttpApiKeyAuthCommand.ts +++ /dev/null @@ -1,71 +0,0 @@ -// smithy-typescript generated code -import { ServiceInputTypes, ServiceOutputTypes, WeatherClientResolvedConfig } from "../WeatherClient"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { MetadataBearer as __MetadataBearer } from "@smithy/types"; - -/** - * @public - */ -export type { __MetadataBearer }; -export { $Command }; -/** - * @public - * - * The input for {@link OnlyHttpApiKeyAuthCommand}. - */ -export interface OnlyHttpApiKeyAuthCommandInput {} -/** - * @public - * - * The output of {@link OnlyHttpApiKeyAuthCommand}. - */ -export interface OnlyHttpApiKeyAuthCommandOutput extends __MetadataBearer {} - -/** - * @public - * - * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { WeatherClient, OnlyHttpApiKeyAuthCommand } from "@aws-sdk/weather-experimental-identity-and-auth"; // ES Modules import - * // const { WeatherClient, OnlyHttpApiKeyAuthCommand } = require("@aws-sdk/weather-experimental-identity-and-auth"); // CommonJS import - * const client = new WeatherClient(config); - * const input = {}; - * const command = new OnlyHttpApiKeyAuthCommand(input); - * const response = await client.send(command); - * // {}; - * - * ``` - * - * @param OnlyHttpApiKeyAuthCommandInput - {@link OnlyHttpApiKeyAuthCommandInput} - * @returns {@link OnlyHttpApiKeyAuthCommandOutput} - * @see {@link OnlyHttpApiKeyAuthCommandInput} for command's `input` shape. - * @see {@link OnlyHttpApiKeyAuthCommandOutput} for command's `response` shape. - * @see {@link WeatherClientResolvedConfig | config} for WeatherClient's `config` shape. - * - * @throws {@link WeatherServiceException} - *

Base exception class for all service exceptions from Weather service.

- * - */ -export class OnlyHttpApiKeyAuthCommand extends $Command - .classBuilder< - OnlyHttpApiKeyAuthCommandInput, - OnlyHttpApiKeyAuthCommandOutput, - WeatherClientResolvedConfig, - ServiceInputTypes, - ServiceOutputTypes - >() - .m(function (this: any, Command: any, cs: any, config: WeatherClientResolvedConfig, o: any) { - return [getSerdePlugin(config, this.serialize, this.deserialize)]; - }) - .s("Weather", "OnlyHttpApiKeyAuth", {}) - .n("WeatherClient", "OnlyHttpApiKeyAuthCommand") - .f(void 0, void 0) - .ser(() => { - throw new Error("No supported protocol was found"); - }) - .de(() => { - throw new Error("No supported protocol was found"); - }) - .build() {} diff --git a/private/weather-experimental-identity-and-auth/src/commands/OnlyHttpApiKeyAuthOptionalCommand.ts b/private/weather-experimental-identity-and-auth/src/commands/OnlyHttpApiKeyAuthOptionalCommand.ts deleted file mode 100644 index 8e1aa065f1fc..000000000000 --- a/private/weather-experimental-identity-and-auth/src/commands/OnlyHttpApiKeyAuthOptionalCommand.ts +++ /dev/null @@ -1,71 +0,0 @@ -// smithy-typescript generated code -import { ServiceInputTypes, ServiceOutputTypes, WeatherClientResolvedConfig } from "../WeatherClient"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { MetadataBearer as __MetadataBearer } from "@smithy/types"; - -/** - * @public - */ -export type { __MetadataBearer }; -export { $Command }; -/** - * @public - * - * The input for {@link OnlyHttpApiKeyAuthOptionalCommand}. - */ -export interface OnlyHttpApiKeyAuthOptionalCommandInput {} -/** - * @public - * - * The output of {@link OnlyHttpApiKeyAuthOptionalCommand}. - */ -export interface OnlyHttpApiKeyAuthOptionalCommandOutput extends __MetadataBearer {} - -/** - * @public - * - * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { WeatherClient, OnlyHttpApiKeyAuthOptionalCommand } from "@aws-sdk/weather-experimental-identity-and-auth"; // ES Modules import - * // const { WeatherClient, OnlyHttpApiKeyAuthOptionalCommand } = require("@aws-sdk/weather-experimental-identity-and-auth"); // CommonJS import - * const client = new WeatherClient(config); - * const input = {}; - * const command = new OnlyHttpApiKeyAuthOptionalCommand(input); - * const response = await client.send(command); - * // {}; - * - * ``` - * - * @param OnlyHttpApiKeyAuthOptionalCommandInput - {@link OnlyHttpApiKeyAuthOptionalCommandInput} - * @returns {@link OnlyHttpApiKeyAuthOptionalCommandOutput} - * @see {@link OnlyHttpApiKeyAuthOptionalCommandInput} for command's `input` shape. - * @see {@link OnlyHttpApiKeyAuthOptionalCommandOutput} for command's `response` shape. - * @see {@link WeatherClientResolvedConfig | config} for WeatherClient's `config` shape. - * - * @throws {@link WeatherServiceException} - *

Base exception class for all service exceptions from Weather service.

- * - */ -export class OnlyHttpApiKeyAuthOptionalCommand extends $Command - .classBuilder< - OnlyHttpApiKeyAuthOptionalCommandInput, - OnlyHttpApiKeyAuthOptionalCommandOutput, - WeatherClientResolvedConfig, - ServiceInputTypes, - ServiceOutputTypes - >() - .m(function (this: any, Command: any, cs: any, config: WeatherClientResolvedConfig, o: any) { - return [getSerdePlugin(config, this.serialize, this.deserialize)]; - }) - .s("Weather", "OnlyHttpApiKeyAuthOptional", {}) - .n("WeatherClient", "OnlyHttpApiKeyAuthOptionalCommand") - .f(void 0, void 0) - .ser(() => { - throw new Error("No supported protocol was found"); - }) - .de(() => { - throw new Error("No supported protocol was found"); - }) - .build() {} diff --git a/private/weather-experimental-identity-and-auth/src/commands/OnlyHttpBearerAuthCommand.ts b/private/weather-experimental-identity-and-auth/src/commands/OnlyHttpBearerAuthCommand.ts deleted file mode 100644 index 53a8468d3bdf..000000000000 --- a/private/weather-experimental-identity-and-auth/src/commands/OnlyHttpBearerAuthCommand.ts +++ /dev/null @@ -1,71 +0,0 @@ -// smithy-typescript generated code -import { ServiceInputTypes, ServiceOutputTypes, WeatherClientResolvedConfig } from "../WeatherClient"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { MetadataBearer as __MetadataBearer } from "@smithy/types"; - -/** - * @public - */ -export type { __MetadataBearer }; -export { $Command }; -/** - * @public - * - * The input for {@link OnlyHttpBearerAuthCommand}. - */ -export interface OnlyHttpBearerAuthCommandInput {} -/** - * @public - * - * The output of {@link OnlyHttpBearerAuthCommand}. - */ -export interface OnlyHttpBearerAuthCommandOutput extends __MetadataBearer {} - -/** - * @public - * - * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { WeatherClient, OnlyHttpBearerAuthCommand } from "@aws-sdk/weather-experimental-identity-and-auth"; // ES Modules import - * // const { WeatherClient, OnlyHttpBearerAuthCommand } = require("@aws-sdk/weather-experimental-identity-and-auth"); // CommonJS import - * const client = new WeatherClient(config); - * const input = {}; - * const command = new OnlyHttpBearerAuthCommand(input); - * const response = await client.send(command); - * // {}; - * - * ``` - * - * @param OnlyHttpBearerAuthCommandInput - {@link OnlyHttpBearerAuthCommandInput} - * @returns {@link OnlyHttpBearerAuthCommandOutput} - * @see {@link OnlyHttpBearerAuthCommandInput} for command's `input` shape. - * @see {@link OnlyHttpBearerAuthCommandOutput} for command's `response` shape. - * @see {@link WeatherClientResolvedConfig | config} for WeatherClient's `config` shape. - * - * @throws {@link WeatherServiceException} - *

Base exception class for all service exceptions from Weather service.

- * - */ -export class OnlyHttpBearerAuthCommand extends $Command - .classBuilder< - OnlyHttpBearerAuthCommandInput, - OnlyHttpBearerAuthCommandOutput, - WeatherClientResolvedConfig, - ServiceInputTypes, - ServiceOutputTypes - >() - .m(function (this: any, Command: any, cs: any, config: WeatherClientResolvedConfig, o: any) { - return [getSerdePlugin(config, this.serialize, this.deserialize)]; - }) - .s("Weather", "OnlyHttpBearerAuth", {}) - .n("WeatherClient", "OnlyHttpBearerAuthCommand") - .f(void 0, void 0) - .ser(() => { - throw new Error("No supported protocol was found"); - }) - .de(() => { - throw new Error("No supported protocol was found"); - }) - .build() {} diff --git a/private/weather-experimental-identity-and-auth/src/commands/OnlyHttpBearerAuthOptionalCommand.ts b/private/weather-experimental-identity-and-auth/src/commands/OnlyHttpBearerAuthOptionalCommand.ts deleted file mode 100644 index 324a2690c7da..000000000000 --- a/private/weather-experimental-identity-and-auth/src/commands/OnlyHttpBearerAuthOptionalCommand.ts +++ /dev/null @@ -1,71 +0,0 @@ -// smithy-typescript generated code -import { ServiceInputTypes, ServiceOutputTypes, WeatherClientResolvedConfig } from "../WeatherClient"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { MetadataBearer as __MetadataBearer } from "@smithy/types"; - -/** - * @public - */ -export type { __MetadataBearer }; -export { $Command }; -/** - * @public - * - * The input for {@link OnlyHttpBearerAuthOptionalCommand}. - */ -export interface OnlyHttpBearerAuthOptionalCommandInput {} -/** - * @public - * - * The output of {@link OnlyHttpBearerAuthOptionalCommand}. - */ -export interface OnlyHttpBearerAuthOptionalCommandOutput extends __MetadataBearer {} - -/** - * @public - * - * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { WeatherClient, OnlyHttpBearerAuthOptionalCommand } from "@aws-sdk/weather-experimental-identity-and-auth"; // ES Modules import - * // const { WeatherClient, OnlyHttpBearerAuthOptionalCommand } = require("@aws-sdk/weather-experimental-identity-and-auth"); // CommonJS import - * const client = new WeatherClient(config); - * const input = {}; - * const command = new OnlyHttpBearerAuthOptionalCommand(input); - * const response = await client.send(command); - * // {}; - * - * ``` - * - * @param OnlyHttpBearerAuthOptionalCommandInput - {@link OnlyHttpBearerAuthOptionalCommandInput} - * @returns {@link OnlyHttpBearerAuthOptionalCommandOutput} - * @see {@link OnlyHttpBearerAuthOptionalCommandInput} for command's `input` shape. - * @see {@link OnlyHttpBearerAuthOptionalCommandOutput} for command's `response` shape. - * @see {@link WeatherClientResolvedConfig | config} for WeatherClient's `config` shape. - * - * @throws {@link WeatherServiceException} - *

Base exception class for all service exceptions from Weather service.

- * - */ -export class OnlyHttpBearerAuthOptionalCommand extends $Command - .classBuilder< - OnlyHttpBearerAuthOptionalCommandInput, - OnlyHttpBearerAuthOptionalCommandOutput, - WeatherClientResolvedConfig, - ServiceInputTypes, - ServiceOutputTypes - >() - .m(function (this: any, Command: any, cs: any, config: WeatherClientResolvedConfig, o: any) { - return [getSerdePlugin(config, this.serialize, this.deserialize)]; - }) - .s("Weather", "OnlyHttpBearerAuthOptional", {}) - .n("WeatherClient", "OnlyHttpBearerAuthOptionalCommand") - .f(void 0, void 0) - .ser(() => { - throw new Error("No supported protocol was found"); - }) - .de(() => { - throw new Error("No supported protocol was found"); - }) - .build() {} diff --git a/private/weather-experimental-identity-and-auth/src/commands/OnlySigv4AuthCommand.ts b/private/weather-experimental-identity-and-auth/src/commands/OnlySigv4AuthCommand.ts deleted file mode 100644 index 76f57c67b0f8..000000000000 --- a/private/weather-experimental-identity-and-auth/src/commands/OnlySigv4AuthCommand.ts +++ /dev/null @@ -1,71 +0,0 @@ -// smithy-typescript generated code -import { ServiceInputTypes, ServiceOutputTypes, WeatherClientResolvedConfig } from "../WeatherClient"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { MetadataBearer as __MetadataBearer } from "@smithy/types"; - -/** - * @public - */ -export type { __MetadataBearer }; -export { $Command }; -/** - * @public - * - * The input for {@link OnlySigv4AuthCommand}. - */ -export interface OnlySigv4AuthCommandInput {} -/** - * @public - * - * The output of {@link OnlySigv4AuthCommand}. - */ -export interface OnlySigv4AuthCommandOutput extends __MetadataBearer {} - -/** - * @public - * - * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { WeatherClient, OnlySigv4AuthCommand } from "@aws-sdk/weather-experimental-identity-and-auth"; // ES Modules import - * // const { WeatherClient, OnlySigv4AuthCommand } = require("@aws-sdk/weather-experimental-identity-and-auth"); // CommonJS import - * const client = new WeatherClient(config); - * const input = {}; - * const command = new OnlySigv4AuthCommand(input); - * const response = await client.send(command); - * // {}; - * - * ``` - * - * @param OnlySigv4AuthCommandInput - {@link OnlySigv4AuthCommandInput} - * @returns {@link OnlySigv4AuthCommandOutput} - * @see {@link OnlySigv4AuthCommandInput} for command's `input` shape. - * @see {@link OnlySigv4AuthCommandOutput} for command's `response` shape. - * @see {@link WeatherClientResolvedConfig | config} for WeatherClient's `config` shape. - * - * @throws {@link WeatherServiceException} - *

Base exception class for all service exceptions from Weather service.

- * - */ -export class OnlySigv4AuthCommand extends $Command - .classBuilder< - OnlySigv4AuthCommandInput, - OnlySigv4AuthCommandOutput, - WeatherClientResolvedConfig, - ServiceInputTypes, - ServiceOutputTypes - >() - .m(function (this: any, Command: any, cs: any, config: WeatherClientResolvedConfig, o: any) { - return [getSerdePlugin(config, this.serialize, this.deserialize)]; - }) - .s("Weather", "OnlySigv4Auth", {}) - .n("WeatherClient", "OnlySigv4AuthCommand") - .f(void 0, void 0) - .ser(() => { - throw new Error("No supported protocol was found"); - }) - .de(() => { - throw new Error("No supported protocol was found"); - }) - .build() {} diff --git a/private/weather-experimental-identity-and-auth/src/commands/OnlySigv4AuthOptionalCommand.ts b/private/weather-experimental-identity-and-auth/src/commands/OnlySigv4AuthOptionalCommand.ts deleted file mode 100644 index d7531629a6fd..000000000000 --- a/private/weather-experimental-identity-and-auth/src/commands/OnlySigv4AuthOptionalCommand.ts +++ /dev/null @@ -1,71 +0,0 @@ -// smithy-typescript generated code -import { ServiceInputTypes, ServiceOutputTypes, WeatherClientResolvedConfig } from "../WeatherClient"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { MetadataBearer as __MetadataBearer } from "@smithy/types"; - -/** - * @public - */ -export type { __MetadataBearer }; -export { $Command }; -/** - * @public - * - * The input for {@link OnlySigv4AuthOptionalCommand}. - */ -export interface OnlySigv4AuthOptionalCommandInput {} -/** - * @public - * - * The output of {@link OnlySigv4AuthOptionalCommand}. - */ -export interface OnlySigv4AuthOptionalCommandOutput extends __MetadataBearer {} - -/** - * @public - * - * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { WeatherClient, OnlySigv4AuthOptionalCommand } from "@aws-sdk/weather-experimental-identity-and-auth"; // ES Modules import - * // const { WeatherClient, OnlySigv4AuthOptionalCommand } = require("@aws-sdk/weather-experimental-identity-and-auth"); // CommonJS import - * const client = new WeatherClient(config); - * const input = {}; - * const command = new OnlySigv4AuthOptionalCommand(input); - * const response = await client.send(command); - * // {}; - * - * ``` - * - * @param OnlySigv4AuthOptionalCommandInput - {@link OnlySigv4AuthOptionalCommandInput} - * @returns {@link OnlySigv4AuthOptionalCommandOutput} - * @see {@link OnlySigv4AuthOptionalCommandInput} for command's `input` shape. - * @see {@link OnlySigv4AuthOptionalCommandOutput} for command's `response` shape. - * @see {@link WeatherClientResolvedConfig | config} for WeatherClient's `config` shape. - * - * @throws {@link WeatherServiceException} - *

Base exception class for all service exceptions from Weather service.

- * - */ -export class OnlySigv4AuthOptionalCommand extends $Command - .classBuilder< - OnlySigv4AuthOptionalCommandInput, - OnlySigv4AuthOptionalCommandOutput, - WeatherClientResolvedConfig, - ServiceInputTypes, - ServiceOutputTypes - >() - .m(function (this: any, Command: any, cs: any, config: WeatherClientResolvedConfig, o: any) { - return [getSerdePlugin(config, this.serialize, this.deserialize)]; - }) - .s("Weather", "OnlySigv4AuthOptional", {}) - .n("WeatherClient", "OnlySigv4AuthOptionalCommand") - .f(void 0, void 0) - .ser(() => { - throw new Error("No supported protocol was found"); - }) - .de(() => { - throw new Error("No supported protocol was found"); - }) - .build() {} diff --git a/private/weather-experimental-identity-and-auth/src/commands/SameAsServiceCommand.ts b/private/weather-experimental-identity-and-auth/src/commands/SameAsServiceCommand.ts deleted file mode 100644 index 17480b4cad76..000000000000 --- a/private/weather-experimental-identity-and-auth/src/commands/SameAsServiceCommand.ts +++ /dev/null @@ -1,74 +0,0 @@ -// smithy-typescript generated code -import { ServiceInputTypes, ServiceOutputTypes, WeatherClientResolvedConfig } from "../WeatherClient"; -import { SameAsServiceOutput } from "../models/models_0"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { MetadataBearer as __MetadataBearer } from "@smithy/types"; - -/** - * @public - */ -export type { __MetadataBearer }; -export { $Command }; -/** - * @public - * - * The input for {@link SameAsServiceCommand}. - */ -export interface SameAsServiceCommandInput {} -/** - * @public - * - * The output of {@link SameAsServiceCommand}. - */ -export interface SameAsServiceCommandOutput extends SameAsServiceOutput, __MetadataBearer {} - -/** - * @public - * - * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { WeatherClient, SameAsServiceCommand } from "@aws-sdk/weather-experimental-identity-and-auth"; // ES Modules import - * // const { WeatherClient, SameAsServiceCommand } = require("@aws-sdk/weather-experimental-identity-and-auth"); // CommonJS import - * const client = new WeatherClient(config); - * const input = {}; - * const command = new SameAsServiceCommand(input); - * const response = await client.send(command); - * // { // SameAsServiceOutput - * // service: "STRING_VALUE", - * // }; - * - * ``` - * - * @param SameAsServiceCommandInput - {@link SameAsServiceCommandInput} - * @returns {@link SameAsServiceCommandOutput} - * @see {@link SameAsServiceCommandInput} for command's `input` shape. - * @see {@link SameAsServiceCommandOutput} for command's `response` shape. - * @see {@link WeatherClientResolvedConfig | config} for WeatherClient's `config` shape. - * - * @throws {@link WeatherServiceException} - *

Base exception class for all service exceptions from Weather service.

- * - */ -export class SameAsServiceCommand extends $Command - .classBuilder< - SameAsServiceCommandInput, - SameAsServiceCommandOutput, - WeatherClientResolvedConfig, - ServiceInputTypes, - ServiceOutputTypes - >() - .m(function (this: any, Command: any, cs: any, config: WeatherClientResolvedConfig, o: any) { - return [getSerdePlugin(config, this.serialize, this.deserialize)]; - }) - .s("Weather", "SameAsService", {}) - .n("WeatherClient", "SameAsServiceCommand") - .f(void 0, void 0) - .ser(() => { - throw new Error("No supported protocol was found"); - }) - .de(() => { - throw new Error("No supported protocol was found"); - }) - .build() {} diff --git a/private/weather-experimental-identity-and-auth/src/commands/index.ts b/private/weather-experimental-identity-and-auth/src/commands/index.ts deleted file mode 100644 index 1dce8e22732d..000000000000 --- a/private/weather-experimental-identity-and-auth/src/commands/index.ts +++ /dev/null @@ -1,12 +0,0 @@ -// smithy-typescript generated code -export * from "./OnlyCustomAuthCommand"; -export * from "./OnlyCustomAuthOptionalCommand"; -export * from "./OnlyHttpApiKeyAndBearerAuthCommand"; -export * from "./OnlyHttpApiKeyAndBearerAuthReversedCommand"; -export * from "./OnlyHttpApiKeyAuthCommand"; -export * from "./OnlyHttpApiKeyAuthOptionalCommand"; -export * from "./OnlyHttpBearerAuthCommand"; -export * from "./OnlyHttpBearerAuthOptionalCommand"; -export * from "./OnlySigv4AuthCommand"; -export * from "./OnlySigv4AuthOptionalCommand"; -export * from "./SameAsServiceCommand"; diff --git a/private/weather-experimental-identity-and-auth/src/extensionConfiguration.ts b/private/weather-experimental-identity-and-auth/src/extensionConfiguration.ts deleted file mode 100644 index 2751a1a9fe8a..000000000000 --- a/private/weather-experimental-identity-and-auth/src/extensionConfiguration.ts +++ /dev/null @@ -1,14 +0,0 @@ -// smithy-typescript generated code -import { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration"; -import { AwsRegionExtensionConfiguration } from "@aws-sdk/types"; -import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http"; -import { DefaultExtensionConfiguration } from "@smithy/types"; - -/** - * @internal - */ -export interface WeatherExtensionConfiguration - extends HttpHandlerExtensionConfiguration, - DefaultExtensionConfiguration, - AwsRegionExtensionConfiguration, - HttpAuthExtensionConfiguration {} diff --git a/private/weather-experimental-identity-and-auth/src/index.ts b/private/weather-experimental-identity-and-auth/src/index.ts deleted file mode 100644 index d85079927279..000000000000 --- a/private/weather-experimental-identity-and-auth/src/index.ts +++ /dev/null @@ -1,10 +0,0 @@ -// smithy-typescript generated code -/* eslint-disable */ -export * from "./WeatherClient"; -export * from "./Weather"; -export type { RuntimeExtension } from "./runtimeExtensions"; -export type { WeatherExtensionConfiguration } from "./extensionConfiguration"; -export * from "./commands"; -export * from "./models"; - -export { WeatherServiceException } from "./models/WeatherServiceException"; diff --git a/private/weather-experimental-identity-and-auth/src/models/WeatherServiceException.ts b/private/weather-experimental-identity-and-auth/src/models/WeatherServiceException.ts deleted file mode 100644 index 15983c892943..000000000000 --- a/private/weather-experimental-identity-and-auth/src/models/WeatherServiceException.ts +++ /dev/null @@ -1,24 +0,0 @@ -// smithy-typescript generated code -import { - ServiceException as __ServiceException, - ServiceExceptionOptions as __ServiceExceptionOptions, -} from "@smithy/smithy-client"; - -export type { __ServiceExceptionOptions }; - -export { __ServiceException }; - -/** - * @public - * - * Base exception class for all service exceptions from Weather service. - */ -export class WeatherServiceException extends __ServiceException { - /** - * @internal - */ - constructor(options: __ServiceExceptionOptions) { - super(options); - Object.setPrototypeOf(this, WeatherServiceException.prototype); - } -} diff --git a/private/weather-experimental-identity-and-auth/src/models/index.ts b/private/weather-experimental-identity-and-auth/src/models/index.ts deleted file mode 100644 index 9eaceb12865f..000000000000 --- a/private/weather-experimental-identity-and-auth/src/models/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -// smithy-typescript generated code -export * from "./models_0"; diff --git a/private/weather-experimental-identity-and-auth/src/models/models_0.ts b/private/weather-experimental-identity-and-auth/src/models/models_0.ts deleted file mode 100644 index bef00b63bf3d..000000000000 --- a/private/weather-experimental-identity-and-auth/src/models/models_0.ts +++ /dev/null @@ -1,7 +0,0 @@ -// smithy-typescript generated code -/** - * @public - */ -export interface SameAsServiceOutput { - service?: string; -} diff --git a/private/weather-experimental-identity-and-auth/src/runtimeConfig.browser.ts b/private/weather-experimental-identity-and-auth/src/runtimeConfig.browser.ts deleted file mode 100644 index 88fee0b6cf93..000000000000 --- a/private/weather-experimental-identity-and-auth/src/runtimeConfig.browser.ts +++ /dev/null @@ -1,38 +0,0 @@ -// smithy-typescript generated code -// @ts-ignore: package.json will be imported from dist folders -import packageInfo from "../package.json"; // eslint-disable-line - -import { Sha256 } from "@aws-crypto/sha256-browser"; -import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; -import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler"; -import { invalidProvider } from "@smithy/invalid-dependency"; -import { calculateBodyLength } from "@smithy/util-body-length-browser"; -import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/util-retry"; -import { WeatherClientConfig } from "./WeatherClient"; -import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared"; -import { loadConfigsForDefaultMode } from "@smithy/smithy-client"; -import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser"; - -/** - * @internal - */ -export const getRuntimeConfig = (config: WeatherClientConfig) => { - const defaultsMode = resolveDefaultsModeConfig(config); - const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); - const clientSharedValues = getSharedRuntimeConfig(config); - return { - ...clientSharedValues, - ...config, - runtime: "browser", - defaultsMode, - bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - defaultUserAgentProvider: - config?.defaultUserAgentProvider ?? defaultUserAgent({ clientVersion: packageInfo.version }), - maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS, - region: config?.region ?? invalidProvider("Region is missing"), - requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider), - retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE), - sha256: config?.sha256 ?? Sha256, - streamCollector: config?.streamCollector ?? streamCollector, - }; -}; diff --git a/private/weather-experimental-identity-and-auth/src/runtimeConfig.native.ts b/private/weather-experimental-identity-and-auth/src/runtimeConfig.native.ts deleted file mode 100644 index cd1d8c3b5b67..000000000000 --- a/private/weather-experimental-identity-and-auth/src/runtimeConfig.native.ts +++ /dev/null @@ -1,17 +0,0 @@ -// smithy-typescript generated code -import { Sha256 } from "@aws-crypto/sha256-js"; -import { WeatherClientConfig } from "./WeatherClient"; -import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser"; - -/** - * @internal - */ -export const getRuntimeConfig = (config: WeatherClientConfig) => { - const browserDefaults = getBrowserRuntimeConfig(config); - return { - ...browserDefaults, - ...config, - runtime: "react-native", - sha256: config?.sha256 ?? Sha256, - }; -}; diff --git a/private/weather-experimental-identity-and-auth/src/runtimeConfig.shared.ts b/private/weather-experimental-identity-and-auth/src/runtimeConfig.shared.ts deleted file mode 100644 index dbebc11ad757..000000000000 --- a/private/weather-experimental-identity-and-auth/src/runtimeConfig.shared.ts +++ /dev/null @@ -1,52 +0,0 @@ -// smithy-typescript generated code -import { defaultWeatherHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider"; -import { HttpApiKeyAuthSigner, HttpBearerAuthSigner, NoAuthSigner } from "@smithy/core"; -import { SigV4Signer } from "@smithy/experimental-identity-and-auth"; -import { NoOpLogger } from "@smithy/smithy-client"; -import { IdentityProviderConfig } from "@smithy/types"; -import { parseUrl } from "@smithy/url-parser"; -import { fromBase64, toBase64 } from "@smithy/util-base64"; -import { fromUtf8, toUtf8 } from "@smithy/util-utf8"; -import { WeatherClientConfig } from "./WeatherClient"; - -/** - * @internal - */ -export const getRuntimeConfig = (config: WeatherClientConfig) => { - return { - apiVersion: "2006-03-01", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - extensions: config?.extensions ?? [], - httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultWeatherHttpAuthSchemeProvider, - httpAuthSchemes: config?.httpAuthSchemes ?? [ - { - schemeId: "aws.auth#sigv4", - identityProvider: (ipc: IdentityProviderConfig) => ipc.getIdentityProvider("aws.auth#sigv4"), - signer: new SigV4Signer(), - }, - { - schemeId: "smithy.api#httpApiKeyAuth", - identityProvider: (ipc: IdentityProviderConfig) => ipc.getIdentityProvider("smithy.api#httpApiKeyAuth"), - signer: new HttpApiKeyAuthSigner(), - }, - { - schemeId: "smithy.api#httpBearerAuth", - identityProvider: (ipc: IdentityProviderConfig) => ipc.getIdentityProvider("smithy.api#httpBearerAuth"), - signer: new HttpBearerAuthSigner(), - }, - { - schemeId: "smithy.api#noAuth", - identityProvider: (ipc: IdentityProviderConfig) => - ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})), - signer: new NoAuthSigner(), - }, - ], - logger: config?.logger ?? new NoOpLogger(), - signingName: config?.signingName ?? "weather", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, - }; -}; diff --git a/private/weather-experimental-identity-and-auth/src/runtimeConfig.ts b/private/weather-experimental-identity-and-auth/src/runtimeConfig.ts deleted file mode 100644 index 561c3aab870c..000000000000 --- a/private/weather-experimental-identity-and-auth/src/runtimeConfig.ts +++ /dev/null @@ -1,47 +0,0 @@ -// smithy-typescript generated code -// @ts-ignore: package.json will be imported from dist folders -import packageInfo from "../package.json"; // eslint-disable-line - -import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; -import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@smithy/config-resolver"; -import { Hash } from "@smithy/hash-node"; -import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry"; -import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider"; -import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler"; -import { calculateBodyLength } from "@smithy/util-body-length-node"; -import { DEFAULT_RETRY_MODE } from "@smithy/util-retry"; -import { WeatherClientConfig } from "./WeatherClient"; -import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared"; -import { loadConfigsForDefaultMode } from "@smithy/smithy-client"; -import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node"; -import { emitWarningIfUnsupportedVersion } from "@smithy/smithy-client"; - -/** - * @internal - */ -export const getRuntimeConfig = (config: WeatherClientConfig) => { - emitWarningIfUnsupportedVersion(process.version); - const defaultsMode = resolveDefaultsModeConfig(config); - const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); - const clientSharedValues = getSharedRuntimeConfig(config); - return { - ...clientSharedValues, - ...config, - runtime: "node", - defaultsMode, - bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - defaultUserAgentProvider: - config?.defaultUserAgentProvider ?? defaultUserAgent({ clientVersion: packageInfo.version }), - maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), - region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), - requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider), - retryMode: - config?.retryMode ?? - loadNodeConfig({ - ...NODE_RETRY_MODE_CONFIG_OPTIONS, - default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE, - }), - sha256: config?.sha256 ?? Hash.bind(null, "sha256"), - streamCollector: config?.streamCollector ?? streamCollector, - }; -}; diff --git a/private/weather-experimental-identity-and-auth/src/runtimeExtensions.ts b/private/weather-experimental-identity-and-auth/src/runtimeExtensions.ts deleted file mode 100644 index 98a8f13a08ef..000000000000 --- a/private/weather-experimental-identity-and-auth/src/runtimeExtensions.ts +++ /dev/null @@ -1,47 +0,0 @@ -// smithy-typescript generated code -import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration"; -import { - getAwsRegionExtensionConfiguration, - resolveAwsRegionExtensionConfiguration, -} from "@aws-sdk/region-config-resolver"; -import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http"; -import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client"; -import { WeatherExtensionConfiguration } from "./extensionConfiguration"; - -/** - * @public - */ -export interface RuntimeExtension { - configure(extensionConfiguration: WeatherExtensionConfiguration): void; -} - -/** - * @public - */ -export interface RuntimeExtensionsConfig { - extensions: RuntimeExtension[]; -} - -const asPartial = >(t: T) => t; - -/** - * @internal - */ -export const resolveRuntimeExtensions = (runtimeConfig: any, extensions: RuntimeExtension[]) => { - const extensionConfiguration: WeatherExtensionConfiguration = { - ...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)), - ...asPartial(getDefaultExtensionConfiguration(runtimeConfig)), - ...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)), - ...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)), - }; - - extensions.forEach((extension) => extension.configure(extensionConfiguration)); - - return { - ...runtimeConfig, - ...resolveAwsRegionExtensionConfiguration(extensionConfiguration), - ...resolveDefaultRuntimeConfig(extensionConfiguration), - ...resolveHttpHandlerRuntimeConfig(extensionConfiguration), - ...resolveHttpAuthRuntimeConfig(extensionConfiguration), - }; -}; diff --git a/private/weather-experimental-identity-and-auth/tsconfig.cjs.json b/private/weather-experimental-identity-and-auth/tsconfig.cjs.json deleted file mode 100644 index 3567d85ba846..000000000000 --- a/private/weather-experimental-identity-and-auth/tsconfig.cjs.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "./tsconfig", - "compilerOptions": { - "outDir": "dist-cjs" - } -} diff --git a/private/weather-experimental-identity-and-auth/tsconfig.es.json b/private/weather-experimental-identity-and-auth/tsconfig.es.json deleted file mode 100644 index 809f57bde65e..000000000000 --- a/private/weather-experimental-identity-and-auth/tsconfig.es.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "./tsconfig", - "compilerOptions": { - "lib": ["dom"], - "module": "esnext", - "outDir": "dist-es" - } -} diff --git a/private/weather-experimental-identity-and-auth/tsconfig.json b/private/weather-experimental-identity-and-auth/tsconfig.json deleted file mode 100644 index e7f5ec56b742..000000000000 --- a/private/weather-experimental-identity-and-auth/tsconfig.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "extends": "@tsconfig/node16/tsconfig.json", - "compilerOptions": { - "downlevelIteration": true, - "importHelpers": true, - "incremental": true, - "removeComments": true, - "resolveJsonModule": true, - "rootDir": "src", - "useUnknownInCatchVariables": false - }, - "exclude": ["test/"] -} diff --git a/private/weather-experimental-identity-and-auth/tsconfig.types.json b/private/weather-experimental-identity-and-auth/tsconfig.types.json deleted file mode 100644 index 4c3dfa7b3d25..000000000000 --- a/private/weather-experimental-identity-and-auth/tsconfig.types.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "./tsconfig", - "compilerOptions": { - "removeComments": false, - "declaration": true, - "declarationDir": "dist-types", - "emitDeclarationOnly": true - }, - "exclude": ["test/**/*", "dist-types/**/*"] -} diff --git a/private/weather-legacy-auth/package.json b/private/weather-legacy-auth/package.json index 7d92042ed733..938f100372d2 100644 --- a/private/weather-legacy-auth/package.json +++ b/private/weather-legacy-auth/package.json @@ -32,28 +32,28 @@ "@aws-sdk/types": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/private/weather/package.json b/private/weather/package.json index 01861fdb640f..bf89ae2c03cc 100644 --- a/private/weather/package.json +++ b/private/weather/package.json @@ -31,29 +31,29 @@ "@aws-sdk/types": "*", "@aws-sdk/util-user-agent-browser": "*", "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^3.0.5", - "@smithy/core": "^2.4.0", - "@smithy/experimental-identity-and-auth": "^0.3.17", - "@smithy/fetch-http-handler": "^3.2.4", - "@smithy/hash-node": "^3.0.3", - "@smithy/invalid-dependency": "^3.0.3", - "@smithy/middleware-content-length": "^3.0.5", - "@smithy/middleware-retry": "^3.0.15", - "@smithy/middleware-serde": "^3.0.3", - "@smithy/middleware-stack": "^3.0.3", - "@smithy/node-config-provider": "^3.1.4", - "@smithy/node-http-handler": "^3.1.4", - "@smithy/protocol-http": "^4.1.0", - "@smithy/smithy-client": "^3.2.0", - "@smithy/types": "^3.3.0", - "@smithy/url-parser": "^3.0.3", + "@smithy/config-resolver": "^3.0.6", + "@smithy/core": "^2.4.1", + "@smithy/experimental-identity-and-auth": "^0.3.18", + "@smithy/fetch-http-handler": "^3.2.5", + "@smithy/hash-node": "^3.0.4", + "@smithy/invalid-dependency": "^3.0.4", + "@smithy/middleware-content-length": "^3.0.6", + "@smithy/middleware-retry": "^3.0.16", + "@smithy/middleware-serde": "^3.0.4", + "@smithy/middleware-stack": "^3.0.4", + "@smithy/node-config-provider": "^3.1.5", + "@smithy/node-http-handler": "^3.2.0", + "@smithy/protocol-http": "^4.1.1", + "@smithy/smithy-client": "^3.3.0", + "@smithy/types": "^3.4.0", + "@smithy/url-parser": "^3.0.4", "@smithy/util-base64": "^3.0.0", "@smithy/util-body-length-browser": "^3.0.0", "@smithy/util-body-length-node": "^3.0.0", - "@smithy/util-defaults-mode-browser": "^3.0.15", - "@smithy/util-defaults-mode-node": "^3.0.15", - "@smithy/util-middleware": "^3.0.3", - "@smithy/util-retry": "^3.0.3", + "@smithy/util-defaults-mode-browser": "^3.0.16", + "@smithy/util-defaults-mode-node": "^3.0.16", + "@smithy/util-middleware": "^3.0.4", + "@smithy/util-retry": "^3.0.4", "@smithy/util-utf8": "^3.0.0", "tslib": "^2.6.2", "uuid": "^9.0.1" diff --git a/scripts/generate-clients/config.js b/scripts/generate-clients/config.js index 9de59a503fca..42b0db7e3338 100644 --- a/scripts/generate-clients/config.js +++ b/scripts/generate-clients/config.js @@ -1,7 +1,7 @@ // Update this commit when taking up new changes from smithy-typescript. module.exports = { // Use full commit hash as we explicitly fetch it. - SMITHY_TS_COMMIT: "a2bb933fc4dea318cdda9db998e1606aefb77c51", + SMITHY_TS_COMMIT: "f95b9c3eeda338ff4e69c90e786b852657ceb199", }; if (module.exports.SMITHY_TS_COMMIT.length < 40) { diff --git a/yarn.lock b/yarn.lock index cf34404fe6f7..d7ba49b5c5c3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2750,12 +2750,12 @@ dependencies: "@sinonjs/commons" "^1.7.0" -"@smithy/abort-controller@^3.1.1": - version "3.1.1" - resolved "https://registry.npmjs.org/@smithy/abort-controller/-/abort-controller-3.1.1.tgz" - integrity sha512-MBJBiidoe+0cTFhyxT8g+9g7CeVccLM0IOKKUMCNQ1CNMJ/eIfoo0RTfVrXOONEI1UCN1W+zkiHSbzUNE9dZtQ== +"@smithy/abort-controller@^3.1.2": + version "3.1.2" + resolved "https://registry.yarnpkg.com/@smithy/abort-controller/-/abort-controller-3.1.2.tgz#95ac6b07480d0d2afbcface3f0f1ddc3ae6373d7" + integrity sha512-b5g+PNujlfqIib9BjkNB108NyO5aZM/RXjfOCXRCqXQ1oPnIkfvdORrztbGgCZdPe/BN/MKDlrGA7PafKPM2jw== dependencies: - "@smithy/types" "^3.3.0" + "@smithy/types" "^3.4.0" tslib "^2.6.2" "@smithy/chunked-blob-reader-native@^3.0.0": @@ -2773,149 +2773,149 @@ dependencies: tslib "^2.6.2" -"@smithy/config-resolver@^3.0.5": - version "3.0.5" - resolved "https://registry.npmjs.org/@smithy/config-resolver/-/config-resolver-3.0.5.tgz" - integrity sha512-SkW5LxfkSI1bUC74OtfBbdz+grQXYiPYolyu8VfpLIjEoN/sHVBlLeGXMQ1vX4ejkgfv6sxVbQJ32yF2cl1veA== +"@smithy/config-resolver@^3.0.6": + version "3.0.6" + resolved "https://registry.yarnpkg.com/@smithy/config-resolver/-/config-resolver-3.0.6.tgz#5906cb8fcbadb784930c55a578589aaa6650a52f" + integrity sha512-j7HuVNoRd8EhcFp0MzcUb4fG40C7BcyshH+fAd3Jhd8bINNFvEQYBrZoS/SK6Pun9WPlfoI8uuU2SMz8DsEGlA== dependencies: - "@smithy/node-config-provider" "^3.1.4" - "@smithy/types" "^3.3.0" + "@smithy/node-config-provider" "^3.1.5" + "@smithy/types" "^3.4.0" "@smithy/util-config-provider" "^3.0.0" - "@smithy/util-middleware" "^3.0.3" + "@smithy/util-middleware" "^3.0.4" tslib "^2.6.2" -"@smithy/core@^2.4.0": - version "2.4.0" - resolved "https://registry.yarnpkg.com/@smithy/core/-/core-2.4.0.tgz#56e917b6ab2dffeba681a05395c40a757d681147" - integrity sha512-cHXq+FneIF/KJbt4q4pjN186+Jf4ZB0ZOqEaZMBhT79srEyGDDBV31NqBRBjazz8ppQ1bJbDJMY9ba5wKFV36w== - dependencies: - "@smithy/middleware-endpoint" "^3.1.0" - "@smithy/middleware-retry" "^3.0.15" - "@smithy/middleware-serde" "^3.0.3" - "@smithy/protocol-http" "^4.1.0" - "@smithy/smithy-client" "^3.2.0" - "@smithy/types" "^3.3.0" +"@smithy/core@^2.4.1": + version "2.4.1" + resolved "https://registry.yarnpkg.com/@smithy/core/-/core-2.4.1.tgz#6694d79ba6e4a185a0baa731ba6584420291521e" + integrity sha512-7cts7/Oni7aCHebHGiBeWoz5z+vmH+Vx2Z/UW3XtXMslcxI3PEwBZxNinepwZjixS3n12fPc247PHWmjU7ndsQ== + dependencies: + "@smithy/middleware-endpoint" "^3.1.1" + "@smithy/middleware-retry" "^3.0.16" + "@smithy/middleware-serde" "^3.0.4" + "@smithy/protocol-http" "^4.1.1" + "@smithy/smithy-client" "^3.3.0" + "@smithy/types" "^3.4.0" "@smithy/util-body-length-browser" "^3.0.0" - "@smithy/util-middleware" "^3.0.3" + "@smithy/util-middleware" "^3.0.4" "@smithy/util-utf8" "^3.0.0" tslib "^2.6.2" -"@smithy/credential-provider-imds@^3.2.0": - version "3.2.0" - resolved "https://registry.npmjs.org/@smithy/credential-provider-imds/-/credential-provider-imds-3.2.0.tgz" - integrity sha512-0SCIzgd8LYZ9EJxUjLXBmEKSZR/P/w6l7Rz/pab9culE/RWuqelAKGJvn5qUOl8BgX8Yj5HWM50A5hiB/RzsgA== +"@smithy/credential-provider-imds@^3.2.1": + version "3.2.1" + resolved "https://registry.yarnpkg.com/@smithy/credential-provider-imds/-/credential-provider-imds-3.2.1.tgz#f5871549d01db304c3d5c52dd6591652ebfdfa9e" + integrity sha512-4z/oTWpRF2TqQI3aCM89/PWu3kim58XU4kOCTtuTJnoaS4KT95cPWMxbQfTN2vzcOe96SOKO8QouQW/+ESB1fQ== dependencies: - "@smithy/node-config-provider" "^3.1.4" - "@smithy/property-provider" "^3.1.3" - "@smithy/types" "^3.3.0" - "@smithy/url-parser" "^3.0.3" + "@smithy/node-config-provider" "^3.1.5" + "@smithy/property-provider" "^3.1.4" + "@smithy/types" "^3.4.0" + "@smithy/url-parser" "^3.0.4" tslib "^2.6.2" -"@smithy/eventstream-codec@^3.1.2": - version "3.1.2" - resolved "https://registry.npmjs.org/@smithy/eventstream-codec/-/eventstream-codec-3.1.2.tgz" - integrity sha512-0mBcu49JWt4MXhrhRAlxASNy0IjDRFU+aWNDRal9OtUJvJNiwDuyKMUONSOjLjSCeGwZaE0wOErdqULer8r7yw== +"@smithy/eventstream-codec@^3.1.3": + version "3.1.3" + resolved "https://registry.yarnpkg.com/@smithy/eventstream-codec/-/eventstream-codec-3.1.3.tgz#a1ac71108c349b6f156ff91dbbf38b4b20d95aee" + integrity sha512-mKBrmhg6Zd3j07G9dkKTGmrU7pdJGTNz8LbZtIOR3QoodS5yDNqEqoXU4Eg38snZcnCAh7NPBsw5ndxtJPLiCg== dependencies: "@aws-crypto/crc32" "5.2.0" - "@smithy/types" "^3.3.0" + "@smithy/types" "^3.4.0" "@smithy/util-hex-encoding" "^3.0.0" tslib "^2.6.2" -"@smithy/eventstream-serde-browser@^3.0.6": - version "3.0.6" - resolved "https://registry.yarnpkg.com/@smithy/eventstream-serde-browser/-/eventstream-serde-browser-3.0.6.tgz#a4ab4f7cfbd137bcaa54c375276f9214e568fd8f" - integrity sha512-2hM54UWQUOrki4BtsUI1WzmD13/SeaqT/AB3EUJKbcver/WgKNaiJ5y5F5XXuVe6UekffVzuUDrBZVAA3AWRpQ== +"@smithy/eventstream-serde-browser@^3.0.7": + version "3.0.7" + resolved "https://registry.yarnpkg.com/@smithy/eventstream-serde-browser/-/eventstream-serde-browser-3.0.7.tgz#0448ada47cf7e99abdfefe980090ea2b8abbff8d" + integrity sha512-UC4RQqyM8B0g5cX/xmWtsNgSBmZ13HrzCqoe5Ulcz6R462/egbIdfTXnayik7jkjvwOrCPL1N11Q9S+n68jPLA== dependencies: - "@smithy/eventstream-serde-universal" "^3.0.5" - "@smithy/types" "^3.3.0" + "@smithy/eventstream-serde-universal" "^3.0.6" + "@smithy/types" "^3.4.0" tslib "^2.6.2" -"@smithy/eventstream-serde-config-resolver@^3.0.3": - version "3.0.3" - resolved "https://registry.npmjs.org/@smithy/eventstream-serde-config-resolver/-/eventstream-serde-config-resolver-3.0.3.tgz" - integrity sha512-NVTYjOuYpGfrN/VbRQgn31x73KDLfCXCsFdad8DiIc3IcdxL+dYA9zEQPyOP7Fy2QL8CPy2WE4WCUD+ZsLNfaQ== +"@smithy/eventstream-serde-config-resolver@^3.0.4": + version "3.0.4" + resolved "https://registry.yarnpkg.com/@smithy/eventstream-serde-config-resolver/-/eventstream-serde-config-resolver-3.0.4.tgz#1ef67a2f78da7b30ec728a8863933fa2d088330b" + integrity sha512-saIs5rtAMpifqL7u7nc5YeE/6gkenzXpSz5NwEyhIesRWtHK+zEuYn9KY8SArZEbPSHyGxvvgKk1z86VzfUGHw== dependencies: - "@smithy/types" "^3.3.0" + "@smithy/types" "^3.4.0" tslib "^2.6.2" -"@smithy/eventstream-serde-node@^3.0.5": - version "3.0.5" - resolved "https://registry.yarnpkg.com/@smithy/eventstream-serde-node/-/eventstream-serde-node-3.0.5.tgz#2bbf5c9312a28f23bc55ae284efa9499f8b8f982" - integrity sha512-+upXvnHNyZP095s11jF5dhGw/Ihzqwl5G+/KtMnoQOpdfC3B5HYCcDVG9EmgkhJMXJlM64PyN5gjJl0uXFQehQ== +"@smithy/eventstream-serde-node@^3.0.6": + version "3.0.6" + resolved "https://registry.yarnpkg.com/@smithy/eventstream-serde-node/-/eventstream-serde-node-3.0.6.tgz#d04c31f8fe4aab29f2edbff8ea6519fe50405e43" + integrity sha512-gRKGBdZah3EjZZgWcsTpShq4cZ4Q4JTTe1OPob+jrftmbYj6CvpeydZbH0roO5SvBG8SI3aBZIet9TGN3zUxUw== dependencies: - "@smithy/eventstream-serde-universal" "^3.0.5" - "@smithy/types" "^3.3.0" + "@smithy/eventstream-serde-universal" "^3.0.6" + "@smithy/types" "^3.4.0" tslib "^2.6.2" -"@smithy/eventstream-serde-universal@^3.0.5": - version "3.0.5" - resolved "https://registry.yarnpkg.com/@smithy/eventstream-serde-universal/-/eventstream-serde-universal-3.0.5.tgz#e1cc2f71f4d174a03e00ce4b563395a81dd17bec" - integrity sha512-5u/nXbyoh1s4QxrvNre9V6vfyoLWuiVvvd5TlZjGThIikc3G+uNiG9uOTCWweSRjv1asdDIWK7nOmN7le4RYHQ== +"@smithy/eventstream-serde-universal@^3.0.6": + version "3.0.6" + resolved "https://registry.yarnpkg.com/@smithy/eventstream-serde-universal/-/eventstream-serde-universal-3.0.6.tgz#d233d08bf4b27d9bf4b1e727d866694470966797" + integrity sha512-1jvXd4sFG+zKaL6WqrJXpL6E+oAMafuM5GPd4qF0+ccenZTX3DZugoCCjlooQyTh+TZho2FpdVYUf5J/bB/j6Q== dependencies: - "@smithy/eventstream-codec" "^3.1.2" - "@smithy/types" "^3.3.0" + "@smithy/eventstream-codec" "^3.1.3" + "@smithy/types" "^3.4.0" tslib "^2.6.2" -"@smithy/experimental-identity-and-auth@^0.3.17": - version "0.3.17" - resolved "https://registry.yarnpkg.com/@smithy/experimental-identity-and-auth/-/experimental-identity-and-auth-0.3.17.tgz#4bd834e021994c951b32a90434712f7edf9a152c" - integrity sha512-ToXLK9TNU1hsV46Q31f7GXZu9jD7+pdRgvobqRz9C8AtyCj7+wCLxjHanaUQ0YHffw9OhNkifvSm/jAylB76tA== - dependencies: - "@smithy/middleware-endpoint" "^3.1.0" - "@smithy/middleware-retry" "^3.0.15" - "@smithy/middleware-serde" "^3.0.3" - "@smithy/protocol-http" "^4.1.0" - "@smithy/signature-v4" "^4.1.0" - "@smithy/types" "^3.3.0" - "@smithy/util-middleware" "^3.0.3" +"@smithy/experimental-identity-and-auth@^0.3.18": + version "0.3.18" + resolved "https://registry.yarnpkg.com/@smithy/experimental-identity-and-auth/-/experimental-identity-and-auth-0.3.18.tgz#579d842de4ab0866c3a8e4590e8c4ddcde2dd8fc" + integrity sha512-JGEyB++GxwPBexXFeI0liwWUaeBkVm6dhv+h5+H411vVykc62/n1lVTH5TkO8PfwJq/qHq3A+ync50xn3jMi8Q== + dependencies: + "@smithy/middleware-endpoint" "^3.1.1" + "@smithy/middleware-retry" "^3.0.16" + "@smithy/middleware-serde" "^3.0.4" + "@smithy/protocol-http" "^4.1.1" + "@smithy/signature-v4" "^4.1.1" + "@smithy/types" "^3.4.0" + "@smithy/util-middleware" "^3.0.4" tslib "^2.6.2" -"@smithy/fetch-http-handler@^3.2.4": - version "3.2.4" - resolved "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-3.2.4.tgz" - integrity sha512-kBprh5Gs5h7ug4nBWZi1FZthdqSM+T7zMmsZxx0IBvWUn7dK3diz2SHn7Bs4dQGFDk8plDv375gzenDoNwrXjg== +"@smithy/fetch-http-handler@^3.2.5": + version "3.2.5" + resolved "https://registry.yarnpkg.com/@smithy/fetch-http-handler/-/fetch-http-handler-3.2.5.tgz#c9a6c6c35895ffdfd98b992ecebb1344418d1932" + integrity sha512-DjRtGmK8pKQMIo9+JlAKUt14Z448bg8nAN04yKIvlrrpmpRSG57s5d2Y83npks1r4gPtTRNbAFdQCoj9l3P2KQ== dependencies: - "@smithy/protocol-http" "^4.1.0" - "@smithy/querystring-builder" "^3.0.3" - "@smithy/types" "^3.3.0" + "@smithy/protocol-http" "^4.1.1" + "@smithy/querystring-builder" "^3.0.4" + "@smithy/types" "^3.4.0" "@smithy/util-base64" "^3.0.0" tslib "^2.6.2" -"@smithy/hash-blob-browser@^3.1.2": - version "3.1.2" - resolved "https://registry.npmjs.org/@smithy/hash-blob-browser/-/hash-blob-browser-3.1.2.tgz" - integrity sha512-hAbfqN2UbISltakCC2TP0kx4LqXBttEv2MqSPE98gVuDFMf05lU+TpC41QtqGP3Ff5A3GwZMPfKnEy0VmEUpmg== +"@smithy/hash-blob-browser@^3.1.3": + version "3.1.3" + resolved "https://registry.yarnpkg.com/@smithy/hash-blob-browser/-/hash-blob-browser-3.1.3.tgz#6649bf55590fc0489e0d91d310017b8359c0d7ae" + integrity sha512-im9wAU9mANWW0OP0YGqwX3lw0nXG0ngyIcKQ8V/MUz1r7A6uO2lpPqKmAsH4VPGNLP2JPUhj4aW/m5UKkxX/IA== dependencies: "@smithy/chunked-blob-reader" "^3.0.0" "@smithy/chunked-blob-reader-native" "^3.0.0" - "@smithy/types" "^3.3.0" + "@smithy/types" "^3.4.0" tslib "^2.6.2" -"@smithy/hash-node@^3.0.3": - version "3.0.3" - resolved "https://registry.npmjs.org/@smithy/hash-node/-/hash-node-3.0.3.tgz" - integrity sha512-2ctBXpPMG+B3BtWSGNnKELJ7SH9e4TNefJS0cd2eSkOOROeBnnVBnAy9LtJ8tY4vUEoe55N4CNPxzbWvR39iBw== +"@smithy/hash-node@^3.0.4": + version "3.0.4" + resolved "https://registry.yarnpkg.com/@smithy/hash-node/-/hash-node-3.0.4.tgz#4d1770a73698292997b9ff27435ed4d51a39e758" + integrity sha512-6FgTVqEfCr9z/7+Em8BwSkJKA2y3krf1em134x3yr2NHWVCo2KYI8tcA53cjeO47y41jwF84ntsEE0Pe6pNKlg== dependencies: - "@smithy/types" "^3.3.0" + "@smithy/types" "^3.4.0" "@smithy/util-buffer-from" "^3.0.0" "@smithy/util-utf8" "^3.0.0" tslib "^2.6.2" -"@smithy/hash-stream-node@^3.1.2": - version "3.1.2" - resolved "https://registry.npmjs.org/@smithy/hash-stream-node/-/hash-stream-node-3.1.2.tgz" - integrity sha512-PBgDMeEdDzi6JxKwbfBtwQG9eT9cVwsf0dZzLXoJF4sHKHs5HEo/3lJWpn6jibfJwT34I1EBXpBnZE8AxAft6g== +"@smithy/hash-stream-node@^3.1.3": + version "3.1.3" + resolved "https://registry.yarnpkg.com/@smithy/hash-stream-node/-/hash-stream-node-3.1.3.tgz#dfd3efb60a2bb9fe6c3131dd73cb8d0c5ecc1b4b" + integrity sha512-Tz/eTlo1ffqYn+19VaMjDDbmEWqYe4DW1PAWaS8HvgRdO6/k9hxNPt8Wv5laXoilxE20YzKugiHvxHyO6J7kGA== dependencies: - "@smithy/types" "^3.3.0" + "@smithy/types" "^3.4.0" "@smithy/util-utf8" "^3.0.0" tslib "^2.6.2" -"@smithy/invalid-dependency@^3.0.3": - version "3.0.3" - resolved "https://registry.npmjs.org/@smithy/invalid-dependency/-/invalid-dependency-3.0.3.tgz" - integrity sha512-ID1eL/zpDULmHJbflb864k72/SNOZCADRc9i7Exq3RUNJw6raWUSlFEQ+3PX3EYs++bTxZB2dE9mEHTQLv61tw== +"@smithy/invalid-dependency@^3.0.4": + version "3.0.4" + resolved "https://registry.yarnpkg.com/@smithy/invalid-dependency/-/invalid-dependency-3.0.4.tgz#aabb949b6aa15e38d8054b2397c143ef32efe14a" + integrity sha512-MJBUrojC4SEXi9aJcnNOE3oNAuYNphgCGFXscaCj2TA/59BTcXhzHACP8jnnEU3n4yir/NSLKzxqez0T4x4tjA== dependencies: - "@smithy/types" "^3.3.0" + "@smithy/types" "^3.4.0" tslib "^2.6.2" "@smithy/is-array-buffer@^2.2.0": @@ -2932,120 +2932,120 @@ dependencies: tslib "^2.6.2" -"@smithy/md5-js@^3.0.3": - version "3.0.3" - resolved "https://registry.npmjs.org/@smithy/md5-js/-/md5-js-3.0.3.tgz" - integrity sha512-O/SAkGVwpWmelpj/8yDtsaVe6sINHLB1q8YE/+ZQbDxIw3SRLbTZuRaI10K12sVoENdnHqzPp5i3/H+BcZ3m3Q== +"@smithy/md5-js@^3.0.4": + version "3.0.4" + resolved "https://registry.yarnpkg.com/@smithy/md5-js/-/md5-js-3.0.4.tgz#6a8d40cf9e51c65fc6074aed977acd23ff4f6589" + integrity sha512-qSlqr/+hybufIJgxQW2gYzGE6ywfOxkjjJVojbbmv4MtxfdDFfzRew+NOIOXcYgazW0f8OYBTIKsmNsjxpvnng== dependencies: - "@smithy/types" "^3.3.0" + "@smithy/types" "^3.4.0" "@smithy/util-utf8" "^3.0.0" tslib "^2.6.2" -"@smithy/middleware-apply-body-checksum@^3.0.5": - version "3.0.5" - resolved "https://registry.npmjs.org/@smithy/middleware-apply-body-checksum/-/middleware-apply-body-checksum-3.0.5.tgz" - integrity sha512-Ba6UFhfhmuefo3B98Zke85JzyDymb28MpQ0nfsZX6U6fHF+QmUosxR7s11/yh3lKb9f55Xvdd5NwIwvDep3enA== +"@smithy/middleware-apply-body-checksum@^3.0.6": + version "3.0.6" + resolved "https://registry.yarnpkg.com/@smithy/middleware-apply-body-checksum/-/middleware-apply-body-checksum-3.0.6.tgz#d3844b7a8cf36bebce674eb51e5c74fe81576b8d" + integrity sha512-Hku0/nm03eB+Tl35TeK4zttZME1Ewousu0GMnZNkJjW1mTcoOBnxLMeRhZB2aG1I+IYp73YAb+VQmCx77Vxvsw== dependencies: "@smithy/is-array-buffer" "^3.0.0" - "@smithy/protocol-http" "^4.1.0" - "@smithy/types" "^3.3.0" + "@smithy/protocol-http" "^4.1.1" + "@smithy/types" "^3.4.0" tslib "^2.6.2" -"@smithy/middleware-compression@^3.0.7": - version "3.0.7" - resolved "https://registry.npmjs.org/@smithy/middleware-compression/-/middleware-compression-3.0.7.tgz" - integrity sha512-ide8RSj0HWHq8uGryx1PuhI/0p+xgrrG+atDBgmv1ScIVIBrH7hqk2cfXyZ3+zQYeD2z95iDn75U1BHwlSwhag== +"@smithy/middleware-compression@^3.0.8": + version "3.0.8" + resolved "https://registry.yarnpkg.com/@smithy/middleware-compression/-/middleware-compression-3.0.8.tgz#f6ef00167d545175a57978dfd234ef377ba497e2" + integrity sha512-qY3ALlU0YT+ewBniwjQHwYApIK3fQWiNrLtcnw5Wk4spYZJQlDl0Z9SOvL+GKX4mKOlbR/pWG/gKfpGqwHW65Q== dependencies: "@smithy/is-array-buffer" "^3.0.0" - "@smithy/node-config-provider" "^3.1.4" - "@smithy/protocol-http" "^4.1.0" - "@smithy/types" "^3.3.0" + "@smithy/node-config-provider" "^3.1.5" + "@smithy/protocol-http" "^4.1.1" + "@smithy/types" "^3.4.0" "@smithy/util-config-provider" "^3.0.0" - "@smithy/util-middleware" "^3.0.3" + "@smithy/util-middleware" "^3.0.4" "@smithy/util-utf8" "^3.0.0" fflate "0.8.1" tslib "^2.6.2" -"@smithy/middleware-content-length@^3.0.5": - version "3.0.5" - resolved "https://registry.npmjs.org/@smithy/middleware-content-length/-/middleware-content-length-3.0.5.tgz" - integrity sha512-ILEzC2eyxx6ncej3zZSwMpB5RJ0zuqH7eMptxC4KN3f+v9bqT8ohssKbhNR78k/2tWW+KS5Spw+tbPF4Ejyqvw== +"@smithy/middleware-content-length@^3.0.6": + version "3.0.6" + resolved "https://registry.yarnpkg.com/@smithy/middleware-content-length/-/middleware-content-length-3.0.6.tgz#4837dafcfc085f1b9523d0784d05b87b569ad4ce" + integrity sha512-AFyHCfe8rumkJkz+hCOVJmBagNBj05KypyDwDElA4TgMSA4eYDZRjVePFZuyABrJZFDc7uVj3dpFIDCEhf59SA== dependencies: - "@smithy/protocol-http" "^4.1.0" - "@smithy/types" "^3.3.0" + "@smithy/protocol-http" "^4.1.1" + "@smithy/types" "^3.4.0" tslib "^2.6.2" -"@smithy/middleware-endpoint@^3.1.0": - version "3.1.0" - resolved "https://registry.npmjs.org/@smithy/middleware-endpoint/-/middleware-endpoint-3.1.0.tgz" - integrity sha512-5y5aiKCEwg9TDPB4yFE7H6tYvGFf1OJHNczeY10/EFF8Ir8jZbNntQJxMWNfeQjC1mxPsaQ6mR9cvQbf+0YeMw== - dependencies: - "@smithy/middleware-serde" "^3.0.3" - "@smithy/node-config-provider" "^3.1.4" - "@smithy/shared-ini-file-loader" "^3.1.4" - "@smithy/types" "^3.3.0" - "@smithy/url-parser" "^3.0.3" - "@smithy/util-middleware" "^3.0.3" +"@smithy/middleware-endpoint@^3.1.1": + version "3.1.1" + resolved "https://registry.yarnpkg.com/@smithy/middleware-endpoint/-/middleware-endpoint-3.1.1.tgz#d718719e45e8f7087cf0d9bbfff5fc6364c5fde0" + integrity sha512-Irv+soW8NKluAtFSEsF8O3iGyLxa5oOevJb/e1yNacV9H7JP/yHyJuKST5YY2ORS1+W34VR8EuUrOF+K29Pl4g== + dependencies: + "@smithy/middleware-serde" "^3.0.4" + "@smithy/node-config-provider" "^3.1.5" + "@smithy/shared-ini-file-loader" "^3.1.5" + "@smithy/types" "^3.4.0" + "@smithy/url-parser" "^3.0.4" + "@smithy/util-middleware" "^3.0.4" tslib "^2.6.2" -"@smithy/middleware-retry@^3.0.15": - version "3.0.15" - resolved "https://registry.yarnpkg.com/@smithy/middleware-retry/-/middleware-retry-3.0.15.tgz#9b96900cde70d8aafd267e13f4e79241be90e0c7" - integrity sha512-iTMedvNt1ApdvkaoE8aSDuwaoc+BhvHqttbA/FO4Ty+y/S5hW6Ci/CTScG7vam4RYJWZxdTElc3MEfHRVH6cgQ== - dependencies: - "@smithy/node-config-provider" "^3.1.4" - "@smithy/protocol-http" "^4.1.0" - "@smithy/service-error-classification" "^3.0.3" - "@smithy/smithy-client" "^3.2.0" - "@smithy/types" "^3.3.0" - "@smithy/util-middleware" "^3.0.3" - "@smithy/util-retry" "^3.0.3" +"@smithy/middleware-retry@^3.0.16": + version "3.0.16" + resolved "https://registry.yarnpkg.com/@smithy/middleware-retry/-/middleware-retry-3.0.16.tgz#aca6099a2e73c9be0c7a49eccbca5d1d73eaadf3" + integrity sha512-08kI36p1yB4CWO3Qi+UQxjzobt8iQJpnruF0K5BkbZmA/N/sJ51A1JJGJ36GgcbFyPfWw2FU48S5ZoqXt0h0jw== + dependencies: + "@smithy/node-config-provider" "^3.1.5" + "@smithy/protocol-http" "^4.1.1" + "@smithy/service-error-classification" "^3.0.4" + "@smithy/smithy-client" "^3.3.0" + "@smithy/types" "^3.4.0" + "@smithy/util-middleware" "^3.0.4" + "@smithy/util-retry" "^3.0.4" tslib "^2.6.2" uuid "^9.0.1" -"@smithy/middleware-serde@^3.0.3": - version "3.0.3" - resolved "https://registry.npmjs.org/@smithy/middleware-serde/-/middleware-serde-3.0.3.tgz" - integrity sha512-puUbyJQBcg9eSErFXjKNiGILJGtiqmuuNKEYNYfUD57fUl4i9+mfmThtQhvFXU0hCVG0iEJhvQUipUf+/SsFdA== +"@smithy/middleware-serde@^3.0.4": + version "3.0.4" + resolved "https://registry.yarnpkg.com/@smithy/middleware-serde/-/middleware-serde-3.0.4.tgz#86f0d3c2bf17334b165be96f504a37357a70f576" + integrity sha512-1lPDB2O6IJ50Ucxgn7XrvZXbbuI48HmPCcMTuSoXT1lDzuTUfIuBjgAjpD8YLVMfnrjdepi/q45556LA51Pubw== dependencies: - "@smithy/types" "^3.3.0" + "@smithy/types" "^3.4.0" tslib "^2.6.2" -"@smithy/middleware-stack@^3.0.3": - version "3.0.3" - resolved "https://registry.npmjs.org/@smithy/middleware-stack/-/middleware-stack-3.0.3.tgz" - integrity sha512-r4klY9nFudB0r9UdSMaGSyjyQK5adUyPnQN/ZM6M75phTxOdnc/AhpvGD1fQUvgmqjQEBGCwpnPbDm8pH5PapA== +"@smithy/middleware-stack@^3.0.4": + version "3.0.4" + resolved "https://registry.yarnpkg.com/@smithy/middleware-stack/-/middleware-stack-3.0.4.tgz#85b98320fff51457e9720b2c17e8f3f97c39a88c" + integrity sha512-sLMRjtMCqtVcrOqaOZ10SUnlFE25BSlmLsi4bRSGFD7dgR54eqBjfqkVkPBQyrKBortfGM0+2DJoUPcGECR+nQ== dependencies: - "@smithy/types" "^3.3.0" + "@smithy/types" "^3.4.0" tslib "^2.6.2" -"@smithy/node-config-provider@^3.1.4": - version "3.1.4" - resolved "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-3.1.4.tgz" - integrity sha512-YvnElQy8HR4vDcAjoy7Xkx9YT8xZP4cBXcbJSgm/kxmiQu08DwUwj8rkGnyoJTpfl/3xYHH+d8zE+eHqoDCSdQ== +"@smithy/node-config-provider@^3.1.5": + version "3.1.5" + resolved "https://registry.yarnpkg.com/@smithy/node-config-provider/-/node-config-provider-3.1.5.tgz#983fa77aa6782acb7d4f0facf5ff27f5bd2fac5c" + integrity sha512-dq/oR3/LxgCgizVk7in7FGTm0w9a3qM4mg3IIXLTCHeW3fV+ipssSvBZ2bvEx1+asfQJTyCnVLeYf7JKfd9v3Q== dependencies: - "@smithy/property-provider" "^3.1.3" - "@smithy/shared-ini-file-loader" "^3.1.4" - "@smithy/types" "^3.3.0" + "@smithy/property-provider" "^3.1.4" + "@smithy/shared-ini-file-loader" "^3.1.5" + "@smithy/types" "^3.4.0" tslib "^2.6.2" -"@smithy/node-http-handler@^3.1.4": - version "3.1.4" - resolved "https://registry.npmjs.org/@smithy/node-http-handler/-/node-http-handler-3.1.4.tgz" - integrity sha512-+UmxgixgOr/yLsUxcEKGH0fMNVteJFGkmRltYFHnBMlogyFdpzn2CwqWmxOrfJELhV34v0WSlaqG1UtE1uXlJg== +"@smithy/node-http-handler@^3.2.0": + version "3.2.0" + resolved "https://registry.yarnpkg.com/@smithy/node-http-handler/-/node-http-handler-3.2.0.tgz#0473f3cfb88779dacdcbafa877dbf74aac4f1c82" + integrity sha512-5TFqaABbiY7uJMKbqR4OARjwI/l4TRoysDJ75pLpVQyO3EcmeloKYwDGyCtgB9WJniFx3BMkmGCB9+j+QiB+Ww== dependencies: - "@smithy/abort-controller" "^3.1.1" - "@smithy/protocol-http" "^4.1.0" - "@smithy/querystring-builder" "^3.0.3" - "@smithy/types" "^3.3.0" + "@smithy/abort-controller" "^3.1.2" + "@smithy/protocol-http" "^4.1.1" + "@smithy/querystring-builder" "^3.0.4" + "@smithy/types" "^3.4.0" tslib "^2.6.2" -"@smithy/property-provider@^3.1.3": - version "3.1.3" - resolved "https://registry.npmjs.org/@smithy/property-provider/-/property-provider-3.1.3.tgz" - integrity sha512-zahyOVR9Q4PEoguJ/NrFP4O7SMAfYO1HLhB18M+q+Z4KFd4V2obiMnlVoUFzFLSPeVt1POyNWneHHrZaTMoc/g== +"@smithy/property-provider@^3.1.4": + version "3.1.4" + resolved "https://registry.yarnpkg.com/@smithy/property-provider/-/property-provider-3.1.4.tgz#2d4f0db3a517d283c2b879f3a01673324955013b" + integrity sha512-BmhefQbfkSl9DeU0/e6k9N4sT5bya5etv2epvqLUz3eGyfRBhtQq60nDkc1WPp4c+KWrzK721cUc/3y0f2psPQ== dependencies: - "@smithy/types" "^3.3.0" + "@smithy/types" "^3.4.0" tslib "^2.6.2" "@smithy/protocol-http@^1.1.0": @@ -3056,70 +3056,70 @@ "@smithy/types" "^1.2.0" tslib "^2.5.0" -"@smithy/protocol-http@^4.1.0": - version "4.1.0" - resolved "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-4.1.0.tgz" - integrity sha512-dPVoHYQ2wcHooGXg3LQisa1hH0e4y0pAddPMeeUPipI1tEOqL6A4N0/G7abeq+K8wrwSgjk4C0wnD1XZpJm5aA== +"@smithy/protocol-http@^4.1.1": + version "4.1.1" + resolved "https://registry.yarnpkg.com/@smithy/protocol-http/-/protocol-http-4.1.1.tgz#ffd9c3f8ada9b25add3277b7de84c22dc320f1a6" + integrity sha512-Fm5+8LkeIus83Y8jTL1XHsBGP8sPvE1rEVyKf/87kbOPTbzEDMcgOlzcmYXat2h+nC3wwPtRy8hFqtJS71+Wow== dependencies: - "@smithy/types" "^3.3.0" + "@smithy/types" "^3.4.0" tslib "^2.6.2" -"@smithy/querystring-builder@^3.0.3": - version "3.0.3" - resolved "https://registry.npmjs.org/@smithy/querystring-builder/-/querystring-builder-3.0.3.tgz" - integrity sha512-vyWckeUeesFKzCDaRwWLUA1Xym9McaA6XpFfAK5qI9DKJ4M33ooQGqvM4J+LalH4u/Dq9nFiC8U6Qn1qi0+9zw== +"@smithy/querystring-builder@^3.0.4": + version "3.0.4" + resolved "https://registry.yarnpkg.com/@smithy/querystring-builder/-/querystring-builder-3.0.4.tgz#1124dfe533e60fd131acffbf78656b8db0a38bbf" + integrity sha512-NEoPAsZPdpfVbF98qm8i5k1XMaRKeEnO47CaL5ja6Y1Z2DgJdwIJuJkTJypKm/IKfp8gc0uimIFLwhml8+/pAw== dependencies: - "@smithy/types" "^3.3.0" + "@smithy/types" "^3.4.0" "@smithy/util-uri-escape" "^3.0.0" tslib "^2.6.2" -"@smithy/querystring-parser@^3.0.3": - version "3.0.3" - resolved "https://registry.npmjs.org/@smithy/querystring-parser/-/querystring-parser-3.0.3.tgz" - integrity sha512-zahM1lQv2YjmznnfQsWbYojFe55l0SLG/988brlLv1i8z3dubloLF+75ATRsqPBboUXsW6I9CPGE5rQgLfY0vQ== +"@smithy/querystring-parser@^3.0.4": + version "3.0.4" + resolved "https://registry.yarnpkg.com/@smithy/querystring-parser/-/querystring-parser-3.0.4.tgz#2a1e2d7fb4d2ec726fb4b4dac8b63a8e5294bcf4" + integrity sha512-7CHPXffFcakFzhO0OZs/rn6fXlTHrSDdLhIT6/JIk1u2bvwguTL3fMCc1+CfcbXA7TOhjWXu3TcB1EGMqJQwHg== dependencies: - "@smithy/types" "^3.3.0" + "@smithy/types" "^3.4.0" tslib "^2.6.2" -"@smithy/service-error-classification@^3.0.3": - version "3.0.3" - resolved "https://registry.npmjs.org/@smithy/service-error-classification/-/service-error-classification-3.0.3.tgz" - integrity sha512-Jn39sSl8cim/VlkLsUhRFq/dKDnRUFlfRkvhOJaUbLBXUsLRLNf9WaxDv/z9BjuQ3A6k/qE8af1lsqcwm7+DaQ== +"@smithy/service-error-classification@^3.0.4": + version "3.0.4" + resolved "https://registry.yarnpkg.com/@smithy/service-error-classification/-/service-error-classification-3.0.4.tgz#60e07b596b38d316aca453e06bfe33464c622fb5" + integrity sha512-KciDHHKFVTb9A1KlJHBt2F26PBaDtoE23uTZy5qRvPzHPqrooXFi6fmx98lJb3Jl38PuUTqIuCUmmY3pacuMBQ== dependencies: - "@smithy/types" "^3.3.0" + "@smithy/types" "^3.4.0" -"@smithy/shared-ini-file-loader@^3.1.4": - version "3.1.4" - resolved "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.4.tgz" - integrity sha512-qMxS4hBGB8FY2GQqshcRUy1K6k8aBWP5vwm8qKkCT3A9K2dawUwOIJfqh9Yste/Bl0J2lzosVyrXDj68kLcHXQ== +"@smithy/shared-ini-file-loader@^3.1.5": + version "3.1.5" + resolved "https://registry.yarnpkg.com/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-3.1.5.tgz#cc44501343c395fc005ded0396446d86408c062d" + integrity sha512-6jxsJ4NOmY5Du4FD0enYegNJl4zTSuKLiChIMqIkh+LapxiP7lmz5lYUNLE9/4cvA65mbBmtdzZ8yxmcqM5igg== dependencies: - "@smithy/types" "^3.3.0" + "@smithy/types" "^3.4.0" tslib "^2.6.2" -"@smithy/signature-v4@^4.1.0": - version "4.1.0" - resolved "https://registry.npmjs.org/@smithy/signature-v4/-/signature-v4-4.1.0.tgz" - integrity sha512-aRryp2XNZeRcOtuJoxjydO6QTaVhxx/vjaR+gx7ZjaFgrgPRyZ3HCTbfwqYj6ZWEBHkCSUfcaymKPURaByukag== +"@smithy/signature-v4@^4.1.1": + version "4.1.1" + resolved "https://registry.yarnpkg.com/@smithy/signature-v4/-/signature-v4-4.1.1.tgz#b47a5cb018ff48d2fcfb846ba6d2d16a08553932" + integrity sha512-SH9J9be81TMBNGCmjhrgMWu4YSpQ3uP1L06u/K9SDrE2YibUix1qxedPCxEQu02At0P0SrYDjvz+y91vLG0KRQ== dependencies: "@smithy/is-array-buffer" "^3.0.0" - "@smithy/protocol-http" "^4.1.0" - "@smithy/types" "^3.3.0" + "@smithy/protocol-http" "^4.1.1" + "@smithy/types" "^3.4.0" "@smithy/util-hex-encoding" "^3.0.0" - "@smithy/util-middleware" "^3.0.3" + "@smithy/util-middleware" "^3.0.4" "@smithy/util-uri-escape" "^3.0.0" "@smithy/util-utf8" "^3.0.0" tslib "^2.6.2" -"@smithy/smithy-client@^3.2.0": - version "3.2.0" - resolved "https://registry.yarnpkg.com/@smithy/smithy-client/-/smithy-client-3.2.0.tgz#6db94024e4bdaefa079ac68dbea23dafbea230c8" - integrity sha512-pDbtxs8WOhJLJSeaF/eAbPgXg4VVYFlRcL/zoNYA5WbG3wBL06CHtBSg53ppkttDpAJ/hdiede+xApip1CwSLw== - dependencies: - "@smithy/middleware-endpoint" "^3.1.0" - "@smithy/middleware-stack" "^3.0.3" - "@smithy/protocol-http" "^4.1.0" - "@smithy/types" "^3.3.0" - "@smithy/util-stream" "^3.1.3" +"@smithy/smithy-client@^3.3.0": + version "3.3.0" + resolved "https://registry.yarnpkg.com/@smithy/smithy-client/-/smithy-client-3.3.0.tgz#ee15e7b5ec150f6048ee2ef0e3751c6ed38900c3" + integrity sha512-H32nVo8tIX82kB0xI2LBrIcj8jx/3/ITotNLbeG1UL0b3b440YPR/hUvqjFJiaB24pQrMjRbU8CugqH5sV0hkw== + dependencies: + "@smithy/middleware-endpoint" "^3.1.1" + "@smithy/middleware-stack" "^3.0.4" + "@smithy/protocol-http" "^4.1.1" + "@smithy/types" "^3.4.0" + "@smithy/util-stream" "^3.1.4" tslib "^2.6.2" "@smithy/types@^1.2.0": @@ -3129,20 +3129,20 @@ dependencies: tslib "^2.5.0" -"@smithy/types@^3.3.0": - version "3.3.0" - resolved "https://registry.npmjs.org/@smithy/types/-/types-3.3.0.tgz" - integrity sha512-IxvBBCTFDHbVoK7zIxqA1ZOdc4QfM5HM7rGleCuHi7L1wnKv5Pn69xXJQ9hgxH60ZVygH9/JG0jRgtUncE3QUA== +"@smithy/types@^3.4.0": + version "3.4.0" + resolved "https://registry.yarnpkg.com/@smithy/types/-/types-3.4.0.tgz#08b7b3d6af30c66fd0682c73c206a5baf8b40a63" + integrity sha512-0shOWSg/pnFXPcsSU8ZbaJ4JBHZJPPzLCJxafJvbMVFo9l1w81CqpgUqjlKGNHVrVB7fhIs+WS82JDTyzaLyLA== dependencies: tslib "^2.6.2" -"@smithy/url-parser@^3.0.3": - version "3.0.3" - resolved "https://registry.npmjs.org/@smithy/url-parser/-/url-parser-3.0.3.tgz" - integrity sha512-pw3VtZtX2rg+s6HMs6/+u9+hu6oY6U7IohGhVNnjbgKy86wcIsSZwgHrFR+t67Uyxvp4Xz3p3kGXXIpTNisq8A== +"@smithy/url-parser@^3.0.4": + version "3.0.4" + resolved "https://registry.yarnpkg.com/@smithy/url-parser/-/url-parser-3.0.4.tgz#d24a0304117dc26b81b8a58a3d5eda79cdb09bee" + integrity sha512-XdXfObA8WrloavJYtDuzoDhJAYc5rOt+FirFmKBRKaihu7QtU/METAxJgSo7uMK6hUkx0vFnqxV75urtRaLkLg== dependencies: - "@smithy/querystring-parser" "^3.0.3" - "@smithy/types" "^3.3.0" + "@smithy/querystring-parser" "^3.0.4" + "@smithy/types" "^3.4.0" tslib "^2.6.2" "@smithy/util-base64@^3.0.0": @@ -3191,37 +3191,37 @@ dependencies: tslib "^2.6.2" -"@smithy/util-defaults-mode-browser@^3.0.15": - version "3.0.15" - resolved "https://registry.yarnpkg.com/@smithy/util-defaults-mode-browser/-/util-defaults-mode-browser-3.0.15.tgz#df73b9ae3dddc9126e0bb93ebc720b09d7163858" - integrity sha512-FZ4Psa3vjp8kOXcd3HJOiDPBCWtiilLl57r0cnNtq/Ga9RSDrM5ERL6xt+tO43+2af6Pn5Yp92x2n5vPuduNfg== +"@smithy/util-defaults-mode-browser@^3.0.16": + version "3.0.16" + resolved "https://registry.yarnpkg.com/@smithy/util-defaults-mode-browser/-/util-defaults-mode-browser-3.0.16.tgz#7d4978a90cee569fdeb6c38c89a09a39371f44d7" + integrity sha512-Os8ddfNBe7hmc5UMWZxygIHCyAqY0aWR8Wnp/aKbti3f8Df/r0J9ttMZIxeMjsFgtVjEryB0q7SGcwBsHk8WEw== dependencies: - "@smithy/property-provider" "^3.1.3" - "@smithy/smithy-client" "^3.2.0" - "@smithy/types" "^3.3.0" + "@smithy/property-provider" "^3.1.4" + "@smithy/smithy-client" "^3.3.0" + "@smithy/types" "^3.4.0" bowser "^2.11.0" tslib "^2.6.2" -"@smithy/util-defaults-mode-node@^3.0.15": - version "3.0.15" - resolved "https://registry.yarnpkg.com/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-3.0.15.tgz#d52476e1f2e66525d918b51f8d5a9b0972bf518e" - integrity sha512-KSyAAx2q6d0t6f/S4XB2+3+6aQacm3aLMhs9aLMqn18uYGUepbdssfogW5JQZpc6lXNBnp0tEnR5e9CEKmEd7A== - dependencies: - "@smithy/config-resolver" "^3.0.5" - "@smithy/credential-provider-imds" "^3.2.0" - "@smithy/node-config-provider" "^3.1.4" - "@smithy/property-provider" "^3.1.3" - "@smithy/smithy-client" "^3.2.0" - "@smithy/types" "^3.3.0" +"@smithy/util-defaults-mode-node@^3.0.16": + version "3.0.16" + resolved "https://registry.yarnpkg.com/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-3.0.16.tgz#5747d886720d4f5acdde8fdf8240a6c1bad42f1f" + integrity sha512-rNhFIYRtrOrrhRlj6RL8jWA6/dcwrbGYAmy8+OAHjjzQ6zdzUBB1P+3IuJAgwWN6Y5GxI+mVXlM/pOjaoIgHow== + dependencies: + "@smithy/config-resolver" "^3.0.6" + "@smithy/credential-provider-imds" "^3.2.1" + "@smithy/node-config-provider" "^3.1.5" + "@smithy/property-provider" "^3.1.4" + "@smithy/smithy-client" "^3.3.0" + "@smithy/types" "^3.4.0" tslib "^2.6.2" -"@smithy/util-endpoints@^2.0.5": - version "2.0.5" - resolved "https://registry.npmjs.org/@smithy/util-endpoints/-/util-endpoints-2.0.5.tgz" - integrity sha512-ReQP0BWihIE68OAblC/WQmDD40Gx+QY1Ez8mTdFMXpmjfxSyz2fVQu3A4zXRfQU9sZXtewk3GmhfOHswvX+eNg== +"@smithy/util-endpoints@^2.1.0": + version "2.1.0" + resolved "https://registry.yarnpkg.com/@smithy/util-endpoints/-/util-endpoints-2.1.0.tgz#33395d918a43f0df44a453c6bfa0cf3d35ed1367" + integrity sha512-ilS7/0jcbS2ELdg0fM/4GVvOiuk8/U3bIFXUW25xE1Vh1Ol4DP6vVHQKqM40rCMizCLmJ9UxK+NeJrKlhI3HVA== dependencies: - "@smithy/node-config-provider" "^3.1.4" - "@smithy/types" "^3.3.0" + "@smithy/node-config-provider" "^3.1.5" + "@smithy/types" "^3.4.0" tslib "^2.6.2" "@smithy/util-hex-encoding@^3.0.0": @@ -3231,31 +3231,31 @@ dependencies: tslib "^2.6.2" -"@smithy/util-middleware@^3.0.3": - version "3.0.3" - resolved "https://registry.npmjs.org/@smithy/util-middleware/-/util-middleware-3.0.3.tgz" - integrity sha512-l+StyYYK/eO3DlVPbU+4Bi06Jjal+PFLSMmlWM1BEwyLxZ3aKkf1ROnoIakfaA7mC6uw3ny7JBkau4Yc+5zfWw== +"@smithy/util-middleware@^3.0.4": + version "3.0.4" + resolved "https://registry.yarnpkg.com/@smithy/util-middleware/-/util-middleware-3.0.4.tgz#a541edb8d3f2923ab06460ec3f1217c143ae5706" + integrity sha512-uSXHTBhstb1c4nHdmQEdkNMv9LiRNaJ/lWV2U/GO+5F236YFpdPw+hyWI9Zc0Rp9XKzwD9kVZvhZmEgp0UCVnA== dependencies: - "@smithy/types" "^3.3.0" + "@smithy/types" "^3.4.0" tslib "^2.6.2" -"@smithy/util-retry@^3.0.3": - version "3.0.3" - resolved "https://registry.npmjs.org/@smithy/util-retry/-/util-retry-3.0.3.tgz" - integrity sha512-AFw+hjpbtVApzpNDhbjNG5NA3kyoMs7vx0gsgmlJF4s+yz1Zlepde7J58zpIRIsdjc+emhpAITxA88qLkPF26w== +"@smithy/util-retry@^3.0.4": + version "3.0.4" + resolved "https://registry.yarnpkg.com/@smithy/util-retry/-/util-retry-3.0.4.tgz#281de3f89458b5e3b86ca92937eb1212bcecf67f" + integrity sha512-JJr6g0tO1qO2tCQyK+n3J18r34ZpvatlFN5ULcLranFIBZPxqoivb77EPyNTVwTGMEvvq2qMnyjm4jMIxjdLFg== dependencies: - "@smithy/service-error-classification" "^3.0.3" - "@smithy/types" "^3.3.0" + "@smithy/service-error-classification" "^3.0.4" + "@smithy/types" "^3.4.0" tslib "^2.6.2" -"@smithy/util-stream@^3.1.3": - version "3.1.3" - resolved "https://registry.npmjs.org/@smithy/util-stream/-/util-stream-3.1.3.tgz" - integrity sha512-FIv/bRhIlAxC0U7xM1BCnF2aDRPq0UaelqBHkM2lsCp26mcBbgI0tCVTv+jGdsQLUmAMybua/bjDsSu8RQHbmw== +"@smithy/util-stream@^3.1.4": + version "3.1.4" + resolved "https://registry.yarnpkg.com/@smithy/util-stream/-/util-stream-3.1.4.tgz#f4041a979dfafcbccdc64fa7ee8c376e39c8dc41" + integrity sha512-txU3EIDLhrBZdGfon6E9V6sZz/irYnKFMblz4TLVjyq8hObNHNS2n9a2t7GIrl7d85zgEPhwLE0gANpZsvpsKg== dependencies: - "@smithy/fetch-http-handler" "^3.2.4" - "@smithy/node-http-handler" "^3.1.4" - "@smithy/types" "^3.3.0" + "@smithy/fetch-http-handler" "^3.2.5" + "@smithy/node-http-handler" "^3.2.0" + "@smithy/types" "^3.4.0" "@smithy/util-base64" "^3.0.0" "@smithy/util-buffer-from" "^3.0.0" "@smithy/util-hex-encoding" "^3.0.0" @@ -3285,13 +3285,13 @@ "@smithy/util-buffer-from" "^3.0.0" tslib "^2.6.2" -"@smithy/util-waiter@^3.1.2": - version "3.1.2" - resolved "https://registry.npmjs.org/@smithy/util-waiter/-/util-waiter-3.1.2.tgz" - integrity sha512-4pP0EV3iTsexDx+8PPGAKCQpd/6hsQBaQhqWzU4hqKPHN5epPsxKbvUTIiYIHTxaKt6/kEaqPBpu/ufvfbrRzw== +"@smithy/util-waiter@^3.1.3": + version "3.1.3" + resolved "https://registry.yarnpkg.com/@smithy/util-waiter/-/util-waiter-3.1.3.tgz#a633257cc65f83cf5714a0f66665070868c3aa91" + integrity sha512-OU0YllH51/CxD8iyr3UHSMwYqTGTyuxFdCMH/0F978t+iDmJseC/ttrWPb22zmYkhkrjqtipzC1xaMuax5QKIA== dependencies: - "@smithy/abort-controller" "^3.1.1" - "@smithy/types" "^3.3.0" + "@smithy/abort-controller" "^3.1.2" + "@smithy/types" "^3.4.0" tslib "^2.6.2" "@socket.io/component-emitter@~3.1.0": @@ -12318,16 +12318,7 @@ string-length@^4.0.1: char-regex "^1.0.2" strip-ansi "^6.0.0" -"string-width-cjs@npm:string-width@^4.2.0": - version "4.2.3" - resolved "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz" - integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== - dependencies: - emoji-regex "^8.0.0" - is-fullwidth-code-point "^3.0.0" - strip-ansi "^6.0.1" - -"string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: +"string-width-cjs@npm:string-width@^4.2.0", "string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: version "4.2.3" resolved "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz" integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== @@ -12368,14 +12359,7 @@ stringify-object@^3.3.0: is-obj "^1.0.1" is-regexp "^1.0.0" -"strip-ansi-cjs@npm:strip-ansi@^6.0.1": - version "6.0.1" - resolved "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz" - integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== - dependencies: - ansi-regex "^5.0.1" - -strip-ansi@6.0.1, strip-ansi@^6.0.0, strip-ansi@^6.0.1: +"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@6.0.1, strip-ansi@^6.0.0, strip-ansi@^6.0.1: version "6.0.1" resolved "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz" integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== @@ -13584,7 +13568,7 @@ workerpool@6.2.1: resolved "https://registry.npmjs.org/workerpool/-/workerpool-6.2.1.tgz" integrity sha512-ILEIE97kDZvF9Wb9f6h5aXK4swSlKGUcOEGiIYb2OOu/IrDU9iwj0fD//SsA6E5ibwJxpEvhullJY4Sl4GcpAw== -"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0": +"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0: version "7.0.0" resolved "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz" integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== @@ -13602,15 +13586,6 @@ wrap-ansi@^6.2.0: string-width "^4.1.0" strip-ansi "^6.0.0" -wrap-ansi@^7.0.0: - version "7.0.0" - resolved "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz" - integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== - dependencies: - ansi-styles "^4.0.0" - string-width "^4.1.0" - strip-ansi "^6.0.0" - wrap-ansi@^8.1.0: version "8.1.0" resolved "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz"