From c28cc60a22ed6b04650d73ea21684ebb8c5ae47c Mon Sep 17 00:00:00 2001 From: "Kamat, Trivikram" <16024985+trivikr@users.noreply.github.com> Date: Wed, 2 Nov 2022 16:03:36 +0000 Subject: [PATCH 1/2] chore(clients): import fromUtf8 and toUtf8 from util-base64 --- clients/client-accessanalyzer/package.json | 1 + clients/client-accessanalyzer/src/runtimeConfig.browser.ts | 3 --- clients/client-accessanalyzer/src/runtimeConfig.shared.ts | 3 +++ clients/client-accessanalyzer/src/runtimeConfig.ts | 3 --- clients/client-account/package.json | 1 + clients/client-account/src/runtimeConfig.browser.ts | 3 --- clients/client-account/src/runtimeConfig.shared.ts | 3 +++ clients/client-account/src/runtimeConfig.ts | 3 --- clients/client-acm-pca/package.json | 1 + clients/client-acm-pca/src/runtimeConfig.browser.ts | 3 --- clients/client-acm-pca/src/runtimeConfig.shared.ts | 3 +++ clients/client-acm-pca/src/runtimeConfig.ts | 3 --- clients/client-acm/package.json | 1 + clients/client-acm/src/runtimeConfig.browser.ts | 3 --- clients/client-acm/src/runtimeConfig.shared.ts | 3 +++ clients/client-acm/src/runtimeConfig.ts | 3 --- clients/client-alexa-for-business/package.json | 1 + clients/client-alexa-for-business/src/runtimeConfig.browser.ts | 3 --- clients/client-alexa-for-business/src/runtimeConfig.shared.ts | 3 +++ clients/client-alexa-for-business/src/runtimeConfig.ts | 3 --- clients/client-amp/package.json | 1 + clients/client-amp/src/runtimeConfig.browser.ts | 3 --- clients/client-amp/src/runtimeConfig.shared.ts | 3 +++ clients/client-amp/src/runtimeConfig.ts | 3 --- clients/client-amplify/package.json | 1 + clients/client-amplify/src/runtimeConfig.browser.ts | 3 --- clients/client-amplify/src/runtimeConfig.shared.ts | 3 +++ clients/client-amplify/src/runtimeConfig.ts | 3 --- clients/client-amplifybackend/package.json | 1 + clients/client-amplifybackend/src/runtimeConfig.browser.ts | 3 --- clients/client-amplifybackend/src/runtimeConfig.shared.ts | 3 +++ clients/client-amplifybackend/src/runtimeConfig.ts | 3 --- clients/client-amplifyuibuilder/package.json | 1 + clients/client-amplifyuibuilder/src/runtimeConfig.browser.ts | 3 --- clients/client-amplifyuibuilder/src/runtimeConfig.shared.ts | 3 +++ clients/client-amplifyuibuilder/src/runtimeConfig.ts | 3 --- clients/client-api-gateway/package.json | 1 + clients/client-api-gateway/src/runtimeConfig.browser.ts | 3 --- clients/client-api-gateway/src/runtimeConfig.shared.ts | 3 +++ clients/client-api-gateway/src/runtimeConfig.ts | 3 --- clients/client-apigatewaymanagementapi/package.json | 1 + .../src/runtimeConfig.browser.ts | 3 --- .../client-apigatewaymanagementapi/src/runtimeConfig.shared.ts | 3 +++ clients/client-apigatewaymanagementapi/src/runtimeConfig.ts | 3 --- clients/client-apigatewayv2/package.json | 1 + clients/client-apigatewayv2/src/runtimeConfig.browser.ts | 3 --- clients/client-apigatewayv2/src/runtimeConfig.shared.ts | 3 +++ clients/client-apigatewayv2/src/runtimeConfig.ts | 3 --- clients/client-app-mesh/package.json | 1 + clients/client-app-mesh/src/runtimeConfig.browser.ts | 3 --- clients/client-app-mesh/src/runtimeConfig.shared.ts | 3 +++ clients/client-app-mesh/src/runtimeConfig.ts | 3 --- clients/client-appconfig/package.json | 1 + clients/client-appconfig/src/runtimeConfig.browser.ts | 3 --- clients/client-appconfig/src/runtimeConfig.shared.ts | 3 +++ clients/client-appconfig/src/runtimeConfig.ts | 3 --- clients/client-appconfigdata/package.json | 1 + clients/client-appconfigdata/src/runtimeConfig.browser.ts | 3 --- clients/client-appconfigdata/src/runtimeConfig.shared.ts | 3 +++ clients/client-appconfigdata/src/runtimeConfig.ts | 3 --- clients/client-appflow/package.json | 1 + clients/client-appflow/src/runtimeConfig.browser.ts | 3 --- clients/client-appflow/src/runtimeConfig.shared.ts | 3 +++ clients/client-appflow/src/runtimeConfig.ts | 3 --- clients/client-appintegrations/package.json | 1 + clients/client-appintegrations/src/runtimeConfig.browser.ts | 3 --- clients/client-appintegrations/src/runtimeConfig.shared.ts | 3 +++ clients/client-appintegrations/src/runtimeConfig.ts | 3 --- clients/client-application-auto-scaling/package.json | 1 + .../src/runtimeConfig.browser.ts | 3 --- .../src/runtimeConfig.shared.ts | 3 +++ clients/client-application-auto-scaling/src/runtimeConfig.ts | 3 --- clients/client-application-discovery-service/package.json | 1 + .../src/runtimeConfig.browser.ts | 3 --- .../src/runtimeConfig.shared.ts | 3 +++ .../client-application-discovery-service/src/runtimeConfig.ts | 3 --- clients/client-application-insights/package.json | 1 + .../client-application-insights/src/runtimeConfig.browser.ts | 3 --- .../client-application-insights/src/runtimeConfig.shared.ts | 3 +++ clients/client-application-insights/src/runtimeConfig.ts | 3 --- clients/client-applicationcostprofiler/package.json | 1 + .../src/runtimeConfig.browser.ts | 3 --- .../client-applicationcostprofiler/src/runtimeConfig.shared.ts | 3 +++ clients/client-applicationcostprofiler/src/runtimeConfig.ts | 3 --- clients/client-apprunner/package.json | 1 + clients/client-apprunner/src/runtimeConfig.browser.ts | 3 --- clients/client-apprunner/src/runtimeConfig.shared.ts | 3 +++ clients/client-apprunner/src/runtimeConfig.ts | 3 --- clients/client-appstream/package.json | 1 + clients/client-appstream/src/runtimeConfig.browser.ts | 3 --- clients/client-appstream/src/runtimeConfig.shared.ts | 3 +++ clients/client-appstream/src/runtimeConfig.ts | 3 --- clients/client-appsync/package.json | 1 + clients/client-appsync/src/runtimeConfig.browser.ts | 3 --- clients/client-appsync/src/runtimeConfig.shared.ts | 3 +++ clients/client-appsync/src/runtimeConfig.ts | 3 --- clients/client-athena/package.json | 1 + clients/client-athena/src/runtimeConfig.browser.ts | 3 --- clients/client-athena/src/runtimeConfig.shared.ts | 3 +++ clients/client-athena/src/runtimeConfig.ts | 3 --- clients/client-auditmanager/package.json | 1 + clients/client-auditmanager/src/runtimeConfig.browser.ts | 3 --- clients/client-auditmanager/src/runtimeConfig.shared.ts | 3 +++ clients/client-auditmanager/src/runtimeConfig.ts | 3 --- clients/client-auto-scaling-plans/package.json | 1 + clients/client-auto-scaling-plans/src/runtimeConfig.browser.ts | 3 --- clients/client-auto-scaling-plans/src/runtimeConfig.shared.ts | 3 +++ clients/client-auto-scaling-plans/src/runtimeConfig.ts | 3 --- clients/client-auto-scaling/package.json | 1 + clients/client-auto-scaling/src/runtimeConfig.browser.ts | 3 --- clients/client-auto-scaling/src/runtimeConfig.shared.ts | 3 +++ clients/client-auto-scaling/src/runtimeConfig.ts | 3 --- clients/client-backup-gateway/package.json | 1 + clients/client-backup-gateway/src/runtimeConfig.browser.ts | 3 --- clients/client-backup-gateway/src/runtimeConfig.shared.ts | 3 +++ clients/client-backup-gateway/src/runtimeConfig.ts | 3 --- clients/client-backup/package.json | 1 + clients/client-backup/src/runtimeConfig.browser.ts | 3 --- clients/client-backup/src/runtimeConfig.shared.ts | 3 +++ clients/client-backup/src/runtimeConfig.ts | 3 --- clients/client-backupstorage/package.json | 1 + clients/client-backupstorage/src/runtimeConfig.browser.ts | 3 --- clients/client-backupstorage/src/runtimeConfig.shared.ts | 3 +++ clients/client-backupstorage/src/runtimeConfig.ts | 3 --- clients/client-batch/package.json | 1 + clients/client-batch/src/runtimeConfig.browser.ts | 3 --- clients/client-batch/src/runtimeConfig.shared.ts | 3 +++ clients/client-batch/src/runtimeConfig.ts | 3 --- clients/client-billingconductor/package.json | 1 + clients/client-billingconductor/src/runtimeConfig.browser.ts | 3 --- clients/client-billingconductor/src/runtimeConfig.shared.ts | 3 +++ clients/client-billingconductor/src/runtimeConfig.ts | 3 --- clients/client-braket/package.json | 1 + clients/client-braket/src/runtimeConfig.browser.ts | 3 --- clients/client-braket/src/runtimeConfig.shared.ts | 3 +++ clients/client-braket/src/runtimeConfig.ts | 3 --- clients/client-budgets/package.json | 1 + clients/client-budgets/src/runtimeConfig.browser.ts | 3 --- clients/client-budgets/src/runtimeConfig.shared.ts | 3 +++ clients/client-budgets/src/runtimeConfig.ts | 3 --- clients/client-chime-sdk-identity/package.json | 1 + clients/client-chime-sdk-identity/src/runtimeConfig.browser.ts | 3 --- clients/client-chime-sdk-identity/src/runtimeConfig.shared.ts | 3 +++ clients/client-chime-sdk-identity/src/runtimeConfig.ts | 3 --- clients/client-chime-sdk-media-pipelines/package.json | 1 + .../src/runtimeConfig.browser.ts | 3 --- .../src/runtimeConfig.shared.ts | 3 +++ clients/client-chime-sdk-media-pipelines/src/runtimeConfig.ts | 3 --- clients/client-chime-sdk-meetings/package.json | 1 + clients/client-chime-sdk-meetings/src/runtimeConfig.browser.ts | 3 --- clients/client-chime-sdk-meetings/src/runtimeConfig.shared.ts | 3 +++ clients/client-chime-sdk-meetings/src/runtimeConfig.ts | 3 --- clients/client-chime-sdk-messaging/package.json | 1 + .../client-chime-sdk-messaging/src/runtimeConfig.browser.ts | 3 --- clients/client-chime-sdk-messaging/src/runtimeConfig.shared.ts | 3 +++ clients/client-chime-sdk-messaging/src/runtimeConfig.ts | 3 --- clients/client-chime/package.json | 1 + clients/client-chime/src/runtimeConfig.browser.ts | 3 --- clients/client-chime/src/runtimeConfig.shared.ts | 3 +++ clients/client-chime/src/runtimeConfig.ts | 3 --- clients/client-cloud9/package.json | 1 + clients/client-cloud9/src/runtimeConfig.browser.ts | 3 --- clients/client-cloud9/src/runtimeConfig.shared.ts | 3 +++ clients/client-cloud9/src/runtimeConfig.ts | 3 --- clients/client-cloudcontrol/package.json | 1 + clients/client-cloudcontrol/src/runtimeConfig.browser.ts | 3 --- clients/client-cloudcontrol/src/runtimeConfig.shared.ts | 3 +++ clients/client-cloudcontrol/src/runtimeConfig.ts | 3 --- clients/client-clouddirectory/package.json | 1 + clients/client-clouddirectory/src/runtimeConfig.browser.ts | 3 --- clients/client-clouddirectory/src/runtimeConfig.shared.ts | 3 +++ clients/client-clouddirectory/src/runtimeConfig.ts | 3 --- clients/client-cloudformation/package.json | 1 + clients/client-cloudformation/src/runtimeConfig.browser.ts | 3 --- clients/client-cloudformation/src/runtimeConfig.shared.ts | 3 +++ clients/client-cloudformation/src/runtimeConfig.ts | 3 --- clients/client-cloudfront/package.json | 1 + clients/client-cloudfront/src/runtimeConfig.browser.ts | 3 --- clients/client-cloudfront/src/runtimeConfig.shared.ts | 3 +++ clients/client-cloudfront/src/runtimeConfig.ts | 3 --- clients/client-cloudhsm-v2/package.json | 1 + clients/client-cloudhsm-v2/src/runtimeConfig.browser.ts | 3 --- clients/client-cloudhsm-v2/src/runtimeConfig.shared.ts | 3 +++ clients/client-cloudhsm-v2/src/runtimeConfig.ts | 3 --- clients/client-cloudhsm/package.json | 1 + clients/client-cloudhsm/src/runtimeConfig.browser.ts | 3 --- clients/client-cloudhsm/src/runtimeConfig.shared.ts | 3 +++ clients/client-cloudhsm/src/runtimeConfig.ts | 3 --- clients/client-cloudsearch-domain/package.json | 1 + clients/client-cloudsearch-domain/src/runtimeConfig.browser.ts | 3 --- clients/client-cloudsearch-domain/src/runtimeConfig.shared.ts | 3 +++ clients/client-cloudsearch-domain/src/runtimeConfig.ts | 3 --- clients/client-cloudsearch/package.json | 1 + clients/client-cloudsearch/src/runtimeConfig.browser.ts | 3 --- clients/client-cloudsearch/src/runtimeConfig.shared.ts | 3 +++ clients/client-cloudsearch/src/runtimeConfig.ts | 3 --- clients/client-cloudtrail/package.json | 1 + clients/client-cloudtrail/src/runtimeConfig.browser.ts | 3 --- clients/client-cloudtrail/src/runtimeConfig.shared.ts | 3 +++ clients/client-cloudtrail/src/runtimeConfig.ts | 3 --- clients/client-cloudwatch-events/package.json | 1 + clients/client-cloudwatch-events/src/runtimeConfig.browser.ts | 3 --- clients/client-cloudwatch-events/src/runtimeConfig.shared.ts | 3 +++ clients/client-cloudwatch-events/src/runtimeConfig.ts | 3 --- clients/client-cloudwatch-logs/package.json | 1 + clients/client-cloudwatch-logs/src/runtimeConfig.browser.ts | 3 --- clients/client-cloudwatch-logs/src/runtimeConfig.shared.ts | 3 +++ clients/client-cloudwatch-logs/src/runtimeConfig.ts | 3 --- clients/client-cloudwatch/package.json | 1 + clients/client-cloudwatch/src/runtimeConfig.browser.ts | 3 --- clients/client-cloudwatch/src/runtimeConfig.shared.ts | 3 +++ clients/client-cloudwatch/src/runtimeConfig.ts | 3 --- clients/client-codeartifact/package.json | 1 + clients/client-codeartifact/src/runtimeConfig.browser.ts | 3 --- clients/client-codeartifact/src/runtimeConfig.shared.ts | 3 +++ clients/client-codeartifact/src/runtimeConfig.ts | 3 --- clients/client-codebuild/package.json | 1 + clients/client-codebuild/src/runtimeConfig.browser.ts | 3 --- clients/client-codebuild/src/runtimeConfig.shared.ts | 3 +++ clients/client-codebuild/src/runtimeConfig.ts | 3 --- clients/client-codecommit/package.json | 1 + clients/client-codecommit/src/runtimeConfig.browser.ts | 3 --- clients/client-codecommit/src/runtimeConfig.shared.ts | 3 +++ clients/client-codecommit/src/runtimeConfig.ts | 3 --- clients/client-codedeploy/package.json | 1 + clients/client-codedeploy/src/runtimeConfig.browser.ts | 3 --- clients/client-codedeploy/src/runtimeConfig.shared.ts | 3 +++ clients/client-codedeploy/src/runtimeConfig.ts | 3 --- clients/client-codeguru-reviewer/package.json | 1 + clients/client-codeguru-reviewer/src/runtimeConfig.browser.ts | 3 --- clients/client-codeguru-reviewer/src/runtimeConfig.shared.ts | 3 +++ clients/client-codeguru-reviewer/src/runtimeConfig.ts | 3 --- clients/client-codeguruprofiler/package.json | 1 + clients/client-codeguruprofiler/src/runtimeConfig.browser.ts | 3 --- clients/client-codeguruprofiler/src/runtimeConfig.shared.ts | 3 +++ clients/client-codeguruprofiler/src/runtimeConfig.ts | 3 --- clients/client-codepipeline/package.json | 1 + clients/client-codepipeline/src/runtimeConfig.browser.ts | 3 --- clients/client-codepipeline/src/runtimeConfig.shared.ts | 3 +++ clients/client-codepipeline/src/runtimeConfig.ts | 3 --- clients/client-codestar-connections/package.json | 1 + .../client-codestar-connections/src/runtimeConfig.browser.ts | 3 --- .../client-codestar-connections/src/runtimeConfig.shared.ts | 3 +++ clients/client-codestar-connections/src/runtimeConfig.ts | 3 --- clients/client-codestar-notifications/package.json | 1 + .../client-codestar-notifications/src/runtimeConfig.browser.ts | 3 --- .../client-codestar-notifications/src/runtimeConfig.shared.ts | 3 +++ clients/client-codestar-notifications/src/runtimeConfig.ts | 3 --- clients/client-codestar/package.json | 1 + clients/client-codestar/src/runtimeConfig.browser.ts | 3 --- clients/client-codestar/src/runtimeConfig.shared.ts | 3 +++ clients/client-codestar/src/runtimeConfig.ts | 3 --- clients/client-cognito-identity-provider/package.json | 1 + .../src/runtimeConfig.browser.ts | 3 --- .../src/runtimeConfig.shared.ts | 3 +++ clients/client-cognito-identity-provider/src/runtimeConfig.ts | 3 --- clients/client-cognito-identity/package.json | 1 + clients/client-cognito-identity/src/runtimeConfig.browser.ts | 3 --- clients/client-cognito-identity/src/runtimeConfig.shared.ts | 3 +++ clients/client-cognito-identity/src/runtimeConfig.ts | 3 --- clients/client-cognito-sync/package.json | 1 + clients/client-cognito-sync/src/runtimeConfig.browser.ts | 3 --- clients/client-cognito-sync/src/runtimeConfig.shared.ts | 3 +++ clients/client-cognito-sync/src/runtimeConfig.ts | 3 --- clients/client-comprehend/package.json | 1 + clients/client-comprehend/src/runtimeConfig.browser.ts | 3 --- clients/client-comprehend/src/runtimeConfig.shared.ts | 3 +++ clients/client-comprehend/src/runtimeConfig.ts | 3 --- clients/client-comprehendmedical/package.json | 1 + clients/client-comprehendmedical/src/runtimeConfig.browser.ts | 3 --- clients/client-comprehendmedical/src/runtimeConfig.shared.ts | 3 +++ clients/client-comprehendmedical/src/runtimeConfig.ts | 3 --- clients/client-compute-optimizer/package.json | 1 + clients/client-compute-optimizer/src/runtimeConfig.browser.ts | 3 --- clients/client-compute-optimizer/src/runtimeConfig.shared.ts | 3 +++ clients/client-compute-optimizer/src/runtimeConfig.ts | 3 --- clients/client-config-service/package.json | 1 + clients/client-config-service/src/runtimeConfig.browser.ts | 3 --- clients/client-config-service/src/runtimeConfig.shared.ts | 3 +++ clients/client-config-service/src/runtimeConfig.ts | 3 --- clients/client-connect-contact-lens/package.json | 1 + .../client-connect-contact-lens/src/runtimeConfig.browser.ts | 3 --- .../client-connect-contact-lens/src/runtimeConfig.shared.ts | 3 +++ clients/client-connect-contact-lens/src/runtimeConfig.ts | 3 --- clients/client-connect/package.json | 1 + clients/client-connect/src/runtimeConfig.browser.ts | 3 --- clients/client-connect/src/runtimeConfig.shared.ts | 3 +++ clients/client-connect/src/runtimeConfig.ts | 3 --- clients/client-connectcampaigns/package.json | 1 + clients/client-connectcampaigns/src/runtimeConfig.browser.ts | 3 --- clients/client-connectcampaigns/src/runtimeConfig.shared.ts | 3 +++ clients/client-connectcampaigns/src/runtimeConfig.ts | 3 --- clients/client-connectcases/package.json | 1 + clients/client-connectcases/src/runtimeConfig.browser.ts | 3 --- clients/client-connectcases/src/runtimeConfig.shared.ts | 3 +++ clients/client-connectcases/src/runtimeConfig.ts | 3 --- clients/client-connectparticipant/package.json | 1 + clients/client-connectparticipant/src/runtimeConfig.browser.ts | 3 --- clients/client-connectparticipant/src/runtimeConfig.shared.ts | 3 +++ clients/client-connectparticipant/src/runtimeConfig.ts | 3 --- clients/client-controltower/package.json | 1 + clients/client-controltower/src/runtimeConfig.browser.ts | 3 --- clients/client-controltower/src/runtimeConfig.shared.ts | 3 +++ clients/client-controltower/src/runtimeConfig.ts | 3 --- clients/client-cost-and-usage-report-service/package.json | 1 + .../src/runtimeConfig.browser.ts | 3 --- .../src/runtimeConfig.shared.ts | 3 +++ .../client-cost-and-usage-report-service/src/runtimeConfig.ts | 3 --- clients/client-cost-explorer/package.json | 1 + clients/client-cost-explorer/src/runtimeConfig.browser.ts | 3 --- clients/client-cost-explorer/src/runtimeConfig.shared.ts | 3 +++ clients/client-cost-explorer/src/runtimeConfig.ts | 3 --- clients/client-customer-profiles/package.json | 1 + clients/client-customer-profiles/src/runtimeConfig.browser.ts | 3 --- clients/client-customer-profiles/src/runtimeConfig.shared.ts | 3 +++ clients/client-customer-profiles/src/runtimeConfig.ts | 3 --- clients/client-data-pipeline/package.json | 1 + clients/client-data-pipeline/src/runtimeConfig.browser.ts | 3 --- clients/client-data-pipeline/src/runtimeConfig.shared.ts | 3 +++ clients/client-data-pipeline/src/runtimeConfig.ts | 3 --- clients/client-database-migration-service/package.json | 1 + .../src/runtimeConfig.browser.ts | 3 --- .../src/runtimeConfig.shared.ts | 3 +++ clients/client-database-migration-service/src/runtimeConfig.ts | 3 --- clients/client-databrew/package.json | 1 + clients/client-databrew/src/runtimeConfig.browser.ts | 3 --- clients/client-databrew/src/runtimeConfig.shared.ts | 3 +++ clients/client-databrew/src/runtimeConfig.ts | 3 --- clients/client-dataexchange/package.json | 1 + clients/client-dataexchange/src/runtimeConfig.browser.ts | 3 --- clients/client-dataexchange/src/runtimeConfig.shared.ts | 3 +++ clients/client-dataexchange/src/runtimeConfig.ts | 3 --- clients/client-datasync/package.json | 1 + clients/client-datasync/src/runtimeConfig.browser.ts | 3 --- clients/client-datasync/src/runtimeConfig.shared.ts | 3 +++ clients/client-datasync/src/runtimeConfig.ts | 3 --- clients/client-dax/package.json | 1 + clients/client-dax/src/runtimeConfig.browser.ts | 3 --- clients/client-dax/src/runtimeConfig.shared.ts | 3 +++ clients/client-dax/src/runtimeConfig.ts | 3 --- clients/client-detective/package.json | 1 + clients/client-detective/src/runtimeConfig.browser.ts | 3 --- clients/client-detective/src/runtimeConfig.shared.ts | 3 +++ clients/client-detective/src/runtimeConfig.ts | 3 --- clients/client-device-farm/package.json | 1 + clients/client-device-farm/src/runtimeConfig.browser.ts | 3 --- clients/client-device-farm/src/runtimeConfig.shared.ts | 3 +++ clients/client-device-farm/src/runtimeConfig.ts | 3 --- clients/client-devops-guru/package.json | 1 + clients/client-devops-guru/src/runtimeConfig.browser.ts | 3 --- clients/client-devops-guru/src/runtimeConfig.shared.ts | 3 +++ clients/client-devops-guru/src/runtimeConfig.ts | 3 --- clients/client-direct-connect/package.json | 1 + clients/client-direct-connect/src/runtimeConfig.browser.ts | 3 --- clients/client-direct-connect/src/runtimeConfig.shared.ts | 3 +++ clients/client-direct-connect/src/runtimeConfig.ts | 3 --- clients/client-directory-service/package.json | 1 + clients/client-directory-service/src/runtimeConfig.browser.ts | 3 --- clients/client-directory-service/src/runtimeConfig.shared.ts | 3 +++ clients/client-directory-service/src/runtimeConfig.ts | 3 --- clients/client-dlm/package.json | 1 + clients/client-dlm/src/runtimeConfig.browser.ts | 3 --- clients/client-dlm/src/runtimeConfig.shared.ts | 3 +++ clients/client-dlm/src/runtimeConfig.ts | 3 --- clients/client-docdb/package.json | 1 + clients/client-docdb/src/runtimeConfig.browser.ts | 3 --- clients/client-docdb/src/runtimeConfig.shared.ts | 3 +++ clients/client-docdb/src/runtimeConfig.ts | 3 --- clients/client-drs/package.json | 1 + clients/client-drs/src/runtimeConfig.browser.ts | 3 --- clients/client-drs/src/runtimeConfig.shared.ts | 3 +++ clients/client-drs/src/runtimeConfig.ts | 3 --- clients/client-dynamodb-streams/package.json | 1 + clients/client-dynamodb-streams/src/runtimeConfig.browser.ts | 3 --- clients/client-dynamodb-streams/src/runtimeConfig.shared.ts | 3 +++ clients/client-dynamodb-streams/src/runtimeConfig.ts | 3 --- clients/client-dynamodb/package.json | 1 + clients/client-dynamodb/src/runtimeConfig.browser.ts | 3 --- clients/client-dynamodb/src/runtimeConfig.shared.ts | 3 +++ clients/client-dynamodb/src/runtimeConfig.ts | 3 --- clients/client-ebs/package.json | 1 + clients/client-ebs/src/runtimeConfig.browser.ts | 3 --- clients/client-ebs/src/runtimeConfig.shared.ts | 3 +++ clients/client-ebs/src/runtimeConfig.ts | 3 --- clients/client-ec2-instance-connect/package.json | 1 + .../client-ec2-instance-connect/src/runtimeConfig.browser.ts | 3 --- .../client-ec2-instance-connect/src/runtimeConfig.shared.ts | 3 +++ clients/client-ec2-instance-connect/src/runtimeConfig.ts | 3 --- clients/client-ec2/package.json | 1 + clients/client-ec2/src/runtimeConfig.browser.ts | 3 --- clients/client-ec2/src/runtimeConfig.shared.ts | 3 +++ clients/client-ec2/src/runtimeConfig.ts | 3 --- clients/client-ecr-public/package.json | 1 + clients/client-ecr-public/src/runtimeConfig.browser.ts | 3 --- clients/client-ecr-public/src/runtimeConfig.shared.ts | 3 +++ clients/client-ecr-public/src/runtimeConfig.ts | 3 --- clients/client-ecr/package.json | 1 + clients/client-ecr/src/runtimeConfig.browser.ts | 3 --- clients/client-ecr/src/runtimeConfig.shared.ts | 3 +++ clients/client-ecr/src/runtimeConfig.ts | 3 --- clients/client-ecs/package.json | 1 + clients/client-ecs/src/runtimeConfig.browser.ts | 3 --- clients/client-ecs/src/runtimeConfig.shared.ts | 3 +++ clients/client-ecs/src/runtimeConfig.ts | 3 --- clients/client-efs/package.json | 1 + clients/client-efs/src/runtimeConfig.browser.ts | 3 --- clients/client-efs/src/runtimeConfig.shared.ts | 3 +++ clients/client-efs/src/runtimeConfig.ts | 3 --- clients/client-eks/package.json | 1 + clients/client-eks/src/runtimeConfig.browser.ts | 3 --- clients/client-eks/src/runtimeConfig.shared.ts | 3 +++ clients/client-eks/src/runtimeConfig.ts | 3 --- clients/client-elastic-beanstalk/package.json | 1 + clients/client-elastic-beanstalk/src/runtimeConfig.browser.ts | 3 --- clients/client-elastic-beanstalk/src/runtimeConfig.shared.ts | 3 +++ clients/client-elastic-beanstalk/src/runtimeConfig.ts | 3 --- clients/client-elastic-inference/package.json | 1 + clients/client-elastic-inference/src/runtimeConfig.browser.ts | 3 --- clients/client-elastic-inference/src/runtimeConfig.shared.ts | 3 +++ clients/client-elastic-inference/src/runtimeConfig.ts | 3 --- clients/client-elastic-load-balancing-v2/package.json | 1 + .../src/runtimeConfig.browser.ts | 3 --- .../src/runtimeConfig.shared.ts | 3 +++ clients/client-elastic-load-balancing-v2/src/runtimeConfig.ts | 3 --- clients/client-elastic-load-balancing/package.json | 1 + .../client-elastic-load-balancing/src/runtimeConfig.browser.ts | 3 --- .../client-elastic-load-balancing/src/runtimeConfig.shared.ts | 3 +++ clients/client-elastic-load-balancing/src/runtimeConfig.ts | 3 --- clients/client-elastic-transcoder/package.json | 1 + clients/client-elastic-transcoder/src/runtimeConfig.browser.ts | 3 --- clients/client-elastic-transcoder/src/runtimeConfig.shared.ts | 3 +++ clients/client-elastic-transcoder/src/runtimeConfig.ts | 3 --- clients/client-elasticache/package.json | 1 + clients/client-elasticache/src/runtimeConfig.browser.ts | 3 --- clients/client-elasticache/src/runtimeConfig.shared.ts | 3 +++ clients/client-elasticache/src/runtimeConfig.ts | 3 --- clients/client-elasticsearch-service/package.json | 1 + .../client-elasticsearch-service/src/runtimeConfig.browser.ts | 3 --- .../client-elasticsearch-service/src/runtimeConfig.shared.ts | 3 +++ clients/client-elasticsearch-service/src/runtimeConfig.ts | 3 --- clients/client-emr-containers/package.json | 1 + clients/client-emr-containers/src/runtimeConfig.browser.ts | 3 --- clients/client-emr-containers/src/runtimeConfig.shared.ts | 3 +++ clients/client-emr-containers/src/runtimeConfig.ts | 3 --- clients/client-emr-serverless/package.json | 1 + clients/client-emr-serverless/src/runtimeConfig.browser.ts | 3 --- clients/client-emr-serverless/src/runtimeConfig.shared.ts | 3 +++ clients/client-emr-serverless/src/runtimeConfig.ts | 3 --- clients/client-emr/package.json | 1 + clients/client-emr/src/runtimeConfig.browser.ts | 3 --- clients/client-emr/src/runtimeConfig.shared.ts | 3 +++ clients/client-emr/src/runtimeConfig.ts | 3 --- clients/client-eventbridge/package.json | 1 + clients/client-eventbridge/src/runtimeConfig.browser.ts | 3 --- clients/client-eventbridge/src/runtimeConfig.shared.ts | 3 +++ clients/client-eventbridge/src/runtimeConfig.ts | 3 --- clients/client-evidently/package.json | 1 + clients/client-evidently/src/runtimeConfig.browser.ts | 3 --- clients/client-evidently/src/runtimeConfig.shared.ts | 3 +++ clients/client-evidently/src/runtimeConfig.ts | 3 --- clients/client-finspace-data/package.json | 1 + clients/client-finspace-data/src/runtimeConfig.browser.ts | 3 --- clients/client-finspace-data/src/runtimeConfig.shared.ts | 3 +++ clients/client-finspace-data/src/runtimeConfig.ts | 3 --- clients/client-finspace/package.json | 1 + clients/client-finspace/src/runtimeConfig.browser.ts | 3 --- clients/client-finspace/src/runtimeConfig.shared.ts | 3 +++ clients/client-finspace/src/runtimeConfig.ts | 3 --- clients/client-firehose/package.json | 1 + clients/client-firehose/src/runtimeConfig.browser.ts | 3 --- clients/client-firehose/src/runtimeConfig.shared.ts | 3 +++ clients/client-firehose/src/runtimeConfig.ts | 3 --- clients/client-fis/package.json | 1 + clients/client-fis/src/runtimeConfig.browser.ts | 3 --- clients/client-fis/src/runtimeConfig.shared.ts | 3 +++ clients/client-fis/src/runtimeConfig.ts | 3 --- clients/client-fms/package.json | 1 + clients/client-fms/src/runtimeConfig.browser.ts | 3 --- clients/client-fms/src/runtimeConfig.shared.ts | 3 +++ clients/client-fms/src/runtimeConfig.ts | 3 --- clients/client-forecast/package.json | 1 + clients/client-forecast/src/runtimeConfig.browser.ts | 3 --- clients/client-forecast/src/runtimeConfig.shared.ts | 3 +++ clients/client-forecast/src/runtimeConfig.ts | 3 --- clients/client-forecastquery/package.json | 1 + clients/client-forecastquery/src/runtimeConfig.browser.ts | 3 --- clients/client-forecastquery/src/runtimeConfig.shared.ts | 3 +++ clients/client-forecastquery/src/runtimeConfig.ts | 3 --- clients/client-frauddetector/package.json | 1 + clients/client-frauddetector/src/runtimeConfig.browser.ts | 3 --- clients/client-frauddetector/src/runtimeConfig.shared.ts | 3 +++ clients/client-frauddetector/src/runtimeConfig.ts | 3 --- clients/client-fsx/package.json | 1 + clients/client-fsx/src/runtimeConfig.browser.ts | 3 --- clients/client-fsx/src/runtimeConfig.shared.ts | 3 +++ clients/client-fsx/src/runtimeConfig.ts | 3 --- clients/client-gamelift/package.json | 1 + clients/client-gamelift/src/runtimeConfig.browser.ts | 3 --- clients/client-gamelift/src/runtimeConfig.shared.ts | 3 +++ clients/client-gamelift/src/runtimeConfig.ts | 3 --- clients/client-gamesparks/package.json | 1 + clients/client-gamesparks/src/runtimeConfig.browser.ts | 3 --- clients/client-gamesparks/src/runtimeConfig.shared.ts | 3 +++ clients/client-gamesparks/src/runtimeConfig.ts | 3 --- clients/client-glacier/package.json | 1 + clients/client-glacier/src/runtimeConfig.browser.ts | 3 --- clients/client-glacier/src/runtimeConfig.shared.ts | 3 +++ clients/client-glacier/src/runtimeConfig.ts | 3 --- clients/client-global-accelerator/package.json | 1 + clients/client-global-accelerator/src/runtimeConfig.browser.ts | 3 --- clients/client-global-accelerator/src/runtimeConfig.shared.ts | 3 +++ clients/client-global-accelerator/src/runtimeConfig.ts | 3 --- clients/client-glue/package.json | 1 + clients/client-glue/src/runtimeConfig.browser.ts | 3 --- clients/client-glue/src/runtimeConfig.shared.ts | 3 +++ clients/client-glue/src/runtimeConfig.ts | 3 --- clients/client-grafana/package.json | 1 + clients/client-grafana/src/runtimeConfig.browser.ts | 3 --- clients/client-grafana/src/runtimeConfig.shared.ts | 3 +++ clients/client-grafana/src/runtimeConfig.ts | 3 --- clients/client-greengrass/package.json | 1 + clients/client-greengrass/src/runtimeConfig.browser.ts | 3 --- clients/client-greengrass/src/runtimeConfig.shared.ts | 3 +++ clients/client-greengrass/src/runtimeConfig.ts | 3 --- clients/client-greengrassv2/package.json | 1 + clients/client-greengrassv2/src/runtimeConfig.browser.ts | 3 --- clients/client-greengrassv2/src/runtimeConfig.shared.ts | 3 +++ clients/client-greengrassv2/src/runtimeConfig.ts | 3 --- clients/client-groundstation/package.json | 1 + clients/client-groundstation/src/runtimeConfig.browser.ts | 3 --- clients/client-groundstation/src/runtimeConfig.shared.ts | 3 +++ clients/client-groundstation/src/runtimeConfig.ts | 3 --- clients/client-guardduty/package.json | 1 + clients/client-guardduty/src/runtimeConfig.browser.ts | 3 --- clients/client-guardduty/src/runtimeConfig.shared.ts | 3 +++ clients/client-guardduty/src/runtimeConfig.ts | 3 --- clients/client-health/package.json | 1 + clients/client-health/src/runtimeConfig.browser.ts | 3 --- clients/client-health/src/runtimeConfig.shared.ts | 3 +++ clients/client-health/src/runtimeConfig.ts | 3 --- clients/client-healthlake/package.json | 1 + clients/client-healthlake/src/runtimeConfig.browser.ts | 3 --- clients/client-healthlake/src/runtimeConfig.shared.ts | 3 +++ clients/client-healthlake/src/runtimeConfig.ts | 3 --- clients/client-honeycode/package.json | 1 + clients/client-honeycode/src/runtimeConfig.browser.ts | 3 --- clients/client-honeycode/src/runtimeConfig.shared.ts | 3 +++ clients/client-honeycode/src/runtimeConfig.ts | 3 --- clients/client-iam/package.json | 1 + clients/client-iam/src/runtimeConfig.browser.ts | 3 --- clients/client-iam/src/runtimeConfig.shared.ts | 3 +++ clients/client-iam/src/runtimeConfig.ts | 3 --- clients/client-identitystore/package.json | 1 + clients/client-identitystore/src/runtimeConfig.browser.ts | 3 --- clients/client-identitystore/src/runtimeConfig.shared.ts | 3 +++ clients/client-identitystore/src/runtimeConfig.ts | 3 --- clients/client-imagebuilder/package.json | 1 + clients/client-imagebuilder/src/runtimeConfig.browser.ts | 3 --- clients/client-imagebuilder/src/runtimeConfig.shared.ts | 3 +++ clients/client-imagebuilder/src/runtimeConfig.ts | 3 --- clients/client-inspector/package.json | 1 + clients/client-inspector/src/runtimeConfig.browser.ts | 3 --- clients/client-inspector/src/runtimeConfig.shared.ts | 3 +++ clients/client-inspector/src/runtimeConfig.ts | 3 --- clients/client-inspector2/package.json | 1 + clients/client-inspector2/src/runtimeConfig.browser.ts | 3 --- clients/client-inspector2/src/runtimeConfig.shared.ts | 3 +++ clients/client-inspector2/src/runtimeConfig.ts | 3 --- clients/client-iot-1click-devices-service/package.json | 1 + .../src/runtimeConfig.browser.ts | 3 --- .../src/runtimeConfig.shared.ts | 3 +++ clients/client-iot-1click-devices-service/src/runtimeConfig.ts | 3 --- clients/client-iot-1click-projects/package.json | 1 + .../client-iot-1click-projects/src/runtimeConfig.browser.ts | 3 --- clients/client-iot-1click-projects/src/runtimeConfig.shared.ts | 3 +++ clients/client-iot-1click-projects/src/runtimeConfig.ts | 3 --- clients/client-iot-data-plane/package.json | 1 + clients/client-iot-data-plane/src/runtimeConfig.browser.ts | 3 --- clients/client-iot-data-plane/src/runtimeConfig.shared.ts | 3 +++ clients/client-iot-data-plane/src/runtimeConfig.ts | 3 --- clients/client-iot-events-data/package.json | 1 + clients/client-iot-events-data/src/runtimeConfig.browser.ts | 3 --- clients/client-iot-events-data/src/runtimeConfig.shared.ts | 3 +++ clients/client-iot-events-data/src/runtimeConfig.ts | 3 --- clients/client-iot-events/package.json | 1 + clients/client-iot-events/src/runtimeConfig.browser.ts | 3 --- clients/client-iot-events/src/runtimeConfig.shared.ts | 3 +++ clients/client-iot-events/src/runtimeConfig.ts | 3 --- clients/client-iot-jobs-data-plane/package.json | 1 + .../client-iot-jobs-data-plane/src/runtimeConfig.browser.ts | 3 --- clients/client-iot-jobs-data-plane/src/runtimeConfig.shared.ts | 3 +++ clients/client-iot-jobs-data-plane/src/runtimeConfig.ts | 3 --- clients/client-iot-wireless/package.json | 1 + clients/client-iot-wireless/src/runtimeConfig.browser.ts | 3 --- clients/client-iot-wireless/src/runtimeConfig.shared.ts | 3 +++ clients/client-iot-wireless/src/runtimeConfig.ts | 3 --- clients/client-iot/package.json | 1 + clients/client-iot/src/runtimeConfig.browser.ts | 3 --- clients/client-iot/src/runtimeConfig.shared.ts | 3 +++ clients/client-iot/src/runtimeConfig.ts | 3 --- clients/client-iotanalytics/package.json | 1 + clients/client-iotanalytics/src/runtimeConfig.browser.ts | 3 --- clients/client-iotanalytics/src/runtimeConfig.shared.ts | 3 +++ clients/client-iotanalytics/src/runtimeConfig.ts | 3 --- clients/client-iotdeviceadvisor/package.json | 1 + clients/client-iotdeviceadvisor/src/runtimeConfig.browser.ts | 3 --- clients/client-iotdeviceadvisor/src/runtimeConfig.shared.ts | 3 +++ clients/client-iotdeviceadvisor/src/runtimeConfig.ts | 3 --- clients/client-iotfleethub/package.json | 1 + clients/client-iotfleethub/src/runtimeConfig.browser.ts | 3 --- clients/client-iotfleethub/src/runtimeConfig.shared.ts | 3 +++ clients/client-iotfleethub/src/runtimeConfig.ts | 3 --- clients/client-iotfleetwise/package.json | 1 + clients/client-iotfleetwise/src/runtimeConfig.browser.ts | 3 --- clients/client-iotfleetwise/src/runtimeConfig.shared.ts | 3 +++ clients/client-iotfleetwise/src/runtimeConfig.ts | 3 --- clients/client-iotsecuretunneling/package.json | 1 + clients/client-iotsecuretunneling/src/runtimeConfig.browser.ts | 3 --- clients/client-iotsecuretunneling/src/runtimeConfig.shared.ts | 3 +++ clients/client-iotsecuretunneling/src/runtimeConfig.ts | 3 --- clients/client-iotsitewise/package.json | 1 + clients/client-iotsitewise/src/runtimeConfig.browser.ts | 3 --- clients/client-iotsitewise/src/runtimeConfig.shared.ts | 3 +++ clients/client-iotsitewise/src/runtimeConfig.ts | 3 --- clients/client-iotthingsgraph/package.json | 1 + clients/client-iotthingsgraph/src/runtimeConfig.browser.ts | 3 --- clients/client-iotthingsgraph/src/runtimeConfig.shared.ts | 3 +++ clients/client-iotthingsgraph/src/runtimeConfig.ts | 3 --- clients/client-iottwinmaker/package.json | 1 + clients/client-iottwinmaker/src/runtimeConfig.browser.ts | 3 --- clients/client-iottwinmaker/src/runtimeConfig.shared.ts | 3 +++ clients/client-iottwinmaker/src/runtimeConfig.ts | 3 --- clients/client-ivs/package.json | 1 + clients/client-ivs/src/runtimeConfig.browser.ts | 3 --- clients/client-ivs/src/runtimeConfig.shared.ts | 3 +++ clients/client-ivs/src/runtimeConfig.ts | 3 --- clients/client-ivschat/package.json | 1 + clients/client-ivschat/src/runtimeConfig.browser.ts | 3 --- clients/client-ivschat/src/runtimeConfig.shared.ts | 3 +++ clients/client-ivschat/src/runtimeConfig.ts | 3 --- clients/client-kafka/package.json | 1 + clients/client-kafka/src/runtimeConfig.browser.ts | 3 --- clients/client-kafka/src/runtimeConfig.shared.ts | 3 +++ clients/client-kafka/src/runtimeConfig.ts | 3 --- clients/client-kafkaconnect/package.json | 1 + clients/client-kafkaconnect/src/runtimeConfig.browser.ts | 3 --- clients/client-kafkaconnect/src/runtimeConfig.shared.ts | 3 +++ clients/client-kafkaconnect/src/runtimeConfig.ts | 3 --- clients/client-kendra/package.json | 1 + clients/client-kendra/src/runtimeConfig.browser.ts | 3 --- clients/client-kendra/src/runtimeConfig.shared.ts | 3 +++ clients/client-kendra/src/runtimeConfig.ts | 3 --- clients/client-keyspaces/package.json | 1 + clients/client-keyspaces/src/runtimeConfig.browser.ts | 3 --- clients/client-keyspaces/src/runtimeConfig.shared.ts | 3 +++ clients/client-keyspaces/src/runtimeConfig.ts | 3 --- clients/client-kinesis-analytics-v2/package.json | 1 + .../client-kinesis-analytics-v2/src/runtimeConfig.browser.ts | 3 --- .../client-kinesis-analytics-v2/src/runtimeConfig.shared.ts | 3 +++ clients/client-kinesis-analytics-v2/src/runtimeConfig.ts | 3 --- clients/client-kinesis-analytics/package.json | 1 + clients/client-kinesis-analytics/src/runtimeConfig.browser.ts | 3 --- clients/client-kinesis-analytics/src/runtimeConfig.shared.ts | 3 +++ clients/client-kinesis-analytics/src/runtimeConfig.ts | 3 --- clients/client-kinesis-video-archived-media/package.json | 1 + .../src/runtimeConfig.browser.ts | 3 --- .../src/runtimeConfig.shared.ts | 3 +++ .../client-kinesis-video-archived-media/src/runtimeConfig.ts | 3 --- clients/client-kinesis-video-media/package.json | 1 + .../client-kinesis-video-media/src/runtimeConfig.browser.ts | 3 --- clients/client-kinesis-video-media/src/runtimeConfig.shared.ts | 3 +++ clients/client-kinesis-video-media/src/runtimeConfig.ts | 3 --- clients/client-kinesis-video-signaling/package.json | 1 + .../src/runtimeConfig.browser.ts | 3 --- .../client-kinesis-video-signaling/src/runtimeConfig.shared.ts | 3 +++ clients/client-kinesis-video-signaling/src/runtimeConfig.ts | 3 --- clients/client-kinesis-video/package.json | 1 + clients/client-kinesis-video/src/runtimeConfig.browser.ts | 3 --- clients/client-kinesis-video/src/runtimeConfig.shared.ts | 3 +++ clients/client-kinesis-video/src/runtimeConfig.ts | 3 --- clients/client-kinesis/package.json | 1 + clients/client-kinesis/src/runtimeConfig.browser.ts | 3 --- clients/client-kinesis/src/runtimeConfig.shared.ts | 3 +++ clients/client-kinesis/src/runtimeConfig.ts | 3 --- clients/client-kms/package.json | 1 + clients/client-kms/src/runtimeConfig.browser.ts | 3 --- clients/client-kms/src/runtimeConfig.shared.ts | 3 +++ clients/client-kms/src/runtimeConfig.ts | 3 --- clients/client-lakeformation/package.json | 1 + clients/client-lakeformation/src/runtimeConfig.browser.ts | 3 --- clients/client-lakeformation/src/runtimeConfig.shared.ts | 3 +++ clients/client-lakeformation/src/runtimeConfig.ts | 3 --- clients/client-lambda/package.json | 1 + clients/client-lambda/src/runtimeConfig.browser.ts | 3 --- clients/client-lambda/src/runtimeConfig.shared.ts | 3 +++ clients/client-lambda/src/runtimeConfig.ts | 3 --- clients/client-lex-model-building-service/package.json | 1 + .../src/runtimeConfig.browser.ts | 3 --- .../src/runtimeConfig.shared.ts | 3 +++ clients/client-lex-model-building-service/src/runtimeConfig.ts | 3 --- clients/client-lex-models-v2/package.json | 1 + clients/client-lex-models-v2/src/runtimeConfig.browser.ts | 3 --- clients/client-lex-models-v2/src/runtimeConfig.shared.ts | 3 +++ clients/client-lex-models-v2/src/runtimeConfig.ts | 3 --- clients/client-lex-runtime-service/package.json | 1 + .../client-lex-runtime-service/src/runtimeConfig.browser.ts | 3 --- clients/client-lex-runtime-service/src/runtimeConfig.shared.ts | 3 +++ clients/client-lex-runtime-service/src/runtimeConfig.ts | 3 --- clients/client-lex-runtime-v2/package.json | 1 + clients/client-lex-runtime-v2/src/runtimeConfig.browser.ts | 3 --- clients/client-lex-runtime-v2/src/runtimeConfig.shared.ts | 3 +++ clients/client-lex-runtime-v2/src/runtimeConfig.ts | 3 --- clients/client-license-manager-user-subscriptions/package.json | 1 + .../src/runtimeConfig.browser.ts | 3 --- .../src/runtimeConfig.shared.ts | 3 +++ .../src/runtimeConfig.ts | 3 --- clients/client-license-manager/package.json | 1 + clients/client-license-manager/src/runtimeConfig.browser.ts | 3 --- clients/client-license-manager/src/runtimeConfig.shared.ts | 3 +++ clients/client-license-manager/src/runtimeConfig.ts | 3 --- clients/client-lightsail/package.json | 1 + clients/client-lightsail/src/runtimeConfig.browser.ts | 3 --- clients/client-lightsail/src/runtimeConfig.shared.ts | 3 +++ clients/client-lightsail/src/runtimeConfig.ts | 3 --- clients/client-location/package.json | 1 + clients/client-location/src/runtimeConfig.browser.ts | 3 --- clients/client-location/src/runtimeConfig.shared.ts | 3 +++ clients/client-location/src/runtimeConfig.ts | 3 --- clients/client-lookoutequipment/package.json | 1 + clients/client-lookoutequipment/src/runtimeConfig.browser.ts | 3 --- clients/client-lookoutequipment/src/runtimeConfig.shared.ts | 3 +++ clients/client-lookoutequipment/src/runtimeConfig.ts | 3 --- clients/client-lookoutmetrics/package.json | 1 + clients/client-lookoutmetrics/src/runtimeConfig.browser.ts | 3 --- clients/client-lookoutmetrics/src/runtimeConfig.shared.ts | 3 +++ clients/client-lookoutmetrics/src/runtimeConfig.ts | 3 --- clients/client-lookoutvision/package.json | 1 + clients/client-lookoutvision/src/runtimeConfig.browser.ts | 3 --- clients/client-lookoutvision/src/runtimeConfig.shared.ts | 3 +++ clients/client-lookoutvision/src/runtimeConfig.ts | 3 --- clients/client-m2/package.json | 1 + clients/client-m2/src/runtimeConfig.browser.ts | 3 --- clients/client-m2/src/runtimeConfig.shared.ts | 3 +++ clients/client-m2/src/runtimeConfig.ts | 3 --- clients/client-machine-learning/package.json | 1 + clients/client-machine-learning/src/runtimeConfig.browser.ts | 3 --- clients/client-machine-learning/src/runtimeConfig.shared.ts | 3 +++ clients/client-machine-learning/src/runtimeConfig.ts | 3 --- clients/client-macie/package.json | 1 + clients/client-macie/src/runtimeConfig.browser.ts | 3 --- clients/client-macie/src/runtimeConfig.shared.ts | 3 +++ clients/client-macie/src/runtimeConfig.ts | 3 --- clients/client-macie2/package.json | 1 + clients/client-macie2/src/runtimeConfig.browser.ts | 3 --- clients/client-macie2/src/runtimeConfig.shared.ts | 3 +++ clients/client-macie2/src/runtimeConfig.ts | 3 --- clients/client-managedblockchain/package.json | 1 + clients/client-managedblockchain/src/runtimeConfig.browser.ts | 3 --- clients/client-managedblockchain/src/runtimeConfig.shared.ts | 3 +++ clients/client-managedblockchain/src/runtimeConfig.ts | 3 --- clients/client-marketplace-catalog/package.json | 1 + .../client-marketplace-catalog/src/runtimeConfig.browser.ts | 3 --- clients/client-marketplace-catalog/src/runtimeConfig.shared.ts | 3 +++ clients/client-marketplace-catalog/src/runtimeConfig.ts | 3 --- clients/client-marketplace-commerce-analytics/package.json | 1 + .../src/runtimeConfig.browser.ts | 3 --- .../src/runtimeConfig.shared.ts | 3 +++ .../client-marketplace-commerce-analytics/src/runtimeConfig.ts | 3 --- clients/client-marketplace-entitlement-service/package.json | 1 + .../src/runtimeConfig.browser.ts | 3 --- .../src/runtimeConfig.shared.ts | 3 +++ .../src/runtimeConfig.ts | 3 --- clients/client-marketplace-metering/package.json | 1 + .../client-marketplace-metering/src/runtimeConfig.browser.ts | 3 --- .../client-marketplace-metering/src/runtimeConfig.shared.ts | 3 +++ clients/client-marketplace-metering/src/runtimeConfig.ts | 3 --- clients/client-mediaconnect/package.json | 1 + clients/client-mediaconnect/src/runtimeConfig.browser.ts | 3 --- clients/client-mediaconnect/src/runtimeConfig.shared.ts | 3 +++ clients/client-mediaconnect/src/runtimeConfig.ts | 3 --- clients/client-mediaconvert/package.json | 1 + clients/client-mediaconvert/src/runtimeConfig.browser.ts | 3 --- clients/client-mediaconvert/src/runtimeConfig.shared.ts | 3 +++ clients/client-mediaconvert/src/runtimeConfig.ts | 3 --- clients/client-medialive/package.json | 1 + clients/client-medialive/src/runtimeConfig.browser.ts | 3 --- clients/client-medialive/src/runtimeConfig.shared.ts | 3 +++ clients/client-medialive/src/runtimeConfig.ts | 3 --- clients/client-mediapackage-vod/package.json | 1 + clients/client-mediapackage-vod/src/runtimeConfig.browser.ts | 3 --- clients/client-mediapackage-vod/src/runtimeConfig.shared.ts | 3 +++ clients/client-mediapackage-vod/src/runtimeConfig.ts | 3 --- clients/client-mediapackage/package.json | 1 + clients/client-mediapackage/src/runtimeConfig.browser.ts | 3 --- clients/client-mediapackage/src/runtimeConfig.shared.ts | 3 +++ clients/client-mediapackage/src/runtimeConfig.ts | 3 --- clients/client-mediastore-data/package.json | 1 + clients/client-mediastore-data/src/runtimeConfig.browser.ts | 3 --- clients/client-mediastore-data/src/runtimeConfig.shared.ts | 3 +++ clients/client-mediastore-data/src/runtimeConfig.ts | 3 --- clients/client-mediastore/package.json | 1 + clients/client-mediastore/src/runtimeConfig.browser.ts | 3 --- clients/client-mediastore/src/runtimeConfig.shared.ts | 3 +++ clients/client-mediastore/src/runtimeConfig.ts | 3 --- clients/client-mediatailor/package.json | 1 + clients/client-mediatailor/src/runtimeConfig.browser.ts | 3 --- clients/client-mediatailor/src/runtimeConfig.shared.ts | 3 +++ clients/client-mediatailor/src/runtimeConfig.ts | 3 --- clients/client-memorydb/package.json | 1 + clients/client-memorydb/src/runtimeConfig.browser.ts | 3 --- clients/client-memorydb/src/runtimeConfig.shared.ts | 3 +++ clients/client-memorydb/src/runtimeConfig.ts | 3 --- clients/client-mgn/package.json | 1 + clients/client-mgn/src/runtimeConfig.browser.ts | 3 --- clients/client-mgn/src/runtimeConfig.shared.ts | 3 +++ clients/client-mgn/src/runtimeConfig.ts | 3 --- clients/client-migration-hub-refactor-spaces/package.json | 1 + .../src/runtimeConfig.browser.ts | 3 --- .../src/runtimeConfig.shared.ts | 3 +++ .../client-migration-hub-refactor-spaces/src/runtimeConfig.ts | 3 --- clients/client-migration-hub/package.json | 1 + clients/client-migration-hub/src/runtimeConfig.browser.ts | 3 --- clients/client-migration-hub/src/runtimeConfig.shared.ts | 3 +++ clients/client-migration-hub/src/runtimeConfig.ts | 3 --- clients/client-migrationhub-config/package.json | 1 + .../client-migrationhub-config/src/runtimeConfig.browser.ts | 3 --- clients/client-migrationhub-config/src/runtimeConfig.shared.ts | 3 +++ clients/client-migrationhub-config/src/runtimeConfig.ts | 3 --- clients/client-migrationhuborchestrator/package.json | 1 + .../src/runtimeConfig.browser.ts | 3 --- .../src/runtimeConfig.shared.ts | 3 +++ clients/client-migrationhuborchestrator/src/runtimeConfig.ts | 3 --- clients/client-migrationhubstrategy/package.json | 1 + .../client-migrationhubstrategy/src/runtimeConfig.browser.ts | 3 --- .../client-migrationhubstrategy/src/runtimeConfig.shared.ts | 3 +++ clients/client-migrationhubstrategy/src/runtimeConfig.ts | 3 --- clients/client-mobile/package.json | 1 + clients/client-mobile/src/runtimeConfig.browser.ts | 3 --- clients/client-mobile/src/runtimeConfig.shared.ts | 3 +++ clients/client-mobile/src/runtimeConfig.ts | 3 --- clients/client-mq/package.json | 1 + clients/client-mq/src/runtimeConfig.browser.ts | 3 --- clients/client-mq/src/runtimeConfig.shared.ts | 3 +++ clients/client-mq/src/runtimeConfig.ts | 3 --- clients/client-mturk/package.json | 1 + clients/client-mturk/src/runtimeConfig.browser.ts | 3 --- clients/client-mturk/src/runtimeConfig.shared.ts | 3 +++ clients/client-mturk/src/runtimeConfig.ts | 3 --- clients/client-mwaa/package.json | 1 + clients/client-mwaa/src/runtimeConfig.browser.ts | 3 --- clients/client-mwaa/src/runtimeConfig.shared.ts | 3 +++ clients/client-mwaa/src/runtimeConfig.ts | 3 --- clients/client-neptune/package.json | 1 + clients/client-neptune/src/runtimeConfig.browser.ts | 3 --- clients/client-neptune/src/runtimeConfig.shared.ts | 3 +++ clients/client-neptune/src/runtimeConfig.ts | 3 --- clients/client-network-firewall/package.json | 1 + clients/client-network-firewall/src/runtimeConfig.browser.ts | 3 --- clients/client-network-firewall/src/runtimeConfig.shared.ts | 3 +++ clients/client-network-firewall/src/runtimeConfig.ts | 3 --- clients/client-networkmanager/package.json | 1 + clients/client-networkmanager/src/runtimeConfig.browser.ts | 3 --- clients/client-networkmanager/src/runtimeConfig.shared.ts | 3 +++ clients/client-networkmanager/src/runtimeConfig.ts | 3 --- clients/client-nimble/package.json | 1 + clients/client-nimble/src/runtimeConfig.browser.ts | 3 --- clients/client-nimble/src/runtimeConfig.shared.ts | 3 +++ clients/client-nimble/src/runtimeConfig.ts | 3 --- clients/client-opensearch/package.json | 1 + clients/client-opensearch/src/runtimeConfig.browser.ts | 3 --- clients/client-opensearch/src/runtimeConfig.shared.ts | 3 +++ clients/client-opensearch/src/runtimeConfig.ts | 3 --- clients/client-opsworks/package.json | 1 + clients/client-opsworks/src/runtimeConfig.browser.ts | 3 --- clients/client-opsworks/src/runtimeConfig.shared.ts | 3 +++ clients/client-opsworks/src/runtimeConfig.ts | 3 --- clients/client-opsworkscm/package.json | 1 + clients/client-opsworkscm/src/runtimeConfig.browser.ts | 3 --- clients/client-opsworkscm/src/runtimeConfig.shared.ts | 3 +++ clients/client-opsworkscm/src/runtimeConfig.ts | 3 --- clients/client-organizations/package.json | 1 + clients/client-organizations/src/runtimeConfig.browser.ts | 3 --- clients/client-organizations/src/runtimeConfig.shared.ts | 3 +++ clients/client-organizations/src/runtimeConfig.ts | 3 --- clients/client-outposts/package.json | 1 + clients/client-outposts/src/runtimeConfig.browser.ts | 3 --- clients/client-outposts/src/runtimeConfig.shared.ts | 3 +++ clients/client-outposts/src/runtimeConfig.ts | 3 --- clients/client-panorama/package.json | 1 + clients/client-panorama/src/runtimeConfig.browser.ts | 3 --- clients/client-panorama/src/runtimeConfig.shared.ts | 3 +++ clients/client-panorama/src/runtimeConfig.ts | 3 --- clients/client-personalize-events/package.json | 1 + clients/client-personalize-events/src/runtimeConfig.browser.ts | 3 --- clients/client-personalize-events/src/runtimeConfig.shared.ts | 3 +++ clients/client-personalize-events/src/runtimeConfig.ts | 3 --- clients/client-personalize-runtime/package.json | 1 + .../client-personalize-runtime/src/runtimeConfig.browser.ts | 3 --- clients/client-personalize-runtime/src/runtimeConfig.shared.ts | 3 +++ clients/client-personalize-runtime/src/runtimeConfig.ts | 3 --- clients/client-personalize/package.json | 1 + clients/client-personalize/src/runtimeConfig.browser.ts | 3 --- clients/client-personalize/src/runtimeConfig.shared.ts | 3 +++ clients/client-personalize/src/runtimeConfig.ts | 3 --- clients/client-pi/package.json | 1 + clients/client-pi/src/runtimeConfig.browser.ts | 3 --- clients/client-pi/src/runtimeConfig.shared.ts | 3 +++ clients/client-pi/src/runtimeConfig.ts | 3 --- clients/client-pinpoint-email/package.json | 1 + clients/client-pinpoint-email/src/runtimeConfig.browser.ts | 3 --- clients/client-pinpoint-email/src/runtimeConfig.shared.ts | 3 +++ clients/client-pinpoint-email/src/runtimeConfig.ts | 3 --- clients/client-pinpoint-sms-voice-v2/package.json | 1 + .../client-pinpoint-sms-voice-v2/src/runtimeConfig.browser.ts | 3 --- .../client-pinpoint-sms-voice-v2/src/runtimeConfig.shared.ts | 3 +++ clients/client-pinpoint-sms-voice-v2/src/runtimeConfig.ts | 3 --- clients/client-pinpoint-sms-voice/package.json | 1 + clients/client-pinpoint-sms-voice/src/runtimeConfig.browser.ts | 3 --- clients/client-pinpoint-sms-voice/src/runtimeConfig.shared.ts | 3 +++ clients/client-pinpoint-sms-voice/src/runtimeConfig.ts | 3 --- clients/client-pinpoint/package.json | 1 + clients/client-pinpoint/src/runtimeConfig.browser.ts | 3 --- clients/client-pinpoint/src/runtimeConfig.shared.ts | 3 +++ clients/client-pinpoint/src/runtimeConfig.ts | 3 --- clients/client-polly/package.json | 1 + clients/client-polly/src/runtimeConfig.browser.ts | 3 --- clients/client-polly/src/runtimeConfig.shared.ts | 3 +++ clients/client-polly/src/runtimeConfig.ts | 3 --- clients/client-pricing/package.json | 1 + clients/client-pricing/src/runtimeConfig.browser.ts | 3 --- clients/client-pricing/src/runtimeConfig.shared.ts | 3 +++ clients/client-pricing/src/runtimeConfig.ts | 3 --- clients/client-privatenetworks/package.json | 1 + clients/client-privatenetworks/src/runtimeConfig.browser.ts | 3 --- clients/client-privatenetworks/src/runtimeConfig.shared.ts | 3 +++ clients/client-privatenetworks/src/runtimeConfig.ts | 3 --- clients/client-proton/package.json | 1 + clients/client-proton/src/runtimeConfig.browser.ts | 3 --- clients/client-proton/src/runtimeConfig.shared.ts | 3 +++ clients/client-proton/src/runtimeConfig.ts | 3 --- clients/client-qldb-session/package.json | 1 + clients/client-qldb-session/src/runtimeConfig.browser.ts | 3 --- clients/client-qldb-session/src/runtimeConfig.shared.ts | 3 +++ clients/client-qldb-session/src/runtimeConfig.ts | 3 --- clients/client-qldb/package.json | 1 + clients/client-qldb/src/runtimeConfig.browser.ts | 3 --- clients/client-qldb/src/runtimeConfig.shared.ts | 3 +++ clients/client-qldb/src/runtimeConfig.ts | 3 --- clients/client-quicksight/package.json | 1 + clients/client-quicksight/src/runtimeConfig.browser.ts | 3 --- clients/client-quicksight/src/runtimeConfig.shared.ts | 3 +++ clients/client-quicksight/src/runtimeConfig.ts | 3 --- clients/client-ram/package.json | 1 + clients/client-ram/src/runtimeConfig.browser.ts | 3 --- clients/client-ram/src/runtimeConfig.shared.ts | 3 +++ clients/client-ram/src/runtimeConfig.ts | 3 --- clients/client-rbin/package.json | 1 + clients/client-rbin/src/runtimeConfig.browser.ts | 3 --- clients/client-rbin/src/runtimeConfig.shared.ts | 3 +++ clients/client-rbin/src/runtimeConfig.ts | 3 --- clients/client-rds-data/package.json | 1 + clients/client-rds-data/src/runtimeConfig.browser.ts | 3 --- clients/client-rds-data/src/runtimeConfig.shared.ts | 3 +++ clients/client-rds-data/src/runtimeConfig.ts | 3 --- clients/client-rds/package.json | 1 + clients/client-rds/src/runtimeConfig.browser.ts | 3 --- clients/client-rds/src/runtimeConfig.shared.ts | 3 +++ clients/client-rds/src/runtimeConfig.ts | 3 --- clients/client-redshift-data/package.json | 1 + clients/client-redshift-data/src/runtimeConfig.browser.ts | 3 --- clients/client-redshift-data/src/runtimeConfig.shared.ts | 3 +++ clients/client-redshift-data/src/runtimeConfig.ts | 3 --- clients/client-redshift-serverless/package.json | 1 + .../client-redshift-serverless/src/runtimeConfig.browser.ts | 3 --- clients/client-redshift-serverless/src/runtimeConfig.shared.ts | 3 +++ clients/client-redshift-serverless/src/runtimeConfig.ts | 3 --- clients/client-redshift/package.json | 1 + clients/client-redshift/src/runtimeConfig.browser.ts | 3 --- clients/client-redshift/src/runtimeConfig.shared.ts | 3 +++ clients/client-redshift/src/runtimeConfig.ts | 3 --- clients/client-rekognition/package.json | 1 + clients/client-rekognition/src/runtimeConfig.browser.ts | 3 --- clients/client-rekognition/src/runtimeConfig.shared.ts | 3 +++ clients/client-rekognition/src/runtimeConfig.ts | 3 --- clients/client-resiliencehub/package.json | 1 + clients/client-resiliencehub/src/runtimeConfig.browser.ts | 3 --- clients/client-resiliencehub/src/runtimeConfig.shared.ts | 3 +++ clients/client-resiliencehub/src/runtimeConfig.ts | 3 --- clients/client-resource-groups-tagging-api/package.json | 1 + .../src/runtimeConfig.browser.ts | 3 --- .../src/runtimeConfig.shared.ts | 3 +++ .../client-resource-groups-tagging-api/src/runtimeConfig.ts | 3 --- clients/client-resource-groups/package.json | 1 + clients/client-resource-groups/src/runtimeConfig.browser.ts | 3 --- clients/client-resource-groups/src/runtimeConfig.shared.ts | 3 +++ clients/client-resource-groups/src/runtimeConfig.ts | 3 --- clients/client-robomaker/package.json | 1 + clients/client-robomaker/src/runtimeConfig.browser.ts | 3 --- clients/client-robomaker/src/runtimeConfig.shared.ts | 3 +++ clients/client-robomaker/src/runtimeConfig.ts | 3 --- clients/client-rolesanywhere/package.json | 1 + clients/client-rolesanywhere/src/runtimeConfig.browser.ts | 3 --- clients/client-rolesanywhere/src/runtimeConfig.shared.ts | 3 +++ clients/client-rolesanywhere/src/runtimeConfig.ts | 3 --- clients/client-route-53-domains/package.json | 1 + clients/client-route-53-domains/src/runtimeConfig.browser.ts | 3 --- clients/client-route-53-domains/src/runtimeConfig.shared.ts | 3 +++ clients/client-route-53-domains/src/runtimeConfig.ts | 3 --- clients/client-route-53/package.json | 1 + clients/client-route-53/src/runtimeConfig.browser.ts | 3 --- clients/client-route-53/src/runtimeConfig.shared.ts | 3 +++ clients/client-route-53/src/runtimeConfig.ts | 3 --- clients/client-route53-recovery-cluster/package.json | 1 + .../src/runtimeConfig.browser.ts | 3 --- .../src/runtimeConfig.shared.ts | 3 +++ clients/client-route53-recovery-cluster/src/runtimeConfig.ts | 3 --- clients/client-route53-recovery-control-config/package.json | 1 + .../src/runtimeConfig.browser.ts | 3 --- .../src/runtimeConfig.shared.ts | 3 +++ .../src/runtimeConfig.ts | 3 --- clients/client-route53-recovery-readiness/package.json | 1 + .../src/runtimeConfig.browser.ts | 3 --- .../src/runtimeConfig.shared.ts | 3 +++ clients/client-route53-recovery-readiness/src/runtimeConfig.ts | 3 --- clients/client-route53resolver/package.json | 1 + clients/client-route53resolver/src/runtimeConfig.browser.ts | 3 --- clients/client-route53resolver/src/runtimeConfig.shared.ts | 3 +++ clients/client-route53resolver/src/runtimeConfig.ts | 3 --- clients/client-rum/package.json | 1 + clients/client-rum/src/runtimeConfig.browser.ts | 3 --- clients/client-rum/src/runtimeConfig.shared.ts | 3 +++ clients/client-rum/src/runtimeConfig.ts | 3 --- clients/client-s3-control/package.json | 1 + clients/client-s3-control/src/runtimeConfig.browser.ts | 3 --- clients/client-s3-control/src/runtimeConfig.shared.ts | 3 +++ clients/client-s3-control/src/runtimeConfig.ts | 3 --- clients/client-s3/package.json | 1 + clients/client-s3/src/runtimeConfig.browser.ts | 3 --- clients/client-s3/src/runtimeConfig.shared.ts | 3 +++ clients/client-s3/src/runtimeConfig.ts | 3 --- clients/client-s3outposts/package.json | 1 + clients/client-s3outposts/src/runtimeConfig.browser.ts | 3 --- clients/client-s3outposts/src/runtimeConfig.shared.ts | 3 +++ clients/client-s3outposts/src/runtimeConfig.ts | 3 --- clients/client-sagemaker-a2i-runtime/package.json | 1 + .../client-sagemaker-a2i-runtime/src/runtimeConfig.browser.ts | 3 --- .../client-sagemaker-a2i-runtime/src/runtimeConfig.shared.ts | 3 +++ clients/client-sagemaker-a2i-runtime/src/runtimeConfig.ts | 3 --- clients/client-sagemaker-edge/package.json | 1 + clients/client-sagemaker-edge/src/runtimeConfig.browser.ts | 3 --- clients/client-sagemaker-edge/src/runtimeConfig.shared.ts | 3 +++ clients/client-sagemaker-edge/src/runtimeConfig.ts | 3 --- clients/client-sagemaker-featurestore-runtime/package.json | 1 + .../src/runtimeConfig.browser.ts | 3 --- .../src/runtimeConfig.shared.ts | 3 +++ .../client-sagemaker-featurestore-runtime/src/runtimeConfig.ts | 3 --- clients/client-sagemaker-runtime/package.json | 1 + clients/client-sagemaker-runtime/src/runtimeConfig.browser.ts | 3 --- clients/client-sagemaker-runtime/src/runtimeConfig.shared.ts | 3 +++ clients/client-sagemaker-runtime/src/runtimeConfig.ts | 3 --- clients/client-sagemaker/package.json | 1 + clients/client-sagemaker/src/runtimeConfig.browser.ts | 3 --- clients/client-sagemaker/src/runtimeConfig.shared.ts | 3 +++ clients/client-sagemaker/src/runtimeConfig.ts | 3 --- clients/client-savingsplans/package.json | 1 + clients/client-savingsplans/src/runtimeConfig.browser.ts | 3 --- clients/client-savingsplans/src/runtimeConfig.shared.ts | 3 +++ clients/client-savingsplans/src/runtimeConfig.ts | 3 --- clients/client-schemas/package.json | 1 + clients/client-schemas/src/runtimeConfig.browser.ts | 3 --- clients/client-schemas/src/runtimeConfig.shared.ts | 3 +++ clients/client-schemas/src/runtimeConfig.ts | 3 --- clients/client-secrets-manager/package.json | 1 + clients/client-secrets-manager/src/runtimeConfig.browser.ts | 3 --- clients/client-secrets-manager/src/runtimeConfig.shared.ts | 3 +++ clients/client-secrets-manager/src/runtimeConfig.ts | 3 --- clients/client-securityhub/package.json | 1 + clients/client-securityhub/src/runtimeConfig.browser.ts | 3 --- clients/client-securityhub/src/runtimeConfig.shared.ts | 3 +++ clients/client-securityhub/src/runtimeConfig.ts | 3 --- clients/client-serverlessapplicationrepository/package.json | 1 + .../src/runtimeConfig.browser.ts | 3 --- .../src/runtimeConfig.shared.ts | 3 +++ .../src/runtimeConfig.ts | 3 --- clients/client-service-catalog-appregistry/package.json | 1 + .../src/runtimeConfig.browser.ts | 3 --- .../src/runtimeConfig.shared.ts | 3 +++ .../client-service-catalog-appregistry/src/runtimeConfig.ts | 3 --- clients/client-service-catalog/package.json | 1 + clients/client-service-catalog/src/runtimeConfig.browser.ts | 3 --- clients/client-service-catalog/src/runtimeConfig.shared.ts | 3 +++ clients/client-service-catalog/src/runtimeConfig.ts | 3 --- clients/client-service-quotas/package.json | 1 + clients/client-service-quotas/src/runtimeConfig.browser.ts | 3 --- clients/client-service-quotas/src/runtimeConfig.shared.ts | 3 +++ clients/client-service-quotas/src/runtimeConfig.ts | 3 --- clients/client-servicediscovery/package.json | 1 + clients/client-servicediscovery/src/runtimeConfig.browser.ts | 3 --- clients/client-servicediscovery/src/runtimeConfig.shared.ts | 3 +++ clients/client-servicediscovery/src/runtimeConfig.ts | 3 --- clients/client-ses/package.json | 1 + clients/client-ses/src/runtimeConfig.browser.ts | 3 --- clients/client-ses/src/runtimeConfig.shared.ts | 3 +++ clients/client-ses/src/runtimeConfig.ts | 3 --- clients/client-sesv2/package.json | 1 + clients/client-sesv2/src/runtimeConfig.browser.ts | 3 --- clients/client-sesv2/src/runtimeConfig.shared.ts | 3 +++ clients/client-sesv2/src/runtimeConfig.ts | 3 --- clients/client-sfn/package.json | 1 + clients/client-sfn/src/runtimeConfig.browser.ts | 3 --- clients/client-sfn/src/runtimeConfig.shared.ts | 3 +++ clients/client-sfn/src/runtimeConfig.ts | 3 --- clients/client-shield/package.json | 1 + clients/client-shield/src/runtimeConfig.browser.ts | 3 --- clients/client-shield/src/runtimeConfig.shared.ts | 3 +++ clients/client-shield/src/runtimeConfig.ts | 3 --- clients/client-signer/package.json | 1 + clients/client-signer/src/runtimeConfig.browser.ts | 3 --- clients/client-signer/src/runtimeConfig.shared.ts | 3 +++ clients/client-signer/src/runtimeConfig.ts | 3 --- clients/client-sms/package.json | 1 + clients/client-sms/src/runtimeConfig.browser.ts | 3 --- clients/client-sms/src/runtimeConfig.shared.ts | 3 +++ clients/client-sms/src/runtimeConfig.ts | 3 --- clients/client-snow-device-management/package.json | 1 + .../client-snow-device-management/src/runtimeConfig.browser.ts | 3 --- .../client-snow-device-management/src/runtimeConfig.shared.ts | 3 +++ clients/client-snow-device-management/src/runtimeConfig.ts | 3 --- clients/client-snowball/package.json | 1 + clients/client-snowball/src/runtimeConfig.browser.ts | 3 --- clients/client-snowball/src/runtimeConfig.shared.ts | 3 +++ clients/client-snowball/src/runtimeConfig.ts | 3 --- clients/client-sns/package.json | 1 + clients/client-sns/src/runtimeConfig.browser.ts | 3 --- clients/client-sns/src/runtimeConfig.shared.ts | 3 +++ clients/client-sns/src/runtimeConfig.ts | 3 --- clients/client-sqs/package.json | 1 + clients/client-sqs/src/runtimeConfig.browser.ts | 3 --- clients/client-sqs/src/runtimeConfig.shared.ts | 3 +++ clients/client-sqs/src/runtimeConfig.ts | 3 --- clients/client-ssm-contacts/package.json | 1 + clients/client-ssm-contacts/src/runtimeConfig.browser.ts | 3 --- clients/client-ssm-contacts/src/runtimeConfig.shared.ts | 3 +++ clients/client-ssm-contacts/src/runtimeConfig.ts | 3 --- clients/client-ssm-incidents/package.json | 1 + clients/client-ssm-incidents/src/runtimeConfig.browser.ts | 3 --- clients/client-ssm-incidents/src/runtimeConfig.shared.ts | 3 +++ clients/client-ssm-incidents/src/runtimeConfig.ts | 3 --- clients/client-ssm/package.json | 1 + clients/client-ssm/src/runtimeConfig.browser.ts | 3 --- clients/client-ssm/src/runtimeConfig.shared.ts | 3 +++ clients/client-ssm/src/runtimeConfig.ts | 3 --- clients/client-sso-admin/package.json | 1 + clients/client-sso-admin/src/runtimeConfig.browser.ts | 3 --- clients/client-sso-admin/src/runtimeConfig.shared.ts | 3 +++ clients/client-sso-admin/src/runtimeConfig.ts | 3 --- clients/client-sso-oidc/package.json | 1 + clients/client-sso-oidc/src/runtimeConfig.browser.ts | 3 --- clients/client-sso-oidc/src/runtimeConfig.shared.ts | 3 +++ clients/client-sso-oidc/src/runtimeConfig.ts | 3 --- clients/client-sso/package.json | 1 + clients/client-sso/src/runtimeConfig.browser.ts | 3 --- clients/client-sso/src/runtimeConfig.shared.ts | 3 +++ clients/client-sso/src/runtimeConfig.ts | 3 --- clients/client-storage-gateway/package.json | 1 + clients/client-storage-gateway/src/runtimeConfig.browser.ts | 3 --- clients/client-storage-gateway/src/runtimeConfig.shared.ts | 3 +++ clients/client-storage-gateway/src/runtimeConfig.ts | 3 --- clients/client-sts/package.json | 1 + clients/client-sts/src/runtimeConfig.browser.ts | 3 --- clients/client-sts/src/runtimeConfig.shared.ts | 3 +++ clients/client-sts/src/runtimeConfig.ts | 3 --- clients/client-support-app/package.json | 1 + clients/client-support-app/src/runtimeConfig.browser.ts | 3 --- clients/client-support-app/src/runtimeConfig.shared.ts | 3 +++ clients/client-support-app/src/runtimeConfig.ts | 3 --- clients/client-support/package.json | 1 + clients/client-support/src/runtimeConfig.browser.ts | 3 --- clients/client-support/src/runtimeConfig.shared.ts | 3 +++ clients/client-support/src/runtimeConfig.ts | 3 --- clients/client-swf/package.json | 1 + clients/client-swf/src/runtimeConfig.browser.ts | 3 --- clients/client-swf/src/runtimeConfig.shared.ts | 3 +++ clients/client-swf/src/runtimeConfig.ts | 3 --- clients/client-synthetics/package.json | 1 + clients/client-synthetics/src/runtimeConfig.browser.ts | 3 --- clients/client-synthetics/src/runtimeConfig.shared.ts | 3 +++ clients/client-synthetics/src/runtimeConfig.ts | 3 --- clients/client-textract/package.json | 1 + clients/client-textract/src/runtimeConfig.browser.ts | 3 --- clients/client-textract/src/runtimeConfig.shared.ts | 3 +++ clients/client-textract/src/runtimeConfig.ts | 3 --- clients/client-timestream-query/package.json | 1 + clients/client-timestream-query/src/runtimeConfig.browser.ts | 3 --- clients/client-timestream-query/src/runtimeConfig.shared.ts | 3 +++ clients/client-timestream-query/src/runtimeConfig.ts | 3 --- clients/client-timestream-write/package.json | 1 + clients/client-timestream-write/src/runtimeConfig.browser.ts | 3 --- clients/client-timestream-write/src/runtimeConfig.shared.ts | 3 +++ clients/client-timestream-write/src/runtimeConfig.ts | 3 --- clients/client-transcribe-streaming/package.json | 1 + .../client-transcribe-streaming/src/runtimeConfig.browser.ts | 3 --- .../client-transcribe-streaming/src/runtimeConfig.shared.ts | 3 +++ clients/client-transcribe-streaming/src/runtimeConfig.ts | 3 --- clients/client-transcribe/package.json | 1 + clients/client-transcribe/src/runtimeConfig.browser.ts | 3 --- clients/client-transcribe/src/runtimeConfig.shared.ts | 3 +++ clients/client-transcribe/src/runtimeConfig.ts | 3 --- clients/client-transfer/package.json | 1 + clients/client-transfer/src/runtimeConfig.browser.ts | 3 --- clients/client-transfer/src/runtimeConfig.shared.ts | 3 +++ clients/client-transfer/src/runtimeConfig.ts | 3 --- clients/client-translate/package.json | 1 + clients/client-translate/src/runtimeConfig.browser.ts | 3 --- clients/client-translate/src/runtimeConfig.shared.ts | 3 +++ clients/client-translate/src/runtimeConfig.ts | 3 --- clients/client-voice-id/package.json | 1 + clients/client-voice-id/src/runtimeConfig.browser.ts | 3 --- clients/client-voice-id/src/runtimeConfig.shared.ts | 3 +++ clients/client-voice-id/src/runtimeConfig.ts | 3 --- clients/client-waf-regional/package.json | 1 + clients/client-waf-regional/src/runtimeConfig.browser.ts | 3 --- clients/client-waf-regional/src/runtimeConfig.shared.ts | 3 +++ clients/client-waf-regional/src/runtimeConfig.ts | 3 --- clients/client-waf/package.json | 1 + clients/client-waf/src/runtimeConfig.browser.ts | 3 --- clients/client-waf/src/runtimeConfig.shared.ts | 3 +++ clients/client-waf/src/runtimeConfig.ts | 3 --- clients/client-wafv2/package.json | 1 + clients/client-wafv2/src/runtimeConfig.browser.ts | 3 --- clients/client-wafv2/src/runtimeConfig.shared.ts | 3 +++ clients/client-wafv2/src/runtimeConfig.ts | 3 --- clients/client-wellarchitected/package.json | 1 + clients/client-wellarchitected/src/runtimeConfig.browser.ts | 3 --- clients/client-wellarchitected/src/runtimeConfig.shared.ts | 3 +++ clients/client-wellarchitected/src/runtimeConfig.ts | 3 --- clients/client-wisdom/package.json | 1 + clients/client-wisdom/src/runtimeConfig.browser.ts | 3 --- clients/client-wisdom/src/runtimeConfig.shared.ts | 3 +++ clients/client-wisdom/src/runtimeConfig.ts | 3 --- clients/client-workdocs/package.json | 1 + clients/client-workdocs/src/runtimeConfig.browser.ts | 3 --- clients/client-workdocs/src/runtimeConfig.shared.ts | 3 +++ clients/client-workdocs/src/runtimeConfig.ts | 3 --- clients/client-worklink/package.json | 1 + clients/client-worklink/src/runtimeConfig.browser.ts | 3 --- clients/client-worklink/src/runtimeConfig.shared.ts | 3 +++ clients/client-worklink/src/runtimeConfig.ts | 3 --- clients/client-workmail/package.json | 1 + clients/client-workmail/src/runtimeConfig.browser.ts | 3 --- clients/client-workmail/src/runtimeConfig.shared.ts | 3 +++ clients/client-workmail/src/runtimeConfig.ts | 3 --- clients/client-workmailmessageflow/package.json | 1 + .../client-workmailmessageflow/src/runtimeConfig.browser.ts | 3 --- clients/client-workmailmessageflow/src/runtimeConfig.shared.ts | 3 +++ clients/client-workmailmessageflow/src/runtimeConfig.ts | 3 --- clients/client-workspaces-web/package.json | 1 + clients/client-workspaces-web/src/runtimeConfig.browser.ts | 3 --- clients/client-workspaces-web/src/runtimeConfig.shared.ts | 3 +++ clients/client-workspaces-web/src/runtimeConfig.ts | 3 --- clients/client-workspaces/package.json | 1 + clients/client-workspaces/src/runtimeConfig.browser.ts | 3 --- clients/client-workspaces/src/runtimeConfig.shared.ts | 3 +++ clients/client-workspaces/src/runtimeConfig.ts | 3 --- clients/client-xray/package.json | 1 + clients/client-xray/src/runtimeConfig.browser.ts | 3 --- clients/client-xray/src/runtimeConfig.shared.ts | 3 +++ clients/client-xray/src/runtimeConfig.ts | 3 --- private/aws-echo-service/package.json | 1 + private/aws-echo-service/src/runtimeConfig.browser.ts | 3 --- private/aws-echo-service/src/runtimeConfig.shared.ts | 3 +++ private/aws-echo-service/src/runtimeConfig.ts | 3 --- private/aws-protocoltests-ec2/package.json | 1 + private/aws-protocoltests-ec2/src/runtimeConfig.browser.ts | 3 --- private/aws-protocoltests-ec2/src/runtimeConfig.shared.ts | 3 +++ private/aws-protocoltests-ec2/src/runtimeConfig.ts | 3 --- private/aws-protocoltests-json-10/package.json | 1 + private/aws-protocoltests-json-10/src/runtimeConfig.browser.ts | 3 --- private/aws-protocoltests-json-10/src/runtimeConfig.shared.ts | 3 +++ private/aws-protocoltests-json-10/src/runtimeConfig.ts | 3 --- private/aws-protocoltests-json/package.json | 1 + private/aws-protocoltests-json/src/runtimeConfig.browser.ts | 3 --- private/aws-protocoltests-json/src/runtimeConfig.shared.ts | 3 +++ private/aws-protocoltests-json/src/runtimeConfig.ts | 3 --- private/aws-protocoltests-query/package.json | 1 + private/aws-protocoltests-query/src/runtimeConfig.browser.ts | 3 --- private/aws-protocoltests-query/src/runtimeConfig.shared.ts | 3 +++ private/aws-protocoltests-query/src/runtimeConfig.ts | 3 --- private/aws-protocoltests-restjson/package.json | 1 + .../aws-protocoltests-restjson/src/runtimeConfig.browser.ts | 3 --- private/aws-protocoltests-restjson/src/runtimeConfig.shared.ts | 3 +++ private/aws-protocoltests-restjson/src/runtimeConfig.ts | 3 --- private/aws-protocoltests-restxml/package.json | 1 + private/aws-protocoltests-restxml/src/runtimeConfig.browser.ts | 3 --- private/aws-protocoltests-restxml/src/runtimeConfig.shared.ts | 3 +++ private/aws-protocoltests-restxml/src/runtimeConfig.ts | 3 --- 1296 files changed, 1296 insertions(+), 1944 deletions(-) diff --git a/clients/client-accessanalyzer/package.json b/clients/client-accessanalyzer/package.json index 7915671d8949..04ff0d843d2f 100644 --- a/clients/client-accessanalyzer/package.json +++ b/clients/client-accessanalyzer/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-accessanalyzer/src/runtimeConfig.browser.ts b/clients/client-accessanalyzer/src/runtimeConfig.browser.ts index 7769a22c0427..b4e380587884 100644 --- a/clients/client-accessanalyzer/src/runtimeConfig.browser.ts +++ b/clients/client-accessanalyzer/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: AccessAnalyzerClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-accessanalyzer/src/runtimeConfig.shared.ts b/clients/client-accessanalyzer/src/runtimeConfig.shared.ts index ad612b38870c..4a036aad05e7 100644 --- a/clients/client-accessanalyzer/src/runtimeConfig.shared.ts +++ b/clients/client-accessanalyzer/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { AccessAnalyzerClientConfig } from "./AccessAnalyzerClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: AccessAnalyzerClientConfig) => ({ apiVersion: "2019-11-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-accessanalyzer/src/runtimeConfig.ts b/clients/client-accessanalyzer/src/runtimeConfig.ts index a4f773aa5d33..e4edee67344c 100644 --- a/clients/client-accessanalyzer/src/runtimeConfig.ts +++ b/clients/client-accessanalyzer/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: AccessAnalyzerClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-account/package.json b/clients/client-account/package.json index c2a1efa44922..b1b16eab85e7 100644 --- a/clients/client-account/package.json +++ b/clients/client-account/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-account/src/runtimeConfig.browser.ts b/clients/client-account/src/runtimeConfig.browser.ts index 82f6c89e356f..a2f85dc7141b 100644 --- a/clients/client-account/src/runtimeConfig.browser.ts +++ b/clients/client-account/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: AccountClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-account/src/runtimeConfig.shared.ts b/clients/client-account/src/runtimeConfig.shared.ts index 8c56eda5a2ac..d507d26a8573 100644 --- a/clients/client-account/src/runtimeConfig.shared.ts +++ b/clients/client-account/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { AccountClientConfig } from "./AccountClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: AccountClientConfig) => ({ apiVersion: "2021-02-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-account/src/runtimeConfig.ts b/clients/client-account/src/runtimeConfig.ts index 93a549d52fcf..6c3bad0e144c 100644 --- a/clients/client-account/src/runtimeConfig.ts +++ b/clients/client-account/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: AccountClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-acm-pca/package.json b/clients/client-acm-pca/package.json index f5fa3cf6906b..9d5445bd9160 100644 --- a/clients/client-acm-pca/package.json +++ b/clients/client-acm-pca/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-acm-pca/src/runtimeConfig.browser.ts b/clients/client-acm-pca/src/runtimeConfig.browser.ts index ec6d6863c4d5..e03e35e60e51 100644 --- a/clients/client-acm-pca/src/runtimeConfig.browser.ts +++ b/clients/client-acm-pca/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: ACMPCAClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-acm-pca/src/runtimeConfig.shared.ts b/clients/client-acm-pca/src/runtimeConfig.shared.ts index 275b5a3eb9e4..983b9d405623 100644 --- a/clients/client-acm-pca/src/runtimeConfig.shared.ts +++ b/clients/client-acm-pca/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { ACMPCAClientConfig } from "./ACMPCAClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: ACMPCAClientConfig) => ({ apiVersion: "2017-08-22", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-acm-pca/src/runtimeConfig.ts b/clients/client-acm-pca/src/runtimeConfig.ts index 6c9cad8699c0..7fb8cee13a2e 100644 --- a/clients/client-acm-pca/src/runtimeConfig.ts +++ b/clients/client-acm-pca/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: ACMPCAClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-acm/package.json b/clients/client-acm/package.json index bec59d32e09d..06b1dbea4229 100644 --- a/clients/client-acm/package.json +++ b/clients/client-acm/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-acm/src/runtimeConfig.browser.ts b/clients/client-acm/src/runtimeConfig.browser.ts index 64b38e426672..8e62e25b3040 100644 --- a/clients/client-acm/src/runtimeConfig.browser.ts +++ b/clients/client-acm/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: ACMClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-acm/src/runtimeConfig.shared.ts b/clients/client-acm/src/runtimeConfig.shared.ts index 65e787cfc254..91fd9b0cafb4 100644 --- a/clients/client-acm/src/runtimeConfig.shared.ts +++ b/clients/client-acm/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { ACMClientConfig } from "./ACMClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: ACMClientConfig) => ({ apiVersion: "2015-12-08", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-acm/src/runtimeConfig.ts b/clients/client-acm/src/runtimeConfig.ts index 9e4b95f19551..d9a29e23c7fa 100644 --- a/clients/client-acm/src/runtimeConfig.ts +++ b/clients/client-acm/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: ACMClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-alexa-for-business/package.json b/clients/client-alexa-for-business/package.json index 3b0f240ea330..cb8073f5bca6 100644 --- a/clients/client-alexa-for-business/package.json +++ b/clients/client-alexa-for-business/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-alexa-for-business/src/runtimeConfig.browser.ts b/clients/client-alexa-for-business/src/runtimeConfig.browser.ts index b2191c2159ec..fca3b6acf759 100644 --- a/clients/client-alexa-for-business/src/runtimeConfig.browser.ts +++ b/clients/client-alexa-for-business/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: AlexaForBusinessClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-alexa-for-business/src/runtimeConfig.shared.ts b/clients/client-alexa-for-business/src/runtimeConfig.shared.ts index fcbd497316f5..7ccf5ddcd10e 100644 --- a/clients/client-alexa-for-business/src/runtimeConfig.shared.ts +++ b/clients/client-alexa-for-business/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { AlexaForBusinessClientConfig } from "./AlexaForBusinessClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: AlexaForBusinessClientConfig) => ({ apiVersion: "2017-11-09", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-alexa-for-business/src/runtimeConfig.ts b/clients/client-alexa-for-business/src/runtimeConfig.ts index 43c1f1a673fc..ed19606b9f47 100644 --- a/clients/client-alexa-for-business/src/runtimeConfig.ts +++ b/clients/client-alexa-for-business/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: AlexaForBusinessClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-amp/package.json b/clients/client-amp/package.json index 334206803fa4..ac03f45595e9 100644 --- a/clients/client-amp/package.json +++ b/clients/client-amp/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-amp/src/runtimeConfig.browser.ts b/clients/client-amp/src/runtimeConfig.browser.ts index b4c376513a91..662449e0b937 100644 --- a/clients/client-amp/src/runtimeConfig.browser.ts +++ b/clients/client-amp/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: AmpClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-amp/src/runtimeConfig.shared.ts b/clients/client-amp/src/runtimeConfig.shared.ts index 166cd565a45e..dfab87a2345b 100644 --- a/clients/client-amp/src/runtimeConfig.shared.ts +++ b/clients/client-amp/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { AmpClientConfig } from "./AmpClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: AmpClientConfig) => ({ apiVersion: "2020-08-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-amp/src/runtimeConfig.ts b/clients/client-amp/src/runtimeConfig.ts index 00ad2afc0efa..2c415e00d85b 100644 --- a/clients/client-amp/src/runtimeConfig.ts +++ b/clients/client-amp/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: AmpClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-amplify/package.json b/clients/client-amplify/package.json index b83fc523caf9..ea2967bcec0c 100644 --- a/clients/client-amplify/package.json +++ b/clients/client-amplify/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-amplify/src/runtimeConfig.browser.ts b/clients/client-amplify/src/runtimeConfig.browser.ts index 502576a896e1..42c7270df24c 100644 --- a/clients/client-amplify/src/runtimeConfig.browser.ts +++ b/clients/client-amplify/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: AmplifyClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-amplify/src/runtimeConfig.shared.ts b/clients/client-amplify/src/runtimeConfig.shared.ts index d2148456fb9d..cd978bba3854 100644 --- a/clients/client-amplify/src/runtimeConfig.shared.ts +++ b/clients/client-amplify/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { AmplifyClientConfig } from "./AmplifyClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: AmplifyClientConfig) => ({ apiVersion: "2017-07-25", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-amplify/src/runtimeConfig.ts b/clients/client-amplify/src/runtimeConfig.ts index baff96025c17..f663f8aad236 100644 --- a/clients/client-amplify/src/runtimeConfig.ts +++ b/clients/client-amplify/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: AmplifyClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-amplifybackend/package.json b/clients/client-amplifybackend/package.json index 3bf959502a1e..065e2b764565 100644 --- a/clients/client-amplifybackend/package.json +++ b/clients/client-amplifybackend/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-amplifybackend/src/runtimeConfig.browser.ts b/clients/client-amplifybackend/src/runtimeConfig.browser.ts index 26bd1b1a3b0e..e37493131312 100644 --- a/clients/client-amplifybackend/src/runtimeConfig.browser.ts +++ b/clients/client-amplifybackend/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: AmplifyBackendClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-amplifybackend/src/runtimeConfig.shared.ts b/clients/client-amplifybackend/src/runtimeConfig.shared.ts index fb13e71c59bd..20ace5ca74b8 100644 --- a/clients/client-amplifybackend/src/runtimeConfig.shared.ts +++ b/clients/client-amplifybackend/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { AmplifyBackendClientConfig } from "./AmplifyBackendClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: AmplifyBackendClientConfig) => ({ apiVersion: "2020-08-11", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-amplifybackend/src/runtimeConfig.ts b/clients/client-amplifybackend/src/runtimeConfig.ts index e6ed67d32a88..9c3a3bee9e22 100644 --- a/clients/client-amplifybackend/src/runtimeConfig.ts +++ b/clients/client-amplifybackend/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: AmplifyBackendClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-amplifyuibuilder/package.json b/clients/client-amplifyuibuilder/package.json index 9fec228efe5f..add2df3a5df1 100644 --- a/clients/client-amplifyuibuilder/package.json +++ b/clients/client-amplifyuibuilder/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-amplifyuibuilder/src/runtimeConfig.browser.ts b/clients/client-amplifyuibuilder/src/runtimeConfig.browser.ts index 76f50d00e82e..14f83e15ac36 100644 --- a/clients/client-amplifyuibuilder/src/runtimeConfig.browser.ts +++ b/clients/client-amplifyuibuilder/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: AmplifyUIBuilderClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-amplifyuibuilder/src/runtimeConfig.shared.ts b/clients/client-amplifyuibuilder/src/runtimeConfig.shared.ts index 6ee519c81e6c..e1a245ac22aa 100644 --- a/clients/client-amplifyuibuilder/src/runtimeConfig.shared.ts +++ b/clients/client-amplifyuibuilder/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { AmplifyUIBuilderClientConfig } from "./AmplifyUIBuilderClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: AmplifyUIBuilderClientConfig) => ({ apiVersion: "2021-08-11", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-amplifyuibuilder/src/runtimeConfig.ts b/clients/client-amplifyuibuilder/src/runtimeConfig.ts index aef5c4cd9e77..278c0bcdcc29 100644 --- a/clients/client-amplifyuibuilder/src/runtimeConfig.ts +++ b/clients/client-amplifyuibuilder/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: AmplifyUIBuilderClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-api-gateway/package.json b/clients/client-api-gateway/package.json index c05caa473870..e066d0d11c66 100644 --- a/clients/client-api-gateway/package.json +++ b/clients/client-api-gateway/package.json @@ -42,6 +42,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-api-gateway/src/runtimeConfig.browser.ts b/clients/client-api-gateway/src/runtimeConfig.browser.ts index 77c348c655ab..61f89b3cbdc8 100644 --- a/clients/client-api-gateway/src/runtimeConfig.browser.ts +++ b/clients/client-api-gateway/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: APIGatewayClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-api-gateway/src/runtimeConfig.shared.ts b/clients/client-api-gateway/src/runtimeConfig.shared.ts index eece83c9c92b..d5dc78664c18 100644 --- a/clients/client-api-gateway/src/runtimeConfig.shared.ts +++ b/clients/client-api-gateway/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { APIGatewayClientConfig } from "./APIGatewayClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: APIGatewayClientConfig) => ({ apiVersion: "2015-07-09", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-api-gateway/src/runtimeConfig.ts b/clients/client-api-gateway/src/runtimeConfig.ts index 556e9d3126ec..8f0aec436f87 100644 --- a/clients/client-api-gateway/src/runtimeConfig.ts +++ b/clients/client-api-gateway/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: APIGatewayClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-apigatewaymanagementapi/package.json b/clients/client-apigatewaymanagementapi/package.json index a062c281c38d..b127eaa3cd49 100644 --- a/clients/client-apigatewaymanagementapi/package.json +++ b/clients/client-apigatewaymanagementapi/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-apigatewaymanagementapi/src/runtimeConfig.browser.ts b/clients/client-apigatewaymanagementapi/src/runtimeConfig.browser.ts index 2e5f08ef6714..688be35a2742 100644 --- a/clients/client-apigatewaymanagementapi/src/runtimeConfig.browser.ts +++ b/clients/client-apigatewaymanagementapi/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: ApiGatewayManagementApiClientConfig) => ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-apigatewaymanagementapi/src/runtimeConfig.shared.ts b/clients/client-apigatewaymanagementapi/src/runtimeConfig.shared.ts index 8e69c434d706..58c46e602d9a 100644 --- a/clients/client-apigatewaymanagementapi/src/runtimeConfig.shared.ts +++ b/clients/client-apigatewaymanagementapi/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { ApiGatewayManagementApiClientConfig } from "./ApiGatewayManagementApiClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: ApiGatewayManagementApiClientConfig) => ({ apiVersion: "2018-11-29", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-apigatewaymanagementapi/src/runtimeConfig.ts b/clients/client-apigatewaymanagementapi/src/runtimeConfig.ts index 24e38d415826..8773b35b810c 100644 --- a/clients/client-apigatewaymanagementapi/src/runtimeConfig.ts +++ b/clients/client-apigatewaymanagementapi/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: ApiGatewayManagementApiClientConfig) => ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-apigatewayv2/package.json b/clients/client-apigatewayv2/package.json index 5aa4a7220f44..47e008ca11a7 100644 --- a/clients/client-apigatewayv2/package.json +++ b/clients/client-apigatewayv2/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-apigatewayv2/src/runtimeConfig.browser.ts b/clients/client-apigatewayv2/src/runtimeConfig.browser.ts index a5077b6ad975..43191e573320 100644 --- a/clients/client-apigatewayv2/src/runtimeConfig.browser.ts +++ b/clients/client-apigatewayv2/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: ApiGatewayV2ClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-apigatewayv2/src/runtimeConfig.shared.ts b/clients/client-apigatewayv2/src/runtimeConfig.shared.ts index 5a834d3f4d9a..28270122e946 100644 --- a/clients/client-apigatewayv2/src/runtimeConfig.shared.ts +++ b/clients/client-apigatewayv2/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { ApiGatewayV2ClientConfig } from "./ApiGatewayV2Client"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: ApiGatewayV2ClientConfig) => ({ apiVersion: "2018-11-29", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-apigatewayv2/src/runtimeConfig.ts b/clients/client-apigatewayv2/src/runtimeConfig.ts index 557d5ae5628c..3635aae82437 100644 --- a/clients/client-apigatewayv2/src/runtimeConfig.ts +++ b/clients/client-apigatewayv2/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: ApiGatewayV2ClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-app-mesh/package.json b/clients/client-app-mesh/package.json index 734f8a2db44c..123ac545e970 100644 --- a/clients/client-app-mesh/package.json +++ b/clients/client-app-mesh/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-app-mesh/src/runtimeConfig.browser.ts b/clients/client-app-mesh/src/runtimeConfig.browser.ts index 235a011b276b..bff598436587 100644 --- a/clients/client-app-mesh/src/runtimeConfig.browser.ts +++ b/clients/client-app-mesh/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: AppMeshClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-app-mesh/src/runtimeConfig.shared.ts b/clients/client-app-mesh/src/runtimeConfig.shared.ts index b48f43e814d3..a691609028f4 100644 --- a/clients/client-app-mesh/src/runtimeConfig.shared.ts +++ b/clients/client-app-mesh/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { AppMeshClientConfig } from "./AppMeshClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: AppMeshClientConfig) => ({ apiVersion: "2019-01-25", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-app-mesh/src/runtimeConfig.ts b/clients/client-app-mesh/src/runtimeConfig.ts index 39fe4018b73d..0b54e6580e57 100644 --- a/clients/client-app-mesh/src/runtimeConfig.ts +++ b/clients/client-app-mesh/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: AppMeshClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-appconfig/package.json b/clients/client-appconfig/package.json index c38abbfdf445..4471515a6325 100644 --- a/clients/client-appconfig/package.json +++ b/clients/client-appconfig/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-appconfig/src/runtimeConfig.browser.ts b/clients/client-appconfig/src/runtimeConfig.browser.ts index 66111196a977..613853829255 100644 --- a/clients/client-appconfig/src/runtimeConfig.browser.ts +++ b/clients/client-appconfig/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: AppConfigClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-appconfig/src/runtimeConfig.shared.ts b/clients/client-appconfig/src/runtimeConfig.shared.ts index b627fbbca5ea..279defb48fab 100644 --- a/clients/client-appconfig/src/runtimeConfig.shared.ts +++ b/clients/client-appconfig/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { AppConfigClientConfig } from "./AppConfigClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: AppConfigClientConfig) => ({ apiVersion: "2019-10-09", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-appconfig/src/runtimeConfig.ts b/clients/client-appconfig/src/runtimeConfig.ts index 62157fc3b277..20ef467edb17 100644 --- a/clients/client-appconfig/src/runtimeConfig.ts +++ b/clients/client-appconfig/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: AppConfigClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-appconfigdata/package.json b/clients/client-appconfigdata/package.json index d11ea63edf27..78bb0c0ea948 100644 --- a/clients/client-appconfigdata/package.json +++ b/clients/client-appconfigdata/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-appconfigdata/src/runtimeConfig.browser.ts b/clients/client-appconfigdata/src/runtimeConfig.browser.ts index 57885acecd2c..d47e6a224a81 100644 --- a/clients/client-appconfigdata/src/runtimeConfig.browser.ts +++ b/clients/client-appconfigdata/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: AppConfigDataClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-appconfigdata/src/runtimeConfig.shared.ts b/clients/client-appconfigdata/src/runtimeConfig.shared.ts index ebc8a2215317..69e11e1af2d0 100644 --- a/clients/client-appconfigdata/src/runtimeConfig.shared.ts +++ b/clients/client-appconfigdata/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { AppConfigDataClientConfig } from "./AppConfigDataClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: AppConfigDataClientConfig) => ({ apiVersion: "2021-11-11", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-appconfigdata/src/runtimeConfig.ts b/clients/client-appconfigdata/src/runtimeConfig.ts index 4ba315a8ab52..cf2ca0e9107e 100644 --- a/clients/client-appconfigdata/src/runtimeConfig.ts +++ b/clients/client-appconfigdata/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: AppConfigDataClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-appflow/package.json b/clients/client-appflow/package.json index 66956fcfc1a7..eb4a1cc52272 100644 --- a/clients/client-appflow/package.json +++ b/clients/client-appflow/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-appflow/src/runtimeConfig.browser.ts b/clients/client-appflow/src/runtimeConfig.browser.ts index eeddc4adceed..4ae7159d828c 100644 --- a/clients/client-appflow/src/runtimeConfig.browser.ts +++ b/clients/client-appflow/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: AppflowClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-appflow/src/runtimeConfig.shared.ts b/clients/client-appflow/src/runtimeConfig.shared.ts index 07b81f84db0c..e88e4493f27d 100644 --- a/clients/client-appflow/src/runtimeConfig.shared.ts +++ b/clients/client-appflow/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { AppflowClientConfig } from "./AppflowClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: AppflowClientConfig) => ({ apiVersion: "2020-08-23", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-appflow/src/runtimeConfig.ts b/clients/client-appflow/src/runtimeConfig.ts index 2fc427870c31..c10d170ac30d 100644 --- a/clients/client-appflow/src/runtimeConfig.ts +++ b/clients/client-appflow/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: AppflowClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-appintegrations/package.json b/clients/client-appintegrations/package.json index e3f7924e3a0c..6bd326192a40 100644 --- a/clients/client-appintegrations/package.json +++ b/clients/client-appintegrations/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-appintegrations/src/runtimeConfig.browser.ts b/clients/client-appintegrations/src/runtimeConfig.browser.ts index b2dd254a73df..cb4dfeba3334 100644 --- a/clients/client-appintegrations/src/runtimeConfig.browser.ts +++ b/clients/client-appintegrations/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: AppIntegrationsClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-appintegrations/src/runtimeConfig.shared.ts b/clients/client-appintegrations/src/runtimeConfig.shared.ts index ed40596737bc..812ab07451f1 100644 --- a/clients/client-appintegrations/src/runtimeConfig.shared.ts +++ b/clients/client-appintegrations/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { AppIntegrationsClientConfig } from "./AppIntegrationsClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: AppIntegrationsClientConfig) => ({ apiVersion: "2020-07-29", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-appintegrations/src/runtimeConfig.ts b/clients/client-appintegrations/src/runtimeConfig.ts index 4fadf4e6829b..eb40e0ec46aa 100644 --- a/clients/client-appintegrations/src/runtimeConfig.ts +++ b/clients/client-appintegrations/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: AppIntegrationsClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-application-auto-scaling/package.json b/clients/client-application-auto-scaling/package.json index 4a9ef2b8b0d6..93c4b7ee8726 100644 --- a/clients/client-application-auto-scaling/package.json +++ b/clients/client-application-auto-scaling/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-application-auto-scaling/src/runtimeConfig.browser.ts b/clients/client-application-auto-scaling/src/runtimeConfig.browser.ts index f823f792d60d..64183495cd72 100644 --- a/clients/client-application-auto-scaling/src/runtimeConfig.browser.ts +++ b/clients/client-application-auto-scaling/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: ApplicationAutoScalingClientConfig) => ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-application-auto-scaling/src/runtimeConfig.shared.ts b/clients/client-application-auto-scaling/src/runtimeConfig.shared.ts index 438c9090cab7..4266d972a156 100644 --- a/clients/client-application-auto-scaling/src/runtimeConfig.shared.ts +++ b/clients/client-application-auto-scaling/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { ApplicationAutoScalingClientConfig } from "./ApplicationAutoScalingClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: ApplicationAutoScalingClientConfig) => ({ apiVersion: "2016-02-06", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-application-auto-scaling/src/runtimeConfig.ts b/clients/client-application-auto-scaling/src/runtimeConfig.ts index 21f559d43696..61157db6cb08 100644 --- a/clients/client-application-auto-scaling/src/runtimeConfig.ts +++ b/clients/client-application-auto-scaling/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: ApplicationAutoScalingClientConfig) => ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-application-discovery-service/package.json b/clients/client-application-discovery-service/package.json index 62796712fc39..4e0af41a8a39 100644 --- a/clients/client-application-discovery-service/package.json +++ b/clients/client-application-discovery-service/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-application-discovery-service/src/runtimeConfig.browser.ts b/clients/client-application-discovery-service/src/runtimeConfig.browser.ts index 16f936904b13..b13fc32af2fb 100644 --- a/clients/client-application-discovery-service/src/runtimeConfig.browser.ts +++ b/clients/client-application-discovery-service/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: ApplicationDiscoveryServiceClientConfig ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-application-discovery-service/src/runtimeConfig.shared.ts b/clients/client-application-discovery-service/src/runtimeConfig.shared.ts index 53212344dc0a..2008803dd172 100644 --- a/clients/client-application-discovery-service/src/runtimeConfig.shared.ts +++ b/clients/client-application-discovery-service/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { ApplicationDiscoveryServiceClientConfig } from "./ApplicationDiscoveryServiceClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: ApplicationDiscoveryServiceClientConfig) => ({ apiVersion: "2015-11-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-application-discovery-service/src/runtimeConfig.ts b/clients/client-application-discovery-service/src/runtimeConfig.ts index 5fc1084a14eb..f0c93917fd47 100644 --- a/clients/client-application-discovery-service/src/runtimeConfig.ts +++ b/clients/client-application-discovery-service/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: ApplicationDiscoveryServiceClientConfig ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-application-insights/package.json b/clients/client-application-insights/package.json index 6474c972e84e..0c0d9e53993d 100644 --- a/clients/client-application-insights/package.json +++ b/clients/client-application-insights/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-application-insights/src/runtimeConfig.browser.ts b/clients/client-application-insights/src/runtimeConfig.browser.ts index e105fee82314..df93fa5bf021 100644 --- a/clients/client-application-insights/src/runtimeConfig.browser.ts +++ b/clients/client-application-insights/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: ApplicationInsightsClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-application-insights/src/runtimeConfig.shared.ts b/clients/client-application-insights/src/runtimeConfig.shared.ts index c3b297b35feb..438657c08bd5 100644 --- a/clients/client-application-insights/src/runtimeConfig.shared.ts +++ b/clients/client-application-insights/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { ApplicationInsightsClientConfig } from "./ApplicationInsightsClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: ApplicationInsightsClientConfig) => ({ apiVersion: "2018-11-25", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-application-insights/src/runtimeConfig.ts b/clients/client-application-insights/src/runtimeConfig.ts index 3a1a4dcde2c9..378e62842306 100644 --- a/clients/client-application-insights/src/runtimeConfig.ts +++ b/clients/client-application-insights/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: ApplicationInsightsClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-applicationcostprofiler/package.json b/clients/client-applicationcostprofiler/package.json index 9a632b39ea57..ba99c098ac9a 100644 --- a/clients/client-applicationcostprofiler/package.json +++ b/clients/client-applicationcostprofiler/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-applicationcostprofiler/src/runtimeConfig.browser.ts b/clients/client-applicationcostprofiler/src/runtimeConfig.browser.ts index 4a4da0a926f0..fa2137249fc3 100644 --- a/clients/client-applicationcostprofiler/src/runtimeConfig.browser.ts +++ b/clients/client-applicationcostprofiler/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: ApplicationCostProfilerClientConfig) => ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-applicationcostprofiler/src/runtimeConfig.shared.ts b/clients/client-applicationcostprofiler/src/runtimeConfig.shared.ts index f14b9151f7a0..57ded065b4a2 100644 --- a/clients/client-applicationcostprofiler/src/runtimeConfig.shared.ts +++ b/clients/client-applicationcostprofiler/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { ApplicationCostProfilerClientConfig } from "./ApplicationCostProfilerClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: ApplicationCostProfilerClientConfig) => ({ apiVersion: "2020-09-10", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-applicationcostprofiler/src/runtimeConfig.ts b/clients/client-applicationcostprofiler/src/runtimeConfig.ts index 4a2ae19f625a..0f7ec0f8abe7 100644 --- a/clients/client-applicationcostprofiler/src/runtimeConfig.ts +++ b/clients/client-applicationcostprofiler/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: ApplicationCostProfilerClientConfig) => ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-apprunner/package.json b/clients/client-apprunner/package.json index 1415dc876e2f..1c5cee378df9 100644 --- a/clients/client-apprunner/package.json +++ b/clients/client-apprunner/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-apprunner/src/runtimeConfig.browser.ts b/clients/client-apprunner/src/runtimeConfig.browser.ts index 57da25e33676..644bf41a03cb 100644 --- a/clients/client-apprunner/src/runtimeConfig.browser.ts +++ b/clients/client-apprunner/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: AppRunnerClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-apprunner/src/runtimeConfig.shared.ts b/clients/client-apprunner/src/runtimeConfig.shared.ts index ea30e4057329..56161975d4e6 100644 --- a/clients/client-apprunner/src/runtimeConfig.shared.ts +++ b/clients/client-apprunner/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { AppRunnerClientConfig } from "./AppRunnerClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: AppRunnerClientConfig) => ({ apiVersion: "2020-05-15", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-apprunner/src/runtimeConfig.ts b/clients/client-apprunner/src/runtimeConfig.ts index d49812b641e9..ca35d15e2aee 100644 --- a/clients/client-apprunner/src/runtimeConfig.ts +++ b/clients/client-apprunner/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: AppRunnerClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-appstream/package.json b/clients/client-appstream/package.json index 4e2192908e11..b514aa4cc32c 100644 --- a/clients/client-appstream/package.json +++ b/clients/client-appstream/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-appstream/src/runtimeConfig.browser.ts b/clients/client-appstream/src/runtimeConfig.browser.ts index e539ed74e651..54dc987bf467 100644 --- a/clients/client-appstream/src/runtimeConfig.browser.ts +++ b/clients/client-appstream/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: AppStreamClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-appstream/src/runtimeConfig.shared.ts b/clients/client-appstream/src/runtimeConfig.shared.ts index 883c78025578..3fce7ede2957 100644 --- a/clients/client-appstream/src/runtimeConfig.shared.ts +++ b/clients/client-appstream/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { AppStreamClientConfig } from "./AppStreamClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: AppStreamClientConfig) => ({ apiVersion: "2016-12-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-appstream/src/runtimeConfig.ts b/clients/client-appstream/src/runtimeConfig.ts index 1db03fffe46d..2b879e4814f1 100644 --- a/clients/client-appstream/src/runtimeConfig.ts +++ b/clients/client-appstream/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: AppStreamClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-appsync/package.json b/clients/client-appsync/package.json index 1223d19736de..28df764e6e8a 100644 --- a/clients/client-appsync/package.json +++ b/clients/client-appsync/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-appsync/src/runtimeConfig.browser.ts b/clients/client-appsync/src/runtimeConfig.browser.ts index 4d96fc30632c..704a72f7c740 100644 --- a/clients/client-appsync/src/runtimeConfig.browser.ts +++ b/clients/client-appsync/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: AppSyncClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-appsync/src/runtimeConfig.shared.ts b/clients/client-appsync/src/runtimeConfig.shared.ts index 07d6d6974bab..690d86fa3a8c 100644 --- a/clients/client-appsync/src/runtimeConfig.shared.ts +++ b/clients/client-appsync/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { AppSyncClientConfig } from "./AppSyncClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: AppSyncClientConfig) => ({ apiVersion: "2017-07-25", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-appsync/src/runtimeConfig.ts b/clients/client-appsync/src/runtimeConfig.ts index cb69a1a6f375..d87a9bf78fe7 100644 --- a/clients/client-appsync/src/runtimeConfig.ts +++ b/clients/client-appsync/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: AppSyncClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-athena/package.json b/clients/client-athena/package.json index 83f6fc303b70..9a87308a8520 100644 --- a/clients/client-athena/package.json +++ b/clients/client-athena/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-athena/src/runtimeConfig.browser.ts b/clients/client-athena/src/runtimeConfig.browser.ts index 46af2db7c1b6..3f9d7171dac9 100644 --- a/clients/client-athena/src/runtimeConfig.browser.ts +++ b/clients/client-athena/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: AthenaClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-athena/src/runtimeConfig.shared.ts b/clients/client-athena/src/runtimeConfig.shared.ts index b1229610da05..620a345b33ee 100644 --- a/clients/client-athena/src/runtimeConfig.shared.ts +++ b/clients/client-athena/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { AthenaClientConfig } from "./AthenaClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: AthenaClientConfig) => ({ apiVersion: "2017-05-18", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-athena/src/runtimeConfig.ts b/clients/client-athena/src/runtimeConfig.ts index 9eb14bd8e708..0fa2456e5052 100644 --- a/clients/client-athena/src/runtimeConfig.ts +++ b/clients/client-athena/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: AthenaClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-auditmanager/package.json b/clients/client-auditmanager/package.json index 4ea4648ddaa4..d40493a2b3ce 100644 --- a/clients/client-auditmanager/package.json +++ b/clients/client-auditmanager/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-auditmanager/src/runtimeConfig.browser.ts b/clients/client-auditmanager/src/runtimeConfig.browser.ts index 5ef50ed453af..731f47800083 100644 --- a/clients/client-auditmanager/src/runtimeConfig.browser.ts +++ b/clients/client-auditmanager/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: AuditManagerClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-auditmanager/src/runtimeConfig.shared.ts b/clients/client-auditmanager/src/runtimeConfig.shared.ts index ec5bb7bdc46e..e896d24db590 100644 --- a/clients/client-auditmanager/src/runtimeConfig.shared.ts +++ b/clients/client-auditmanager/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { AuditManagerClientConfig } from "./AuditManagerClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: AuditManagerClientConfig) => ({ apiVersion: "2017-07-25", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-auditmanager/src/runtimeConfig.ts b/clients/client-auditmanager/src/runtimeConfig.ts index 5de2289fade4..a2c96df1c05e 100644 --- a/clients/client-auditmanager/src/runtimeConfig.ts +++ b/clients/client-auditmanager/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: AuditManagerClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-auto-scaling-plans/package.json b/clients/client-auto-scaling-plans/package.json index 4d4d3dae940f..537601001f7a 100644 --- a/clients/client-auto-scaling-plans/package.json +++ b/clients/client-auto-scaling-plans/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-auto-scaling-plans/src/runtimeConfig.browser.ts b/clients/client-auto-scaling-plans/src/runtimeConfig.browser.ts index 381f2c5ece29..d5ce004f6095 100644 --- a/clients/client-auto-scaling-plans/src/runtimeConfig.browser.ts +++ b/clients/client-auto-scaling-plans/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: AutoScalingPlansClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-auto-scaling-plans/src/runtimeConfig.shared.ts b/clients/client-auto-scaling-plans/src/runtimeConfig.shared.ts index c6597f5189d6..338d2b64f29a 100644 --- a/clients/client-auto-scaling-plans/src/runtimeConfig.shared.ts +++ b/clients/client-auto-scaling-plans/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { AutoScalingPlansClientConfig } from "./AutoScalingPlansClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: AutoScalingPlansClientConfig) => ({ apiVersion: "2018-01-06", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-auto-scaling-plans/src/runtimeConfig.ts b/clients/client-auto-scaling-plans/src/runtimeConfig.ts index 5dee109df1c4..d8f7cdd02088 100644 --- a/clients/client-auto-scaling-plans/src/runtimeConfig.ts +++ b/clients/client-auto-scaling-plans/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: AutoScalingPlansClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-auto-scaling/package.json b/clients/client-auto-scaling/package.json index b8c2eba0361e..437564f0d7ea 100644 --- a/clients/client-auto-scaling/package.json +++ b/clients/client-auto-scaling/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-auto-scaling/src/runtimeConfig.browser.ts b/clients/client-auto-scaling/src/runtimeConfig.browser.ts index e2f49723be7d..76be1cb5718b 100644 --- a/clients/client-auto-scaling/src/runtimeConfig.browser.ts +++ b/clients/client-auto-scaling/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: AutoScalingClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-auto-scaling/src/runtimeConfig.shared.ts b/clients/client-auto-scaling/src/runtimeConfig.shared.ts index 560bb5fbd78e..f25a5e71e68d 100644 --- a/clients/client-auto-scaling/src/runtimeConfig.shared.ts +++ b/clients/client-auto-scaling/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { AutoScalingClientConfig } from "./AutoScalingClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: AutoScalingClientConfig) => ({ apiVersion: "2011-01-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-auto-scaling/src/runtimeConfig.ts b/clients/client-auto-scaling/src/runtimeConfig.ts index 382d6d79dfcd..3d8977847563 100644 --- a/clients/client-auto-scaling/src/runtimeConfig.ts +++ b/clients/client-auto-scaling/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: AutoScalingClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-backup-gateway/package.json b/clients/client-backup-gateway/package.json index a5e11cadf3bc..ff9c83e61703 100644 --- a/clients/client-backup-gateway/package.json +++ b/clients/client-backup-gateway/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-backup-gateway/src/runtimeConfig.browser.ts b/clients/client-backup-gateway/src/runtimeConfig.browser.ts index 411855b1087e..21554eba9bba 100644 --- a/clients/client-backup-gateway/src/runtimeConfig.browser.ts +++ b/clients/client-backup-gateway/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: BackupGatewayClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-backup-gateway/src/runtimeConfig.shared.ts b/clients/client-backup-gateway/src/runtimeConfig.shared.ts index e8236c126b5e..3aea9f938eca 100644 --- a/clients/client-backup-gateway/src/runtimeConfig.shared.ts +++ b/clients/client-backup-gateway/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { BackupGatewayClientConfig } from "./BackupGatewayClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: BackupGatewayClientConfig) => ({ apiVersion: "2021-01-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-backup-gateway/src/runtimeConfig.ts b/clients/client-backup-gateway/src/runtimeConfig.ts index 1ab7961157cf..5d1b8ea2bbe8 100644 --- a/clients/client-backup-gateway/src/runtimeConfig.ts +++ b/clients/client-backup-gateway/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: BackupGatewayClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-backup/package.json b/clients/client-backup/package.json index 257e5b27101a..419d6beea9fd 100644 --- a/clients/client-backup/package.json +++ b/clients/client-backup/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-backup/src/runtimeConfig.browser.ts b/clients/client-backup/src/runtimeConfig.browser.ts index 09afcf3d8db7..71a66401b64b 100644 --- a/clients/client-backup/src/runtimeConfig.browser.ts +++ b/clients/client-backup/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: BackupClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-backup/src/runtimeConfig.shared.ts b/clients/client-backup/src/runtimeConfig.shared.ts index 133f14f9c1e3..47ce663e1346 100644 --- a/clients/client-backup/src/runtimeConfig.shared.ts +++ b/clients/client-backup/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { BackupClientConfig } from "./BackupClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: BackupClientConfig) => ({ apiVersion: "2018-11-15", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-backup/src/runtimeConfig.ts b/clients/client-backup/src/runtimeConfig.ts index 3c79ffd9a7d3..b354d42093fd 100644 --- a/clients/client-backup/src/runtimeConfig.ts +++ b/clients/client-backup/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: BackupClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-backupstorage/package.json b/clients/client-backupstorage/package.json index fba6e621658d..a37941f2832b 100644 --- a/clients/client-backupstorage/package.json +++ b/clients/client-backupstorage/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-backupstorage/src/runtimeConfig.browser.ts b/clients/client-backupstorage/src/runtimeConfig.browser.ts index ad6617e7317b..06635b88f294 100644 --- a/clients/client-backupstorage/src/runtimeConfig.browser.ts +++ b/clients/client-backupstorage/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { sdkStreamMixin } from "@aws-sdk/util-stream-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; @@ -29,8 +28,6 @@ export const getRuntimeConfig = (config: BackupStorageClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-backupstorage/src/runtimeConfig.shared.ts b/clients/client-backupstorage/src/runtimeConfig.shared.ts index ee1c9f51c027..67948a640804 100644 --- a/clients/client-backupstorage/src/runtimeConfig.shared.ts +++ b/clients/client-backupstorage/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { BackupStorageClientConfig } from "./BackupStorageClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: BackupStorageClientConfig) => ({ apiVersion: "2018-04-10", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-backupstorage/src/runtimeConfig.ts b/clients/client-backupstorage/src/runtimeConfig.ts index 41149c350c14..eb86af870cf2 100644 --- a/clients/client-backupstorage/src/runtimeConfig.ts +++ b/clients/client-backupstorage/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { sdkStreamMixin } from "@aws-sdk/util-stream-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -42,8 +41,6 @@ export const getRuntimeConfig = (config: BackupStorageClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-batch/package.json b/clients/client-batch/package.json index 200d13cd37ad..564c00f97d6a 100644 --- a/clients/client-batch/package.json +++ b/clients/client-batch/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-batch/src/runtimeConfig.browser.ts b/clients/client-batch/src/runtimeConfig.browser.ts index 914f4a59eb51..34c61a9f8f77 100644 --- a/clients/client-batch/src/runtimeConfig.browser.ts +++ b/clients/client-batch/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: BatchClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-batch/src/runtimeConfig.shared.ts b/clients/client-batch/src/runtimeConfig.shared.ts index 56f4dc55e824..3e3518367d6c 100644 --- a/clients/client-batch/src/runtimeConfig.shared.ts +++ b/clients/client-batch/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { BatchClientConfig } from "./BatchClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: BatchClientConfig) => ({ apiVersion: "2016-08-10", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-batch/src/runtimeConfig.ts b/clients/client-batch/src/runtimeConfig.ts index 266942d8a746..0e44e04650b8 100644 --- a/clients/client-batch/src/runtimeConfig.ts +++ b/clients/client-batch/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: BatchClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-billingconductor/package.json b/clients/client-billingconductor/package.json index 50980b0b5417..ef9acbc38772 100644 --- a/clients/client-billingconductor/package.json +++ b/clients/client-billingconductor/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-billingconductor/src/runtimeConfig.browser.ts b/clients/client-billingconductor/src/runtimeConfig.browser.ts index 0942b942ac1c..9ac417254779 100644 --- a/clients/client-billingconductor/src/runtimeConfig.browser.ts +++ b/clients/client-billingconductor/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: BillingconductorClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-billingconductor/src/runtimeConfig.shared.ts b/clients/client-billingconductor/src/runtimeConfig.shared.ts index ef3d23401243..fcb91bbae3ae 100644 --- a/clients/client-billingconductor/src/runtimeConfig.shared.ts +++ b/clients/client-billingconductor/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { BillingconductorClientConfig } from "./BillingconductorClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: BillingconductorClientConfig) => ({ apiVersion: "2021-07-30", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-billingconductor/src/runtimeConfig.ts b/clients/client-billingconductor/src/runtimeConfig.ts index f3c17e1e3021..9d2c17c7bfe0 100644 --- a/clients/client-billingconductor/src/runtimeConfig.ts +++ b/clients/client-billingconductor/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: BillingconductorClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-braket/package.json b/clients/client-braket/package.json index 179c2068f33b..fb3f59ea019d 100644 --- a/clients/client-braket/package.json +++ b/clients/client-braket/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-braket/src/runtimeConfig.browser.ts b/clients/client-braket/src/runtimeConfig.browser.ts index b034426e1644..e84c7e0bdf93 100644 --- a/clients/client-braket/src/runtimeConfig.browser.ts +++ b/clients/client-braket/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: BraketClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-braket/src/runtimeConfig.shared.ts b/clients/client-braket/src/runtimeConfig.shared.ts index d8885f70071e..f62b8ba7c899 100644 --- a/clients/client-braket/src/runtimeConfig.shared.ts +++ b/clients/client-braket/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { BraketClientConfig } from "./BraketClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: BraketClientConfig) => ({ apiVersion: "2019-09-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-braket/src/runtimeConfig.ts b/clients/client-braket/src/runtimeConfig.ts index fae9267e4ea9..10681b1f0f6d 100644 --- a/clients/client-braket/src/runtimeConfig.ts +++ b/clients/client-braket/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: BraketClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-budgets/package.json b/clients/client-budgets/package.json index b8df73cc43cc..7bb766dd146e 100644 --- a/clients/client-budgets/package.json +++ b/clients/client-budgets/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-budgets/src/runtimeConfig.browser.ts b/clients/client-budgets/src/runtimeConfig.browser.ts index 9f6c6ca1d7df..55e13442f500 100644 --- a/clients/client-budgets/src/runtimeConfig.browser.ts +++ b/clients/client-budgets/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: BudgetsClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-budgets/src/runtimeConfig.shared.ts b/clients/client-budgets/src/runtimeConfig.shared.ts index 5896c121dafd..76f6927d4467 100644 --- a/clients/client-budgets/src/runtimeConfig.shared.ts +++ b/clients/client-budgets/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { BudgetsClientConfig } from "./BudgetsClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: BudgetsClientConfig) => ({ apiVersion: "2016-10-20", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-budgets/src/runtimeConfig.ts b/clients/client-budgets/src/runtimeConfig.ts index ba399f8af56e..425892f8f002 100644 --- a/clients/client-budgets/src/runtimeConfig.ts +++ b/clients/client-budgets/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: BudgetsClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-chime-sdk-identity/package.json b/clients/client-chime-sdk-identity/package.json index 6b6fc25f5a4c..807c1c786e1c 100644 --- a/clients/client-chime-sdk-identity/package.json +++ b/clients/client-chime-sdk-identity/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-chime-sdk-identity/src/runtimeConfig.browser.ts b/clients/client-chime-sdk-identity/src/runtimeConfig.browser.ts index 8f35d324f6ba..e2187c820d2a 100644 --- a/clients/client-chime-sdk-identity/src/runtimeConfig.browser.ts +++ b/clients/client-chime-sdk-identity/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: ChimeSDKIdentityClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-chime-sdk-identity/src/runtimeConfig.shared.ts b/clients/client-chime-sdk-identity/src/runtimeConfig.shared.ts index a362ea8594af..fb3970a4f946 100644 --- a/clients/client-chime-sdk-identity/src/runtimeConfig.shared.ts +++ b/clients/client-chime-sdk-identity/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { ChimeSDKIdentityClientConfig } from "./ChimeSDKIdentityClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: ChimeSDKIdentityClientConfig) => ({ apiVersion: "2021-04-20", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-chime-sdk-identity/src/runtimeConfig.ts b/clients/client-chime-sdk-identity/src/runtimeConfig.ts index 23850c7f5f16..00d6238eb1d6 100644 --- a/clients/client-chime-sdk-identity/src/runtimeConfig.ts +++ b/clients/client-chime-sdk-identity/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: ChimeSDKIdentityClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-chime-sdk-media-pipelines/package.json b/clients/client-chime-sdk-media-pipelines/package.json index 1d203257f69b..d42b138e7f13 100644 --- a/clients/client-chime-sdk-media-pipelines/package.json +++ b/clients/client-chime-sdk-media-pipelines/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-chime-sdk-media-pipelines/src/runtimeConfig.browser.ts b/clients/client-chime-sdk-media-pipelines/src/runtimeConfig.browser.ts index 4f7503119409..ff27956b7240 100644 --- a/clients/client-chime-sdk-media-pipelines/src/runtimeConfig.browser.ts +++ b/clients/client-chime-sdk-media-pipelines/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: ChimeSDKMediaPipelinesClientConfig) => ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-chime-sdk-media-pipelines/src/runtimeConfig.shared.ts b/clients/client-chime-sdk-media-pipelines/src/runtimeConfig.shared.ts index 7d4087d271c8..59cce64140c5 100644 --- a/clients/client-chime-sdk-media-pipelines/src/runtimeConfig.shared.ts +++ b/clients/client-chime-sdk-media-pipelines/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { ChimeSDKMediaPipelinesClientConfig } from "./ChimeSDKMediaPipelinesClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: ChimeSDKMediaPipelinesClientConfig) => ({ apiVersion: "2021-07-15", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-chime-sdk-media-pipelines/src/runtimeConfig.ts b/clients/client-chime-sdk-media-pipelines/src/runtimeConfig.ts index 9c2d1493bbc6..47b89216181f 100644 --- a/clients/client-chime-sdk-media-pipelines/src/runtimeConfig.ts +++ b/clients/client-chime-sdk-media-pipelines/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: ChimeSDKMediaPipelinesClientConfig) => ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-chime-sdk-meetings/package.json b/clients/client-chime-sdk-meetings/package.json index 1b42d6238319..4cf22f902ace 100644 --- a/clients/client-chime-sdk-meetings/package.json +++ b/clients/client-chime-sdk-meetings/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-chime-sdk-meetings/src/runtimeConfig.browser.ts b/clients/client-chime-sdk-meetings/src/runtimeConfig.browser.ts index ace338332d43..58d9049130c5 100644 --- a/clients/client-chime-sdk-meetings/src/runtimeConfig.browser.ts +++ b/clients/client-chime-sdk-meetings/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: ChimeSDKMeetingsClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-chime-sdk-meetings/src/runtimeConfig.shared.ts b/clients/client-chime-sdk-meetings/src/runtimeConfig.shared.ts index 43a548d61ed2..41e4128e8787 100644 --- a/clients/client-chime-sdk-meetings/src/runtimeConfig.shared.ts +++ b/clients/client-chime-sdk-meetings/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { ChimeSDKMeetingsClientConfig } from "./ChimeSDKMeetingsClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: ChimeSDKMeetingsClientConfig) => ({ apiVersion: "2021-07-15", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-chime-sdk-meetings/src/runtimeConfig.ts b/clients/client-chime-sdk-meetings/src/runtimeConfig.ts index 47c8d855288e..a4fd411302fb 100644 --- a/clients/client-chime-sdk-meetings/src/runtimeConfig.ts +++ b/clients/client-chime-sdk-meetings/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: ChimeSDKMeetingsClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-chime-sdk-messaging/package.json b/clients/client-chime-sdk-messaging/package.json index 616014e31f88..7f6a82991c22 100644 --- a/clients/client-chime-sdk-messaging/package.json +++ b/clients/client-chime-sdk-messaging/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-chime-sdk-messaging/src/runtimeConfig.browser.ts b/clients/client-chime-sdk-messaging/src/runtimeConfig.browser.ts index 9d7f49d7da20..aa4a02204e49 100644 --- a/clients/client-chime-sdk-messaging/src/runtimeConfig.browser.ts +++ b/clients/client-chime-sdk-messaging/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: ChimeSDKMessagingClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-chime-sdk-messaging/src/runtimeConfig.shared.ts b/clients/client-chime-sdk-messaging/src/runtimeConfig.shared.ts index bd93aa9b5a90..0733ed7d069f 100644 --- a/clients/client-chime-sdk-messaging/src/runtimeConfig.shared.ts +++ b/clients/client-chime-sdk-messaging/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { ChimeSDKMessagingClientConfig } from "./ChimeSDKMessagingClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: ChimeSDKMessagingClientConfig) => ({ apiVersion: "2021-05-15", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-chime-sdk-messaging/src/runtimeConfig.ts b/clients/client-chime-sdk-messaging/src/runtimeConfig.ts index bd256357d70f..940911224029 100644 --- a/clients/client-chime-sdk-messaging/src/runtimeConfig.ts +++ b/clients/client-chime-sdk-messaging/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: ChimeSDKMessagingClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-chime/package.json b/clients/client-chime/package.json index a95100712a85..26cd5f92bb3f 100644 --- a/clients/client-chime/package.json +++ b/clients/client-chime/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-chime/src/runtimeConfig.browser.ts b/clients/client-chime/src/runtimeConfig.browser.ts index 7ad61689706e..6114962a0a1d 100644 --- a/clients/client-chime/src/runtimeConfig.browser.ts +++ b/clients/client-chime/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: ChimeClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-chime/src/runtimeConfig.shared.ts b/clients/client-chime/src/runtimeConfig.shared.ts index d0d44597e546..55a1085e2c71 100644 --- a/clients/client-chime/src/runtimeConfig.shared.ts +++ b/clients/client-chime/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { ChimeClientConfig } from "./ChimeClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: ChimeClientConfig) => ({ apiVersion: "2018-05-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-chime/src/runtimeConfig.ts b/clients/client-chime/src/runtimeConfig.ts index bc5c5cf12274..b64176a524f3 100644 --- a/clients/client-chime/src/runtimeConfig.ts +++ b/clients/client-chime/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: ChimeClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-cloud9/package.json b/clients/client-cloud9/package.json index 31c893bd8e36..e9e4f508f7c8 100644 --- a/clients/client-cloud9/package.json +++ b/clients/client-cloud9/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-cloud9/src/runtimeConfig.browser.ts b/clients/client-cloud9/src/runtimeConfig.browser.ts index 02793b4a4b32..9817d72ccc06 100644 --- a/clients/client-cloud9/src/runtimeConfig.browser.ts +++ b/clients/client-cloud9/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: Cloud9ClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-cloud9/src/runtimeConfig.shared.ts b/clients/client-cloud9/src/runtimeConfig.shared.ts index a9580c7d0baf..79d9edf506c5 100644 --- a/clients/client-cloud9/src/runtimeConfig.shared.ts +++ b/clients/client-cloud9/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { Cloud9ClientConfig } from "./Cloud9Client"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: Cloud9ClientConfig) => ({ apiVersion: "2017-09-23", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-cloud9/src/runtimeConfig.ts b/clients/client-cloud9/src/runtimeConfig.ts index 4c7536856a5d..2b58d2c1331a 100644 --- a/clients/client-cloud9/src/runtimeConfig.ts +++ b/clients/client-cloud9/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: Cloud9ClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-cloudcontrol/package.json b/clients/client-cloudcontrol/package.json index b6e0cd011922..016d99ed268b 100644 --- a/clients/client-cloudcontrol/package.json +++ b/clients/client-cloudcontrol/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-cloudcontrol/src/runtimeConfig.browser.ts b/clients/client-cloudcontrol/src/runtimeConfig.browser.ts index e7fa9806622f..85b4c88bc741 100644 --- a/clients/client-cloudcontrol/src/runtimeConfig.browser.ts +++ b/clients/client-cloudcontrol/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: CloudControlClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-cloudcontrol/src/runtimeConfig.shared.ts b/clients/client-cloudcontrol/src/runtimeConfig.shared.ts index 92dd8cafb74b..b37293ea3ff7 100644 --- a/clients/client-cloudcontrol/src/runtimeConfig.shared.ts +++ b/clients/client-cloudcontrol/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { CloudControlClientConfig } from "./CloudControlClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: CloudControlClientConfig) => ({ apiVersion: "2021-09-30", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-cloudcontrol/src/runtimeConfig.ts b/clients/client-cloudcontrol/src/runtimeConfig.ts index 352015227fa8..41371a90e176 100644 --- a/clients/client-cloudcontrol/src/runtimeConfig.ts +++ b/clients/client-cloudcontrol/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: CloudControlClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-clouddirectory/package.json b/clients/client-clouddirectory/package.json index 4ab7418aa6d8..cf6239165783 100644 --- a/clients/client-clouddirectory/package.json +++ b/clients/client-clouddirectory/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-clouddirectory/src/runtimeConfig.browser.ts b/clients/client-clouddirectory/src/runtimeConfig.browser.ts index 4c1037e58937..2e0aa78b9b6f 100644 --- a/clients/client-clouddirectory/src/runtimeConfig.browser.ts +++ b/clients/client-clouddirectory/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: CloudDirectoryClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-clouddirectory/src/runtimeConfig.shared.ts b/clients/client-clouddirectory/src/runtimeConfig.shared.ts index 7068fb6c97fa..12ff112e739e 100644 --- a/clients/client-clouddirectory/src/runtimeConfig.shared.ts +++ b/clients/client-clouddirectory/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { CloudDirectoryClientConfig } from "./CloudDirectoryClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: CloudDirectoryClientConfig) => ({ apiVersion: "2017-01-11", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-clouddirectory/src/runtimeConfig.ts b/clients/client-clouddirectory/src/runtimeConfig.ts index d37b4c6d6d63..70161e21bcd4 100644 --- a/clients/client-clouddirectory/src/runtimeConfig.ts +++ b/clients/client-clouddirectory/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: CloudDirectoryClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-cloudformation/package.json b/clients/client-cloudformation/package.json index 9fbcfac078e6..6e3f2e423833 100644 --- a/clients/client-cloudformation/package.json +++ b/clients/client-cloudformation/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-cloudformation/src/runtimeConfig.browser.ts b/clients/client-cloudformation/src/runtimeConfig.browser.ts index 916069572fd2..c719506c2d51 100644 --- a/clients/client-cloudformation/src/runtimeConfig.browser.ts +++ b/clients/client-cloudformation/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: CloudFormationClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-cloudformation/src/runtimeConfig.shared.ts b/clients/client-cloudformation/src/runtimeConfig.shared.ts index aafd4cc7a84f..be590015b91e 100644 --- a/clients/client-cloudformation/src/runtimeConfig.shared.ts +++ b/clients/client-cloudformation/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { CloudFormationClientConfig } from "./CloudFormationClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: CloudFormationClientConfig) => ({ apiVersion: "2010-05-15", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-cloudformation/src/runtimeConfig.ts b/clients/client-cloudformation/src/runtimeConfig.ts index 0574e5cc1fce..7b9d4fdb150b 100644 --- a/clients/client-cloudformation/src/runtimeConfig.ts +++ b/clients/client-cloudformation/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: CloudFormationClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-cloudfront/package.json b/clients/client-cloudfront/package.json index e11ee8249313..d9bc58f8c061 100644 --- a/clients/client-cloudfront/package.json +++ b/clients/client-cloudfront/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-cloudfront/src/runtimeConfig.browser.ts b/clients/client-cloudfront/src/runtimeConfig.browser.ts index b448ac85790a..5e13bd1afafc 100644 --- a/clients/client-cloudfront/src/runtimeConfig.browser.ts +++ b/clients/client-cloudfront/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: CloudFrontClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-cloudfront/src/runtimeConfig.shared.ts b/clients/client-cloudfront/src/runtimeConfig.shared.ts index 184a99d32461..4a4626790a53 100644 --- a/clients/client-cloudfront/src/runtimeConfig.shared.ts +++ b/clients/client-cloudfront/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { CloudFrontClientConfig } from "./CloudFrontClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: CloudFrontClientConfig) => ({ apiVersion: "2020-05-31", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-cloudfront/src/runtimeConfig.ts b/clients/client-cloudfront/src/runtimeConfig.ts index 60154ce537a7..f551ca28bd3c 100644 --- a/clients/client-cloudfront/src/runtimeConfig.ts +++ b/clients/client-cloudfront/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: CloudFrontClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-cloudhsm-v2/package.json b/clients/client-cloudhsm-v2/package.json index 4095abee0446..6b12d73c0bcf 100644 --- a/clients/client-cloudhsm-v2/package.json +++ b/clients/client-cloudhsm-v2/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-cloudhsm-v2/src/runtimeConfig.browser.ts b/clients/client-cloudhsm-v2/src/runtimeConfig.browser.ts index 2a146c7ce74e..4439817f8ff6 100644 --- a/clients/client-cloudhsm-v2/src/runtimeConfig.browser.ts +++ b/clients/client-cloudhsm-v2/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: CloudHSMV2ClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-cloudhsm-v2/src/runtimeConfig.shared.ts b/clients/client-cloudhsm-v2/src/runtimeConfig.shared.ts index 8689c2a3df32..99e07ef70555 100644 --- a/clients/client-cloudhsm-v2/src/runtimeConfig.shared.ts +++ b/clients/client-cloudhsm-v2/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { CloudHSMV2ClientConfig } from "./CloudHSMV2Client"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: CloudHSMV2ClientConfig) => ({ apiVersion: "2017-04-28", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-cloudhsm-v2/src/runtimeConfig.ts b/clients/client-cloudhsm-v2/src/runtimeConfig.ts index db3616b3f011..47be9788c5a9 100644 --- a/clients/client-cloudhsm-v2/src/runtimeConfig.ts +++ b/clients/client-cloudhsm-v2/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: CloudHSMV2ClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-cloudhsm/package.json b/clients/client-cloudhsm/package.json index 12fc48f7bcc1..8f8c7e3be29d 100644 --- a/clients/client-cloudhsm/package.json +++ b/clients/client-cloudhsm/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-cloudhsm/src/runtimeConfig.browser.ts b/clients/client-cloudhsm/src/runtimeConfig.browser.ts index 09411404bb62..fee54836649d 100644 --- a/clients/client-cloudhsm/src/runtimeConfig.browser.ts +++ b/clients/client-cloudhsm/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: CloudHSMClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-cloudhsm/src/runtimeConfig.shared.ts b/clients/client-cloudhsm/src/runtimeConfig.shared.ts index 02bd05d44839..00b72ea20d10 100644 --- a/clients/client-cloudhsm/src/runtimeConfig.shared.ts +++ b/clients/client-cloudhsm/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { CloudHSMClientConfig } from "./CloudHSMClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: CloudHSMClientConfig) => ({ apiVersion: "2014-05-30", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-cloudhsm/src/runtimeConfig.ts b/clients/client-cloudhsm/src/runtimeConfig.ts index 59a3bf052181..92142f0b6915 100644 --- a/clients/client-cloudhsm/src/runtimeConfig.ts +++ b/clients/client-cloudhsm/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: CloudHSMClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-cloudsearch-domain/package.json b/clients/client-cloudsearch-domain/package.json index 3bd36cee71a1..b9ad3cb97c97 100644 --- a/clients/client-cloudsearch-domain/package.json +++ b/clients/client-cloudsearch-domain/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-cloudsearch-domain/src/runtimeConfig.browser.ts b/clients/client-cloudsearch-domain/src/runtimeConfig.browser.ts index df58a70da802..f5638f3559d5 100644 --- a/clients/client-cloudsearch-domain/src/runtimeConfig.browser.ts +++ b/clients/client-cloudsearch-domain/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: CloudSearchDomainClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-cloudsearch-domain/src/runtimeConfig.shared.ts b/clients/client-cloudsearch-domain/src/runtimeConfig.shared.ts index 8689b4dcb039..4093d8c86f61 100644 --- a/clients/client-cloudsearch-domain/src/runtimeConfig.shared.ts +++ b/clients/client-cloudsearch-domain/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { CloudSearchDomainClientConfig } from "./CloudSearchDomainClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: CloudSearchDomainClientConfig) => ({ apiVersion: "2013-01-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-cloudsearch-domain/src/runtimeConfig.ts b/clients/client-cloudsearch-domain/src/runtimeConfig.ts index bdefc96449a3..2437ed9e30db 100644 --- a/clients/client-cloudsearch-domain/src/runtimeConfig.ts +++ b/clients/client-cloudsearch-domain/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: CloudSearchDomainClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-cloudsearch/package.json b/clients/client-cloudsearch/package.json index 8ddd16841eac..e5d665aef0d5 100644 --- a/clients/client-cloudsearch/package.json +++ b/clients/client-cloudsearch/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-cloudsearch/src/runtimeConfig.browser.ts b/clients/client-cloudsearch/src/runtimeConfig.browser.ts index 102fd8ded607..545723c34e4e 100644 --- a/clients/client-cloudsearch/src/runtimeConfig.browser.ts +++ b/clients/client-cloudsearch/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: CloudSearchClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-cloudsearch/src/runtimeConfig.shared.ts b/clients/client-cloudsearch/src/runtimeConfig.shared.ts index 780424bda523..fa740c87abf7 100644 --- a/clients/client-cloudsearch/src/runtimeConfig.shared.ts +++ b/clients/client-cloudsearch/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { CloudSearchClientConfig } from "./CloudSearchClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: CloudSearchClientConfig) => ({ apiVersion: "2013-01-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-cloudsearch/src/runtimeConfig.ts b/clients/client-cloudsearch/src/runtimeConfig.ts index a7826ac8d074..8c1049a24a45 100644 --- a/clients/client-cloudsearch/src/runtimeConfig.ts +++ b/clients/client-cloudsearch/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: CloudSearchClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-cloudtrail/package.json b/clients/client-cloudtrail/package.json index 5b4ccd978a72..e9ebce71f365 100644 --- a/clients/client-cloudtrail/package.json +++ b/clients/client-cloudtrail/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-cloudtrail/src/runtimeConfig.browser.ts b/clients/client-cloudtrail/src/runtimeConfig.browser.ts index e00af75805e6..dc3cc1acc051 100644 --- a/clients/client-cloudtrail/src/runtimeConfig.browser.ts +++ b/clients/client-cloudtrail/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: CloudTrailClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-cloudtrail/src/runtimeConfig.shared.ts b/clients/client-cloudtrail/src/runtimeConfig.shared.ts index 564dba5c8934..3a6098275743 100644 --- a/clients/client-cloudtrail/src/runtimeConfig.shared.ts +++ b/clients/client-cloudtrail/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { CloudTrailClientConfig } from "./CloudTrailClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: CloudTrailClientConfig) => ({ apiVersion: "2013-11-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-cloudtrail/src/runtimeConfig.ts b/clients/client-cloudtrail/src/runtimeConfig.ts index cd2d3147061f..d04cb0b3a630 100644 --- a/clients/client-cloudtrail/src/runtimeConfig.ts +++ b/clients/client-cloudtrail/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: CloudTrailClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-cloudwatch-events/package.json b/clients/client-cloudwatch-events/package.json index 03aa06db2d80..7f43f712624d 100644 --- a/clients/client-cloudwatch-events/package.json +++ b/clients/client-cloudwatch-events/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-cloudwatch-events/src/runtimeConfig.browser.ts b/clients/client-cloudwatch-events/src/runtimeConfig.browser.ts index d59f55af636f..ec56535a1815 100644 --- a/clients/client-cloudwatch-events/src/runtimeConfig.browser.ts +++ b/clients/client-cloudwatch-events/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: CloudWatchEventsClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-cloudwatch-events/src/runtimeConfig.shared.ts b/clients/client-cloudwatch-events/src/runtimeConfig.shared.ts index 585021b3d4b2..76995356d34c 100644 --- a/clients/client-cloudwatch-events/src/runtimeConfig.shared.ts +++ b/clients/client-cloudwatch-events/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { CloudWatchEventsClientConfig } from "./CloudWatchEventsClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: CloudWatchEventsClientConfig) => ({ apiVersion: "2015-10-07", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-cloudwatch-events/src/runtimeConfig.ts b/clients/client-cloudwatch-events/src/runtimeConfig.ts index 4ec26833160f..20591dc68fd7 100644 --- a/clients/client-cloudwatch-events/src/runtimeConfig.ts +++ b/clients/client-cloudwatch-events/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: CloudWatchEventsClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-cloudwatch-logs/package.json b/clients/client-cloudwatch-logs/package.json index ce3c3df2c9c6..b1c16b61f65b 100644 --- a/clients/client-cloudwatch-logs/package.json +++ b/clients/client-cloudwatch-logs/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-cloudwatch-logs/src/runtimeConfig.browser.ts b/clients/client-cloudwatch-logs/src/runtimeConfig.browser.ts index 27c7955118fc..9fa2ecbd60bf 100644 --- a/clients/client-cloudwatch-logs/src/runtimeConfig.browser.ts +++ b/clients/client-cloudwatch-logs/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: CloudWatchLogsClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-cloudwatch-logs/src/runtimeConfig.shared.ts b/clients/client-cloudwatch-logs/src/runtimeConfig.shared.ts index 3cf1df330013..b575d0062a2b 100644 --- a/clients/client-cloudwatch-logs/src/runtimeConfig.shared.ts +++ b/clients/client-cloudwatch-logs/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { CloudWatchLogsClientConfig } from "./CloudWatchLogsClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: CloudWatchLogsClientConfig) => ({ apiVersion: "2014-03-28", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-cloudwatch-logs/src/runtimeConfig.ts b/clients/client-cloudwatch-logs/src/runtimeConfig.ts index 6b2e81275a3b..0ab86ef87cf0 100644 --- a/clients/client-cloudwatch-logs/src/runtimeConfig.ts +++ b/clients/client-cloudwatch-logs/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: CloudWatchLogsClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-cloudwatch/package.json b/clients/client-cloudwatch/package.json index aa62a19a6eb1..415ad0aa2243 100644 --- a/clients/client-cloudwatch/package.json +++ b/clients/client-cloudwatch/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-cloudwatch/src/runtimeConfig.browser.ts b/clients/client-cloudwatch/src/runtimeConfig.browser.ts index 64b1dd0a5d29..85464b849703 100644 --- a/clients/client-cloudwatch/src/runtimeConfig.browser.ts +++ b/clients/client-cloudwatch/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: CloudWatchClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-cloudwatch/src/runtimeConfig.shared.ts b/clients/client-cloudwatch/src/runtimeConfig.shared.ts index 02066d163500..5b5880ed47bd 100644 --- a/clients/client-cloudwatch/src/runtimeConfig.shared.ts +++ b/clients/client-cloudwatch/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { CloudWatchClientConfig } from "./CloudWatchClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: CloudWatchClientConfig) => ({ apiVersion: "2010-08-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-cloudwatch/src/runtimeConfig.ts b/clients/client-cloudwatch/src/runtimeConfig.ts index 0628a59e203a..525a4401bea7 100644 --- a/clients/client-cloudwatch/src/runtimeConfig.ts +++ b/clients/client-cloudwatch/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: CloudWatchClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-codeartifact/package.json b/clients/client-codeartifact/package.json index 1f914ced8092..10f5b936f9de 100644 --- a/clients/client-codeartifact/package.json +++ b/clients/client-codeartifact/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-codeartifact/src/runtimeConfig.browser.ts b/clients/client-codeartifact/src/runtimeConfig.browser.ts index 7e818c7cc02b..b45afdebb586 100644 --- a/clients/client-codeartifact/src/runtimeConfig.browser.ts +++ b/clients/client-codeartifact/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { sdkStreamMixin } from "@aws-sdk/util-stream-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; @@ -29,8 +28,6 @@ export const getRuntimeConfig = (config: CodeartifactClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-codeartifact/src/runtimeConfig.shared.ts b/clients/client-codeartifact/src/runtimeConfig.shared.ts index e445fc055d91..5170a845069a 100644 --- a/clients/client-codeartifact/src/runtimeConfig.shared.ts +++ b/clients/client-codeartifact/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { CodeartifactClientConfig } from "./CodeartifactClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: CodeartifactClientConfig) => ({ apiVersion: "2018-09-22", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-codeartifact/src/runtimeConfig.ts b/clients/client-codeartifact/src/runtimeConfig.ts index 2d11dbc39946..41829b820d43 100644 --- a/clients/client-codeartifact/src/runtimeConfig.ts +++ b/clients/client-codeartifact/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { sdkStreamMixin } from "@aws-sdk/util-stream-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -42,8 +41,6 @@ export const getRuntimeConfig = (config: CodeartifactClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-codebuild/package.json b/clients/client-codebuild/package.json index 99c51bb126a4..844dbfeebfe6 100644 --- a/clients/client-codebuild/package.json +++ b/clients/client-codebuild/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-codebuild/src/runtimeConfig.browser.ts b/clients/client-codebuild/src/runtimeConfig.browser.ts index 65bb9d342d51..bd3efe346dc5 100644 --- a/clients/client-codebuild/src/runtimeConfig.browser.ts +++ b/clients/client-codebuild/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: CodeBuildClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-codebuild/src/runtimeConfig.shared.ts b/clients/client-codebuild/src/runtimeConfig.shared.ts index 570a587b2099..149d49afbd18 100644 --- a/clients/client-codebuild/src/runtimeConfig.shared.ts +++ b/clients/client-codebuild/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { CodeBuildClientConfig } from "./CodeBuildClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: CodeBuildClientConfig) => ({ apiVersion: "2016-10-06", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-codebuild/src/runtimeConfig.ts b/clients/client-codebuild/src/runtimeConfig.ts index b536daf34679..19a90ac0544d 100644 --- a/clients/client-codebuild/src/runtimeConfig.ts +++ b/clients/client-codebuild/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: CodeBuildClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-codecommit/package.json b/clients/client-codecommit/package.json index 35423bb32ef9..fd1b3bda1c69 100644 --- a/clients/client-codecommit/package.json +++ b/clients/client-codecommit/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-codecommit/src/runtimeConfig.browser.ts b/clients/client-codecommit/src/runtimeConfig.browser.ts index 20a35e55c552..68f2a95e0f15 100644 --- a/clients/client-codecommit/src/runtimeConfig.browser.ts +++ b/clients/client-codecommit/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: CodeCommitClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-codecommit/src/runtimeConfig.shared.ts b/clients/client-codecommit/src/runtimeConfig.shared.ts index 27d8610ec974..923cf83eb89c 100644 --- a/clients/client-codecommit/src/runtimeConfig.shared.ts +++ b/clients/client-codecommit/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { CodeCommitClientConfig } from "./CodeCommitClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: CodeCommitClientConfig) => ({ apiVersion: "2015-04-13", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-codecommit/src/runtimeConfig.ts b/clients/client-codecommit/src/runtimeConfig.ts index 90fe43b63dd8..ef9713965d36 100644 --- a/clients/client-codecommit/src/runtimeConfig.ts +++ b/clients/client-codecommit/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: CodeCommitClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-codedeploy/package.json b/clients/client-codedeploy/package.json index 8a6300378fb8..feb1b6c3a407 100644 --- a/clients/client-codedeploy/package.json +++ b/clients/client-codedeploy/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-codedeploy/src/runtimeConfig.browser.ts b/clients/client-codedeploy/src/runtimeConfig.browser.ts index 4169ed6c3dd0..a080a65ba1b7 100644 --- a/clients/client-codedeploy/src/runtimeConfig.browser.ts +++ b/clients/client-codedeploy/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: CodeDeployClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-codedeploy/src/runtimeConfig.shared.ts b/clients/client-codedeploy/src/runtimeConfig.shared.ts index d9c8ecbc96bc..957c42710f88 100644 --- a/clients/client-codedeploy/src/runtimeConfig.shared.ts +++ b/clients/client-codedeploy/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { CodeDeployClientConfig } from "./CodeDeployClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: CodeDeployClientConfig) => ({ apiVersion: "2014-10-06", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-codedeploy/src/runtimeConfig.ts b/clients/client-codedeploy/src/runtimeConfig.ts index 8ad50ab11935..b2bcf95d1a68 100644 --- a/clients/client-codedeploy/src/runtimeConfig.ts +++ b/clients/client-codedeploy/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: CodeDeployClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-codeguru-reviewer/package.json b/clients/client-codeguru-reviewer/package.json index b3532aa461f5..376092ece5f8 100644 --- a/clients/client-codeguru-reviewer/package.json +++ b/clients/client-codeguru-reviewer/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-codeguru-reviewer/src/runtimeConfig.browser.ts b/clients/client-codeguru-reviewer/src/runtimeConfig.browser.ts index 0027415deda8..e58c6b9aa8d4 100644 --- a/clients/client-codeguru-reviewer/src/runtimeConfig.browser.ts +++ b/clients/client-codeguru-reviewer/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: CodeGuruReviewerClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-codeguru-reviewer/src/runtimeConfig.shared.ts b/clients/client-codeguru-reviewer/src/runtimeConfig.shared.ts index 8d41a9a71f87..775a2c5b5952 100644 --- a/clients/client-codeguru-reviewer/src/runtimeConfig.shared.ts +++ b/clients/client-codeguru-reviewer/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { CodeGuruReviewerClientConfig } from "./CodeGuruReviewerClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: CodeGuruReviewerClientConfig) => ({ apiVersion: "2019-09-19", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-codeguru-reviewer/src/runtimeConfig.ts b/clients/client-codeguru-reviewer/src/runtimeConfig.ts index 3a954a077cb3..c8a71a46a9ee 100644 --- a/clients/client-codeguru-reviewer/src/runtimeConfig.ts +++ b/clients/client-codeguru-reviewer/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: CodeGuruReviewerClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-codeguruprofiler/package.json b/clients/client-codeguruprofiler/package.json index 1a4c36157464..b4c9c1fbcd9b 100644 --- a/clients/client-codeguruprofiler/package.json +++ b/clients/client-codeguruprofiler/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-codeguruprofiler/src/runtimeConfig.browser.ts b/clients/client-codeguruprofiler/src/runtimeConfig.browser.ts index ee60e0fa1f0f..6c36cff92b07 100644 --- a/clients/client-codeguruprofiler/src/runtimeConfig.browser.ts +++ b/clients/client-codeguruprofiler/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: CodeGuruProfilerClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-codeguruprofiler/src/runtimeConfig.shared.ts b/clients/client-codeguruprofiler/src/runtimeConfig.shared.ts index b5019b046345..6831f2d5d9a5 100644 --- a/clients/client-codeguruprofiler/src/runtimeConfig.shared.ts +++ b/clients/client-codeguruprofiler/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { CodeGuruProfilerClientConfig } from "./CodeGuruProfilerClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: CodeGuruProfilerClientConfig) => ({ apiVersion: "2019-07-18", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-codeguruprofiler/src/runtimeConfig.ts b/clients/client-codeguruprofiler/src/runtimeConfig.ts index a7ce066031e2..17ff7bda374f 100644 --- a/clients/client-codeguruprofiler/src/runtimeConfig.ts +++ b/clients/client-codeguruprofiler/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: CodeGuruProfilerClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-codepipeline/package.json b/clients/client-codepipeline/package.json index 1a249a30d258..455987442771 100644 --- a/clients/client-codepipeline/package.json +++ b/clients/client-codepipeline/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-codepipeline/src/runtimeConfig.browser.ts b/clients/client-codepipeline/src/runtimeConfig.browser.ts index d9c2d3ea4824..b32444fd42e8 100644 --- a/clients/client-codepipeline/src/runtimeConfig.browser.ts +++ b/clients/client-codepipeline/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: CodePipelineClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-codepipeline/src/runtimeConfig.shared.ts b/clients/client-codepipeline/src/runtimeConfig.shared.ts index 644b549cf09b..120ec9adcb0d 100644 --- a/clients/client-codepipeline/src/runtimeConfig.shared.ts +++ b/clients/client-codepipeline/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { CodePipelineClientConfig } from "./CodePipelineClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: CodePipelineClientConfig) => ({ apiVersion: "2015-07-09", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-codepipeline/src/runtimeConfig.ts b/clients/client-codepipeline/src/runtimeConfig.ts index 544d6b10c75f..c780e79fa086 100644 --- a/clients/client-codepipeline/src/runtimeConfig.ts +++ b/clients/client-codepipeline/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: CodePipelineClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-codestar-connections/package.json b/clients/client-codestar-connections/package.json index c2cdecbfadbb..601111983a96 100644 --- a/clients/client-codestar-connections/package.json +++ b/clients/client-codestar-connections/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-codestar-connections/src/runtimeConfig.browser.ts b/clients/client-codestar-connections/src/runtimeConfig.browser.ts index 105268053c5d..c2246c87dc66 100644 --- a/clients/client-codestar-connections/src/runtimeConfig.browser.ts +++ b/clients/client-codestar-connections/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: CodeStarConnectionsClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-codestar-connections/src/runtimeConfig.shared.ts b/clients/client-codestar-connections/src/runtimeConfig.shared.ts index 493751c20c7a..f8d9b6641a3b 100644 --- a/clients/client-codestar-connections/src/runtimeConfig.shared.ts +++ b/clients/client-codestar-connections/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { CodeStarConnectionsClientConfig } from "./CodeStarConnectionsClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: CodeStarConnectionsClientConfig) => ({ apiVersion: "2019-12-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-codestar-connections/src/runtimeConfig.ts b/clients/client-codestar-connections/src/runtimeConfig.ts index b795df38069c..0b41d7f90cd5 100644 --- a/clients/client-codestar-connections/src/runtimeConfig.ts +++ b/clients/client-codestar-connections/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: CodeStarConnectionsClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-codestar-notifications/package.json b/clients/client-codestar-notifications/package.json index 1944c6890131..743f508e82cd 100644 --- a/clients/client-codestar-notifications/package.json +++ b/clients/client-codestar-notifications/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-codestar-notifications/src/runtimeConfig.browser.ts b/clients/client-codestar-notifications/src/runtimeConfig.browser.ts index db38b01b1f57..f9da837e8c9d 100644 --- a/clients/client-codestar-notifications/src/runtimeConfig.browser.ts +++ b/clients/client-codestar-notifications/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: CodestarNotificationsClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-codestar-notifications/src/runtimeConfig.shared.ts b/clients/client-codestar-notifications/src/runtimeConfig.shared.ts index 218e2f7d6d63..f88f9821401b 100644 --- a/clients/client-codestar-notifications/src/runtimeConfig.shared.ts +++ b/clients/client-codestar-notifications/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { CodestarNotificationsClientConfig } from "./CodestarNotificationsClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: CodestarNotificationsClientConfig) => ({ apiVersion: "2019-10-15", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-codestar-notifications/src/runtimeConfig.ts b/clients/client-codestar-notifications/src/runtimeConfig.ts index 983cccd7e248..d3f153034383 100644 --- a/clients/client-codestar-notifications/src/runtimeConfig.ts +++ b/clients/client-codestar-notifications/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: CodestarNotificationsClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-codestar/package.json b/clients/client-codestar/package.json index de5b394da49a..8e337908cd73 100644 --- a/clients/client-codestar/package.json +++ b/clients/client-codestar/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-codestar/src/runtimeConfig.browser.ts b/clients/client-codestar/src/runtimeConfig.browser.ts index 59f3bd3e03a6..b265e6a734a2 100644 --- a/clients/client-codestar/src/runtimeConfig.browser.ts +++ b/clients/client-codestar/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: CodeStarClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-codestar/src/runtimeConfig.shared.ts b/clients/client-codestar/src/runtimeConfig.shared.ts index 36f92d51bf8d..3f99d35725bc 100644 --- a/clients/client-codestar/src/runtimeConfig.shared.ts +++ b/clients/client-codestar/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { CodeStarClientConfig } from "./CodeStarClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: CodeStarClientConfig) => ({ apiVersion: "2017-04-19", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-codestar/src/runtimeConfig.ts b/clients/client-codestar/src/runtimeConfig.ts index 46e71664ffde..6bd1deb23aec 100644 --- a/clients/client-codestar/src/runtimeConfig.ts +++ b/clients/client-codestar/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: CodeStarClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-cognito-identity-provider/package.json b/clients/client-cognito-identity-provider/package.json index 5f053c8c2075..4486b10bb67d 100644 --- a/clients/client-cognito-identity-provider/package.json +++ b/clients/client-cognito-identity-provider/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-cognito-identity-provider/src/runtimeConfig.browser.ts b/clients/client-cognito-identity-provider/src/runtimeConfig.browser.ts index 60d6932b8c31..545a5847e478 100644 --- a/clients/client-cognito-identity-provider/src/runtimeConfig.browser.ts +++ b/clients/client-cognito-identity-provider/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: CognitoIdentityProviderClientConfig) => ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-cognito-identity-provider/src/runtimeConfig.shared.ts b/clients/client-cognito-identity-provider/src/runtimeConfig.shared.ts index cf58c33defb4..964ad34f4036 100644 --- a/clients/client-cognito-identity-provider/src/runtimeConfig.shared.ts +++ b/clients/client-cognito-identity-provider/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { CognitoIdentityProviderClientConfig } from "./CognitoIdentityProviderClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: CognitoIdentityProviderClientConfig) => ({ apiVersion: "2016-04-18", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-cognito-identity-provider/src/runtimeConfig.ts b/clients/client-cognito-identity-provider/src/runtimeConfig.ts index 6111349abac1..fa13096202e3 100644 --- a/clients/client-cognito-identity-provider/src/runtimeConfig.ts +++ b/clients/client-cognito-identity-provider/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: CognitoIdentityProviderClientConfig) => ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-cognito-identity/package.json b/clients/client-cognito-identity/package.json index 2555af17196a..2f4ecc548d63 100644 --- a/clients/client-cognito-identity/package.json +++ b/clients/client-cognito-identity/package.json @@ -42,6 +42,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-cognito-identity/src/runtimeConfig.browser.ts b/clients/client-cognito-identity/src/runtimeConfig.browser.ts index a08ed4790718..d8c226892af9 100644 --- a/clients/client-cognito-identity/src/runtimeConfig.browser.ts +++ b/clients/client-cognito-identity/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: CognitoIdentityClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-cognito-identity/src/runtimeConfig.shared.ts b/clients/client-cognito-identity/src/runtimeConfig.shared.ts index 3b976f883606..a62379b38d54 100644 --- a/clients/client-cognito-identity/src/runtimeConfig.shared.ts +++ b/clients/client-cognito-identity/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { CognitoIdentityClientConfig } from "./CognitoIdentityClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: CognitoIdentityClientConfig) => ({ apiVersion: "2014-06-30", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-cognito-identity/src/runtimeConfig.ts b/clients/client-cognito-identity/src/runtimeConfig.ts index 04420b887e15..517a696d10af 100644 --- a/clients/client-cognito-identity/src/runtimeConfig.ts +++ b/clients/client-cognito-identity/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: CognitoIdentityClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-cognito-sync/package.json b/clients/client-cognito-sync/package.json index 0da4cfa59fcf..29cfc05cf9e1 100644 --- a/clients/client-cognito-sync/package.json +++ b/clients/client-cognito-sync/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-cognito-sync/src/runtimeConfig.browser.ts b/clients/client-cognito-sync/src/runtimeConfig.browser.ts index 2547e009bcdb..cbfe1f3a26d0 100644 --- a/clients/client-cognito-sync/src/runtimeConfig.browser.ts +++ b/clients/client-cognito-sync/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: CognitoSyncClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-cognito-sync/src/runtimeConfig.shared.ts b/clients/client-cognito-sync/src/runtimeConfig.shared.ts index 584d7f1ce9a7..2b8a6594c60a 100644 --- a/clients/client-cognito-sync/src/runtimeConfig.shared.ts +++ b/clients/client-cognito-sync/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { CognitoSyncClientConfig } from "./CognitoSyncClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: CognitoSyncClientConfig) => ({ apiVersion: "2014-06-30", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-cognito-sync/src/runtimeConfig.ts b/clients/client-cognito-sync/src/runtimeConfig.ts index d4ac7870edf6..e2f91139da7b 100644 --- a/clients/client-cognito-sync/src/runtimeConfig.ts +++ b/clients/client-cognito-sync/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: CognitoSyncClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-comprehend/package.json b/clients/client-comprehend/package.json index eea2f37034d2..782b22d22693 100644 --- a/clients/client-comprehend/package.json +++ b/clients/client-comprehend/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-comprehend/src/runtimeConfig.browser.ts b/clients/client-comprehend/src/runtimeConfig.browser.ts index d37462adca33..ce19324880fc 100644 --- a/clients/client-comprehend/src/runtimeConfig.browser.ts +++ b/clients/client-comprehend/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: ComprehendClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-comprehend/src/runtimeConfig.shared.ts b/clients/client-comprehend/src/runtimeConfig.shared.ts index abdeb4dd57f2..d9ed1757811b 100644 --- a/clients/client-comprehend/src/runtimeConfig.shared.ts +++ b/clients/client-comprehend/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { ComprehendClientConfig } from "./ComprehendClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: ComprehendClientConfig) => ({ apiVersion: "2017-11-27", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-comprehend/src/runtimeConfig.ts b/clients/client-comprehend/src/runtimeConfig.ts index 1a19353629f3..1e7c35e8a7fd 100644 --- a/clients/client-comprehend/src/runtimeConfig.ts +++ b/clients/client-comprehend/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: ComprehendClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-comprehendmedical/package.json b/clients/client-comprehendmedical/package.json index bd07dfa27fad..dd67fdd96fca 100644 --- a/clients/client-comprehendmedical/package.json +++ b/clients/client-comprehendmedical/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-comprehendmedical/src/runtimeConfig.browser.ts b/clients/client-comprehendmedical/src/runtimeConfig.browser.ts index 1ce45f7393b8..d9b7f79145ba 100644 --- a/clients/client-comprehendmedical/src/runtimeConfig.browser.ts +++ b/clients/client-comprehendmedical/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: ComprehendMedicalClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-comprehendmedical/src/runtimeConfig.shared.ts b/clients/client-comprehendmedical/src/runtimeConfig.shared.ts index bef9dad1bd0a..b508758ed0db 100644 --- a/clients/client-comprehendmedical/src/runtimeConfig.shared.ts +++ b/clients/client-comprehendmedical/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { ComprehendMedicalClientConfig } from "./ComprehendMedicalClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: ComprehendMedicalClientConfig) => ({ apiVersion: "2018-10-30", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-comprehendmedical/src/runtimeConfig.ts b/clients/client-comprehendmedical/src/runtimeConfig.ts index 6e556dcd4839..37166b32064b 100644 --- a/clients/client-comprehendmedical/src/runtimeConfig.ts +++ b/clients/client-comprehendmedical/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: ComprehendMedicalClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-compute-optimizer/package.json b/clients/client-compute-optimizer/package.json index 680372022455..2bc06dfc73c7 100644 --- a/clients/client-compute-optimizer/package.json +++ b/clients/client-compute-optimizer/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-compute-optimizer/src/runtimeConfig.browser.ts b/clients/client-compute-optimizer/src/runtimeConfig.browser.ts index c701d963222c..fbd736d57939 100644 --- a/clients/client-compute-optimizer/src/runtimeConfig.browser.ts +++ b/clients/client-compute-optimizer/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: ComputeOptimizerClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-compute-optimizer/src/runtimeConfig.shared.ts b/clients/client-compute-optimizer/src/runtimeConfig.shared.ts index 57e5b4fb1e88..6df6c4e20522 100644 --- a/clients/client-compute-optimizer/src/runtimeConfig.shared.ts +++ b/clients/client-compute-optimizer/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { ComputeOptimizerClientConfig } from "./ComputeOptimizerClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: ComputeOptimizerClientConfig) => ({ apiVersion: "2019-11-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-compute-optimizer/src/runtimeConfig.ts b/clients/client-compute-optimizer/src/runtimeConfig.ts index 6a6168e7293f..8bba321a40e3 100644 --- a/clients/client-compute-optimizer/src/runtimeConfig.ts +++ b/clients/client-compute-optimizer/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: ComputeOptimizerClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-config-service/package.json b/clients/client-config-service/package.json index 38221b0954f3..c4fd470e052e 100644 --- a/clients/client-config-service/package.json +++ b/clients/client-config-service/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-config-service/src/runtimeConfig.browser.ts b/clients/client-config-service/src/runtimeConfig.browser.ts index 6600cd19705b..e0fb21c3ecc3 100644 --- a/clients/client-config-service/src/runtimeConfig.browser.ts +++ b/clients/client-config-service/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: ConfigServiceClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-config-service/src/runtimeConfig.shared.ts b/clients/client-config-service/src/runtimeConfig.shared.ts index b9d9986e3b75..523523ae7738 100644 --- a/clients/client-config-service/src/runtimeConfig.shared.ts +++ b/clients/client-config-service/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { ConfigServiceClientConfig } from "./ConfigServiceClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: ConfigServiceClientConfig) => ({ apiVersion: "2014-11-12", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-config-service/src/runtimeConfig.ts b/clients/client-config-service/src/runtimeConfig.ts index 6bb98253aa2e..b1dae7d28234 100644 --- a/clients/client-config-service/src/runtimeConfig.ts +++ b/clients/client-config-service/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: ConfigServiceClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-connect-contact-lens/package.json b/clients/client-connect-contact-lens/package.json index 207564ddd6ea..f90c6087d2e8 100644 --- a/clients/client-connect-contact-lens/package.json +++ b/clients/client-connect-contact-lens/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-connect-contact-lens/src/runtimeConfig.browser.ts b/clients/client-connect-contact-lens/src/runtimeConfig.browser.ts index 338dc27c6114..96a376e4bef7 100644 --- a/clients/client-connect-contact-lens/src/runtimeConfig.browser.ts +++ b/clients/client-connect-contact-lens/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: ConnectContactLensClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-connect-contact-lens/src/runtimeConfig.shared.ts b/clients/client-connect-contact-lens/src/runtimeConfig.shared.ts index 01465680e2f4..1fa4062607f0 100644 --- a/clients/client-connect-contact-lens/src/runtimeConfig.shared.ts +++ b/clients/client-connect-contact-lens/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { ConnectContactLensClientConfig } from "./ConnectContactLensClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: ConnectContactLensClientConfig) => ({ apiVersion: "2020-08-21", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-connect-contact-lens/src/runtimeConfig.ts b/clients/client-connect-contact-lens/src/runtimeConfig.ts index 482c6d00c7ff..7e84c9b9de1f 100644 --- a/clients/client-connect-contact-lens/src/runtimeConfig.ts +++ b/clients/client-connect-contact-lens/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: ConnectContactLensClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-connect/package.json b/clients/client-connect/package.json index 6a4cae4d84f7..468d80040e80 100644 --- a/clients/client-connect/package.json +++ b/clients/client-connect/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-connect/src/runtimeConfig.browser.ts b/clients/client-connect/src/runtimeConfig.browser.ts index c31e7595b673..372ca30d0f61 100644 --- a/clients/client-connect/src/runtimeConfig.browser.ts +++ b/clients/client-connect/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: ConnectClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-connect/src/runtimeConfig.shared.ts b/clients/client-connect/src/runtimeConfig.shared.ts index afab1a7147f0..00c8819a3fd2 100644 --- a/clients/client-connect/src/runtimeConfig.shared.ts +++ b/clients/client-connect/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { ConnectClientConfig } from "./ConnectClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: ConnectClientConfig) => ({ apiVersion: "2017-08-08", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-connect/src/runtimeConfig.ts b/clients/client-connect/src/runtimeConfig.ts index b6865bed8013..933af8ac085b 100644 --- a/clients/client-connect/src/runtimeConfig.ts +++ b/clients/client-connect/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: ConnectClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-connectcampaigns/package.json b/clients/client-connectcampaigns/package.json index 78fcaf227b98..14964984972c 100644 --- a/clients/client-connectcampaigns/package.json +++ b/clients/client-connectcampaigns/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-connectcampaigns/src/runtimeConfig.browser.ts b/clients/client-connectcampaigns/src/runtimeConfig.browser.ts index 075ea340be2a..441e131c681a 100644 --- a/clients/client-connectcampaigns/src/runtimeConfig.browser.ts +++ b/clients/client-connectcampaigns/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: ConnectCampaignsClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-connectcampaigns/src/runtimeConfig.shared.ts b/clients/client-connectcampaigns/src/runtimeConfig.shared.ts index 5fbbb2db66f1..9b23ad555fb1 100644 --- a/clients/client-connectcampaigns/src/runtimeConfig.shared.ts +++ b/clients/client-connectcampaigns/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { ConnectCampaignsClientConfig } from "./ConnectCampaignsClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: ConnectCampaignsClientConfig) => ({ apiVersion: "2021-01-30", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-connectcampaigns/src/runtimeConfig.ts b/clients/client-connectcampaigns/src/runtimeConfig.ts index 86ad70f6465e..e561357fa168 100644 --- a/clients/client-connectcampaigns/src/runtimeConfig.ts +++ b/clients/client-connectcampaigns/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: ConnectCampaignsClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-connectcases/package.json b/clients/client-connectcases/package.json index 3608889773d0..a6864630650f 100644 --- a/clients/client-connectcases/package.json +++ b/clients/client-connectcases/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-connectcases/src/runtimeConfig.browser.ts b/clients/client-connectcases/src/runtimeConfig.browser.ts index da13afb60fe3..1b8bfd50f3d2 100644 --- a/clients/client-connectcases/src/runtimeConfig.browser.ts +++ b/clients/client-connectcases/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: ConnectCasesClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-connectcases/src/runtimeConfig.shared.ts b/clients/client-connectcases/src/runtimeConfig.shared.ts index 74710bb6e3ac..9a31600b0625 100644 --- a/clients/client-connectcases/src/runtimeConfig.shared.ts +++ b/clients/client-connectcases/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { ConnectCasesClientConfig } from "./ConnectCasesClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: ConnectCasesClientConfig) => ({ apiVersion: "2022-10-03", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-connectcases/src/runtimeConfig.ts b/clients/client-connectcases/src/runtimeConfig.ts index 724050fc14cd..8391e1fc4fa7 100644 --- a/clients/client-connectcases/src/runtimeConfig.ts +++ b/clients/client-connectcases/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: ConnectCasesClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-connectparticipant/package.json b/clients/client-connectparticipant/package.json index 9f6813cbe13c..a4c808b1cf06 100644 --- a/clients/client-connectparticipant/package.json +++ b/clients/client-connectparticipant/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-connectparticipant/src/runtimeConfig.browser.ts b/clients/client-connectparticipant/src/runtimeConfig.browser.ts index 7308e83679d5..e44af5f51cfe 100644 --- a/clients/client-connectparticipant/src/runtimeConfig.browser.ts +++ b/clients/client-connectparticipant/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: ConnectParticipantClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-connectparticipant/src/runtimeConfig.shared.ts b/clients/client-connectparticipant/src/runtimeConfig.shared.ts index 94ac4ddcccc4..edd628fe7180 100644 --- a/clients/client-connectparticipant/src/runtimeConfig.shared.ts +++ b/clients/client-connectparticipant/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { ConnectParticipantClientConfig } from "./ConnectParticipantClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: ConnectParticipantClientConfig) => ({ apiVersion: "2018-09-07", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-connectparticipant/src/runtimeConfig.ts b/clients/client-connectparticipant/src/runtimeConfig.ts index d8bf6f842de3..45e4851ecdb1 100644 --- a/clients/client-connectparticipant/src/runtimeConfig.ts +++ b/clients/client-connectparticipant/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: ConnectParticipantClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-controltower/package.json b/clients/client-controltower/package.json index 814de0777d2e..4e03b51a1674 100644 --- a/clients/client-controltower/package.json +++ b/clients/client-controltower/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-controltower/src/runtimeConfig.browser.ts b/clients/client-controltower/src/runtimeConfig.browser.ts index d0d8f5fc741f..dde9bae15be0 100644 --- a/clients/client-controltower/src/runtimeConfig.browser.ts +++ b/clients/client-controltower/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: ControlTowerClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-controltower/src/runtimeConfig.shared.ts b/clients/client-controltower/src/runtimeConfig.shared.ts index 3507bef08d57..132f7d81b1c9 100644 --- a/clients/client-controltower/src/runtimeConfig.shared.ts +++ b/clients/client-controltower/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { ControlTowerClientConfig } from "./ControlTowerClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: ControlTowerClientConfig) => ({ apiVersion: "2018-05-10", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-controltower/src/runtimeConfig.ts b/clients/client-controltower/src/runtimeConfig.ts index 2ec6b8aeef12..3227c9a24928 100644 --- a/clients/client-controltower/src/runtimeConfig.ts +++ b/clients/client-controltower/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: ControlTowerClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-cost-and-usage-report-service/package.json b/clients/client-cost-and-usage-report-service/package.json index e7aeddd644b6..501b0387e845 100644 --- a/clients/client-cost-and-usage-report-service/package.json +++ b/clients/client-cost-and-usage-report-service/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-cost-and-usage-report-service/src/runtimeConfig.browser.ts b/clients/client-cost-and-usage-report-service/src/runtimeConfig.browser.ts index 65556ffd602f..39962ad33b6e 100644 --- a/clients/client-cost-and-usage-report-service/src/runtimeConfig.browser.ts +++ b/clients/client-cost-and-usage-report-service/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: CostAndUsageReportServiceClientConfig) ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-cost-and-usage-report-service/src/runtimeConfig.shared.ts b/clients/client-cost-and-usage-report-service/src/runtimeConfig.shared.ts index adca1c0c06a3..9ff581b36c7e 100644 --- a/clients/client-cost-and-usage-report-service/src/runtimeConfig.shared.ts +++ b/clients/client-cost-and-usage-report-service/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { CostAndUsageReportServiceClientConfig } from "./CostAndUsageReportServiceClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: CostAndUsageReportServiceClientConfig) => ({ apiVersion: "2017-01-06", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-cost-and-usage-report-service/src/runtimeConfig.ts b/clients/client-cost-and-usage-report-service/src/runtimeConfig.ts index 046179d7fc32..30203875dbdd 100644 --- a/clients/client-cost-and-usage-report-service/src/runtimeConfig.ts +++ b/clients/client-cost-and-usage-report-service/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: CostAndUsageReportServiceClientConfig) ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-cost-explorer/package.json b/clients/client-cost-explorer/package.json index a87138f54132..aef66195d04d 100644 --- a/clients/client-cost-explorer/package.json +++ b/clients/client-cost-explorer/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-cost-explorer/src/runtimeConfig.browser.ts b/clients/client-cost-explorer/src/runtimeConfig.browser.ts index 5bc47b6e7c76..5700ac45738b 100644 --- a/clients/client-cost-explorer/src/runtimeConfig.browser.ts +++ b/clients/client-cost-explorer/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: CostExplorerClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-cost-explorer/src/runtimeConfig.shared.ts b/clients/client-cost-explorer/src/runtimeConfig.shared.ts index 40fa53e82316..7c8e1a19e758 100644 --- a/clients/client-cost-explorer/src/runtimeConfig.shared.ts +++ b/clients/client-cost-explorer/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { CostExplorerClientConfig } from "./CostExplorerClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: CostExplorerClientConfig) => ({ apiVersion: "2017-10-25", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-cost-explorer/src/runtimeConfig.ts b/clients/client-cost-explorer/src/runtimeConfig.ts index 02b9672576fc..247093ee8ed6 100644 --- a/clients/client-cost-explorer/src/runtimeConfig.ts +++ b/clients/client-cost-explorer/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: CostExplorerClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-customer-profiles/package.json b/clients/client-customer-profiles/package.json index 466b1997ee3c..53d5f6d5a53c 100644 --- a/clients/client-customer-profiles/package.json +++ b/clients/client-customer-profiles/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-customer-profiles/src/runtimeConfig.browser.ts b/clients/client-customer-profiles/src/runtimeConfig.browser.ts index 9249e59757e5..89f4bb6626a0 100644 --- a/clients/client-customer-profiles/src/runtimeConfig.browser.ts +++ b/clients/client-customer-profiles/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: CustomerProfilesClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-customer-profiles/src/runtimeConfig.shared.ts b/clients/client-customer-profiles/src/runtimeConfig.shared.ts index ffc93823da31..359d5cb2c2f0 100644 --- a/clients/client-customer-profiles/src/runtimeConfig.shared.ts +++ b/clients/client-customer-profiles/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { CustomerProfilesClientConfig } from "./CustomerProfilesClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: CustomerProfilesClientConfig) => ({ apiVersion: "2020-08-15", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-customer-profiles/src/runtimeConfig.ts b/clients/client-customer-profiles/src/runtimeConfig.ts index ca61302ed629..f8110002e723 100644 --- a/clients/client-customer-profiles/src/runtimeConfig.ts +++ b/clients/client-customer-profiles/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: CustomerProfilesClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-data-pipeline/package.json b/clients/client-data-pipeline/package.json index d866dcc464ab..8b808a53fd78 100644 --- a/clients/client-data-pipeline/package.json +++ b/clients/client-data-pipeline/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-data-pipeline/src/runtimeConfig.browser.ts b/clients/client-data-pipeline/src/runtimeConfig.browser.ts index 2ccdee8aa08a..4cd764ec4bb1 100644 --- a/clients/client-data-pipeline/src/runtimeConfig.browser.ts +++ b/clients/client-data-pipeline/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: DataPipelineClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-data-pipeline/src/runtimeConfig.shared.ts b/clients/client-data-pipeline/src/runtimeConfig.shared.ts index dd8b81a06cf4..58d857227b5c 100644 --- a/clients/client-data-pipeline/src/runtimeConfig.shared.ts +++ b/clients/client-data-pipeline/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { DataPipelineClientConfig } from "./DataPipelineClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: DataPipelineClientConfig) => ({ apiVersion: "2012-10-29", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-data-pipeline/src/runtimeConfig.ts b/clients/client-data-pipeline/src/runtimeConfig.ts index 946f33cd346b..ee0d215881c0 100644 --- a/clients/client-data-pipeline/src/runtimeConfig.ts +++ b/clients/client-data-pipeline/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: DataPipelineClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-database-migration-service/package.json b/clients/client-database-migration-service/package.json index f35617cf40f6..3f32b763cb5f 100644 --- a/clients/client-database-migration-service/package.json +++ b/clients/client-database-migration-service/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-database-migration-service/src/runtimeConfig.browser.ts b/clients/client-database-migration-service/src/runtimeConfig.browser.ts index a4a0117ec443..2850ea938d57 100644 --- a/clients/client-database-migration-service/src/runtimeConfig.browser.ts +++ b/clients/client-database-migration-service/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: DatabaseMigrationServiceClientConfig) = ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-database-migration-service/src/runtimeConfig.shared.ts b/clients/client-database-migration-service/src/runtimeConfig.shared.ts index f37b677db576..d750bf97fd0c 100644 --- a/clients/client-database-migration-service/src/runtimeConfig.shared.ts +++ b/clients/client-database-migration-service/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { DatabaseMigrationServiceClientConfig } from "./DatabaseMigrationServiceClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: DatabaseMigrationServiceClientConfig) => ({ apiVersion: "2016-01-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-database-migration-service/src/runtimeConfig.ts b/clients/client-database-migration-service/src/runtimeConfig.ts index 0d04ffa82757..1d948b43b15f 100644 --- a/clients/client-database-migration-service/src/runtimeConfig.ts +++ b/clients/client-database-migration-service/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: DatabaseMigrationServiceClientConfig) = ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-databrew/package.json b/clients/client-databrew/package.json index f77c3b4906ac..5649636fcec2 100644 --- a/clients/client-databrew/package.json +++ b/clients/client-databrew/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-databrew/src/runtimeConfig.browser.ts b/clients/client-databrew/src/runtimeConfig.browser.ts index 17c1c9ebbd8e..a5f15e5a440d 100644 --- a/clients/client-databrew/src/runtimeConfig.browser.ts +++ b/clients/client-databrew/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: DataBrewClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-databrew/src/runtimeConfig.shared.ts b/clients/client-databrew/src/runtimeConfig.shared.ts index 46cd740460c2..5b71ef803b6f 100644 --- a/clients/client-databrew/src/runtimeConfig.shared.ts +++ b/clients/client-databrew/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { DataBrewClientConfig } from "./DataBrewClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: DataBrewClientConfig) => ({ apiVersion: "2017-07-25", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-databrew/src/runtimeConfig.ts b/clients/client-databrew/src/runtimeConfig.ts index 18ce73d3fa74..4bd10c2d2122 100644 --- a/clients/client-databrew/src/runtimeConfig.ts +++ b/clients/client-databrew/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: DataBrewClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-dataexchange/package.json b/clients/client-dataexchange/package.json index 9149508e8c3f..4c32f2234795 100644 --- a/clients/client-dataexchange/package.json +++ b/clients/client-dataexchange/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-dataexchange/src/runtimeConfig.browser.ts b/clients/client-dataexchange/src/runtimeConfig.browser.ts index d81d0e90611a..82e5b5ef9c6b 100644 --- a/clients/client-dataexchange/src/runtimeConfig.browser.ts +++ b/clients/client-dataexchange/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: DataExchangeClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-dataexchange/src/runtimeConfig.shared.ts b/clients/client-dataexchange/src/runtimeConfig.shared.ts index 7de296e004b2..ba0524603214 100644 --- a/clients/client-dataexchange/src/runtimeConfig.shared.ts +++ b/clients/client-dataexchange/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { DataExchangeClientConfig } from "./DataExchangeClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: DataExchangeClientConfig) => ({ apiVersion: "2017-07-25", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-dataexchange/src/runtimeConfig.ts b/clients/client-dataexchange/src/runtimeConfig.ts index ea4688d7c9b8..62dfd4d7d245 100644 --- a/clients/client-dataexchange/src/runtimeConfig.ts +++ b/clients/client-dataexchange/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: DataExchangeClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-datasync/package.json b/clients/client-datasync/package.json index c5171449cdf6..19d2d2f88a56 100644 --- a/clients/client-datasync/package.json +++ b/clients/client-datasync/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-datasync/src/runtimeConfig.browser.ts b/clients/client-datasync/src/runtimeConfig.browser.ts index a9feaad45aa6..239904cc5eeb 100644 --- a/clients/client-datasync/src/runtimeConfig.browser.ts +++ b/clients/client-datasync/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: DataSyncClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-datasync/src/runtimeConfig.shared.ts b/clients/client-datasync/src/runtimeConfig.shared.ts index 027f126a93af..5c6ac0b8eca7 100644 --- a/clients/client-datasync/src/runtimeConfig.shared.ts +++ b/clients/client-datasync/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { DataSyncClientConfig } from "./DataSyncClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: DataSyncClientConfig) => ({ apiVersion: "2018-11-09", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-datasync/src/runtimeConfig.ts b/clients/client-datasync/src/runtimeConfig.ts index 5dc403ef79e5..7d5a1906a49d 100644 --- a/clients/client-datasync/src/runtimeConfig.ts +++ b/clients/client-datasync/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: DataSyncClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-dax/package.json b/clients/client-dax/package.json index 01d1ec558617..ceb76d03cebe 100644 --- a/clients/client-dax/package.json +++ b/clients/client-dax/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-dax/src/runtimeConfig.browser.ts b/clients/client-dax/src/runtimeConfig.browser.ts index d3afadaea421..7c3ba3221a82 100644 --- a/clients/client-dax/src/runtimeConfig.browser.ts +++ b/clients/client-dax/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: DAXClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-dax/src/runtimeConfig.shared.ts b/clients/client-dax/src/runtimeConfig.shared.ts index 0dbd669b9a97..8046487080b4 100644 --- a/clients/client-dax/src/runtimeConfig.shared.ts +++ b/clients/client-dax/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { DAXClientConfig } from "./DAXClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: DAXClientConfig) => ({ apiVersion: "2017-04-19", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-dax/src/runtimeConfig.ts b/clients/client-dax/src/runtimeConfig.ts index 07c45b863c6d..72f418470e92 100644 --- a/clients/client-dax/src/runtimeConfig.ts +++ b/clients/client-dax/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: DAXClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-detective/package.json b/clients/client-detective/package.json index 3bb9c68fd378..02686a1df574 100644 --- a/clients/client-detective/package.json +++ b/clients/client-detective/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-detective/src/runtimeConfig.browser.ts b/clients/client-detective/src/runtimeConfig.browser.ts index d2d54bf671bd..789773920aca 100644 --- a/clients/client-detective/src/runtimeConfig.browser.ts +++ b/clients/client-detective/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: DetectiveClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-detective/src/runtimeConfig.shared.ts b/clients/client-detective/src/runtimeConfig.shared.ts index 873f278b151f..84a86587f2c2 100644 --- a/clients/client-detective/src/runtimeConfig.shared.ts +++ b/clients/client-detective/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { DetectiveClientConfig } from "./DetectiveClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: DetectiveClientConfig) => ({ apiVersion: "2018-10-26", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-detective/src/runtimeConfig.ts b/clients/client-detective/src/runtimeConfig.ts index 777688aba82d..7078ea4ee8be 100644 --- a/clients/client-detective/src/runtimeConfig.ts +++ b/clients/client-detective/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: DetectiveClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-device-farm/package.json b/clients/client-device-farm/package.json index 4a7054b37300..1039ff3ce0de 100644 --- a/clients/client-device-farm/package.json +++ b/clients/client-device-farm/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-device-farm/src/runtimeConfig.browser.ts b/clients/client-device-farm/src/runtimeConfig.browser.ts index da150841259a..0effa8e9f03a 100644 --- a/clients/client-device-farm/src/runtimeConfig.browser.ts +++ b/clients/client-device-farm/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: DeviceFarmClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-device-farm/src/runtimeConfig.shared.ts b/clients/client-device-farm/src/runtimeConfig.shared.ts index df708bac8b21..2960ee7869e1 100644 --- a/clients/client-device-farm/src/runtimeConfig.shared.ts +++ b/clients/client-device-farm/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { DeviceFarmClientConfig } from "./DeviceFarmClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: DeviceFarmClientConfig) => ({ apiVersion: "2015-06-23", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-device-farm/src/runtimeConfig.ts b/clients/client-device-farm/src/runtimeConfig.ts index 16e01b1efb6e..fd984b3f1dce 100644 --- a/clients/client-device-farm/src/runtimeConfig.ts +++ b/clients/client-device-farm/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: DeviceFarmClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-devops-guru/package.json b/clients/client-devops-guru/package.json index 1520062eb63a..42da74eccc16 100644 --- a/clients/client-devops-guru/package.json +++ b/clients/client-devops-guru/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-devops-guru/src/runtimeConfig.browser.ts b/clients/client-devops-guru/src/runtimeConfig.browser.ts index 038470e33043..68a6fd6c0847 100644 --- a/clients/client-devops-guru/src/runtimeConfig.browser.ts +++ b/clients/client-devops-guru/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: DevOpsGuruClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-devops-guru/src/runtimeConfig.shared.ts b/clients/client-devops-guru/src/runtimeConfig.shared.ts index 67e8da51b440..205395965bc7 100644 --- a/clients/client-devops-guru/src/runtimeConfig.shared.ts +++ b/clients/client-devops-guru/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { DevOpsGuruClientConfig } from "./DevOpsGuruClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: DevOpsGuruClientConfig) => ({ apiVersion: "2020-12-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-devops-guru/src/runtimeConfig.ts b/clients/client-devops-guru/src/runtimeConfig.ts index 1033cc1004b8..fc4252e3e23d 100644 --- a/clients/client-devops-guru/src/runtimeConfig.ts +++ b/clients/client-devops-guru/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: DevOpsGuruClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-direct-connect/package.json b/clients/client-direct-connect/package.json index 0fc4729dfdc3..1ef33978e61d 100644 --- a/clients/client-direct-connect/package.json +++ b/clients/client-direct-connect/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-direct-connect/src/runtimeConfig.browser.ts b/clients/client-direct-connect/src/runtimeConfig.browser.ts index 5313f73d9371..616fa1774955 100644 --- a/clients/client-direct-connect/src/runtimeConfig.browser.ts +++ b/clients/client-direct-connect/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: DirectConnectClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-direct-connect/src/runtimeConfig.shared.ts b/clients/client-direct-connect/src/runtimeConfig.shared.ts index 510b7719fd3c..d29a01aa0226 100644 --- a/clients/client-direct-connect/src/runtimeConfig.shared.ts +++ b/clients/client-direct-connect/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { DirectConnectClientConfig } from "./DirectConnectClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: DirectConnectClientConfig) => ({ apiVersion: "2012-10-25", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-direct-connect/src/runtimeConfig.ts b/clients/client-direct-connect/src/runtimeConfig.ts index d181a32c98d1..5bd728191d47 100644 --- a/clients/client-direct-connect/src/runtimeConfig.ts +++ b/clients/client-direct-connect/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: DirectConnectClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-directory-service/package.json b/clients/client-directory-service/package.json index ad28ab96e697..40807d6341e3 100644 --- a/clients/client-directory-service/package.json +++ b/clients/client-directory-service/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-directory-service/src/runtimeConfig.browser.ts b/clients/client-directory-service/src/runtimeConfig.browser.ts index 6804b3097eaf..23cf0ab39c7d 100644 --- a/clients/client-directory-service/src/runtimeConfig.browser.ts +++ b/clients/client-directory-service/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: DirectoryServiceClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-directory-service/src/runtimeConfig.shared.ts b/clients/client-directory-service/src/runtimeConfig.shared.ts index 6878ade49130..50086de175e7 100644 --- a/clients/client-directory-service/src/runtimeConfig.shared.ts +++ b/clients/client-directory-service/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { DirectoryServiceClientConfig } from "./DirectoryServiceClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: DirectoryServiceClientConfig) => ({ apiVersion: "2015-04-16", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-directory-service/src/runtimeConfig.ts b/clients/client-directory-service/src/runtimeConfig.ts index b6bf4f02976c..80c806048f02 100644 --- a/clients/client-directory-service/src/runtimeConfig.ts +++ b/clients/client-directory-service/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: DirectoryServiceClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-dlm/package.json b/clients/client-dlm/package.json index 612d5ff8dd17..e77dc6dbfd5a 100644 --- a/clients/client-dlm/package.json +++ b/clients/client-dlm/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-dlm/src/runtimeConfig.browser.ts b/clients/client-dlm/src/runtimeConfig.browser.ts index d815e94fa587..5949caff16cf 100644 --- a/clients/client-dlm/src/runtimeConfig.browser.ts +++ b/clients/client-dlm/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: DLMClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-dlm/src/runtimeConfig.shared.ts b/clients/client-dlm/src/runtimeConfig.shared.ts index 9e90ba643ce3..8cc00ec4c72b 100644 --- a/clients/client-dlm/src/runtimeConfig.shared.ts +++ b/clients/client-dlm/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { DLMClientConfig } from "./DLMClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: DLMClientConfig) => ({ apiVersion: "2018-01-12", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-dlm/src/runtimeConfig.ts b/clients/client-dlm/src/runtimeConfig.ts index 04c36c07081a..47e6b867e156 100644 --- a/clients/client-dlm/src/runtimeConfig.ts +++ b/clients/client-dlm/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: DLMClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-docdb/package.json b/clients/client-docdb/package.json index ea27d988b750..b8c182ce9d52 100644 --- a/clients/client-docdb/package.json +++ b/clients/client-docdb/package.json @@ -42,6 +42,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-docdb/src/runtimeConfig.browser.ts b/clients/client-docdb/src/runtimeConfig.browser.ts index 890a89c34246..0fc158523641 100644 --- a/clients/client-docdb/src/runtimeConfig.browser.ts +++ b/clients/client-docdb/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: DocDBClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-docdb/src/runtimeConfig.shared.ts b/clients/client-docdb/src/runtimeConfig.shared.ts index 3809c27e8536..24f5f6015fce 100644 --- a/clients/client-docdb/src/runtimeConfig.shared.ts +++ b/clients/client-docdb/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { DocDBClientConfig } from "./DocDBClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: DocDBClientConfig) => ({ apiVersion: "2014-10-31", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-docdb/src/runtimeConfig.ts b/clients/client-docdb/src/runtimeConfig.ts index 4a7197cc5b2d..4591762043d4 100644 --- a/clients/client-docdb/src/runtimeConfig.ts +++ b/clients/client-docdb/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: DocDBClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-drs/package.json b/clients/client-drs/package.json index ddf8c79ebfef..32c33eee031a 100644 --- a/clients/client-drs/package.json +++ b/clients/client-drs/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-drs/src/runtimeConfig.browser.ts b/clients/client-drs/src/runtimeConfig.browser.ts index cf7f0f4bb9f0..2b76743ba295 100644 --- a/clients/client-drs/src/runtimeConfig.browser.ts +++ b/clients/client-drs/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: DrsClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-drs/src/runtimeConfig.shared.ts b/clients/client-drs/src/runtimeConfig.shared.ts index 0ffdff963c97..50663eb73652 100644 --- a/clients/client-drs/src/runtimeConfig.shared.ts +++ b/clients/client-drs/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { DrsClientConfig } from "./DrsClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: DrsClientConfig) => ({ apiVersion: "2020-02-26", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-drs/src/runtimeConfig.ts b/clients/client-drs/src/runtimeConfig.ts index 2cdef8467991..722b8d570104 100644 --- a/clients/client-drs/src/runtimeConfig.ts +++ b/clients/client-drs/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: DrsClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-dynamodb-streams/package.json b/clients/client-dynamodb-streams/package.json index 9ddf4495dcef..3f17413e0e02 100644 --- a/clients/client-dynamodb-streams/package.json +++ b/clients/client-dynamodb-streams/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-dynamodb-streams/src/runtimeConfig.browser.ts b/clients/client-dynamodb-streams/src/runtimeConfig.browser.ts index ed7cc256a605..ab39dcd9a1db 100644 --- a/clients/client-dynamodb-streams/src/runtimeConfig.browser.ts +++ b/clients/client-dynamodb-streams/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: DynamoDBStreamsClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-dynamodb-streams/src/runtimeConfig.shared.ts b/clients/client-dynamodb-streams/src/runtimeConfig.shared.ts index c76b2014d77b..c149e2ef37f2 100644 --- a/clients/client-dynamodb-streams/src/runtimeConfig.shared.ts +++ b/clients/client-dynamodb-streams/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { DynamoDBStreamsClientConfig } from "./DynamoDBStreamsClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: DynamoDBStreamsClientConfig) => ({ apiVersion: "2012-08-10", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-dynamodb-streams/src/runtimeConfig.ts b/clients/client-dynamodb-streams/src/runtimeConfig.ts index ff44a3098639..846acc2d9f3a 100644 --- a/clients/client-dynamodb-streams/src/runtimeConfig.ts +++ b/clients/client-dynamodb-streams/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: DynamoDBStreamsClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-dynamodb/package.json b/clients/client-dynamodb/package.json index e46ea95ccaa2..96c3c6a6d51f 100644 --- a/clients/client-dynamodb/package.json +++ b/clients/client-dynamodb/package.json @@ -42,6 +42,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-dynamodb/src/runtimeConfig.browser.ts b/clients/client-dynamodb/src/runtimeConfig.browser.ts index c6c0abbd635f..5ed0aadacb45 100644 --- a/clients/client-dynamodb/src/runtimeConfig.browser.ts +++ b/clients/client-dynamodb/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: DynamoDBClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-dynamodb/src/runtimeConfig.shared.ts b/clients/client-dynamodb/src/runtimeConfig.shared.ts index d758ca0ca52f..167fd067ed61 100644 --- a/clients/client-dynamodb/src/runtimeConfig.shared.ts +++ b/clients/client-dynamodb/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { DynamoDBClientConfig } from "./DynamoDBClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: DynamoDBClientConfig) => ({ apiVersion: "2012-08-10", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-dynamodb/src/runtimeConfig.ts b/clients/client-dynamodb/src/runtimeConfig.ts index 8fe3c460d642..db27662eb2f7 100644 --- a/clients/client-dynamodb/src/runtimeConfig.ts +++ b/clients/client-dynamodb/src/runtimeConfig.ts @@ -19,7 +19,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -42,8 +41,6 @@ export const getRuntimeConfig = (config: DynamoDBClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-ebs/package.json b/clients/client-ebs/package.json index ce4eeaf45452..9aecd6b0e7f4 100644 --- a/clients/client-ebs/package.json +++ b/clients/client-ebs/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-ebs/src/runtimeConfig.browser.ts b/clients/client-ebs/src/runtimeConfig.browser.ts index 5d9f03d19c75..ba0f0a56eaf3 100644 --- a/clients/client-ebs/src/runtimeConfig.browser.ts +++ b/clients/client-ebs/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { sdkStreamMixin } from "@aws-sdk/util-stream-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; @@ -29,8 +28,6 @@ export const getRuntimeConfig = (config: EBSClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-ebs/src/runtimeConfig.shared.ts b/clients/client-ebs/src/runtimeConfig.shared.ts index 779548644367..a148dc0ffe8e 100644 --- a/clients/client-ebs/src/runtimeConfig.shared.ts +++ b/clients/client-ebs/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { EBSClientConfig } from "./EBSClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: EBSClientConfig) => ({ apiVersion: "2019-11-02", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-ebs/src/runtimeConfig.ts b/clients/client-ebs/src/runtimeConfig.ts index 1cba43c97295..6847ab7a71ee 100644 --- a/clients/client-ebs/src/runtimeConfig.ts +++ b/clients/client-ebs/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { sdkStreamMixin } from "@aws-sdk/util-stream-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -42,8 +41,6 @@ export const getRuntimeConfig = (config: EBSClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-ec2-instance-connect/package.json b/clients/client-ec2-instance-connect/package.json index ff3b1ae879c8..d3c670b43842 100644 --- a/clients/client-ec2-instance-connect/package.json +++ b/clients/client-ec2-instance-connect/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-ec2-instance-connect/src/runtimeConfig.browser.ts b/clients/client-ec2-instance-connect/src/runtimeConfig.browser.ts index 21fcd1b46f95..1e4b745922e6 100644 --- a/clients/client-ec2-instance-connect/src/runtimeConfig.browser.ts +++ b/clients/client-ec2-instance-connect/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: EC2InstanceConnectClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-ec2-instance-connect/src/runtimeConfig.shared.ts b/clients/client-ec2-instance-connect/src/runtimeConfig.shared.ts index d43f246d801e..189d7e894c12 100644 --- a/clients/client-ec2-instance-connect/src/runtimeConfig.shared.ts +++ b/clients/client-ec2-instance-connect/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { EC2InstanceConnectClientConfig } from "./EC2InstanceConnectClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: EC2InstanceConnectClientConfig) => ({ apiVersion: "2018-04-02", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-ec2-instance-connect/src/runtimeConfig.ts b/clients/client-ec2-instance-connect/src/runtimeConfig.ts index c3b1fe7ffa2c..a56c0459f2b8 100644 --- a/clients/client-ec2-instance-connect/src/runtimeConfig.ts +++ b/clients/client-ec2-instance-connect/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: EC2InstanceConnectClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-ec2/package.json b/clients/client-ec2/package.json index 6959c563e84f..c930253fe20c 100644 --- a/clients/client-ec2/package.json +++ b/clients/client-ec2/package.json @@ -42,6 +42,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-ec2/src/runtimeConfig.browser.ts b/clients/client-ec2/src/runtimeConfig.browser.ts index 2d62d1d5d764..592763cf4663 100644 --- a/clients/client-ec2/src/runtimeConfig.browser.ts +++ b/clients/client-ec2/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: EC2ClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-ec2/src/runtimeConfig.shared.ts b/clients/client-ec2/src/runtimeConfig.shared.ts index 37db94cf010f..8e31d7fd2ef9 100644 --- a/clients/client-ec2/src/runtimeConfig.shared.ts +++ b/clients/client-ec2/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { EC2ClientConfig } from "./EC2Client"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: EC2ClientConfig) => ({ apiVersion: "2016-11-15", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-ec2/src/runtimeConfig.ts b/clients/client-ec2/src/runtimeConfig.ts index 392289567008..c15a83875b44 100644 --- a/clients/client-ec2/src/runtimeConfig.ts +++ b/clients/client-ec2/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: EC2ClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-ecr-public/package.json b/clients/client-ecr-public/package.json index bdbb81e22adb..5adad2c5654e 100644 --- a/clients/client-ecr-public/package.json +++ b/clients/client-ecr-public/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-ecr-public/src/runtimeConfig.browser.ts b/clients/client-ecr-public/src/runtimeConfig.browser.ts index 930850b776e4..bf03f1116d2b 100644 --- a/clients/client-ecr-public/src/runtimeConfig.browser.ts +++ b/clients/client-ecr-public/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: ECRPUBLICClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-ecr-public/src/runtimeConfig.shared.ts b/clients/client-ecr-public/src/runtimeConfig.shared.ts index 079d2cd13e09..eadf8ce44db0 100644 --- a/clients/client-ecr-public/src/runtimeConfig.shared.ts +++ b/clients/client-ecr-public/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { ECRPUBLICClientConfig } from "./ECRPUBLICClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: ECRPUBLICClientConfig) => ({ apiVersion: "2020-10-30", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-ecr-public/src/runtimeConfig.ts b/clients/client-ecr-public/src/runtimeConfig.ts index a8200736bd8e..3affdf832e6e 100644 --- a/clients/client-ecr-public/src/runtimeConfig.ts +++ b/clients/client-ecr-public/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: ECRPUBLICClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-ecr/package.json b/clients/client-ecr/package.json index 72787b244cbd..3ff96a6acb91 100644 --- a/clients/client-ecr/package.json +++ b/clients/client-ecr/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-ecr/src/runtimeConfig.browser.ts b/clients/client-ecr/src/runtimeConfig.browser.ts index f02071d00a8d..50e79c76b905 100644 --- a/clients/client-ecr/src/runtimeConfig.browser.ts +++ b/clients/client-ecr/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: ECRClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-ecr/src/runtimeConfig.shared.ts b/clients/client-ecr/src/runtimeConfig.shared.ts index d4e849d2869c..06d3f752cf91 100644 --- a/clients/client-ecr/src/runtimeConfig.shared.ts +++ b/clients/client-ecr/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { ECRClientConfig } from "./ECRClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: ECRClientConfig) => ({ apiVersion: "2015-09-21", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-ecr/src/runtimeConfig.ts b/clients/client-ecr/src/runtimeConfig.ts index 5b28996ac8c4..b11d037746c3 100644 --- a/clients/client-ecr/src/runtimeConfig.ts +++ b/clients/client-ecr/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: ECRClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-ecs/package.json b/clients/client-ecs/package.json index 0aa075c211fe..efa4f3b7e4da 100644 --- a/clients/client-ecs/package.json +++ b/clients/client-ecs/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-ecs/src/runtimeConfig.browser.ts b/clients/client-ecs/src/runtimeConfig.browser.ts index 52ddd2c8c790..29b3cb423471 100644 --- a/clients/client-ecs/src/runtimeConfig.browser.ts +++ b/clients/client-ecs/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: ECSClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-ecs/src/runtimeConfig.shared.ts b/clients/client-ecs/src/runtimeConfig.shared.ts index 0386580dea8f..ce1fcf0a871d 100644 --- a/clients/client-ecs/src/runtimeConfig.shared.ts +++ b/clients/client-ecs/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { ECSClientConfig } from "./ECSClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: ECSClientConfig) => ({ apiVersion: "2014-11-13", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-ecs/src/runtimeConfig.ts b/clients/client-ecs/src/runtimeConfig.ts index 907e09bc4982..e5b82348133f 100644 --- a/clients/client-ecs/src/runtimeConfig.ts +++ b/clients/client-ecs/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: ECSClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-efs/package.json b/clients/client-efs/package.json index b6698583bcc8..59ee0ddafc58 100644 --- a/clients/client-efs/package.json +++ b/clients/client-efs/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-efs/src/runtimeConfig.browser.ts b/clients/client-efs/src/runtimeConfig.browser.ts index 10695c22fd16..6c054c8160cf 100644 --- a/clients/client-efs/src/runtimeConfig.browser.ts +++ b/clients/client-efs/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: EFSClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-efs/src/runtimeConfig.shared.ts b/clients/client-efs/src/runtimeConfig.shared.ts index 43ce961ce05e..64c4fd4d8abb 100644 --- a/clients/client-efs/src/runtimeConfig.shared.ts +++ b/clients/client-efs/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { EFSClientConfig } from "./EFSClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: EFSClientConfig) => ({ apiVersion: "2015-02-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-efs/src/runtimeConfig.ts b/clients/client-efs/src/runtimeConfig.ts index 6c244559939e..09b7006827a4 100644 --- a/clients/client-efs/src/runtimeConfig.ts +++ b/clients/client-efs/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: EFSClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-eks/package.json b/clients/client-eks/package.json index db71ca7dc143..dbf80227f273 100644 --- a/clients/client-eks/package.json +++ b/clients/client-eks/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-eks/src/runtimeConfig.browser.ts b/clients/client-eks/src/runtimeConfig.browser.ts index ced2f99f3672..f1d723ae2441 100644 --- a/clients/client-eks/src/runtimeConfig.browser.ts +++ b/clients/client-eks/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: EKSClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-eks/src/runtimeConfig.shared.ts b/clients/client-eks/src/runtimeConfig.shared.ts index 3aa505bf0e12..19a38d86891e 100644 --- a/clients/client-eks/src/runtimeConfig.shared.ts +++ b/clients/client-eks/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { EKSClientConfig } from "./EKSClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: EKSClientConfig) => ({ apiVersion: "2017-11-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-eks/src/runtimeConfig.ts b/clients/client-eks/src/runtimeConfig.ts index a0ac8e2a9345..b7dc8543a960 100644 --- a/clients/client-eks/src/runtimeConfig.ts +++ b/clients/client-eks/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: EKSClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-elastic-beanstalk/package.json b/clients/client-elastic-beanstalk/package.json index a753cb61136e..6782bd3ec0d4 100644 --- a/clients/client-elastic-beanstalk/package.json +++ b/clients/client-elastic-beanstalk/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-elastic-beanstalk/src/runtimeConfig.browser.ts b/clients/client-elastic-beanstalk/src/runtimeConfig.browser.ts index abcf27565b27..7c2359b90e5e 100644 --- a/clients/client-elastic-beanstalk/src/runtimeConfig.browser.ts +++ b/clients/client-elastic-beanstalk/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: ElasticBeanstalkClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-elastic-beanstalk/src/runtimeConfig.shared.ts b/clients/client-elastic-beanstalk/src/runtimeConfig.shared.ts index 64778664108b..f42c001c5894 100644 --- a/clients/client-elastic-beanstalk/src/runtimeConfig.shared.ts +++ b/clients/client-elastic-beanstalk/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { ElasticBeanstalkClientConfig } from "./ElasticBeanstalkClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: ElasticBeanstalkClientConfig) => ({ apiVersion: "2010-12-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-elastic-beanstalk/src/runtimeConfig.ts b/clients/client-elastic-beanstalk/src/runtimeConfig.ts index ff4b7db704b7..fe311095b274 100644 --- a/clients/client-elastic-beanstalk/src/runtimeConfig.ts +++ b/clients/client-elastic-beanstalk/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: ElasticBeanstalkClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-elastic-inference/package.json b/clients/client-elastic-inference/package.json index 2cfc9d2fdf56..d16c3af34298 100644 --- a/clients/client-elastic-inference/package.json +++ b/clients/client-elastic-inference/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-elastic-inference/src/runtimeConfig.browser.ts b/clients/client-elastic-inference/src/runtimeConfig.browser.ts index 2c32ab1bef24..aac3240b9806 100644 --- a/clients/client-elastic-inference/src/runtimeConfig.browser.ts +++ b/clients/client-elastic-inference/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: ElasticInferenceClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-elastic-inference/src/runtimeConfig.shared.ts b/clients/client-elastic-inference/src/runtimeConfig.shared.ts index e2a73ec7db6e..1e6947dafdf9 100644 --- a/clients/client-elastic-inference/src/runtimeConfig.shared.ts +++ b/clients/client-elastic-inference/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { ElasticInferenceClientConfig } from "./ElasticInferenceClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: ElasticInferenceClientConfig) => ({ apiVersion: "2017-07-25", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-elastic-inference/src/runtimeConfig.ts b/clients/client-elastic-inference/src/runtimeConfig.ts index 08d7ad4aed08..e1f9a2c5a45b 100644 --- a/clients/client-elastic-inference/src/runtimeConfig.ts +++ b/clients/client-elastic-inference/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: ElasticInferenceClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-elastic-load-balancing-v2/package.json b/clients/client-elastic-load-balancing-v2/package.json index 2efc5c68b163..2085aa5b8128 100644 --- a/clients/client-elastic-load-balancing-v2/package.json +++ b/clients/client-elastic-load-balancing-v2/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-elastic-load-balancing-v2/src/runtimeConfig.browser.ts b/clients/client-elastic-load-balancing-v2/src/runtimeConfig.browser.ts index 8170538624b4..57c552e7624f 100644 --- a/clients/client-elastic-load-balancing-v2/src/runtimeConfig.browser.ts +++ b/clients/client-elastic-load-balancing-v2/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: ElasticLoadBalancingV2ClientConfig) => ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-elastic-load-balancing-v2/src/runtimeConfig.shared.ts b/clients/client-elastic-load-balancing-v2/src/runtimeConfig.shared.ts index 26349de15303..28f1649fdb04 100644 --- a/clients/client-elastic-load-balancing-v2/src/runtimeConfig.shared.ts +++ b/clients/client-elastic-load-balancing-v2/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { ElasticLoadBalancingV2ClientConfig } from "./ElasticLoadBalancingV2Client"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: ElasticLoadBalancingV2ClientConfig) => ({ apiVersion: "2015-12-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-elastic-load-balancing-v2/src/runtimeConfig.ts b/clients/client-elastic-load-balancing-v2/src/runtimeConfig.ts index dd0ca247c842..6c7bbdf57eca 100644 --- a/clients/client-elastic-load-balancing-v2/src/runtimeConfig.ts +++ b/clients/client-elastic-load-balancing-v2/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: ElasticLoadBalancingV2ClientConfig) => ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-elastic-load-balancing/package.json b/clients/client-elastic-load-balancing/package.json index cce5d901676f..7c113b122425 100644 --- a/clients/client-elastic-load-balancing/package.json +++ b/clients/client-elastic-load-balancing/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-elastic-load-balancing/src/runtimeConfig.browser.ts b/clients/client-elastic-load-balancing/src/runtimeConfig.browser.ts index ba8922570c74..020407d01f11 100644 --- a/clients/client-elastic-load-balancing/src/runtimeConfig.browser.ts +++ b/clients/client-elastic-load-balancing/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: ElasticLoadBalancingClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-elastic-load-balancing/src/runtimeConfig.shared.ts b/clients/client-elastic-load-balancing/src/runtimeConfig.shared.ts index 4109c8a2d794..090818983554 100644 --- a/clients/client-elastic-load-balancing/src/runtimeConfig.shared.ts +++ b/clients/client-elastic-load-balancing/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { ElasticLoadBalancingClientConfig } from "./ElasticLoadBalancingClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: ElasticLoadBalancingClientConfig) => ({ apiVersion: "2012-06-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-elastic-load-balancing/src/runtimeConfig.ts b/clients/client-elastic-load-balancing/src/runtimeConfig.ts index dfe2b36e3881..0502d432fb6d 100644 --- a/clients/client-elastic-load-balancing/src/runtimeConfig.ts +++ b/clients/client-elastic-load-balancing/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: ElasticLoadBalancingClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-elastic-transcoder/package.json b/clients/client-elastic-transcoder/package.json index 9bec418dade5..952804a916ce 100644 --- a/clients/client-elastic-transcoder/package.json +++ b/clients/client-elastic-transcoder/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-elastic-transcoder/src/runtimeConfig.browser.ts b/clients/client-elastic-transcoder/src/runtimeConfig.browser.ts index 76699e0b7ac0..457377db5580 100644 --- a/clients/client-elastic-transcoder/src/runtimeConfig.browser.ts +++ b/clients/client-elastic-transcoder/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: ElasticTranscoderClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-elastic-transcoder/src/runtimeConfig.shared.ts b/clients/client-elastic-transcoder/src/runtimeConfig.shared.ts index eaa2d4a24d27..d18bc1ceb22b 100644 --- a/clients/client-elastic-transcoder/src/runtimeConfig.shared.ts +++ b/clients/client-elastic-transcoder/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { ElasticTranscoderClientConfig } from "./ElasticTranscoderClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: ElasticTranscoderClientConfig) => ({ apiVersion: "2012-09-25", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-elastic-transcoder/src/runtimeConfig.ts b/clients/client-elastic-transcoder/src/runtimeConfig.ts index 41995a961fd2..49f0ba5056bb 100644 --- a/clients/client-elastic-transcoder/src/runtimeConfig.ts +++ b/clients/client-elastic-transcoder/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: ElasticTranscoderClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-elasticache/package.json b/clients/client-elasticache/package.json index c1c5508bdb99..193b8a7434eb 100644 --- a/clients/client-elasticache/package.json +++ b/clients/client-elasticache/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-elasticache/src/runtimeConfig.browser.ts b/clients/client-elasticache/src/runtimeConfig.browser.ts index 2021fe2fa2d6..8565f273f2a2 100644 --- a/clients/client-elasticache/src/runtimeConfig.browser.ts +++ b/clients/client-elasticache/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: ElastiCacheClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-elasticache/src/runtimeConfig.shared.ts b/clients/client-elasticache/src/runtimeConfig.shared.ts index 1e95647da7d5..4481b1b92a24 100644 --- a/clients/client-elasticache/src/runtimeConfig.shared.ts +++ b/clients/client-elasticache/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { ElastiCacheClientConfig } from "./ElastiCacheClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: ElastiCacheClientConfig) => ({ apiVersion: "2015-02-02", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-elasticache/src/runtimeConfig.ts b/clients/client-elasticache/src/runtimeConfig.ts index 7cf67fa68043..23d406ef0f41 100644 --- a/clients/client-elasticache/src/runtimeConfig.ts +++ b/clients/client-elasticache/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: ElastiCacheClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-elasticsearch-service/package.json b/clients/client-elasticsearch-service/package.json index 2aa855b2fe09..546d01bf5f07 100644 --- a/clients/client-elasticsearch-service/package.json +++ b/clients/client-elasticsearch-service/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-elasticsearch-service/src/runtimeConfig.browser.ts b/clients/client-elasticsearch-service/src/runtimeConfig.browser.ts index 6e7278e183b4..cf6dd0c7f6ac 100644 --- a/clients/client-elasticsearch-service/src/runtimeConfig.browser.ts +++ b/clients/client-elasticsearch-service/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: ElasticsearchServiceClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-elasticsearch-service/src/runtimeConfig.shared.ts b/clients/client-elasticsearch-service/src/runtimeConfig.shared.ts index 82132979a3d1..c5314deace9d 100644 --- a/clients/client-elasticsearch-service/src/runtimeConfig.shared.ts +++ b/clients/client-elasticsearch-service/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { ElasticsearchServiceClientConfig } from "./ElasticsearchServiceClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: ElasticsearchServiceClientConfig) => ({ apiVersion: "2015-01-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-elasticsearch-service/src/runtimeConfig.ts b/clients/client-elasticsearch-service/src/runtimeConfig.ts index ae3fc80d5960..27406d965d1d 100644 --- a/clients/client-elasticsearch-service/src/runtimeConfig.ts +++ b/clients/client-elasticsearch-service/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: ElasticsearchServiceClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-emr-containers/package.json b/clients/client-emr-containers/package.json index 1cf60d86e4e5..4756b715af39 100644 --- a/clients/client-emr-containers/package.json +++ b/clients/client-emr-containers/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-emr-containers/src/runtimeConfig.browser.ts b/clients/client-emr-containers/src/runtimeConfig.browser.ts index e16e5545b468..46e843a1284d 100644 --- a/clients/client-emr-containers/src/runtimeConfig.browser.ts +++ b/clients/client-emr-containers/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: EMRContainersClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-emr-containers/src/runtimeConfig.shared.ts b/clients/client-emr-containers/src/runtimeConfig.shared.ts index 23fa8ead60fd..a94766f64550 100644 --- a/clients/client-emr-containers/src/runtimeConfig.shared.ts +++ b/clients/client-emr-containers/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { EMRContainersClientConfig } from "./EMRContainersClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: EMRContainersClientConfig) => ({ apiVersion: "2020-10-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-emr-containers/src/runtimeConfig.ts b/clients/client-emr-containers/src/runtimeConfig.ts index b74377c15c8c..09162d50ecc0 100644 --- a/clients/client-emr-containers/src/runtimeConfig.ts +++ b/clients/client-emr-containers/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: EMRContainersClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-emr-serverless/package.json b/clients/client-emr-serverless/package.json index 167b17a84b45..fd73373b4744 100644 --- a/clients/client-emr-serverless/package.json +++ b/clients/client-emr-serverless/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-emr-serverless/src/runtimeConfig.browser.ts b/clients/client-emr-serverless/src/runtimeConfig.browser.ts index 9955b7003bbf..0e11b745619e 100644 --- a/clients/client-emr-serverless/src/runtimeConfig.browser.ts +++ b/clients/client-emr-serverless/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: EMRServerlessClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-emr-serverless/src/runtimeConfig.shared.ts b/clients/client-emr-serverless/src/runtimeConfig.shared.ts index d4f0e14305fd..217dd3901f72 100644 --- a/clients/client-emr-serverless/src/runtimeConfig.shared.ts +++ b/clients/client-emr-serverless/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { EMRServerlessClientConfig } from "./EMRServerlessClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: EMRServerlessClientConfig) => ({ apiVersion: "2021-07-13", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-emr-serverless/src/runtimeConfig.ts b/clients/client-emr-serverless/src/runtimeConfig.ts index 8df49e6ac0c1..a9be039fd483 100644 --- a/clients/client-emr-serverless/src/runtimeConfig.ts +++ b/clients/client-emr-serverless/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: EMRServerlessClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-emr/package.json b/clients/client-emr/package.json index 84e62f7d6a2a..ef5da8ec30d0 100644 --- a/clients/client-emr/package.json +++ b/clients/client-emr/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-emr/src/runtimeConfig.browser.ts b/clients/client-emr/src/runtimeConfig.browser.ts index 28490fffb690..df54f725cc96 100644 --- a/clients/client-emr/src/runtimeConfig.browser.ts +++ b/clients/client-emr/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: EMRClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-emr/src/runtimeConfig.shared.ts b/clients/client-emr/src/runtimeConfig.shared.ts index d5c08115bac0..746564781a1c 100644 --- a/clients/client-emr/src/runtimeConfig.shared.ts +++ b/clients/client-emr/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { EMRClientConfig } from "./EMRClient"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; @@ -10,6 +11,8 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver"; */ export const getRuntimeConfig = (config: EMRClientConfig) => ({ apiVersion: "2009-03-31", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-emr/src/runtimeConfig.ts b/clients/client-emr/src/runtimeConfig.ts index 605857af394d..d42efd670afd 100644 --- a/clients/client-emr/src/runtimeConfig.ts +++ b/clients/client-emr/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: EMRClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-eventbridge/package.json b/clients/client-eventbridge/package.json index 7a8cad3ac9c5..4c6c26574955 100644 --- a/clients/client-eventbridge/package.json +++ b/clients/client-eventbridge/package.json @@ -44,6 +44,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-eventbridge/src/runtimeConfig.browser.ts b/clients/client-eventbridge/src/runtimeConfig.browser.ts index 2d4cc0e1af43..33dd5be93373 100644 --- a/clients/client-eventbridge/src/runtimeConfig.browser.ts +++ b/clients/client-eventbridge/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: EventBridgeClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-eventbridge/src/runtimeConfig.shared.ts b/clients/client-eventbridge/src/runtimeConfig.shared.ts index ec073d531999..336ec3dc148e 100644 --- a/clients/client-eventbridge/src/runtimeConfig.shared.ts +++ b/clients/client-eventbridge/src/runtimeConfig.shared.ts @@ -2,6 +2,7 @@ import { SignatureV4MultiRegion } from "@aws-sdk/signature-v4-multi-region"; import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { EventBridgeClientConfig } from "./EventBridgeClient"; @@ -11,6 +12,8 @@ import { EventBridgeClientConfig } from "./EventBridgeClient"; */ export const getRuntimeConfig = (config: EventBridgeClientConfig) => ({ apiVersion: "2015-10-07", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-eventbridge/src/runtimeConfig.ts b/clients/client-eventbridge/src/runtimeConfig.ts index 251f7c273eab..9d1f12bddc41 100644 --- a/clients/client-eventbridge/src/runtimeConfig.ts +++ b/clients/client-eventbridge/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: EventBridgeClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-evidently/package.json b/clients/client-evidently/package.json index c14ab5425485..e9f7391decdd 100644 --- a/clients/client-evidently/package.json +++ b/clients/client-evidently/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-evidently/src/runtimeConfig.browser.ts b/clients/client-evidently/src/runtimeConfig.browser.ts index b6028bcd513c..8ded49c3f61d 100644 --- a/clients/client-evidently/src/runtimeConfig.browser.ts +++ b/clients/client-evidently/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: EvidentlyClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-evidently/src/runtimeConfig.shared.ts b/clients/client-evidently/src/runtimeConfig.shared.ts index f9ac4337d7bb..bfe89481fce5 100644 --- a/clients/client-evidently/src/runtimeConfig.shared.ts +++ b/clients/client-evidently/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { EvidentlyClientConfig } from "./EvidentlyClient"; @@ -10,6 +11,8 @@ import { EvidentlyClientConfig } from "./EvidentlyClient"; */ export const getRuntimeConfig = (config: EvidentlyClientConfig) => ({ apiVersion: "2021-02-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-evidently/src/runtimeConfig.ts b/clients/client-evidently/src/runtimeConfig.ts index 444de51f0c31..7f143d01b654 100644 --- a/clients/client-evidently/src/runtimeConfig.ts +++ b/clients/client-evidently/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: EvidentlyClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-finspace-data/package.json b/clients/client-finspace-data/package.json index 28836b6b9c61..56f107ebf6b5 100644 --- a/clients/client-finspace-data/package.json +++ b/clients/client-finspace-data/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-finspace-data/src/runtimeConfig.browser.ts b/clients/client-finspace-data/src/runtimeConfig.browser.ts index 8b3372fc037d..bcb4c7fd6fda 100644 --- a/clients/client-finspace-data/src/runtimeConfig.browser.ts +++ b/clients/client-finspace-data/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: FinspaceDataClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-finspace-data/src/runtimeConfig.shared.ts b/clients/client-finspace-data/src/runtimeConfig.shared.ts index e49188bce2de..d804cd2feb3c 100644 --- a/clients/client-finspace-data/src/runtimeConfig.shared.ts +++ b/clients/client-finspace-data/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { FinspaceDataClientConfig } from "./FinspaceDataClient"; @@ -10,6 +11,8 @@ import { FinspaceDataClientConfig } from "./FinspaceDataClient"; */ export const getRuntimeConfig = (config: FinspaceDataClientConfig) => ({ apiVersion: "2020-07-13", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-finspace-data/src/runtimeConfig.ts b/clients/client-finspace-data/src/runtimeConfig.ts index 08f9f432e259..631421421f88 100644 --- a/clients/client-finspace-data/src/runtimeConfig.ts +++ b/clients/client-finspace-data/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: FinspaceDataClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-finspace/package.json b/clients/client-finspace/package.json index 409939abf088..d6c8cc9c970b 100644 --- a/clients/client-finspace/package.json +++ b/clients/client-finspace/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-finspace/src/runtimeConfig.browser.ts b/clients/client-finspace/src/runtimeConfig.browser.ts index ecf2b166505a..b7217a41d50b 100644 --- a/clients/client-finspace/src/runtimeConfig.browser.ts +++ b/clients/client-finspace/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: FinspaceClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-finspace/src/runtimeConfig.shared.ts b/clients/client-finspace/src/runtimeConfig.shared.ts index ed01c0fe9b96..dc85f516229d 100644 --- a/clients/client-finspace/src/runtimeConfig.shared.ts +++ b/clients/client-finspace/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { FinspaceClientConfig } from "./FinspaceClient"; @@ -10,6 +11,8 @@ import { FinspaceClientConfig } from "./FinspaceClient"; */ export const getRuntimeConfig = (config: FinspaceClientConfig) => ({ apiVersion: "2021-03-12", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-finspace/src/runtimeConfig.ts b/clients/client-finspace/src/runtimeConfig.ts index c2b8e6520c71..91f4f2207af5 100644 --- a/clients/client-finspace/src/runtimeConfig.ts +++ b/clients/client-finspace/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: FinspaceClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-firehose/package.json b/clients/client-firehose/package.json index 2bcce09f8139..1d505eca53b6 100644 --- a/clients/client-firehose/package.json +++ b/clients/client-firehose/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-firehose/src/runtimeConfig.browser.ts b/clients/client-firehose/src/runtimeConfig.browser.ts index 20b63c877e6f..ca176cf713e3 100644 --- a/clients/client-firehose/src/runtimeConfig.browser.ts +++ b/clients/client-firehose/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: FirehoseClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-firehose/src/runtimeConfig.shared.ts b/clients/client-firehose/src/runtimeConfig.shared.ts index b53b313d3c27..ae71b258f4f2 100644 --- a/clients/client-firehose/src/runtimeConfig.shared.ts +++ b/clients/client-firehose/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { FirehoseClientConfig } from "./FirehoseClient"; @@ -10,6 +11,8 @@ import { FirehoseClientConfig } from "./FirehoseClient"; */ export const getRuntimeConfig = (config: FirehoseClientConfig) => ({ apiVersion: "2015-08-04", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-firehose/src/runtimeConfig.ts b/clients/client-firehose/src/runtimeConfig.ts index a6b0ef62f68c..44d5703083a7 100644 --- a/clients/client-firehose/src/runtimeConfig.ts +++ b/clients/client-firehose/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: FirehoseClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-fis/package.json b/clients/client-fis/package.json index 1e4406f238f6..94e68822c570 100644 --- a/clients/client-fis/package.json +++ b/clients/client-fis/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-fis/src/runtimeConfig.browser.ts b/clients/client-fis/src/runtimeConfig.browser.ts index ee0a217d773c..320b30adff4c 100644 --- a/clients/client-fis/src/runtimeConfig.browser.ts +++ b/clients/client-fis/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: FisClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-fis/src/runtimeConfig.shared.ts b/clients/client-fis/src/runtimeConfig.shared.ts index cb43f56138a5..6e088ace247e 100644 --- a/clients/client-fis/src/runtimeConfig.shared.ts +++ b/clients/client-fis/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { FisClientConfig } from "./FisClient"; @@ -10,6 +11,8 @@ import { FisClientConfig } from "./FisClient"; */ export const getRuntimeConfig = (config: FisClientConfig) => ({ apiVersion: "2020-12-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-fis/src/runtimeConfig.ts b/clients/client-fis/src/runtimeConfig.ts index 51de5486699c..237642855b39 100644 --- a/clients/client-fis/src/runtimeConfig.ts +++ b/clients/client-fis/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: FisClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-fms/package.json b/clients/client-fms/package.json index ab62c7da1ead..ab3282e00f01 100644 --- a/clients/client-fms/package.json +++ b/clients/client-fms/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-fms/src/runtimeConfig.browser.ts b/clients/client-fms/src/runtimeConfig.browser.ts index b13c4f9a6cd7..30dbb019df07 100644 --- a/clients/client-fms/src/runtimeConfig.browser.ts +++ b/clients/client-fms/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: FMSClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-fms/src/runtimeConfig.shared.ts b/clients/client-fms/src/runtimeConfig.shared.ts index 45a7acf1ce99..3c48c5868610 100644 --- a/clients/client-fms/src/runtimeConfig.shared.ts +++ b/clients/client-fms/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { FMSClientConfig } from "./FMSClient"; @@ -10,6 +11,8 @@ import { FMSClientConfig } from "./FMSClient"; */ export const getRuntimeConfig = (config: FMSClientConfig) => ({ apiVersion: "2018-01-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-fms/src/runtimeConfig.ts b/clients/client-fms/src/runtimeConfig.ts index a7e77bdfc945..71a65a7bb8a1 100644 --- a/clients/client-fms/src/runtimeConfig.ts +++ b/clients/client-fms/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: FMSClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-forecast/package.json b/clients/client-forecast/package.json index a12ba6b4b164..c10616e0fb59 100644 --- a/clients/client-forecast/package.json +++ b/clients/client-forecast/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-forecast/src/runtimeConfig.browser.ts b/clients/client-forecast/src/runtimeConfig.browser.ts index b58a47b7e17d..25daf97d189f 100644 --- a/clients/client-forecast/src/runtimeConfig.browser.ts +++ b/clients/client-forecast/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: ForecastClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-forecast/src/runtimeConfig.shared.ts b/clients/client-forecast/src/runtimeConfig.shared.ts index 3dcc1d5b2546..986fa8318e27 100644 --- a/clients/client-forecast/src/runtimeConfig.shared.ts +++ b/clients/client-forecast/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { ForecastClientConfig } from "./ForecastClient"; @@ -10,6 +11,8 @@ import { ForecastClientConfig } from "./ForecastClient"; */ export const getRuntimeConfig = (config: ForecastClientConfig) => ({ apiVersion: "2018-06-26", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-forecast/src/runtimeConfig.ts b/clients/client-forecast/src/runtimeConfig.ts index fd050c3efb4f..de1d1e8dd83b 100644 --- a/clients/client-forecast/src/runtimeConfig.ts +++ b/clients/client-forecast/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: ForecastClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-forecastquery/package.json b/clients/client-forecastquery/package.json index aaf452baad96..c67c67159283 100644 --- a/clients/client-forecastquery/package.json +++ b/clients/client-forecastquery/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-forecastquery/src/runtimeConfig.browser.ts b/clients/client-forecastquery/src/runtimeConfig.browser.ts index 46eb879536db..df06ff9ce468 100644 --- a/clients/client-forecastquery/src/runtimeConfig.browser.ts +++ b/clients/client-forecastquery/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: ForecastqueryClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-forecastquery/src/runtimeConfig.shared.ts b/clients/client-forecastquery/src/runtimeConfig.shared.ts index bc80f36cb18c..51b39d9defb1 100644 --- a/clients/client-forecastquery/src/runtimeConfig.shared.ts +++ b/clients/client-forecastquery/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { ForecastqueryClientConfig } from "./ForecastqueryClient"; @@ -10,6 +11,8 @@ import { ForecastqueryClientConfig } from "./ForecastqueryClient"; */ export const getRuntimeConfig = (config: ForecastqueryClientConfig) => ({ apiVersion: "2018-06-26", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-forecastquery/src/runtimeConfig.ts b/clients/client-forecastquery/src/runtimeConfig.ts index c8930adcd798..dfc3ed5ed0ef 100644 --- a/clients/client-forecastquery/src/runtimeConfig.ts +++ b/clients/client-forecastquery/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: ForecastqueryClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-frauddetector/package.json b/clients/client-frauddetector/package.json index f94d15b1c508..a461fc22f88a 100644 --- a/clients/client-frauddetector/package.json +++ b/clients/client-frauddetector/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-frauddetector/src/runtimeConfig.browser.ts b/clients/client-frauddetector/src/runtimeConfig.browser.ts index 6db7526f3825..60ba2d44be7b 100644 --- a/clients/client-frauddetector/src/runtimeConfig.browser.ts +++ b/clients/client-frauddetector/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: FraudDetectorClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-frauddetector/src/runtimeConfig.shared.ts b/clients/client-frauddetector/src/runtimeConfig.shared.ts index 4e2b3c480228..60d907f1bf48 100644 --- a/clients/client-frauddetector/src/runtimeConfig.shared.ts +++ b/clients/client-frauddetector/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { FraudDetectorClientConfig } from "./FraudDetectorClient"; @@ -10,6 +11,8 @@ import { FraudDetectorClientConfig } from "./FraudDetectorClient"; */ export const getRuntimeConfig = (config: FraudDetectorClientConfig) => ({ apiVersion: "2019-11-15", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-frauddetector/src/runtimeConfig.ts b/clients/client-frauddetector/src/runtimeConfig.ts index 984de722db93..b8a0f02dd751 100644 --- a/clients/client-frauddetector/src/runtimeConfig.ts +++ b/clients/client-frauddetector/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: FraudDetectorClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-fsx/package.json b/clients/client-fsx/package.json index 30c4eb840c04..abc432e31315 100644 --- a/clients/client-fsx/package.json +++ b/clients/client-fsx/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-fsx/src/runtimeConfig.browser.ts b/clients/client-fsx/src/runtimeConfig.browser.ts index 0a83edb15437..8cab3d806e77 100644 --- a/clients/client-fsx/src/runtimeConfig.browser.ts +++ b/clients/client-fsx/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: FSxClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-fsx/src/runtimeConfig.shared.ts b/clients/client-fsx/src/runtimeConfig.shared.ts index 9854834b2382..ffbaabfc906d 100644 --- a/clients/client-fsx/src/runtimeConfig.shared.ts +++ b/clients/client-fsx/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { FSxClientConfig } from "./FSxClient"; @@ -10,6 +11,8 @@ import { FSxClientConfig } from "./FSxClient"; */ export const getRuntimeConfig = (config: FSxClientConfig) => ({ apiVersion: "2018-03-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-fsx/src/runtimeConfig.ts b/clients/client-fsx/src/runtimeConfig.ts index 8305e57151ef..a5daedd0764c 100644 --- a/clients/client-fsx/src/runtimeConfig.ts +++ b/clients/client-fsx/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: FSxClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-gamelift/package.json b/clients/client-gamelift/package.json index 2d92b09186fc..79c29bdcf996 100644 --- a/clients/client-gamelift/package.json +++ b/clients/client-gamelift/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-gamelift/src/runtimeConfig.browser.ts b/clients/client-gamelift/src/runtimeConfig.browser.ts index 8165891e958b..c38623532b53 100644 --- a/clients/client-gamelift/src/runtimeConfig.browser.ts +++ b/clients/client-gamelift/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: GameLiftClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-gamelift/src/runtimeConfig.shared.ts b/clients/client-gamelift/src/runtimeConfig.shared.ts index a252cda76d74..78edaaeaee61 100644 --- a/clients/client-gamelift/src/runtimeConfig.shared.ts +++ b/clients/client-gamelift/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { GameLiftClientConfig } from "./GameLiftClient"; @@ -10,6 +11,8 @@ import { GameLiftClientConfig } from "./GameLiftClient"; */ export const getRuntimeConfig = (config: GameLiftClientConfig) => ({ apiVersion: "2015-10-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-gamelift/src/runtimeConfig.ts b/clients/client-gamelift/src/runtimeConfig.ts index fa50d619087a..9be1f9622609 100644 --- a/clients/client-gamelift/src/runtimeConfig.ts +++ b/clients/client-gamelift/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: GameLiftClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-gamesparks/package.json b/clients/client-gamesparks/package.json index 246f7a17ec77..8a9d3f0980bd 100644 --- a/clients/client-gamesparks/package.json +++ b/clients/client-gamesparks/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-gamesparks/src/runtimeConfig.browser.ts b/clients/client-gamesparks/src/runtimeConfig.browser.ts index c18a457ccb43..f814e9d230c2 100644 --- a/clients/client-gamesparks/src/runtimeConfig.browser.ts +++ b/clients/client-gamesparks/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: GameSparksClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-gamesparks/src/runtimeConfig.shared.ts b/clients/client-gamesparks/src/runtimeConfig.shared.ts index 399d2cc81286..24b8e1296764 100644 --- a/clients/client-gamesparks/src/runtimeConfig.shared.ts +++ b/clients/client-gamesparks/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { GameSparksClientConfig } from "./GameSparksClient"; @@ -10,6 +11,8 @@ import { GameSparksClientConfig } from "./GameSparksClient"; */ export const getRuntimeConfig = (config: GameSparksClientConfig) => ({ apiVersion: "2021-08-17", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-gamesparks/src/runtimeConfig.ts b/clients/client-gamesparks/src/runtimeConfig.ts index 555a552af615..885feb0596fd 100644 --- a/clients/client-gamesparks/src/runtimeConfig.ts +++ b/clients/client-gamesparks/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: GameSparksClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-glacier/package.json b/clients/client-glacier/package.json index f9eb8c3031e3..5663cbe384f3 100644 --- a/clients/client-glacier/package.json +++ b/clients/client-glacier/package.json @@ -44,6 +44,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-glacier/src/runtimeConfig.browser.ts b/clients/client-glacier/src/runtimeConfig.browser.ts index 2f3d4efea38b..2c03dc56bc55 100644 --- a/clients/client-glacier/src/runtimeConfig.browser.ts +++ b/clients/client-glacier/src/runtimeConfig.browser.ts @@ -8,7 +8,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { sdkStreamMixin } from "@aws-sdk/util-stream-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; @@ -30,8 +29,6 @@ export const getRuntimeConfig = (config: GlacierClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyChecksumGenerator: config?.bodyChecksumGenerator ?? bodyChecksumGenerator, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: diff --git a/clients/client-glacier/src/runtimeConfig.shared.ts b/clients/client-glacier/src/runtimeConfig.shared.ts index 48854909d655..3d95871cee5a 100644 --- a/clients/client-glacier/src/runtimeConfig.shared.ts +++ b/clients/client-glacier/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { GlacierClientConfig } from "./GlacierClient"; @@ -10,6 +11,8 @@ import { GlacierClientConfig } from "./GlacierClient"; */ export const getRuntimeConfig = (config: GlacierClientConfig) => ({ apiVersion: "2012-06-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-glacier/src/runtimeConfig.ts b/clients/client-glacier/src/runtimeConfig.ts index 6c748cd9eea2..79c769fd9110 100644 --- a/clients/client-glacier/src/runtimeConfig.ts +++ b/clients/client-glacier/src/runtimeConfig.ts @@ -19,7 +19,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { sdkStreamMixin } from "@aws-sdk/util-stream-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -43,8 +42,6 @@ export const getRuntimeConfig = (config: GlacierClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyChecksumGenerator: config?.bodyChecksumGenerator ?? bodyChecksumGenerator, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: diff --git a/clients/client-global-accelerator/package.json b/clients/client-global-accelerator/package.json index c025a62dc76a..2d5df2afa277 100644 --- a/clients/client-global-accelerator/package.json +++ b/clients/client-global-accelerator/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-global-accelerator/src/runtimeConfig.browser.ts b/clients/client-global-accelerator/src/runtimeConfig.browser.ts index 531662c3f517..718459c7806a 100644 --- a/clients/client-global-accelerator/src/runtimeConfig.browser.ts +++ b/clients/client-global-accelerator/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: GlobalAcceleratorClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-global-accelerator/src/runtimeConfig.shared.ts b/clients/client-global-accelerator/src/runtimeConfig.shared.ts index 46667bdf5d24..33d6d94800ef 100644 --- a/clients/client-global-accelerator/src/runtimeConfig.shared.ts +++ b/clients/client-global-accelerator/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { GlobalAcceleratorClientConfig } from "./GlobalAcceleratorClient"; @@ -10,6 +11,8 @@ import { GlobalAcceleratorClientConfig } from "./GlobalAcceleratorClient"; */ export const getRuntimeConfig = (config: GlobalAcceleratorClientConfig) => ({ apiVersion: "2018-08-08", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-global-accelerator/src/runtimeConfig.ts b/clients/client-global-accelerator/src/runtimeConfig.ts index 1479f3a8796b..af1a829f1022 100644 --- a/clients/client-global-accelerator/src/runtimeConfig.ts +++ b/clients/client-global-accelerator/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: GlobalAcceleratorClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-glue/package.json b/clients/client-glue/package.json index 52c1c6496cda..724b58316b30 100644 --- a/clients/client-glue/package.json +++ b/clients/client-glue/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-glue/src/runtimeConfig.browser.ts b/clients/client-glue/src/runtimeConfig.browser.ts index 1ad84adcee5a..3dc9c5178a71 100644 --- a/clients/client-glue/src/runtimeConfig.browser.ts +++ b/clients/client-glue/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: GlueClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-glue/src/runtimeConfig.shared.ts b/clients/client-glue/src/runtimeConfig.shared.ts index 00d346ed453a..7ba3aecbc739 100644 --- a/clients/client-glue/src/runtimeConfig.shared.ts +++ b/clients/client-glue/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { GlueClientConfig } from "./GlueClient"; @@ -10,6 +11,8 @@ import { GlueClientConfig } from "./GlueClient"; */ export const getRuntimeConfig = (config: GlueClientConfig) => ({ apiVersion: "2017-03-31", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-glue/src/runtimeConfig.ts b/clients/client-glue/src/runtimeConfig.ts index ac5a4f1ae1f3..70d8d4122219 100644 --- a/clients/client-glue/src/runtimeConfig.ts +++ b/clients/client-glue/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: GlueClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-grafana/package.json b/clients/client-grafana/package.json index 768af4f22b96..ac9c1a4df8b3 100644 --- a/clients/client-grafana/package.json +++ b/clients/client-grafana/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-grafana/src/runtimeConfig.browser.ts b/clients/client-grafana/src/runtimeConfig.browser.ts index 73d863964a5f..f52cb9cee3dd 100644 --- a/clients/client-grafana/src/runtimeConfig.browser.ts +++ b/clients/client-grafana/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: GrafanaClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-grafana/src/runtimeConfig.shared.ts b/clients/client-grafana/src/runtimeConfig.shared.ts index 8f77f423f462..3b109d33b187 100644 --- a/clients/client-grafana/src/runtimeConfig.shared.ts +++ b/clients/client-grafana/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { GrafanaClientConfig } from "./GrafanaClient"; @@ -10,6 +11,8 @@ import { GrafanaClientConfig } from "./GrafanaClient"; */ export const getRuntimeConfig = (config: GrafanaClientConfig) => ({ apiVersion: "2020-08-18", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-grafana/src/runtimeConfig.ts b/clients/client-grafana/src/runtimeConfig.ts index 3f74b14b514e..beeaeda1c98e 100644 --- a/clients/client-grafana/src/runtimeConfig.ts +++ b/clients/client-grafana/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: GrafanaClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-greengrass/package.json b/clients/client-greengrass/package.json index c8757ef0a998..a6d4b741c634 100644 --- a/clients/client-greengrass/package.json +++ b/clients/client-greengrass/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-greengrass/src/runtimeConfig.browser.ts b/clients/client-greengrass/src/runtimeConfig.browser.ts index c0b84a016946..ac1d2ad0ef9d 100644 --- a/clients/client-greengrass/src/runtimeConfig.browser.ts +++ b/clients/client-greengrass/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: GreengrassClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-greengrass/src/runtimeConfig.shared.ts b/clients/client-greengrass/src/runtimeConfig.shared.ts index a2f9fb968d74..93970289cacd 100644 --- a/clients/client-greengrass/src/runtimeConfig.shared.ts +++ b/clients/client-greengrass/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { GreengrassClientConfig } from "./GreengrassClient"; @@ -10,6 +11,8 @@ import { GreengrassClientConfig } from "./GreengrassClient"; */ export const getRuntimeConfig = (config: GreengrassClientConfig) => ({ apiVersion: "2017-06-07", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-greengrass/src/runtimeConfig.ts b/clients/client-greengrass/src/runtimeConfig.ts index 14647a24aa93..a40608b32be8 100644 --- a/clients/client-greengrass/src/runtimeConfig.ts +++ b/clients/client-greengrass/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: GreengrassClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-greengrassv2/package.json b/clients/client-greengrassv2/package.json index fa0199e7ba4d..da2291e7c039 100644 --- a/clients/client-greengrassv2/package.json +++ b/clients/client-greengrassv2/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-greengrassv2/src/runtimeConfig.browser.ts b/clients/client-greengrassv2/src/runtimeConfig.browser.ts index 44466f526f51..8f3a4c4e7e9a 100644 --- a/clients/client-greengrassv2/src/runtimeConfig.browser.ts +++ b/clients/client-greengrassv2/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: GreengrassV2ClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-greengrassv2/src/runtimeConfig.shared.ts b/clients/client-greengrassv2/src/runtimeConfig.shared.ts index 6a399f33b30f..803d6e8b112a 100644 --- a/clients/client-greengrassv2/src/runtimeConfig.shared.ts +++ b/clients/client-greengrassv2/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { GreengrassV2ClientConfig } from "./GreengrassV2Client"; @@ -10,6 +11,8 @@ import { GreengrassV2ClientConfig } from "./GreengrassV2Client"; */ export const getRuntimeConfig = (config: GreengrassV2ClientConfig) => ({ apiVersion: "2020-11-30", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-greengrassv2/src/runtimeConfig.ts b/clients/client-greengrassv2/src/runtimeConfig.ts index c03bab914aaa..4497a26ebd84 100644 --- a/clients/client-greengrassv2/src/runtimeConfig.ts +++ b/clients/client-greengrassv2/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: GreengrassV2ClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-groundstation/package.json b/clients/client-groundstation/package.json index 5e8e8c91917e..d5d44ccc961e 100644 --- a/clients/client-groundstation/package.json +++ b/clients/client-groundstation/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-groundstation/src/runtimeConfig.browser.ts b/clients/client-groundstation/src/runtimeConfig.browser.ts index 3301245406cf..ba4a0c758384 100644 --- a/clients/client-groundstation/src/runtimeConfig.browser.ts +++ b/clients/client-groundstation/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: GroundStationClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-groundstation/src/runtimeConfig.shared.ts b/clients/client-groundstation/src/runtimeConfig.shared.ts index b75b4b2760fa..fa8e54549a03 100644 --- a/clients/client-groundstation/src/runtimeConfig.shared.ts +++ b/clients/client-groundstation/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { GroundStationClientConfig } from "./GroundStationClient"; @@ -10,6 +11,8 @@ import { GroundStationClientConfig } from "./GroundStationClient"; */ export const getRuntimeConfig = (config: GroundStationClientConfig) => ({ apiVersion: "2019-05-23", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-groundstation/src/runtimeConfig.ts b/clients/client-groundstation/src/runtimeConfig.ts index 9b7c4f16d9b8..8a8bfb3b8100 100644 --- a/clients/client-groundstation/src/runtimeConfig.ts +++ b/clients/client-groundstation/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: GroundStationClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-guardduty/package.json b/clients/client-guardduty/package.json index 451757c0a4d0..22a6a9dbdfa3 100644 --- a/clients/client-guardduty/package.json +++ b/clients/client-guardduty/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-guardduty/src/runtimeConfig.browser.ts b/clients/client-guardduty/src/runtimeConfig.browser.ts index 57c58b3d752c..0e2579132336 100644 --- a/clients/client-guardduty/src/runtimeConfig.browser.ts +++ b/clients/client-guardduty/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: GuardDutyClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-guardduty/src/runtimeConfig.shared.ts b/clients/client-guardduty/src/runtimeConfig.shared.ts index 87b0f10472df..81322f099bf4 100644 --- a/clients/client-guardduty/src/runtimeConfig.shared.ts +++ b/clients/client-guardduty/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { GuardDutyClientConfig } from "./GuardDutyClient"; @@ -10,6 +11,8 @@ import { GuardDutyClientConfig } from "./GuardDutyClient"; */ export const getRuntimeConfig = (config: GuardDutyClientConfig) => ({ apiVersion: "2017-11-28", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-guardduty/src/runtimeConfig.ts b/clients/client-guardduty/src/runtimeConfig.ts index 82ff15e1b031..7abf8e9f7be7 100644 --- a/clients/client-guardduty/src/runtimeConfig.ts +++ b/clients/client-guardduty/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: GuardDutyClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-health/package.json b/clients/client-health/package.json index b70c572827ba..c84d4b030326 100644 --- a/clients/client-health/package.json +++ b/clients/client-health/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-health/src/runtimeConfig.browser.ts b/clients/client-health/src/runtimeConfig.browser.ts index 2eff1b2920bb..b018f995c5c0 100644 --- a/clients/client-health/src/runtimeConfig.browser.ts +++ b/clients/client-health/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: HealthClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-health/src/runtimeConfig.shared.ts b/clients/client-health/src/runtimeConfig.shared.ts index a917299cd91e..afc0dabc69e6 100644 --- a/clients/client-health/src/runtimeConfig.shared.ts +++ b/clients/client-health/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { HealthClientConfig } from "./HealthClient"; @@ -10,6 +11,8 @@ import { HealthClientConfig } from "./HealthClient"; */ export const getRuntimeConfig = (config: HealthClientConfig) => ({ apiVersion: "2016-08-04", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-health/src/runtimeConfig.ts b/clients/client-health/src/runtimeConfig.ts index b98db0bbf576..3959d1958757 100644 --- a/clients/client-health/src/runtimeConfig.ts +++ b/clients/client-health/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: HealthClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-healthlake/package.json b/clients/client-healthlake/package.json index 3fae3df7a4ec..6a85b716f0e6 100644 --- a/clients/client-healthlake/package.json +++ b/clients/client-healthlake/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-healthlake/src/runtimeConfig.browser.ts b/clients/client-healthlake/src/runtimeConfig.browser.ts index 5a6ef0d89c80..8a522add9794 100644 --- a/clients/client-healthlake/src/runtimeConfig.browser.ts +++ b/clients/client-healthlake/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: HealthLakeClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-healthlake/src/runtimeConfig.shared.ts b/clients/client-healthlake/src/runtimeConfig.shared.ts index 23ca16a6e46d..f50c5b341fdd 100644 --- a/clients/client-healthlake/src/runtimeConfig.shared.ts +++ b/clients/client-healthlake/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { HealthLakeClientConfig } from "./HealthLakeClient"; @@ -10,6 +11,8 @@ import { HealthLakeClientConfig } from "./HealthLakeClient"; */ export const getRuntimeConfig = (config: HealthLakeClientConfig) => ({ apiVersion: "2017-07-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-healthlake/src/runtimeConfig.ts b/clients/client-healthlake/src/runtimeConfig.ts index 681624b91620..47bf85d28623 100644 --- a/clients/client-healthlake/src/runtimeConfig.ts +++ b/clients/client-healthlake/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: HealthLakeClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-honeycode/package.json b/clients/client-honeycode/package.json index f945f528803e..a99bf7c1d695 100644 --- a/clients/client-honeycode/package.json +++ b/clients/client-honeycode/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-honeycode/src/runtimeConfig.browser.ts b/clients/client-honeycode/src/runtimeConfig.browser.ts index 5ef2b96bac29..33d6c391dde6 100644 --- a/clients/client-honeycode/src/runtimeConfig.browser.ts +++ b/clients/client-honeycode/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: HoneycodeClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-honeycode/src/runtimeConfig.shared.ts b/clients/client-honeycode/src/runtimeConfig.shared.ts index eebc43bacc86..0b06e652103c 100644 --- a/clients/client-honeycode/src/runtimeConfig.shared.ts +++ b/clients/client-honeycode/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { HoneycodeClientConfig } from "./HoneycodeClient"; @@ -10,6 +11,8 @@ import { HoneycodeClientConfig } from "./HoneycodeClient"; */ export const getRuntimeConfig = (config: HoneycodeClientConfig) => ({ apiVersion: "2020-03-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-honeycode/src/runtimeConfig.ts b/clients/client-honeycode/src/runtimeConfig.ts index 493c65996a12..f44a820a2601 100644 --- a/clients/client-honeycode/src/runtimeConfig.ts +++ b/clients/client-honeycode/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: HoneycodeClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-iam/package.json b/clients/client-iam/package.json index c8f0860b2952..79697e4a7aa7 100644 --- a/clients/client-iam/package.json +++ b/clients/client-iam/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-iam/src/runtimeConfig.browser.ts b/clients/client-iam/src/runtimeConfig.browser.ts index 96a0417a5fc9..f0de1f0a6a05 100644 --- a/clients/client-iam/src/runtimeConfig.browser.ts +++ b/clients/client-iam/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: IAMClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-iam/src/runtimeConfig.shared.ts b/clients/client-iam/src/runtimeConfig.shared.ts index fc8c043c8776..0c40d69a51e6 100644 --- a/clients/client-iam/src/runtimeConfig.shared.ts +++ b/clients/client-iam/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { IAMClientConfig } from "./IAMClient"; @@ -10,6 +11,8 @@ import { IAMClientConfig } from "./IAMClient"; */ export const getRuntimeConfig = (config: IAMClientConfig) => ({ apiVersion: "2010-05-08", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-iam/src/runtimeConfig.ts b/clients/client-iam/src/runtimeConfig.ts index 5b299c4627e8..cf1ec88543bd 100644 --- a/clients/client-iam/src/runtimeConfig.ts +++ b/clients/client-iam/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: IAMClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-identitystore/package.json b/clients/client-identitystore/package.json index 3b957239f357..cdbcbfbbfd63 100644 --- a/clients/client-identitystore/package.json +++ b/clients/client-identitystore/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-identitystore/src/runtimeConfig.browser.ts b/clients/client-identitystore/src/runtimeConfig.browser.ts index 104e6a95927f..fb6c419753d9 100644 --- a/clients/client-identitystore/src/runtimeConfig.browser.ts +++ b/clients/client-identitystore/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: IdentitystoreClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-identitystore/src/runtimeConfig.shared.ts b/clients/client-identitystore/src/runtimeConfig.shared.ts index 9b0c5107b429..c0e6c1575ec9 100644 --- a/clients/client-identitystore/src/runtimeConfig.shared.ts +++ b/clients/client-identitystore/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { IdentitystoreClientConfig } from "./IdentitystoreClient"; @@ -10,6 +11,8 @@ import { IdentitystoreClientConfig } from "./IdentitystoreClient"; */ export const getRuntimeConfig = (config: IdentitystoreClientConfig) => ({ apiVersion: "2020-06-15", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-identitystore/src/runtimeConfig.ts b/clients/client-identitystore/src/runtimeConfig.ts index ca5ce9cbd21b..34cb775a849b 100644 --- a/clients/client-identitystore/src/runtimeConfig.ts +++ b/clients/client-identitystore/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: IdentitystoreClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-imagebuilder/package.json b/clients/client-imagebuilder/package.json index fffc48d18842..dc663f4cfc0f 100644 --- a/clients/client-imagebuilder/package.json +++ b/clients/client-imagebuilder/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-imagebuilder/src/runtimeConfig.browser.ts b/clients/client-imagebuilder/src/runtimeConfig.browser.ts index af2b14e1c764..da7384286cfa 100644 --- a/clients/client-imagebuilder/src/runtimeConfig.browser.ts +++ b/clients/client-imagebuilder/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: ImagebuilderClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-imagebuilder/src/runtimeConfig.shared.ts b/clients/client-imagebuilder/src/runtimeConfig.shared.ts index bb8b61cc3d70..c3742109616a 100644 --- a/clients/client-imagebuilder/src/runtimeConfig.shared.ts +++ b/clients/client-imagebuilder/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { ImagebuilderClientConfig } from "./ImagebuilderClient"; @@ -10,6 +11,8 @@ import { ImagebuilderClientConfig } from "./ImagebuilderClient"; */ export const getRuntimeConfig = (config: ImagebuilderClientConfig) => ({ apiVersion: "2019-12-02", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-imagebuilder/src/runtimeConfig.ts b/clients/client-imagebuilder/src/runtimeConfig.ts index e12f4f7973c9..6e659483514e 100644 --- a/clients/client-imagebuilder/src/runtimeConfig.ts +++ b/clients/client-imagebuilder/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: ImagebuilderClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-inspector/package.json b/clients/client-inspector/package.json index d471b88290a4..1a38f567f266 100644 --- a/clients/client-inspector/package.json +++ b/clients/client-inspector/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-inspector/src/runtimeConfig.browser.ts b/clients/client-inspector/src/runtimeConfig.browser.ts index 082b0e7e1f2c..ef8dd01c54f6 100644 --- a/clients/client-inspector/src/runtimeConfig.browser.ts +++ b/clients/client-inspector/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: InspectorClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-inspector/src/runtimeConfig.shared.ts b/clients/client-inspector/src/runtimeConfig.shared.ts index f19ac572b062..ec76106c5819 100644 --- a/clients/client-inspector/src/runtimeConfig.shared.ts +++ b/clients/client-inspector/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { InspectorClientConfig } from "./InspectorClient"; @@ -10,6 +11,8 @@ import { InspectorClientConfig } from "./InspectorClient"; */ export const getRuntimeConfig = (config: InspectorClientConfig) => ({ apiVersion: "2016-02-16", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-inspector/src/runtimeConfig.ts b/clients/client-inspector/src/runtimeConfig.ts index 937fad0c3e94..0be5dcf8e350 100644 --- a/clients/client-inspector/src/runtimeConfig.ts +++ b/clients/client-inspector/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: InspectorClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-inspector2/package.json b/clients/client-inspector2/package.json index 8a83a514ac62..3b2d29be745a 100644 --- a/clients/client-inspector2/package.json +++ b/clients/client-inspector2/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-inspector2/src/runtimeConfig.browser.ts b/clients/client-inspector2/src/runtimeConfig.browser.ts index a72b8220f85f..34aa9e23ce1a 100644 --- a/clients/client-inspector2/src/runtimeConfig.browser.ts +++ b/clients/client-inspector2/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: Inspector2ClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-inspector2/src/runtimeConfig.shared.ts b/clients/client-inspector2/src/runtimeConfig.shared.ts index d7cfcea1e19f..59ed5e43c22d 100644 --- a/clients/client-inspector2/src/runtimeConfig.shared.ts +++ b/clients/client-inspector2/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { Inspector2ClientConfig } from "./Inspector2Client"; @@ -10,6 +11,8 @@ import { Inspector2ClientConfig } from "./Inspector2Client"; */ export const getRuntimeConfig = (config: Inspector2ClientConfig) => ({ apiVersion: "2020-06-08", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-inspector2/src/runtimeConfig.ts b/clients/client-inspector2/src/runtimeConfig.ts index 31d143ac2064..9b62042509eb 100644 --- a/clients/client-inspector2/src/runtimeConfig.ts +++ b/clients/client-inspector2/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: Inspector2ClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-iot-1click-devices-service/package.json b/clients/client-iot-1click-devices-service/package.json index 303f4661d6de..b0132579fedd 100644 --- a/clients/client-iot-1click-devices-service/package.json +++ b/clients/client-iot-1click-devices-service/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-iot-1click-devices-service/src/runtimeConfig.browser.ts b/clients/client-iot-1click-devices-service/src/runtimeConfig.browser.ts index f3eeb2bb3d25..ddcfbf223d29 100644 --- a/clients/client-iot-1click-devices-service/src/runtimeConfig.browser.ts +++ b/clients/client-iot-1click-devices-service/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: IoT1ClickDevicesServiceClientConfig) => ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-iot-1click-devices-service/src/runtimeConfig.shared.ts b/clients/client-iot-1click-devices-service/src/runtimeConfig.shared.ts index a5c943fdafaa..da49716c90da 100644 --- a/clients/client-iot-1click-devices-service/src/runtimeConfig.shared.ts +++ b/clients/client-iot-1click-devices-service/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { IoT1ClickDevicesServiceClientConfig } from "./IoT1ClickDevicesServiceClient"; @@ -10,6 +11,8 @@ import { IoT1ClickDevicesServiceClientConfig } from "./IoT1ClickDevicesServiceCl */ export const getRuntimeConfig = (config: IoT1ClickDevicesServiceClientConfig) => ({ apiVersion: "2018-05-14", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-iot-1click-devices-service/src/runtimeConfig.ts b/clients/client-iot-1click-devices-service/src/runtimeConfig.ts index 7f7050f73a50..967c9318216c 100644 --- a/clients/client-iot-1click-devices-service/src/runtimeConfig.ts +++ b/clients/client-iot-1click-devices-service/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: IoT1ClickDevicesServiceClientConfig) => ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-iot-1click-projects/package.json b/clients/client-iot-1click-projects/package.json index 17045b0ccba0..34fbc200cf47 100644 --- a/clients/client-iot-1click-projects/package.json +++ b/clients/client-iot-1click-projects/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-iot-1click-projects/src/runtimeConfig.browser.ts b/clients/client-iot-1click-projects/src/runtimeConfig.browser.ts index 421d12b5d460..118fa8068f88 100644 --- a/clients/client-iot-1click-projects/src/runtimeConfig.browser.ts +++ b/clients/client-iot-1click-projects/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: IoT1ClickProjectsClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-iot-1click-projects/src/runtimeConfig.shared.ts b/clients/client-iot-1click-projects/src/runtimeConfig.shared.ts index c6a60f45bb75..aaa8fbc6a87b 100644 --- a/clients/client-iot-1click-projects/src/runtimeConfig.shared.ts +++ b/clients/client-iot-1click-projects/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { IoT1ClickProjectsClientConfig } from "./IoT1ClickProjectsClient"; @@ -10,6 +11,8 @@ import { IoT1ClickProjectsClientConfig } from "./IoT1ClickProjectsClient"; */ export const getRuntimeConfig = (config: IoT1ClickProjectsClientConfig) => ({ apiVersion: "2018-05-14", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-iot-1click-projects/src/runtimeConfig.ts b/clients/client-iot-1click-projects/src/runtimeConfig.ts index 3a0457bbecc7..fb73ebb517d6 100644 --- a/clients/client-iot-1click-projects/src/runtimeConfig.ts +++ b/clients/client-iot-1click-projects/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: IoT1ClickProjectsClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-iot-data-plane/package.json b/clients/client-iot-data-plane/package.json index 2269ca797b82..76c9f99c8bfb 100644 --- a/clients/client-iot-data-plane/package.json +++ b/clients/client-iot-data-plane/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-iot-data-plane/src/runtimeConfig.browser.ts b/clients/client-iot-data-plane/src/runtimeConfig.browser.ts index a017bc667d2f..f202623e06b9 100644 --- a/clients/client-iot-data-plane/src/runtimeConfig.browser.ts +++ b/clients/client-iot-data-plane/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: IoTDataPlaneClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-iot-data-plane/src/runtimeConfig.shared.ts b/clients/client-iot-data-plane/src/runtimeConfig.shared.ts index 2c978631c0d9..076e083d66f7 100644 --- a/clients/client-iot-data-plane/src/runtimeConfig.shared.ts +++ b/clients/client-iot-data-plane/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { IoTDataPlaneClientConfig } from "./IoTDataPlaneClient"; @@ -10,6 +11,8 @@ import { IoTDataPlaneClientConfig } from "./IoTDataPlaneClient"; */ export const getRuntimeConfig = (config: IoTDataPlaneClientConfig) => ({ apiVersion: "2015-05-28", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-iot-data-plane/src/runtimeConfig.ts b/clients/client-iot-data-plane/src/runtimeConfig.ts index faa1294e62cc..706e6bbf93f6 100644 --- a/clients/client-iot-data-plane/src/runtimeConfig.ts +++ b/clients/client-iot-data-plane/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: IoTDataPlaneClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-iot-events-data/package.json b/clients/client-iot-events-data/package.json index 7f56c1f1da98..57ba953972a4 100644 --- a/clients/client-iot-events-data/package.json +++ b/clients/client-iot-events-data/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-iot-events-data/src/runtimeConfig.browser.ts b/clients/client-iot-events-data/src/runtimeConfig.browser.ts index e60858448971..ddb367027a37 100644 --- a/clients/client-iot-events-data/src/runtimeConfig.browser.ts +++ b/clients/client-iot-events-data/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: IoTEventsDataClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-iot-events-data/src/runtimeConfig.shared.ts b/clients/client-iot-events-data/src/runtimeConfig.shared.ts index 704d8a195d2d..b89c06850018 100644 --- a/clients/client-iot-events-data/src/runtimeConfig.shared.ts +++ b/clients/client-iot-events-data/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { IoTEventsDataClientConfig } from "./IoTEventsDataClient"; @@ -10,6 +11,8 @@ import { IoTEventsDataClientConfig } from "./IoTEventsDataClient"; */ export const getRuntimeConfig = (config: IoTEventsDataClientConfig) => ({ apiVersion: "2018-10-23", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-iot-events-data/src/runtimeConfig.ts b/clients/client-iot-events-data/src/runtimeConfig.ts index d2477eb6b53a..66686d4c37b3 100644 --- a/clients/client-iot-events-data/src/runtimeConfig.ts +++ b/clients/client-iot-events-data/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: IoTEventsDataClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-iot-events/package.json b/clients/client-iot-events/package.json index af5fcd6c71a2..d3024a88be87 100644 --- a/clients/client-iot-events/package.json +++ b/clients/client-iot-events/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-iot-events/src/runtimeConfig.browser.ts b/clients/client-iot-events/src/runtimeConfig.browser.ts index 5c26903206a5..94260270a237 100644 --- a/clients/client-iot-events/src/runtimeConfig.browser.ts +++ b/clients/client-iot-events/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: IoTEventsClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-iot-events/src/runtimeConfig.shared.ts b/clients/client-iot-events/src/runtimeConfig.shared.ts index 61aebb40d821..5610dfadd121 100644 --- a/clients/client-iot-events/src/runtimeConfig.shared.ts +++ b/clients/client-iot-events/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { IoTEventsClientConfig } from "./IoTEventsClient"; @@ -10,6 +11,8 @@ import { IoTEventsClientConfig } from "./IoTEventsClient"; */ export const getRuntimeConfig = (config: IoTEventsClientConfig) => ({ apiVersion: "2018-07-27", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-iot-events/src/runtimeConfig.ts b/clients/client-iot-events/src/runtimeConfig.ts index 628942d7b656..f2a8d03f3fa9 100644 --- a/clients/client-iot-events/src/runtimeConfig.ts +++ b/clients/client-iot-events/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: IoTEventsClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-iot-jobs-data-plane/package.json b/clients/client-iot-jobs-data-plane/package.json index 12ede8fe1381..6174258d15bc 100644 --- a/clients/client-iot-jobs-data-plane/package.json +++ b/clients/client-iot-jobs-data-plane/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-iot-jobs-data-plane/src/runtimeConfig.browser.ts b/clients/client-iot-jobs-data-plane/src/runtimeConfig.browser.ts index 6a8aaf1bc6a2..5475e40c67b0 100644 --- a/clients/client-iot-jobs-data-plane/src/runtimeConfig.browser.ts +++ b/clients/client-iot-jobs-data-plane/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: IoTJobsDataPlaneClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-iot-jobs-data-plane/src/runtimeConfig.shared.ts b/clients/client-iot-jobs-data-plane/src/runtimeConfig.shared.ts index eb699d21eeed..c3530d20c3b9 100644 --- a/clients/client-iot-jobs-data-plane/src/runtimeConfig.shared.ts +++ b/clients/client-iot-jobs-data-plane/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { IoTJobsDataPlaneClientConfig } from "./IoTJobsDataPlaneClient"; @@ -10,6 +11,8 @@ import { IoTJobsDataPlaneClientConfig } from "./IoTJobsDataPlaneClient"; */ export const getRuntimeConfig = (config: IoTJobsDataPlaneClientConfig) => ({ apiVersion: "2017-09-29", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-iot-jobs-data-plane/src/runtimeConfig.ts b/clients/client-iot-jobs-data-plane/src/runtimeConfig.ts index 5955b2966dec..3e63c1d42ae7 100644 --- a/clients/client-iot-jobs-data-plane/src/runtimeConfig.ts +++ b/clients/client-iot-jobs-data-plane/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: IoTJobsDataPlaneClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-iot-wireless/package.json b/clients/client-iot-wireless/package.json index 5d4445029034..8a5d2c6ed2c7 100644 --- a/clients/client-iot-wireless/package.json +++ b/clients/client-iot-wireless/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-iot-wireless/src/runtimeConfig.browser.ts b/clients/client-iot-wireless/src/runtimeConfig.browser.ts index ed542f269fd2..f25735cd32cc 100644 --- a/clients/client-iot-wireless/src/runtimeConfig.browser.ts +++ b/clients/client-iot-wireless/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: IoTWirelessClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-iot-wireless/src/runtimeConfig.shared.ts b/clients/client-iot-wireless/src/runtimeConfig.shared.ts index 6d51455e9cad..283e68dcb30c 100644 --- a/clients/client-iot-wireless/src/runtimeConfig.shared.ts +++ b/clients/client-iot-wireless/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { IoTWirelessClientConfig } from "./IoTWirelessClient"; @@ -10,6 +11,8 @@ import { IoTWirelessClientConfig } from "./IoTWirelessClient"; */ export const getRuntimeConfig = (config: IoTWirelessClientConfig) => ({ apiVersion: "2020-11-22", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-iot-wireless/src/runtimeConfig.ts b/clients/client-iot-wireless/src/runtimeConfig.ts index 3c0b15f1fb7f..f05f237c3de4 100644 --- a/clients/client-iot-wireless/src/runtimeConfig.ts +++ b/clients/client-iot-wireless/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: IoTWirelessClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-iot/package.json b/clients/client-iot/package.json index da46ac3e55b9..1ff5926d8910 100644 --- a/clients/client-iot/package.json +++ b/clients/client-iot/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-iot/src/runtimeConfig.browser.ts b/clients/client-iot/src/runtimeConfig.browser.ts index d8051fe50836..23b24d14c94b 100644 --- a/clients/client-iot/src/runtimeConfig.browser.ts +++ b/clients/client-iot/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: IoTClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-iot/src/runtimeConfig.shared.ts b/clients/client-iot/src/runtimeConfig.shared.ts index e21e7cc0d792..4995e50ec45f 100644 --- a/clients/client-iot/src/runtimeConfig.shared.ts +++ b/clients/client-iot/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { IoTClientConfig } from "./IoTClient"; @@ -10,6 +11,8 @@ import { IoTClientConfig } from "./IoTClient"; */ export const getRuntimeConfig = (config: IoTClientConfig) => ({ apiVersion: "2015-05-28", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-iot/src/runtimeConfig.ts b/clients/client-iot/src/runtimeConfig.ts index 4a91d15e0845..480becb57a92 100644 --- a/clients/client-iot/src/runtimeConfig.ts +++ b/clients/client-iot/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: IoTClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-iotanalytics/package.json b/clients/client-iotanalytics/package.json index aded212599dd..36d2f5548284 100644 --- a/clients/client-iotanalytics/package.json +++ b/clients/client-iotanalytics/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-iotanalytics/src/runtimeConfig.browser.ts b/clients/client-iotanalytics/src/runtimeConfig.browser.ts index afa6c9d8e86f..d06352e8acdb 100644 --- a/clients/client-iotanalytics/src/runtimeConfig.browser.ts +++ b/clients/client-iotanalytics/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: IoTAnalyticsClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-iotanalytics/src/runtimeConfig.shared.ts b/clients/client-iotanalytics/src/runtimeConfig.shared.ts index 6f79510463ac..818a0d8bc35d 100644 --- a/clients/client-iotanalytics/src/runtimeConfig.shared.ts +++ b/clients/client-iotanalytics/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { IoTAnalyticsClientConfig } from "./IoTAnalyticsClient"; @@ -10,6 +11,8 @@ import { IoTAnalyticsClientConfig } from "./IoTAnalyticsClient"; */ export const getRuntimeConfig = (config: IoTAnalyticsClientConfig) => ({ apiVersion: "2017-11-27", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-iotanalytics/src/runtimeConfig.ts b/clients/client-iotanalytics/src/runtimeConfig.ts index d938d94c4659..61c880c33693 100644 --- a/clients/client-iotanalytics/src/runtimeConfig.ts +++ b/clients/client-iotanalytics/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: IoTAnalyticsClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-iotdeviceadvisor/package.json b/clients/client-iotdeviceadvisor/package.json index 0a1d7a0d65fc..924b4461c565 100644 --- a/clients/client-iotdeviceadvisor/package.json +++ b/clients/client-iotdeviceadvisor/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-iotdeviceadvisor/src/runtimeConfig.browser.ts b/clients/client-iotdeviceadvisor/src/runtimeConfig.browser.ts index 187e9f9a184a..241c9c974056 100644 --- a/clients/client-iotdeviceadvisor/src/runtimeConfig.browser.ts +++ b/clients/client-iotdeviceadvisor/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: IotDeviceAdvisorClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-iotdeviceadvisor/src/runtimeConfig.shared.ts b/clients/client-iotdeviceadvisor/src/runtimeConfig.shared.ts index a7c6151bc3ea..7b2d9a0c67b7 100644 --- a/clients/client-iotdeviceadvisor/src/runtimeConfig.shared.ts +++ b/clients/client-iotdeviceadvisor/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { IotDeviceAdvisorClientConfig } from "./IotDeviceAdvisorClient"; @@ -10,6 +11,8 @@ import { IotDeviceAdvisorClientConfig } from "./IotDeviceAdvisorClient"; */ export const getRuntimeConfig = (config: IotDeviceAdvisorClientConfig) => ({ apiVersion: "2020-09-18", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-iotdeviceadvisor/src/runtimeConfig.ts b/clients/client-iotdeviceadvisor/src/runtimeConfig.ts index add9add6ffea..56c9873cf315 100644 --- a/clients/client-iotdeviceadvisor/src/runtimeConfig.ts +++ b/clients/client-iotdeviceadvisor/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: IotDeviceAdvisorClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-iotfleethub/package.json b/clients/client-iotfleethub/package.json index 103bf9484049..16562dfeaf6b 100644 --- a/clients/client-iotfleethub/package.json +++ b/clients/client-iotfleethub/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-iotfleethub/src/runtimeConfig.browser.ts b/clients/client-iotfleethub/src/runtimeConfig.browser.ts index f536e796477a..00f8bd150ec7 100644 --- a/clients/client-iotfleethub/src/runtimeConfig.browser.ts +++ b/clients/client-iotfleethub/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: IoTFleetHubClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-iotfleethub/src/runtimeConfig.shared.ts b/clients/client-iotfleethub/src/runtimeConfig.shared.ts index f0ab316929d9..456252c576a5 100644 --- a/clients/client-iotfleethub/src/runtimeConfig.shared.ts +++ b/clients/client-iotfleethub/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { IoTFleetHubClientConfig } from "./IoTFleetHubClient"; @@ -10,6 +11,8 @@ import { IoTFleetHubClientConfig } from "./IoTFleetHubClient"; */ export const getRuntimeConfig = (config: IoTFleetHubClientConfig) => ({ apiVersion: "2020-11-03", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-iotfleethub/src/runtimeConfig.ts b/clients/client-iotfleethub/src/runtimeConfig.ts index 6c9e37366665..3ac32e37a864 100644 --- a/clients/client-iotfleethub/src/runtimeConfig.ts +++ b/clients/client-iotfleethub/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: IoTFleetHubClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-iotfleetwise/package.json b/clients/client-iotfleetwise/package.json index ae78c0fc11a7..6d991c425ac3 100644 --- a/clients/client-iotfleetwise/package.json +++ b/clients/client-iotfleetwise/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-iotfleetwise/src/runtimeConfig.browser.ts b/clients/client-iotfleetwise/src/runtimeConfig.browser.ts index ab7ec16af2a7..072f1e6d76f5 100644 --- a/clients/client-iotfleetwise/src/runtimeConfig.browser.ts +++ b/clients/client-iotfleetwise/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: IoTFleetWiseClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-iotfleetwise/src/runtimeConfig.shared.ts b/clients/client-iotfleetwise/src/runtimeConfig.shared.ts index 1256548c095d..3a30e3d7ea9e 100644 --- a/clients/client-iotfleetwise/src/runtimeConfig.shared.ts +++ b/clients/client-iotfleetwise/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { IoTFleetWiseClientConfig } from "./IoTFleetWiseClient"; @@ -10,6 +11,8 @@ import { IoTFleetWiseClientConfig } from "./IoTFleetWiseClient"; */ export const getRuntimeConfig = (config: IoTFleetWiseClientConfig) => ({ apiVersion: "2021-06-17", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-iotfleetwise/src/runtimeConfig.ts b/clients/client-iotfleetwise/src/runtimeConfig.ts index 0cf4c75d507c..5b2a207fb1c9 100644 --- a/clients/client-iotfleetwise/src/runtimeConfig.ts +++ b/clients/client-iotfleetwise/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: IoTFleetWiseClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-iotsecuretunneling/package.json b/clients/client-iotsecuretunneling/package.json index e09b1a2a0a93..b51f64d7ce3b 100644 --- a/clients/client-iotsecuretunneling/package.json +++ b/clients/client-iotsecuretunneling/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-iotsecuretunneling/src/runtimeConfig.browser.ts b/clients/client-iotsecuretunneling/src/runtimeConfig.browser.ts index 4e629718de28..c62d95c1863d 100644 --- a/clients/client-iotsecuretunneling/src/runtimeConfig.browser.ts +++ b/clients/client-iotsecuretunneling/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: IoTSecureTunnelingClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-iotsecuretunneling/src/runtimeConfig.shared.ts b/clients/client-iotsecuretunneling/src/runtimeConfig.shared.ts index 59f43629e78c..eb34cb5e17e6 100644 --- a/clients/client-iotsecuretunneling/src/runtimeConfig.shared.ts +++ b/clients/client-iotsecuretunneling/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { IoTSecureTunnelingClientConfig } from "./IoTSecureTunnelingClient"; @@ -10,6 +11,8 @@ import { IoTSecureTunnelingClientConfig } from "./IoTSecureTunnelingClient"; */ export const getRuntimeConfig = (config: IoTSecureTunnelingClientConfig) => ({ apiVersion: "2018-10-05", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-iotsecuretunneling/src/runtimeConfig.ts b/clients/client-iotsecuretunneling/src/runtimeConfig.ts index 5ca4973d59e4..381e7f5fc81f 100644 --- a/clients/client-iotsecuretunneling/src/runtimeConfig.ts +++ b/clients/client-iotsecuretunneling/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: IoTSecureTunnelingClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-iotsitewise/package.json b/clients/client-iotsitewise/package.json index 1397ab39bd83..c99acec9e715 100644 --- a/clients/client-iotsitewise/package.json +++ b/clients/client-iotsitewise/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-iotsitewise/src/runtimeConfig.browser.ts b/clients/client-iotsitewise/src/runtimeConfig.browser.ts index 061d897bee8e..555d057d6a7b 100644 --- a/clients/client-iotsitewise/src/runtimeConfig.browser.ts +++ b/clients/client-iotsitewise/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: IoTSiteWiseClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-iotsitewise/src/runtimeConfig.shared.ts b/clients/client-iotsitewise/src/runtimeConfig.shared.ts index 82a760a88503..5f3597e314e0 100644 --- a/clients/client-iotsitewise/src/runtimeConfig.shared.ts +++ b/clients/client-iotsitewise/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { IoTSiteWiseClientConfig } from "./IoTSiteWiseClient"; @@ -10,6 +11,8 @@ import { IoTSiteWiseClientConfig } from "./IoTSiteWiseClient"; */ export const getRuntimeConfig = (config: IoTSiteWiseClientConfig) => ({ apiVersion: "2019-12-02", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-iotsitewise/src/runtimeConfig.ts b/clients/client-iotsitewise/src/runtimeConfig.ts index 0cb8c01467fe..695d42f5bd36 100644 --- a/clients/client-iotsitewise/src/runtimeConfig.ts +++ b/clients/client-iotsitewise/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: IoTSiteWiseClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-iotthingsgraph/package.json b/clients/client-iotthingsgraph/package.json index 506b3f0bff16..206a1145a57d 100644 --- a/clients/client-iotthingsgraph/package.json +++ b/clients/client-iotthingsgraph/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-iotthingsgraph/src/runtimeConfig.browser.ts b/clients/client-iotthingsgraph/src/runtimeConfig.browser.ts index 2830640a0f3c..46dd2003b78a 100644 --- a/clients/client-iotthingsgraph/src/runtimeConfig.browser.ts +++ b/clients/client-iotthingsgraph/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: IoTThingsGraphClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-iotthingsgraph/src/runtimeConfig.shared.ts b/clients/client-iotthingsgraph/src/runtimeConfig.shared.ts index bece69d70a62..5fa81b78f638 100644 --- a/clients/client-iotthingsgraph/src/runtimeConfig.shared.ts +++ b/clients/client-iotthingsgraph/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { IoTThingsGraphClientConfig } from "./IoTThingsGraphClient"; @@ -10,6 +11,8 @@ import { IoTThingsGraphClientConfig } from "./IoTThingsGraphClient"; */ export const getRuntimeConfig = (config: IoTThingsGraphClientConfig) => ({ apiVersion: "2018-09-06", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-iotthingsgraph/src/runtimeConfig.ts b/clients/client-iotthingsgraph/src/runtimeConfig.ts index 6038d716f817..4e1ebf4bd3a7 100644 --- a/clients/client-iotthingsgraph/src/runtimeConfig.ts +++ b/clients/client-iotthingsgraph/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: IoTThingsGraphClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-iottwinmaker/package.json b/clients/client-iottwinmaker/package.json index 4d392fe278a6..603c3ae84deb 100644 --- a/clients/client-iottwinmaker/package.json +++ b/clients/client-iottwinmaker/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-iottwinmaker/src/runtimeConfig.browser.ts b/clients/client-iottwinmaker/src/runtimeConfig.browser.ts index 1ea7a89c5ec8..af3c1e6fa877 100644 --- a/clients/client-iottwinmaker/src/runtimeConfig.browser.ts +++ b/clients/client-iottwinmaker/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: IoTTwinMakerClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-iottwinmaker/src/runtimeConfig.shared.ts b/clients/client-iottwinmaker/src/runtimeConfig.shared.ts index e235fe6efc85..ac00d4ffdf0d 100644 --- a/clients/client-iottwinmaker/src/runtimeConfig.shared.ts +++ b/clients/client-iottwinmaker/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { IoTTwinMakerClientConfig } from "./IoTTwinMakerClient"; @@ -10,6 +11,8 @@ import { IoTTwinMakerClientConfig } from "./IoTTwinMakerClient"; */ export const getRuntimeConfig = (config: IoTTwinMakerClientConfig) => ({ apiVersion: "2021-11-29", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-iottwinmaker/src/runtimeConfig.ts b/clients/client-iottwinmaker/src/runtimeConfig.ts index e9c358e255a0..e78a5018e305 100644 --- a/clients/client-iottwinmaker/src/runtimeConfig.ts +++ b/clients/client-iottwinmaker/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: IoTTwinMakerClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-ivs/package.json b/clients/client-ivs/package.json index ca53131c10df..2a9aec6b2809 100644 --- a/clients/client-ivs/package.json +++ b/clients/client-ivs/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-ivs/src/runtimeConfig.browser.ts b/clients/client-ivs/src/runtimeConfig.browser.ts index 4eac0d95e0f4..2f3d97d43468 100644 --- a/clients/client-ivs/src/runtimeConfig.browser.ts +++ b/clients/client-ivs/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: IvsClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-ivs/src/runtimeConfig.shared.ts b/clients/client-ivs/src/runtimeConfig.shared.ts index 58a01518208f..90d64d9211d1 100644 --- a/clients/client-ivs/src/runtimeConfig.shared.ts +++ b/clients/client-ivs/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { IvsClientConfig } from "./IvsClient"; @@ -10,6 +11,8 @@ import { IvsClientConfig } from "./IvsClient"; */ export const getRuntimeConfig = (config: IvsClientConfig) => ({ apiVersion: "2020-07-14", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-ivs/src/runtimeConfig.ts b/clients/client-ivs/src/runtimeConfig.ts index b040e91700ba..eb3f979bcfd7 100644 --- a/clients/client-ivs/src/runtimeConfig.ts +++ b/clients/client-ivs/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: IvsClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-ivschat/package.json b/clients/client-ivschat/package.json index b23769cfb1e2..8fe36e96a35d 100644 --- a/clients/client-ivschat/package.json +++ b/clients/client-ivschat/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-ivschat/src/runtimeConfig.browser.ts b/clients/client-ivschat/src/runtimeConfig.browser.ts index 99da1b5ed67f..48a83c036b4d 100644 --- a/clients/client-ivschat/src/runtimeConfig.browser.ts +++ b/clients/client-ivschat/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: IvschatClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-ivschat/src/runtimeConfig.shared.ts b/clients/client-ivschat/src/runtimeConfig.shared.ts index 553d79e0d782..5e1370d4257c 100644 --- a/clients/client-ivschat/src/runtimeConfig.shared.ts +++ b/clients/client-ivschat/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { IvschatClientConfig } from "./IvschatClient"; @@ -10,6 +11,8 @@ import { IvschatClientConfig } from "./IvschatClient"; */ export const getRuntimeConfig = (config: IvschatClientConfig) => ({ apiVersion: "2020-07-14", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-ivschat/src/runtimeConfig.ts b/clients/client-ivschat/src/runtimeConfig.ts index 977bef11fd8e..69e158e3cb1d 100644 --- a/clients/client-ivschat/src/runtimeConfig.ts +++ b/clients/client-ivschat/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: IvschatClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-kafka/package.json b/clients/client-kafka/package.json index 5cffbc90c1c4..4fae8d5106ca 100644 --- a/clients/client-kafka/package.json +++ b/clients/client-kafka/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-kafka/src/runtimeConfig.browser.ts b/clients/client-kafka/src/runtimeConfig.browser.ts index c89331fe2ae3..b2d672fec075 100644 --- a/clients/client-kafka/src/runtimeConfig.browser.ts +++ b/clients/client-kafka/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: KafkaClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-kafka/src/runtimeConfig.shared.ts b/clients/client-kafka/src/runtimeConfig.shared.ts index 708e412142a9..5890581be53b 100644 --- a/clients/client-kafka/src/runtimeConfig.shared.ts +++ b/clients/client-kafka/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { KafkaClientConfig } from "./KafkaClient"; @@ -10,6 +11,8 @@ import { KafkaClientConfig } from "./KafkaClient"; */ export const getRuntimeConfig = (config: KafkaClientConfig) => ({ apiVersion: "2018-11-14", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-kafka/src/runtimeConfig.ts b/clients/client-kafka/src/runtimeConfig.ts index 9eeadfbc1a66..1da829d7e563 100644 --- a/clients/client-kafka/src/runtimeConfig.ts +++ b/clients/client-kafka/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: KafkaClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-kafkaconnect/package.json b/clients/client-kafkaconnect/package.json index ad92c632df33..c895ba17c98e 100644 --- a/clients/client-kafkaconnect/package.json +++ b/clients/client-kafkaconnect/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-kafkaconnect/src/runtimeConfig.browser.ts b/clients/client-kafkaconnect/src/runtimeConfig.browser.ts index 6f0c3c8b15b9..497759733d0e 100644 --- a/clients/client-kafkaconnect/src/runtimeConfig.browser.ts +++ b/clients/client-kafkaconnect/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: KafkaConnectClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-kafkaconnect/src/runtimeConfig.shared.ts b/clients/client-kafkaconnect/src/runtimeConfig.shared.ts index 58e9dec1c3c7..8c22d09b33e9 100644 --- a/clients/client-kafkaconnect/src/runtimeConfig.shared.ts +++ b/clients/client-kafkaconnect/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { KafkaConnectClientConfig } from "./KafkaConnectClient"; @@ -10,6 +11,8 @@ import { KafkaConnectClientConfig } from "./KafkaConnectClient"; */ export const getRuntimeConfig = (config: KafkaConnectClientConfig) => ({ apiVersion: "2021-09-14", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-kafkaconnect/src/runtimeConfig.ts b/clients/client-kafkaconnect/src/runtimeConfig.ts index 030f629a44c9..48dc597a8c8a 100644 --- a/clients/client-kafkaconnect/src/runtimeConfig.ts +++ b/clients/client-kafkaconnect/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: KafkaConnectClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-kendra/package.json b/clients/client-kendra/package.json index 4c3a10077ac0..9180174a984a 100644 --- a/clients/client-kendra/package.json +++ b/clients/client-kendra/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-kendra/src/runtimeConfig.browser.ts b/clients/client-kendra/src/runtimeConfig.browser.ts index 4a12c5c75bf0..14c1b9fc74c0 100644 --- a/clients/client-kendra/src/runtimeConfig.browser.ts +++ b/clients/client-kendra/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: KendraClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-kendra/src/runtimeConfig.shared.ts b/clients/client-kendra/src/runtimeConfig.shared.ts index 363ec9f96c29..1c02eaa96a6a 100644 --- a/clients/client-kendra/src/runtimeConfig.shared.ts +++ b/clients/client-kendra/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { KendraClientConfig } from "./KendraClient"; @@ -10,6 +11,8 @@ import { KendraClientConfig } from "./KendraClient"; */ export const getRuntimeConfig = (config: KendraClientConfig) => ({ apiVersion: "2019-02-03", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-kendra/src/runtimeConfig.ts b/clients/client-kendra/src/runtimeConfig.ts index 1417c0904940..bc9788c22e02 100644 --- a/clients/client-kendra/src/runtimeConfig.ts +++ b/clients/client-kendra/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: KendraClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-keyspaces/package.json b/clients/client-keyspaces/package.json index 7904a425c4fb..8ee2b3e22c7a 100644 --- a/clients/client-keyspaces/package.json +++ b/clients/client-keyspaces/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-keyspaces/src/runtimeConfig.browser.ts b/clients/client-keyspaces/src/runtimeConfig.browser.ts index e98bc0df968d..07123ec29c1c 100644 --- a/clients/client-keyspaces/src/runtimeConfig.browser.ts +++ b/clients/client-keyspaces/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: KeyspacesClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-keyspaces/src/runtimeConfig.shared.ts b/clients/client-keyspaces/src/runtimeConfig.shared.ts index db8a1c3b3b78..3cc88aedb4e0 100644 --- a/clients/client-keyspaces/src/runtimeConfig.shared.ts +++ b/clients/client-keyspaces/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { KeyspacesClientConfig } from "./KeyspacesClient"; @@ -10,6 +11,8 @@ import { KeyspacesClientConfig } from "./KeyspacesClient"; */ export const getRuntimeConfig = (config: KeyspacesClientConfig) => ({ apiVersion: "2022-02-10", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-keyspaces/src/runtimeConfig.ts b/clients/client-keyspaces/src/runtimeConfig.ts index 8a53710cbcf0..f18d6718ef24 100644 --- a/clients/client-keyspaces/src/runtimeConfig.ts +++ b/clients/client-keyspaces/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: KeyspacesClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-kinesis-analytics-v2/package.json b/clients/client-kinesis-analytics-v2/package.json index f8e8d78d676b..94a0d4bed1e0 100644 --- a/clients/client-kinesis-analytics-v2/package.json +++ b/clients/client-kinesis-analytics-v2/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-kinesis-analytics-v2/src/runtimeConfig.browser.ts b/clients/client-kinesis-analytics-v2/src/runtimeConfig.browser.ts index c38f2ba55c4f..4fd9e814c938 100644 --- a/clients/client-kinesis-analytics-v2/src/runtimeConfig.browser.ts +++ b/clients/client-kinesis-analytics-v2/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: KinesisAnalyticsV2ClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-kinesis-analytics-v2/src/runtimeConfig.shared.ts b/clients/client-kinesis-analytics-v2/src/runtimeConfig.shared.ts index 31886c9cf545..bd005e655bf6 100644 --- a/clients/client-kinesis-analytics-v2/src/runtimeConfig.shared.ts +++ b/clients/client-kinesis-analytics-v2/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { KinesisAnalyticsV2ClientConfig } from "./KinesisAnalyticsV2Client"; @@ -10,6 +11,8 @@ import { KinesisAnalyticsV2ClientConfig } from "./KinesisAnalyticsV2Client"; */ export const getRuntimeConfig = (config: KinesisAnalyticsV2ClientConfig) => ({ apiVersion: "2018-05-23", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-kinesis-analytics-v2/src/runtimeConfig.ts b/clients/client-kinesis-analytics-v2/src/runtimeConfig.ts index ff5739a17184..a80e0e602c84 100644 --- a/clients/client-kinesis-analytics-v2/src/runtimeConfig.ts +++ b/clients/client-kinesis-analytics-v2/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: KinesisAnalyticsV2ClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-kinesis-analytics/package.json b/clients/client-kinesis-analytics/package.json index 2c9ee349b49e..d088ec985db2 100644 --- a/clients/client-kinesis-analytics/package.json +++ b/clients/client-kinesis-analytics/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-kinesis-analytics/src/runtimeConfig.browser.ts b/clients/client-kinesis-analytics/src/runtimeConfig.browser.ts index e531d5553760..d7a386df4477 100644 --- a/clients/client-kinesis-analytics/src/runtimeConfig.browser.ts +++ b/clients/client-kinesis-analytics/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: KinesisAnalyticsClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-kinesis-analytics/src/runtimeConfig.shared.ts b/clients/client-kinesis-analytics/src/runtimeConfig.shared.ts index a326bc2b4751..4e31db63f9cd 100644 --- a/clients/client-kinesis-analytics/src/runtimeConfig.shared.ts +++ b/clients/client-kinesis-analytics/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { KinesisAnalyticsClientConfig } from "./KinesisAnalyticsClient"; @@ -10,6 +11,8 @@ import { KinesisAnalyticsClientConfig } from "./KinesisAnalyticsClient"; */ export const getRuntimeConfig = (config: KinesisAnalyticsClientConfig) => ({ apiVersion: "2015-08-14", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-kinesis-analytics/src/runtimeConfig.ts b/clients/client-kinesis-analytics/src/runtimeConfig.ts index 9fc30c0e4d20..558ba26800ee 100644 --- a/clients/client-kinesis-analytics/src/runtimeConfig.ts +++ b/clients/client-kinesis-analytics/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: KinesisAnalyticsClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-kinesis-video-archived-media/package.json b/clients/client-kinesis-video-archived-media/package.json index c86983194fac..80f705dc7813 100644 --- a/clients/client-kinesis-video-archived-media/package.json +++ b/clients/client-kinesis-video-archived-media/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-kinesis-video-archived-media/src/runtimeConfig.browser.ts b/clients/client-kinesis-video-archived-media/src/runtimeConfig.browser.ts index c03a1581ddbe..fe68951f4f45 100644 --- a/clients/client-kinesis-video-archived-media/src/runtimeConfig.browser.ts +++ b/clients/client-kinesis-video-archived-media/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { sdkStreamMixin } from "@aws-sdk/util-stream-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; @@ -29,8 +28,6 @@ export const getRuntimeConfig = (config: KinesisVideoArchivedMediaClientConfig) ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-kinesis-video-archived-media/src/runtimeConfig.shared.ts b/clients/client-kinesis-video-archived-media/src/runtimeConfig.shared.ts index 1929a89aca54..e3ca1bb08072 100644 --- a/clients/client-kinesis-video-archived-media/src/runtimeConfig.shared.ts +++ b/clients/client-kinesis-video-archived-media/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { KinesisVideoArchivedMediaClientConfig } from "./KinesisVideoArchivedMediaClient"; @@ -10,6 +11,8 @@ import { KinesisVideoArchivedMediaClientConfig } from "./KinesisVideoArchivedMed */ export const getRuntimeConfig = (config: KinesisVideoArchivedMediaClientConfig) => ({ apiVersion: "2017-09-30", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-kinesis-video-archived-media/src/runtimeConfig.ts b/clients/client-kinesis-video-archived-media/src/runtimeConfig.ts index fe695dee8017..a8d2fa867595 100644 --- a/clients/client-kinesis-video-archived-media/src/runtimeConfig.ts +++ b/clients/client-kinesis-video-archived-media/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { sdkStreamMixin } from "@aws-sdk/util-stream-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -42,8 +41,6 @@ export const getRuntimeConfig = (config: KinesisVideoArchivedMediaClientConfig) ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-kinesis-video-media/package.json b/clients/client-kinesis-video-media/package.json index 8285988de4bd..58c5e7ad25b0 100644 --- a/clients/client-kinesis-video-media/package.json +++ b/clients/client-kinesis-video-media/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-kinesis-video-media/src/runtimeConfig.browser.ts b/clients/client-kinesis-video-media/src/runtimeConfig.browser.ts index 6dee3484a365..d553d501cc6d 100644 --- a/clients/client-kinesis-video-media/src/runtimeConfig.browser.ts +++ b/clients/client-kinesis-video-media/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { sdkStreamMixin } from "@aws-sdk/util-stream-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; @@ -29,8 +28,6 @@ export const getRuntimeConfig = (config: KinesisVideoMediaClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-kinesis-video-media/src/runtimeConfig.shared.ts b/clients/client-kinesis-video-media/src/runtimeConfig.shared.ts index e1c3f4b306f5..4922e71781c9 100644 --- a/clients/client-kinesis-video-media/src/runtimeConfig.shared.ts +++ b/clients/client-kinesis-video-media/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { KinesisVideoMediaClientConfig } from "./KinesisVideoMediaClient"; @@ -10,6 +11,8 @@ import { KinesisVideoMediaClientConfig } from "./KinesisVideoMediaClient"; */ export const getRuntimeConfig = (config: KinesisVideoMediaClientConfig) => ({ apiVersion: "2017-09-30", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-kinesis-video-media/src/runtimeConfig.ts b/clients/client-kinesis-video-media/src/runtimeConfig.ts index 4212345e8205..b3f11b0fb018 100644 --- a/clients/client-kinesis-video-media/src/runtimeConfig.ts +++ b/clients/client-kinesis-video-media/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { sdkStreamMixin } from "@aws-sdk/util-stream-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -42,8 +41,6 @@ export const getRuntimeConfig = (config: KinesisVideoMediaClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-kinesis-video-signaling/package.json b/clients/client-kinesis-video-signaling/package.json index 99565eeac9cb..67e30ba5eda2 100644 --- a/clients/client-kinesis-video-signaling/package.json +++ b/clients/client-kinesis-video-signaling/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-kinesis-video-signaling/src/runtimeConfig.browser.ts b/clients/client-kinesis-video-signaling/src/runtimeConfig.browser.ts index f29825b5b1f9..b483c897181b 100644 --- a/clients/client-kinesis-video-signaling/src/runtimeConfig.browser.ts +++ b/clients/client-kinesis-video-signaling/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: KinesisVideoSignalingClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-kinesis-video-signaling/src/runtimeConfig.shared.ts b/clients/client-kinesis-video-signaling/src/runtimeConfig.shared.ts index 2e4a1d80a380..419cc15b790e 100644 --- a/clients/client-kinesis-video-signaling/src/runtimeConfig.shared.ts +++ b/clients/client-kinesis-video-signaling/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { KinesisVideoSignalingClientConfig } from "./KinesisVideoSignalingClient"; @@ -10,6 +11,8 @@ import { KinesisVideoSignalingClientConfig } from "./KinesisVideoSignalingClient */ export const getRuntimeConfig = (config: KinesisVideoSignalingClientConfig) => ({ apiVersion: "2019-12-04", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-kinesis-video-signaling/src/runtimeConfig.ts b/clients/client-kinesis-video-signaling/src/runtimeConfig.ts index a0a4c74ba3ca..8a5cef075eb7 100644 --- a/clients/client-kinesis-video-signaling/src/runtimeConfig.ts +++ b/clients/client-kinesis-video-signaling/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: KinesisVideoSignalingClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-kinesis-video/package.json b/clients/client-kinesis-video/package.json index db7f564d45a8..a3de183660ca 100644 --- a/clients/client-kinesis-video/package.json +++ b/clients/client-kinesis-video/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-kinesis-video/src/runtimeConfig.browser.ts b/clients/client-kinesis-video/src/runtimeConfig.browser.ts index 2f66b2e50743..bae725925ce6 100644 --- a/clients/client-kinesis-video/src/runtimeConfig.browser.ts +++ b/clients/client-kinesis-video/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: KinesisVideoClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-kinesis-video/src/runtimeConfig.shared.ts b/clients/client-kinesis-video/src/runtimeConfig.shared.ts index 3b3bf9b0fa36..520b38666ba1 100644 --- a/clients/client-kinesis-video/src/runtimeConfig.shared.ts +++ b/clients/client-kinesis-video/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { KinesisVideoClientConfig } from "./KinesisVideoClient"; @@ -10,6 +11,8 @@ import { KinesisVideoClientConfig } from "./KinesisVideoClient"; */ export const getRuntimeConfig = (config: KinesisVideoClientConfig) => ({ apiVersion: "2017-09-30", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-kinesis-video/src/runtimeConfig.ts b/clients/client-kinesis-video/src/runtimeConfig.ts index 207eec8a3bd8..81c7bf28647a 100644 --- a/clients/client-kinesis-video/src/runtimeConfig.ts +++ b/clients/client-kinesis-video/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: KinesisVideoClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-kinesis/package.json b/clients/client-kinesis/package.json index 0dd9d584ea80..a279163bfa68 100644 --- a/clients/client-kinesis/package.json +++ b/clients/client-kinesis/package.json @@ -44,6 +44,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-kinesis/src/runtimeConfig.browser.ts b/clients/client-kinesis/src/runtimeConfig.browser.ts index c96090b4690b..f2a1119cd0d3 100644 --- a/clients/client-kinesis/src/runtimeConfig.browser.ts +++ b/clients/client-kinesis/src/runtimeConfig.browser.ts @@ -8,7 +8,6 @@ import { eventStreamSerdeProvider } from "@aws-sdk/eventstream-serde-browser"; import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -29,8 +28,6 @@ export const getRuntimeConfig = (config: KinesisClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-kinesis/src/runtimeConfig.shared.ts b/clients/client-kinesis/src/runtimeConfig.shared.ts index 1dac1dbc2b52..0b70cfee9296 100644 --- a/clients/client-kinesis/src/runtimeConfig.shared.ts +++ b/clients/client-kinesis/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { KinesisClientConfig } from "./KinesisClient"; @@ -10,6 +11,8 @@ import { KinesisClientConfig } from "./KinesisClient"; */ export const getRuntimeConfig = (config: KinesisClientConfig) => ({ apiVersion: "2013-12-02", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-kinesis/src/runtimeConfig.ts b/clients/client-kinesis/src/runtimeConfig.ts index ce0e3719c667..47dadec27625 100644 --- a/clients/client-kinesis/src/runtimeConfig.ts +++ b/clients/client-kinesis/src/runtimeConfig.ts @@ -19,7 +19,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttp2Handler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -42,8 +41,6 @@ export const getRuntimeConfig = (config: KinesisClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-kms/package.json b/clients/client-kms/package.json index a01cb5a79b44..639b612702fa 100644 --- a/clients/client-kms/package.json +++ b/clients/client-kms/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-kms/src/runtimeConfig.browser.ts b/clients/client-kms/src/runtimeConfig.browser.ts index fdee699bd6cb..1a9e731aed75 100644 --- a/clients/client-kms/src/runtimeConfig.browser.ts +++ b/clients/client-kms/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: KMSClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-kms/src/runtimeConfig.shared.ts b/clients/client-kms/src/runtimeConfig.shared.ts index 8643637b5f16..f4598d241c69 100644 --- a/clients/client-kms/src/runtimeConfig.shared.ts +++ b/clients/client-kms/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { KMSClientConfig } from "./KMSClient"; @@ -10,6 +11,8 @@ import { KMSClientConfig } from "./KMSClient"; */ export const getRuntimeConfig = (config: KMSClientConfig) => ({ apiVersion: "2014-11-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-kms/src/runtimeConfig.ts b/clients/client-kms/src/runtimeConfig.ts index c934a5e96daf..665d1d5418b8 100644 --- a/clients/client-kms/src/runtimeConfig.ts +++ b/clients/client-kms/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: KMSClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-lakeformation/package.json b/clients/client-lakeformation/package.json index a6e88851b3ae..8994d8f4f08b 100644 --- a/clients/client-lakeformation/package.json +++ b/clients/client-lakeformation/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-lakeformation/src/runtimeConfig.browser.ts b/clients/client-lakeformation/src/runtimeConfig.browser.ts index 811ba637a5a8..577ca25681bb 100644 --- a/clients/client-lakeformation/src/runtimeConfig.browser.ts +++ b/clients/client-lakeformation/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { sdkStreamMixin } from "@aws-sdk/util-stream-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; @@ -29,8 +28,6 @@ export const getRuntimeConfig = (config: LakeFormationClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-lakeformation/src/runtimeConfig.shared.ts b/clients/client-lakeformation/src/runtimeConfig.shared.ts index 36085af09167..2b4dc860123a 100644 --- a/clients/client-lakeformation/src/runtimeConfig.shared.ts +++ b/clients/client-lakeformation/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { LakeFormationClientConfig } from "./LakeFormationClient"; @@ -10,6 +11,8 @@ import { LakeFormationClientConfig } from "./LakeFormationClient"; */ export const getRuntimeConfig = (config: LakeFormationClientConfig) => ({ apiVersion: "2017-03-31", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-lakeformation/src/runtimeConfig.ts b/clients/client-lakeformation/src/runtimeConfig.ts index 4908a366e1c7..fe5b51fd2795 100644 --- a/clients/client-lakeformation/src/runtimeConfig.ts +++ b/clients/client-lakeformation/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { sdkStreamMixin } from "@aws-sdk/util-stream-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -42,8 +41,6 @@ export const getRuntimeConfig = (config: LakeFormationClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-lambda/package.json b/clients/client-lambda/package.json index dda46afe903b..2bac9027b927 100644 --- a/clients/client-lambda/package.json +++ b/clients/client-lambda/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-lambda/src/runtimeConfig.browser.ts b/clients/client-lambda/src/runtimeConfig.browser.ts index b350e2d16dbf..e8e24ecc6f4a 100644 --- a/clients/client-lambda/src/runtimeConfig.browser.ts +++ b/clients/client-lambda/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: LambdaClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-lambda/src/runtimeConfig.shared.ts b/clients/client-lambda/src/runtimeConfig.shared.ts index 28369932e205..53542f130578 100644 --- a/clients/client-lambda/src/runtimeConfig.shared.ts +++ b/clients/client-lambda/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { LambdaClientConfig } from "./LambdaClient"; @@ -10,6 +11,8 @@ import { LambdaClientConfig } from "./LambdaClient"; */ export const getRuntimeConfig = (config: LambdaClientConfig) => ({ apiVersion: "2015-03-31", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-lambda/src/runtimeConfig.ts b/clients/client-lambda/src/runtimeConfig.ts index 8a12b980f9d0..ae3a524e87f4 100644 --- a/clients/client-lambda/src/runtimeConfig.ts +++ b/clients/client-lambda/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: LambdaClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-lex-model-building-service/package.json b/clients/client-lex-model-building-service/package.json index 1828bc4e4130..3f48a5eab713 100644 --- a/clients/client-lex-model-building-service/package.json +++ b/clients/client-lex-model-building-service/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-lex-model-building-service/src/runtimeConfig.browser.ts b/clients/client-lex-model-building-service/src/runtimeConfig.browser.ts index c6a533d11666..89697d18bed3 100644 --- a/clients/client-lex-model-building-service/src/runtimeConfig.browser.ts +++ b/clients/client-lex-model-building-service/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: LexModelBuildingServiceClientConfig) => ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-lex-model-building-service/src/runtimeConfig.shared.ts b/clients/client-lex-model-building-service/src/runtimeConfig.shared.ts index cf50c70cc9d1..0d585e630541 100644 --- a/clients/client-lex-model-building-service/src/runtimeConfig.shared.ts +++ b/clients/client-lex-model-building-service/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { LexModelBuildingServiceClientConfig } from "./LexModelBuildingServiceClient"; @@ -10,6 +11,8 @@ import { LexModelBuildingServiceClientConfig } from "./LexModelBuildingServiceCl */ export const getRuntimeConfig = (config: LexModelBuildingServiceClientConfig) => ({ apiVersion: "2017-04-19", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-lex-model-building-service/src/runtimeConfig.ts b/clients/client-lex-model-building-service/src/runtimeConfig.ts index 58d4dd99dec1..1f4b94f1297c 100644 --- a/clients/client-lex-model-building-service/src/runtimeConfig.ts +++ b/clients/client-lex-model-building-service/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: LexModelBuildingServiceClientConfig) => ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-lex-models-v2/package.json b/clients/client-lex-models-v2/package.json index b2f69a6bac17..0f5ae070d786 100644 --- a/clients/client-lex-models-v2/package.json +++ b/clients/client-lex-models-v2/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-lex-models-v2/src/runtimeConfig.browser.ts b/clients/client-lex-models-v2/src/runtimeConfig.browser.ts index eb4c88eb3675..f07fc685dcd6 100644 --- a/clients/client-lex-models-v2/src/runtimeConfig.browser.ts +++ b/clients/client-lex-models-v2/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: LexModelsV2ClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-lex-models-v2/src/runtimeConfig.shared.ts b/clients/client-lex-models-v2/src/runtimeConfig.shared.ts index 6bfe9ec82321..6863c8b715a4 100644 --- a/clients/client-lex-models-v2/src/runtimeConfig.shared.ts +++ b/clients/client-lex-models-v2/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { LexModelsV2ClientConfig } from "./LexModelsV2Client"; @@ -10,6 +11,8 @@ import { LexModelsV2ClientConfig } from "./LexModelsV2Client"; */ export const getRuntimeConfig = (config: LexModelsV2ClientConfig) => ({ apiVersion: "2020-08-07", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-lex-models-v2/src/runtimeConfig.ts b/clients/client-lex-models-v2/src/runtimeConfig.ts index 1f8822501773..e7b486f47a21 100644 --- a/clients/client-lex-models-v2/src/runtimeConfig.ts +++ b/clients/client-lex-models-v2/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: LexModelsV2ClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-lex-runtime-service/package.json b/clients/client-lex-runtime-service/package.json index a32a66d7e6d7..aa951e375f8f 100644 --- a/clients/client-lex-runtime-service/package.json +++ b/clients/client-lex-runtime-service/package.json @@ -43,6 +43,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-lex-runtime-service/src/runtimeConfig.browser.ts b/clients/client-lex-runtime-service/src/runtimeConfig.browser.ts index 17fc89a6ee11..b67ea7f71f76 100644 --- a/clients/client-lex-runtime-service/src/runtimeConfig.browser.ts +++ b/clients/client-lex-runtime-service/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { sdkStreamMixin } from "@aws-sdk/util-stream-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; @@ -29,8 +28,6 @@ export const getRuntimeConfig = (config: LexRuntimeServiceClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-lex-runtime-service/src/runtimeConfig.shared.ts b/clients/client-lex-runtime-service/src/runtimeConfig.shared.ts index bf7928622699..3ec4fbe114b7 100644 --- a/clients/client-lex-runtime-service/src/runtimeConfig.shared.ts +++ b/clients/client-lex-runtime-service/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { LexRuntimeServiceClientConfig } from "./LexRuntimeServiceClient"; @@ -10,6 +11,8 @@ import { LexRuntimeServiceClientConfig } from "./LexRuntimeServiceClient"; */ export const getRuntimeConfig = (config: LexRuntimeServiceClientConfig) => ({ apiVersion: "2016-11-28", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-lex-runtime-service/src/runtimeConfig.ts b/clients/client-lex-runtime-service/src/runtimeConfig.ts index b84d3be51439..193f3b0aecb3 100644 --- a/clients/client-lex-runtime-service/src/runtimeConfig.ts +++ b/clients/client-lex-runtime-service/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { sdkStreamMixin } from "@aws-sdk/util-stream-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -42,8 +41,6 @@ export const getRuntimeConfig = (config: LexRuntimeServiceClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-lex-runtime-v2/package.json b/clients/client-lex-runtime-v2/package.json index 594e3bea26ad..3ff20a398178 100644 --- a/clients/client-lex-runtime-v2/package.json +++ b/clients/client-lex-runtime-v2/package.json @@ -46,6 +46,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-lex-runtime-v2/src/runtimeConfig.browser.ts b/clients/client-lex-runtime-v2/src/runtimeConfig.browser.ts index 24073ec5a153..824f7475128b 100644 --- a/clients/client-lex-runtime-v2/src/runtimeConfig.browser.ts +++ b/clients/client-lex-runtime-v2/src/runtimeConfig.browser.ts @@ -8,7 +8,6 @@ import { eventStreamSerdeProvider } from "@aws-sdk/eventstream-serde-browser"; import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidFunction, invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { sdkStreamMixin } from "@aws-sdk/util-stream-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; @@ -30,8 +29,6 @@ export const getRuntimeConfig = (config: LexRuntimeV2ClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-lex-runtime-v2/src/runtimeConfig.shared.ts b/clients/client-lex-runtime-v2/src/runtimeConfig.shared.ts index 5fbb8a6061bb..d18aae388a56 100644 --- a/clients/client-lex-runtime-v2/src/runtimeConfig.shared.ts +++ b/clients/client-lex-runtime-v2/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { LexRuntimeV2ClientConfig } from "./LexRuntimeV2Client"; @@ -10,6 +11,8 @@ import { LexRuntimeV2ClientConfig } from "./LexRuntimeV2Client"; */ export const getRuntimeConfig = (config: LexRuntimeV2ClientConfig) => ({ apiVersion: "2020-08-07", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-lex-runtime-v2/src/runtimeConfig.ts b/clients/client-lex-runtime-v2/src/runtimeConfig.ts index 834e1d2c4350..3859927ca788 100644 --- a/clients/client-lex-runtime-v2/src/runtimeConfig.ts +++ b/clients/client-lex-runtime-v2/src/runtimeConfig.ts @@ -20,7 +20,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttp2Handler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { sdkStreamMixin } from "@aws-sdk/util-stream-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -44,8 +43,6 @@ export const getRuntimeConfig = (config: LexRuntimeV2ClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-license-manager-user-subscriptions/package.json b/clients/client-license-manager-user-subscriptions/package.json index 7f4c8aae2538..73f901d6d082 100644 --- a/clients/client-license-manager-user-subscriptions/package.json +++ b/clients/client-license-manager-user-subscriptions/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-license-manager-user-subscriptions/src/runtimeConfig.browser.ts b/clients/client-license-manager-user-subscriptions/src/runtimeConfig.browser.ts index 2380184b427e..5d9c23fc5258 100644 --- a/clients/client-license-manager-user-subscriptions/src/runtimeConfig.browser.ts +++ b/clients/client-license-manager-user-subscriptions/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: LicenseManagerUserSubscriptionsClientCo ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-license-manager-user-subscriptions/src/runtimeConfig.shared.ts b/clients/client-license-manager-user-subscriptions/src/runtimeConfig.shared.ts index c696c551f4ff..1cda80de208d 100644 --- a/clients/client-license-manager-user-subscriptions/src/runtimeConfig.shared.ts +++ b/clients/client-license-manager-user-subscriptions/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { LicenseManagerUserSubscriptionsClientConfig } from "./LicenseManagerUserSubscriptionsClient"; @@ -10,6 +11,8 @@ import { LicenseManagerUserSubscriptionsClientConfig } from "./LicenseManagerUse */ export const getRuntimeConfig = (config: LicenseManagerUserSubscriptionsClientConfig) => ({ apiVersion: "2018-05-10", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-license-manager-user-subscriptions/src/runtimeConfig.ts b/clients/client-license-manager-user-subscriptions/src/runtimeConfig.ts index 6482ce3bd842..7b2bce619dce 100644 --- a/clients/client-license-manager-user-subscriptions/src/runtimeConfig.ts +++ b/clients/client-license-manager-user-subscriptions/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: LicenseManagerUserSubscriptionsClientCo ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-license-manager/package.json b/clients/client-license-manager/package.json index 27d40af6f78c..a96590430e42 100644 --- a/clients/client-license-manager/package.json +++ b/clients/client-license-manager/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-license-manager/src/runtimeConfig.browser.ts b/clients/client-license-manager/src/runtimeConfig.browser.ts index 28a8b8f38a59..1597dc4aaf87 100644 --- a/clients/client-license-manager/src/runtimeConfig.browser.ts +++ b/clients/client-license-manager/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: LicenseManagerClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-license-manager/src/runtimeConfig.shared.ts b/clients/client-license-manager/src/runtimeConfig.shared.ts index 1076060399e3..1523716bc784 100644 --- a/clients/client-license-manager/src/runtimeConfig.shared.ts +++ b/clients/client-license-manager/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { LicenseManagerClientConfig } from "./LicenseManagerClient"; @@ -10,6 +11,8 @@ import { LicenseManagerClientConfig } from "./LicenseManagerClient"; */ export const getRuntimeConfig = (config: LicenseManagerClientConfig) => ({ apiVersion: "2018-08-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-license-manager/src/runtimeConfig.ts b/clients/client-license-manager/src/runtimeConfig.ts index c56b9c28efa3..56640352f423 100644 --- a/clients/client-license-manager/src/runtimeConfig.ts +++ b/clients/client-license-manager/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: LicenseManagerClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-lightsail/package.json b/clients/client-lightsail/package.json index 6d6679f9b002..345d2f1b7673 100644 --- a/clients/client-lightsail/package.json +++ b/clients/client-lightsail/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-lightsail/src/runtimeConfig.browser.ts b/clients/client-lightsail/src/runtimeConfig.browser.ts index 44f08222935d..94c5cb220167 100644 --- a/clients/client-lightsail/src/runtimeConfig.browser.ts +++ b/clients/client-lightsail/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: LightsailClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-lightsail/src/runtimeConfig.shared.ts b/clients/client-lightsail/src/runtimeConfig.shared.ts index 18712e1f2ee9..39773347428f 100644 --- a/clients/client-lightsail/src/runtimeConfig.shared.ts +++ b/clients/client-lightsail/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { LightsailClientConfig } from "./LightsailClient"; @@ -10,6 +11,8 @@ import { LightsailClientConfig } from "./LightsailClient"; */ export const getRuntimeConfig = (config: LightsailClientConfig) => ({ apiVersion: "2016-11-28", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-lightsail/src/runtimeConfig.ts b/clients/client-lightsail/src/runtimeConfig.ts index 36f3fc5b1c69..b82858ca2d32 100644 --- a/clients/client-lightsail/src/runtimeConfig.ts +++ b/clients/client-lightsail/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: LightsailClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-location/package.json b/clients/client-location/package.json index c343e01585a1..62019a61c99b 100644 --- a/clients/client-location/package.json +++ b/clients/client-location/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-location/src/runtimeConfig.browser.ts b/clients/client-location/src/runtimeConfig.browser.ts index cd22ab624dfe..da0895d6acc9 100644 --- a/clients/client-location/src/runtimeConfig.browser.ts +++ b/clients/client-location/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: LocationClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-location/src/runtimeConfig.shared.ts b/clients/client-location/src/runtimeConfig.shared.ts index 4d34b2819ddd..b59adde3689f 100644 --- a/clients/client-location/src/runtimeConfig.shared.ts +++ b/clients/client-location/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { LocationClientConfig } from "./LocationClient"; @@ -10,6 +11,8 @@ import { LocationClientConfig } from "./LocationClient"; */ export const getRuntimeConfig = (config: LocationClientConfig) => ({ apiVersion: "2020-11-19", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-location/src/runtimeConfig.ts b/clients/client-location/src/runtimeConfig.ts index 191fce7da046..889884f3bcff 100644 --- a/clients/client-location/src/runtimeConfig.ts +++ b/clients/client-location/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: LocationClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-lookoutequipment/package.json b/clients/client-lookoutequipment/package.json index a02a9b48492b..f41e9f2ef234 100644 --- a/clients/client-lookoutequipment/package.json +++ b/clients/client-lookoutequipment/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-lookoutequipment/src/runtimeConfig.browser.ts b/clients/client-lookoutequipment/src/runtimeConfig.browser.ts index 588dad27e501..f557523997e6 100644 --- a/clients/client-lookoutequipment/src/runtimeConfig.browser.ts +++ b/clients/client-lookoutequipment/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: LookoutEquipmentClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-lookoutequipment/src/runtimeConfig.shared.ts b/clients/client-lookoutequipment/src/runtimeConfig.shared.ts index 396805ccd60a..797d5df5ab2b 100644 --- a/clients/client-lookoutequipment/src/runtimeConfig.shared.ts +++ b/clients/client-lookoutequipment/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { LookoutEquipmentClientConfig } from "./LookoutEquipmentClient"; @@ -10,6 +11,8 @@ import { LookoutEquipmentClientConfig } from "./LookoutEquipmentClient"; */ export const getRuntimeConfig = (config: LookoutEquipmentClientConfig) => ({ apiVersion: "2020-12-15", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-lookoutequipment/src/runtimeConfig.ts b/clients/client-lookoutequipment/src/runtimeConfig.ts index 4af77da8d1ec..e6ff61819913 100644 --- a/clients/client-lookoutequipment/src/runtimeConfig.ts +++ b/clients/client-lookoutequipment/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: LookoutEquipmentClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-lookoutmetrics/package.json b/clients/client-lookoutmetrics/package.json index 27f0c86f4838..181b450f60d9 100644 --- a/clients/client-lookoutmetrics/package.json +++ b/clients/client-lookoutmetrics/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-lookoutmetrics/src/runtimeConfig.browser.ts b/clients/client-lookoutmetrics/src/runtimeConfig.browser.ts index 3e36d0225c26..76381cdd26fa 100644 --- a/clients/client-lookoutmetrics/src/runtimeConfig.browser.ts +++ b/clients/client-lookoutmetrics/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: LookoutMetricsClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-lookoutmetrics/src/runtimeConfig.shared.ts b/clients/client-lookoutmetrics/src/runtimeConfig.shared.ts index e3415f1f761a..134764fa5283 100644 --- a/clients/client-lookoutmetrics/src/runtimeConfig.shared.ts +++ b/clients/client-lookoutmetrics/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { LookoutMetricsClientConfig } from "./LookoutMetricsClient"; @@ -10,6 +11,8 @@ import { LookoutMetricsClientConfig } from "./LookoutMetricsClient"; */ export const getRuntimeConfig = (config: LookoutMetricsClientConfig) => ({ apiVersion: "2017-07-25", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-lookoutmetrics/src/runtimeConfig.ts b/clients/client-lookoutmetrics/src/runtimeConfig.ts index 123d10fd65fa..7f56f7229948 100644 --- a/clients/client-lookoutmetrics/src/runtimeConfig.ts +++ b/clients/client-lookoutmetrics/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: LookoutMetricsClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-lookoutvision/package.json b/clients/client-lookoutvision/package.json index 492519ec66f0..5ed5a55c25d7 100644 --- a/clients/client-lookoutvision/package.json +++ b/clients/client-lookoutvision/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-lookoutvision/src/runtimeConfig.browser.ts b/clients/client-lookoutvision/src/runtimeConfig.browser.ts index 53309cf4fb2c..121f689e269c 100644 --- a/clients/client-lookoutvision/src/runtimeConfig.browser.ts +++ b/clients/client-lookoutvision/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: LookoutVisionClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-lookoutvision/src/runtimeConfig.shared.ts b/clients/client-lookoutvision/src/runtimeConfig.shared.ts index c3ad1bb39c04..d3e6adb9d1a4 100644 --- a/clients/client-lookoutvision/src/runtimeConfig.shared.ts +++ b/clients/client-lookoutvision/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { LookoutVisionClientConfig } from "./LookoutVisionClient"; @@ -10,6 +11,8 @@ import { LookoutVisionClientConfig } from "./LookoutVisionClient"; */ export const getRuntimeConfig = (config: LookoutVisionClientConfig) => ({ apiVersion: "2020-11-20", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-lookoutvision/src/runtimeConfig.ts b/clients/client-lookoutvision/src/runtimeConfig.ts index 5b89b3326970..32035238dcb1 100644 --- a/clients/client-lookoutvision/src/runtimeConfig.ts +++ b/clients/client-lookoutvision/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: LookoutVisionClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-m2/package.json b/clients/client-m2/package.json index 2ef9fa5bde67..2fa12eb13bb2 100644 --- a/clients/client-m2/package.json +++ b/clients/client-m2/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-m2/src/runtimeConfig.browser.ts b/clients/client-m2/src/runtimeConfig.browser.ts index 497e79877567..69fef7170c4a 100644 --- a/clients/client-m2/src/runtimeConfig.browser.ts +++ b/clients/client-m2/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: M2ClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-m2/src/runtimeConfig.shared.ts b/clients/client-m2/src/runtimeConfig.shared.ts index 1fd58fc7cfad..0ec129a6cb12 100644 --- a/clients/client-m2/src/runtimeConfig.shared.ts +++ b/clients/client-m2/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { M2ClientConfig } from "./M2Client"; @@ -10,6 +11,8 @@ import { M2ClientConfig } from "./M2Client"; */ export const getRuntimeConfig = (config: M2ClientConfig) => ({ apiVersion: "2021-04-28", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-m2/src/runtimeConfig.ts b/clients/client-m2/src/runtimeConfig.ts index c060f827ddfb..ea866f643d45 100644 --- a/clients/client-m2/src/runtimeConfig.ts +++ b/clients/client-m2/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: M2ClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-machine-learning/package.json b/clients/client-machine-learning/package.json index 66787bdd753a..32d33118a3f4 100644 --- a/clients/client-machine-learning/package.json +++ b/clients/client-machine-learning/package.json @@ -42,6 +42,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-machine-learning/src/runtimeConfig.browser.ts b/clients/client-machine-learning/src/runtimeConfig.browser.ts index a8c9c9f81fa3..c452754b1b29 100644 --- a/clients/client-machine-learning/src/runtimeConfig.browser.ts +++ b/clients/client-machine-learning/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: MachineLearningClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-machine-learning/src/runtimeConfig.shared.ts b/clients/client-machine-learning/src/runtimeConfig.shared.ts index bc61df6bae5c..2ee6e0ec5f74 100644 --- a/clients/client-machine-learning/src/runtimeConfig.shared.ts +++ b/clients/client-machine-learning/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { MachineLearningClientConfig } from "./MachineLearningClient"; @@ -10,6 +11,8 @@ import { MachineLearningClientConfig } from "./MachineLearningClient"; */ export const getRuntimeConfig = (config: MachineLearningClientConfig) => ({ apiVersion: "2014-12-12", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-machine-learning/src/runtimeConfig.ts b/clients/client-machine-learning/src/runtimeConfig.ts index 3c6228826d37..ae7cf8c26f7f 100644 --- a/clients/client-machine-learning/src/runtimeConfig.ts +++ b/clients/client-machine-learning/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: MachineLearningClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-macie/package.json b/clients/client-macie/package.json index 8e588e7a53ce..f75ee7d239e6 100644 --- a/clients/client-macie/package.json +++ b/clients/client-macie/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-macie/src/runtimeConfig.browser.ts b/clients/client-macie/src/runtimeConfig.browser.ts index 6bd0cbc4b06c..2b322db8dbbc 100644 --- a/clients/client-macie/src/runtimeConfig.browser.ts +++ b/clients/client-macie/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: MacieClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-macie/src/runtimeConfig.shared.ts b/clients/client-macie/src/runtimeConfig.shared.ts index a789984035b3..0f1225d009b8 100644 --- a/clients/client-macie/src/runtimeConfig.shared.ts +++ b/clients/client-macie/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { MacieClientConfig } from "./MacieClient"; @@ -10,6 +11,8 @@ import { MacieClientConfig } from "./MacieClient"; */ export const getRuntimeConfig = (config: MacieClientConfig) => ({ apiVersion: "2017-12-19", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-macie/src/runtimeConfig.ts b/clients/client-macie/src/runtimeConfig.ts index c26173cee127..c66c2b3cc3a9 100644 --- a/clients/client-macie/src/runtimeConfig.ts +++ b/clients/client-macie/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: MacieClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-macie2/package.json b/clients/client-macie2/package.json index d2cb04eed341..371a3d1fac0e 100644 --- a/clients/client-macie2/package.json +++ b/clients/client-macie2/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-macie2/src/runtimeConfig.browser.ts b/clients/client-macie2/src/runtimeConfig.browser.ts index 2ac8f2caf21d..06849ac0f92a 100644 --- a/clients/client-macie2/src/runtimeConfig.browser.ts +++ b/clients/client-macie2/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: Macie2ClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-macie2/src/runtimeConfig.shared.ts b/clients/client-macie2/src/runtimeConfig.shared.ts index e15dd1c9cdfa..c8a0dfe7b81f 100644 --- a/clients/client-macie2/src/runtimeConfig.shared.ts +++ b/clients/client-macie2/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { Macie2ClientConfig } from "./Macie2Client"; @@ -10,6 +11,8 @@ import { Macie2ClientConfig } from "./Macie2Client"; */ export const getRuntimeConfig = (config: Macie2ClientConfig) => ({ apiVersion: "2020-01-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-macie2/src/runtimeConfig.ts b/clients/client-macie2/src/runtimeConfig.ts index 7d720618b49c..edffa32829b1 100644 --- a/clients/client-macie2/src/runtimeConfig.ts +++ b/clients/client-macie2/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: Macie2ClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-managedblockchain/package.json b/clients/client-managedblockchain/package.json index 4f07f7f6f4c0..013e9dae8af1 100644 --- a/clients/client-managedblockchain/package.json +++ b/clients/client-managedblockchain/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-managedblockchain/src/runtimeConfig.browser.ts b/clients/client-managedblockchain/src/runtimeConfig.browser.ts index b9f2b2a1d7a1..1214d9be53dc 100644 --- a/clients/client-managedblockchain/src/runtimeConfig.browser.ts +++ b/clients/client-managedblockchain/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: ManagedBlockchainClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-managedblockchain/src/runtimeConfig.shared.ts b/clients/client-managedblockchain/src/runtimeConfig.shared.ts index bc11bd27ed58..25766fd562ab 100644 --- a/clients/client-managedblockchain/src/runtimeConfig.shared.ts +++ b/clients/client-managedblockchain/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { ManagedBlockchainClientConfig } from "./ManagedBlockchainClient"; @@ -10,6 +11,8 @@ import { ManagedBlockchainClientConfig } from "./ManagedBlockchainClient"; */ export const getRuntimeConfig = (config: ManagedBlockchainClientConfig) => ({ apiVersion: "2018-09-24", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-managedblockchain/src/runtimeConfig.ts b/clients/client-managedblockchain/src/runtimeConfig.ts index 93e22624f093..2b8789d50699 100644 --- a/clients/client-managedblockchain/src/runtimeConfig.ts +++ b/clients/client-managedblockchain/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: ManagedBlockchainClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-marketplace-catalog/package.json b/clients/client-marketplace-catalog/package.json index 5880bb34f0e1..f0676ca6d81d 100644 --- a/clients/client-marketplace-catalog/package.json +++ b/clients/client-marketplace-catalog/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-marketplace-catalog/src/runtimeConfig.browser.ts b/clients/client-marketplace-catalog/src/runtimeConfig.browser.ts index 3e0262409251..c50a972bde06 100644 --- a/clients/client-marketplace-catalog/src/runtimeConfig.browser.ts +++ b/clients/client-marketplace-catalog/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: MarketplaceCatalogClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-marketplace-catalog/src/runtimeConfig.shared.ts b/clients/client-marketplace-catalog/src/runtimeConfig.shared.ts index fb1399b9eb3b..ff3a1edfed21 100644 --- a/clients/client-marketplace-catalog/src/runtimeConfig.shared.ts +++ b/clients/client-marketplace-catalog/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { MarketplaceCatalogClientConfig } from "./MarketplaceCatalogClient"; @@ -10,6 +11,8 @@ import { MarketplaceCatalogClientConfig } from "./MarketplaceCatalogClient"; */ export const getRuntimeConfig = (config: MarketplaceCatalogClientConfig) => ({ apiVersion: "2018-09-17", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-marketplace-catalog/src/runtimeConfig.ts b/clients/client-marketplace-catalog/src/runtimeConfig.ts index bc19b2f484ae..a1fcc319d407 100644 --- a/clients/client-marketplace-catalog/src/runtimeConfig.ts +++ b/clients/client-marketplace-catalog/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: MarketplaceCatalogClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-marketplace-commerce-analytics/package.json b/clients/client-marketplace-commerce-analytics/package.json index d513b74e903f..faa4615901d2 100644 --- a/clients/client-marketplace-commerce-analytics/package.json +++ b/clients/client-marketplace-commerce-analytics/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-marketplace-commerce-analytics/src/runtimeConfig.browser.ts b/clients/client-marketplace-commerce-analytics/src/runtimeConfig.browser.ts index e72aa04f7740..8a37a68723b8 100644 --- a/clients/client-marketplace-commerce-analytics/src/runtimeConfig.browser.ts +++ b/clients/client-marketplace-commerce-analytics/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: MarketplaceCommerceAnalyticsClientConfi ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-marketplace-commerce-analytics/src/runtimeConfig.shared.ts b/clients/client-marketplace-commerce-analytics/src/runtimeConfig.shared.ts index ba9236e5dd35..c22f5dd388e8 100644 --- a/clients/client-marketplace-commerce-analytics/src/runtimeConfig.shared.ts +++ b/clients/client-marketplace-commerce-analytics/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { MarketplaceCommerceAnalyticsClientConfig } from "./MarketplaceCommerceAnalyticsClient"; @@ -10,6 +11,8 @@ import { MarketplaceCommerceAnalyticsClientConfig } from "./MarketplaceCommerceA */ export const getRuntimeConfig = (config: MarketplaceCommerceAnalyticsClientConfig) => ({ apiVersion: "2015-07-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-marketplace-commerce-analytics/src/runtimeConfig.ts b/clients/client-marketplace-commerce-analytics/src/runtimeConfig.ts index d624cb02d53b..21ded865ffb0 100644 --- a/clients/client-marketplace-commerce-analytics/src/runtimeConfig.ts +++ b/clients/client-marketplace-commerce-analytics/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: MarketplaceCommerceAnalyticsClientConfi ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-marketplace-entitlement-service/package.json b/clients/client-marketplace-entitlement-service/package.json index 4d377379ac5b..63490a2ec60e 100644 --- a/clients/client-marketplace-entitlement-service/package.json +++ b/clients/client-marketplace-entitlement-service/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-marketplace-entitlement-service/src/runtimeConfig.browser.ts b/clients/client-marketplace-entitlement-service/src/runtimeConfig.browser.ts index eec0878633b4..6a36916b9c82 100644 --- a/clients/client-marketplace-entitlement-service/src/runtimeConfig.browser.ts +++ b/clients/client-marketplace-entitlement-service/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: MarketplaceEntitlementServiceClientConf ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-marketplace-entitlement-service/src/runtimeConfig.shared.ts b/clients/client-marketplace-entitlement-service/src/runtimeConfig.shared.ts index 937d744d4a99..ea8e55b2a851 100644 --- a/clients/client-marketplace-entitlement-service/src/runtimeConfig.shared.ts +++ b/clients/client-marketplace-entitlement-service/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { MarketplaceEntitlementServiceClientConfig } from "./MarketplaceEntitlementServiceClient"; @@ -10,6 +11,8 @@ import { MarketplaceEntitlementServiceClientConfig } from "./MarketplaceEntitlem */ export const getRuntimeConfig = (config: MarketplaceEntitlementServiceClientConfig) => ({ apiVersion: "2017-01-11", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-marketplace-entitlement-service/src/runtimeConfig.ts b/clients/client-marketplace-entitlement-service/src/runtimeConfig.ts index 987ad2cfbf91..8341e2c36497 100644 --- a/clients/client-marketplace-entitlement-service/src/runtimeConfig.ts +++ b/clients/client-marketplace-entitlement-service/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: MarketplaceEntitlementServiceClientConf ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-marketplace-metering/package.json b/clients/client-marketplace-metering/package.json index 2c2e8bf93d9e..b068c7ac07e2 100644 --- a/clients/client-marketplace-metering/package.json +++ b/clients/client-marketplace-metering/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-marketplace-metering/src/runtimeConfig.browser.ts b/clients/client-marketplace-metering/src/runtimeConfig.browser.ts index 7cba56461f09..5ce54649b400 100644 --- a/clients/client-marketplace-metering/src/runtimeConfig.browser.ts +++ b/clients/client-marketplace-metering/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: MarketplaceMeteringClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-marketplace-metering/src/runtimeConfig.shared.ts b/clients/client-marketplace-metering/src/runtimeConfig.shared.ts index dfaa9c1c3f3b..2c86e2a26cdf 100644 --- a/clients/client-marketplace-metering/src/runtimeConfig.shared.ts +++ b/clients/client-marketplace-metering/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { MarketplaceMeteringClientConfig } from "./MarketplaceMeteringClient"; @@ -10,6 +11,8 @@ import { MarketplaceMeteringClientConfig } from "./MarketplaceMeteringClient"; */ export const getRuntimeConfig = (config: MarketplaceMeteringClientConfig) => ({ apiVersion: "2016-01-14", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-marketplace-metering/src/runtimeConfig.ts b/clients/client-marketplace-metering/src/runtimeConfig.ts index 3b6da4d6a82f..64b2689cbc9e 100644 --- a/clients/client-marketplace-metering/src/runtimeConfig.ts +++ b/clients/client-marketplace-metering/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: MarketplaceMeteringClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-mediaconnect/package.json b/clients/client-mediaconnect/package.json index 63be5e617546..e4bae4d655e6 100644 --- a/clients/client-mediaconnect/package.json +++ b/clients/client-mediaconnect/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-mediaconnect/src/runtimeConfig.browser.ts b/clients/client-mediaconnect/src/runtimeConfig.browser.ts index 430c485da733..8480901071ad 100644 --- a/clients/client-mediaconnect/src/runtimeConfig.browser.ts +++ b/clients/client-mediaconnect/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: MediaConnectClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-mediaconnect/src/runtimeConfig.shared.ts b/clients/client-mediaconnect/src/runtimeConfig.shared.ts index 1c7abdd32485..5a6fed64cbee 100644 --- a/clients/client-mediaconnect/src/runtimeConfig.shared.ts +++ b/clients/client-mediaconnect/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { MediaConnectClientConfig } from "./MediaConnectClient"; @@ -10,6 +11,8 @@ import { MediaConnectClientConfig } from "./MediaConnectClient"; */ export const getRuntimeConfig = (config: MediaConnectClientConfig) => ({ apiVersion: "2018-11-14", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-mediaconnect/src/runtimeConfig.ts b/clients/client-mediaconnect/src/runtimeConfig.ts index 7a018d3b8c78..d4cabd7166b0 100644 --- a/clients/client-mediaconnect/src/runtimeConfig.ts +++ b/clients/client-mediaconnect/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: MediaConnectClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-mediaconvert/package.json b/clients/client-mediaconvert/package.json index d74ce3a22758..dd4fada51651 100644 --- a/clients/client-mediaconvert/package.json +++ b/clients/client-mediaconvert/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-mediaconvert/src/runtimeConfig.browser.ts b/clients/client-mediaconvert/src/runtimeConfig.browser.ts index f0cc2c009f38..1ba36c1f4d38 100644 --- a/clients/client-mediaconvert/src/runtimeConfig.browser.ts +++ b/clients/client-mediaconvert/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: MediaConvertClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-mediaconvert/src/runtimeConfig.shared.ts b/clients/client-mediaconvert/src/runtimeConfig.shared.ts index e108549c1400..c8f523fab2fb 100644 --- a/clients/client-mediaconvert/src/runtimeConfig.shared.ts +++ b/clients/client-mediaconvert/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { MediaConvertClientConfig } from "./MediaConvertClient"; @@ -10,6 +11,8 @@ import { MediaConvertClientConfig } from "./MediaConvertClient"; */ export const getRuntimeConfig = (config: MediaConvertClientConfig) => ({ apiVersion: "2017-08-29", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-mediaconvert/src/runtimeConfig.ts b/clients/client-mediaconvert/src/runtimeConfig.ts index c38a083365af..99d2d618eac1 100644 --- a/clients/client-mediaconvert/src/runtimeConfig.ts +++ b/clients/client-mediaconvert/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: MediaConvertClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-medialive/package.json b/clients/client-medialive/package.json index cf44e866cf40..cf1b237f7689 100644 --- a/clients/client-medialive/package.json +++ b/clients/client-medialive/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-medialive/src/runtimeConfig.browser.ts b/clients/client-medialive/src/runtimeConfig.browser.ts index 765f95bfa642..ca0b0b8f360e 100644 --- a/clients/client-medialive/src/runtimeConfig.browser.ts +++ b/clients/client-medialive/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { sdkStreamMixin } from "@aws-sdk/util-stream-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; @@ -29,8 +28,6 @@ export const getRuntimeConfig = (config: MediaLiveClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-medialive/src/runtimeConfig.shared.ts b/clients/client-medialive/src/runtimeConfig.shared.ts index 0b967814eb5a..2eb9d71c252b 100644 --- a/clients/client-medialive/src/runtimeConfig.shared.ts +++ b/clients/client-medialive/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { MediaLiveClientConfig } from "./MediaLiveClient"; @@ -10,6 +11,8 @@ import { MediaLiveClientConfig } from "./MediaLiveClient"; */ export const getRuntimeConfig = (config: MediaLiveClientConfig) => ({ apiVersion: "2017-10-14", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-medialive/src/runtimeConfig.ts b/clients/client-medialive/src/runtimeConfig.ts index 061a75ee1ec3..5ed3dc9deed5 100644 --- a/clients/client-medialive/src/runtimeConfig.ts +++ b/clients/client-medialive/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { sdkStreamMixin } from "@aws-sdk/util-stream-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -42,8 +41,6 @@ export const getRuntimeConfig = (config: MediaLiveClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-mediapackage-vod/package.json b/clients/client-mediapackage-vod/package.json index fa985965588d..942467255db9 100644 --- a/clients/client-mediapackage-vod/package.json +++ b/clients/client-mediapackage-vod/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-mediapackage-vod/src/runtimeConfig.browser.ts b/clients/client-mediapackage-vod/src/runtimeConfig.browser.ts index 9dfcbf030b5f..89864cbd55e7 100644 --- a/clients/client-mediapackage-vod/src/runtimeConfig.browser.ts +++ b/clients/client-mediapackage-vod/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: MediaPackageVodClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-mediapackage-vod/src/runtimeConfig.shared.ts b/clients/client-mediapackage-vod/src/runtimeConfig.shared.ts index 12b019beeb1f..b3771d0e4f57 100644 --- a/clients/client-mediapackage-vod/src/runtimeConfig.shared.ts +++ b/clients/client-mediapackage-vod/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { MediaPackageVodClientConfig } from "./MediaPackageVodClient"; @@ -10,6 +11,8 @@ import { MediaPackageVodClientConfig } from "./MediaPackageVodClient"; */ export const getRuntimeConfig = (config: MediaPackageVodClientConfig) => ({ apiVersion: "2018-11-07", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-mediapackage-vod/src/runtimeConfig.ts b/clients/client-mediapackage-vod/src/runtimeConfig.ts index 123edf63a694..204f6cdd755c 100644 --- a/clients/client-mediapackage-vod/src/runtimeConfig.ts +++ b/clients/client-mediapackage-vod/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: MediaPackageVodClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-mediapackage/package.json b/clients/client-mediapackage/package.json index fa9a6435a9ff..b815e1534038 100644 --- a/clients/client-mediapackage/package.json +++ b/clients/client-mediapackage/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-mediapackage/src/runtimeConfig.browser.ts b/clients/client-mediapackage/src/runtimeConfig.browser.ts index cc54c6b63683..d34ffea370dc 100644 --- a/clients/client-mediapackage/src/runtimeConfig.browser.ts +++ b/clients/client-mediapackage/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: MediaPackageClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-mediapackage/src/runtimeConfig.shared.ts b/clients/client-mediapackage/src/runtimeConfig.shared.ts index e5b9425d554e..07bb331b0704 100644 --- a/clients/client-mediapackage/src/runtimeConfig.shared.ts +++ b/clients/client-mediapackage/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { MediaPackageClientConfig } from "./MediaPackageClient"; @@ -10,6 +11,8 @@ import { MediaPackageClientConfig } from "./MediaPackageClient"; */ export const getRuntimeConfig = (config: MediaPackageClientConfig) => ({ apiVersion: "2017-10-12", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-mediapackage/src/runtimeConfig.ts b/clients/client-mediapackage/src/runtimeConfig.ts index bacee8b188c4..1c38970fefb7 100644 --- a/clients/client-mediapackage/src/runtimeConfig.ts +++ b/clients/client-mediapackage/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: MediaPackageClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-mediastore-data/package.json b/clients/client-mediastore-data/package.json index 6b9d9386621a..4d8fe9c9b2a4 100644 --- a/clients/client-mediastore-data/package.json +++ b/clients/client-mediastore-data/package.json @@ -43,6 +43,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-mediastore-data/src/runtimeConfig.browser.ts b/clients/client-mediastore-data/src/runtimeConfig.browser.ts index 287a4413d2eb..300b6907c9e0 100644 --- a/clients/client-mediastore-data/src/runtimeConfig.browser.ts +++ b/clients/client-mediastore-data/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { sdkStreamMixin } from "@aws-sdk/util-stream-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; @@ -29,8 +28,6 @@ export const getRuntimeConfig = (config: MediaStoreDataClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-mediastore-data/src/runtimeConfig.shared.ts b/clients/client-mediastore-data/src/runtimeConfig.shared.ts index 28e16520d96a..e7a66bdf190c 100644 --- a/clients/client-mediastore-data/src/runtimeConfig.shared.ts +++ b/clients/client-mediastore-data/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { MediaStoreDataClientConfig } from "./MediaStoreDataClient"; @@ -10,6 +11,8 @@ import { MediaStoreDataClientConfig } from "./MediaStoreDataClient"; */ export const getRuntimeConfig = (config: MediaStoreDataClientConfig) => ({ apiVersion: "2017-09-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-mediastore-data/src/runtimeConfig.ts b/clients/client-mediastore-data/src/runtimeConfig.ts index da8578a55e38..e5ae0cc0a466 100644 --- a/clients/client-mediastore-data/src/runtimeConfig.ts +++ b/clients/client-mediastore-data/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { sdkStreamMixin } from "@aws-sdk/util-stream-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -42,8 +41,6 @@ export const getRuntimeConfig = (config: MediaStoreDataClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-mediastore/package.json b/clients/client-mediastore/package.json index 5758e63f4e16..7b1bd909d630 100644 --- a/clients/client-mediastore/package.json +++ b/clients/client-mediastore/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-mediastore/src/runtimeConfig.browser.ts b/clients/client-mediastore/src/runtimeConfig.browser.ts index 6e6efad10f1a..09a6fcce85a7 100644 --- a/clients/client-mediastore/src/runtimeConfig.browser.ts +++ b/clients/client-mediastore/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: MediaStoreClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-mediastore/src/runtimeConfig.shared.ts b/clients/client-mediastore/src/runtimeConfig.shared.ts index d5081c593858..bcfc689904f4 100644 --- a/clients/client-mediastore/src/runtimeConfig.shared.ts +++ b/clients/client-mediastore/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { MediaStoreClientConfig } from "./MediaStoreClient"; @@ -10,6 +11,8 @@ import { MediaStoreClientConfig } from "./MediaStoreClient"; */ export const getRuntimeConfig = (config: MediaStoreClientConfig) => ({ apiVersion: "2017-09-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-mediastore/src/runtimeConfig.ts b/clients/client-mediastore/src/runtimeConfig.ts index 6c3979cb3562..4476cd45f2fd 100644 --- a/clients/client-mediastore/src/runtimeConfig.ts +++ b/clients/client-mediastore/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: MediaStoreClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-mediatailor/package.json b/clients/client-mediatailor/package.json index ef296001e005..bc7d15e89e2d 100644 --- a/clients/client-mediatailor/package.json +++ b/clients/client-mediatailor/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-mediatailor/src/runtimeConfig.browser.ts b/clients/client-mediatailor/src/runtimeConfig.browser.ts index 1ee368b156ec..f15850e36728 100644 --- a/clients/client-mediatailor/src/runtimeConfig.browser.ts +++ b/clients/client-mediatailor/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: MediaTailorClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-mediatailor/src/runtimeConfig.shared.ts b/clients/client-mediatailor/src/runtimeConfig.shared.ts index 69607bb64eb5..7644e26ad621 100644 --- a/clients/client-mediatailor/src/runtimeConfig.shared.ts +++ b/clients/client-mediatailor/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { MediaTailorClientConfig } from "./MediaTailorClient"; @@ -10,6 +11,8 @@ import { MediaTailorClientConfig } from "./MediaTailorClient"; */ export const getRuntimeConfig = (config: MediaTailorClientConfig) => ({ apiVersion: "2018-04-23", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-mediatailor/src/runtimeConfig.ts b/clients/client-mediatailor/src/runtimeConfig.ts index 1bd910ccfa67..8dd939c08e10 100644 --- a/clients/client-mediatailor/src/runtimeConfig.ts +++ b/clients/client-mediatailor/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: MediaTailorClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-memorydb/package.json b/clients/client-memorydb/package.json index 24225382f0f1..faa71e66f0a7 100644 --- a/clients/client-memorydb/package.json +++ b/clients/client-memorydb/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-memorydb/src/runtimeConfig.browser.ts b/clients/client-memorydb/src/runtimeConfig.browser.ts index 9d30cf087567..798a7214f303 100644 --- a/clients/client-memorydb/src/runtimeConfig.browser.ts +++ b/clients/client-memorydb/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: MemoryDBClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-memorydb/src/runtimeConfig.shared.ts b/clients/client-memorydb/src/runtimeConfig.shared.ts index d96b4321a199..71c0decf5faa 100644 --- a/clients/client-memorydb/src/runtimeConfig.shared.ts +++ b/clients/client-memorydb/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { MemoryDBClientConfig } from "./MemoryDBClient"; @@ -10,6 +11,8 @@ import { MemoryDBClientConfig } from "./MemoryDBClient"; */ export const getRuntimeConfig = (config: MemoryDBClientConfig) => ({ apiVersion: "2021-01-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-memorydb/src/runtimeConfig.ts b/clients/client-memorydb/src/runtimeConfig.ts index fc537f8106b7..8c8989fe6b5e 100644 --- a/clients/client-memorydb/src/runtimeConfig.ts +++ b/clients/client-memorydb/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: MemoryDBClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-mgn/package.json b/clients/client-mgn/package.json index e0df1c045c9d..91a371a3a42a 100644 --- a/clients/client-mgn/package.json +++ b/clients/client-mgn/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-mgn/src/runtimeConfig.browser.ts b/clients/client-mgn/src/runtimeConfig.browser.ts index c0f3055acf0e..617fc683d124 100644 --- a/clients/client-mgn/src/runtimeConfig.browser.ts +++ b/clients/client-mgn/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: MgnClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-mgn/src/runtimeConfig.shared.ts b/clients/client-mgn/src/runtimeConfig.shared.ts index 51a197c59195..78e56b0652ad 100644 --- a/clients/client-mgn/src/runtimeConfig.shared.ts +++ b/clients/client-mgn/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { MgnClientConfig } from "./MgnClient"; @@ -10,6 +11,8 @@ import { MgnClientConfig } from "./MgnClient"; */ export const getRuntimeConfig = (config: MgnClientConfig) => ({ apiVersion: "2020-02-26", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-mgn/src/runtimeConfig.ts b/clients/client-mgn/src/runtimeConfig.ts index d938c4a4a891..ba8bd2fdf55d 100644 --- a/clients/client-mgn/src/runtimeConfig.ts +++ b/clients/client-mgn/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: MgnClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-migration-hub-refactor-spaces/package.json b/clients/client-migration-hub-refactor-spaces/package.json index f02a4c6609be..d54748d34929 100644 --- a/clients/client-migration-hub-refactor-spaces/package.json +++ b/clients/client-migration-hub-refactor-spaces/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-migration-hub-refactor-spaces/src/runtimeConfig.browser.ts b/clients/client-migration-hub-refactor-spaces/src/runtimeConfig.browser.ts index afe884d71fa5..3a56271aa28e 100644 --- a/clients/client-migration-hub-refactor-spaces/src/runtimeConfig.browser.ts +++ b/clients/client-migration-hub-refactor-spaces/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: MigrationHubRefactorSpacesClientConfig) ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-migration-hub-refactor-spaces/src/runtimeConfig.shared.ts b/clients/client-migration-hub-refactor-spaces/src/runtimeConfig.shared.ts index 0c591ccc9e5e..85ab0ad0f899 100644 --- a/clients/client-migration-hub-refactor-spaces/src/runtimeConfig.shared.ts +++ b/clients/client-migration-hub-refactor-spaces/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { MigrationHubRefactorSpacesClientConfig } from "./MigrationHubRefactorSpacesClient"; @@ -10,6 +11,8 @@ import { MigrationHubRefactorSpacesClientConfig } from "./MigrationHubRefactorSp */ export const getRuntimeConfig = (config: MigrationHubRefactorSpacesClientConfig) => ({ apiVersion: "2021-10-26", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-migration-hub-refactor-spaces/src/runtimeConfig.ts b/clients/client-migration-hub-refactor-spaces/src/runtimeConfig.ts index a70704525249..7b8a4e1fce9f 100644 --- a/clients/client-migration-hub-refactor-spaces/src/runtimeConfig.ts +++ b/clients/client-migration-hub-refactor-spaces/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: MigrationHubRefactorSpacesClientConfig) ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-migration-hub/package.json b/clients/client-migration-hub/package.json index 71d16c715452..732106713cc3 100644 --- a/clients/client-migration-hub/package.json +++ b/clients/client-migration-hub/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-migration-hub/src/runtimeConfig.browser.ts b/clients/client-migration-hub/src/runtimeConfig.browser.ts index cce893ce12e9..2a29d3b3bdfc 100644 --- a/clients/client-migration-hub/src/runtimeConfig.browser.ts +++ b/clients/client-migration-hub/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: MigrationHubClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-migration-hub/src/runtimeConfig.shared.ts b/clients/client-migration-hub/src/runtimeConfig.shared.ts index 614c32ebca1c..30b7ff965687 100644 --- a/clients/client-migration-hub/src/runtimeConfig.shared.ts +++ b/clients/client-migration-hub/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { MigrationHubClientConfig } from "./MigrationHubClient"; @@ -10,6 +11,8 @@ import { MigrationHubClientConfig } from "./MigrationHubClient"; */ export const getRuntimeConfig = (config: MigrationHubClientConfig) => ({ apiVersion: "2017-05-31", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-migration-hub/src/runtimeConfig.ts b/clients/client-migration-hub/src/runtimeConfig.ts index 122d0774a69f..0fef1643d88a 100644 --- a/clients/client-migration-hub/src/runtimeConfig.ts +++ b/clients/client-migration-hub/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: MigrationHubClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-migrationhub-config/package.json b/clients/client-migrationhub-config/package.json index 40e1b1e741ca..aa921764bccb 100644 --- a/clients/client-migrationhub-config/package.json +++ b/clients/client-migrationhub-config/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-migrationhub-config/src/runtimeConfig.browser.ts b/clients/client-migrationhub-config/src/runtimeConfig.browser.ts index e3145c88ab9a..01d9f343a2f0 100644 --- a/clients/client-migrationhub-config/src/runtimeConfig.browser.ts +++ b/clients/client-migrationhub-config/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: MigrationHubConfigClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-migrationhub-config/src/runtimeConfig.shared.ts b/clients/client-migrationhub-config/src/runtimeConfig.shared.ts index 278e292245fa..c7a073f63450 100644 --- a/clients/client-migrationhub-config/src/runtimeConfig.shared.ts +++ b/clients/client-migrationhub-config/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { MigrationHubConfigClientConfig } from "./MigrationHubConfigClient"; @@ -10,6 +11,8 @@ import { MigrationHubConfigClientConfig } from "./MigrationHubConfigClient"; */ export const getRuntimeConfig = (config: MigrationHubConfigClientConfig) => ({ apiVersion: "2019-06-30", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-migrationhub-config/src/runtimeConfig.ts b/clients/client-migrationhub-config/src/runtimeConfig.ts index ad4d5cfa1fae..606ae5e3d52d 100644 --- a/clients/client-migrationhub-config/src/runtimeConfig.ts +++ b/clients/client-migrationhub-config/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: MigrationHubConfigClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-migrationhuborchestrator/package.json b/clients/client-migrationhuborchestrator/package.json index 0ddb56f9f82d..8dff55d27abc 100644 --- a/clients/client-migrationhuborchestrator/package.json +++ b/clients/client-migrationhuborchestrator/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-migrationhuborchestrator/src/runtimeConfig.browser.ts b/clients/client-migrationhuborchestrator/src/runtimeConfig.browser.ts index 91e6e51e8f4f..03c557587721 100644 --- a/clients/client-migrationhuborchestrator/src/runtimeConfig.browser.ts +++ b/clients/client-migrationhuborchestrator/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: MigrationHubOrchestratorClientConfig) = ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-migrationhuborchestrator/src/runtimeConfig.shared.ts b/clients/client-migrationhuborchestrator/src/runtimeConfig.shared.ts index 25b7ebc1aff1..3b64eeaa5505 100644 --- a/clients/client-migrationhuborchestrator/src/runtimeConfig.shared.ts +++ b/clients/client-migrationhuborchestrator/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { MigrationHubOrchestratorClientConfig } from "./MigrationHubOrchestratorClient"; @@ -10,6 +11,8 @@ import { MigrationHubOrchestratorClientConfig } from "./MigrationHubOrchestrator */ export const getRuntimeConfig = (config: MigrationHubOrchestratorClientConfig) => ({ apiVersion: "2021-08-28", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-migrationhuborchestrator/src/runtimeConfig.ts b/clients/client-migrationhuborchestrator/src/runtimeConfig.ts index 2f9ae37b9cc9..6afb98bd62fc 100644 --- a/clients/client-migrationhuborchestrator/src/runtimeConfig.ts +++ b/clients/client-migrationhuborchestrator/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: MigrationHubOrchestratorClientConfig) = ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-migrationhubstrategy/package.json b/clients/client-migrationhubstrategy/package.json index 39341bdc7344..e13d05ad8c6e 100644 --- a/clients/client-migrationhubstrategy/package.json +++ b/clients/client-migrationhubstrategy/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-migrationhubstrategy/src/runtimeConfig.browser.ts b/clients/client-migrationhubstrategy/src/runtimeConfig.browser.ts index 73f15190df85..206f30e43aa5 100644 --- a/clients/client-migrationhubstrategy/src/runtimeConfig.browser.ts +++ b/clients/client-migrationhubstrategy/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: MigrationHubStrategyClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-migrationhubstrategy/src/runtimeConfig.shared.ts b/clients/client-migrationhubstrategy/src/runtimeConfig.shared.ts index b8fde3b3c2bc..e361b8f04c83 100644 --- a/clients/client-migrationhubstrategy/src/runtimeConfig.shared.ts +++ b/clients/client-migrationhubstrategy/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { MigrationHubStrategyClientConfig } from "./MigrationHubStrategyClient"; @@ -10,6 +11,8 @@ import { MigrationHubStrategyClientConfig } from "./MigrationHubStrategyClient"; */ export const getRuntimeConfig = (config: MigrationHubStrategyClientConfig) => ({ apiVersion: "2020-02-19", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-migrationhubstrategy/src/runtimeConfig.ts b/clients/client-migrationhubstrategy/src/runtimeConfig.ts index 0aaa8a6a6875..2a38ae725f58 100644 --- a/clients/client-migrationhubstrategy/src/runtimeConfig.ts +++ b/clients/client-migrationhubstrategy/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: MigrationHubStrategyClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-mobile/package.json b/clients/client-mobile/package.json index dfb1aed74ae5..c192fa37b5e1 100644 --- a/clients/client-mobile/package.json +++ b/clients/client-mobile/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-mobile/src/runtimeConfig.browser.ts b/clients/client-mobile/src/runtimeConfig.browser.ts index 2b0da5ef58a7..9bb09d901566 100644 --- a/clients/client-mobile/src/runtimeConfig.browser.ts +++ b/clients/client-mobile/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: MobileClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-mobile/src/runtimeConfig.shared.ts b/clients/client-mobile/src/runtimeConfig.shared.ts index 801eaa00514a..130ca3448212 100644 --- a/clients/client-mobile/src/runtimeConfig.shared.ts +++ b/clients/client-mobile/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { MobileClientConfig } from "./MobileClient"; @@ -10,6 +11,8 @@ import { MobileClientConfig } from "./MobileClient"; */ export const getRuntimeConfig = (config: MobileClientConfig) => ({ apiVersion: "2017-07-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-mobile/src/runtimeConfig.ts b/clients/client-mobile/src/runtimeConfig.ts index 11cd92e63e65..d65dee9257f8 100644 --- a/clients/client-mobile/src/runtimeConfig.ts +++ b/clients/client-mobile/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: MobileClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-mq/package.json b/clients/client-mq/package.json index 0db44f4310d0..860ae28b1cb5 100644 --- a/clients/client-mq/package.json +++ b/clients/client-mq/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-mq/src/runtimeConfig.browser.ts b/clients/client-mq/src/runtimeConfig.browser.ts index ee1c775cd443..e3ed528a2a05 100644 --- a/clients/client-mq/src/runtimeConfig.browser.ts +++ b/clients/client-mq/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: MqClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-mq/src/runtimeConfig.shared.ts b/clients/client-mq/src/runtimeConfig.shared.ts index 7322023d5ca5..d9d7609cd634 100644 --- a/clients/client-mq/src/runtimeConfig.shared.ts +++ b/clients/client-mq/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { MqClientConfig } from "./MqClient"; @@ -10,6 +11,8 @@ import { MqClientConfig } from "./MqClient"; */ export const getRuntimeConfig = (config: MqClientConfig) => ({ apiVersion: "2017-11-27", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-mq/src/runtimeConfig.ts b/clients/client-mq/src/runtimeConfig.ts index 0e5b94642009..f6dfa977c744 100644 --- a/clients/client-mq/src/runtimeConfig.ts +++ b/clients/client-mq/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: MqClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-mturk/package.json b/clients/client-mturk/package.json index bed49d37660e..953d4655cce3 100644 --- a/clients/client-mturk/package.json +++ b/clients/client-mturk/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-mturk/src/runtimeConfig.browser.ts b/clients/client-mturk/src/runtimeConfig.browser.ts index 74ba0183d0e0..4fd9027a969a 100644 --- a/clients/client-mturk/src/runtimeConfig.browser.ts +++ b/clients/client-mturk/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: MTurkClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-mturk/src/runtimeConfig.shared.ts b/clients/client-mturk/src/runtimeConfig.shared.ts index ce92ab01f0a5..c21b14dc753e 100644 --- a/clients/client-mturk/src/runtimeConfig.shared.ts +++ b/clients/client-mturk/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { MTurkClientConfig } from "./MTurkClient"; @@ -10,6 +11,8 @@ import { MTurkClientConfig } from "./MTurkClient"; */ export const getRuntimeConfig = (config: MTurkClientConfig) => ({ apiVersion: "2017-01-17", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-mturk/src/runtimeConfig.ts b/clients/client-mturk/src/runtimeConfig.ts index 18a01522c596..fb33001d2063 100644 --- a/clients/client-mturk/src/runtimeConfig.ts +++ b/clients/client-mturk/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: MTurkClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-mwaa/package.json b/clients/client-mwaa/package.json index 87da217cfc2d..4be37b517af4 100644 --- a/clients/client-mwaa/package.json +++ b/clients/client-mwaa/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-mwaa/src/runtimeConfig.browser.ts b/clients/client-mwaa/src/runtimeConfig.browser.ts index 17d08b43ffde..66ee1b949366 100644 --- a/clients/client-mwaa/src/runtimeConfig.browser.ts +++ b/clients/client-mwaa/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: MWAAClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-mwaa/src/runtimeConfig.shared.ts b/clients/client-mwaa/src/runtimeConfig.shared.ts index fe52bdf65c63..6c92380af9c0 100644 --- a/clients/client-mwaa/src/runtimeConfig.shared.ts +++ b/clients/client-mwaa/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { MWAAClientConfig } from "./MWAAClient"; @@ -10,6 +11,8 @@ import { MWAAClientConfig } from "./MWAAClient"; */ export const getRuntimeConfig = (config: MWAAClientConfig) => ({ apiVersion: "2020-07-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-mwaa/src/runtimeConfig.ts b/clients/client-mwaa/src/runtimeConfig.ts index 826cc77f508b..42e67585fc19 100644 --- a/clients/client-mwaa/src/runtimeConfig.ts +++ b/clients/client-mwaa/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: MWAAClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-neptune/package.json b/clients/client-neptune/package.json index 3cee78b6ad03..ed719c3f0924 100644 --- a/clients/client-neptune/package.json +++ b/clients/client-neptune/package.json @@ -42,6 +42,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-neptune/src/runtimeConfig.browser.ts b/clients/client-neptune/src/runtimeConfig.browser.ts index da11f6f96794..e65788453a8a 100644 --- a/clients/client-neptune/src/runtimeConfig.browser.ts +++ b/clients/client-neptune/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: NeptuneClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-neptune/src/runtimeConfig.shared.ts b/clients/client-neptune/src/runtimeConfig.shared.ts index e21634aa64b9..7c7d3737b72e 100644 --- a/clients/client-neptune/src/runtimeConfig.shared.ts +++ b/clients/client-neptune/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { NeptuneClientConfig } from "./NeptuneClient"; @@ -10,6 +11,8 @@ import { NeptuneClientConfig } from "./NeptuneClient"; */ export const getRuntimeConfig = (config: NeptuneClientConfig) => ({ apiVersion: "2014-10-31", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-neptune/src/runtimeConfig.ts b/clients/client-neptune/src/runtimeConfig.ts index c308a97b8994..e4cfc4bc90a1 100644 --- a/clients/client-neptune/src/runtimeConfig.ts +++ b/clients/client-neptune/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: NeptuneClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-network-firewall/package.json b/clients/client-network-firewall/package.json index 8bdd97c4df9b..adc7302a12da 100644 --- a/clients/client-network-firewall/package.json +++ b/clients/client-network-firewall/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-network-firewall/src/runtimeConfig.browser.ts b/clients/client-network-firewall/src/runtimeConfig.browser.ts index 06866bbb297a..38443b6e6b40 100644 --- a/clients/client-network-firewall/src/runtimeConfig.browser.ts +++ b/clients/client-network-firewall/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: NetworkFirewallClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-network-firewall/src/runtimeConfig.shared.ts b/clients/client-network-firewall/src/runtimeConfig.shared.ts index 42d2db585b05..d687a79166e0 100644 --- a/clients/client-network-firewall/src/runtimeConfig.shared.ts +++ b/clients/client-network-firewall/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { NetworkFirewallClientConfig } from "./NetworkFirewallClient"; @@ -10,6 +11,8 @@ import { NetworkFirewallClientConfig } from "./NetworkFirewallClient"; */ export const getRuntimeConfig = (config: NetworkFirewallClientConfig) => ({ apiVersion: "2020-11-12", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-network-firewall/src/runtimeConfig.ts b/clients/client-network-firewall/src/runtimeConfig.ts index 06f28c438884..04181a96c97c 100644 --- a/clients/client-network-firewall/src/runtimeConfig.ts +++ b/clients/client-network-firewall/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: NetworkFirewallClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-networkmanager/package.json b/clients/client-networkmanager/package.json index e3240d5e8bf1..750f2cec643f 100644 --- a/clients/client-networkmanager/package.json +++ b/clients/client-networkmanager/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-networkmanager/src/runtimeConfig.browser.ts b/clients/client-networkmanager/src/runtimeConfig.browser.ts index 94999f09ce8e..607ad9065311 100644 --- a/clients/client-networkmanager/src/runtimeConfig.browser.ts +++ b/clients/client-networkmanager/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: NetworkManagerClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-networkmanager/src/runtimeConfig.shared.ts b/clients/client-networkmanager/src/runtimeConfig.shared.ts index 4ffedf1730dc..84cd52b2705b 100644 --- a/clients/client-networkmanager/src/runtimeConfig.shared.ts +++ b/clients/client-networkmanager/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { NetworkManagerClientConfig } from "./NetworkManagerClient"; @@ -10,6 +11,8 @@ import { NetworkManagerClientConfig } from "./NetworkManagerClient"; */ export const getRuntimeConfig = (config: NetworkManagerClientConfig) => ({ apiVersion: "2019-07-05", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-networkmanager/src/runtimeConfig.ts b/clients/client-networkmanager/src/runtimeConfig.ts index 0ab803945821..091c6c907420 100644 --- a/clients/client-networkmanager/src/runtimeConfig.ts +++ b/clients/client-networkmanager/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: NetworkManagerClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-nimble/package.json b/clients/client-nimble/package.json index 15e54f357846..e71cf01b4f6f 100644 --- a/clients/client-nimble/package.json +++ b/clients/client-nimble/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-nimble/src/runtimeConfig.browser.ts b/clients/client-nimble/src/runtimeConfig.browser.ts index b2d07e9eb1c7..0ab20619af23 100644 --- a/clients/client-nimble/src/runtimeConfig.browser.ts +++ b/clients/client-nimble/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: NimbleClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-nimble/src/runtimeConfig.shared.ts b/clients/client-nimble/src/runtimeConfig.shared.ts index c744d235d9b4..fc042da7606d 100644 --- a/clients/client-nimble/src/runtimeConfig.shared.ts +++ b/clients/client-nimble/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { NimbleClientConfig } from "./NimbleClient"; @@ -10,6 +11,8 @@ import { NimbleClientConfig } from "./NimbleClient"; */ export const getRuntimeConfig = (config: NimbleClientConfig) => ({ apiVersion: "2020-08-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-nimble/src/runtimeConfig.ts b/clients/client-nimble/src/runtimeConfig.ts index 6eec427489cf..e8c4ae015464 100644 --- a/clients/client-nimble/src/runtimeConfig.ts +++ b/clients/client-nimble/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: NimbleClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-opensearch/package.json b/clients/client-opensearch/package.json index 4d86d02ce0f7..a469335f6115 100644 --- a/clients/client-opensearch/package.json +++ b/clients/client-opensearch/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-opensearch/src/runtimeConfig.browser.ts b/clients/client-opensearch/src/runtimeConfig.browser.ts index 4c4d14aaa90a..d79daac5c3a2 100644 --- a/clients/client-opensearch/src/runtimeConfig.browser.ts +++ b/clients/client-opensearch/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: OpenSearchClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-opensearch/src/runtimeConfig.shared.ts b/clients/client-opensearch/src/runtimeConfig.shared.ts index b09987dfd005..2447291d13b7 100644 --- a/clients/client-opensearch/src/runtimeConfig.shared.ts +++ b/clients/client-opensearch/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { OpenSearchClientConfig } from "./OpenSearchClient"; @@ -10,6 +11,8 @@ import { OpenSearchClientConfig } from "./OpenSearchClient"; */ export const getRuntimeConfig = (config: OpenSearchClientConfig) => ({ apiVersion: "2021-01-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-opensearch/src/runtimeConfig.ts b/clients/client-opensearch/src/runtimeConfig.ts index eafa9a86ae87..eee1b599bc06 100644 --- a/clients/client-opensearch/src/runtimeConfig.ts +++ b/clients/client-opensearch/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: OpenSearchClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-opsworks/package.json b/clients/client-opsworks/package.json index 4609d064a91a..ada43ef17364 100644 --- a/clients/client-opsworks/package.json +++ b/clients/client-opsworks/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-opsworks/src/runtimeConfig.browser.ts b/clients/client-opsworks/src/runtimeConfig.browser.ts index 7b1c19f84835..9e2739e3acd6 100644 --- a/clients/client-opsworks/src/runtimeConfig.browser.ts +++ b/clients/client-opsworks/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: OpsWorksClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-opsworks/src/runtimeConfig.shared.ts b/clients/client-opsworks/src/runtimeConfig.shared.ts index 297c723710a1..9158118212aa 100644 --- a/clients/client-opsworks/src/runtimeConfig.shared.ts +++ b/clients/client-opsworks/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { OpsWorksClientConfig } from "./OpsWorksClient"; @@ -10,6 +11,8 @@ import { OpsWorksClientConfig } from "./OpsWorksClient"; */ export const getRuntimeConfig = (config: OpsWorksClientConfig) => ({ apiVersion: "2013-02-18", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-opsworks/src/runtimeConfig.ts b/clients/client-opsworks/src/runtimeConfig.ts index 684addee1e14..6537995dd5b8 100644 --- a/clients/client-opsworks/src/runtimeConfig.ts +++ b/clients/client-opsworks/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: OpsWorksClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-opsworkscm/package.json b/clients/client-opsworkscm/package.json index 165e8f7b0100..28896c0fe3f7 100644 --- a/clients/client-opsworkscm/package.json +++ b/clients/client-opsworkscm/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-opsworkscm/src/runtimeConfig.browser.ts b/clients/client-opsworkscm/src/runtimeConfig.browser.ts index f90f10efb2d5..315fcc3e3c20 100644 --- a/clients/client-opsworkscm/src/runtimeConfig.browser.ts +++ b/clients/client-opsworkscm/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: OpsWorksCMClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-opsworkscm/src/runtimeConfig.shared.ts b/clients/client-opsworkscm/src/runtimeConfig.shared.ts index ed1d9f634f51..0c348a2c1277 100644 --- a/clients/client-opsworkscm/src/runtimeConfig.shared.ts +++ b/clients/client-opsworkscm/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { OpsWorksCMClientConfig } from "./OpsWorksCMClient"; @@ -10,6 +11,8 @@ import { OpsWorksCMClientConfig } from "./OpsWorksCMClient"; */ export const getRuntimeConfig = (config: OpsWorksCMClientConfig) => ({ apiVersion: "2016-11-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-opsworkscm/src/runtimeConfig.ts b/clients/client-opsworkscm/src/runtimeConfig.ts index 35a1fae2efe6..c25e06e767b9 100644 --- a/clients/client-opsworkscm/src/runtimeConfig.ts +++ b/clients/client-opsworkscm/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: OpsWorksCMClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-organizations/package.json b/clients/client-organizations/package.json index 5b13bf7b1e5a..169ba78d7882 100644 --- a/clients/client-organizations/package.json +++ b/clients/client-organizations/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-organizations/src/runtimeConfig.browser.ts b/clients/client-organizations/src/runtimeConfig.browser.ts index 45393d775064..f6755d82b275 100644 --- a/clients/client-organizations/src/runtimeConfig.browser.ts +++ b/clients/client-organizations/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: OrganizationsClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-organizations/src/runtimeConfig.shared.ts b/clients/client-organizations/src/runtimeConfig.shared.ts index 79104dfbddf0..10fd0f95000e 100644 --- a/clients/client-organizations/src/runtimeConfig.shared.ts +++ b/clients/client-organizations/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { OrganizationsClientConfig } from "./OrganizationsClient"; @@ -10,6 +11,8 @@ import { OrganizationsClientConfig } from "./OrganizationsClient"; */ export const getRuntimeConfig = (config: OrganizationsClientConfig) => ({ apiVersion: "2016-11-28", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-organizations/src/runtimeConfig.ts b/clients/client-organizations/src/runtimeConfig.ts index d336c1ccccf5..107aa52736ed 100644 --- a/clients/client-organizations/src/runtimeConfig.ts +++ b/clients/client-organizations/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: OrganizationsClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-outposts/package.json b/clients/client-outposts/package.json index eb9477c1b3f9..526da6ace872 100644 --- a/clients/client-outposts/package.json +++ b/clients/client-outposts/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-outposts/src/runtimeConfig.browser.ts b/clients/client-outposts/src/runtimeConfig.browser.ts index 18f272b35d20..23ee439d25bd 100644 --- a/clients/client-outposts/src/runtimeConfig.browser.ts +++ b/clients/client-outposts/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: OutpostsClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-outposts/src/runtimeConfig.shared.ts b/clients/client-outposts/src/runtimeConfig.shared.ts index 16fcff59cbec..681efc3e4058 100644 --- a/clients/client-outposts/src/runtimeConfig.shared.ts +++ b/clients/client-outposts/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { OutpostsClientConfig } from "./OutpostsClient"; @@ -10,6 +11,8 @@ import { OutpostsClientConfig } from "./OutpostsClient"; */ export const getRuntimeConfig = (config: OutpostsClientConfig) => ({ apiVersion: "2019-12-03", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-outposts/src/runtimeConfig.ts b/clients/client-outposts/src/runtimeConfig.ts index 60c49d2ebba5..81c61a9dadce 100644 --- a/clients/client-outposts/src/runtimeConfig.ts +++ b/clients/client-outposts/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: OutpostsClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-panorama/package.json b/clients/client-panorama/package.json index 90746975d041..b625ba7ecb54 100644 --- a/clients/client-panorama/package.json +++ b/clients/client-panorama/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-panorama/src/runtimeConfig.browser.ts b/clients/client-panorama/src/runtimeConfig.browser.ts index 5e9627920480..dfec9f85b889 100644 --- a/clients/client-panorama/src/runtimeConfig.browser.ts +++ b/clients/client-panorama/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: PanoramaClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-panorama/src/runtimeConfig.shared.ts b/clients/client-panorama/src/runtimeConfig.shared.ts index 19966519fb70..197faccd8188 100644 --- a/clients/client-panorama/src/runtimeConfig.shared.ts +++ b/clients/client-panorama/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { PanoramaClientConfig } from "./PanoramaClient"; @@ -10,6 +11,8 @@ import { PanoramaClientConfig } from "./PanoramaClient"; */ export const getRuntimeConfig = (config: PanoramaClientConfig) => ({ apiVersion: "2019-07-24", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-panorama/src/runtimeConfig.ts b/clients/client-panorama/src/runtimeConfig.ts index 20b1bd159703..7db1caabd14a 100644 --- a/clients/client-panorama/src/runtimeConfig.ts +++ b/clients/client-panorama/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: PanoramaClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-personalize-events/package.json b/clients/client-personalize-events/package.json index ba42c119c841..bf1e6d80cb3b 100644 --- a/clients/client-personalize-events/package.json +++ b/clients/client-personalize-events/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-personalize-events/src/runtimeConfig.browser.ts b/clients/client-personalize-events/src/runtimeConfig.browser.ts index 5b6572638f9c..3ab94a7cc6cc 100644 --- a/clients/client-personalize-events/src/runtimeConfig.browser.ts +++ b/clients/client-personalize-events/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: PersonalizeEventsClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-personalize-events/src/runtimeConfig.shared.ts b/clients/client-personalize-events/src/runtimeConfig.shared.ts index 224a558da186..09eede7879ca 100644 --- a/clients/client-personalize-events/src/runtimeConfig.shared.ts +++ b/clients/client-personalize-events/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { PersonalizeEventsClientConfig } from "./PersonalizeEventsClient"; @@ -10,6 +11,8 @@ import { PersonalizeEventsClientConfig } from "./PersonalizeEventsClient"; */ export const getRuntimeConfig = (config: PersonalizeEventsClientConfig) => ({ apiVersion: "2018-03-22", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-personalize-events/src/runtimeConfig.ts b/clients/client-personalize-events/src/runtimeConfig.ts index 94360ecac70a..40faeda9998d 100644 --- a/clients/client-personalize-events/src/runtimeConfig.ts +++ b/clients/client-personalize-events/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: PersonalizeEventsClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-personalize-runtime/package.json b/clients/client-personalize-runtime/package.json index 5a2f0b68bb80..6ac43d5b7e7b 100644 --- a/clients/client-personalize-runtime/package.json +++ b/clients/client-personalize-runtime/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-personalize-runtime/src/runtimeConfig.browser.ts b/clients/client-personalize-runtime/src/runtimeConfig.browser.ts index 432b3cd71f60..e1a33d1720df 100644 --- a/clients/client-personalize-runtime/src/runtimeConfig.browser.ts +++ b/clients/client-personalize-runtime/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: PersonalizeRuntimeClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-personalize-runtime/src/runtimeConfig.shared.ts b/clients/client-personalize-runtime/src/runtimeConfig.shared.ts index 709a0f1b30be..33b103eca0fd 100644 --- a/clients/client-personalize-runtime/src/runtimeConfig.shared.ts +++ b/clients/client-personalize-runtime/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { PersonalizeRuntimeClientConfig } from "./PersonalizeRuntimeClient"; @@ -10,6 +11,8 @@ import { PersonalizeRuntimeClientConfig } from "./PersonalizeRuntimeClient"; */ export const getRuntimeConfig = (config: PersonalizeRuntimeClientConfig) => ({ apiVersion: "2018-05-22", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-personalize-runtime/src/runtimeConfig.ts b/clients/client-personalize-runtime/src/runtimeConfig.ts index fd2123af0cf3..52ef8843dbc2 100644 --- a/clients/client-personalize-runtime/src/runtimeConfig.ts +++ b/clients/client-personalize-runtime/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: PersonalizeRuntimeClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-personalize/package.json b/clients/client-personalize/package.json index ef2465799eb2..56aa3249730a 100644 --- a/clients/client-personalize/package.json +++ b/clients/client-personalize/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-personalize/src/runtimeConfig.browser.ts b/clients/client-personalize/src/runtimeConfig.browser.ts index fbcce35f5465..901c428fd02e 100644 --- a/clients/client-personalize/src/runtimeConfig.browser.ts +++ b/clients/client-personalize/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: PersonalizeClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-personalize/src/runtimeConfig.shared.ts b/clients/client-personalize/src/runtimeConfig.shared.ts index f32ffbfcfcb1..6b0a4fa0399e 100644 --- a/clients/client-personalize/src/runtimeConfig.shared.ts +++ b/clients/client-personalize/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { PersonalizeClientConfig } from "./PersonalizeClient"; @@ -10,6 +11,8 @@ import { PersonalizeClientConfig } from "./PersonalizeClient"; */ export const getRuntimeConfig = (config: PersonalizeClientConfig) => ({ apiVersion: "2018-05-22", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-personalize/src/runtimeConfig.ts b/clients/client-personalize/src/runtimeConfig.ts index 8b411215eef3..e024c04bb7a3 100644 --- a/clients/client-personalize/src/runtimeConfig.ts +++ b/clients/client-personalize/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: PersonalizeClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-pi/package.json b/clients/client-pi/package.json index c8deae4e2cb2..f2ff68a37bc3 100644 --- a/clients/client-pi/package.json +++ b/clients/client-pi/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-pi/src/runtimeConfig.browser.ts b/clients/client-pi/src/runtimeConfig.browser.ts index c11bf34e7415..88d2c3a618c0 100644 --- a/clients/client-pi/src/runtimeConfig.browser.ts +++ b/clients/client-pi/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: PIClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-pi/src/runtimeConfig.shared.ts b/clients/client-pi/src/runtimeConfig.shared.ts index e65fe6c7f034..1d7ef7c9ddf2 100644 --- a/clients/client-pi/src/runtimeConfig.shared.ts +++ b/clients/client-pi/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { PIClientConfig } from "./PIClient"; @@ -10,6 +11,8 @@ import { PIClientConfig } from "./PIClient"; */ export const getRuntimeConfig = (config: PIClientConfig) => ({ apiVersion: "2018-02-27", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-pi/src/runtimeConfig.ts b/clients/client-pi/src/runtimeConfig.ts index 4cc755aa52dd..ca4a69de916a 100644 --- a/clients/client-pi/src/runtimeConfig.ts +++ b/clients/client-pi/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: PIClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-pinpoint-email/package.json b/clients/client-pinpoint-email/package.json index bcac1ac2a08d..a77f998e633d 100644 --- a/clients/client-pinpoint-email/package.json +++ b/clients/client-pinpoint-email/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-pinpoint-email/src/runtimeConfig.browser.ts b/clients/client-pinpoint-email/src/runtimeConfig.browser.ts index a7ec91003ffb..99c33071316d 100644 --- a/clients/client-pinpoint-email/src/runtimeConfig.browser.ts +++ b/clients/client-pinpoint-email/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: PinpointEmailClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-pinpoint-email/src/runtimeConfig.shared.ts b/clients/client-pinpoint-email/src/runtimeConfig.shared.ts index c415a0f28477..0b92df257c52 100644 --- a/clients/client-pinpoint-email/src/runtimeConfig.shared.ts +++ b/clients/client-pinpoint-email/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { PinpointEmailClientConfig } from "./PinpointEmailClient"; @@ -10,6 +11,8 @@ import { PinpointEmailClientConfig } from "./PinpointEmailClient"; */ export const getRuntimeConfig = (config: PinpointEmailClientConfig) => ({ apiVersion: "2018-07-26", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-pinpoint-email/src/runtimeConfig.ts b/clients/client-pinpoint-email/src/runtimeConfig.ts index df1589200be7..ffb37bdf68d0 100644 --- a/clients/client-pinpoint-email/src/runtimeConfig.ts +++ b/clients/client-pinpoint-email/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: PinpointEmailClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-pinpoint-sms-voice-v2/package.json b/clients/client-pinpoint-sms-voice-v2/package.json index 8f594ade283f..a8d4c2ccb8f4 100644 --- a/clients/client-pinpoint-sms-voice-v2/package.json +++ b/clients/client-pinpoint-sms-voice-v2/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-pinpoint-sms-voice-v2/src/runtimeConfig.browser.ts b/clients/client-pinpoint-sms-voice-v2/src/runtimeConfig.browser.ts index f40f27a12870..e1cbcd9cfc22 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/runtimeConfig.browser.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: PinpointSMSVoiceV2ClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-pinpoint-sms-voice-v2/src/runtimeConfig.shared.ts b/clients/client-pinpoint-sms-voice-v2/src/runtimeConfig.shared.ts index aab80635b72c..42687098bbfa 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/runtimeConfig.shared.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { PinpointSMSVoiceV2ClientConfig } from "./PinpointSMSVoiceV2Client"; @@ -10,6 +11,8 @@ import { PinpointSMSVoiceV2ClientConfig } from "./PinpointSMSVoiceV2Client"; */ export const getRuntimeConfig = (config: PinpointSMSVoiceV2ClientConfig) => ({ apiVersion: "2022-03-31", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-pinpoint-sms-voice-v2/src/runtimeConfig.ts b/clients/client-pinpoint-sms-voice-v2/src/runtimeConfig.ts index 4cc77e2d6f96..521d913ad3c2 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/runtimeConfig.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: PinpointSMSVoiceV2ClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-pinpoint-sms-voice/package.json b/clients/client-pinpoint-sms-voice/package.json index c6cfbedadf66..0e16de33be9a 100644 --- a/clients/client-pinpoint-sms-voice/package.json +++ b/clients/client-pinpoint-sms-voice/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-pinpoint-sms-voice/src/runtimeConfig.browser.ts b/clients/client-pinpoint-sms-voice/src/runtimeConfig.browser.ts index 6937d66dbc80..60c2fd5b5276 100644 --- a/clients/client-pinpoint-sms-voice/src/runtimeConfig.browser.ts +++ b/clients/client-pinpoint-sms-voice/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: PinpointSMSVoiceClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-pinpoint-sms-voice/src/runtimeConfig.shared.ts b/clients/client-pinpoint-sms-voice/src/runtimeConfig.shared.ts index b98006e49ce0..330d6ad7a595 100644 --- a/clients/client-pinpoint-sms-voice/src/runtimeConfig.shared.ts +++ b/clients/client-pinpoint-sms-voice/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { PinpointSMSVoiceClientConfig } from "./PinpointSMSVoiceClient"; @@ -10,6 +11,8 @@ import { PinpointSMSVoiceClientConfig } from "./PinpointSMSVoiceClient"; */ export const getRuntimeConfig = (config: PinpointSMSVoiceClientConfig) => ({ apiVersion: "2018-09-05", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-pinpoint-sms-voice/src/runtimeConfig.ts b/clients/client-pinpoint-sms-voice/src/runtimeConfig.ts index 5c027990f2ba..9392434554b7 100644 --- a/clients/client-pinpoint-sms-voice/src/runtimeConfig.ts +++ b/clients/client-pinpoint-sms-voice/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: PinpointSMSVoiceClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-pinpoint/package.json b/clients/client-pinpoint/package.json index 78fee1c073fe..eba2b9325de1 100644 --- a/clients/client-pinpoint/package.json +++ b/clients/client-pinpoint/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-pinpoint/src/runtimeConfig.browser.ts b/clients/client-pinpoint/src/runtimeConfig.browser.ts index 7b70c1bd97c8..1e2a2f1cbf49 100644 --- a/clients/client-pinpoint/src/runtimeConfig.browser.ts +++ b/clients/client-pinpoint/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: PinpointClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-pinpoint/src/runtimeConfig.shared.ts b/clients/client-pinpoint/src/runtimeConfig.shared.ts index dfda0eafab68..816eb634ea08 100644 --- a/clients/client-pinpoint/src/runtimeConfig.shared.ts +++ b/clients/client-pinpoint/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { PinpointClientConfig } from "./PinpointClient"; @@ -10,6 +11,8 @@ import { PinpointClientConfig } from "./PinpointClient"; */ export const getRuntimeConfig = (config: PinpointClientConfig) => ({ apiVersion: "2016-12-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-pinpoint/src/runtimeConfig.ts b/clients/client-pinpoint/src/runtimeConfig.ts index de8aebbbf5ba..3fdecd3157ba 100644 --- a/clients/client-pinpoint/src/runtimeConfig.ts +++ b/clients/client-pinpoint/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: PinpointClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-polly/package.json b/clients/client-polly/package.json index 1e943f6e6520..9b5898d5273a 100644 --- a/clients/client-polly/package.json +++ b/clients/client-polly/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-polly/src/runtimeConfig.browser.ts b/clients/client-polly/src/runtimeConfig.browser.ts index d77f8c0f5d4a..da05d9ed1cf7 100644 --- a/clients/client-polly/src/runtimeConfig.browser.ts +++ b/clients/client-polly/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { sdkStreamMixin } from "@aws-sdk/util-stream-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; @@ -29,8 +28,6 @@ export const getRuntimeConfig = (config: PollyClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-polly/src/runtimeConfig.shared.ts b/clients/client-polly/src/runtimeConfig.shared.ts index df05afa2d3ea..626af13a9634 100644 --- a/clients/client-polly/src/runtimeConfig.shared.ts +++ b/clients/client-polly/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { PollyClientConfig } from "./PollyClient"; @@ -10,6 +11,8 @@ import { PollyClientConfig } from "./PollyClient"; */ export const getRuntimeConfig = (config: PollyClientConfig) => ({ apiVersion: "2016-06-10", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-polly/src/runtimeConfig.ts b/clients/client-polly/src/runtimeConfig.ts index c82525387486..08b14977e52e 100644 --- a/clients/client-polly/src/runtimeConfig.ts +++ b/clients/client-polly/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { sdkStreamMixin } from "@aws-sdk/util-stream-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -42,8 +41,6 @@ export const getRuntimeConfig = (config: PollyClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-pricing/package.json b/clients/client-pricing/package.json index edeb1602e5f3..017525d9f2cd 100644 --- a/clients/client-pricing/package.json +++ b/clients/client-pricing/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-pricing/src/runtimeConfig.browser.ts b/clients/client-pricing/src/runtimeConfig.browser.ts index 7cfa2012b724..a44ec3ea3d30 100644 --- a/clients/client-pricing/src/runtimeConfig.browser.ts +++ b/clients/client-pricing/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: PricingClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-pricing/src/runtimeConfig.shared.ts b/clients/client-pricing/src/runtimeConfig.shared.ts index c5a9cfcac114..00b180a60934 100644 --- a/clients/client-pricing/src/runtimeConfig.shared.ts +++ b/clients/client-pricing/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { PricingClientConfig } from "./PricingClient"; @@ -10,6 +11,8 @@ import { PricingClientConfig } from "./PricingClient"; */ export const getRuntimeConfig = (config: PricingClientConfig) => ({ apiVersion: "2017-10-15", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-pricing/src/runtimeConfig.ts b/clients/client-pricing/src/runtimeConfig.ts index 010f703b456b..7d2888394056 100644 --- a/clients/client-pricing/src/runtimeConfig.ts +++ b/clients/client-pricing/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: PricingClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-privatenetworks/package.json b/clients/client-privatenetworks/package.json index fe2032d7632f..1e142dad3fe2 100644 --- a/clients/client-privatenetworks/package.json +++ b/clients/client-privatenetworks/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-privatenetworks/src/runtimeConfig.browser.ts b/clients/client-privatenetworks/src/runtimeConfig.browser.ts index 4e49aa4ff46b..342613bfe796 100644 --- a/clients/client-privatenetworks/src/runtimeConfig.browser.ts +++ b/clients/client-privatenetworks/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: PrivateNetworksClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-privatenetworks/src/runtimeConfig.shared.ts b/clients/client-privatenetworks/src/runtimeConfig.shared.ts index afa920088c0f..6e99a2301131 100644 --- a/clients/client-privatenetworks/src/runtimeConfig.shared.ts +++ b/clients/client-privatenetworks/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { PrivateNetworksClientConfig } from "./PrivateNetworksClient"; @@ -10,6 +11,8 @@ import { PrivateNetworksClientConfig } from "./PrivateNetworksClient"; */ export const getRuntimeConfig = (config: PrivateNetworksClientConfig) => ({ apiVersion: "2021-12-03", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-privatenetworks/src/runtimeConfig.ts b/clients/client-privatenetworks/src/runtimeConfig.ts index 913fc9cc612d..75a6dde0faa6 100644 --- a/clients/client-privatenetworks/src/runtimeConfig.ts +++ b/clients/client-privatenetworks/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: PrivateNetworksClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-proton/package.json b/clients/client-proton/package.json index d6bbcf63d866..55a45ed00cf8 100644 --- a/clients/client-proton/package.json +++ b/clients/client-proton/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-proton/src/runtimeConfig.browser.ts b/clients/client-proton/src/runtimeConfig.browser.ts index b77f666b760b..7083346d3e06 100644 --- a/clients/client-proton/src/runtimeConfig.browser.ts +++ b/clients/client-proton/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: ProtonClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-proton/src/runtimeConfig.shared.ts b/clients/client-proton/src/runtimeConfig.shared.ts index 6ed4fc0f4328..044e9e5c1ea7 100644 --- a/clients/client-proton/src/runtimeConfig.shared.ts +++ b/clients/client-proton/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { ProtonClientConfig } from "./ProtonClient"; @@ -10,6 +11,8 @@ import { ProtonClientConfig } from "./ProtonClient"; */ export const getRuntimeConfig = (config: ProtonClientConfig) => ({ apiVersion: "2020-07-20", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-proton/src/runtimeConfig.ts b/clients/client-proton/src/runtimeConfig.ts index 6a88d9e7b2dc..170c7b91ea33 100644 --- a/clients/client-proton/src/runtimeConfig.ts +++ b/clients/client-proton/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: ProtonClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-qldb-session/package.json b/clients/client-qldb-session/package.json index 2616b1b89092..46501978b4a2 100644 --- a/clients/client-qldb-session/package.json +++ b/clients/client-qldb-session/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-qldb-session/src/runtimeConfig.browser.ts b/clients/client-qldb-session/src/runtimeConfig.browser.ts index 35c8459553a1..de3a6f7ebe52 100644 --- a/clients/client-qldb-session/src/runtimeConfig.browser.ts +++ b/clients/client-qldb-session/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: QLDBSessionClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-qldb-session/src/runtimeConfig.shared.ts b/clients/client-qldb-session/src/runtimeConfig.shared.ts index 6b0c992cfb1c..aa26734d9702 100644 --- a/clients/client-qldb-session/src/runtimeConfig.shared.ts +++ b/clients/client-qldb-session/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { QLDBSessionClientConfig } from "./QLDBSessionClient"; @@ -10,6 +11,8 @@ import { QLDBSessionClientConfig } from "./QLDBSessionClient"; */ export const getRuntimeConfig = (config: QLDBSessionClientConfig) => ({ apiVersion: "2019-07-11", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-qldb-session/src/runtimeConfig.ts b/clients/client-qldb-session/src/runtimeConfig.ts index e72dfa7c84ea..d6794433d3b4 100644 --- a/clients/client-qldb-session/src/runtimeConfig.ts +++ b/clients/client-qldb-session/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: QLDBSessionClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-qldb/package.json b/clients/client-qldb/package.json index bf9c92c9a68b..57c97765e5c1 100644 --- a/clients/client-qldb/package.json +++ b/clients/client-qldb/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-qldb/src/runtimeConfig.browser.ts b/clients/client-qldb/src/runtimeConfig.browser.ts index 2370db4881a3..35e238a83617 100644 --- a/clients/client-qldb/src/runtimeConfig.browser.ts +++ b/clients/client-qldb/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: QLDBClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-qldb/src/runtimeConfig.shared.ts b/clients/client-qldb/src/runtimeConfig.shared.ts index 7ab24f5395e3..234c7866d5c9 100644 --- a/clients/client-qldb/src/runtimeConfig.shared.ts +++ b/clients/client-qldb/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { QLDBClientConfig } from "./QLDBClient"; @@ -10,6 +11,8 @@ import { QLDBClientConfig } from "./QLDBClient"; */ export const getRuntimeConfig = (config: QLDBClientConfig) => ({ apiVersion: "2019-01-02", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-qldb/src/runtimeConfig.ts b/clients/client-qldb/src/runtimeConfig.ts index c4741b731fc7..a5dd92fbac5d 100644 --- a/clients/client-qldb/src/runtimeConfig.ts +++ b/clients/client-qldb/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: QLDBClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-quicksight/package.json b/clients/client-quicksight/package.json index c4828061ed37..9303f8c7255a 100644 --- a/clients/client-quicksight/package.json +++ b/clients/client-quicksight/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-quicksight/src/runtimeConfig.browser.ts b/clients/client-quicksight/src/runtimeConfig.browser.ts index a754bb4a1b53..2801f21909d7 100644 --- a/clients/client-quicksight/src/runtimeConfig.browser.ts +++ b/clients/client-quicksight/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: QuickSightClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-quicksight/src/runtimeConfig.shared.ts b/clients/client-quicksight/src/runtimeConfig.shared.ts index e3ef674bef92..ad74dfabafb1 100644 --- a/clients/client-quicksight/src/runtimeConfig.shared.ts +++ b/clients/client-quicksight/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { QuickSightClientConfig } from "./QuickSightClient"; @@ -10,6 +11,8 @@ import { QuickSightClientConfig } from "./QuickSightClient"; */ export const getRuntimeConfig = (config: QuickSightClientConfig) => ({ apiVersion: "2018-04-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-quicksight/src/runtimeConfig.ts b/clients/client-quicksight/src/runtimeConfig.ts index d4ddbf5c5714..1041fba64b44 100644 --- a/clients/client-quicksight/src/runtimeConfig.ts +++ b/clients/client-quicksight/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: QuickSightClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-ram/package.json b/clients/client-ram/package.json index 3e29ce6f9262..48e4f34099f5 100644 --- a/clients/client-ram/package.json +++ b/clients/client-ram/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-ram/src/runtimeConfig.browser.ts b/clients/client-ram/src/runtimeConfig.browser.ts index 77c35bdd6f79..56725b232e5c 100644 --- a/clients/client-ram/src/runtimeConfig.browser.ts +++ b/clients/client-ram/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: RAMClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-ram/src/runtimeConfig.shared.ts b/clients/client-ram/src/runtimeConfig.shared.ts index 9afcf6b41fe6..1cfd3422dc5b 100644 --- a/clients/client-ram/src/runtimeConfig.shared.ts +++ b/clients/client-ram/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { RAMClientConfig } from "./RAMClient"; @@ -10,6 +11,8 @@ import { RAMClientConfig } from "./RAMClient"; */ export const getRuntimeConfig = (config: RAMClientConfig) => ({ apiVersion: "2018-01-04", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-ram/src/runtimeConfig.ts b/clients/client-ram/src/runtimeConfig.ts index ffa7b0581d8b..48f7c1258abe 100644 --- a/clients/client-ram/src/runtimeConfig.ts +++ b/clients/client-ram/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: RAMClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-rbin/package.json b/clients/client-rbin/package.json index a949fa7ac290..a60fef9c3b37 100644 --- a/clients/client-rbin/package.json +++ b/clients/client-rbin/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-rbin/src/runtimeConfig.browser.ts b/clients/client-rbin/src/runtimeConfig.browser.ts index b2e2dc60924f..bd5b86e024d0 100644 --- a/clients/client-rbin/src/runtimeConfig.browser.ts +++ b/clients/client-rbin/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: RbinClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-rbin/src/runtimeConfig.shared.ts b/clients/client-rbin/src/runtimeConfig.shared.ts index d7575646d824..32eb5a7c36d3 100644 --- a/clients/client-rbin/src/runtimeConfig.shared.ts +++ b/clients/client-rbin/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { RbinClientConfig } from "./RbinClient"; @@ -10,6 +11,8 @@ import { RbinClientConfig } from "./RbinClient"; */ export const getRuntimeConfig = (config: RbinClientConfig) => ({ apiVersion: "2021-06-15", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-rbin/src/runtimeConfig.ts b/clients/client-rbin/src/runtimeConfig.ts index 1e2bcb287040..7daedca14dda 100644 --- a/clients/client-rbin/src/runtimeConfig.ts +++ b/clients/client-rbin/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: RbinClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-rds-data/package.json b/clients/client-rds-data/package.json index 6671777014f6..d6472472a53d 100644 --- a/clients/client-rds-data/package.json +++ b/clients/client-rds-data/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-rds-data/src/runtimeConfig.browser.ts b/clients/client-rds-data/src/runtimeConfig.browser.ts index b455d6ce5296..7d20696f9dd3 100644 --- a/clients/client-rds-data/src/runtimeConfig.browser.ts +++ b/clients/client-rds-data/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: RDSDataClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-rds-data/src/runtimeConfig.shared.ts b/clients/client-rds-data/src/runtimeConfig.shared.ts index 1372096d7b80..a9b89a6fe75d 100644 --- a/clients/client-rds-data/src/runtimeConfig.shared.ts +++ b/clients/client-rds-data/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { RDSDataClientConfig } from "./RDSDataClient"; @@ -10,6 +11,8 @@ import { RDSDataClientConfig } from "./RDSDataClient"; */ export const getRuntimeConfig = (config: RDSDataClientConfig) => ({ apiVersion: "2018-08-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-rds-data/src/runtimeConfig.ts b/clients/client-rds-data/src/runtimeConfig.ts index 3cc5523f09ed..67b59a092b58 100644 --- a/clients/client-rds-data/src/runtimeConfig.ts +++ b/clients/client-rds-data/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: RDSDataClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-rds/package.json b/clients/client-rds/package.json index 495dcc6a8aee..89d353dc1150 100644 --- a/clients/client-rds/package.json +++ b/clients/client-rds/package.json @@ -42,6 +42,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-rds/src/runtimeConfig.browser.ts b/clients/client-rds/src/runtimeConfig.browser.ts index 09a1cd47c3bd..40f89431dcee 100644 --- a/clients/client-rds/src/runtimeConfig.browser.ts +++ b/clients/client-rds/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: RDSClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-rds/src/runtimeConfig.shared.ts b/clients/client-rds/src/runtimeConfig.shared.ts index 5a45ef29aa97..5e96b6ae42cb 100644 --- a/clients/client-rds/src/runtimeConfig.shared.ts +++ b/clients/client-rds/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { RDSClientConfig } from "./RDSClient"; @@ -10,6 +11,8 @@ import { RDSClientConfig } from "./RDSClient"; */ export const getRuntimeConfig = (config: RDSClientConfig) => ({ apiVersion: "2014-10-31", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-rds/src/runtimeConfig.ts b/clients/client-rds/src/runtimeConfig.ts index a2c800da73d5..042023a0b4db 100644 --- a/clients/client-rds/src/runtimeConfig.ts +++ b/clients/client-rds/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: RDSClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-redshift-data/package.json b/clients/client-redshift-data/package.json index bc7fbbff23cb..c994376315b6 100644 --- a/clients/client-redshift-data/package.json +++ b/clients/client-redshift-data/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-redshift-data/src/runtimeConfig.browser.ts b/clients/client-redshift-data/src/runtimeConfig.browser.ts index c885562b19fe..8e76b3bbba63 100644 --- a/clients/client-redshift-data/src/runtimeConfig.browser.ts +++ b/clients/client-redshift-data/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: RedshiftDataClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-redshift-data/src/runtimeConfig.shared.ts b/clients/client-redshift-data/src/runtimeConfig.shared.ts index ad9063fad9da..b9612ef3523c 100644 --- a/clients/client-redshift-data/src/runtimeConfig.shared.ts +++ b/clients/client-redshift-data/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { RedshiftDataClientConfig } from "./RedshiftDataClient"; @@ -10,6 +11,8 @@ import { RedshiftDataClientConfig } from "./RedshiftDataClient"; */ export const getRuntimeConfig = (config: RedshiftDataClientConfig) => ({ apiVersion: "2019-12-20", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-redshift-data/src/runtimeConfig.ts b/clients/client-redshift-data/src/runtimeConfig.ts index 781b6a885305..cfbf12ac4dc0 100644 --- a/clients/client-redshift-data/src/runtimeConfig.ts +++ b/clients/client-redshift-data/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: RedshiftDataClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-redshift-serverless/package.json b/clients/client-redshift-serverless/package.json index 54b0909927e9..3bd5b341e068 100644 --- a/clients/client-redshift-serverless/package.json +++ b/clients/client-redshift-serverless/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-redshift-serverless/src/runtimeConfig.browser.ts b/clients/client-redshift-serverless/src/runtimeConfig.browser.ts index ed1bf2b4bd24..8f27c1718164 100644 --- a/clients/client-redshift-serverless/src/runtimeConfig.browser.ts +++ b/clients/client-redshift-serverless/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: RedshiftServerlessClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-redshift-serverless/src/runtimeConfig.shared.ts b/clients/client-redshift-serverless/src/runtimeConfig.shared.ts index 3099df9a2c57..f24e94d169d6 100644 --- a/clients/client-redshift-serverless/src/runtimeConfig.shared.ts +++ b/clients/client-redshift-serverless/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { RedshiftServerlessClientConfig } from "./RedshiftServerlessClient"; @@ -10,6 +11,8 @@ import { RedshiftServerlessClientConfig } from "./RedshiftServerlessClient"; */ export const getRuntimeConfig = (config: RedshiftServerlessClientConfig) => ({ apiVersion: "2021-04-21", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-redshift-serverless/src/runtimeConfig.ts b/clients/client-redshift-serverless/src/runtimeConfig.ts index e6f4b570cf94..5f1d100e268d 100644 --- a/clients/client-redshift-serverless/src/runtimeConfig.ts +++ b/clients/client-redshift-serverless/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: RedshiftServerlessClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-redshift/package.json b/clients/client-redshift/package.json index 3dd344be7e93..3934b6647412 100644 --- a/clients/client-redshift/package.json +++ b/clients/client-redshift/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-redshift/src/runtimeConfig.browser.ts b/clients/client-redshift/src/runtimeConfig.browser.ts index ce3cf167a088..ee45de1056ed 100644 --- a/clients/client-redshift/src/runtimeConfig.browser.ts +++ b/clients/client-redshift/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: RedshiftClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-redshift/src/runtimeConfig.shared.ts b/clients/client-redshift/src/runtimeConfig.shared.ts index 960296e25ce2..ab5f2437b5dc 100644 --- a/clients/client-redshift/src/runtimeConfig.shared.ts +++ b/clients/client-redshift/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { RedshiftClientConfig } from "./RedshiftClient"; @@ -10,6 +11,8 @@ import { RedshiftClientConfig } from "./RedshiftClient"; */ export const getRuntimeConfig = (config: RedshiftClientConfig) => ({ apiVersion: "2012-12-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-redshift/src/runtimeConfig.ts b/clients/client-redshift/src/runtimeConfig.ts index 3fda78f48454..18f309a36ce5 100644 --- a/clients/client-redshift/src/runtimeConfig.ts +++ b/clients/client-redshift/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: RedshiftClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-rekognition/package.json b/clients/client-rekognition/package.json index 5b627a66eda6..1b29508b4e12 100644 --- a/clients/client-rekognition/package.json +++ b/clients/client-rekognition/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-rekognition/src/runtimeConfig.browser.ts b/clients/client-rekognition/src/runtimeConfig.browser.ts index d1374d9fa753..f9f52034c4ce 100644 --- a/clients/client-rekognition/src/runtimeConfig.browser.ts +++ b/clients/client-rekognition/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: RekognitionClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-rekognition/src/runtimeConfig.shared.ts b/clients/client-rekognition/src/runtimeConfig.shared.ts index 0213233853a7..8b4bb6e2cad2 100644 --- a/clients/client-rekognition/src/runtimeConfig.shared.ts +++ b/clients/client-rekognition/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { RekognitionClientConfig } from "./RekognitionClient"; @@ -10,6 +11,8 @@ import { RekognitionClientConfig } from "./RekognitionClient"; */ export const getRuntimeConfig = (config: RekognitionClientConfig) => ({ apiVersion: "2016-06-27", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-rekognition/src/runtimeConfig.ts b/clients/client-rekognition/src/runtimeConfig.ts index 5981ef3d351d..ebcd732bc4f6 100644 --- a/clients/client-rekognition/src/runtimeConfig.ts +++ b/clients/client-rekognition/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: RekognitionClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-resiliencehub/package.json b/clients/client-resiliencehub/package.json index 33e4221d7555..f8269f9f434c 100644 --- a/clients/client-resiliencehub/package.json +++ b/clients/client-resiliencehub/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-resiliencehub/src/runtimeConfig.browser.ts b/clients/client-resiliencehub/src/runtimeConfig.browser.ts index 858f417d49a1..31582483ea48 100644 --- a/clients/client-resiliencehub/src/runtimeConfig.browser.ts +++ b/clients/client-resiliencehub/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: ResiliencehubClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-resiliencehub/src/runtimeConfig.shared.ts b/clients/client-resiliencehub/src/runtimeConfig.shared.ts index accb5d2c9888..d75d58a0120f 100644 --- a/clients/client-resiliencehub/src/runtimeConfig.shared.ts +++ b/clients/client-resiliencehub/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { ResiliencehubClientConfig } from "./ResiliencehubClient"; @@ -10,6 +11,8 @@ import { ResiliencehubClientConfig } from "./ResiliencehubClient"; */ export const getRuntimeConfig = (config: ResiliencehubClientConfig) => ({ apiVersion: "2020-04-30", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-resiliencehub/src/runtimeConfig.ts b/clients/client-resiliencehub/src/runtimeConfig.ts index 606584e87c5c..df361090cb97 100644 --- a/clients/client-resiliencehub/src/runtimeConfig.ts +++ b/clients/client-resiliencehub/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: ResiliencehubClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-resource-groups-tagging-api/package.json b/clients/client-resource-groups-tagging-api/package.json index fa9ae4abec22..9133b15b34ca 100644 --- a/clients/client-resource-groups-tagging-api/package.json +++ b/clients/client-resource-groups-tagging-api/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-resource-groups-tagging-api/src/runtimeConfig.browser.ts b/clients/client-resource-groups-tagging-api/src/runtimeConfig.browser.ts index b91fa70ccc99..f2b287ad2b5e 100644 --- a/clients/client-resource-groups-tagging-api/src/runtimeConfig.browser.ts +++ b/clients/client-resource-groups-tagging-api/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: ResourceGroupsTaggingAPIClientConfig) = ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-resource-groups-tagging-api/src/runtimeConfig.shared.ts b/clients/client-resource-groups-tagging-api/src/runtimeConfig.shared.ts index 0d58fd3fbc97..947684bdcee0 100644 --- a/clients/client-resource-groups-tagging-api/src/runtimeConfig.shared.ts +++ b/clients/client-resource-groups-tagging-api/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { ResourceGroupsTaggingAPIClientConfig } from "./ResourceGroupsTaggingAPIClient"; @@ -10,6 +11,8 @@ import { ResourceGroupsTaggingAPIClientConfig } from "./ResourceGroupsTaggingAPI */ export const getRuntimeConfig = (config: ResourceGroupsTaggingAPIClientConfig) => ({ apiVersion: "2017-01-26", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-resource-groups-tagging-api/src/runtimeConfig.ts b/clients/client-resource-groups-tagging-api/src/runtimeConfig.ts index 59cb890496da..efd459c22b7b 100644 --- a/clients/client-resource-groups-tagging-api/src/runtimeConfig.ts +++ b/clients/client-resource-groups-tagging-api/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: ResourceGroupsTaggingAPIClientConfig) = ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-resource-groups/package.json b/clients/client-resource-groups/package.json index 74a24216b2e4..739ce8f2ef38 100644 --- a/clients/client-resource-groups/package.json +++ b/clients/client-resource-groups/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-resource-groups/src/runtimeConfig.browser.ts b/clients/client-resource-groups/src/runtimeConfig.browser.ts index 078803456a5d..e1ddbc528d40 100644 --- a/clients/client-resource-groups/src/runtimeConfig.browser.ts +++ b/clients/client-resource-groups/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: ResourceGroupsClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-resource-groups/src/runtimeConfig.shared.ts b/clients/client-resource-groups/src/runtimeConfig.shared.ts index 08abf9eecea4..9677f61177c5 100644 --- a/clients/client-resource-groups/src/runtimeConfig.shared.ts +++ b/clients/client-resource-groups/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { ResourceGroupsClientConfig } from "./ResourceGroupsClient"; @@ -10,6 +11,8 @@ import { ResourceGroupsClientConfig } from "./ResourceGroupsClient"; */ export const getRuntimeConfig = (config: ResourceGroupsClientConfig) => ({ apiVersion: "2017-11-27", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-resource-groups/src/runtimeConfig.ts b/clients/client-resource-groups/src/runtimeConfig.ts index e3b24e002be5..875e6e1e68bc 100644 --- a/clients/client-resource-groups/src/runtimeConfig.ts +++ b/clients/client-resource-groups/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: ResourceGroupsClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-robomaker/package.json b/clients/client-robomaker/package.json index 2cf52da8d6b8..b9a34e24b113 100644 --- a/clients/client-robomaker/package.json +++ b/clients/client-robomaker/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-robomaker/src/runtimeConfig.browser.ts b/clients/client-robomaker/src/runtimeConfig.browser.ts index 404827186a1d..09228a7c76be 100644 --- a/clients/client-robomaker/src/runtimeConfig.browser.ts +++ b/clients/client-robomaker/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: RoboMakerClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-robomaker/src/runtimeConfig.shared.ts b/clients/client-robomaker/src/runtimeConfig.shared.ts index 981a7dbcf830..0410da88a5a6 100644 --- a/clients/client-robomaker/src/runtimeConfig.shared.ts +++ b/clients/client-robomaker/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { RoboMakerClientConfig } from "./RoboMakerClient"; @@ -10,6 +11,8 @@ import { RoboMakerClientConfig } from "./RoboMakerClient"; */ export const getRuntimeConfig = (config: RoboMakerClientConfig) => ({ apiVersion: "2018-06-29", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-robomaker/src/runtimeConfig.ts b/clients/client-robomaker/src/runtimeConfig.ts index b20a01172917..b03a35aac668 100644 --- a/clients/client-robomaker/src/runtimeConfig.ts +++ b/clients/client-robomaker/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: RoboMakerClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-rolesanywhere/package.json b/clients/client-rolesanywhere/package.json index 338d7d2e32bd..8b3462634f02 100644 --- a/clients/client-rolesanywhere/package.json +++ b/clients/client-rolesanywhere/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-rolesanywhere/src/runtimeConfig.browser.ts b/clients/client-rolesanywhere/src/runtimeConfig.browser.ts index 11f6c4cda992..7da74866bec4 100644 --- a/clients/client-rolesanywhere/src/runtimeConfig.browser.ts +++ b/clients/client-rolesanywhere/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: RolesAnywhereClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-rolesanywhere/src/runtimeConfig.shared.ts b/clients/client-rolesanywhere/src/runtimeConfig.shared.ts index 2ad936881c8e..4670b40f1c85 100644 --- a/clients/client-rolesanywhere/src/runtimeConfig.shared.ts +++ b/clients/client-rolesanywhere/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { RolesAnywhereClientConfig } from "./RolesAnywhereClient"; @@ -10,6 +11,8 @@ import { RolesAnywhereClientConfig } from "./RolesAnywhereClient"; */ export const getRuntimeConfig = (config: RolesAnywhereClientConfig) => ({ apiVersion: "2018-05-10", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-rolesanywhere/src/runtimeConfig.ts b/clients/client-rolesanywhere/src/runtimeConfig.ts index 1892e0c3acbb..bbaac0392c64 100644 --- a/clients/client-rolesanywhere/src/runtimeConfig.ts +++ b/clients/client-rolesanywhere/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: RolesAnywhereClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-route-53-domains/package.json b/clients/client-route-53-domains/package.json index 927a33073142..ae696979a9d9 100644 --- a/clients/client-route-53-domains/package.json +++ b/clients/client-route-53-domains/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-route-53-domains/src/runtimeConfig.browser.ts b/clients/client-route-53-domains/src/runtimeConfig.browser.ts index a252ae9da4c7..f1ae11faeb1f 100644 --- a/clients/client-route-53-domains/src/runtimeConfig.browser.ts +++ b/clients/client-route-53-domains/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: Route53DomainsClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-route-53-domains/src/runtimeConfig.shared.ts b/clients/client-route-53-domains/src/runtimeConfig.shared.ts index 3d759fcd6732..daf1d0c3e08d 100644 --- a/clients/client-route-53-domains/src/runtimeConfig.shared.ts +++ b/clients/client-route-53-domains/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { Route53DomainsClientConfig } from "./Route53DomainsClient"; @@ -10,6 +11,8 @@ import { Route53DomainsClientConfig } from "./Route53DomainsClient"; */ export const getRuntimeConfig = (config: Route53DomainsClientConfig) => ({ apiVersion: "2014-05-15", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-route-53-domains/src/runtimeConfig.ts b/clients/client-route-53-domains/src/runtimeConfig.ts index 5924e8b79d46..a65cf9a457e1 100644 --- a/clients/client-route-53-domains/src/runtimeConfig.ts +++ b/clients/client-route-53-domains/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: Route53DomainsClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-route-53/package.json b/clients/client-route-53/package.json index 796a84c630c8..b613460dea24 100644 --- a/clients/client-route-53/package.json +++ b/clients/client-route-53/package.json @@ -42,6 +42,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-route-53/src/runtimeConfig.browser.ts b/clients/client-route-53/src/runtimeConfig.browser.ts index 2e5d132efe2f..44ba42498f89 100644 --- a/clients/client-route-53/src/runtimeConfig.browser.ts +++ b/clients/client-route-53/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: Route53ClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-route-53/src/runtimeConfig.shared.ts b/clients/client-route-53/src/runtimeConfig.shared.ts index 6ab63a84a730..1c755e5c5bc0 100644 --- a/clients/client-route-53/src/runtimeConfig.shared.ts +++ b/clients/client-route-53/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { Route53ClientConfig } from "./Route53Client"; @@ -10,6 +11,8 @@ import { Route53ClientConfig } from "./Route53Client"; */ export const getRuntimeConfig = (config: Route53ClientConfig) => ({ apiVersion: "2013-04-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-route-53/src/runtimeConfig.ts b/clients/client-route-53/src/runtimeConfig.ts index c511b9614b97..fbf114839569 100644 --- a/clients/client-route-53/src/runtimeConfig.ts +++ b/clients/client-route-53/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: Route53ClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-route53-recovery-cluster/package.json b/clients/client-route53-recovery-cluster/package.json index 21be04dd3dcd..eeea45ccb9db 100644 --- a/clients/client-route53-recovery-cluster/package.json +++ b/clients/client-route53-recovery-cluster/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-route53-recovery-cluster/src/runtimeConfig.browser.ts b/clients/client-route53-recovery-cluster/src/runtimeConfig.browser.ts index a96c8591bb41..733e0931f6ea 100644 --- a/clients/client-route53-recovery-cluster/src/runtimeConfig.browser.ts +++ b/clients/client-route53-recovery-cluster/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: Route53RecoveryClusterClientConfig) => ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-route53-recovery-cluster/src/runtimeConfig.shared.ts b/clients/client-route53-recovery-cluster/src/runtimeConfig.shared.ts index 57d6048e5c65..57e5cb3280de 100644 --- a/clients/client-route53-recovery-cluster/src/runtimeConfig.shared.ts +++ b/clients/client-route53-recovery-cluster/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { Route53RecoveryClusterClientConfig } from "./Route53RecoveryClusterClient"; @@ -10,6 +11,8 @@ import { Route53RecoveryClusterClientConfig } from "./Route53RecoveryClusterClie */ export const getRuntimeConfig = (config: Route53RecoveryClusterClientConfig) => ({ apiVersion: "2019-12-02", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-route53-recovery-cluster/src/runtimeConfig.ts b/clients/client-route53-recovery-cluster/src/runtimeConfig.ts index 5769d3d77247..d8503499a6e1 100644 --- a/clients/client-route53-recovery-cluster/src/runtimeConfig.ts +++ b/clients/client-route53-recovery-cluster/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: Route53RecoveryClusterClientConfig) => ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-route53-recovery-control-config/package.json b/clients/client-route53-recovery-control-config/package.json index fdba9591e6d0..db9ec7f7dcc1 100644 --- a/clients/client-route53-recovery-control-config/package.json +++ b/clients/client-route53-recovery-control-config/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-route53-recovery-control-config/src/runtimeConfig.browser.ts b/clients/client-route53-recovery-control-config/src/runtimeConfig.browser.ts index 3bab2dead904..1189b6360cf0 100644 --- a/clients/client-route53-recovery-control-config/src/runtimeConfig.browser.ts +++ b/clients/client-route53-recovery-control-config/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: Route53RecoveryControlConfigClientConfi ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-route53-recovery-control-config/src/runtimeConfig.shared.ts b/clients/client-route53-recovery-control-config/src/runtimeConfig.shared.ts index 971f58752fd1..829b5a8827df 100644 --- a/clients/client-route53-recovery-control-config/src/runtimeConfig.shared.ts +++ b/clients/client-route53-recovery-control-config/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { Route53RecoveryControlConfigClientConfig } from "./Route53RecoveryControlConfigClient"; @@ -10,6 +11,8 @@ import { Route53RecoveryControlConfigClientConfig } from "./Route53RecoveryContr */ export const getRuntimeConfig = (config: Route53RecoveryControlConfigClientConfig) => ({ apiVersion: "2020-11-02", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-route53-recovery-control-config/src/runtimeConfig.ts b/clients/client-route53-recovery-control-config/src/runtimeConfig.ts index a041b54e656b..2237676e7567 100644 --- a/clients/client-route53-recovery-control-config/src/runtimeConfig.ts +++ b/clients/client-route53-recovery-control-config/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: Route53RecoveryControlConfigClientConfi ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-route53-recovery-readiness/package.json b/clients/client-route53-recovery-readiness/package.json index a092017c2577..936e1b866d5c 100644 --- a/clients/client-route53-recovery-readiness/package.json +++ b/clients/client-route53-recovery-readiness/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-route53-recovery-readiness/src/runtimeConfig.browser.ts b/clients/client-route53-recovery-readiness/src/runtimeConfig.browser.ts index db9172cfb0ee..1b971f0b3ac0 100644 --- a/clients/client-route53-recovery-readiness/src/runtimeConfig.browser.ts +++ b/clients/client-route53-recovery-readiness/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: Route53RecoveryReadinessClientConfig) = ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-route53-recovery-readiness/src/runtimeConfig.shared.ts b/clients/client-route53-recovery-readiness/src/runtimeConfig.shared.ts index c6b2166dc6ba..d74c161d4502 100644 --- a/clients/client-route53-recovery-readiness/src/runtimeConfig.shared.ts +++ b/clients/client-route53-recovery-readiness/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { Route53RecoveryReadinessClientConfig } from "./Route53RecoveryReadinessClient"; @@ -10,6 +11,8 @@ import { Route53RecoveryReadinessClientConfig } from "./Route53RecoveryReadiness */ export const getRuntimeConfig = (config: Route53RecoveryReadinessClientConfig) => ({ apiVersion: "2019-12-02", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-route53-recovery-readiness/src/runtimeConfig.ts b/clients/client-route53-recovery-readiness/src/runtimeConfig.ts index 6b7bbbc4d096..af375e64c720 100644 --- a/clients/client-route53-recovery-readiness/src/runtimeConfig.ts +++ b/clients/client-route53-recovery-readiness/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: Route53RecoveryReadinessClientConfig) = ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-route53resolver/package.json b/clients/client-route53resolver/package.json index 916badcc6f00..3d648e6a7401 100644 --- a/clients/client-route53resolver/package.json +++ b/clients/client-route53resolver/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-route53resolver/src/runtimeConfig.browser.ts b/clients/client-route53resolver/src/runtimeConfig.browser.ts index 0ce7860bcb52..a562e877c0ee 100644 --- a/clients/client-route53resolver/src/runtimeConfig.browser.ts +++ b/clients/client-route53resolver/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: Route53ResolverClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-route53resolver/src/runtimeConfig.shared.ts b/clients/client-route53resolver/src/runtimeConfig.shared.ts index 6796b782f6ad..4a70c83afdef 100644 --- a/clients/client-route53resolver/src/runtimeConfig.shared.ts +++ b/clients/client-route53resolver/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { Route53ResolverClientConfig } from "./Route53ResolverClient"; @@ -10,6 +11,8 @@ import { Route53ResolverClientConfig } from "./Route53ResolverClient"; */ export const getRuntimeConfig = (config: Route53ResolverClientConfig) => ({ apiVersion: "2018-04-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-route53resolver/src/runtimeConfig.ts b/clients/client-route53resolver/src/runtimeConfig.ts index 3643acccfc90..078a5365caf5 100644 --- a/clients/client-route53resolver/src/runtimeConfig.ts +++ b/clients/client-route53resolver/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: Route53ResolverClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-rum/package.json b/clients/client-rum/package.json index 2598dd6c5fcf..5c712a0ef64d 100644 --- a/clients/client-rum/package.json +++ b/clients/client-rum/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-rum/src/runtimeConfig.browser.ts b/clients/client-rum/src/runtimeConfig.browser.ts index a2a682c5a072..b1c3d31ed4c9 100644 --- a/clients/client-rum/src/runtimeConfig.browser.ts +++ b/clients/client-rum/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: RUMClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-rum/src/runtimeConfig.shared.ts b/clients/client-rum/src/runtimeConfig.shared.ts index 13680c847200..f4a43f528473 100644 --- a/clients/client-rum/src/runtimeConfig.shared.ts +++ b/clients/client-rum/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { RUMClientConfig } from "./RUMClient"; @@ -10,6 +11,8 @@ import { RUMClientConfig } from "./RUMClient"; */ export const getRuntimeConfig = (config: RUMClientConfig) => ({ apiVersion: "2018-05-10", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-rum/src/runtimeConfig.ts b/clients/client-rum/src/runtimeConfig.ts index dac652d5833b..013c4793e2b8 100644 --- a/clients/client-rum/src/runtimeConfig.ts +++ b/clients/client-rum/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: RUMClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-s3-control/package.json b/clients/client-s3-control/package.json index 390c4e81f075..725a3f66ac18 100644 --- a/clients/client-s3-control/package.json +++ b/clients/client-s3-control/package.json @@ -48,6 +48,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-s3-control/src/runtimeConfig.browser.ts b/clients/client-s3-control/src/runtimeConfig.browser.ts index c8d0f75fcc39..26514178e5b3 100644 --- a/clients/client-s3-control/src/runtimeConfig.browser.ts +++ b/clients/client-s3-control/src/runtimeConfig.browser.ts @@ -9,7 +9,6 @@ import { blobHasher as streamHasher } from "@aws-sdk/hash-blob-browser"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { Md5 } from "@aws-sdk/md5-js"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -30,8 +29,6 @@ export const getRuntimeConfig = (config: S3ControlClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-s3-control/src/runtimeConfig.shared.ts b/clients/client-s3-control/src/runtimeConfig.shared.ts index 6738cd3592e0..af6115e241eb 100644 --- a/clients/client-s3-control/src/runtimeConfig.shared.ts +++ b/clients/client-s3-control/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { S3ControlClientConfig } from "./S3ControlClient"; @@ -10,6 +11,8 @@ import { S3ControlClientConfig } from "./S3ControlClient"; */ export const getRuntimeConfig = (config: S3ControlClientConfig) => ({ apiVersion: "2018-08-20", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-s3-control/src/runtimeConfig.ts b/clients/client-s3-control/src/runtimeConfig.ts index 871d64767ebd..da1d4e1a5750 100644 --- a/clients/client-s3-control/src/runtimeConfig.ts +++ b/clients/client-s3-control/src/runtimeConfig.ts @@ -20,7 +20,6 @@ import { import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; import { HashConstructor as __HashConstructor } from "@aws-sdk/types"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -43,8 +42,6 @@ export const getRuntimeConfig = (config: S3ControlClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-s3/package.json b/clients/client-s3/package.json index 05a49f753b2b..f8e076419862 100644 --- a/clients/client-s3/package.json +++ b/clients/client-s3/package.json @@ -58,6 +58,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-s3/src/runtimeConfig.browser.ts b/clients/client-s3/src/runtimeConfig.browser.ts index fa60174c3089..a53de11a96b6 100644 --- a/clients/client-s3/src/runtimeConfig.browser.ts +++ b/clients/client-s3/src/runtimeConfig.browser.ts @@ -11,7 +11,6 @@ import { blobHasher as streamHasher } from "@aws-sdk/hash-blob-browser"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { Md5 } from "@aws-sdk/md5-js"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { getAwsChunkedEncodingStream, sdkStreamMixin } from "@aws-sdk/util-stream-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; @@ -33,8 +32,6 @@ export const getRuntimeConfig = (config: S3ClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-s3/src/runtimeConfig.shared.ts b/clients/client-s3/src/runtimeConfig.shared.ts index 7a568ae1e0a6..6a0680d06509 100644 --- a/clients/client-s3/src/runtimeConfig.shared.ts +++ b/clients/client-s3/src/runtimeConfig.shared.ts @@ -2,6 +2,7 @@ import { SignatureV4MultiRegion } from "@aws-sdk/signature-v4-multi-region"; import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { S3ClientConfig } from "./S3Client"; @@ -11,6 +12,8 @@ import { S3ClientConfig } from "./S3Client"; */ export const getRuntimeConfig = (config: S3ClientConfig) => ({ apiVersion: "2006-03-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-s3/src/runtimeConfig.ts b/clients/client-s3/src/runtimeConfig.ts index bc012cdeb387..01f341647bfe 100644 --- a/clients/client-s3/src/runtimeConfig.ts +++ b/clients/client-s3/src/runtimeConfig.ts @@ -22,7 +22,6 @@ import { import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; import { HashConstructor as __HashConstructor } from "@aws-sdk/types"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { getAwsChunkedEncodingStream, sdkStreamMixin } from "@aws-sdk/util-stream-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -46,8 +45,6 @@ export const getRuntimeConfig = (config: S3ClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-s3outposts/package.json b/clients/client-s3outposts/package.json index c46c12f31d0b..5f66530d7ccd 100644 --- a/clients/client-s3outposts/package.json +++ b/clients/client-s3outposts/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-s3outposts/src/runtimeConfig.browser.ts b/clients/client-s3outposts/src/runtimeConfig.browser.ts index 37af73267e67..b668b72c5914 100644 --- a/clients/client-s3outposts/src/runtimeConfig.browser.ts +++ b/clients/client-s3outposts/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: S3OutpostsClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-s3outposts/src/runtimeConfig.shared.ts b/clients/client-s3outposts/src/runtimeConfig.shared.ts index e91d430af839..185308cc9900 100644 --- a/clients/client-s3outposts/src/runtimeConfig.shared.ts +++ b/clients/client-s3outposts/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { S3OutpostsClientConfig } from "./S3OutpostsClient"; @@ -10,6 +11,8 @@ import { S3OutpostsClientConfig } from "./S3OutpostsClient"; */ export const getRuntimeConfig = (config: S3OutpostsClientConfig) => ({ apiVersion: "2017-07-25", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-s3outposts/src/runtimeConfig.ts b/clients/client-s3outposts/src/runtimeConfig.ts index 1a78381b317d..9e050fd3c857 100644 --- a/clients/client-s3outposts/src/runtimeConfig.ts +++ b/clients/client-s3outposts/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: S3OutpostsClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-sagemaker-a2i-runtime/package.json b/clients/client-sagemaker-a2i-runtime/package.json index 3ef2de70f8bd..5d7268ae0a35 100644 --- a/clients/client-sagemaker-a2i-runtime/package.json +++ b/clients/client-sagemaker-a2i-runtime/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-sagemaker-a2i-runtime/src/runtimeConfig.browser.ts b/clients/client-sagemaker-a2i-runtime/src/runtimeConfig.browser.ts index f90db535187f..54942dca6b8e 100644 --- a/clients/client-sagemaker-a2i-runtime/src/runtimeConfig.browser.ts +++ b/clients/client-sagemaker-a2i-runtime/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: SageMakerA2IRuntimeClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-sagemaker-a2i-runtime/src/runtimeConfig.shared.ts b/clients/client-sagemaker-a2i-runtime/src/runtimeConfig.shared.ts index 928141b0d90c..919039cc50ed 100644 --- a/clients/client-sagemaker-a2i-runtime/src/runtimeConfig.shared.ts +++ b/clients/client-sagemaker-a2i-runtime/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { SageMakerA2IRuntimeClientConfig } from "./SageMakerA2IRuntimeClient"; @@ -10,6 +11,8 @@ import { SageMakerA2IRuntimeClientConfig } from "./SageMakerA2IRuntimeClient"; */ export const getRuntimeConfig = (config: SageMakerA2IRuntimeClientConfig) => ({ apiVersion: "2019-11-07", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-sagemaker-a2i-runtime/src/runtimeConfig.ts b/clients/client-sagemaker-a2i-runtime/src/runtimeConfig.ts index 7b16ad1f747c..5ad6b02969dc 100644 --- a/clients/client-sagemaker-a2i-runtime/src/runtimeConfig.ts +++ b/clients/client-sagemaker-a2i-runtime/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: SageMakerA2IRuntimeClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-sagemaker-edge/package.json b/clients/client-sagemaker-edge/package.json index 676e38bec618..bb989f84b328 100644 --- a/clients/client-sagemaker-edge/package.json +++ b/clients/client-sagemaker-edge/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-sagemaker-edge/src/runtimeConfig.browser.ts b/clients/client-sagemaker-edge/src/runtimeConfig.browser.ts index 3328e57d12ed..4274683d7233 100644 --- a/clients/client-sagemaker-edge/src/runtimeConfig.browser.ts +++ b/clients/client-sagemaker-edge/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: SagemakerEdgeClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-sagemaker-edge/src/runtimeConfig.shared.ts b/clients/client-sagemaker-edge/src/runtimeConfig.shared.ts index da8bda667ab6..e36a7b3c1282 100644 --- a/clients/client-sagemaker-edge/src/runtimeConfig.shared.ts +++ b/clients/client-sagemaker-edge/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { SagemakerEdgeClientConfig } from "./SagemakerEdgeClient"; @@ -10,6 +11,8 @@ import { SagemakerEdgeClientConfig } from "./SagemakerEdgeClient"; */ export const getRuntimeConfig = (config: SagemakerEdgeClientConfig) => ({ apiVersion: "2020-09-23", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-sagemaker-edge/src/runtimeConfig.ts b/clients/client-sagemaker-edge/src/runtimeConfig.ts index bf69c9236b1e..e487f9d43c1c 100644 --- a/clients/client-sagemaker-edge/src/runtimeConfig.ts +++ b/clients/client-sagemaker-edge/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: SagemakerEdgeClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-sagemaker-featurestore-runtime/package.json b/clients/client-sagemaker-featurestore-runtime/package.json index 24e5e1362078..3a7287d1c0d0 100644 --- a/clients/client-sagemaker-featurestore-runtime/package.json +++ b/clients/client-sagemaker-featurestore-runtime/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-sagemaker-featurestore-runtime/src/runtimeConfig.browser.ts b/clients/client-sagemaker-featurestore-runtime/src/runtimeConfig.browser.ts index d85a69803f5a..0225ef26d7fd 100644 --- a/clients/client-sagemaker-featurestore-runtime/src/runtimeConfig.browser.ts +++ b/clients/client-sagemaker-featurestore-runtime/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: SageMakerFeatureStoreRuntimeClientConfi ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-sagemaker-featurestore-runtime/src/runtimeConfig.shared.ts b/clients/client-sagemaker-featurestore-runtime/src/runtimeConfig.shared.ts index c328dd318370..efffb2fc82a7 100644 --- a/clients/client-sagemaker-featurestore-runtime/src/runtimeConfig.shared.ts +++ b/clients/client-sagemaker-featurestore-runtime/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { SageMakerFeatureStoreRuntimeClientConfig } from "./SageMakerFeatureStoreRuntimeClient"; @@ -10,6 +11,8 @@ import { SageMakerFeatureStoreRuntimeClientConfig } from "./SageMakerFeatureStor */ export const getRuntimeConfig = (config: SageMakerFeatureStoreRuntimeClientConfig) => ({ apiVersion: "2020-07-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-sagemaker-featurestore-runtime/src/runtimeConfig.ts b/clients/client-sagemaker-featurestore-runtime/src/runtimeConfig.ts index b77a01f03f94..e5f222ef8f01 100644 --- a/clients/client-sagemaker-featurestore-runtime/src/runtimeConfig.ts +++ b/clients/client-sagemaker-featurestore-runtime/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: SageMakerFeatureStoreRuntimeClientConfi ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-sagemaker-runtime/package.json b/clients/client-sagemaker-runtime/package.json index 3db4d010a3de..150d3aa5c557 100644 --- a/clients/client-sagemaker-runtime/package.json +++ b/clients/client-sagemaker-runtime/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-sagemaker-runtime/src/runtimeConfig.browser.ts b/clients/client-sagemaker-runtime/src/runtimeConfig.browser.ts index 6807fea3d196..5c98e67440ae 100644 --- a/clients/client-sagemaker-runtime/src/runtimeConfig.browser.ts +++ b/clients/client-sagemaker-runtime/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: SageMakerRuntimeClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-sagemaker-runtime/src/runtimeConfig.shared.ts b/clients/client-sagemaker-runtime/src/runtimeConfig.shared.ts index b6c2a99da2e4..a412072b0406 100644 --- a/clients/client-sagemaker-runtime/src/runtimeConfig.shared.ts +++ b/clients/client-sagemaker-runtime/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { SageMakerRuntimeClientConfig } from "./SageMakerRuntimeClient"; @@ -10,6 +11,8 @@ import { SageMakerRuntimeClientConfig } from "./SageMakerRuntimeClient"; */ export const getRuntimeConfig = (config: SageMakerRuntimeClientConfig) => ({ apiVersion: "2017-05-13", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-sagemaker-runtime/src/runtimeConfig.ts b/clients/client-sagemaker-runtime/src/runtimeConfig.ts index bfb0e1d5a63a..43b02e62431c 100644 --- a/clients/client-sagemaker-runtime/src/runtimeConfig.ts +++ b/clients/client-sagemaker-runtime/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: SageMakerRuntimeClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-sagemaker/package.json b/clients/client-sagemaker/package.json index 6dd10e1c3da0..93b236480347 100644 --- a/clients/client-sagemaker/package.json +++ b/clients/client-sagemaker/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-sagemaker/src/runtimeConfig.browser.ts b/clients/client-sagemaker/src/runtimeConfig.browser.ts index 6f83939ad90c..e92d15871026 100644 --- a/clients/client-sagemaker/src/runtimeConfig.browser.ts +++ b/clients/client-sagemaker/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: SageMakerClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-sagemaker/src/runtimeConfig.shared.ts b/clients/client-sagemaker/src/runtimeConfig.shared.ts index 164e47b07962..ead833614963 100644 --- a/clients/client-sagemaker/src/runtimeConfig.shared.ts +++ b/clients/client-sagemaker/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { SageMakerClientConfig } from "./SageMakerClient"; @@ -10,6 +11,8 @@ import { SageMakerClientConfig } from "./SageMakerClient"; */ export const getRuntimeConfig = (config: SageMakerClientConfig) => ({ apiVersion: "2017-07-24", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-sagemaker/src/runtimeConfig.ts b/clients/client-sagemaker/src/runtimeConfig.ts index 78b3fb835d91..09ce0dfd4dcc 100644 --- a/clients/client-sagemaker/src/runtimeConfig.ts +++ b/clients/client-sagemaker/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: SageMakerClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-savingsplans/package.json b/clients/client-savingsplans/package.json index 646419075b8a..ae271f6bc8cd 100644 --- a/clients/client-savingsplans/package.json +++ b/clients/client-savingsplans/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-savingsplans/src/runtimeConfig.browser.ts b/clients/client-savingsplans/src/runtimeConfig.browser.ts index 701cd1215efa..66972989ab97 100644 --- a/clients/client-savingsplans/src/runtimeConfig.browser.ts +++ b/clients/client-savingsplans/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: SavingsplansClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-savingsplans/src/runtimeConfig.shared.ts b/clients/client-savingsplans/src/runtimeConfig.shared.ts index 5ae4a0a65b61..ba37c27e5b5f 100644 --- a/clients/client-savingsplans/src/runtimeConfig.shared.ts +++ b/clients/client-savingsplans/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { SavingsplansClientConfig } from "./SavingsplansClient"; @@ -10,6 +11,8 @@ import { SavingsplansClientConfig } from "./SavingsplansClient"; */ export const getRuntimeConfig = (config: SavingsplansClientConfig) => ({ apiVersion: "2019-06-28", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-savingsplans/src/runtimeConfig.ts b/clients/client-savingsplans/src/runtimeConfig.ts index 4075ad673e9f..bb89730581d8 100644 --- a/clients/client-savingsplans/src/runtimeConfig.ts +++ b/clients/client-savingsplans/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: SavingsplansClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-schemas/package.json b/clients/client-schemas/package.json index 8f206f914376..adfee3d6a6d1 100644 --- a/clients/client-schemas/package.json +++ b/clients/client-schemas/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-schemas/src/runtimeConfig.browser.ts b/clients/client-schemas/src/runtimeConfig.browser.ts index 9c7bcf17a300..2b8137e51488 100644 --- a/clients/client-schemas/src/runtimeConfig.browser.ts +++ b/clients/client-schemas/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: SchemasClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-schemas/src/runtimeConfig.shared.ts b/clients/client-schemas/src/runtimeConfig.shared.ts index 5264df6720bd..0784c213a182 100644 --- a/clients/client-schemas/src/runtimeConfig.shared.ts +++ b/clients/client-schemas/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { SchemasClientConfig } from "./SchemasClient"; @@ -10,6 +11,8 @@ import { SchemasClientConfig } from "./SchemasClient"; */ export const getRuntimeConfig = (config: SchemasClientConfig) => ({ apiVersion: "2019-12-02", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-schemas/src/runtimeConfig.ts b/clients/client-schemas/src/runtimeConfig.ts index 4503aa438b22..05a735e7053f 100644 --- a/clients/client-schemas/src/runtimeConfig.ts +++ b/clients/client-schemas/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: SchemasClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-secrets-manager/package.json b/clients/client-secrets-manager/package.json index 328c7d2ad965..b7d753042642 100644 --- a/clients/client-secrets-manager/package.json +++ b/clients/client-secrets-manager/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-secrets-manager/src/runtimeConfig.browser.ts b/clients/client-secrets-manager/src/runtimeConfig.browser.ts index 64e0834ea52a..e05b5c94ea70 100644 --- a/clients/client-secrets-manager/src/runtimeConfig.browser.ts +++ b/clients/client-secrets-manager/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: SecretsManagerClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-secrets-manager/src/runtimeConfig.shared.ts b/clients/client-secrets-manager/src/runtimeConfig.shared.ts index 3f35639185b3..f59394a13e00 100644 --- a/clients/client-secrets-manager/src/runtimeConfig.shared.ts +++ b/clients/client-secrets-manager/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { SecretsManagerClientConfig } from "./SecretsManagerClient"; @@ -10,6 +11,8 @@ import { SecretsManagerClientConfig } from "./SecretsManagerClient"; */ export const getRuntimeConfig = (config: SecretsManagerClientConfig) => ({ apiVersion: "2017-10-17", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-secrets-manager/src/runtimeConfig.ts b/clients/client-secrets-manager/src/runtimeConfig.ts index 4ba9b94b8e5f..adf0fada4129 100644 --- a/clients/client-secrets-manager/src/runtimeConfig.ts +++ b/clients/client-secrets-manager/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: SecretsManagerClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-securityhub/package.json b/clients/client-securityhub/package.json index 318ee0b9d4f1..3e2621fd057f 100644 --- a/clients/client-securityhub/package.json +++ b/clients/client-securityhub/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-securityhub/src/runtimeConfig.browser.ts b/clients/client-securityhub/src/runtimeConfig.browser.ts index f6b3851fbe08..3804de228431 100644 --- a/clients/client-securityhub/src/runtimeConfig.browser.ts +++ b/clients/client-securityhub/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: SecurityHubClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-securityhub/src/runtimeConfig.shared.ts b/clients/client-securityhub/src/runtimeConfig.shared.ts index 9238ea193ba6..94b35a07e45a 100644 --- a/clients/client-securityhub/src/runtimeConfig.shared.ts +++ b/clients/client-securityhub/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { SecurityHubClientConfig } from "./SecurityHubClient"; @@ -10,6 +11,8 @@ import { SecurityHubClientConfig } from "./SecurityHubClient"; */ export const getRuntimeConfig = (config: SecurityHubClientConfig) => ({ apiVersion: "2018-10-26", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-securityhub/src/runtimeConfig.ts b/clients/client-securityhub/src/runtimeConfig.ts index 61e6afc0cac5..810f91821ea8 100644 --- a/clients/client-securityhub/src/runtimeConfig.ts +++ b/clients/client-securityhub/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: SecurityHubClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-serverlessapplicationrepository/package.json b/clients/client-serverlessapplicationrepository/package.json index 61b6a987ea3c..2a19755749de 100644 --- a/clients/client-serverlessapplicationrepository/package.json +++ b/clients/client-serverlessapplicationrepository/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-serverlessapplicationrepository/src/runtimeConfig.browser.ts b/clients/client-serverlessapplicationrepository/src/runtimeConfig.browser.ts index dfd5f3bac785..475a164c5d7e 100644 --- a/clients/client-serverlessapplicationrepository/src/runtimeConfig.browser.ts +++ b/clients/client-serverlessapplicationrepository/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: ServerlessApplicationRepositoryClientCo ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-serverlessapplicationrepository/src/runtimeConfig.shared.ts b/clients/client-serverlessapplicationrepository/src/runtimeConfig.shared.ts index 9fdb18c1a209..7090c3101642 100644 --- a/clients/client-serverlessapplicationrepository/src/runtimeConfig.shared.ts +++ b/clients/client-serverlessapplicationrepository/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { ServerlessApplicationRepositoryClientConfig } from "./ServerlessApplicationRepositoryClient"; @@ -10,6 +11,8 @@ import { ServerlessApplicationRepositoryClientConfig } from "./ServerlessApplica */ export const getRuntimeConfig = (config: ServerlessApplicationRepositoryClientConfig) => ({ apiVersion: "2017-09-08", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-serverlessapplicationrepository/src/runtimeConfig.ts b/clients/client-serverlessapplicationrepository/src/runtimeConfig.ts index 56e9afa6ba30..8d51e8b564c6 100644 --- a/clients/client-serverlessapplicationrepository/src/runtimeConfig.ts +++ b/clients/client-serverlessapplicationrepository/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: ServerlessApplicationRepositoryClientCo ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-service-catalog-appregistry/package.json b/clients/client-service-catalog-appregistry/package.json index b38f1ac94146..2ed58dcc96c8 100644 --- a/clients/client-service-catalog-appregistry/package.json +++ b/clients/client-service-catalog-appregistry/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-service-catalog-appregistry/src/runtimeConfig.browser.ts b/clients/client-service-catalog-appregistry/src/runtimeConfig.browser.ts index 4fe25df01157..aa1ac18b2fd4 100644 --- a/clients/client-service-catalog-appregistry/src/runtimeConfig.browser.ts +++ b/clients/client-service-catalog-appregistry/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: ServiceCatalogAppRegistryClientConfig) ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-service-catalog-appregistry/src/runtimeConfig.shared.ts b/clients/client-service-catalog-appregistry/src/runtimeConfig.shared.ts index e79da1333042..078a00c8f16c 100644 --- a/clients/client-service-catalog-appregistry/src/runtimeConfig.shared.ts +++ b/clients/client-service-catalog-appregistry/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { ServiceCatalogAppRegistryClientConfig } from "./ServiceCatalogAppRegistryClient"; @@ -10,6 +11,8 @@ import { ServiceCatalogAppRegistryClientConfig } from "./ServiceCatalogAppRegist */ export const getRuntimeConfig = (config: ServiceCatalogAppRegistryClientConfig) => ({ apiVersion: "2020-06-24", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-service-catalog-appregistry/src/runtimeConfig.ts b/clients/client-service-catalog-appregistry/src/runtimeConfig.ts index 42ed9ae26bd8..b5a2a0ffe621 100644 --- a/clients/client-service-catalog-appregistry/src/runtimeConfig.ts +++ b/clients/client-service-catalog-appregistry/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: ServiceCatalogAppRegistryClientConfig) ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-service-catalog/package.json b/clients/client-service-catalog/package.json index 5ee883014f30..749985c4636a 100644 --- a/clients/client-service-catalog/package.json +++ b/clients/client-service-catalog/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-service-catalog/src/runtimeConfig.browser.ts b/clients/client-service-catalog/src/runtimeConfig.browser.ts index aac8bf6e4d7e..e40595db2ccd 100644 --- a/clients/client-service-catalog/src/runtimeConfig.browser.ts +++ b/clients/client-service-catalog/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: ServiceCatalogClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-service-catalog/src/runtimeConfig.shared.ts b/clients/client-service-catalog/src/runtimeConfig.shared.ts index e94a8c9c1e97..e2e2b097abc9 100644 --- a/clients/client-service-catalog/src/runtimeConfig.shared.ts +++ b/clients/client-service-catalog/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { ServiceCatalogClientConfig } from "./ServiceCatalogClient"; @@ -10,6 +11,8 @@ import { ServiceCatalogClientConfig } from "./ServiceCatalogClient"; */ export const getRuntimeConfig = (config: ServiceCatalogClientConfig) => ({ apiVersion: "2015-12-10", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-service-catalog/src/runtimeConfig.ts b/clients/client-service-catalog/src/runtimeConfig.ts index fb1ded81793a..a00e320f56a6 100644 --- a/clients/client-service-catalog/src/runtimeConfig.ts +++ b/clients/client-service-catalog/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: ServiceCatalogClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-service-quotas/package.json b/clients/client-service-quotas/package.json index 0630b2e0588c..9ede4a3816a9 100644 --- a/clients/client-service-quotas/package.json +++ b/clients/client-service-quotas/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-service-quotas/src/runtimeConfig.browser.ts b/clients/client-service-quotas/src/runtimeConfig.browser.ts index e787740e0ebb..bc3151401bb1 100644 --- a/clients/client-service-quotas/src/runtimeConfig.browser.ts +++ b/clients/client-service-quotas/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: ServiceQuotasClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-service-quotas/src/runtimeConfig.shared.ts b/clients/client-service-quotas/src/runtimeConfig.shared.ts index d022499dbc07..cf230163bbe8 100644 --- a/clients/client-service-quotas/src/runtimeConfig.shared.ts +++ b/clients/client-service-quotas/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { ServiceQuotasClientConfig } from "./ServiceQuotasClient"; @@ -10,6 +11,8 @@ import { ServiceQuotasClientConfig } from "./ServiceQuotasClient"; */ export const getRuntimeConfig = (config: ServiceQuotasClientConfig) => ({ apiVersion: "2019-06-24", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-service-quotas/src/runtimeConfig.ts b/clients/client-service-quotas/src/runtimeConfig.ts index ef78107e86c7..ce04f94ac209 100644 --- a/clients/client-service-quotas/src/runtimeConfig.ts +++ b/clients/client-service-quotas/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: ServiceQuotasClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-servicediscovery/package.json b/clients/client-servicediscovery/package.json index 8992afa3242c..82e4935a07c9 100644 --- a/clients/client-servicediscovery/package.json +++ b/clients/client-servicediscovery/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-servicediscovery/src/runtimeConfig.browser.ts b/clients/client-servicediscovery/src/runtimeConfig.browser.ts index b06f3792008a..7170a7c50063 100644 --- a/clients/client-servicediscovery/src/runtimeConfig.browser.ts +++ b/clients/client-servicediscovery/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: ServiceDiscoveryClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-servicediscovery/src/runtimeConfig.shared.ts b/clients/client-servicediscovery/src/runtimeConfig.shared.ts index a3ac32356892..5843904f57da 100644 --- a/clients/client-servicediscovery/src/runtimeConfig.shared.ts +++ b/clients/client-servicediscovery/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { ServiceDiscoveryClientConfig } from "./ServiceDiscoveryClient"; @@ -10,6 +11,8 @@ import { ServiceDiscoveryClientConfig } from "./ServiceDiscoveryClient"; */ export const getRuntimeConfig = (config: ServiceDiscoveryClientConfig) => ({ apiVersion: "2017-03-14", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-servicediscovery/src/runtimeConfig.ts b/clients/client-servicediscovery/src/runtimeConfig.ts index 4a9c29adfb6b..2c38e219f724 100644 --- a/clients/client-servicediscovery/src/runtimeConfig.ts +++ b/clients/client-servicediscovery/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: ServiceDiscoveryClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-ses/package.json b/clients/client-ses/package.json index 95a7c4fc5d2d..c99c8b82ab78 100644 --- a/clients/client-ses/package.json +++ b/clients/client-ses/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-ses/src/runtimeConfig.browser.ts b/clients/client-ses/src/runtimeConfig.browser.ts index 4ab53b217341..b4d3547f8a39 100644 --- a/clients/client-ses/src/runtimeConfig.browser.ts +++ b/clients/client-ses/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: SESClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-ses/src/runtimeConfig.shared.ts b/clients/client-ses/src/runtimeConfig.shared.ts index da98b2273973..d9ae870f9721 100644 --- a/clients/client-ses/src/runtimeConfig.shared.ts +++ b/clients/client-ses/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { SESClientConfig } from "./SESClient"; @@ -10,6 +11,8 @@ import { SESClientConfig } from "./SESClient"; */ export const getRuntimeConfig = (config: SESClientConfig) => ({ apiVersion: "2010-12-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-ses/src/runtimeConfig.ts b/clients/client-ses/src/runtimeConfig.ts index 683df78603c2..85d40609e555 100644 --- a/clients/client-ses/src/runtimeConfig.ts +++ b/clients/client-ses/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: SESClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-sesv2/package.json b/clients/client-sesv2/package.json index 2ce6a91b02b3..1499c6dff506 100644 --- a/clients/client-sesv2/package.json +++ b/clients/client-sesv2/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-sesv2/src/runtimeConfig.browser.ts b/clients/client-sesv2/src/runtimeConfig.browser.ts index f6a82f79d767..2b20c6ac581b 100644 --- a/clients/client-sesv2/src/runtimeConfig.browser.ts +++ b/clients/client-sesv2/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: SESv2ClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-sesv2/src/runtimeConfig.shared.ts b/clients/client-sesv2/src/runtimeConfig.shared.ts index cb0c492cd9ca..ff1262b56fd8 100644 --- a/clients/client-sesv2/src/runtimeConfig.shared.ts +++ b/clients/client-sesv2/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { SESv2ClientConfig } from "./SESv2Client"; @@ -10,6 +11,8 @@ import { SESv2ClientConfig } from "./SESv2Client"; */ export const getRuntimeConfig = (config: SESv2ClientConfig) => ({ apiVersion: "2019-09-27", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-sesv2/src/runtimeConfig.ts b/clients/client-sesv2/src/runtimeConfig.ts index 3a2070362ae7..00ad184de4b0 100644 --- a/clients/client-sesv2/src/runtimeConfig.ts +++ b/clients/client-sesv2/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: SESv2ClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-sfn/package.json b/clients/client-sfn/package.json index b304cbc843c6..132acf9ab71e 100644 --- a/clients/client-sfn/package.json +++ b/clients/client-sfn/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-sfn/src/runtimeConfig.browser.ts b/clients/client-sfn/src/runtimeConfig.browser.ts index 131872614701..b4a05dd1a15b 100644 --- a/clients/client-sfn/src/runtimeConfig.browser.ts +++ b/clients/client-sfn/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: SFNClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-sfn/src/runtimeConfig.shared.ts b/clients/client-sfn/src/runtimeConfig.shared.ts index b2320aecf696..6bbf3213bfdb 100644 --- a/clients/client-sfn/src/runtimeConfig.shared.ts +++ b/clients/client-sfn/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { SFNClientConfig } from "./SFNClient"; @@ -10,6 +11,8 @@ import { SFNClientConfig } from "./SFNClient"; */ export const getRuntimeConfig = (config: SFNClientConfig) => ({ apiVersion: "2016-11-23", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-sfn/src/runtimeConfig.ts b/clients/client-sfn/src/runtimeConfig.ts index 3e43faedcd36..d353e0e7dea2 100644 --- a/clients/client-sfn/src/runtimeConfig.ts +++ b/clients/client-sfn/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: SFNClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-shield/package.json b/clients/client-shield/package.json index c2a95c88fd66..78ab22411d97 100644 --- a/clients/client-shield/package.json +++ b/clients/client-shield/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-shield/src/runtimeConfig.browser.ts b/clients/client-shield/src/runtimeConfig.browser.ts index 87daf4fdde19..8152f552bc12 100644 --- a/clients/client-shield/src/runtimeConfig.browser.ts +++ b/clients/client-shield/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: ShieldClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-shield/src/runtimeConfig.shared.ts b/clients/client-shield/src/runtimeConfig.shared.ts index 11ab83722aa8..317c2cfd36cb 100644 --- a/clients/client-shield/src/runtimeConfig.shared.ts +++ b/clients/client-shield/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { ShieldClientConfig } from "./ShieldClient"; @@ -10,6 +11,8 @@ import { ShieldClientConfig } from "./ShieldClient"; */ export const getRuntimeConfig = (config: ShieldClientConfig) => ({ apiVersion: "2016-06-02", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-shield/src/runtimeConfig.ts b/clients/client-shield/src/runtimeConfig.ts index d620362af604..1f919350db71 100644 --- a/clients/client-shield/src/runtimeConfig.ts +++ b/clients/client-shield/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: ShieldClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-signer/package.json b/clients/client-signer/package.json index 0e5147d3793c..059cd44b5f2a 100644 --- a/clients/client-signer/package.json +++ b/clients/client-signer/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-signer/src/runtimeConfig.browser.ts b/clients/client-signer/src/runtimeConfig.browser.ts index b0dd141a5ed7..96ef4564deff 100644 --- a/clients/client-signer/src/runtimeConfig.browser.ts +++ b/clients/client-signer/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: SignerClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-signer/src/runtimeConfig.shared.ts b/clients/client-signer/src/runtimeConfig.shared.ts index 42d4bce286f4..b4920d40ca21 100644 --- a/clients/client-signer/src/runtimeConfig.shared.ts +++ b/clients/client-signer/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { SignerClientConfig } from "./SignerClient"; @@ -10,6 +11,8 @@ import { SignerClientConfig } from "./SignerClient"; */ export const getRuntimeConfig = (config: SignerClientConfig) => ({ apiVersion: "2017-08-25", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-signer/src/runtimeConfig.ts b/clients/client-signer/src/runtimeConfig.ts index 34f2c9844275..b96f2f11a9ef 100644 --- a/clients/client-signer/src/runtimeConfig.ts +++ b/clients/client-signer/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: SignerClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-sms/package.json b/clients/client-sms/package.json index 8e88f1393079..7e828cb4595f 100644 --- a/clients/client-sms/package.json +++ b/clients/client-sms/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-sms/src/runtimeConfig.browser.ts b/clients/client-sms/src/runtimeConfig.browser.ts index ff3bfc578860..dcf1752c4ebe 100644 --- a/clients/client-sms/src/runtimeConfig.browser.ts +++ b/clients/client-sms/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: SMSClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-sms/src/runtimeConfig.shared.ts b/clients/client-sms/src/runtimeConfig.shared.ts index 438c4d96d00b..7ee581c1cfc4 100644 --- a/clients/client-sms/src/runtimeConfig.shared.ts +++ b/clients/client-sms/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { SMSClientConfig } from "./SMSClient"; @@ -10,6 +11,8 @@ import { SMSClientConfig } from "./SMSClient"; */ export const getRuntimeConfig = (config: SMSClientConfig) => ({ apiVersion: "2016-10-24", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-sms/src/runtimeConfig.ts b/clients/client-sms/src/runtimeConfig.ts index 60f2169dfd36..7f4204fa6306 100644 --- a/clients/client-sms/src/runtimeConfig.ts +++ b/clients/client-sms/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: SMSClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-snow-device-management/package.json b/clients/client-snow-device-management/package.json index fa8089e58e05..1b1dfad0c055 100644 --- a/clients/client-snow-device-management/package.json +++ b/clients/client-snow-device-management/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-snow-device-management/src/runtimeConfig.browser.ts b/clients/client-snow-device-management/src/runtimeConfig.browser.ts index de9dbfe2705c..49f59f25c36f 100644 --- a/clients/client-snow-device-management/src/runtimeConfig.browser.ts +++ b/clients/client-snow-device-management/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: SnowDeviceManagementClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-snow-device-management/src/runtimeConfig.shared.ts b/clients/client-snow-device-management/src/runtimeConfig.shared.ts index 0831a309f758..6d36e4b8e024 100644 --- a/clients/client-snow-device-management/src/runtimeConfig.shared.ts +++ b/clients/client-snow-device-management/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { SnowDeviceManagementClientConfig } from "./SnowDeviceManagementClient"; @@ -10,6 +11,8 @@ import { SnowDeviceManagementClientConfig } from "./SnowDeviceManagementClient"; */ export const getRuntimeConfig = (config: SnowDeviceManagementClientConfig) => ({ apiVersion: "2021-08-04", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-snow-device-management/src/runtimeConfig.ts b/clients/client-snow-device-management/src/runtimeConfig.ts index 75c4a5524177..b0a99d98027e 100644 --- a/clients/client-snow-device-management/src/runtimeConfig.ts +++ b/clients/client-snow-device-management/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: SnowDeviceManagementClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-snowball/package.json b/clients/client-snowball/package.json index 01c4e657f560..8178622d0819 100644 --- a/clients/client-snowball/package.json +++ b/clients/client-snowball/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-snowball/src/runtimeConfig.browser.ts b/clients/client-snowball/src/runtimeConfig.browser.ts index b2c5bdd882f8..9a4c02b3f754 100644 --- a/clients/client-snowball/src/runtimeConfig.browser.ts +++ b/clients/client-snowball/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: SnowballClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-snowball/src/runtimeConfig.shared.ts b/clients/client-snowball/src/runtimeConfig.shared.ts index 978f077f259e..43861d61860f 100644 --- a/clients/client-snowball/src/runtimeConfig.shared.ts +++ b/clients/client-snowball/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { SnowballClientConfig } from "./SnowballClient"; @@ -10,6 +11,8 @@ import { SnowballClientConfig } from "./SnowballClient"; */ export const getRuntimeConfig = (config: SnowballClientConfig) => ({ apiVersion: "2016-06-30", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-snowball/src/runtimeConfig.ts b/clients/client-snowball/src/runtimeConfig.ts index 94f643c908cd..71c54e15168e 100644 --- a/clients/client-snowball/src/runtimeConfig.ts +++ b/clients/client-snowball/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: SnowballClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-sns/package.json b/clients/client-sns/package.json index f477c11626ca..a3b66a5e1336 100644 --- a/clients/client-sns/package.json +++ b/clients/client-sns/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-sns/src/runtimeConfig.browser.ts b/clients/client-sns/src/runtimeConfig.browser.ts index 1dd870b6b604..024b53b6aba0 100644 --- a/clients/client-sns/src/runtimeConfig.browser.ts +++ b/clients/client-sns/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: SNSClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-sns/src/runtimeConfig.shared.ts b/clients/client-sns/src/runtimeConfig.shared.ts index f2812ac61423..968d5757e3f2 100644 --- a/clients/client-sns/src/runtimeConfig.shared.ts +++ b/clients/client-sns/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { SNSClientConfig } from "./SNSClient"; @@ -10,6 +11,8 @@ import { SNSClientConfig } from "./SNSClient"; */ export const getRuntimeConfig = (config: SNSClientConfig) => ({ apiVersion: "2010-03-31", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-sns/src/runtimeConfig.ts b/clients/client-sns/src/runtimeConfig.ts index 9ffac70e7e37..7455a9a2b23e 100644 --- a/clients/client-sns/src/runtimeConfig.ts +++ b/clients/client-sns/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: SNSClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-sqs/package.json b/clients/client-sqs/package.json index 6ff1d34dd024..9f7964b731be 100644 --- a/clients/client-sqs/package.json +++ b/clients/client-sqs/package.json @@ -43,6 +43,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-sqs/src/runtimeConfig.browser.ts b/clients/client-sqs/src/runtimeConfig.browser.ts index 393a984ce14e..6ccafec72497 100644 --- a/clients/client-sqs/src/runtimeConfig.browser.ts +++ b/clients/client-sqs/src/runtimeConfig.browser.ts @@ -8,7 +8,6 @@ import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fe import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { Md5 } from "@aws-sdk/md5-js"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -29,8 +28,6 @@ export const getRuntimeConfig = (config: SQSClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-sqs/src/runtimeConfig.shared.ts b/clients/client-sqs/src/runtimeConfig.shared.ts index 7bfc30f779ec..d784bb12a14b 100644 --- a/clients/client-sqs/src/runtimeConfig.shared.ts +++ b/clients/client-sqs/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { SQSClientConfig } from "./SQSClient"; @@ -10,6 +11,8 @@ import { SQSClientConfig } from "./SQSClient"; */ export const getRuntimeConfig = (config: SQSClientConfig) => ({ apiVersion: "2012-11-05", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-sqs/src/runtimeConfig.ts b/clients/client-sqs/src/runtimeConfig.ts index ebac1e2c5cd0..4a172254b6d9 100644 --- a/clients/client-sqs/src/runtimeConfig.ts +++ b/clients/client-sqs/src/runtimeConfig.ts @@ -19,7 +19,6 @@ import { import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; import { HashConstructor as __HashConstructor } from "@aws-sdk/types"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -42,8 +41,6 @@ export const getRuntimeConfig = (config: SQSClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-ssm-contacts/package.json b/clients/client-ssm-contacts/package.json index e5104228bde1..ee1e20060382 100644 --- a/clients/client-ssm-contacts/package.json +++ b/clients/client-ssm-contacts/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-ssm-contacts/src/runtimeConfig.browser.ts b/clients/client-ssm-contacts/src/runtimeConfig.browser.ts index 4c239c066769..a2ad1e922b34 100644 --- a/clients/client-ssm-contacts/src/runtimeConfig.browser.ts +++ b/clients/client-ssm-contacts/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: SSMContactsClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-ssm-contacts/src/runtimeConfig.shared.ts b/clients/client-ssm-contacts/src/runtimeConfig.shared.ts index 2ef6794df31c..f51311b2a2d9 100644 --- a/clients/client-ssm-contacts/src/runtimeConfig.shared.ts +++ b/clients/client-ssm-contacts/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { SSMContactsClientConfig } from "./SSMContactsClient"; @@ -10,6 +11,8 @@ import { SSMContactsClientConfig } from "./SSMContactsClient"; */ export const getRuntimeConfig = (config: SSMContactsClientConfig) => ({ apiVersion: "2021-05-03", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-ssm-contacts/src/runtimeConfig.ts b/clients/client-ssm-contacts/src/runtimeConfig.ts index e3c349d7b9ee..ebdd57a05173 100644 --- a/clients/client-ssm-contacts/src/runtimeConfig.ts +++ b/clients/client-ssm-contacts/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: SSMContactsClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-ssm-incidents/package.json b/clients/client-ssm-incidents/package.json index 7b7d0db962d8..84e1226793d0 100644 --- a/clients/client-ssm-incidents/package.json +++ b/clients/client-ssm-incidents/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-ssm-incidents/src/runtimeConfig.browser.ts b/clients/client-ssm-incidents/src/runtimeConfig.browser.ts index 15ee807acd3f..ae5107097a87 100644 --- a/clients/client-ssm-incidents/src/runtimeConfig.browser.ts +++ b/clients/client-ssm-incidents/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: SSMIncidentsClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-ssm-incidents/src/runtimeConfig.shared.ts b/clients/client-ssm-incidents/src/runtimeConfig.shared.ts index 10b3eca31f49..be0774f44686 100644 --- a/clients/client-ssm-incidents/src/runtimeConfig.shared.ts +++ b/clients/client-ssm-incidents/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { SSMIncidentsClientConfig } from "./SSMIncidentsClient"; @@ -10,6 +11,8 @@ import { SSMIncidentsClientConfig } from "./SSMIncidentsClient"; */ export const getRuntimeConfig = (config: SSMIncidentsClientConfig) => ({ apiVersion: "2018-05-10", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-ssm-incidents/src/runtimeConfig.ts b/clients/client-ssm-incidents/src/runtimeConfig.ts index 29fa7e3f4346..087f9ed0d1ab 100644 --- a/clients/client-ssm-incidents/src/runtimeConfig.ts +++ b/clients/client-ssm-incidents/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: SSMIncidentsClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-ssm/package.json b/clients/client-ssm/package.json index 9401f0c0967b..8d0631d4a4a2 100644 --- a/clients/client-ssm/package.json +++ b/clients/client-ssm/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-ssm/src/runtimeConfig.browser.ts b/clients/client-ssm/src/runtimeConfig.browser.ts index 144b959d3e42..00f122dbab6c 100644 --- a/clients/client-ssm/src/runtimeConfig.browser.ts +++ b/clients/client-ssm/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: SSMClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-ssm/src/runtimeConfig.shared.ts b/clients/client-ssm/src/runtimeConfig.shared.ts index b74afcfc6495..6d6dff44b2c7 100644 --- a/clients/client-ssm/src/runtimeConfig.shared.ts +++ b/clients/client-ssm/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { SSMClientConfig } from "./SSMClient"; @@ -10,6 +11,8 @@ import { SSMClientConfig } from "./SSMClient"; */ export const getRuntimeConfig = (config: SSMClientConfig) => ({ apiVersion: "2014-11-06", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-ssm/src/runtimeConfig.ts b/clients/client-ssm/src/runtimeConfig.ts index e978737723ac..3e9966ba0f32 100644 --- a/clients/client-ssm/src/runtimeConfig.ts +++ b/clients/client-ssm/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: SSMClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-sso-admin/package.json b/clients/client-sso-admin/package.json index 1273094aff87..224e72827670 100644 --- a/clients/client-sso-admin/package.json +++ b/clients/client-sso-admin/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-sso-admin/src/runtimeConfig.browser.ts b/clients/client-sso-admin/src/runtimeConfig.browser.ts index e2f003f0c4c5..3c9eb12a0d78 100644 --- a/clients/client-sso-admin/src/runtimeConfig.browser.ts +++ b/clients/client-sso-admin/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: SSOAdminClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-sso-admin/src/runtimeConfig.shared.ts b/clients/client-sso-admin/src/runtimeConfig.shared.ts index 4855f8f2e59b..2171cc5d0fdb 100644 --- a/clients/client-sso-admin/src/runtimeConfig.shared.ts +++ b/clients/client-sso-admin/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { SSOAdminClientConfig } from "./SSOAdminClient"; @@ -10,6 +11,8 @@ import { SSOAdminClientConfig } from "./SSOAdminClient"; */ export const getRuntimeConfig = (config: SSOAdminClientConfig) => ({ apiVersion: "2020-07-20", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-sso-admin/src/runtimeConfig.ts b/clients/client-sso-admin/src/runtimeConfig.ts index 05a0162f0f40..3bce9866d33b 100644 --- a/clients/client-sso-admin/src/runtimeConfig.ts +++ b/clients/client-sso-admin/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: SSOAdminClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-sso-oidc/package.json b/clients/client-sso-oidc/package.json index 196680ba641c..bb4f70784971 100644 --- a/clients/client-sso-oidc/package.json +++ b/clients/client-sso-oidc/package.json @@ -38,6 +38,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-sso-oidc/src/runtimeConfig.browser.ts b/clients/client-sso-oidc/src/runtimeConfig.browser.ts index 178415ccc9ce..dcf18e738a0d 100644 --- a/clients/client-sso-oidc/src/runtimeConfig.browser.ts +++ b/clients/client-sso-oidc/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: SSOOIDCClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? diff --git a/clients/client-sso-oidc/src/runtimeConfig.shared.ts b/clients/client-sso-oidc/src/runtimeConfig.shared.ts index 623465b64e75..1ec25c9035ee 100644 --- a/clients/client-sso-oidc/src/runtimeConfig.shared.ts +++ b/clients/client-sso-oidc/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { SSOOIDCClientConfig } from "./SSOOIDCClient"; @@ -10,6 +11,8 @@ import { SSOOIDCClientConfig } from "./SSOOIDCClient"; */ export const getRuntimeConfig = (config: SSOOIDCClientConfig) => ({ apiVersion: "2019-06-10", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-sso-oidc/src/runtimeConfig.ts b/clients/client-sso-oidc/src/runtimeConfig.ts index f3727d51a78c..025421acef08 100644 --- a/clients/client-sso-oidc/src/runtimeConfig.ts +++ b/clients/client-sso-oidc/src/runtimeConfig.ts @@ -16,7 +16,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -39,8 +38,6 @@ export const getRuntimeConfig = (config: SSOOIDCClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? diff --git a/clients/client-sso/package.json b/clients/client-sso/package.json index 3302c878d897..11c4fe4c364d 100644 --- a/clients/client-sso/package.json +++ b/clients/client-sso/package.json @@ -38,6 +38,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-sso/src/runtimeConfig.browser.ts b/clients/client-sso/src/runtimeConfig.browser.ts index a47cd93d913f..2fc4ea2a7a06 100644 --- a/clients/client-sso/src/runtimeConfig.browser.ts +++ b/clients/client-sso/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: SSOClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? diff --git a/clients/client-sso/src/runtimeConfig.shared.ts b/clients/client-sso/src/runtimeConfig.shared.ts index 32dbca111eb4..97c4b235fc17 100644 --- a/clients/client-sso/src/runtimeConfig.shared.ts +++ b/clients/client-sso/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { SSOClientConfig } from "./SSOClient"; @@ -10,6 +11,8 @@ import { SSOClientConfig } from "./SSOClient"; */ export const getRuntimeConfig = (config: SSOClientConfig) => ({ apiVersion: "2019-06-10", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-sso/src/runtimeConfig.ts b/clients/client-sso/src/runtimeConfig.ts index 8cd8d6642faf..abf512afac5a 100644 --- a/clients/client-sso/src/runtimeConfig.ts +++ b/clients/client-sso/src/runtimeConfig.ts @@ -16,7 +16,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -39,8 +38,6 @@ export const getRuntimeConfig = (config: SSOClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? diff --git a/clients/client-storage-gateway/package.json b/clients/client-storage-gateway/package.json index b94681817c1f..4832c1fc65d4 100644 --- a/clients/client-storage-gateway/package.json +++ b/clients/client-storage-gateway/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-storage-gateway/src/runtimeConfig.browser.ts b/clients/client-storage-gateway/src/runtimeConfig.browser.ts index 86046dcf4aa0..6b3c24144c6f 100644 --- a/clients/client-storage-gateway/src/runtimeConfig.browser.ts +++ b/clients/client-storage-gateway/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: StorageGatewayClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-storage-gateway/src/runtimeConfig.shared.ts b/clients/client-storage-gateway/src/runtimeConfig.shared.ts index 73040ed396d7..0b552bb602da 100644 --- a/clients/client-storage-gateway/src/runtimeConfig.shared.ts +++ b/clients/client-storage-gateway/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { StorageGatewayClientConfig } from "./StorageGatewayClient"; @@ -10,6 +11,8 @@ import { StorageGatewayClientConfig } from "./StorageGatewayClient"; */ export const getRuntimeConfig = (config: StorageGatewayClientConfig) => ({ apiVersion: "2013-06-30", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-storage-gateway/src/runtimeConfig.ts b/clients/client-storage-gateway/src/runtimeConfig.ts index 7111c33e369b..499a0ab4eaf8 100644 --- a/clients/client-storage-gateway/src/runtimeConfig.ts +++ b/clients/client-storage-gateway/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: StorageGatewayClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-sts/package.json b/clients/client-sts/package.json index 84175487c9a4..5aa178e6ede5 100644 --- a/clients/client-sts/package.json +++ b/clients/client-sts/package.json @@ -43,6 +43,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-sts/src/runtimeConfig.browser.ts b/clients/client-sts/src/runtimeConfig.browser.ts index ff14eacf7764..0f917531479d 100644 --- a/clients/client-sts/src/runtimeConfig.browser.ts +++ b/clients/client-sts/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: STSClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-sts/src/runtimeConfig.shared.ts b/clients/client-sts/src/runtimeConfig.shared.ts index efddeabd4b20..69ee49cf8dab 100644 --- a/clients/client-sts/src/runtimeConfig.shared.ts +++ b/clients/client-sts/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { STSClientConfig } from "./STSClient"; @@ -10,6 +11,8 @@ import { STSClientConfig } from "./STSClient"; */ export const getRuntimeConfig = (config: STSClientConfig) => ({ apiVersion: "2011-06-15", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-sts/src/runtimeConfig.ts b/clients/client-sts/src/runtimeConfig.ts index efcf6f87489d..24795591793e 100644 --- a/clients/client-sts/src/runtimeConfig.ts +++ b/clients/client-sts/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: STSClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-support-app/package.json b/clients/client-support-app/package.json index 62b0696c5d22..b2f17a499b93 100644 --- a/clients/client-support-app/package.json +++ b/clients/client-support-app/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-support-app/src/runtimeConfig.browser.ts b/clients/client-support-app/src/runtimeConfig.browser.ts index 27af67e4d471..42e48340bbc1 100644 --- a/clients/client-support-app/src/runtimeConfig.browser.ts +++ b/clients/client-support-app/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: SupportAppClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-support-app/src/runtimeConfig.shared.ts b/clients/client-support-app/src/runtimeConfig.shared.ts index e33f7ded48fe..162d930d7e0a 100644 --- a/clients/client-support-app/src/runtimeConfig.shared.ts +++ b/clients/client-support-app/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { SupportAppClientConfig } from "./SupportAppClient"; @@ -10,6 +11,8 @@ import { SupportAppClientConfig } from "./SupportAppClient"; */ export const getRuntimeConfig = (config: SupportAppClientConfig) => ({ apiVersion: "2021-08-20", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-support-app/src/runtimeConfig.ts b/clients/client-support-app/src/runtimeConfig.ts index b77cdeea1068..246f3e4f66f6 100644 --- a/clients/client-support-app/src/runtimeConfig.ts +++ b/clients/client-support-app/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: SupportAppClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-support/package.json b/clients/client-support/package.json index bc759e232c90..8a01f808ce3a 100644 --- a/clients/client-support/package.json +++ b/clients/client-support/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-support/src/runtimeConfig.browser.ts b/clients/client-support/src/runtimeConfig.browser.ts index 95ad73fc91a1..ef6111d7a571 100644 --- a/clients/client-support/src/runtimeConfig.browser.ts +++ b/clients/client-support/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: SupportClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-support/src/runtimeConfig.shared.ts b/clients/client-support/src/runtimeConfig.shared.ts index 5377d90bd689..f01fe512e53d 100644 --- a/clients/client-support/src/runtimeConfig.shared.ts +++ b/clients/client-support/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { SupportClientConfig } from "./SupportClient"; @@ -10,6 +11,8 @@ import { SupportClientConfig } from "./SupportClient"; */ export const getRuntimeConfig = (config: SupportClientConfig) => ({ apiVersion: "2013-04-15", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-support/src/runtimeConfig.ts b/clients/client-support/src/runtimeConfig.ts index 6203538b95d0..0d5058c7ea14 100644 --- a/clients/client-support/src/runtimeConfig.ts +++ b/clients/client-support/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: SupportClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-swf/package.json b/clients/client-swf/package.json index 9a667f0e08df..135cf48ecd4d 100644 --- a/clients/client-swf/package.json +++ b/clients/client-swf/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-swf/src/runtimeConfig.browser.ts b/clients/client-swf/src/runtimeConfig.browser.ts index 65be5a404d03..1f452041ca09 100644 --- a/clients/client-swf/src/runtimeConfig.browser.ts +++ b/clients/client-swf/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: SWFClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-swf/src/runtimeConfig.shared.ts b/clients/client-swf/src/runtimeConfig.shared.ts index d4ba7c213564..6cc6525670b5 100644 --- a/clients/client-swf/src/runtimeConfig.shared.ts +++ b/clients/client-swf/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { SWFClientConfig } from "./SWFClient"; @@ -10,6 +11,8 @@ import { SWFClientConfig } from "./SWFClient"; */ export const getRuntimeConfig = (config: SWFClientConfig) => ({ apiVersion: "2012-01-25", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-swf/src/runtimeConfig.ts b/clients/client-swf/src/runtimeConfig.ts index 819b9db0f6d8..f72ff5fd970d 100644 --- a/clients/client-swf/src/runtimeConfig.ts +++ b/clients/client-swf/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: SWFClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-synthetics/package.json b/clients/client-synthetics/package.json index e2281a8051c2..d1d4092a9f9a 100644 --- a/clients/client-synthetics/package.json +++ b/clients/client-synthetics/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-synthetics/src/runtimeConfig.browser.ts b/clients/client-synthetics/src/runtimeConfig.browser.ts index 83b1ada06a74..1e007d9c7980 100644 --- a/clients/client-synthetics/src/runtimeConfig.browser.ts +++ b/clients/client-synthetics/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: SyntheticsClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-synthetics/src/runtimeConfig.shared.ts b/clients/client-synthetics/src/runtimeConfig.shared.ts index b42e60957276..47af86e6314d 100644 --- a/clients/client-synthetics/src/runtimeConfig.shared.ts +++ b/clients/client-synthetics/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { SyntheticsClientConfig } from "./SyntheticsClient"; @@ -10,6 +11,8 @@ import { SyntheticsClientConfig } from "./SyntheticsClient"; */ export const getRuntimeConfig = (config: SyntheticsClientConfig) => ({ apiVersion: "2017-10-11", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-synthetics/src/runtimeConfig.ts b/clients/client-synthetics/src/runtimeConfig.ts index e62db29dbe2d..3b3ecf5e5b6a 100644 --- a/clients/client-synthetics/src/runtimeConfig.ts +++ b/clients/client-synthetics/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: SyntheticsClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-textract/package.json b/clients/client-textract/package.json index dd2a31719542..53611204cf2d 100644 --- a/clients/client-textract/package.json +++ b/clients/client-textract/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-textract/src/runtimeConfig.browser.ts b/clients/client-textract/src/runtimeConfig.browser.ts index 96bc60390430..f21ecb9cce47 100644 --- a/clients/client-textract/src/runtimeConfig.browser.ts +++ b/clients/client-textract/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: TextractClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-textract/src/runtimeConfig.shared.ts b/clients/client-textract/src/runtimeConfig.shared.ts index da31b11d61bf..34568eec50d7 100644 --- a/clients/client-textract/src/runtimeConfig.shared.ts +++ b/clients/client-textract/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { TextractClientConfig } from "./TextractClient"; @@ -10,6 +11,8 @@ import { TextractClientConfig } from "./TextractClient"; */ export const getRuntimeConfig = (config: TextractClientConfig) => ({ apiVersion: "2018-06-27", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-textract/src/runtimeConfig.ts b/clients/client-textract/src/runtimeConfig.ts index 5fcc91d6ca6f..8b0787fe681e 100644 --- a/clients/client-textract/src/runtimeConfig.ts +++ b/clients/client-textract/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: TextractClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-timestream-query/package.json b/clients/client-timestream-query/package.json index d7dd480a811e..dd8386f62769 100644 --- a/clients/client-timestream-query/package.json +++ b/clients/client-timestream-query/package.json @@ -42,6 +42,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-timestream-query/src/runtimeConfig.browser.ts b/clients/client-timestream-query/src/runtimeConfig.browser.ts index 99458932b271..d41e00bda3be 100644 --- a/clients/client-timestream-query/src/runtimeConfig.browser.ts +++ b/clients/client-timestream-query/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: TimestreamQueryClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-timestream-query/src/runtimeConfig.shared.ts b/clients/client-timestream-query/src/runtimeConfig.shared.ts index d0e79f764c27..dad462e46797 100644 --- a/clients/client-timestream-query/src/runtimeConfig.shared.ts +++ b/clients/client-timestream-query/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { TimestreamQueryClientConfig } from "./TimestreamQueryClient"; @@ -10,6 +11,8 @@ import { TimestreamQueryClientConfig } from "./TimestreamQueryClient"; */ export const getRuntimeConfig = (config: TimestreamQueryClientConfig) => ({ apiVersion: "2018-11-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-timestream-query/src/runtimeConfig.ts b/clients/client-timestream-query/src/runtimeConfig.ts index 10842e137910..f18281744d76 100644 --- a/clients/client-timestream-query/src/runtimeConfig.ts +++ b/clients/client-timestream-query/src/runtimeConfig.ts @@ -19,7 +19,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -42,8 +41,6 @@ export const getRuntimeConfig = (config: TimestreamQueryClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-timestream-write/package.json b/clients/client-timestream-write/package.json index 79e1e84a8efd..4fc21dd7927d 100644 --- a/clients/client-timestream-write/package.json +++ b/clients/client-timestream-write/package.json @@ -42,6 +42,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-timestream-write/src/runtimeConfig.browser.ts b/clients/client-timestream-write/src/runtimeConfig.browser.ts index 98663e18faf0..645adf4bed8c 100644 --- a/clients/client-timestream-write/src/runtimeConfig.browser.ts +++ b/clients/client-timestream-write/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: TimestreamWriteClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-timestream-write/src/runtimeConfig.shared.ts b/clients/client-timestream-write/src/runtimeConfig.shared.ts index 5c50adb0f60a..fef38ecb6647 100644 --- a/clients/client-timestream-write/src/runtimeConfig.shared.ts +++ b/clients/client-timestream-write/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { TimestreamWriteClientConfig } from "./TimestreamWriteClient"; @@ -10,6 +11,8 @@ import { TimestreamWriteClientConfig } from "./TimestreamWriteClient"; */ export const getRuntimeConfig = (config: TimestreamWriteClientConfig) => ({ apiVersion: "2018-11-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-timestream-write/src/runtimeConfig.ts b/clients/client-timestream-write/src/runtimeConfig.ts index 4b9c093945f1..e5b084549d3a 100644 --- a/clients/client-timestream-write/src/runtimeConfig.ts +++ b/clients/client-timestream-write/src/runtimeConfig.ts @@ -19,7 +19,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -42,8 +41,6 @@ export const getRuntimeConfig = (config: TimestreamWriteClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-transcribe-streaming/package.json b/clients/client-transcribe-streaming/package.json index 3f833d675242..1b2714f84aed 100644 --- a/clients/client-transcribe-streaming/package.json +++ b/clients/client-transcribe-streaming/package.json @@ -48,6 +48,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-transcribe-streaming/src/runtimeConfig.browser.ts b/clients/client-transcribe-streaming/src/runtimeConfig.browser.ts index b1dd1f4054b9..ced0343569fc 100644 --- a/clients/client-transcribe-streaming/src/runtimeConfig.browser.ts +++ b/clients/client-transcribe-streaming/src/runtimeConfig.browser.ts @@ -9,7 +9,6 @@ import { streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; import { WebSocketHandler, eventStreamPayloadHandler } from "@aws-sdk/middleware-sdk-transcribe-streaming"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -30,8 +29,6 @@ export const getRuntimeConfig = (config: TranscribeStreamingClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-transcribe-streaming/src/runtimeConfig.shared.ts b/clients/client-transcribe-streaming/src/runtimeConfig.shared.ts index a14faafa840d..7be708f1fe79 100644 --- a/clients/client-transcribe-streaming/src/runtimeConfig.shared.ts +++ b/clients/client-transcribe-streaming/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { TranscribeStreamingClientConfig } from "./TranscribeStreamingClient"; @@ -10,6 +11,8 @@ import { TranscribeStreamingClientConfig } from "./TranscribeStreamingClient"; */ export const getRuntimeConfig = (config: TranscribeStreamingClientConfig) => ({ apiVersion: "2017-10-26", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-transcribe-streaming/src/runtimeConfig.ts b/clients/client-transcribe-streaming/src/runtimeConfig.ts index 80013ef5fb14..81c1447f29c4 100644 --- a/clients/client-transcribe-streaming/src/runtimeConfig.ts +++ b/clients/client-transcribe-streaming/src/runtimeConfig.ts @@ -20,7 +20,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttp2Handler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -43,8 +42,6 @@ export const getRuntimeConfig = (config: TranscribeStreamingClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-transcribe/package.json b/clients/client-transcribe/package.json index 28732cbdb3a5..3362de3cab57 100644 --- a/clients/client-transcribe/package.json +++ b/clients/client-transcribe/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-transcribe/src/runtimeConfig.browser.ts b/clients/client-transcribe/src/runtimeConfig.browser.ts index 4c72a2c1d3c3..b29ab6c24254 100644 --- a/clients/client-transcribe/src/runtimeConfig.browser.ts +++ b/clients/client-transcribe/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: TranscribeClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-transcribe/src/runtimeConfig.shared.ts b/clients/client-transcribe/src/runtimeConfig.shared.ts index db29d4c502de..07b5704ca369 100644 --- a/clients/client-transcribe/src/runtimeConfig.shared.ts +++ b/clients/client-transcribe/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { TranscribeClientConfig } from "./TranscribeClient"; @@ -10,6 +11,8 @@ import { TranscribeClientConfig } from "./TranscribeClient"; */ export const getRuntimeConfig = (config: TranscribeClientConfig) => ({ apiVersion: "2017-10-26", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-transcribe/src/runtimeConfig.ts b/clients/client-transcribe/src/runtimeConfig.ts index e07f86d71968..ccefb04bf521 100644 --- a/clients/client-transcribe/src/runtimeConfig.ts +++ b/clients/client-transcribe/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: TranscribeClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-transfer/package.json b/clients/client-transfer/package.json index 3a4c0f5fe229..6ac9a2535fd6 100644 --- a/clients/client-transfer/package.json +++ b/clients/client-transfer/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-transfer/src/runtimeConfig.browser.ts b/clients/client-transfer/src/runtimeConfig.browser.ts index 0b5e7fd3d390..2d8f18b5ab00 100644 --- a/clients/client-transfer/src/runtimeConfig.browser.ts +++ b/clients/client-transfer/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: TransferClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-transfer/src/runtimeConfig.shared.ts b/clients/client-transfer/src/runtimeConfig.shared.ts index 449784a41106..b9b5c46d8f61 100644 --- a/clients/client-transfer/src/runtimeConfig.shared.ts +++ b/clients/client-transfer/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { TransferClientConfig } from "./TransferClient"; @@ -10,6 +11,8 @@ import { TransferClientConfig } from "./TransferClient"; */ export const getRuntimeConfig = (config: TransferClientConfig) => ({ apiVersion: "2018-11-05", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-transfer/src/runtimeConfig.ts b/clients/client-transfer/src/runtimeConfig.ts index a729e4cd5f7c..6cc641673f7a 100644 --- a/clients/client-transfer/src/runtimeConfig.ts +++ b/clients/client-transfer/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: TransferClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-translate/package.json b/clients/client-translate/package.json index 7808c91f65af..e35e2dc4a431 100644 --- a/clients/client-translate/package.json +++ b/clients/client-translate/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-translate/src/runtimeConfig.browser.ts b/clients/client-translate/src/runtimeConfig.browser.ts index a090b36c0a10..8a44b75cff84 100644 --- a/clients/client-translate/src/runtimeConfig.browser.ts +++ b/clients/client-translate/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: TranslateClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-translate/src/runtimeConfig.shared.ts b/clients/client-translate/src/runtimeConfig.shared.ts index 0db5ecad0957..541b3f61b132 100644 --- a/clients/client-translate/src/runtimeConfig.shared.ts +++ b/clients/client-translate/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { TranslateClientConfig } from "./TranslateClient"; @@ -10,6 +11,8 @@ import { TranslateClientConfig } from "./TranslateClient"; */ export const getRuntimeConfig = (config: TranslateClientConfig) => ({ apiVersion: "2017-07-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-translate/src/runtimeConfig.ts b/clients/client-translate/src/runtimeConfig.ts index 5e5a68d51c17..3de8417ee113 100644 --- a/clients/client-translate/src/runtimeConfig.ts +++ b/clients/client-translate/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: TranslateClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-voice-id/package.json b/clients/client-voice-id/package.json index 8fdb2e4c7200..5116db2f57f7 100644 --- a/clients/client-voice-id/package.json +++ b/clients/client-voice-id/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-voice-id/src/runtimeConfig.browser.ts b/clients/client-voice-id/src/runtimeConfig.browser.ts index 8dbc94d43c92..cc4d03691210 100644 --- a/clients/client-voice-id/src/runtimeConfig.browser.ts +++ b/clients/client-voice-id/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: VoiceIDClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-voice-id/src/runtimeConfig.shared.ts b/clients/client-voice-id/src/runtimeConfig.shared.ts index a0630625373f..8b36665bbe8f 100644 --- a/clients/client-voice-id/src/runtimeConfig.shared.ts +++ b/clients/client-voice-id/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { VoiceIDClientConfig } from "./VoiceIDClient"; @@ -10,6 +11,8 @@ import { VoiceIDClientConfig } from "./VoiceIDClient"; */ export const getRuntimeConfig = (config: VoiceIDClientConfig) => ({ apiVersion: "2021-09-27", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-voice-id/src/runtimeConfig.ts b/clients/client-voice-id/src/runtimeConfig.ts index 406929a86f62..b22c2e7bc43c 100644 --- a/clients/client-voice-id/src/runtimeConfig.ts +++ b/clients/client-voice-id/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: VoiceIDClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-waf-regional/package.json b/clients/client-waf-regional/package.json index 548632955e4e..9c28bfd2f87f 100644 --- a/clients/client-waf-regional/package.json +++ b/clients/client-waf-regional/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-waf-regional/src/runtimeConfig.browser.ts b/clients/client-waf-regional/src/runtimeConfig.browser.ts index 7c415d883c4b..68c485821e71 100644 --- a/clients/client-waf-regional/src/runtimeConfig.browser.ts +++ b/clients/client-waf-regional/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: WAFRegionalClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-waf-regional/src/runtimeConfig.shared.ts b/clients/client-waf-regional/src/runtimeConfig.shared.ts index ba184c4c0f9c..4906e59e951b 100644 --- a/clients/client-waf-regional/src/runtimeConfig.shared.ts +++ b/clients/client-waf-regional/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { WAFRegionalClientConfig } from "./WAFRegionalClient"; @@ -10,6 +11,8 @@ import { WAFRegionalClientConfig } from "./WAFRegionalClient"; */ export const getRuntimeConfig = (config: WAFRegionalClientConfig) => ({ apiVersion: "2016-11-28", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-waf-regional/src/runtimeConfig.ts b/clients/client-waf-regional/src/runtimeConfig.ts index 50c4c6ef8a37..1ea0b7e3c200 100644 --- a/clients/client-waf-regional/src/runtimeConfig.ts +++ b/clients/client-waf-regional/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: WAFRegionalClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-waf/package.json b/clients/client-waf/package.json index fc0f459e959b..190eefe849db 100644 --- a/clients/client-waf/package.json +++ b/clients/client-waf/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-waf/src/runtimeConfig.browser.ts b/clients/client-waf/src/runtimeConfig.browser.ts index 2e68fbd95c8d..801afa8654e5 100644 --- a/clients/client-waf/src/runtimeConfig.browser.ts +++ b/clients/client-waf/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: WAFClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-waf/src/runtimeConfig.shared.ts b/clients/client-waf/src/runtimeConfig.shared.ts index f1f04ab6d183..827258b54405 100644 --- a/clients/client-waf/src/runtimeConfig.shared.ts +++ b/clients/client-waf/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { WAFClientConfig } from "./WAFClient"; @@ -10,6 +11,8 @@ import { WAFClientConfig } from "./WAFClient"; */ export const getRuntimeConfig = (config: WAFClientConfig) => ({ apiVersion: "2015-08-24", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-waf/src/runtimeConfig.ts b/clients/client-waf/src/runtimeConfig.ts index 7c9d4d174da3..227b74977158 100644 --- a/clients/client-waf/src/runtimeConfig.ts +++ b/clients/client-waf/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: WAFClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-wafv2/package.json b/clients/client-wafv2/package.json index 699fce689985..fd746959430b 100644 --- a/clients/client-wafv2/package.json +++ b/clients/client-wafv2/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-wafv2/src/runtimeConfig.browser.ts b/clients/client-wafv2/src/runtimeConfig.browser.ts index 5f1be0e244d7..eadbf9e1e3f3 100644 --- a/clients/client-wafv2/src/runtimeConfig.browser.ts +++ b/clients/client-wafv2/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: WAFV2ClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-wafv2/src/runtimeConfig.shared.ts b/clients/client-wafv2/src/runtimeConfig.shared.ts index 221cc7e81edc..aea025283143 100644 --- a/clients/client-wafv2/src/runtimeConfig.shared.ts +++ b/clients/client-wafv2/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { WAFV2ClientConfig } from "./WAFV2Client"; @@ -10,6 +11,8 @@ import { WAFV2ClientConfig } from "./WAFV2Client"; */ export const getRuntimeConfig = (config: WAFV2ClientConfig) => ({ apiVersion: "2019-07-29", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-wafv2/src/runtimeConfig.ts b/clients/client-wafv2/src/runtimeConfig.ts index c397d1520d57..f8e8036cc2d7 100644 --- a/clients/client-wafv2/src/runtimeConfig.ts +++ b/clients/client-wafv2/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: WAFV2ClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-wellarchitected/package.json b/clients/client-wellarchitected/package.json index ef7c0d0c1ea6..ae2017cd465e 100644 --- a/clients/client-wellarchitected/package.json +++ b/clients/client-wellarchitected/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-wellarchitected/src/runtimeConfig.browser.ts b/clients/client-wellarchitected/src/runtimeConfig.browser.ts index 8a517cee98f6..2f9f7484b29b 100644 --- a/clients/client-wellarchitected/src/runtimeConfig.browser.ts +++ b/clients/client-wellarchitected/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: WellArchitectedClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-wellarchitected/src/runtimeConfig.shared.ts b/clients/client-wellarchitected/src/runtimeConfig.shared.ts index 25431a557785..0b07534cae32 100644 --- a/clients/client-wellarchitected/src/runtimeConfig.shared.ts +++ b/clients/client-wellarchitected/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { WellArchitectedClientConfig } from "./WellArchitectedClient"; @@ -10,6 +11,8 @@ import { WellArchitectedClientConfig } from "./WellArchitectedClient"; */ export const getRuntimeConfig = (config: WellArchitectedClientConfig) => ({ apiVersion: "2020-03-31", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-wellarchitected/src/runtimeConfig.ts b/clients/client-wellarchitected/src/runtimeConfig.ts index 4e66d35aef79..483b12c2a753 100644 --- a/clients/client-wellarchitected/src/runtimeConfig.ts +++ b/clients/client-wellarchitected/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: WellArchitectedClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-wisdom/package.json b/clients/client-wisdom/package.json index f7e580af609e..ea341c2a778d 100644 --- a/clients/client-wisdom/package.json +++ b/clients/client-wisdom/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-wisdom/src/runtimeConfig.browser.ts b/clients/client-wisdom/src/runtimeConfig.browser.ts index 5a99ddbde547..34226f605c09 100644 --- a/clients/client-wisdom/src/runtimeConfig.browser.ts +++ b/clients/client-wisdom/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: WisdomClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-wisdom/src/runtimeConfig.shared.ts b/clients/client-wisdom/src/runtimeConfig.shared.ts index 6350a0deb007..04883feedf36 100644 --- a/clients/client-wisdom/src/runtimeConfig.shared.ts +++ b/clients/client-wisdom/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { WisdomClientConfig } from "./WisdomClient"; @@ -10,6 +11,8 @@ import { WisdomClientConfig } from "./WisdomClient"; */ export const getRuntimeConfig = (config: WisdomClientConfig) => ({ apiVersion: "2020-10-19", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-wisdom/src/runtimeConfig.ts b/clients/client-wisdom/src/runtimeConfig.ts index 8da70b063d4b..5c94dfdb4e15 100644 --- a/clients/client-wisdom/src/runtimeConfig.ts +++ b/clients/client-wisdom/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: WisdomClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-workdocs/package.json b/clients/client-workdocs/package.json index 966816b7dd04..3aacc97a5d95 100644 --- a/clients/client-workdocs/package.json +++ b/clients/client-workdocs/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-workdocs/src/runtimeConfig.browser.ts b/clients/client-workdocs/src/runtimeConfig.browser.ts index e87fb682293e..fece64999454 100644 --- a/clients/client-workdocs/src/runtimeConfig.browser.ts +++ b/clients/client-workdocs/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: WorkDocsClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-workdocs/src/runtimeConfig.shared.ts b/clients/client-workdocs/src/runtimeConfig.shared.ts index 4b8816edc642..43225a7b27bd 100644 --- a/clients/client-workdocs/src/runtimeConfig.shared.ts +++ b/clients/client-workdocs/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { WorkDocsClientConfig } from "./WorkDocsClient"; @@ -10,6 +11,8 @@ import { WorkDocsClientConfig } from "./WorkDocsClient"; */ export const getRuntimeConfig = (config: WorkDocsClientConfig) => ({ apiVersion: "2016-05-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-workdocs/src/runtimeConfig.ts b/clients/client-workdocs/src/runtimeConfig.ts index 001a4c20bef2..d55c978282d6 100644 --- a/clients/client-workdocs/src/runtimeConfig.ts +++ b/clients/client-workdocs/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: WorkDocsClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-worklink/package.json b/clients/client-worklink/package.json index 0944b23767cd..6b6daea79493 100644 --- a/clients/client-worklink/package.json +++ b/clients/client-worklink/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-worklink/src/runtimeConfig.browser.ts b/clients/client-worklink/src/runtimeConfig.browser.ts index b326dcb7c972..a4306de1ec7b 100644 --- a/clients/client-worklink/src/runtimeConfig.browser.ts +++ b/clients/client-worklink/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: WorkLinkClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-worklink/src/runtimeConfig.shared.ts b/clients/client-worklink/src/runtimeConfig.shared.ts index fe40151c8f8d..421710969bda 100644 --- a/clients/client-worklink/src/runtimeConfig.shared.ts +++ b/clients/client-worklink/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { WorkLinkClientConfig } from "./WorkLinkClient"; @@ -10,6 +11,8 @@ import { WorkLinkClientConfig } from "./WorkLinkClient"; */ export const getRuntimeConfig = (config: WorkLinkClientConfig) => ({ apiVersion: "2018-09-25", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-worklink/src/runtimeConfig.ts b/clients/client-worklink/src/runtimeConfig.ts index 173b8a5cfc19..be3104cf829d 100644 --- a/clients/client-worklink/src/runtimeConfig.ts +++ b/clients/client-worklink/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: WorkLinkClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-workmail/package.json b/clients/client-workmail/package.json index 0679df587f13..e0c174702717 100644 --- a/clients/client-workmail/package.json +++ b/clients/client-workmail/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-workmail/src/runtimeConfig.browser.ts b/clients/client-workmail/src/runtimeConfig.browser.ts index b0d835e37038..60de8daa2298 100644 --- a/clients/client-workmail/src/runtimeConfig.browser.ts +++ b/clients/client-workmail/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: WorkMailClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-workmail/src/runtimeConfig.shared.ts b/clients/client-workmail/src/runtimeConfig.shared.ts index d61bc3b56a8a..597b6c96d0ad 100644 --- a/clients/client-workmail/src/runtimeConfig.shared.ts +++ b/clients/client-workmail/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { WorkMailClientConfig } from "./WorkMailClient"; @@ -10,6 +11,8 @@ import { WorkMailClientConfig } from "./WorkMailClient"; */ export const getRuntimeConfig = (config: WorkMailClientConfig) => ({ apiVersion: "2017-10-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-workmail/src/runtimeConfig.ts b/clients/client-workmail/src/runtimeConfig.ts index b884f420a43b..d2b29e727104 100644 --- a/clients/client-workmail/src/runtimeConfig.ts +++ b/clients/client-workmail/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: WorkMailClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-workmailmessageflow/package.json b/clients/client-workmailmessageflow/package.json index 5646f8a7a17c..205dc15c3d84 100644 --- a/clients/client-workmailmessageflow/package.json +++ b/clients/client-workmailmessageflow/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-workmailmessageflow/src/runtimeConfig.browser.ts b/clients/client-workmailmessageflow/src/runtimeConfig.browser.ts index b40f332a77cf..434c6e615ed5 100644 --- a/clients/client-workmailmessageflow/src/runtimeConfig.browser.ts +++ b/clients/client-workmailmessageflow/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { sdkStreamMixin } from "@aws-sdk/util-stream-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; @@ -29,8 +28,6 @@ export const getRuntimeConfig = (config: WorkMailMessageFlowClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-workmailmessageflow/src/runtimeConfig.shared.ts b/clients/client-workmailmessageflow/src/runtimeConfig.shared.ts index c123fae90c4b..2ed35e0096ec 100644 --- a/clients/client-workmailmessageflow/src/runtimeConfig.shared.ts +++ b/clients/client-workmailmessageflow/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { WorkMailMessageFlowClientConfig } from "./WorkMailMessageFlowClient"; @@ -10,6 +11,8 @@ import { WorkMailMessageFlowClientConfig } from "./WorkMailMessageFlowClient"; */ export const getRuntimeConfig = (config: WorkMailMessageFlowClientConfig) => ({ apiVersion: "2019-05-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-workmailmessageflow/src/runtimeConfig.ts b/clients/client-workmailmessageflow/src/runtimeConfig.ts index d973358839ff..5774b4a502e0 100644 --- a/clients/client-workmailmessageflow/src/runtimeConfig.ts +++ b/clients/client-workmailmessageflow/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { sdkStreamMixin } from "@aws-sdk/util-stream-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -42,8 +41,6 @@ export const getRuntimeConfig = (config: WorkMailMessageFlowClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-workspaces-web/package.json b/clients/client-workspaces-web/package.json index cd4bc6a95252..cef5f696baf9 100644 --- a/clients/client-workspaces-web/package.json +++ b/clients/client-workspaces-web/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-workspaces-web/src/runtimeConfig.browser.ts b/clients/client-workspaces-web/src/runtimeConfig.browser.ts index 8d4b2e322151..69a498ce716b 100644 --- a/clients/client-workspaces-web/src/runtimeConfig.browser.ts +++ b/clients/client-workspaces-web/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: WorkSpacesWebClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-workspaces-web/src/runtimeConfig.shared.ts b/clients/client-workspaces-web/src/runtimeConfig.shared.ts index 855b1bbf312a..dad9f6c64a40 100644 --- a/clients/client-workspaces-web/src/runtimeConfig.shared.ts +++ b/clients/client-workspaces-web/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { WorkSpacesWebClientConfig } from "./WorkSpacesWebClient"; @@ -10,6 +11,8 @@ import { WorkSpacesWebClientConfig } from "./WorkSpacesWebClient"; */ export const getRuntimeConfig = (config: WorkSpacesWebClientConfig) => ({ apiVersion: "2020-07-08", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-workspaces-web/src/runtimeConfig.ts b/clients/client-workspaces-web/src/runtimeConfig.ts index 55f0ecdb917c..ec1944101b04 100644 --- a/clients/client-workspaces-web/src/runtimeConfig.ts +++ b/clients/client-workspaces-web/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: WorkSpacesWebClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-workspaces/package.json b/clients/client-workspaces/package.json index 3e8d4790bb81..60aaea3d2049 100644 --- a/clients/client-workspaces/package.json +++ b/clients/client-workspaces/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-workspaces/src/runtimeConfig.browser.ts b/clients/client-workspaces/src/runtimeConfig.browser.ts index c246d29d841b..1752ab7ed2a6 100644 --- a/clients/client-workspaces/src/runtimeConfig.browser.ts +++ b/clients/client-workspaces/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: WorkSpacesClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-workspaces/src/runtimeConfig.shared.ts b/clients/client-workspaces/src/runtimeConfig.shared.ts index adfd09970d1a..4fce8b75d641 100644 --- a/clients/client-workspaces/src/runtimeConfig.shared.ts +++ b/clients/client-workspaces/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { WorkSpacesClientConfig } from "./WorkSpacesClient"; @@ -10,6 +11,8 @@ import { WorkSpacesClientConfig } from "./WorkSpacesClient"; */ export const getRuntimeConfig = (config: WorkSpacesClientConfig) => ({ apiVersion: "2015-04-08", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-workspaces/src/runtimeConfig.ts b/clients/client-workspaces/src/runtimeConfig.ts index f820b98b5ba0..788ec17a5c5b 100644 --- a/clients/client-workspaces/src/runtimeConfig.ts +++ b/clients/client-workspaces/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: WorkSpacesClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/clients/client-xray/package.json b/clients/client-xray/package.json index 393f1f36290a..26faecf85dfd 100644 --- a/clients/client-xray/package.json +++ b/clients/client-xray/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/clients/client-xray/src/runtimeConfig.browser.ts b/clients/client-xray/src/runtimeConfig.browser.ts index a1812f81621a..84a7dcdf1e69 100644 --- a/clients/client-xray/src/runtimeConfig.browser.ts +++ b/clients/client-xray/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: XRayClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/clients/client-xray/src/runtimeConfig.shared.ts b/clients/client-xray/src/runtimeConfig.shared.ts index 0d150d5841fb..0c42d221754c 100644 --- a/clients/client-xray/src/runtimeConfig.shared.ts +++ b/clients/client-xray/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultEndpointResolver } from "./endpoint/endpointResolver"; import { XRayClientConfig } from "./XRayClient"; @@ -10,6 +11,8 @@ import { XRayClientConfig } from "./XRayClient"; */ export const getRuntimeConfig = (config: XRayClientConfig) => ({ apiVersion: "2016-04-12", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, logger: config?.logger ?? ({} as __Logger), diff --git a/clients/client-xray/src/runtimeConfig.ts b/clients/client-xray/src/runtimeConfig.ts index ffeb7d3db185..ff190ae0cd0f 100644 --- a/clients/client-xray/src/runtimeConfig.ts +++ b/clients/client-xray/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: XRayClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/private/aws-echo-service/package.json b/private/aws-echo-service/package.json index b63f6488f57c..71c4e6e401fb 100644 --- a/private/aws-echo-service/package.json +++ b/private/aws-echo-service/package.json @@ -38,6 +38,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/private/aws-echo-service/src/runtimeConfig.browser.ts b/private/aws-echo-service/src/runtimeConfig.browser.ts index 22d856dddddf..86a9539cd9bd 100644 --- a/private/aws-echo-service/src/runtimeConfig.browser.ts +++ b/private/aws-echo-service/src/runtimeConfig.browser.ts @@ -6,7 +6,6 @@ import { Sha256 } from "@aws-crypto/sha256-browser"; import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver"; import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -27,8 +26,6 @@ export const getRuntimeConfig = (config: EchoServiceClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ clientVersion: packageInfo.version }), diff --git a/private/aws-echo-service/src/runtimeConfig.shared.ts b/private/aws-echo-service/src/runtimeConfig.shared.ts index 938b3c4ea126..06d473ca074c 100644 --- a/private/aws-echo-service/src/runtimeConfig.shared.ts +++ b/private/aws-echo-service/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { EchoServiceClientConfig } from "./EchoServiceClient"; /** @@ -8,6 +9,8 @@ import { EchoServiceClientConfig } from "./EchoServiceClient"; */ export const getRuntimeConfig = (config: EchoServiceClientConfig) => ({ apiVersion: "2018-05-10", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, logger: config?.logger ?? ({} as __Logger), urlParser: config?.urlParser ?? parseUrl, diff --git a/private/aws-echo-service/src/runtimeConfig.ts b/private/aws-echo-service/src/runtimeConfig.ts index 390dc91f5110..fdb1ead4661e 100644 --- a/private/aws-echo-service/src/runtimeConfig.ts +++ b/private/aws-echo-service/src/runtimeConfig.ts @@ -14,7 +14,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -37,8 +36,6 @@ export const getRuntimeConfig = (config: EchoServiceClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ clientVersion: packageInfo.version }), diff --git a/private/aws-protocoltests-ec2/package.json b/private/aws-protocoltests-ec2/package.json index 45ab0e7bc33f..b7b2886e43bf 100644 --- a/private/aws-protocoltests-ec2/package.json +++ b/private/aws-protocoltests-ec2/package.json @@ -38,6 +38,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/private/aws-protocoltests-ec2/src/runtimeConfig.browser.ts b/private/aws-protocoltests-ec2/src/runtimeConfig.browser.ts index 1c4bab6f0c01..db880fa3eb01 100644 --- a/private/aws-protocoltests-ec2/src/runtimeConfig.browser.ts +++ b/private/aws-protocoltests-ec2/src/runtimeConfig.browser.ts @@ -6,7 +6,6 @@ import { Sha256 } from "@aws-crypto/sha256-browser"; import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver"; import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -27,8 +26,6 @@ export const getRuntimeConfig = (config: EC2ProtocolClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? diff --git a/private/aws-protocoltests-ec2/src/runtimeConfig.shared.ts b/private/aws-protocoltests-ec2/src/runtimeConfig.shared.ts index 377fc52e08a2..21c7fd7e2e0f 100644 --- a/private/aws-protocoltests-ec2/src/runtimeConfig.shared.ts +++ b/private/aws-protocoltests-ec2/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { EC2ProtocolClientConfig } from "./EC2ProtocolClient"; import { defaultRegionInfoProvider } from "./endpoints"; @@ -10,6 +11,8 @@ import { defaultRegionInfoProvider } from "./endpoints"; */ export const getRuntimeConfig = (config: EC2ProtocolClientConfig) => ({ apiVersion: "2020-01-08", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, logger: config?.logger ?? ({} as __Logger), regionInfoProvider: config?.regionInfoProvider ?? defaultRegionInfoProvider, diff --git a/private/aws-protocoltests-ec2/src/runtimeConfig.ts b/private/aws-protocoltests-ec2/src/runtimeConfig.ts index 65b352c7d94b..6582f38c9af1 100644 --- a/private/aws-protocoltests-ec2/src/runtimeConfig.ts +++ b/private/aws-protocoltests-ec2/src/runtimeConfig.ts @@ -14,7 +14,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -37,8 +36,6 @@ export const getRuntimeConfig = (config: EC2ProtocolClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? diff --git a/private/aws-protocoltests-json-10/package.json b/private/aws-protocoltests-json-10/package.json index f0a16d712dc7..d719a8e84920 100644 --- a/private/aws-protocoltests-json-10/package.json +++ b/private/aws-protocoltests-json-10/package.json @@ -38,6 +38,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/private/aws-protocoltests-json-10/src/runtimeConfig.browser.ts b/private/aws-protocoltests-json-10/src/runtimeConfig.browser.ts index 1d06927e85af..00a6c3c7f8fe 100644 --- a/private/aws-protocoltests-json-10/src/runtimeConfig.browser.ts +++ b/private/aws-protocoltests-json-10/src/runtimeConfig.browser.ts @@ -6,7 +6,6 @@ import { Sha256 } from "@aws-crypto/sha256-browser"; import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver"; import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -27,8 +26,6 @@ export const getRuntimeConfig = (config: JSONRPC10ClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? diff --git a/private/aws-protocoltests-json-10/src/runtimeConfig.shared.ts b/private/aws-protocoltests-json-10/src/runtimeConfig.shared.ts index 1abac011e819..170b0bc15960 100644 --- a/private/aws-protocoltests-json-10/src/runtimeConfig.shared.ts +++ b/private/aws-protocoltests-json-10/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultRegionInfoProvider } from "./endpoints"; import { JSONRPC10ClientConfig } from "./JSONRPC10Client"; @@ -10,6 +11,8 @@ import { JSONRPC10ClientConfig } from "./JSONRPC10Client"; */ export const getRuntimeConfig = (config: JSONRPC10ClientConfig) => ({ apiVersion: "2020-07-14", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, logger: config?.logger ?? ({} as __Logger), regionInfoProvider: config?.regionInfoProvider ?? defaultRegionInfoProvider, diff --git a/private/aws-protocoltests-json-10/src/runtimeConfig.ts b/private/aws-protocoltests-json-10/src/runtimeConfig.ts index 99e80f07ad19..50c810137264 100644 --- a/private/aws-protocoltests-json-10/src/runtimeConfig.ts +++ b/private/aws-protocoltests-json-10/src/runtimeConfig.ts @@ -14,7 +14,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -37,8 +36,6 @@ export const getRuntimeConfig = (config: JSONRPC10ClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? diff --git a/private/aws-protocoltests-json/package.json b/private/aws-protocoltests-json/package.json index 143b6d6c8651..6035abe9b2b2 100644 --- a/private/aws-protocoltests-json/package.json +++ b/private/aws-protocoltests-json/package.json @@ -41,6 +41,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/private/aws-protocoltests-json/src/runtimeConfig.browser.ts b/private/aws-protocoltests-json/src/runtimeConfig.browser.ts index f308a9a611c2..3fd0fa7abeec 100644 --- a/private/aws-protocoltests-json/src/runtimeConfig.browser.ts +++ b/private/aws-protocoltests-json/src/runtimeConfig.browser.ts @@ -7,7 +7,6 @@ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws- import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { invalidProvider } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -28,8 +27,6 @@ export const getRuntimeConfig = (config: JsonProtocolClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), diff --git a/private/aws-protocoltests-json/src/runtimeConfig.shared.ts b/private/aws-protocoltests-json/src/runtimeConfig.shared.ts index 46f2b9171be3..cb6a5deea352 100644 --- a/private/aws-protocoltests-json/src/runtimeConfig.shared.ts +++ b/private/aws-protocoltests-json/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultRegionInfoProvider } from "./endpoints"; import { JsonProtocolClientConfig } from "./JsonProtocolClient"; @@ -10,6 +11,8 @@ import { JsonProtocolClientConfig } from "./JsonProtocolClient"; */ export const getRuntimeConfig = (config: JsonProtocolClientConfig) => ({ apiVersion: "2018-01-01", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, logger: config?.logger ?? ({} as __Logger), regionInfoProvider: config?.regionInfoProvider ?? defaultRegionInfoProvider, diff --git a/private/aws-protocoltests-json/src/runtimeConfig.ts b/private/aws-protocoltests-json/src/runtimeConfig.ts index 5d64f6d4387d..6bc430db888b 100644 --- a/private/aws-protocoltests-json/src/runtimeConfig.ts +++ b/private/aws-protocoltests-json/src/runtimeConfig.ts @@ -18,7 +18,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -41,8 +40,6 @@ export const getRuntimeConfig = (config: JsonProtocolClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), diff --git a/private/aws-protocoltests-query/package.json b/private/aws-protocoltests-query/package.json index bf6f221cdf28..20f42bf1ab8d 100644 --- a/private/aws-protocoltests-query/package.json +++ b/private/aws-protocoltests-query/package.json @@ -38,6 +38,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/private/aws-protocoltests-query/src/runtimeConfig.browser.ts b/private/aws-protocoltests-query/src/runtimeConfig.browser.ts index 4779b33f7333..9f6bb8196db3 100644 --- a/private/aws-protocoltests-query/src/runtimeConfig.browser.ts +++ b/private/aws-protocoltests-query/src/runtimeConfig.browser.ts @@ -6,7 +6,6 @@ import { Sha256 } from "@aws-crypto/sha256-browser"; import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver"; import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -27,8 +26,6 @@ export const getRuntimeConfig = (config: QueryProtocolClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? diff --git a/private/aws-protocoltests-query/src/runtimeConfig.shared.ts b/private/aws-protocoltests-query/src/runtimeConfig.shared.ts index d6036a704d3f..f61862d5dfc4 100644 --- a/private/aws-protocoltests-query/src/runtimeConfig.shared.ts +++ b/private/aws-protocoltests-query/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultRegionInfoProvider } from "./endpoints"; import { QueryProtocolClientConfig } from "./QueryProtocolClient"; @@ -10,6 +11,8 @@ import { QueryProtocolClientConfig } from "./QueryProtocolClient"; */ export const getRuntimeConfig = (config: QueryProtocolClientConfig) => ({ apiVersion: "2020-01-08", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, logger: config?.logger ?? ({} as __Logger), regionInfoProvider: config?.regionInfoProvider ?? defaultRegionInfoProvider, diff --git a/private/aws-protocoltests-query/src/runtimeConfig.ts b/private/aws-protocoltests-query/src/runtimeConfig.ts index dd1a6592e7aa..2a4abd09c775 100644 --- a/private/aws-protocoltests-query/src/runtimeConfig.ts +++ b/private/aws-protocoltests-query/src/runtimeConfig.ts @@ -14,7 +14,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -37,8 +36,6 @@ export const getRuntimeConfig = (config: QueryProtocolClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? diff --git a/private/aws-protocoltests-restjson/package.json b/private/aws-protocoltests-restjson/package.json index 33ea8b71688c..248d315de579 100644 --- a/private/aws-protocoltests-restjson/package.json +++ b/private/aws-protocoltests-restjson/package.json @@ -43,6 +43,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/private/aws-protocoltests-restjson/src/runtimeConfig.browser.ts b/private/aws-protocoltests-restjson/src/runtimeConfig.browser.ts index 4a59235b6f2e..7c8ea0bcb121 100644 --- a/private/aws-protocoltests-restjson/src/runtimeConfig.browser.ts +++ b/private/aws-protocoltests-restjson/src/runtimeConfig.browser.ts @@ -8,7 +8,6 @@ import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fe import { blobHasher as streamHasher } from "@aws-sdk/hash-blob-browser"; import { Md5 } from "@aws-sdk/md5-js"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { sdkStreamMixin } from "@aws-sdk/util-stream-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; @@ -30,8 +29,6 @@ export const getRuntimeConfig = (config: RestJsonProtocolClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? diff --git a/private/aws-protocoltests-restjson/src/runtimeConfig.shared.ts b/private/aws-protocoltests-restjson/src/runtimeConfig.shared.ts index 26a9881d3770..41a092109537 100644 --- a/private/aws-protocoltests-restjson/src/runtimeConfig.shared.ts +++ b/private/aws-protocoltests-restjson/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultRegionInfoProvider } from "./endpoints"; import { RestJsonProtocolClientConfig } from "./RestJsonProtocolClient"; @@ -10,6 +11,8 @@ import { RestJsonProtocolClientConfig } from "./RestJsonProtocolClient"; */ export const getRuntimeConfig = (config: RestJsonProtocolClientConfig) => ({ apiVersion: "2019-12-16", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, logger: config?.logger ?? ({} as __Logger), regionInfoProvider: config?.regionInfoProvider ?? defaultRegionInfoProvider, diff --git a/private/aws-protocoltests-restjson/src/runtimeConfig.ts b/private/aws-protocoltests-restjson/src/runtimeConfig.ts index b9596ee6023b..5e3e47842d88 100644 --- a/private/aws-protocoltests-restjson/src/runtimeConfig.ts +++ b/private/aws-protocoltests-restjson/src/runtimeConfig.ts @@ -16,7 +16,6 @@ import { import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; import { HashConstructor as __HashConstructor } from "@aws-sdk/types"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { sdkStreamMixin } from "@aws-sdk/util-stream-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -40,8 +39,6 @@ export const getRuntimeConfig = (config: RestJsonProtocolClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? diff --git a/private/aws-protocoltests-restxml/package.json b/private/aws-protocoltests-restxml/package.json index ea7dcfce1dc7..88c3e32a65d1 100644 --- a/private/aws-protocoltests-restxml/package.json +++ b/private/aws-protocoltests-restxml/package.json @@ -39,6 +39,7 @@ "@aws-sdk/smithy-client": "*", "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", + "@aws-sdk/util-base64": "*", "@aws-sdk/util-base64-browser": "*", "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", diff --git a/private/aws-protocoltests-restxml/src/runtimeConfig.browser.ts b/private/aws-protocoltests-restxml/src/runtimeConfig.browser.ts index 55c1cc75d084..4815ac498960 100644 --- a/private/aws-protocoltests-restxml/src/runtimeConfig.browser.ts +++ b/private/aws-protocoltests-restxml/src/runtimeConfig.browser.ts @@ -6,7 +6,6 @@ import { Sha256 } from "@aws-crypto/sha256-browser"; import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver"; import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; import { calculateBodyLength } from "@aws-sdk/util-body-length-browser"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; @@ -27,8 +26,6 @@ export const getRuntimeConfig = (config: RestXmlProtocolClientConfig) => { ...config, runtime: "browser", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? diff --git a/private/aws-protocoltests-restxml/src/runtimeConfig.shared.ts b/private/aws-protocoltests-restxml/src/runtimeConfig.shared.ts index 48c8d0361b3c..0b45e02c1cce 100644 --- a/private/aws-protocoltests-restxml/src/runtimeConfig.shared.ts +++ b/private/aws-protocoltests-restxml/src/runtimeConfig.shared.ts @@ -1,6 +1,7 @@ // smithy-typescript generated code import { Logger as __Logger } from "@aws-sdk/types"; import { parseUrl } from "@aws-sdk/url-parser"; +import { fromBase64, toBase64 } from "@aws-sdk/util-base64"; import { defaultRegionInfoProvider } from "./endpoints"; import { RestXmlProtocolClientConfig } from "./RestXmlProtocolClient"; @@ -10,6 +11,8 @@ import { RestXmlProtocolClientConfig } from "./RestXmlProtocolClient"; */ export const getRuntimeConfig = (config: RestXmlProtocolClientConfig) => ({ apiVersion: "2019-12-16", + base64Decoder: config?.base64Decoder ?? fromBase64, + base64Encoder: config?.base64Encoder ?? toBase64, disableHostPrefix: config?.disableHostPrefix ?? false, logger: config?.logger ?? ({} as __Logger), regionInfoProvider: config?.regionInfoProvider ?? defaultRegionInfoProvider, diff --git a/private/aws-protocoltests-restxml/src/runtimeConfig.ts b/private/aws-protocoltests-restxml/src/runtimeConfig.ts index 1aaa9e369543..19e4ed9eb194 100644 --- a/private/aws-protocoltests-restxml/src/runtimeConfig.ts +++ b/private/aws-protocoltests-restxml/src/runtimeConfig.ts @@ -14,7 +14,6 @@ import { } from "@aws-sdk/middleware-retry"; import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider"; import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler"; -import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node"; import { calculateBodyLength } from "@aws-sdk/util-body-length-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; @@ -37,8 +36,6 @@ export const getRuntimeConfig = (config: RestXmlProtocolClientConfig) => { ...config, runtime: "node", defaultsMode, - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? From a41439e2d201dfbe71a3a9700137e68428a162a6 Mon Sep 17 00:00:00 2001 From: "Kamat, Trivikram" <16024985+trivikr@users.noreply.github.com> Date: Wed, 2 Nov 2022 16:05:12 +0000 Subject: [PATCH 2/2] chore(clients): remove util-base64 node and browser dependencies --- clients/client-accessanalyzer/package.json | 2 -- clients/client-account/package.json | 2 -- clients/client-acm-pca/package.json | 2 -- clients/client-acm/package.json | 2 -- clients/client-alexa-for-business/package.json | 2 -- clients/client-amp/package.json | 2 -- clients/client-amplify/package.json | 2 -- clients/client-amplifybackend/package.json | 2 -- clients/client-amplifyuibuilder/package.json | 2 -- clients/client-api-gateway/package.json | 2 -- clients/client-apigatewaymanagementapi/package.json | 2 -- clients/client-apigatewayv2/package.json | 2 -- clients/client-app-mesh/package.json | 2 -- clients/client-appconfig/package.json | 2 -- clients/client-appconfigdata/package.json | 2 -- clients/client-appflow/package.json | 2 -- clients/client-appintegrations/package.json | 2 -- clients/client-application-auto-scaling/package.json | 2 -- clients/client-application-discovery-service/package.json | 2 -- clients/client-application-insights/package.json | 2 -- clients/client-applicationcostprofiler/package.json | 2 -- clients/client-apprunner/package.json | 2 -- clients/client-appstream/package.json | 2 -- clients/client-appsync/package.json | 2 -- clients/client-athena/package.json | 2 -- clients/client-auditmanager/package.json | 2 -- clients/client-auto-scaling-plans/package.json | 2 -- clients/client-auto-scaling/package.json | 2 -- clients/client-backup-gateway/package.json | 2 -- clients/client-backup/package.json | 2 -- clients/client-backupstorage/package.json | 2 -- clients/client-batch/package.json | 2 -- clients/client-billingconductor/package.json | 2 -- clients/client-braket/package.json | 2 -- clients/client-budgets/package.json | 2 -- clients/client-chime-sdk-identity/package.json | 2 -- clients/client-chime-sdk-media-pipelines/package.json | 2 -- clients/client-chime-sdk-meetings/package.json | 2 -- clients/client-chime-sdk-messaging/package.json | 2 -- clients/client-chime/package.json | 2 -- clients/client-cloud9/package.json | 2 -- clients/client-cloudcontrol/package.json | 2 -- clients/client-clouddirectory/package.json | 2 -- clients/client-cloudformation/package.json | 2 -- clients/client-cloudfront/package.json | 2 -- clients/client-cloudhsm-v2/package.json | 2 -- clients/client-cloudhsm/package.json | 2 -- clients/client-cloudsearch-domain/package.json | 2 -- clients/client-cloudsearch/package.json | 2 -- clients/client-cloudtrail/package.json | 2 -- clients/client-cloudwatch-events/package.json | 2 -- clients/client-cloudwatch-logs/package.json | 2 -- clients/client-cloudwatch/package.json | 2 -- clients/client-codeartifact/package.json | 2 -- clients/client-codebuild/package.json | 2 -- clients/client-codecommit/package.json | 2 -- clients/client-codedeploy/package.json | 2 -- clients/client-codeguru-reviewer/package.json | 2 -- clients/client-codeguruprofiler/package.json | 2 -- clients/client-codepipeline/package.json | 2 -- clients/client-codestar-connections/package.json | 2 -- clients/client-codestar-notifications/package.json | 2 -- clients/client-codestar/package.json | 2 -- clients/client-cognito-identity-provider/package.json | 2 -- clients/client-cognito-identity/package.json | 2 -- clients/client-cognito-sync/package.json | 2 -- clients/client-comprehend/package.json | 2 -- clients/client-comprehendmedical/package.json | 2 -- clients/client-compute-optimizer/package.json | 2 -- clients/client-config-service/package.json | 2 -- clients/client-connect-contact-lens/package.json | 2 -- clients/client-connect/package.json | 2 -- clients/client-connectcampaigns/package.json | 2 -- clients/client-connectcases/package.json | 2 -- clients/client-connectparticipant/package.json | 2 -- clients/client-controltower/package.json | 2 -- clients/client-cost-and-usage-report-service/package.json | 2 -- clients/client-cost-explorer/package.json | 2 -- clients/client-customer-profiles/package.json | 2 -- clients/client-data-pipeline/package.json | 2 -- clients/client-database-migration-service/package.json | 2 -- clients/client-databrew/package.json | 2 -- clients/client-dataexchange/package.json | 2 -- clients/client-datasync/package.json | 2 -- clients/client-dax/package.json | 2 -- clients/client-detective/package.json | 2 -- clients/client-device-farm/package.json | 2 -- clients/client-devops-guru/package.json | 2 -- clients/client-direct-connect/package.json | 2 -- clients/client-directory-service/package.json | 2 -- clients/client-dlm/package.json | 2 -- clients/client-docdb/package.json | 2 -- clients/client-drs/package.json | 2 -- clients/client-dynamodb-streams/package.json | 2 -- clients/client-dynamodb/package.json | 2 -- clients/client-ebs/package.json | 2 -- clients/client-ec2-instance-connect/package.json | 2 -- clients/client-ec2/package.json | 2 -- clients/client-ecr-public/package.json | 2 -- clients/client-ecr/package.json | 2 -- clients/client-ecs/package.json | 2 -- clients/client-efs/package.json | 2 -- clients/client-eks/package.json | 2 -- clients/client-elastic-beanstalk/package.json | 2 -- clients/client-elastic-inference/package.json | 2 -- clients/client-elastic-load-balancing-v2/package.json | 2 -- clients/client-elastic-load-balancing/package.json | 2 -- clients/client-elastic-transcoder/package.json | 2 -- clients/client-elasticache/package.json | 2 -- clients/client-elasticsearch-service/package.json | 2 -- clients/client-emr-containers/package.json | 2 -- clients/client-emr-serverless/package.json | 2 -- clients/client-emr/package.json | 2 -- clients/client-eventbridge/package.json | 2 -- clients/client-evidently/package.json | 2 -- clients/client-finspace-data/package.json | 2 -- clients/client-finspace/package.json | 2 -- clients/client-firehose/package.json | 2 -- clients/client-fis/package.json | 2 -- clients/client-fms/package.json | 2 -- clients/client-forecast/package.json | 2 -- clients/client-forecastquery/package.json | 2 -- clients/client-frauddetector/package.json | 2 -- clients/client-fsx/package.json | 2 -- clients/client-gamelift/package.json | 2 -- clients/client-gamesparks/package.json | 2 -- clients/client-glacier/package.json | 2 -- clients/client-global-accelerator/package.json | 2 -- clients/client-glue/package.json | 2 -- clients/client-grafana/package.json | 2 -- clients/client-greengrass/package.json | 2 -- clients/client-greengrassv2/package.json | 2 -- clients/client-groundstation/package.json | 2 -- clients/client-guardduty/package.json | 2 -- clients/client-health/package.json | 2 -- clients/client-healthlake/package.json | 2 -- clients/client-honeycode/package.json | 2 -- clients/client-iam/package.json | 2 -- clients/client-identitystore/package.json | 2 -- clients/client-imagebuilder/package.json | 2 -- clients/client-inspector/package.json | 2 -- clients/client-inspector2/package.json | 2 -- clients/client-iot-1click-devices-service/package.json | 2 -- clients/client-iot-1click-projects/package.json | 2 -- clients/client-iot-data-plane/package.json | 2 -- clients/client-iot-events-data/package.json | 2 -- clients/client-iot-events/package.json | 2 -- clients/client-iot-jobs-data-plane/package.json | 2 -- clients/client-iot-wireless/package.json | 2 -- clients/client-iot/package.json | 2 -- clients/client-iotanalytics/package.json | 2 -- clients/client-iotdeviceadvisor/package.json | 2 -- clients/client-iotfleethub/package.json | 2 -- clients/client-iotfleetwise/package.json | 2 -- clients/client-iotsecuretunneling/package.json | 2 -- clients/client-iotsitewise/package.json | 2 -- clients/client-iotthingsgraph/package.json | 2 -- clients/client-iottwinmaker/package.json | 2 -- clients/client-ivs/package.json | 2 -- clients/client-ivschat/package.json | 2 -- clients/client-kafka/package.json | 2 -- clients/client-kafkaconnect/package.json | 2 -- clients/client-kendra/package.json | 2 -- clients/client-keyspaces/package.json | 2 -- clients/client-kinesis-analytics-v2/package.json | 2 -- clients/client-kinesis-analytics/package.json | 2 -- clients/client-kinesis-video-archived-media/package.json | 2 -- clients/client-kinesis-video-media/package.json | 2 -- clients/client-kinesis-video-signaling/package.json | 2 -- clients/client-kinesis-video/package.json | 2 -- clients/client-kinesis/package.json | 2 -- clients/client-kms/package.json | 2 -- clients/client-lakeformation/package.json | 2 -- clients/client-lambda/package.json | 2 -- clients/client-lex-model-building-service/package.json | 2 -- clients/client-lex-models-v2/package.json | 2 -- clients/client-lex-runtime-service/package.json | 2 -- clients/client-lex-runtime-v2/package.json | 2 -- clients/client-license-manager-user-subscriptions/package.json | 2 -- clients/client-license-manager/package.json | 2 -- clients/client-lightsail/package.json | 2 -- clients/client-location/package.json | 2 -- clients/client-lookoutequipment/package.json | 2 -- clients/client-lookoutmetrics/package.json | 2 -- clients/client-lookoutvision/package.json | 2 -- clients/client-m2/package.json | 2 -- clients/client-machine-learning/package.json | 2 -- clients/client-macie/package.json | 2 -- clients/client-macie2/package.json | 2 -- clients/client-managedblockchain/package.json | 2 -- clients/client-marketplace-catalog/package.json | 2 -- clients/client-marketplace-commerce-analytics/package.json | 2 -- clients/client-marketplace-entitlement-service/package.json | 2 -- clients/client-marketplace-metering/package.json | 2 -- clients/client-mediaconnect/package.json | 2 -- clients/client-mediaconvert/package.json | 2 -- clients/client-medialive/package.json | 2 -- clients/client-mediapackage-vod/package.json | 2 -- clients/client-mediapackage/package.json | 2 -- clients/client-mediastore-data/package.json | 2 -- clients/client-mediastore/package.json | 2 -- clients/client-mediatailor/package.json | 2 -- clients/client-memorydb/package.json | 2 -- clients/client-mgn/package.json | 2 -- clients/client-migration-hub-refactor-spaces/package.json | 2 -- clients/client-migration-hub/package.json | 2 -- clients/client-migrationhub-config/package.json | 2 -- clients/client-migrationhuborchestrator/package.json | 2 -- clients/client-migrationhubstrategy/package.json | 2 -- clients/client-mobile/package.json | 2 -- clients/client-mq/package.json | 2 -- clients/client-mturk/package.json | 2 -- clients/client-mwaa/package.json | 2 -- clients/client-neptune/package.json | 2 -- clients/client-network-firewall/package.json | 2 -- clients/client-networkmanager/package.json | 2 -- clients/client-nimble/package.json | 2 -- clients/client-opensearch/package.json | 2 -- clients/client-opsworks/package.json | 2 -- clients/client-opsworkscm/package.json | 2 -- clients/client-organizations/package.json | 2 -- clients/client-outposts/package.json | 2 -- clients/client-panorama/package.json | 2 -- clients/client-personalize-events/package.json | 2 -- clients/client-personalize-runtime/package.json | 2 -- clients/client-personalize/package.json | 2 -- clients/client-pi/package.json | 2 -- clients/client-pinpoint-email/package.json | 2 -- clients/client-pinpoint-sms-voice-v2/package.json | 2 -- clients/client-pinpoint-sms-voice/package.json | 2 -- clients/client-pinpoint/package.json | 2 -- clients/client-polly/package.json | 2 -- clients/client-pricing/package.json | 2 -- clients/client-privatenetworks/package.json | 2 -- clients/client-proton/package.json | 2 -- clients/client-qldb-session/package.json | 2 -- clients/client-qldb/package.json | 2 -- clients/client-quicksight/package.json | 2 -- clients/client-ram/package.json | 2 -- clients/client-rbin/package.json | 2 -- clients/client-rds-data/package.json | 2 -- clients/client-rds/package.json | 2 -- clients/client-redshift-data/package.json | 2 -- clients/client-redshift-serverless/package.json | 2 -- clients/client-redshift/package.json | 2 -- clients/client-rekognition/package.json | 2 -- clients/client-resiliencehub/package.json | 2 -- clients/client-resource-groups-tagging-api/package.json | 2 -- clients/client-resource-groups/package.json | 2 -- clients/client-robomaker/package.json | 2 -- clients/client-rolesanywhere/package.json | 2 -- clients/client-route-53-domains/package.json | 2 -- clients/client-route-53/package.json | 2 -- clients/client-route53-recovery-cluster/package.json | 2 -- clients/client-route53-recovery-control-config/package.json | 2 -- clients/client-route53-recovery-readiness/package.json | 2 -- clients/client-route53resolver/package.json | 2 -- clients/client-rum/package.json | 2 -- clients/client-s3-control/package.json | 2 -- clients/client-s3/package.json | 2 -- clients/client-s3outposts/package.json | 2 -- clients/client-sagemaker-a2i-runtime/package.json | 2 -- clients/client-sagemaker-edge/package.json | 2 -- clients/client-sagemaker-featurestore-runtime/package.json | 2 -- clients/client-sagemaker-runtime/package.json | 2 -- clients/client-sagemaker/package.json | 2 -- clients/client-savingsplans/package.json | 2 -- clients/client-schemas/package.json | 2 -- clients/client-secrets-manager/package.json | 2 -- clients/client-securityhub/package.json | 2 -- clients/client-serverlessapplicationrepository/package.json | 2 -- clients/client-service-catalog-appregistry/package.json | 2 -- clients/client-service-catalog/package.json | 2 -- clients/client-service-quotas/package.json | 2 -- clients/client-servicediscovery/package.json | 2 -- clients/client-ses/package.json | 2 -- clients/client-sesv2/package.json | 2 -- clients/client-sfn/package.json | 2 -- clients/client-shield/package.json | 2 -- clients/client-signer/package.json | 2 -- clients/client-sms/package.json | 2 -- clients/client-snow-device-management/package.json | 2 -- clients/client-snowball/package.json | 2 -- clients/client-sns/package.json | 2 -- clients/client-sqs/package.json | 2 -- clients/client-ssm-contacts/package.json | 2 -- clients/client-ssm-incidents/package.json | 2 -- clients/client-ssm/package.json | 2 -- clients/client-sso-admin/package.json | 2 -- clients/client-sso-oidc/package.json | 2 -- clients/client-sso/package.json | 2 -- clients/client-storage-gateway/package.json | 2 -- clients/client-sts/package.json | 2 -- clients/client-support-app/package.json | 2 -- clients/client-support/package.json | 2 -- clients/client-swf/package.json | 2 -- clients/client-synthetics/package.json | 2 -- clients/client-textract/package.json | 2 -- clients/client-timestream-query/package.json | 2 -- clients/client-timestream-write/package.json | 2 -- clients/client-transcribe-streaming/package.json | 2 -- clients/client-transcribe/package.json | 2 -- clients/client-transfer/package.json | 2 -- clients/client-translate/package.json | 2 -- clients/client-voice-id/package.json | 2 -- clients/client-waf-regional/package.json | 2 -- clients/client-waf/package.json | 2 -- clients/client-wafv2/package.json | 2 -- clients/client-wellarchitected/package.json | 2 -- clients/client-wisdom/package.json | 2 -- clients/client-workdocs/package.json | 2 -- clients/client-worklink/package.json | 2 -- clients/client-workmail/package.json | 2 -- clients/client-workmailmessageflow/package.json | 2 -- clients/client-workspaces-web/package.json | 2 -- clients/client-workspaces/package.json | 2 -- clients/client-xray/package.json | 2 -- private/aws-echo-service/package.json | 2 -- private/aws-protocoltests-ec2/package.json | 2 -- private/aws-protocoltests-json-10/package.json | 2 -- private/aws-protocoltests-json/package.json | 2 -- private/aws-protocoltests-query/package.json | 2 -- private/aws-protocoltests-restjson/package.json | 2 -- private/aws-protocoltests-restxml/package.json | 2 -- 324 files changed, 648 deletions(-) diff --git a/clients/client-accessanalyzer/package.json b/clients/client-accessanalyzer/package.json index 04ff0d843d2f..74986459ef32 100644 --- a/clients/client-accessanalyzer/package.json +++ b/clients/client-accessanalyzer/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-account/package.json b/clients/client-account/package.json index b1b16eab85e7..525c682ba4ba 100644 --- a/clients/client-account/package.json +++ b/clients/client-account/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-acm-pca/package.json b/clients/client-acm-pca/package.json index 9d5445bd9160..368918a6e6d3 100644 --- a/clients/client-acm-pca/package.json +++ b/clients/client-acm-pca/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-acm/package.json b/clients/client-acm/package.json index 06b1dbea4229..c5039b00902d 100644 --- a/clients/client-acm/package.json +++ b/clients/client-acm/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-alexa-for-business/package.json b/clients/client-alexa-for-business/package.json index cb8073f5bca6..4bc905d59c70 100644 --- a/clients/client-alexa-for-business/package.json +++ b/clients/client-alexa-for-business/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-amp/package.json b/clients/client-amp/package.json index ac03f45595e9..16b4a62c1ecd 100644 --- a/clients/client-amp/package.json +++ b/clients/client-amp/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-amplify/package.json b/clients/client-amplify/package.json index ea2967bcec0c..bca6bcb47931 100644 --- a/clients/client-amplify/package.json +++ b/clients/client-amplify/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-amplifybackend/package.json b/clients/client-amplifybackend/package.json index 065e2b764565..f319c47d82b3 100644 --- a/clients/client-amplifybackend/package.json +++ b/clients/client-amplifybackend/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-amplifyuibuilder/package.json b/clients/client-amplifyuibuilder/package.json index add2df3a5df1..43adf6f8cb40 100644 --- a/clients/client-amplifyuibuilder/package.json +++ b/clients/client-amplifyuibuilder/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-api-gateway/package.json b/clients/client-api-gateway/package.json index e066d0d11c66..6bdc98f2b802 100644 --- a/clients/client-api-gateway/package.json +++ b/clients/client-api-gateway/package.json @@ -43,8 +43,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-apigatewaymanagementapi/package.json b/clients/client-apigatewaymanagementapi/package.json index b127eaa3cd49..cb8608187b38 100644 --- a/clients/client-apigatewaymanagementapi/package.json +++ b/clients/client-apigatewaymanagementapi/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-apigatewayv2/package.json b/clients/client-apigatewayv2/package.json index 47e008ca11a7..61d9bdcd8a11 100644 --- a/clients/client-apigatewayv2/package.json +++ b/clients/client-apigatewayv2/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-app-mesh/package.json b/clients/client-app-mesh/package.json index 123ac545e970..b0e854292256 100644 --- a/clients/client-app-mesh/package.json +++ b/clients/client-app-mesh/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-appconfig/package.json b/clients/client-appconfig/package.json index 4471515a6325..613035cdd256 100644 --- a/clients/client-appconfig/package.json +++ b/clients/client-appconfig/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-appconfigdata/package.json b/clients/client-appconfigdata/package.json index 78bb0c0ea948..29c4bc3a4398 100644 --- a/clients/client-appconfigdata/package.json +++ b/clients/client-appconfigdata/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-appflow/package.json b/clients/client-appflow/package.json index eb4a1cc52272..4f5623e8f0d2 100644 --- a/clients/client-appflow/package.json +++ b/clients/client-appflow/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-appintegrations/package.json b/clients/client-appintegrations/package.json index 6bd326192a40..ebfba562c890 100644 --- a/clients/client-appintegrations/package.json +++ b/clients/client-appintegrations/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-application-auto-scaling/package.json b/clients/client-application-auto-scaling/package.json index 93c4b7ee8726..3fe46dde915b 100644 --- a/clients/client-application-auto-scaling/package.json +++ b/clients/client-application-auto-scaling/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-application-discovery-service/package.json b/clients/client-application-discovery-service/package.json index 4e0af41a8a39..c4e8b86b35f8 100644 --- a/clients/client-application-discovery-service/package.json +++ b/clients/client-application-discovery-service/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-application-insights/package.json b/clients/client-application-insights/package.json index 0c0d9e53993d..5dfdfab590c0 100644 --- a/clients/client-application-insights/package.json +++ b/clients/client-application-insights/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-applicationcostprofiler/package.json b/clients/client-applicationcostprofiler/package.json index ba99c098ac9a..050bba0146e7 100644 --- a/clients/client-applicationcostprofiler/package.json +++ b/clients/client-applicationcostprofiler/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-apprunner/package.json b/clients/client-apprunner/package.json index 1c5cee378df9..00678a69f9f1 100644 --- a/clients/client-apprunner/package.json +++ b/clients/client-apprunner/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-appstream/package.json b/clients/client-appstream/package.json index b514aa4cc32c..0bb1bc7276c5 100644 --- a/clients/client-appstream/package.json +++ b/clients/client-appstream/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-appsync/package.json b/clients/client-appsync/package.json index 28df764e6e8a..bdf6bb405677 100644 --- a/clients/client-appsync/package.json +++ b/clients/client-appsync/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-athena/package.json b/clients/client-athena/package.json index 9a87308a8520..074b6b8dca17 100644 --- a/clients/client-athena/package.json +++ b/clients/client-athena/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-auditmanager/package.json b/clients/client-auditmanager/package.json index d40493a2b3ce..468fa82777c7 100644 --- a/clients/client-auditmanager/package.json +++ b/clients/client-auditmanager/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-auto-scaling-plans/package.json b/clients/client-auto-scaling-plans/package.json index 537601001f7a..d6ab0de25e69 100644 --- a/clients/client-auto-scaling-plans/package.json +++ b/clients/client-auto-scaling-plans/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-auto-scaling/package.json b/clients/client-auto-scaling/package.json index 437564f0d7ea..80a6dde0e068 100644 --- a/clients/client-auto-scaling/package.json +++ b/clients/client-auto-scaling/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-backup-gateway/package.json b/clients/client-backup-gateway/package.json index ff9c83e61703..894f595f86a7 100644 --- a/clients/client-backup-gateway/package.json +++ b/clients/client-backup-gateway/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-backup/package.json b/clients/client-backup/package.json index 419d6beea9fd..7f70017f9bfa 100644 --- a/clients/client-backup/package.json +++ b/clients/client-backup/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-backupstorage/package.json b/clients/client-backupstorage/package.json index a37941f2832b..a1f56dceb570 100644 --- a/clients/client-backupstorage/package.json +++ b/clients/client-backupstorage/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-batch/package.json b/clients/client-batch/package.json index 564c00f97d6a..0fefe03a69f2 100644 --- a/clients/client-batch/package.json +++ b/clients/client-batch/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-billingconductor/package.json b/clients/client-billingconductor/package.json index ef9acbc38772..043997960675 100644 --- a/clients/client-billingconductor/package.json +++ b/clients/client-billingconductor/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-braket/package.json b/clients/client-braket/package.json index fb3f59ea019d..df25e09afa2b 100644 --- a/clients/client-braket/package.json +++ b/clients/client-braket/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-budgets/package.json b/clients/client-budgets/package.json index 7bb766dd146e..05b5af4adc5d 100644 --- a/clients/client-budgets/package.json +++ b/clients/client-budgets/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-chime-sdk-identity/package.json b/clients/client-chime-sdk-identity/package.json index 807c1c786e1c..b61868f2da7c 100644 --- a/clients/client-chime-sdk-identity/package.json +++ b/clients/client-chime-sdk-identity/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-chime-sdk-media-pipelines/package.json b/clients/client-chime-sdk-media-pipelines/package.json index d42b138e7f13..5620945d35ee 100644 --- a/clients/client-chime-sdk-media-pipelines/package.json +++ b/clients/client-chime-sdk-media-pipelines/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-chime-sdk-meetings/package.json b/clients/client-chime-sdk-meetings/package.json index 4cf22f902ace..ec01f391df15 100644 --- a/clients/client-chime-sdk-meetings/package.json +++ b/clients/client-chime-sdk-meetings/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-chime-sdk-messaging/package.json b/clients/client-chime-sdk-messaging/package.json index 7f6a82991c22..75788271affe 100644 --- a/clients/client-chime-sdk-messaging/package.json +++ b/clients/client-chime-sdk-messaging/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-chime/package.json b/clients/client-chime/package.json index 26cd5f92bb3f..898f8122afce 100644 --- a/clients/client-chime/package.json +++ b/clients/client-chime/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-cloud9/package.json b/clients/client-cloud9/package.json index e9e4f508f7c8..75d7791842fe 100644 --- a/clients/client-cloud9/package.json +++ b/clients/client-cloud9/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-cloudcontrol/package.json b/clients/client-cloudcontrol/package.json index 016d99ed268b..897c031a262e 100644 --- a/clients/client-cloudcontrol/package.json +++ b/clients/client-cloudcontrol/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-clouddirectory/package.json b/clients/client-clouddirectory/package.json index cf6239165783..7dd93bbb8c3d 100644 --- a/clients/client-clouddirectory/package.json +++ b/clients/client-clouddirectory/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-cloudformation/package.json b/clients/client-cloudformation/package.json index 6e3f2e423833..216a115e7b0c 100644 --- a/clients/client-cloudformation/package.json +++ b/clients/client-cloudformation/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-cloudfront/package.json b/clients/client-cloudfront/package.json index d9bc58f8c061..955719668b8b 100644 --- a/clients/client-cloudfront/package.json +++ b/clients/client-cloudfront/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-cloudhsm-v2/package.json b/clients/client-cloudhsm-v2/package.json index 6b12d73c0bcf..3a97c3d6e217 100644 --- a/clients/client-cloudhsm-v2/package.json +++ b/clients/client-cloudhsm-v2/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-cloudhsm/package.json b/clients/client-cloudhsm/package.json index 8f8c7e3be29d..5a5e5e81cb1d 100644 --- a/clients/client-cloudhsm/package.json +++ b/clients/client-cloudhsm/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-cloudsearch-domain/package.json b/clients/client-cloudsearch-domain/package.json index b9ad3cb97c97..6dbcba24f99e 100644 --- a/clients/client-cloudsearch-domain/package.json +++ b/clients/client-cloudsearch-domain/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-cloudsearch/package.json b/clients/client-cloudsearch/package.json index e5d665aef0d5..04786aea9a3e 100644 --- a/clients/client-cloudsearch/package.json +++ b/clients/client-cloudsearch/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-cloudtrail/package.json b/clients/client-cloudtrail/package.json index e9ebce71f365..3221869750f3 100644 --- a/clients/client-cloudtrail/package.json +++ b/clients/client-cloudtrail/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-cloudwatch-events/package.json b/clients/client-cloudwatch-events/package.json index 7f43f712624d..620af4c414fc 100644 --- a/clients/client-cloudwatch-events/package.json +++ b/clients/client-cloudwatch-events/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-cloudwatch-logs/package.json b/clients/client-cloudwatch-logs/package.json index b1c16b61f65b..1d95d95e67ea 100644 --- a/clients/client-cloudwatch-logs/package.json +++ b/clients/client-cloudwatch-logs/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-cloudwatch/package.json b/clients/client-cloudwatch/package.json index 415ad0aa2243..21a66bea5a03 100644 --- a/clients/client-cloudwatch/package.json +++ b/clients/client-cloudwatch/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-codeartifact/package.json b/clients/client-codeartifact/package.json index 10f5b936f9de..f17d2dc80633 100644 --- a/clients/client-codeartifact/package.json +++ b/clients/client-codeartifact/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-codebuild/package.json b/clients/client-codebuild/package.json index 844dbfeebfe6..e108892ce24c 100644 --- a/clients/client-codebuild/package.json +++ b/clients/client-codebuild/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-codecommit/package.json b/clients/client-codecommit/package.json index fd1b3bda1c69..905dddbc7328 100644 --- a/clients/client-codecommit/package.json +++ b/clients/client-codecommit/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-codedeploy/package.json b/clients/client-codedeploy/package.json index feb1b6c3a407..67d41e064f2c 100644 --- a/clients/client-codedeploy/package.json +++ b/clients/client-codedeploy/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-codeguru-reviewer/package.json b/clients/client-codeguru-reviewer/package.json index 376092ece5f8..f2f2bd163d53 100644 --- a/clients/client-codeguru-reviewer/package.json +++ b/clients/client-codeguru-reviewer/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-codeguruprofiler/package.json b/clients/client-codeguruprofiler/package.json index b4c9c1fbcd9b..ea9d3953c14a 100644 --- a/clients/client-codeguruprofiler/package.json +++ b/clients/client-codeguruprofiler/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-codepipeline/package.json b/clients/client-codepipeline/package.json index 455987442771..5664eddaa5cc 100644 --- a/clients/client-codepipeline/package.json +++ b/clients/client-codepipeline/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-codestar-connections/package.json b/clients/client-codestar-connections/package.json index 601111983a96..2e6935b28af8 100644 --- a/clients/client-codestar-connections/package.json +++ b/clients/client-codestar-connections/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-codestar-notifications/package.json b/clients/client-codestar-notifications/package.json index 743f508e82cd..7a514b4b514e 100644 --- a/clients/client-codestar-notifications/package.json +++ b/clients/client-codestar-notifications/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-codestar/package.json b/clients/client-codestar/package.json index 8e337908cd73..e0d912f7093e 100644 --- a/clients/client-codestar/package.json +++ b/clients/client-codestar/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-cognito-identity-provider/package.json b/clients/client-cognito-identity-provider/package.json index 4486b10bb67d..e653f25e727d 100644 --- a/clients/client-cognito-identity-provider/package.json +++ b/clients/client-cognito-identity-provider/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-cognito-identity/package.json b/clients/client-cognito-identity/package.json index 2f4ecc548d63..62dc4ea98e23 100644 --- a/clients/client-cognito-identity/package.json +++ b/clients/client-cognito-identity/package.json @@ -43,8 +43,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-cognito-sync/package.json b/clients/client-cognito-sync/package.json index 29cfc05cf9e1..9bb427c7874e 100644 --- a/clients/client-cognito-sync/package.json +++ b/clients/client-cognito-sync/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-comprehend/package.json b/clients/client-comprehend/package.json index 782b22d22693..b85eb634b26e 100644 --- a/clients/client-comprehend/package.json +++ b/clients/client-comprehend/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-comprehendmedical/package.json b/clients/client-comprehendmedical/package.json index dd67fdd96fca..bcd04e22b8ad 100644 --- a/clients/client-comprehendmedical/package.json +++ b/clients/client-comprehendmedical/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-compute-optimizer/package.json b/clients/client-compute-optimizer/package.json index 2bc06dfc73c7..10fb0efb7394 100644 --- a/clients/client-compute-optimizer/package.json +++ b/clients/client-compute-optimizer/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-config-service/package.json b/clients/client-config-service/package.json index c4fd470e052e..b734964b217e 100644 --- a/clients/client-config-service/package.json +++ b/clients/client-config-service/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-connect-contact-lens/package.json b/clients/client-connect-contact-lens/package.json index f90c6087d2e8..9a49a53a4236 100644 --- a/clients/client-connect-contact-lens/package.json +++ b/clients/client-connect-contact-lens/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-connect/package.json b/clients/client-connect/package.json index 468d80040e80..6525942204c9 100644 --- a/clients/client-connect/package.json +++ b/clients/client-connect/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-connectcampaigns/package.json b/clients/client-connectcampaigns/package.json index 14964984972c..89c651e9736b 100644 --- a/clients/client-connectcampaigns/package.json +++ b/clients/client-connectcampaigns/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-connectcases/package.json b/clients/client-connectcases/package.json index a6864630650f..5c9574304d1b 100644 --- a/clients/client-connectcases/package.json +++ b/clients/client-connectcases/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-connectparticipant/package.json b/clients/client-connectparticipant/package.json index a4c808b1cf06..de84023e853a 100644 --- a/clients/client-connectparticipant/package.json +++ b/clients/client-connectparticipant/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-controltower/package.json b/clients/client-controltower/package.json index 4e03b51a1674..2a782b9324df 100644 --- a/clients/client-controltower/package.json +++ b/clients/client-controltower/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-cost-and-usage-report-service/package.json b/clients/client-cost-and-usage-report-service/package.json index 501b0387e845..3abb4f35d4e3 100644 --- a/clients/client-cost-and-usage-report-service/package.json +++ b/clients/client-cost-and-usage-report-service/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-cost-explorer/package.json b/clients/client-cost-explorer/package.json index aef66195d04d..aa60c24fc66c 100644 --- a/clients/client-cost-explorer/package.json +++ b/clients/client-cost-explorer/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-customer-profiles/package.json b/clients/client-customer-profiles/package.json index 53d5f6d5a53c..0257bc36f9a6 100644 --- a/clients/client-customer-profiles/package.json +++ b/clients/client-customer-profiles/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-data-pipeline/package.json b/clients/client-data-pipeline/package.json index 8b808a53fd78..bc63655ff882 100644 --- a/clients/client-data-pipeline/package.json +++ b/clients/client-data-pipeline/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-database-migration-service/package.json b/clients/client-database-migration-service/package.json index 3f32b763cb5f..46e13cba794a 100644 --- a/clients/client-database-migration-service/package.json +++ b/clients/client-database-migration-service/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-databrew/package.json b/clients/client-databrew/package.json index 5649636fcec2..2804846f6ab5 100644 --- a/clients/client-databrew/package.json +++ b/clients/client-databrew/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-dataexchange/package.json b/clients/client-dataexchange/package.json index 4c32f2234795..7177ff899bce 100644 --- a/clients/client-dataexchange/package.json +++ b/clients/client-dataexchange/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-datasync/package.json b/clients/client-datasync/package.json index 19d2d2f88a56..5d37a5e07f84 100644 --- a/clients/client-datasync/package.json +++ b/clients/client-datasync/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-dax/package.json b/clients/client-dax/package.json index ceb76d03cebe..150c7565c294 100644 --- a/clients/client-dax/package.json +++ b/clients/client-dax/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-detective/package.json b/clients/client-detective/package.json index 02686a1df574..738d3278aeb8 100644 --- a/clients/client-detective/package.json +++ b/clients/client-detective/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-device-farm/package.json b/clients/client-device-farm/package.json index 1039ff3ce0de..6713b5561cb9 100644 --- a/clients/client-device-farm/package.json +++ b/clients/client-device-farm/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-devops-guru/package.json b/clients/client-devops-guru/package.json index 42da74eccc16..57f6a262f9eb 100644 --- a/clients/client-devops-guru/package.json +++ b/clients/client-devops-guru/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-direct-connect/package.json b/clients/client-direct-connect/package.json index 1ef33978e61d..34a0d9a4db71 100644 --- a/clients/client-direct-connect/package.json +++ b/clients/client-direct-connect/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-directory-service/package.json b/clients/client-directory-service/package.json index 40807d6341e3..a0d6a6dee131 100644 --- a/clients/client-directory-service/package.json +++ b/clients/client-directory-service/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-dlm/package.json b/clients/client-dlm/package.json index e77dc6dbfd5a..8538f9011958 100644 --- a/clients/client-dlm/package.json +++ b/clients/client-dlm/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-docdb/package.json b/clients/client-docdb/package.json index b8c182ce9d52..8d224692967c 100644 --- a/clients/client-docdb/package.json +++ b/clients/client-docdb/package.json @@ -43,8 +43,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-drs/package.json b/clients/client-drs/package.json index 32c33eee031a..19919128ca82 100644 --- a/clients/client-drs/package.json +++ b/clients/client-drs/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-dynamodb-streams/package.json b/clients/client-dynamodb-streams/package.json index 3f17413e0e02..afd493707839 100644 --- a/clients/client-dynamodb-streams/package.json +++ b/clients/client-dynamodb-streams/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-dynamodb/package.json b/clients/client-dynamodb/package.json index 96c3c6a6d51f..1b833e4a8e2e 100644 --- a/clients/client-dynamodb/package.json +++ b/clients/client-dynamodb/package.json @@ -43,8 +43,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-ebs/package.json b/clients/client-ebs/package.json index 9aecd6b0e7f4..2c3a67193ae6 100644 --- a/clients/client-ebs/package.json +++ b/clients/client-ebs/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-ec2-instance-connect/package.json b/clients/client-ec2-instance-connect/package.json index d3c670b43842..c440bc745bf9 100644 --- a/clients/client-ec2-instance-connect/package.json +++ b/clients/client-ec2-instance-connect/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-ec2/package.json b/clients/client-ec2/package.json index c930253fe20c..c021ff3bbd77 100644 --- a/clients/client-ec2/package.json +++ b/clients/client-ec2/package.json @@ -43,8 +43,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-ecr-public/package.json b/clients/client-ecr-public/package.json index 5adad2c5654e..fc2bbd8b34d8 100644 --- a/clients/client-ecr-public/package.json +++ b/clients/client-ecr-public/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-ecr/package.json b/clients/client-ecr/package.json index 3ff96a6acb91..51e53e8b9967 100644 --- a/clients/client-ecr/package.json +++ b/clients/client-ecr/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-ecs/package.json b/clients/client-ecs/package.json index efa4f3b7e4da..4344f6aea86d 100644 --- a/clients/client-ecs/package.json +++ b/clients/client-ecs/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-efs/package.json b/clients/client-efs/package.json index 59ee0ddafc58..72acbdd2bb79 100644 --- a/clients/client-efs/package.json +++ b/clients/client-efs/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-eks/package.json b/clients/client-eks/package.json index dbf80227f273..41cc62f7d0e6 100644 --- a/clients/client-eks/package.json +++ b/clients/client-eks/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-elastic-beanstalk/package.json b/clients/client-elastic-beanstalk/package.json index 6782bd3ec0d4..c70265ee9a46 100644 --- a/clients/client-elastic-beanstalk/package.json +++ b/clients/client-elastic-beanstalk/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-elastic-inference/package.json b/clients/client-elastic-inference/package.json index d16c3af34298..b46b6a673555 100644 --- a/clients/client-elastic-inference/package.json +++ b/clients/client-elastic-inference/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-elastic-load-balancing-v2/package.json b/clients/client-elastic-load-balancing-v2/package.json index 2085aa5b8128..493b3cae6683 100644 --- a/clients/client-elastic-load-balancing-v2/package.json +++ b/clients/client-elastic-load-balancing-v2/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-elastic-load-balancing/package.json b/clients/client-elastic-load-balancing/package.json index 7c113b122425..1c0666ca58b9 100644 --- a/clients/client-elastic-load-balancing/package.json +++ b/clients/client-elastic-load-balancing/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-elastic-transcoder/package.json b/clients/client-elastic-transcoder/package.json index 952804a916ce..7eff3264e3a5 100644 --- a/clients/client-elastic-transcoder/package.json +++ b/clients/client-elastic-transcoder/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-elasticache/package.json b/clients/client-elasticache/package.json index 193b8a7434eb..295272bbe087 100644 --- a/clients/client-elasticache/package.json +++ b/clients/client-elasticache/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-elasticsearch-service/package.json b/clients/client-elasticsearch-service/package.json index 546d01bf5f07..5edcb7c4c912 100644 --- a/clients/client-elasticsearch-service/package.json +++ b/clients/client-elasticsearch-service/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-emr-containers/package.json b/clients/client-emr-containers/package.json index 4756b715af39..cd891090bcca 100644 --- a/clients/client-emr-containers/package.json +++ b/clients/client-emr-containers/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-emr-serverless/package.json b/clients/client-emr-serverless/package.json index fd73373b4744..da122f7a7517 100644 --- a/clients/client-emr-serverless/package.json +++ b/clients/client-emr-serverless/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-emr/package.json b/clients/client-emr/package.json index ef5da8ec30d0..94807cc1da1f 100644 --- a/clients/client-emr/package.json +++ b/clients/client-emr/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-eventbridge/package.json b/clients/client-eventbridge/package.json index 4c6c26574955..250ac51f57b7 100644 --- a/clients/client-eventbridge/package.json +++ b/clients/client-eventbridge/package.json @@ -45,8 +45,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-evidently/package.json b/clients/client-evidently/package.json index e9f7391decdd..69b171bcd27c 100644 --- a/clients/client-evidently/package.json +++ b/clients/client-evidently/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-finspace-data/package.json b/clients/client-finspace-data/package.json index 56f107ebf6b5..a2d1c66d73ea 100644 --- a/clients/client-finspace-data/package.json +++ b/clients/client-finspace-data/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-finspace/package.json b/clients/client-finspace/package.json index d6c8cc9c970b..b10fb0f2da23 100644 --- a/clients/client-finspace/package.json +++ b/clients/client-finspace/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-firehose/package.json b/clients/client-firehose/package.json index 1d505eca53b6..5be3951f8830 100644 --- a/clients/client-firehose/package.json +++ b/clients/client-firehose/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-fis/package.json b/clients/client-fis/package.json index 94e68822c570..e220514ef928 100644 --- a/clients/client-fis/package.json +++ b/clients/client-fis/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-fms/package.json b/clients/client-fms/package.json index ab3282e00f01..7cd32f86a212 100644 --- a/clients/client-fms/package.json +++ b/clients/client-fms/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-forecast/package.json b/clients/client-forecast/package.json index c10616e0fb59..3349798ed6da 100644 --- a/clients/client-forecast/package.json +++ b/clients/client-forecast/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-forecastquery/package.json b/clients/client-forecastquery/package.json index c67c67159283..862eb144a449 100644 --- a/clients/client-forecastquery/package.json +++ b/clients/client-forecastquery/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-frauddetector/package.json b/clients/client-frauddetector/package.json index a461fc22f88a..d230d8f82d35 100644 --- a/clients/client-frauddetector/package.json +++ b/clients/client-frauddetector/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-fsx/package.json b/clients/client-fsx/package.json index abc432e31315..39597d59aafc 100644 --- a/clients/client-fsx/package.json +++ b/clients/client-fsx/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-gamelift/package.json b/clients/client-gamelift/package.json index 79c29bdcf996..ce3fed4d4e91 100644 --- a/clients/client-gamelift/package.json +++ b/clients/client-gamelift/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-gamesparks/package.json b/clients/client-gamesparks/package.json index 8a9d3f0980bd..12e07e113fbf 100644 --- a/clients/client-gamesparks/package.json +++ b/clients/client-gamesparks/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-glacier/package.json b/clients/client-glacier/package.json index 5663cbe384f3..50c058f22c21 100644 --- a/clients/client-glacier/package.json +++ b/clients/client-glacier/package.json @@ -45,8 +45,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-global-accelerator/package.json b/clients/client-global-accelerator/package.json index 2d5df2afa277..44e5db56e2b2 100644 --- a/clients/client-global-accelerator/package.json +++ b/clients/client-global-accelerator/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-glue/package.json b/clients/client-glue/package.json index 724b58316b30..adda306799d4 100644 --- a/clients/client-glue/package.json +++ b/clients/client-glue/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-grafana/package.json b/clients/client-grafana/package.json index ac9c1a4df8b3..e766412fba55 100644 --- a/clients/client-grafana/package.json +++ b/clients/client-grafana/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-greengrass/package.json b/clients/client-greengrass/package.json index a6d4b741c634..911dfd7cf47d 100644 --- a/clients/client-greengrass/package.json +++ b/clients/client-greengrass/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-greengrassv2/package.json b/clients/client-greengrassv2/package.json index da2291e7c039..db070f372c91 100644 --- a/clients/client-greengrassv2/package.json +++ b/clients/client-greengrassv2/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-groundstation/package.json b/clients/client-groundstation/package.json index d5d44ccc961e..46ae637bafc5 100644 --- a/clients/client-groundstation/package.json +++ b/clients/client-groundstation/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-guardduty/package.json b/clients/client-guardduty/package.json index 22a6a9dbdfa3..99ae702fee73 100644 --- a/clients/client-guardduty/package.json +++ b/clients/client-guardduty/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-health/package.json b/clients/client-health/package.json index c84d4b030326..608fa1691383 100644 --- a/clients/client-health/package.json +++ b/clients/client-health/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-healthlake/package.json b/clients/client-healthlake/package.json index 6a85b716f0e6..b8eaf475c4b3 100644 --- a/clients/client-healthlake/package.json +++ b/clients/client-healthlake/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-honeycode/package.json b/clients/client-honeycode/package.json index a99bf7c1d695..cb969f4b7fef 100644 --- a/clients/client-honeycode/package.json +++ b/clients/client-honeycode/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-iam/package.json b/clients/client-iam/package.json index 79697e4a7aa7..b1338f380a94 100644 --- a/clients/client-iam/package.json +++ b/clients/client-iam/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-identitystore/package.json b/clients/client-identitystore/package.json index cdbcbfbbfd63..1603275ab169 100644 --- a/clients/client-identitystore/package.json +++ b/clients/client-identitystore/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-imagebuilder/package.json b/clients/client-imagebuilder/package.json index dc663f4cfc0f..dd17ba1131e1 100644 --- a/clients/client-imagebuilder/package.json +++ b/clients/client-imagebuilder/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-inspector/package.json b/clients/client-inspector/package.json index 1a38f567f266..ce8463f806b4 100644 --- a/clients/client-inspector/package.json +++ b/clients/client-inspector/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-inspector2/package.json b/clients/client-inspector2/package.json index 3b2d29be745a..ddca7fef9900 100644 --- a/clients/client-inspector2/package.json +++ b/clients/client-inspector2/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-iot-1click-devices-service/package.json b/clients/client-iot-1click-devices-service/package.json index b0132579fedd..4b40a054f59f 100644 --- a/clients/client-iot-1click-devices-service/package.json +++ b/clients/client-iot-1click-devices-service/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-iot-1click-projects/package.json b/clients/client-iot-1click-projects/package.json index 34fbc200cf47..dcaa191a3c0b 100644 --- a/clients/client-iot-1click-projects/package.json +++ b/clients/client-iot-1click-projects/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-iot-data-plane/package.json b/clients/client-iot-data-plane/package.json index 76c9f99c8bfb..c4f560d4bc60 100644 --- a/clients/client-iot-data-plane/package.json +++ b/clients/client-iot-data-plane/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-iot-events-data/package.json b/clients/client-iot-events-data/package.json index 57ba953972a4..309ec6dad5a1 100644 --- a/clients/client-iot-events-data/package.json +++ b/clients/client-iot-events-data/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-iot-events/package.json b/clients/client-iot-events/package.json index d3024a88be87..d5abd4a986c5 100644 --- a/clients/client-iot-events/package.json +++ b/clients/client-iot-events/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-iot-jobs-data-plane/package.json b/clients/client-iot-jobs-data-plane/package.json index 6174258d15bc..c0fffbd070c6 100644 --- a/clients/client-iot-jobs-data-plane/package.json +++ b/clients/client-iot-jobs-data-plane/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-iot-wireless/package.json b/clients/client-iot-wireless/package.json index 8a5d2c6ed2c7..fa8fcc82b8b3 100644 --- a/clients/client-iot-wireless/package.json +++ b/clients/client-iot-wireless/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-iot/package.json b/clients/client-iot/package.json index 1ff5926d8910..f9583c57ff13 100644 --- a/clients/client-iot/package.json +++ b/clients/client-iot/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-iotanalytics/package.json b/clients/client-iotanalytics/package.json index 36d2f5548284..61fce8b8a383 100644 --- a/clients/client-iotanalytics/package.json +++ b/clients/client-iotanalytics/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-iotdeviceadvisor/package.json b/clients/client-iotdeviceadvisor/package.json index 924b4461c565..5f93551faef1 100644 --- a/clients/client-iotdeviceadvisor/package.json +++ b/clients/client-iotdeviceadvisor/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-iotfleethub/package.json b/clients/client-iotfleethub/package.json index 16562dfeaf6b..3eeb24aad839 100644 --- a/clients/client-iotfleethub/package.json +++ b/clients/client-iotfleethub/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-iotfleetwise/package.json b/clients/client-iotfleetwise/package.json index 6d991c425ac3..475179830039 100644 --- a/clients/client-iotfleetwise/package.json +++ b/clients/client-iotfleetwise/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-iotsecuretunneling/package.json b/clients/client-iotsecuretunneling/package.json index b51f64d7ce3b..7d414e238af2 100644 --- a/clients/client-iotsecuretunneling/package.json +++ b/clients/client-iotsecuretunneling/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-iotsitewise/package.json b/clients/client-iotsitewise/package.json index c99acec9e715..f9610daf357f 100644 --- a/clients/client-iotsitewise/package.json +++ b/clients/client-iotsitewise/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-iotthingsgraph/package.json b/clients/client-iotthingsgraph/package.json index 206a1145a57d..5202bed695c7 100644 --- a/clients/client-iotthingsgraph/package.json +++ b/clients/client-iotthingsgraph/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-iottwinmaker/package.json b/clients/client-iottwinmaker/package.json index 603c3ae84deb..ed9c654eb2d7 100644 --- a/clients/client-iottwinmaker/package.json +++ b/clients/client-iottwinmaker/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-ivs/package.json b/clients/client-ivs/package.json index 2a9aec6b2809..5afbac33389a 100644 --- a/clients/client-ivs/package.json +++ b/clients/client-ivs/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-ivschat/package.json b/clients/client-ivschat/package.json index 8fe36e96a35d..7c10e031b355 100644 --- a/clients/client-ivschat/package.json +++ b/clients/client-ivschat/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-kafka/package.json b/clients/client-kafka/package.json index 4fae8d5106ca..46f95f06e291 100644 --- a/clients/client-kafka/package.json +++ b/clients/client-kafka/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-kafkaconnect/package.json b/clients/client-kafkaconnect/package.json index c895ba17c98e..167b5ceaa07f 100644 --- a/clients/client-kafkaconnect/package.json +++ b/clients/client-kafkaconnect/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-kendra/package.json b/clients/client-kendra/package.json index 9180174a984a..f55b5b05e0ea 100644 --- a/clients/client-kendra/package.json +++ b/clients/client-kendra/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-keyspaces/package.json b/clients/client-keyspaces/package.json index 8ee2b3e22c7a..7f3e0a9f1a0e 100644 --- a/clients/client-keyspaces/package.json +++ b/clients/client-keyspaces/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-kinesis-analytics-v2/package.json b/clients/client-kinesis-analytics-v2/package.json index 94a0d4bed1e0..301c4f136ea6 100644 --- a/clients/client-kinesis-analytics-v2/package.json +++ b/clients/client-kinesis-analytics-v2/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-kinesis-analytics/package.json b/clients/client-kinesis-analytics/package.json index d088ec985db2..4e6878b51eff 100644 --- a/clients/client-kinesis-analytics/package.json +++ b/clients/client-kinesis-analytics/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-kinesis-video-archived-media/package.json b/clients/client-kinesis-video-archived-media/package.json index 80f705dc7813..37dc01950572 100644 --- a/clients/client-kinesis-video-archived-media/package.json +++ b/clients/client-kinesis-video-archived-media/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-kinesis-video-media/package.json b/clients/client-kinesis-video-media/package.json index 58c5e7ad25b0..eef8a79497ac 100644 --- a/clients/client-kinesis-video-media/package.json +++ b/clients/client-kinesis-video-media/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-kinesis-video-signaling/package.json b/clients/client-kinesis-video-signaling/package.json index 67e30ba5eda2..c0c36174022a 100644 --- a/clients/client-kinesis-video-signaling/package.json +++ b/clients/client-kinesis-video-signaling/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-kinesis-video/package.json b/clients/client-kinesis-video/package.json index a3de183660ca..95049e2b0ace 100644 --- a/clients/client-kinesis-video/package.json +++ b/clients/client-kinesis-video/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-kinesis/package.json b/clients/client-kinesis/package.json index a279163bfa68..29f935b7a244 100644 --- a/clients/client-kinesis/package.json +++ b/clients/client-kinesis/package.json @@ -45,8 +45,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-kms/package.json b/clients/client-kms/package.json index 639b612702fa..5ee51bfb6b17 100644 --- a/clients/client-kms/package.json +++ b/clients/client-kms/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-lakeformation/package.json b/clients/client-lakeformation/package.json index 8994d8f4f08b..30ad644ce257 100644 --- a/clients/client-lakeformation/package.json +++ b/clients/client-lakeformation/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-lambda/package.json b/clients/client-lambda/package.json index 2bac9027b927..420ad4477f49 100644 --- a/clients/client-lambda/package.json +++ b/clients/client-lambda/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-lex-model-building-service/package.json b/clients/client-lex-model-building-service/package.json index 3f48a5eab713..7dbf1984a9d8 100644 --- a/clients/client-lex-model-building-service/package.json +++ b/clients/client-lex-model-building-service/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-lex-models-v2/package.json b/clients/client-lex-models-v2/package.json index 0f5ae070d786..7abaec2d618c 100644 --- a/clients/client-lex-models-v2/package.json +++ b/clients/client-lex-models-v2/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-lex-runtime-service/package.json b/clients/client-lex-runtime-service/package.json index aa951e375f8f..851b12b9e7f5 100644 --- a/clients/client-lex-runtime-service/package.json +++ b/clients/client-lex-runtime-service/package.json @@ -44,8 +44,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-lex-runtime-v2/package.json b/clients/client-lex-runtime-v2/package.json index 3ff20a398178..3a3c4c9151c7 100644 --- a/clients/client-lex-runtime-v2/package.json +++ b/clients/client-lex-runtime-v2/package.json @@ -47,8 +47,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-license-manager-user-subscriptions/package.json b/clients/client-license-manager-user-subscriptions/package.json index 73f901d6d082..296f36e3afe7 100644 --- a/clients/client-license-manager-user-subscriptions/package.json +++ b/clients/client-license-manager-user-subscriptions/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-license-manager/package.json b/clients/client-license-manager/package.json index a96590430e42..8dbde4a32044 100644 --- a/clients/client-license-manager/package.json +++ b/clients/client-license-manager/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-lightsail/package.json b/clients/client-lightsail/package.json index 345d2f1b7673..4f20b023812a 100644 --- a/clients/client-lightsail/package.json +++ b/clients/client-lightsail/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-location/package.json b/clients/client-location/package.json index 62019a61c99b..22c00ad764bc 100644 --- a/clients/client-location/package.json +++ b/clients/client-location/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-lookoutequipment/package.json b/clients/client-lookoutequipment/package.json index f41e9f2ef234..7a1ee997063a 100644 --- a/clients/client-lookoutequipment/package.json +++ b/clients/client-lookoutequipment/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-lookoutmetrics/package.json b/clients/client-lookoutmetrics/package.json index 181b450f60d9..2e2232be5a02 100644 --- a/clients/client-lookoutmetrics/package.json +++ b/clients/client-lookoutmetrics/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-lookoutvision/package.json b/clients/client-lookoutvision/package.json index 5ed5a55c25d7..9074bf10d560 100644 --- a/clients/client-lookoutvision/package.json +++ b/clients/client-lookoutvision/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-m2/package.json b/clients/client-m2/package.json index 2fa12eb13bb2..5cfe5152d6d5 100644 --- a/clients/client-m2/package.json +++ b/clients/client-m2/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-machine-learning/package.json b/clients/client-machine-learning/package.json index 32d33118a3f4..bc76fa82ab80 100644 --- a/clients/client-machine-learning/package.json +++ b/clients/client-machine-learning/package.json @@ -43,8 +43,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-macie/package.json b/clients/client-macie/package.json index f75ee7d239e6..f3a29e1cbeac 100644 --- a/clients/client-macie/package.json +++ b/clients/client-macie/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-macie2/package.json b/clients/client-macie2/package.json index 371a3d1fac0e..9b6694d21038 100644 --- a/clients/client-macie2/package.json +++ b/clients/client-macie2/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-managedblockchain/package.json b/clients/client-managedblockchain/package.json index 013e9dae8af1..3cf6236aa218 100644 --- a/clients/client-managedblockchain/package.json +++ b/clients/client-managedblockchain/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-marketplace-catalog/package.json b/clients/client-marketplace-catalog/package.json index f0676ca6d81d..9939680a66e9 100644 --- a/clients/client-marketplace-catalog/package.json +++ b/clients/client-marketplace-catalog/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-marketplace-commerce-analytics/package.json b/clients/client-marketplace-commerce-analytics/package.json index faa4615901d2..7927885856ca 100644 --- a/clients/client-marketplace-commerce-analytics/package.json +++ b/clients/client-marketplace-commerce-analytics/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-marketplace-entitlement-service/package.json b/clients/client-marketplace-entitlement-service/package.json index 63490a2ec60e..265125a1e021 100644 --- a/clients/client-marketplace-entitlement-service/package.json +++ b/clients/client-marketplace-entitlement-service/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-marketplace-metering/package.json b/clients/client-marketplace-metering/package.json index b068c7ac07e2..58f0bbec8e56 100644 --- a/clients/client-marketplace-metering/package.json +++ b/clients/client-marketplace-metering/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-mediaconnect/package.json b/clients/client-mediaconnect/package.json index e4bae4d655e6..5dd1340fcdcb 100644 --- a/clients/client-mediaconnect/package.json +++ b/clients/client-mediaconnect/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-mediaconvert/package.json b/clients/client-mediaconvert/package.json index dd4fada51651..59de0c67aaab 100644 --- a/clients/client-mediaconvert/package.json +++ b/clients/client-mediaconvert/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-medialive/package.json b/clients/client-medialive/package.json index cf1b237f7689..604058fae067 100644 --- a/clients/client-medialive/package.json +++ b/clients/client-medialive/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-mediapackage-vod/package.json b/clients/client-mediapackage-vod/package.json index 942467255db9..9b1375c896ff 100644 --- a/clients/client-mediapackage-vod/package.json +++ b/clients/client-mediapackage-vod/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-mediapackage/package.json b/clients/client-mediapackage/package.json index b815e1534038..442e274629ba 100644 --- a/clients/client-mediapackage/package.json +++ b/clients/client-mediapackage/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-mediastore-data/package.json b/clients/client-mediastore-data/package.json index 4d8fe9c9b2a4..d01f2c7bfebf 100644 --- a/clients/client-mediastore-data/package.json +++ b/clients/client-mediastore-data/package.json @@ -44,8 +44,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-mediastore/package.json b/clients/client-mediastore/package.json index 7b1bd909d630..4b614f58a301 100644 --- a/clients/client-mediastore/package.json +++ b/clients/client-mediastore/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-mediatailor/package.json b/clients/client-mediatailor/package.json index bc7d15e89e2d..bc09ace4898c 100644 --- a/clients/client-mediatailor/package.json +++ b/clients/client-mediatailor/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-memorydb/package.json b/clients/client-memorydb/package.json index faa71e66f0a7..fa37789afb6e 100644 --- a/clients/client-memorydb/package.json +++ b/clients/client-memorydb/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-mgn/package.json b/clients/client-mgn/package.json index 91a371a3a42a..3e78d4e9661c 100644 --- a/clients/client-mgn/package.json +++ b/clients/client-mgn/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-migration-hub-refactor-spaces/package.json b/clients/client-migration-hub-refactor-spaces/package.json index d54748d34929..c40c68af7423 100644 --- a/clients/client-migration-hub-refactor-spaces/package.json +++ b/clients/client-migration-hub-refactor-spaces/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-migration-hub/package.json b/clients/client-migration-hub/package.json index 732106713cc3..1fa2cdc3173f 100644 --- a/clients/client-migration-hub/package.json +++ b/clients/client-migration-hub/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-migrationhub-config/package.json b/clients/client-migrationhub-config/package.json index aa921764bccb..7231b85ad55c 100644 --- a/clients/client-migrationhub-config/package.json +++ b/clients/client-migrationhub-config/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-migrationhuborchestrator/package.json b/clients/client-migrationhuborchestrator/package.json index 8dff55d27abc..24b3932e35dc 100644 --- a/clients/client-migrationhuborchestrator/package.json +++ b/clients/client-migrationhuborchestrator/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-migrationhubstrategy/package.json b/clients/client-migrationhubstrategy/package.json index e13d05ad8c6e..9b14b6ca8e91 100644 --- a/clients/client-migrationhubstrategy/package.json +++ b/clients/client-migrationhubstrategy/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-mobile/package.json b/clients/client-mobile/package.json index c192fa37b5e1..11c94ac03db0 100644 --- a/clients/client-mobile/package.json +++ b/clients/client-mobile/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-mq/package.json b/clients/client-mq/package.json index 860ae28b1cb5..54e078bdca17 100644 --- a/clients/client-mq/package.json +++ b/clients/client-mq/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-mturk/package.json b/clients/client-mturk/package.json index 953d4655cce3..35475513c29c 100644 --- a/clients/client-mturk/package.json +++ b/clients/client-mturk/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-mwaa/package.json b/clients/client-mwaa/package.json index 4be37b517af4..acef88588a61 100644 --- a/clients/client-mwaa/package.json +++ b/clients/client-mwaa/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-neptune/package.json b/clients/client-neptune/package.json index ed719c3f0924..eaafd772ee92 100644 --- a/clients/client-neptune/package.json +++ b/clients/client-neptune/package.json @@ -43,8 +43,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-network-firewall/package.json b/clients/client-network-firewall/package.json index adc7302a12da..197265f289f9 100644 --- a/clients/client-network-firewall/package.json +++ b/clients/client-network-firewall/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-networkmanager/package.json b/clients/client-networkmanager/package.json index 750f2cec643f..a11ca19a3115 100644 --- a/clients/client-networkmanager/package.json +++ b/clients/client-networkmanager/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-nimble/package.json b/clients/client-nimble/package.json index e71cf01b4f6f..d1d982fac867 100644 --- a/clients/client-nimble/package.json +++ b/clients/client-nimble/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-opensearch/package.json b/clients/client-opensearch/package.json index a469335f6115..9f858d5ff134 100644 --- a/clients/client-opensearch/package.json +++ b/clients/client-opensearch/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-opsworks/package.json b/clients/client-opsworks/package.json index ada43ef17364..19a221d36644 100644 --- a/clients/client-opsworks/package.json +++ b/clients/client-opsworks/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-opsworkscm/package.json b/clients/client-opsworkscm/package.json index 28896c0fe3f7..357e91218875 100644 --- a/clients/client-opsworkscm/package.json +++ b/clients/client-opsworkscm/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-organizations/package.json b/clients/client-organizations/package.json index 169ba78d7882..903d95b00e94 100644 --- a/clients/client-organizations/package.json +++ b/clients/client-organizations/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-outposts/package.json b/clients/client-outposts/package.json index 526da6ace872..f41927fa7c84 100644 --- a/clients/client-outposts/package.json +++ b/clients/client-outposts/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-panorama/package.json b/clients/client-panorama/package.json index b625ba7ecb54..8f248b907f61 100644 --- a/clients/client-panorama/package.json +++ b/clients/client-panorama/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-personalize-events/package.json b/clients/client-personalize-events/package.json index bf1e6d80cb3b..2cf5a0a6d5aa 100644 --- a/clients/client-personalize-events/package.json +++ b/clients/client-personalize-events/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-personalize-runtime/package.json b/clients/client-personalize-runtime/package.json index 6ac43d5b7e7b..266779ac009b 100644 --- a/clients/client-personalize-runtime/package.json +++ b/clients/client-personalize-runtime/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-personalize/package.json b/clients/client-personalize/package.json index 56aa3249730a..0ae1ed6c8415 100644 --- a/clients/client-personalize/package.json +++ b/clients/client-personalize/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-pi/package.json b/clients/client-pi/package.json index f2ff68a37bc3..e2a34bae20ae 100644 --- a/clients/client-pi/package.json +++ b/clients/client-pi/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-pinpoint-email/package.json b/clients/client-pinpoint-email/package.json index a77f998e633d..c61a158640ee 100644 --- a/clients/client-pinpoint-email/package.json +++ b/clients/client-pinpoint-email/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-pinpoint-sms-voice-v2/package.json b/clients/client-pinpoint-sms-voice-v2/package.json index a8d4c2ccb8f4..0acdc7477560 100644 --- a/clients/client-pinpoint-sms-voice-v2/package.json +++ b/clients/client-pinpoint-sms-voice-v2/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-pinpoint-sms-voice/package.json b/clients/client-pinpoint-sms-voice/package.json index 0e16de33be9a..2f40520d0f5c 100644 --- a/clients/client-pinpoint-sms-voice/package.json +++ b/clients/client-pinpoint-sms-voice/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-pinpoint/package.json b/clients/client-pinpoint/package.json index eba2b9325de1..7d2322b98c60 100644 --- a/clients/client-pinpoint/package.json +++ b/clients/client-pinpoint/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-polly/package.json b/clients/client-polly/package.json index 9b5898d5273a..989a3d990d0a 100644 --- a/clients/client-polly/package.json +++ b/clients/client-polly/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-pricing/package.json b/clients/client-pricing/package.json index 017525d9f2cd..1bafac12a950 100644 --- a/clients/client-pricing/package.json +++ b/clients/client-pricing/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-privatenetworks/package.json b/clients/client-privatenetworks/package.json index 1e142dad3fe2..cd2a026f0dc7 100644 --- a/clients/client-privatenetworks/package.json +++ b/clients/client-privatenetworks/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-proton/package.json b/clients/client-proton/package.json index 55a45ed00cf8..c3cc9da97bfb 100644 --- a/clients/client-proton/package.json +++ b/clients/client-proton/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-qldb-session/package.json b/clients/client-qldb-session/package.json index 46501978b4a2..3a46f4cb1090 100644 --- a/clients/client-qldb-session/package.json +++ b/clients/client-qldb-session/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-qldb/package.json b/clients/client-qldb/package.json index 57c97765e5c1..29d7e83268fe 100644 --- a/clients/client-qldb/package.json +++ b/clients/client-qldb/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-quicksight/package.json b/clients/client-quicksight/package.json index 9303f8c7255a..cdc6e113e328 100644 --- a/clients/client-quicksight/package.json +++ b/clients/client-quicksight/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-ram/package.json b/clients/client-ram/package.json index 48e4f34099f5..f756dc465a40 100644 --- a/clients/client-ram/package.json +++ b/clients/client-ram/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-rbin/package.json b/clients/client-rbin/package.json index a60fef9c3b37..8e6ec1971fb9 100644 --- a/clients/client-rbin/package.json +++ b/clients/client-rbin/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-rds-data/package.json b/clients/client-rds-data/package.json index d6472472a53d..aeaa529541e8 100644 --- a/clients/client-rds-data/package.json +++ b/clients/client-rds-data/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-rds/package.json b/clients/client-rds/package.json index 89d353dc1150..49a9332de53f 100644 --- a/clients/client-rds/package.json +++ b/clients/client-rds/package.json @@ -43,8 +43,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-redshift-data/package.json b/clients/client-redshift-data/package.json index c994376315b6..3ddd8d97d6d9 100644 --- a/clients/client-redshift-data/package.json +++ b/clients/client-redshift-data/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-redshift-serverless/package.json b/clients/client-redshift-serverless/package.json index 3bd5b341e068..5523e9f7fcc9 100644 --- a/clients/client-redshift-serverless/package.json +++ b/clients/client-redshift-serverless/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-redshift/package.json b/clients/client-redshift/package.json index 3934b6647412..430f5434a2de 100644 --- a/clients/client-redshift/package.json +++ b/clients/client-redshift/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-rekognition/package.json b/clients/client-rekognition/package.json index 1b29508b4e12..de6fed9ea9f1 100644 --- a/clients/client-rekognition/package.json +++ b/clients/client-rekognition/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-resiliencehub/package.json b/clients/client-resiliencehub/package.json index f8269f9f434c..6423848f79e4 100644 --- a/clients/client-resiliencehub/package.json +++ b/clients/client-resiliencehub/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-resource-groups-tagging-api/package.json b/clients/client-resource-groups-tagging-api/package.json index 9133b15b34ca..63d01d4aa68f 100644 --- a/clients/client-resource-groups-tagging-api/package.json +++ b/clients/client-resource-groups-tagging-api/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-resource-groups/package.json b/clients/client-resource-groups/package.json index 739ce8f2ef38..cefbb4a16f33 100644 --- a/clients/client-resource-groups/package.json +++ b/clients/client-resource-groups/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-robomaker/package.json b/clients/client-robomaker/package.json index b9a34e24b113..844c3c322888 100644 --- a/clients/client-robomaker/package.json +++ b/clients/client-robomaker/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-rolesanywhere/package.json b/clients/client-rolesanywhere/package.json index 8b3462634f02..e8ac877c2fdb 100644 --- a/clients/client-rolesanywhere/package.json +++ b/clients/client-rolesanywhere/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-route-53-domains/package.json b/clients/client-route-53-domains/package.json index ae696979a9d9..3f7de37e35b3 100644 --- a/clients/client-route-53-domains/package.json +++ b/clients/client-route-53-domains/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-route-53/package.json b/clients/client-route-53/package.json index b613460dea24..b6fb7e861a67 100644 --- a/clients/client-route-53/package.json +++ b/clients/client-route-53/package.json @@ -43,8 +43,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-route53-recovery-cluster/package.json b/clients/client-route53-recovery-cluster/package.json index eeea45ccb9db..5a2e5f426144 100644 --- a/clients/client-route53-recovery-cluster/package.json +++ b/clients/client-route53-recovery-cluster/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-route53-recovery-control-config/package.json b/clients/client-route53-recovery-control-config/package.json index db9ec7f7dcc1..605388221021 100644 --- a/clients/client-route53-recovery-control-config/package.json +++ b/clients/client-route53-recovery-control-config/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-route53-recovery-readiness/package.json b/clients/client-route53-recovery-readiness/package.json index 936e1b866d5c..0fd000551166 100644 --- a/clients/client-route53-recovery-readiness/package.json +++ b/clients/client-route53-recovery-readiness/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-route53resolver/package.json b/clients/client-route53resolver/package.json index 3d648e6a7401..a0a892e6ec6b 100644 --- a/clients/client-route53resolver/package.json +++ b/clients/client-route53resolver/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-rum/package.json b/clients/client-rum/package.json index 5c712a0ef64d..1810ea1d18f6 100644 --- a/clients/client-rum/package.json +++ b/clients/client-rum/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-s3-control/package.json b/clients/client-s3-control/package.json index 725a3f66ac18..874cda0195aa 100644 --- a/clients/client-s3-control/package.json +++ b/clients/client-s3-control/package.json @@ -49,8 +49,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-s3/package.json b/clients/client-s3/package.json index f8e076419862..0a58af138be4 100644 --- a/clients/client-s3/package.json +++ b/clients/client-s3/package.json @@ -59,8 +59,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-s3outposts/package.json b/clients/client-s3outposts/package.json index 5f66530d7ccd..01b9bee95f5d 100644 --- a/clients/client-s3outposts/package.json +++ b/clients/client-s3outposts/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-sagemaker-a2i-runtime/package.json b/clients/client-sagemaker-a2i-runtime/package.json index 5d7268ae0a35..d8e71c2061e6 100644 --- a/clients/client-sagemaker-a2i-runtime/package.json +++ b/clients/client-sagemaker-a2i-runtime/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-sagemaker-edge/package.json b/clients/client-sagemaker-edge/package.json index bb989f84b328..a43cb7c6d078 100644 --- a/clients/client-sagemaker-edge/package.json +++ b/clients/client-sagemaker-edge/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-sagemaker-featurestore-runtime/package.json b/clients/client-sagemaker-featurestore-runtime/package.json index 3a7287d1c0d0..033849f20dad 100644 --- a/clients/client-sagemaker-featurestore-runtime/package.json +++ b/clients/client-sagemaker-featurestore-runtime/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-sagemaker-runtime/package.json b/clients/client-sagemaker-runtime/package.json index 150d3aa5c557..4b4e6791fdb9 100644 --- a/clients/client-sagemaker-runtime/package.json +++ b/clients/client-sagemaker-runtime/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-sagemaker/package.json b/clients/client-sagemaker/package.json index 93b236480347..6e8ca9b03219 100644 --- a/clients/client-sagemaker/package.json +++ b/clients/client-sagemaker/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-savingsplans/package.json b/clients/client-savingsplans/package.json index ae271f6bc8cd..76903dfcf854 100644 --- a/clients/client-savingsplans/package.json +++ b/clients/client-savingsplans/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-schemas/package.json b/clients/client-schemas/package.json index adfee3d6a6d1..6b617b263cbf 100644 --- a/clients/client-schemas/package.json +++ b/clients/client-schemas/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-secrets-manager/package.json b/clients/client-secrets-manager/package.json index b7d753042642..49e1f91a3055 100644 --- a/clients/client-secrets-manager/package.json +++ b/clients/client-secrets-manager/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-securityhub/package.json b/clients/client-securityhub/package.json index 3e2621fd057f..6d9d8c36cf2a 100644 --- a/clients/client-securityhub/package.json +++ b/clients/client-securityhub/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-serverlessapplicationrepository/package.json b/clients/client-serverlessapplicationrepository/package.json index 2a19755749de..d2808fc5e79c 100644 --- a/clients/client-serverlessapplicationrepository/package.json +++ b/clients/client-serverlessapplicationrepository/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-service-catalog-appregistry/package.json b/clients/client-service-catalog-appregistry/package.json index 2ed58dcc96c8..bc9a312007e8 100644 --- a/clients/client-service-catalog-appregistry/package.json +++ b/clients/client-service-catalog-appregistry/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-service-catalog/package.json b/clients/client-service-catalog/package.json index 749985c4636a..6cdf93a71a87 100644 --- a/clients/client-service-catalog/package.json +++ b/clients/client-service-catalog/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-service-quotas/package.json b/clients/client-service-quotas/package.json index 9ede4a3816a9..fe85c2e0a24a 100644 --- a/clients/client-service-quotas/package.json +++ b/clients/client-service-quotas/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-servicediscovery/package.json b/clients/client-servicediscovery/package.json index 82e4935a07c9..e5d9f7db4f3d 100644 --- a/clients/client-servicediscovery/package.json +++ b/clients/client-servicediscovery/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-ses/package.json b/clients/client-ses/package.json index c99c8b82ab78..c0369a7ffb1e 100644 --- a/clients/client-ses/package.json +++ b/clients/client-ses/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-sesv2/package.json b/clients/client-sesv2/package.json index 1499c6dff506..e79bba978f04 100644 --- a/clients/client-sesv2/package.json +++ b/clients/client-sesv2/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-sfn/package.json b/clients/client-sfn/package.json index 132acf9ab71e..de098c3e7062 100644 --- a/clients/client-sfn/package.json +++ b/clients/client-sfn/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-shield/package.json b/clients/client-shield/package.json index 78ab22411d97..b077348fd879 100644 --- a/clients/client-shield/package.json +++ b/clients/client-shield/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-signer/package.json b/clients/client-signer/package.json index 059cd44b5f2a..a81d0b5d3f13 100644 --- a/clients/client-signer/package.json +++ b/clients/client-signer/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-sms/package.json b/clients/client-sms/package.json index 7e828cb4595f..43e2f6a7b16b 100644 --- a/clients/client-sms/package.json +++ b/clients/client-sms/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-snow-device-management/package.json b/clients/client-snow-device-management/package.json index 1b1dfad0c055..bf1c1a1da8a6 100644 --- a/clients/client-snow-device-management/package.json +++ b/clients/client-snow-device-management/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-snowball/package.json b/clients/client-snowball/package.json index 8178622d0819..dfb62a0f008a 100644 --- a/clients/client-snowball/package.json +++ b/clients/client-snowball/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-sns/package.json b/clients/client-sns/package.json index a3b66a5e1336..8b30544835bd 100644 --- a/clients/client-sns/package.json +++ b/clients/client-sns/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-sqs/package.json b/clients/client-sqs/package.json index 9f7964b731be..c5fcecc6a2dc 100644 --- a/clients/client-sqs/package.json +++ b/clients/client-sqs/package.json @@ -44,8 +44,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-ssm-contacts/package.json b/clients/client-ssm-contacts/package.json index ee1e20060382..23b6be725381 100644 --- a/clients/client-ssm-contacts/package.json +++ b/clients/client-ssm-contacts/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-ssm-incidents/package.json b/clients/client-ssm-incidents/package.json index 84e1226793d0..e16ec4ccf9bc 100644 --- a/clients/client-ssm-incidents/package.json +++ b/clients/client-ssm-incidents/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-ssm/package.json b/clients/client-ssm/package.json index 8d0631d4a4a2..f24c15dff046 100644 --- a/clients/client-ssm/package.json +++ b/clients/client-ssm/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-sso-admin/package.json b/clients/client-sso-admin/package.json index 224e72827670..18d15246d2c5 100644 --- a/clients/client-sso-admin/package.json +++ b/clients/client-sso-admin/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-sso-oidc/package.json b/clients/client-sso-oidc/package.json index bb4f70784971..15502f35e4c9 100644 --- a/clients/client-sso-oidc/package.json +++ b/clients/client-sso-oidc/package.json @@ -39,8 +39,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-sso/package.json b/clients/client-sso/package.json index 11c4fe4c364d..4def68ad0194 100644 --- a/clients/client-sso/package.json +++ b/clients/client-sso/package.json @@ -39,8 +39,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-storage-gateway/package.json b/clients/client-storage-gateway/package.json index 4832c1fc65d4..1f5e6308875c 100644 --- a/clients/client-storage-gateway/package.json +++ b/clients/client-storage-gateway/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-sts/package.json b/clients/client-sts/package.json index 5aa178e6ede5..707a0ecfd457 100644 --- a/clients/client-sts/package.json +++ b/clients/client-sts/package.json @@ -44,8 +44,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-support-app/package.json b/clients/client-support-app/package.json index b2f17a499b93..ca73fc131a60 100644 --- a/clients/client-support-app/package.json +++ b/clients/client-support-app/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-support/package.json b/clients/client-support/package.json index 8a01f808ce3a..f8a2c895a5fa 100644 --- a/clients/client-support/package.json +++ b/clients/client-support/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-swf/package.json b/clients/client-swf/package.json index 135cf48ecd4d..ea7a450488fd 100644 --- a/clients/client-swf/package.json +++ b/clients/client-swf/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-synthetics/package.json b/clients/client-synthetics/package.json index d1d4092a9f9a..d9d1d23c2661 100644 --- a/clients/client-synthetics/package.json +++ b/clients/client-synthetics/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-textract/package.json b/clients/client-textract/package.json index 53611204cf2d..ab6fbf16fa48 100644 --- a/clients/client-textract/package.json +++ b/clients/client-textract/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-timestream-query/package.json b/clients/client-timestream-query/package.json index dd8386f62769..039429545262 100644 --- a/clients/client-timestream-query/package.json +++ b/clients/client-timestream-query/package.json @@ -43,8 +43,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-timestream-write/package.json b/clients/client-timestream-write/package.json index 4fc21dd7927d..4b07e126eba5 100644 --- a/clients/client-timestream-write/package.json +++ b/clients/client-timestream-write/package.json @@ -43,8 +43,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-transcribe-streaming/package.json b/clients/client-transcribe-streaming/package.json index 1b2714f84aed..83e2a36a1441 100644 --- a/clients/client-transcribe-streaming/package.json +++ b/clients/client-transcribe-streaming/package.json @@ -49,8 +49,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-transcribe/package.json b/clients/client-transcribe/package.json index 3362de3cab57..f53d0f1d2a2f 100644 --- a/clients/client-transcribe/package.json +++ b/clients/client-transcribe/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-transfer/package.json b/clients/client-transfer/package.json index 6ac9a2535fd6..d7aa5613a4f8 100644 --- a/clients/client-transfer/package.json +++ b/clients/client-transfer/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-translate/package.json b/clients/client-translate/package.json index e35e2dc4a431..68de7a9078e4 100644 --- a/clients/client-translate/package.json +++ b/clients/client-translate/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-voice-id/package.json b/clients/client-voice-id/package.json index 5116db2f57f7..e9160f501bae 100644 --- a/clients/client-voice-id/package.json +++ b/clients/client-voice-id/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-waf-regional/package.json b/clients/client-waf-regional/package.json index 9c28bfd2f87f..4099e5453688 100644 --- a/clients/client-waf-regional/package.json +++ b/clients/client-waf-regional/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-waf/package.json b/clients/client-waf/package.json index 190eefe849db..170bfce54ee7 100644 --- a/clients/client-waf/package.json +++ b/clients/client-waf/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-wafv2/package.json b/clients/client-wafv2/package.json index fd746959430b..611de9bc2f19 100644 --- a/clients/client-wafv2/package.json +++ b/clients/client-wafv2/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-wellarchitected/package.json b/clients/client-wellarchitected/package.json index ae2017cd465e..f7989f216527 100644 --- a/clients/client-wellarchitected/package.json +++ b/clients/client-wellarchitected/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-wisdom/package.json b/clients/client-wisdom/package.json index ea341c2a778d..3f820cd20438 100644 --- a/clients/client-wisdom/package.json +++ b/clients/client-wisdom/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-workdocs/package.json b/clients/client-workdocs/package.json index 3aacc97a5d95..cf0f1a3ea617 100644 --- a/clients/client-workdocs/package.json +++ b/clients/client-workdocs/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-worklink/package.json b/clients/client-worklink/package.json index 6b6daea79493..78ec73f0f485 100644 --- a/clients/client-worklink/package.json +++ b/clients/client-worklink/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-workmail/package.json b/clients/client-workmail/package.json index e0c174702717..721e6cd4df4e 100644 --- a/clients/client-workmail/package.json +++ b/clients/client-workmail/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-workmailmessageflow/package.json b/clients/client-workmailmessageflow/package.json index 205dc15c3d84..80986b0d2dfc 100644 --- a/clients/client-workmailmessageflow/package.json +++ b/clients/client-workmailmessageflow/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-workspaces-web/package.json b/clients/client-workspaces-web/package.json index cef5f696baf9..9a82139ec13c 100644 --- a/clients/client-workspaces-web/package.json +++ b/clients/client-workspaces-web/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-workspaces/package.json b/clients/client-workspaces/package.json index 60aaea3d2049..45e7dcfb85a4 100644 --- a/clients/client-workspaces/package.json +++ b/clients/client-workspaces/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/clients/client-xray/package.json b/clients/client-xray/package.json index 26faecf85dfd..82e2f68ec430 100644 --- a/clients/client-xray/package.json +++ b/clients/client-xray/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/private/aws-echo-service/package.json b/private/aws-echo-service/package.json index 71c4e6e401fb..8d37ffd228e6 100644 --- a/private/aws-echo-service/package.json +++ b/private/aws-echo-service/package.json @@ -39,8 +39,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/private/aws-protocoltests-ec2/package.json b/private/aws-protocoltests-ec2/package.json index b7b2886e43bf..98348452c5ba 100644 --- a/private/aws-protocoltests-ec2/package.json +++ b/private/aws-protocoltests-ec2/package.json @@ -39,8 +39,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/private/aws-protocoltests-json-10/package.json b/private/aws-protocoltests-json-10/package.json index d719a8e84920..33c298246997 100644 --- a/private/aws-protocoltests-json-10/package.json +++ b/private/aws-protocoltests-json-10/package.json @@ -39,8 +39,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/private/aws-protocoltests-json/package.json b/private/aws-protocoltests-json/package.json index 6035abe9b2b2..78e0fb5480c1 100644 --- a/private/aws-protocoltests-json/package.json +++ b/private/aws-protocoltests-json/package.json @@ -42,8 +42,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/private/aws-protocoltests-query/package.json b/private/aws-protocoltests-query/package.json index 20f42bf1ab8d..fc63ddf354d2 100644 --- a/private/aws-protocoltests-query/package.json +++ b/private/aws-protocoltests-query/package.json @@ -39,8 +39,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/private/aws-protocoltests-restjson/package.json b/private/aws-protocoltests-restjson/package.json index 248d315de579..9f0210e4c8ea 100644 --- a/private/aws-protocoltests-restjson/package.json +++ b/private/aws-protocoltests-restjson/package.json @@ -44,8 +44,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*", diff --git a/private/aws-protocoltests-restxml/package.json b/private/aws-protocoltests-restxml/package.json index 88c3e32a65d1..5f6615985ee1 100644 --- a/private/aws-protocoltests-restxml/package.json +++ b/private/aws-protocoltests-restxml/package.json @@ -40,8 +40,6 @@ "@aws-sdk/types": "*", "@aws-sdk/url-parser": "*", "@aws-sdk/util-base64": "*", - "@aws-sdk/util-base64-browser": "*", - "@aws-sdk/util-base64-node": "*", "@aws-sdk/util-body-length-browser": "*", "@aws-sdk/util-body-length-node": "*", "@aws-sdk/util-defaults-mode-browser": "*",