From d27301d48f3e75fdaccabf58f779f0b33a70664e Mon Sep 17 00:00:00 2001 From: George Fu Date: Mon, 29 Jan 2024 12:47:59 -0500 Subject: [PATCH] feat(credential-providers): lazy load STS & SSO clients in credential providers (#5681) * feat(credential-providers): lazy load STS client in credential providers * chore: make clients peers of providers, nocheck types * chore: unset peerdeps * chore: use peered node credential provider in sso oidc * feat(credential-providers): add logger for credential providers * feat(credential-provider-ini): defer other credential providers in ini provider --- Makefile | 27 +- .../src/runtimeConfig.ts | 4 +- clients/client-account/src/runtimeConfig.ts | 4 +- clients/client-acm-pca/src/runtimeConfig.ts | 4 +- clients/client-acm/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- clients/client-amp/src/runtimeConfig.ts | 4 +- clients/client-amplify/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../client-api-gateway/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../client-apigatewayv2/src/runtimeConfig.ts | 4 +- clients/client-app-mesh/src/runtimeConfig.ts | 4 +- clients/client-appconfig/src/runtimeConfig.ts | 4 +- .../client-appconfigdata/src/runtimeConfig.ts | 4 +- clients/client-appfabric/src/runtimeConfig.ts | 4 +- clients/client-appflow/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- clients/client-apprunner/src/runtimeConfig.ts | 4 +- clients/client-appstream/src/runtimeConfig.ts | 4 +- clients/client-appsync/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- clients/client-athena/src/runtimeConfig.ts | 4 +- .../client-auditmanager/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../client-auto-scaling/src/runtimeConfig.ts | 4 +- clients/client-b2bi/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- clients/client-backup/src/runtimeConfig.ts | 4 +- .../client-backupstorage/src/runtimeConfig.ts | 4 +- clients/client-batch/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../client-bedrock-agent/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- clients/client-bedrock/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- clients/client-braket/src/runtimeConfig.ts | 4 +- clients/client-budgets/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- clients/client-chime/src/runtimeConfig.ts | 4 +- .../client-cleanrooms/src/runtimeConfig.ts | 4 +- .../client-cleanroomsml/src/runtimeConfig.ts | 4 +- clients/client-cloud9/src/runtimeConfig.ts | 4 +- .../client-cloudcontrol/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../client-cloudfront/src/runtimeConfig.ts | 4 +- .../client-cloudhsm-v2/src/runtimeConfig.ts | 4 +- clients/client-cloudhsm/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../client-cloudsearch/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../client-cloudtrail/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../client-cloudwatch/src/runtimeConfig.ts | 4 +- .../client-codeartifact/src/runtimeConfig.ts | 4 +- clients/client-codebuild/src/runtimeConfig.ts | 4 +- .../client-codecommit/src/runtimeConfig.ts | 4 +- .../client-codedeploy/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../client-codepipeline/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- clients/client-codestar/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../client-cognito-sync/src/runtimeConfig.ts | 4 +- .../client-comprehend/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- clients/client-connect/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../client-connectcases/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../client-controltower/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../client-cost-explorer/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../client-data-pipeline/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- clients/client-databrew/src/runtimeConfig.ts | 4 +- .../client-dataexchange/src/runtimeConfig.ts | 4 +- clients/client-datasync/src/runtimeConfig.ts | 4 +- clients/client-datazone/src/runtimeConfig.ts | 4 +- clients/client-dax/src/runtimeConfig.ts | 4 +- clients/client-detective/src/runtimeConfig.ts | 4 +- .../client-device-farm/src/runtimeConfig.ts | 4 +- .../client-devops-guru/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- clients/client-dlm/src/runtimeConfig.ts | 4 +- .../client-docdb-elastic/src/runtimeConfig.ts | 4 +- clients/client-docdb/src/runtimeConfig.ts | 4 +- clients/client-drs/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- clients/client-dynamodb/src/runtimeConfig.ts | 4 +- clients/client-ebs/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- clients/client-ec2/src/runtimeConfig.ts | 4 +- .../client-ecr-public/src/runtimeConfig.ts | 4 +- clients/client-ecr/src/runtimeConfig.ts | 4 +- clients/client-ecs/src/runtimeConfig.ts | 4 +- clients/client-efs/src/runtimeConfig.ts | 4 +- clients/client-eks-auth/src/runtimeConfig.ts | 4 +- clients/client-eks/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../client-elasticache/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- clients/client-emr/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../client-eventbridge/src/runtimeConfig.ts | 4 +- clients/client-evidently/src/runtimeConfig.ts | 4 +- .../client-finspace-data/src/runtimeConfig.ts | 4 +- clients/client-finspace/src/runtimeConfig.ts | 4 +- clients/client-firehose/src/runtimeConfig.ts | 4 +- clients/client-fis/src/runtimeConfig.ts | 4 +- clients/client-fms/src/runtimeConfig.ts | 4 +- clients/client-forecast/src/runtimeConfig.ts | 4 +- .../client-forecastquery/src/runtimeConfig.ts | 4 +- .../client-frauddetector/src/runtimeConfig.ts | 4 +- clients/client-freetier/src/runtimeConfig.ts | 4 +- clients/client-fsx/src/runtimeConfig.ts | 4 +- clients/client-gamelift/src/runtimeConfig.ts | 4 +- clients/client-glacier/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- clients/client-glue/src/runtimeConfig.ts | 4 +- clients/client-grafana/src/runtimeConfig.ts | 4 +- .../client-greengrass/src/runtimeConfig.ts | 4 +- .../client-greengrassv2/src/runtimeConfig.ts | 4 +- .../client-groundstation/src/runtimeConfig.ts | 4 +- clients/client-guardduty/src/runtimeConfig.ts | 4 +- clients/client-health/src/runtimeConfig.ts | 4 +- .../client-healthlake/src/runtimeConfig.ts | 4 +- clients/client-honeycode/src/runtimeConfig.ts | 4 +- clients/client-iam/src/runtimeConfig.ts | 4 +- .../client-identitystore/src/runtimeConfig.ts | 4 +- .../client-imagebuilder/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- clients/client-inspector/src/runtimeConfig.ts | 4 +- .../client-inspector2/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../client-iot-events/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../client-iot-wireless/src/runtimeConfig.ts | 4 +- clients/client-iot/src/runtimeConfig.ts | 4 +- .../client-iotanalytics/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../client-iotfleethub/src/runtimeConfig.ts | 4 +- .../client-iotfleetwise/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../client-iotsitewise/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../client-iottwinmaker/src/runtimeConfig.ts | 4 +- .../client-ivs-realtime/src/runtimeConfig.ts | 4 +- clients/client-ivs/src/runtimeConfig.ts | 4 +- clients/client-ivschat/src/runtimeConfig.ts | 4 +- clients/client-kafka/src/runtimeConfig.ts | 4 +- .../client-kafkaconnect/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- clients/client-kendra/src/runtimeConfig.ts | 4 +- clients/client-keyspaces/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../client-kinesis-video/src/runtimeConfig.ts | 4 +- clients/client-kinesis/src/runtimeConfig.ts | 4 +- clients/client-kms/src/runtimeConfig.ts | 4 +- .../client-lakeformation/src/runtimeConfig.ts | 4 +- clients/client-lambda/src/runtimeConfig.ts | 4 +- .../client-launch-wizard/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../client-lex-models-v2/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- clients/client-lightsail/src/runtimeConfig.ts | 4 +- clients/client-location/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../client-lookoutvision/src/runtimeConfig.ts | 4 +- clients/client-m2/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- clients/client-macie2/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../client-mediaconnect/src/runtimeConfig.ts | 4 +- .../client-mediaconvert/src/runtimeConfig.ts | 4 +- clients/client-medialive/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../client-mediapackage/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../client-mediastore/src/runtimeConfig.ts | 4 +- .../client-mediatailor/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- clients/client-memorydb/src/runtimeConfig.ts | 4 +- clients/client-mgn/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../client-migration-hub/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- clients/client-mobile/src/runtimeConfig.ts | 4 +- clients/client-mq/src/runtimeConfig.ts | 4 +- clients/client-mturk/src/runtimeConfig.ts | 4 +- clients/client-mwaa/src/runtimeConfig.ts | 4 +- .../client-neptune-graph/src/runtimeConfig.ts | 4 +- clients/client-neptune/src/runtimeConfig.ts | 4 +- .../client-neptunedata/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- clients/client-nimble/src/runtimeConfig.ts | 4 +- clients/client-oam/src/runtimeConfig.ts | 4 +- clients/client-omics/src/runtimeConfig.ts | 4 +- .../client-opensearch/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- clients/client-opsworks/src/runtimeConfig.ts | 4 +- .../client-opsworkscm/src/runtimeConfig.ts | 4 +- .../client-organizations/src/runtimeConfig.ts | 4 +- clients/client-osis/src/runtimeConfig.ts | 4 +- clients/client-outposts/src/runtimeConfig.ts | 4 +- clients/client-panorama/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../client-personalize/src/runtimeConfig.ts | 4 +- clients/client-pi/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- clients/client-pinpoint/src/runtimeConfig.ts | 4 +- clients/client-pipes/src/runtimeConfig.ts | 4 +- clients/client-polly/src/runtimeConfig.ts | 4 +- clients/client-pricing/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- clients/client-proton/src/runtimeConfig.ts | 4 +- clients/client-qbusiness/src/runtimeConfig.ts | 4 +- clients/client-qconnect/src/runtimeConfig.ts | 4 +- .../client-qldb-session/src/runtimeConfig.ts | 4 +- clients/client-qldb/src/runtimeConfig.ts | 4 +- .../client-quicksight/src/runtimeConfig.ts | 4 +- clients/client-ram/src/runtimeConfig.ts | 4 +- clients/client-rbin/src/runtimeConfig.ts | 4 +- clients/client-rds-data/src/runtimeConfig.ts | 4 +- clients/client-rds/src/runtimeConfig.ts | 4 +- .../client-redshift-data/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- clients/client-redshift/src/runtimeConfig.ts | 4 +- .../client-rekognition/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../client-repostspace/src/runtimeConfig.ts | 4 +- .../client-resiliencehub/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- clients/client-robomaker/src/runtimeConfig.ts | 4 +- .../client-rolesanywhere/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- clients/client-route-53/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- clients/client-rum/src/runtimeConfig.ts | 4 +- .../client-s3-control/src/runtimeConfig.ts | 4 +- clients/client-s3/src/models/models_0.ts | 1 + clients/client-s3/src/models/models_1.ts | 2 + clients/client-s3/src/runtimeConfig.ts | 4 +- .../client-s3outposts/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- clients/client-sagemaker/src/runtimeConfig.ts | 4 +- .../client-savingsplans/src/runtimeConfig.ts | 4 +- clients/client-scheduler/src/runtimeConfig.ts | 4 +- clients/client-schemas/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../client-securityhub/src/runtimeConfig.ts | 4 +- .../client-securitylake/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- clients/client-ses/src/runtimeConfig.ts | 4 +- clients/client-sesv2/src/runtimeConfig.ts | 4 +- clients/client-sfn/src/runtimeConfig.ts | 4 +- clients/client-shield/src/runtimeConfig.ts | 4 +- clients/client-signer/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- clients/client-sms/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- clients/client-snowball/src/runtimeConfig.ts | 4 +- clients/client-sns/src/runtimeConfig.ts | 4 +- clients/client-sqs/src/runtimeConfig.ts | 4 +- .../client-ssm-contacts/src/runtimeConfig.ts | 4 +- .../client-ssm-incidents/src/runtimeConfig.ts | 4 +- clients/client-ssm-sap/src/runtimeConfig.ts | 4 +- clients/client-ssm/src/runtimeConfig.ts | 4 +- clients/client-sso-admin/src/runtimeConfig.ts | 4 +- clients/client-sso-oidc/package.json | 4 +- .../src/credentialDefaultProvider.ts | 8 + clients/client-sso-oidc/src/runtimeConfig.ts | 6 +- .../src/runtimeConfig.ts | 4 +- clients/client-sts/package.json | 4 +- .../src/credentialDefaultProvider.ts | 8 + clients/client-sts/src/defaultRoleAssumers.ts | 3 + clients/client-sts/src/runtimeConfig.ts | 9 +- .../client-supplychain/src/runtimeConfig.ts | 4 +- .../client-support-app/src/runtimeConfig.ts | 4 +- clients/client-support/src/runtimeConfig.ts | 4 +- clients/client-swf/src/runtimeConfig.ts | 4 +- .../client-synthetics/src/runtimeConfig.ts | 4 +- clients/client-textract/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- clients/client-tnb/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../client-transcribe/src/runtimeConfig.ts | 4 +- clients/client-transfer/src/runtimeConfig.ts | 4 +- clients/client-translate/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- clients/client-voice-id/src/runtimeConfig.ts | 4 +- .../client-vpc-lattice/src/runtimeConfig.ts | 4 +- .../client-waf-regional/src/runtimeConfig.ts | 4 +- clients/client-waf/src/runtimeConfig.ts | 4 +- clients/client-wafv2/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- clients/client-wisdom/src/runtimeConfig.ts | 4 +- clients/client-workdocs/src/runtimeConfig.ts | 4 +- clients/client-worklink/src/runtimeConfig.ts | 4 +- clients/client-workmail/src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../src/runtimeConfig.ts | 4 +- .../client-workspaces/src/runtimeConfig.ts | 4 +- clients/client-xray/src/runtimeConfig.ts | 4 +- .../typescript/codegen/AddAwsAuthPlugin.java | 51 +- .../aws/typescript/codegen/AwsDependency.java | 2 + .../integration/AddAwsDefaultSigningName.java | 3 +- .../integration/AddSTSAuthCustomizations.java | 17 +- .../integration/AwsSdkCustomizeSigV4Auth.java | 75 +- .../codegen/sts-client-defaultRoleAssumers.ts | 3 + .../codegen/AddAwsAuthPluginTest.java | 4 - package.json | 2 +- .../src/CognitoProviderParameters.ts | 10 +- .../src/fromCognitoIdentity.ts | 9 +- .../src/fromCognitoIdentityPool.ts | 22 +- .../src/loadCognitoIdentity.ts | 9 + .../credential-provider-env/src/fromEnv.ts | 40 +- .../src/fromHttp/fromHttp.browser.ts | 1 + .../src/fromHttp/fromHttp.ts | 1 + .../src/fromHttp/fromHttpTypes.ts | 4 +- packages/credential-provider-ini/package.json | 1 + .../credential-provider-ini/src/fromIni.ts | 14 +- .../credential-provider-ini/src/loadSts.ts | 5 + .../src/resolveAssumeRoleCredentials.spec.ts | 22 +- .../src/resolveAssumeRoleCredentials.ts | 15 +- .../src/resolveCredentialSource.spec.ts | 31 +- .../src/resolveCredentialSource.ts | 18 +- .../src/resolveProcessCredentials.ts | 14 +- .../src/resolveProfileData.spec.ts | 4 +- .../src/resolveProfileData.ts | 8 +- .../src/resolveSsoCredentials.spec.ts | 16 +- .../src/resolveSsoCredentials.ts | 24 +- .../src/resolveStaticCredentials.ts | 11 +- .../src/resolveWebIdentityCredentials.ts | 15 +- .../src/defaultProvider.spec.ts | 8 +- .../src/defaultProvider.ts | 47 +- .../src/remoteProvider.ts | 2 + .../src/fromProcess.ts | 4 +- .../src/fromSSO.spec.ts | 4 + .../credential-provider-sso/src/fromSSO.ts | 14 +- .../credential-provider-sso/src/loadSso.ts | 6 + .../src/resolveSSOCredentials.ts | 19 +- .../package.json | 1 + .../src/fromTokenFile.spec.ts | 6 +- .../src/fromTokenFile.ts | 10 +- .../src/fromWebToken.spec.ts | 28 +- .../src/fromWebToken.ts | 50 +- .../src/loadSts.ts | 5 + packages/credential-providers/README.md | 34 + .../src/fromCognitoIdentity.spec.ts | 16 +- .../src/fromCognitoIdentity.ts | 3 +- .../src/fromCognitoIdentityPool.spec.ts | 21 +- .../src/fromCognitoIdentityPool.ts | 3 +- .../src/fromContainerMetadata.ts | 9 +- packages/credential-providers/src/fromEnv.ts | 4 +- .../credential-providers/src/fromIni.spec.ts | 22 +- packages/credential-providers/src/fromIni.ts | 13 +- .../src/fromInstanceMetadata.ts | 9 +- .../src/fromNodeProviderChain.spec.ts | 21 +- .../src/fromNodeProviderChain.ts | 13 +- .../credential-providers/src/fromProcess.ts | 4 +- .../credential-providers/src/fromSSO.spec.ts | 22 +- packages/credential-providers/src/fromSSO.ts | 12 +- .../src/fromTemporaryCredentials.spec.ts | 20 +- .../src/fromTemporaryCredentials.ts | 9 +- .../src/fromTokenFile.spec.ts | 16 +- .../credential-providers/src/fromTokenFile.ts | 15 +- .../src/fromWebToken.spec.ts | 17 +- .../credential-providers/src/fromWebToken.ts | 15 +- packages/credential-providers/src/loadSts.ts | 4 + packages/token-providers/package.json | 45 +- .../token-providers/scripts/api/source.ts | 32 - packages/token-providers/scripts/esbuild.js | 59 - packages/token-providers/scripts/nocheck.js | 23 - .../src/bundle/client-sso-oidc-browser.ts | 1191 ---------------- .../src/bundle/client-sso-oidc-node.ts | 1204 ----------------- packages/token-providers/src/fromSso.ts | 6 +- packages/token-providers/src/fromStatic.ts | 7 +- .../src/getNewSsoOidcToken.spec.ts | 5 +- .../token-providers/src/getNewSsoOidcToken.ts | 8 +- .../src/getSsoOidcClient.spec.ts | 20 +- .../token-providers/src/getSsoOidcClient.ts | 9 +- packages/token-providers/src/index.ts | 1 - packages/token-providers/src/loadSsoOidc.ts | 4 + packages/types/src/credentials.ts | 17 + .../initializeWithMaximalConfiguration.ts | 3 +- .../src/runtimeConfig.ts | 4 +- private/weather/src/runtimeConfig.ts | 4 +- .../check-dependencies.js | 6 +- yarn.lock | 80 +- 469 files changed, 1089 insertions(+), 4160 deletions(-) create mode 100644 clients/client-sso-oidc/src/credentialDefaultProvider.ts create mode 100644 clients/client-sts/src/credentialDefaultProvider.ts create mode 100644 packages/credential-provider-cognito-identity/src/loadCognitoIdentity.ts create mode 100644 packages/credential-provider-ini/src/loadSts.ts create mode 100644 packages/credential-provider-sso/src/loadSso.ts create mode 100644 packages/credential-provider-web-identity/src/loadSts.ts create mode 100644 packages/credential-providers/src/loadSts.ts delete mode 100644 packages/token-providers/scripts/api/source.ts delete mode 100644 packages/token-providers/scripts/esbuild.js delete mode 100644 packages/token-providers/scripts/nocheck.js delete mode 100644 packages/token-providers/src/bundle/client-sso-oidc-browser.ts delete mode 100644 packages/token-providers/src/bundle/client-sso-oidc-node.ts create mode 100644 packages/token-providers/src/loadSsoOidc.ts diff --git a/Makefile b/Makefile index 80b2fe457bee..98823c51aa10 100644 --- a/Makefile +++ b/Makefile @@ -23,6 +23,18 @@ unlink-smithy: copy-smithy: node ./scripts/copy-smithy-dist-files +gen-auth: + node ./scripts/cli-dispatcher client sso - gen; + node ./scripts/cli-dispatcher client sts - gen; + node ./scripts/cli-dispatcher client sso-oidc - gen; + node ./scripts/cli-dispatcher client cognito identity - gen; + +b-auth: + node ./scripts/cli-dispatcher client sso - deps; + node ./scripts/cli-dispatcher client sts - b; + node ./scripts/cli-dispatcher client sso-oidc - b; + node ./scripts/cli-dispatcher client cognito identity - b; + # Runs build for all packages using Turborepo turbo-build: (cd scripts/remote-cache && yarn) @@ -31,17 +43,10 @@ turbo-build: npx turbo run build --api="http://localhost:3000" --team="aws-sdk-js" --token="xyz" node scripts/remote-cache/ stop -protocols: - yarn generate-clients -g codegen/sdk-codegen/aws-models/rekognitionstreaming.json - git checkout HEAD clients/client-rekognitionstreaming - yarn test:protocols +# run turbo build for packages only. +tpk: + npx turbo run build --filter='./packages/*' server-protocols: yarn generate-clients -s - yarn test:server-protocols - -bytes-cjs: - make turbo-build - node scripts/remote-cache/ start& - npx turbo run build:cjs --api="http://localhost:3000" --team="aws-sdk-js" --token="xyz" - node scripts/remote-cache/ stop \ No newline at end of file + yarn test:server-protocols \ No newline at end of file diff --git a/clients/client-accessanalyzer/src/runtimeConfig.ts b/clients/client-accessanalyzer/src/runtimeConfig.ts index f8c8d50b9ec5..7f12fe4c2aec 100644 --- a/clients/client-accessanalyzer/src/runtimeConfig.ts +++ b/clients/client-accessanalyzer/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: AccessAnalyzerClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-account/src/runtimeConfig.ts b/clients/client-account/src/runtimeConfig.ts index 68445aaaad5c..a8ccd749fd97 100644 --- a/clients/client-account/src/runtimeConfig.ts +++ b/clients/client-account/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: AccountClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-acm-pca/src/runtimeConfig.ts b/clients/client-acm-pca/src/runtimeConfig.ts index 8498f29c3fa1..17190a0db891 100644 --- a/clients/client-acm-pca/src/runtimeConfig.ts +++ b/clients/client-acm-pca/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: ACMPCAClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-acm/src/runtimeConfig.ts b/clients/client-acm/src/runtimeConfig.ts index 6cea227abbe2..2fb4410322c4 100644 --- a/clients/client-acm/src/runtimeConfig.ts +++ b/clients/client-acm/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: ACMClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-alexa-for-business/src/runtimeConfig.ts b/clients/client-alexa-for-business/src/runtimeConfig.ts index e31658e16d3f..b538f34d3ec3 100644 --- a/clients/client-alexa-for-business/src/runtimeConfig.ts +++ b/clients/client-alexa-for-business/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: AlexaForBusinessClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-amp/src/runtimeConfig.ts b/clients/client-amp/src/runtimeConfig.ts index 02a7a1a9e498..87def006215f 100644 --- a/clients/client-amp/src/runtimeConfig.ts +++ b/clients/client-amp/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: AmpClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-amplify/src/runtimeConfig.ts b/clients/client-amplify/src/runtimeConfig.ts index 652ff882915b..af605eecfdc2 100644 --- a/clients/client-amplify/src/runtimeConfig.ts +++ b/clients/client-amplify/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: AmplifyClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-amplifybackend/src/runtimeConfig.ts b/clients/client-amplifybackend/src/runtimeConfig.ts index 1ef513db95cf..e6fa409b8b01 100644 --- a/clients/client-amplifybackend/src/runtimeConfig.ts +++ b/clients/client-amplifybackend/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: AmplifyBackendClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-amplifyuibuilder/src/runtimeConfig.ts b/clients/client-amplifyuibuilder/src/runtimeConfig.ts index b7f38243cab3..9dbaf147a2fb 100644 --- a/clients/client-amplifyuibuilder/src/runtimeConfig.ts +++ b/clients/client-amplifyuibuilder/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: AmplifyUIBuilderClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-api-gateway/src/runtimeConfig.ts b/clients/client-api-gateway/src/runtimeConfig.ts index c9475ef2cfe6..df7c7f2c62e3 100644 --- a/clients/client-api-gateway/src/runtimeConfig.ts +++ b/clients/client-api-gateway/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: APIGatewayClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-apigatewaymanagementapi/src/runtimeConfig.ts b/clients/client-apigatewaymanagementapi/src/runtimeConfig.ts index 0a5966f611be..e3013bd7716e 100644 --- a/clients/client-apigatewaymanagementapi/src/runtimeConfig.ts +++ b/clients/client-apigatewaymanagementapi/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: ApiGatewayManagementApiClientConfig) => runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-apigatewayv2/src/runtimeConfig.ts b/clients/client-apigatewayv2/src/runtimeConfig.ts index acd68d27712d..86cfda97a55c 100644 --- a/clients/client-apigatewayv2/src/runtimeConfig.ts +++ b/clients/client-apigatewayv2/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: ApiGatewayV2ClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-app-mesh/src/runtimeConfig.ts b/clients/client-app-mesh/src/runtimeConfig.ts index 36c409cd7f94..4069be572a1a 100644 --- a/clients/client-app-mesh/src/runtimeConfig.ts +++ b/clients/client-app-mesh/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: AppMeshClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-appconfig/src/runtimeConfig.ts b/clients/client-appconfig/src/runtimeConfig.ts index c893905af13c..f3734c6eef20 100644 --- a/clients/client-appconfig/src/runtimeConfig.ts +++ b/clients/client-appconfig/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: AppConfigClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-appconfigdata/src/runtimeConfig.ts b/clients/client-appconfigdata/src/runtimeConfig.ts index be8f3378bb44..c2cf96e48af3 100644 --- a/clients/client-appconfigdata/src/runtimeConfig.ts +++ b/clients/client-appconfigdata/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: AppConfigDataClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-appfabric/src/runtimeConfig.ts b/clients/client-appfabric/src/runtimeConfig.ts index 35f6a3d01cac..e32d1c3a6181 100644 --- a/clients/client-appfabric/src/runtimeConfig.ts +++ b/clients/client-appfabric/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: AppFabricClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-appflow/src/runtimeConfig.ts b/clients/client-appflow/src/runtimeConfig.ts index a1f340da1cf2..3fb0f2c2c294 100644 --- a/clients/client-appflow/src/runtimeConfig.ts +++ b/clients/client-appflow/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: AppflowClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-appintegrations/src/runtimeConfig.ts b/clients/client-appintegrations/src/runtimeConfig.ts index 599b4fb2feaf..f5cc46f48c22 100644 --- a/clients/client-appintegrations/src/runtimeConfig.ts +++ b/clients/client-appintegrations/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: AppIntegrationsClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-application-auto-scaling/src/runtimeConfig.ts b/clients/client-application-auto-scaling/src/runtimeConfig.ts index fe1760a3569f..645b4f69bd5d 100644 --- a/clients/client-application-auto-scaling/src/runtimeConfig.ts +++ b/clients/client-application-auto-scaling/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: ApplicationAutoScalingClientConfig) => runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-application-discovery-service/src/runtimeConfig.ts b/clients/client-application-discovery-service/src/runtimeConfig.ts index cb5cdfc855a8..cae862d6d384 100644 --- a/clients/client-application-discovery-service/src/runtimeConfig.ts +++ b/clients/client-application-discovery-service/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: ApplicationDiscoveryServiceClientConfig runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-application-insights/src/runtimeConfig.ts b/clients/client-application-insights/src/runtimeConfig.ts index 980d44ca124f..9e3a9f7ec427 100644 --- a/clients/client-application-insights/src/runtimeConfig.ts +++ b/clients/client-application-insights/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: ApplicationInsightsClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-applicationcostprofiler/src/runtimeConfig.ts b/clients/client-applicationcostprofiler/src/runtimeConfig.ts index 256cc0d80f96..8f8897a5c351 100644 --- a/clients/client-applicationcostprofiler/src/runtimeConfig.ts +++ b/clients/client-applicationcostprofiler/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: ApplicationCostProfilerClientConfig) => runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-apprunner/src/runtimeConfig.ts b/clients/client-apprunner/src/runtimeConfig.ts index ac05aff4db41..be5741192b47 100644 --- a/clients/client-apprunner/src/runtimeConfig.ts +++ b/clients/client-apprunner/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: AppRunnerClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-appstream/src/runtimeConfig.ts b/clients/client-appstream/src/runtimeConfig.ts index 5b6bc3c1a754..4f65ce6eca45 100644 --- a/clients/client-appstream/src/runtimeConfig.ts +++ b/clients/client-appstream/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: AppStreamClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-appsync/src/runtimeConfig.ts b/clients/client-appsync/src/runtimeConfig.ts index 3bf3c5bbd45c..aae4a28419a2 100644 --- a/clients/client-appsync/src/runtimeConfig.ts +++ b/clients/client-appsync/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: AppSyncClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-arc-zonal-shift/src/runtimeConfig.ts b/clients/client-arc-zonal-shift/src/runtimeConfig.ts index bec22875c540..51a79d10bd9f 100644 --- a/clients/client-arc-zonal-shift/src/runtimeConfig.ts +++ b/clients/client-arc-zonal-shift/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: ARCZonalShiftClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-athena/src/runtimeConfig.ts b/clients/client-athena/src/runtimeConfig.ts index e9d4f618405b..9a81ca07a8a0 100644 --- a/clients/client-athena/src/runtimeConfig.ts +++ b/clients/client-athena/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: AthenaClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-auditmanager/src/runtimeConfig.ts b/clients/client-auditmanager/src/runtimeConfig.ts index 58147df44934..b832f3496533 100644 --- a/clients/client-auditmanager/src/runtimeConfig.ts +++ b/clients/client-auditmanager/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: AuditManagerClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-auto-scaling-plans/src/runtimeConfig.ts b/clients/client-auto-scaling-plans/src/runtimeConfig.ts index b5018f022453..9bac8225779f 100644 --- a/clients/client-auto-scaling-plans/src/runtimeConfig.ts +++ b/clients/client-auto-scaling-plans/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: AutoScalingPlansClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-auto-scaling/src/runtimeConfig.ts b/clients/client-auto-scaling/src/runtimeConfig.ts index dda5fcdf804d..8f4d700a8aff 100644 --- a/clients/client-auto-scaling/src/runtimeConfig.ts +++ b/clients/client-auto-scaling/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: AutoScalingClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-b2bi/src/runtimeConfig.ts b/clients/client-b2bi/src/runtimeConfig.ts index 94605e33eb3d..fa6447a14acf 100644 --- a/clients/client-b2bi/src/runtimeConfig.ts +++ b/clients/client-b2bi/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: B2biClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-backup-gateway/src/runtimeConfig.ts b/clients/client-backup-gateway/src/runtimeConfig.ts index da7f8246ca60..2f8965640221 100644 --- a/clients/client-backup-gateway/src/runtimeConfig.ts +++ b/clients/client-backup-gateway/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: BackupGatewayClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-backup/src/runtimeConfig.ts b/clients/client-backup/src/runtimeConfig.ts index e1c434f9b615..5e96cbe0ad3e 100644 --- a/clients/client-backup/src/runtimeConfig.ts +++ b/clients/client-backup/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: BackupClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-backupstorage/src/runtimeConfig.ts b/clients/client-backupstorage/src/runtimeConfig.ts index cfd7e3fd3361..d8005153b3f6 100644 --- a/clients/client-backupstorage/src/runtimeConfig.ts +++ b/clients/client-backupstorage/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: BackupStorageClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-batch/src/runtimeConfig.ts b/clients/client-batch/src/runtimeConfig.ts index 400e1b5a156a..7784ea266152 100644 --- a/clients/client-batch/src/runtimeConfig.ts +++ b/clients/client-batch/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: BatchClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-bcm-data-exports/src/runtimeConfig.ts b/clients/client-bcm-data-exports/src/runtimeConfig.ts index ad084a6a0c6e..ebe6d603aa84 100644 --- a/clients/client-bcm-data-exports/src/runtimeConfig.ts +++ b/clients/client-bcm-data-exports/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: BCMDataExportsClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-bedrock-agent-runtime/src/runtimeConfig.ts b/clients/client-bedrock-agent-runtime/src/runtimeConfig.ts index 62490f87db15..af13d4dab869 100644 --- a/clients/client-bedrock-agent-runtime/src/runtimeConfig.ts +++ b/clients/client-bedrock-agent-runtime/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -40,8 +39,7 @@ export const getRuntimeConfig = (config: BedrockAgentRuntimeClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-bedrock-agent/src/runtimeConfig.ts b/clients/client-bedrock-agent/src/runtimeConfig.ts index 5789c9c77605..39de78605579 100644 --- a/clients/client-bedrock-agent/src/runtimeConfig.ts +++ b/clients/client-bedrock-agent/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: BedrockAgentClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-bedrock-runtime/src/runtimeConfig.ts b/clients/client-bedrock-runtime/src/runtimeConfig.ts index 5aa23e13d3bd..92045f3cde12 100644 --- a/clients/client-bedrock-runtime/src/runtimeConfig.ts +++ b/clients/client-bedrock-runtime/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -40,8 +39,7 @@ export const getRuntimeConfig = (config: BedrockRuntimeClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-bedrock/src/runtimeConfig.ts b/clients/client-bedrock/src/runtimeConfig.ts index 03c2b6830787..dc3f612dba32 100644 --- a/clients/client-bedrock/src/runtimeConfig.ts +++ b/clients/client-bedrock/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: BedrockClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-billingconductor/src/runtimeConfig.ts b/clients/client-billingconductor/src/runtimeConfig.ts index d7282c45a9f4..77fb92184342 100644 --- a/clients/client-billingconductor/src/runtimeConfig.ts +++ b/clients/client-billingconductor/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: BillingconductorClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-braket/src/runtimeConfig.ts b/clients/client-braket/src/runtimeConfig.ts index 572c1a7acab6..d33921f2170b 100644 --- a/clients/client-braket/src/runtimeConfig.ts +++ b/clients/client-braket/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: BraketClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-budgets/src/runtimeConfig.ts b/clients/client-budgets/src/runtimeConfig.ts index 31a7c086feeb..7a38a2cf30ba 100644 --- a/clients/client-budgets/src/runtimeConfig.ts +++ b/clients/client-budgets/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: BudgetsClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-chime-sdk-identity/src/runtimeConfig.ts b/clients/client-chime-sdk-identity/src/runtimeConfig.ts index 2df54b55eb9d..9cb9370a7a4d 100644 --- a/clients/client-chime-sdk-identity/src/runtimeConfig.ts +++ b/clients/client-chime-sdk-identity/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: ChimeSDKIdentityClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-chime-sdk-media-pipelines/src/runtimeConfig.ts b/clients/client-chime-sdk-media-pipelines/src/runtimeConfig.ts index 050fc42bdf33..b54618cea7ca 100644 --- a/clients/client-chime-sdk-media-pipelines/src/runtimeConfig.ts +++ b/clients/client-chime-sdk-media-pipelines/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: ChimeSDKMediaPipelinesClientConfig) => runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-chime-sdk-meetings/src/runtimeConfig.ts b/clients/client-chime-sdk-meetings/src/runtimeConfig.ts index 6917a9e50f7b..eb7efcc73a08 100644 --- a/clients/client-chime-sdk-meetings/src/runtimeConfig.ts +++ b/clients/client-chime-sdk-meetings/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: ChimeSDKMeetingsClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-chime-sdk-messaging/src/runtimeConfig.ts b/clients/client-chime-sdk-messaging/src/runtimeConfig.ts index 215ed2511bc9..12c6c3d3e78a 100644 --- a/clients/client-chime-sdk-messaging/src/runtimeConfig.ts +++ b/clients/client-chime-sdk-messaging/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: ChimeSDKMessagingClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-chime-sdk-voice/src/runtimeConfig.ts b/clients/client-chime-sdk-voice/src/runtimeConfig.ts index af6071648449..4186c9c73b03 100644 --- a/clients/client-chime-sdk-voice/src/runtimeConfig.ts +++ b/clients/client-chime-sdk-voice/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: ChimeSDKVoiceClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-chime/src/runtimeConfig.ts b/clients/client-chime/src/runtimeConfig.ts index c7e326752b93..a1fa6267d1b6 100644 --- a/clients/client-chime/src/runtimeConfig.ts +++ b/clients/client-chime/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: ChimeClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-cleanrooms/src/runtimeConfig.ts b/clients/client-cleanrooms/src/runtimeConfig.ts index 66bdad4ad408..e66392972731 100644 --- a/clients/client-cleanrooms/src/runtimeConfig.ts +++ b/clients/client-cleanrooms/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: CleanRoomsClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-cleanroomsml/src/runtimeConfig.ts b/clients/client-cleanroomsml/src/runtimeConfig.ts index f935b3a2998c..b4daa5de7e8a 100644 --- a/clients/client-cleanroomsml/src/runtimeConfig.ts +++ b/clients/client-cleanroomsml/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: CleanRoomsMLClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-cloud9/src/runtimeConfig.ts b/clients/client-cloud9/src/runtimeConfig.ts index 181da3103e7f..ad3d0f989bdf 100644 --- a/clients/client-cloud9/src/runtimeConfig.ts +++ b/clients/client-cloud9/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: Cloud9ClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-cloudcontrol/src/runtimeConfig.ts b/clients/client-cloudcontrol/src/runtimeConfig.ts index 8e17aee2531c..2d3060221a26 100644 --- a/clients/client-cloudcontrol/src/runtimeConfig.ts +++ b/clients/client-cloudcontrol/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: CloudControlClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-clouddirectory/src/runtimeConfig.ts b/clients/client-clouddirectory/src/runtimeConfig.ts index e419de95a090..cfb9355f34f3 100644 --- a/clients/client-clouddirectory/src/runtimeConfig.ts +++ b/clients/client-clouddirectory/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: CloudDirectoryClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-cloudformation/src/runtimeConfig.ts b/clients/client-cloudformation/src/runtimeConfig.ts index 2a988f073734..c3108c1b0f4c 100644 --- a/clients/client-cloudformation/src/runtimeConfig.ts +++ b/clients/client-cloudformation/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: CloudFormationClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-cloudfront-keyvaluestore/src/runtimeConfig.ts b/clients/client-cloudfront-keyvaluestore/src/runtimeConfig.ts index 53b98a11d07a..68c5419d653c 100644 --- a/clients/client-cloudfront-keyvaluestore/src/runtimeConfig.ts +++ b/clients/client-cloudfront-keyvaluestore/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: CloudFrontKeyValueStoreClientConfig) => runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-cloudfront/src/runtimeConfig.ts b/clients/client-cloudfront/src/runtimeConfig.ts index f3a27b6753f7..3303fcb45df5 100644 --- a/clients/client-cloudfront/src/runtimeConfig.ts +++ b/clients/client-cloudfront/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: CloudFrontClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-cloudhsm-v2/src/runtimeConfig.ts b/clients/client-cloudhsm-v2/src/runtimeConfig.ts index 4c586f32976a..b09883902314 100644 --- a/clients/client-cloudhsm-v2/src/runtimeConfig.ts +++ b/clients/client-cloudhsm-v2/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: CloudHSMV2ClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-cloudhsm/src/runtimeConfig.ts b/clients/client-cloudhsm/src/runtimeConfig.ts index fe3c98dbced2..ab509d558fe1 100644 --- a/clients/client-cloudhsm/src/runtimeConfig.ts +++ b/clients/client-cloudhsm/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: CloudHSMClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-cloudsearch-domain/src/runtimeConfig.ts b/clients/client-cloudsearch-domain/src/runtimeConfig.ts index fa3c1ab7f6cb..40e3bdca52e3 100644 --- a/clients/client-cloudsearch-domain/src/runtimeConfig.ts +++ b/clients/client-cloudsearch-domain/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: CloudSearchDomainClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-cloudsearch/src/runtimeConfig.ts b/clients/client-cloudsearch/src/runtimeConfig.ts index a4c643f067be..bf12376ac37c 100644 --- a/clients/client-cloudsearch/src/runtimeConfig.ts +++ b/clients/client-cloudsearch/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: CloudSearchClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-cloudtrail-data/src/runtimeConfig.ts b/clients/client-cloudtrail-data/src/runtimeConfig.ts index 1147226a6ed5..03e48b782097 100644 --- a/clients/client-cloudtrail-data/src/runtimeConfig.ts +++ b/clients/client-cloudtrail-data/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: CloudTrailDataClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-cloudtrail/src/runtimeConfig.ts b/clients/client-cloudtrail/src/runtimeConfig.ts index 3946de3a8ae3..018a61d0b7b6 100644 --- a/clients/client-cloudtrail/src/runtimeConfig.ts +++ b/clients/client-cloudtrail/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: CloudTrailClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-cloudwatch-events/src/runtimeConfig.ts b/clients/client-cloudwatch-events/src/runtimeConfig.ts index 871c46c1e6e7..80ba03f557b4 100644 --- a/clients/client-cloudwatch-events/src/runtimeConfig.ts +++ b/clients/client-cloudwatch-events/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: CloudWatchEventsClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-cloudwatch-logs/src/runtimeConfig.ts b/clients/client-cloudwatch-logs/src/runtimeConfig.ts index 788270264bf0..943aaea0d68b 100644 --- a/clients/client-cloudwatch-logs/src/runtimeConfig.ts +++ b/clients/client-cloudwatch-logs/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -40,8 +39,7 @@ export const getRuntimeConfig = (config: CloudWatchLogsClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-cloudwatch/src/runtimeConfig.ts b/clients/client-cloudwatch/src/runtimeConfig.ts index b0e0eeb0e95a..b2525aaf3a58 100644 --- a/clients/client-cloudwatch/src/runtimeConfig.ts +++ b/clients/client-cloudwatch/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: CloudWatchClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-codeartifact/src/runtimeConfig.ts b/clients/client-codeartifact/src/runtimeConfig.ts index faa9ea4d8d6a..b0205ee3dba9 100644 --- a/clients/client-codeartifact/src/runtimeConfig.ts +++ b/clients/client-codeartifact/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: CodeartifactClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-codebuild/src/runtimeConfig.ts b/clients/client-codebuild/src/runtimeConfig.ts index f648e2494e15..a332fdee9690 100644 --- a/clients/client-codebuild/src/runtimeConfig.ts +++ b/clients/client-codebuild/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: CodeBuildClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-codecommit/src/runtimeConfig.ts b/clients/client-codecommit/src/runtimeConfig.ts index d63b5e6fa9c7..b9ecbe2e9e52 100644 --- a/clients/client-codecommit/src/runtimeConfig.ts +++ b/clients/client-codecommit/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: CodeCommitClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-codedeploy/src/runtimeConfig.ts b/clients/client-codedeploy/src/runtimeConfig.ts index 911efa56973d..d36a0f4fdf45 100644 --- a/clients/client-codedeploy/src/runtimeConfig.ts +++ b/clients/client-codedeploy/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: CodeDeployClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-codeguru-reviewer/src/runtimeConfig.ts b/clients/client-codeguru-reviewer/src/runtimeConfig.ts index 3ea30d9f7e09..fe31ea63e9b8 100644 --- a/clients/client-codeguru-reviewer/src/runtimeConfig.ts +++ b/clients/client-codeguru-reviewer/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: CodeGuruReviewerClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-codeguru-security/src/runtimeConfig.ts b/clients/client-codeguru-security/src/runtimeConfig.ts index b00c1f98e690..4b041e5f8da3 100644 --- a/clients/client-codeguru-security/src/runtimeConfig.ts +++ b/clients/client-codeguru-security/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: CodeGuruSecurityClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-codeguruprofiler/src/runtimeConfig.ts b/clients/client-codeguruprofiler/src/runtimeConfig.ts index 49559abfe99d..68b849a4520d 100644 --- a/clients/client-codeguruprofiler/src/runtimeConfig.ts +++ b/clients/client-codeguruprofiler/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: CodeGuruProfilerClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-codepipeline/src/runtimeConfig.ts b/clients/client-codepipeline/src/runtimeConfig.ts index 90c01ccbfa7e..3c2ad697f71b 100644 --- a/clients/client-codepipeline/src/runtimeConfig.ts +++ b/clients/client-codepipeline/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: CodePipelineClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-codestar-connections/src/runtimeConfig.ts b/clients/client-codestar-connections/src/runtimeConfig.ts index c710fcd5b919..b61404f6a8b9 100644 --- a/clients/client-codestar-connections/src/runtimeConfig.ts +++ b/clients/client-codestar-connections/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: CodeStarConnectionsClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-codestar-notifications/src/runtimeConfig.ts b/clients/client-codestar-notifications/src/runtimeConfig.ts index 35b2551f97a5..2ee70efdf625 100644 --- a/clients/client-codestar-notifications/src/runtimeConfig.ts +++ b/clients/client-codestar-notifications/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: CodestarNotificationsClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-codestar/src/runtimeConfig.ts b/clients/client-codestar/src/runtimeConfig.ts index 83a9a446e564..de34f4359696 100644 --- a/clients/client-codestar/src/runtimeConfig.ts +++ b/clients/client-codestar/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: CodeStarClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-cognito-identity-provider/src/runtimeConfig.ts b/clients/client-cognito-identity-provider/src/runtimeConfig.ts index 28019a58894c..b114ada58a70 100644 --- a/clients/client-cognito-identity-provider/src/runtimeConfig.ts +++ b/clients/client-cognito-identity-provider/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: CognitoIdentityProviderClientConfig) => runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-cognito-identity/src/runtimeConfig.ts b/clients/client-cognito-identity/src/runtimeConfig.ts index 5e87879e4ce4..5a11ba04db5e 100644 --- a/clients/client-cognito-identity/src/runtimeConfig.ts +++ b/clients/client-cognito-identity/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: CognitoIdentityClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-cognito-sync/src/runtimeConfig.ts b/clients/client-cognito-sync/src/runtimeConfig.ts index 7ebce062320d..0f9eb3fd6e4b 100644 --- a/clients/client-cognito-sync/src/runtimeConfig.ts +++ b/clients/client-cognito-sync/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: CognitoSyncClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-comprehend/src/runtimeConfig.ts b/clients/client-comprehend/src/runtimeConfig.ts index 25269fb63df2..25b43735690c 100644 --- a/clients/client-comprehend/src/runtimeConfig.ts +++ b/clients/client-comprehend/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: ComprehendClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-comprehendmedical/src/runtimeConfig.ts b/clients/client-comprehendmedical/src/runtimeConfig.ts index 6701ec9ec8c4..92b4de6cf1ac 100644 --- a/clients/client-comprehendmedical/src/runtimeConfig.ts +++ b/clients/client-comprehendmedical/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: ComprehendMedicalClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-compute-optimizer/src/runtimeConfig.ts b/clients/client-compute-optimizer/src/runtimeConfig.ts index 6844a01dfe05..27ad6f8d3253 100644 --- a/clients/client-compute-optimizer/src/runtimeConfig.ts +++ b/clients/client-compute-optimizer/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: ComputeOptimizerClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-config-service/src/runtimeConfig.ts b/clients/client-config-service/src/runtimeConfig.ts index ed02025ce6ed..9f918ad9cd91 100644 --- a/clients/client-config-service/src/runtimeConfig.ts +++ b/clients/client-config-service/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: ConfigServiceClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-connect-contact-lens/src/runtimeConfig.ts b/clients/client-connect-contact-lens/src/runtimeConfig.ts index 0a7c1fbef41d..cedb4a92cf52 100644 --- a/clients/client-connect-contact-lens/src/runtimeConfig.ts +++ b/clients/client-connect-contact-lens/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: ConnectContactLensClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-connect/src/runtimeConfig.ts b/clients/client-connect/src/runtimeConfig.ts index 47eae1c4869c..b588ee9cded4 100644 --- a/clients/client-connect/src/runtimeConfig.ts +++ b/clients/client-connect/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: ConnectClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-connectcampaigns/src/runtimeConfig.ts b/clients/client-connectcampaigns/src/runtimeConfig.ts index addd95adb0c0..c6f5de64c93c 100644 --- a/clients/client-connectcampaigns/src/runtimeConfig.ts +++ b/clients/client-connectcampaigns/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: ConnectCampaignsClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-connectcases/src/runtimeConfig.ts b/clients/client-connectcases/src/runtimeConfig.ts index d6ee0c0ebfcd..8ad3918619f7 100644 --- a/clients/client-connectcases/src/runtimeConfig.ts +++ b/clients/client-connectcases/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: ConnectCasesClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-connectparticipant/src/runtimeConfig.ts b/clients/client-connectparticipant/src/runtimeConfig.ts index 087772663cc7..9fc18f92c18d 100644 --- a/clients/client-connectparticipant/src/runtimeConfig.ts +++ b/clients/client-connectparticipant/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: ConnectParticipantClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-controltower/src/runtimeConfig.ts b/clients/client-controltower/src/runtimeConfig.ts index b1cd5bc97cbc..270db1fa07b8 100644 --- a/clients/client-controltower/src/runtimeConfig.ts +++ b/clients/client-controltower/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: ControlTowerClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), 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 c2f83389745d..bb51164fd11a 100644 --- a/clients/client-cost-and-usage-report-service/src/runtimeConfig.ts +++ b/clients/client-cost-and-usage-report-service/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: CostAndUsageReportServiceClientConfig) runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-cost-explorer/src/runtimeConfig.ts b/clients/client-cost-explorer/src/runtimeConfig.ts index 816b2eb784d5..70b2bd942aed 100644 --- a/clients/client-cost-explorer/src/runtimeConfig.ts +++ b/clients/client-cost-explorer/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: CostExplorerClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-cost-optimization-hub/src/runtimeConfig.ts b/clients/client-cost-optimization-hub/src/runtimeConfig.ts index f50a61a2f323..9501790ab8f4 100644 --- a/clients/client-cost-optimization-hub/src/runtimeConfig.ts +++ b/clients/client-cost-optimization-hub/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: CostOptimizationHubClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-customer-profiles/src/runtimeConfig.ts b/clients/client-customer-profiles/src/runtimeConfig.ts index 0c131db51c99..979c13358458 100644 --- a/clients/client-customer-profiles/src/runtimeConfig.ts +++ b/clients/client-customer-profiles/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: CustomerProfilesClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-data-pipeline/src/runtimeConfig.ts b/clients/client-data-pipeline/src/runtimeConfig.ts index 36ccebf846c2..4abfdf3ed095 100644 --- a/clients/client-data-pipeline/src/runtimeConfig.ts +++ b/clients/client-data-pipeline/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: DataPipelineClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-database-migration-service/src/runtimeConfig.ts b/clients/client-database-migration-service/src/runtimeConfig.ts index 27a441745007..6eb375abb414 100644 --- a/clients/client-database-migration-service/src/runtimeConfig.ts +++ b/clients/client-database-migration-service/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: DatabaseMigrationServiceClientConfig) = runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-databrew/src/runtimeConfig.ts b/clients/client-databrew/src/runtimeConfig.ts index cafb31a60372..05a48cab3ee1 100644 --- a/clients/client-databrew/src/runtimeConfig.ts +++ b/clients/client-databrew/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: DataBrewClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-dataexchange/src/runtimeConfig.ts b/clients/client-dataexchange/src/runtimeConfig.ts index c9ac2ebc4d19..8fef02122354 100644 --- a/clients/client-dataexchange/src/runtimeConfig.ts +++ b/clients/client-dataexchange/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: DataExchangeClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-datasync/src/runtimeConfig.ts b/clients/client-datasync/src/runtimeConfig.ts index 992261fd974b..55f76ef85872 100644 --- a/clients/client-datasync/src/runtimeConfig.ts +++ b/clients/client-datasync/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: DataSyncClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-datazone/src/runtimeConfig.ts b/clients/client-datazone/src/runtimeConfig.ts index 7d920e2695d4..07cee5c01a18 100644 --- a/clients/client-datazone/src/runtimeConfig.ts +++ b/clients/client-datazone/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: DataZoneClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-dax/src/runtimeConfig.ts b/clients/client-dax/src/runtimeConfig.ts index dd3ad545d2d6..7a339fca1cb5 100644 --- a/clients/client-dax/src/runtimeConfig.ts +++ b/clients/client-dax/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: DAXClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-detective/src/runtimeConfig.ts b/clients/client-detective/src/runtimeConfig.ts index 390cb489871b..e2b1fddc7e3c 100644 --- a/clients/client-detective/src/runtimeConfig.ts +++ b/clients/client-detective/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: DetectiveClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-device-farm/src/runtimeConfig.ts b/clients/client-device-farm/src/runtimeConfig.ts index 70ba2cf5bb94..e6621d4cb217 100644 --- a/clients/client-device-farm/src/runtimeConfig.ts +++ b/clients/client-device-farm/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: DeviceFarmClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-devops-guru/src/runtimeConfig.ts b/clients/client-devops-guru/src/runtimeConfig.ts index 925e49b75168..9e7211134dce 100644 --- a/clients/client-devops-guru/src/runtimeConfig.ts +++ b/clients/client-devops-guru/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: DevOpsGuruClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-direct-connect/src/runtimeConfig.ts b/clients/client-direct-connect/src/runtimeConfig.ts index f72205d508f0..573ba5794974 100644 --- a/clients/client-direct-connect/src/runtimeConfig.ts +++ b/clients/client-direct-connect/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: DirectConnectClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-directory-service/src/runtimeConfig.ts b/clients/client-directory-service/src/runtimeConfig.ts index f61f96598b8d..48645cd44d85 100644 --- a/clients/client-directory-service/src/runtimeConfig.ts +++ b/clients/client-directory-service/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: DirectoryServiceClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-dlm/src/runtimeConfig.ts b/clients/client-dlm/src/runtimeConfig.ts index afd8b604f3a8..070395c7ddc7 100644 --- a/clients/client-dlm/src/runtimeConfig.ts +++ b/clients/client-dlm/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: DLMClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-docdb-elastic/src/runtimeConfig.ts b/clients/client-docdb-elastic/src/runtimeConfig.ts index 4a3a8dc17d87..534fe7bf76f2 100644 --- a/clients/client-docdb-elastic/src/runtimeConfig.ts +++ b/clients/client-docdb-elastic/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: DocDBElasticClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-docdb/src/runtimeConfig.ts b/clients/client-docdb/src/runtimeConfig.ts index e66749d6bf7d..aa6aa65769c7 100644 --- a/clients/client-docdb/src/runtimeConfig.ts +++ b/clients/client-docdb/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: DocDBClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-drs/src/runtimeConfig.ts b/clients/client-drs/src/runtimeConfig.ts index b10cced5ddb6..4edd3d8c748a 100644 --- a/clients/client-drs/src/runtimeConfig.ts +++ b/clients/client-drs/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: DrsClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-dynamodb-streams/src/runtimeConfig.ts b/clients/client-dynamodb-streams/src/runtimeConfig.ts index 906923ec38b2..86d453e9d8c7 100644 --- a/clients/client-dynamodb-streams/src/runtimeConfig.ts +++ b/clients/client-dynamodb-streams/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: DynamoDBStreamsClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-dynamodb/src/runtimeConfig.ts b/clients/client-dynamodb/src/runtimeConfig.ts index 1701b2959f2e..f18772e7634b 100644 --- a/clients/client-dynamodb/src/runtimeConfig.ts +++ b/clients/client-dynamodb/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS } from "@aws-sdk/middleware-endpoint-discovery"; @@ -40,8 +39,7 @@ export const getRuntimeConfig = (config: DynamoDBClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-ebs/src/runtimeConfig.ts b/clients/client-ebs/src/runtimeConfig.ts index c506c108a9ed..e5e5fb708cda 100644 --- a/clients/client-ebs/src/runtimeConfig.ts +++ b/clients/client-ebs/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: EBSClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-ec2-instance-connect/src/runtimeConfig.ts b/clients/client-ec2-instance-connect/src/runtimeConfig.ts index d4896c6218d3..977313c2a841 100644 --- a/clients/client-ec2-instance-connect/src/runtimeConfig.ts +++ b/clients/client-ec2-instance-connect/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: EC2InstanceConnectClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-ec2/src/runtimeConfig.ts b/clients/client-ec2/src/runtimeConfig.ts index 73c441055cb1..48cb52ff47b1 100644 --- a/clients/client-ec2/src/runtimeConfig.ts +++ b/clients/client-ec2/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: EC2ClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-ecr-public/src/runtimeConfig.ts b/clients/client-ecr-public/src/runtimeConfig.ts index 3a788655caa0..f3244a4625b3 100644 --- a/clients/client-ecr-public/src/runtimeConfig.ts +++ b/clients/client-ecr-public/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: ECRPUBLICClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-ecr/src/runtimeConfig.ts b/clients/client-ecr/src/runtimeConfig.ts index dfd24cc49e97..25bab2d214c7 100644 --- a/clients/client-ecr/src/runtimeConfig.ts +++ b/clients/client-ecr/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: ECRClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-ecs/src/runtimeConfig.ts b/clients/client-ecs/src/runtimeConfig.ts index 867ebfa0a5b3..1d0cdd17961d 100644 --- a/clients/client-ecs/src/runtimeConfig.ts +++ b/clients/client-ecs/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: ECSClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-efs/src/runtimeConfig.ts b/clients/client-efs/src/runtimeConfig.ts index acc4114f2cdc..7ce2a2bdf2d0 100644 --- a/clients/client-efs/src/runtimeConfig.ts +++ b/clients/client-efs/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: EFSClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-eks-auth/src/runtimeConfig.ts b/clients/client-eks-auth/src/runtimeConfig.ts index ac588ccc8a9d..d22f19a7bfe1 100644 --- a/clients/client-eks-auth/src/runtimeConfig.ts +++ b/clients/client-eks-auth/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: EKSAuthClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-eks/src/runtimeConfig.ts b/clients/client-eks/src/runtimeConfig.ts index 165f084b5612..842de7b486d1 100644 --- a/clients/client-eks/src/runtimeConfig.ts +++ b/clients/client-eks/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: EKSClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-elastic-beanstalk/src/runtimeConfig.ts b/clients/client-elastic-beanstalk/src/runtimeConfig.ts index fb5a3b299559..698cc5429546 100644 --- a/clients/client-elastic-beanstalk/src/runtimeConfig.ts +++ b/clients/client-elastic-beanstalk/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: ElasticBeanstalkClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-elastic-inference/src/runtimeConfig.ts b/clients/client-elastic-inference/src/runtimeConfig.ts index e8866b462fab..c785498e02a6 100644 --- a/clients/client-elastic-inference/src/runtimeConfig.ts +++ b/clients/client-elastic-inference/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: ElasticInferenceClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-elastic-load-balancing-v2/src/runtimeConfig.ts b/clients/client-elastic-load-balancing-v2/src/runtimeConfig.ts index f0e54a4c88d7..653236830a10 100644 --- a/clients/client-elastic-load-balancing-v2/src/runtimeConfig.ts +++ b/clients/client-elastic-load-balancing-v2/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: ElasticLoadBalancingV2ClientConfig) => runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-elastic-load-balancing/src/runtimeConfig.ts b/clients/client-elastic-load-balancing/src/runtimeConfig.ts index 6001af23cbd7..54da68cb5aeb 100644 --- a/clients/client-elastic-load-balancing/src/runtimeConfig.ts +++ b/clients/client-elastic-load-balancing/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: ElasticLoadBalancingClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-elastic-transcoder/src/runtimeConfig.ts b/clients/client-elastic-transcoder/src/runtimeConfig.ts index 7c3e32c20199..a7bd7e5c207f 100644 --- a/clients/client-elastic-transcoder/src/runtimeConfig.ts +++ b/clients/client-elastic-transcoder/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: ElasticTranscoderClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-elasticache/src/runtimeConfig.ts b/clients/client-elasticache/src/runtimeConfig.ts index 157dbbeceeaf..00e1e8011cc4 100644 --- a/clients/client-elasticache/src/runtimeConfig.ts +++ b/clients/client-elasticache/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: ElastiCacheClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-elasticsearch-service/src/runtimeConfig.ts b/clients/client-elasticsearch-service/src/runtimeConfig.ts index 842cd27dc864..4a44a48b2c3d 100644 --- a/clients/client-elasticsearch-service/src/runtimeConfig.ts +++ b/clients/client-elasticsearch-service/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: ElasticsearchServiceClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-emr-containers/src/runtimeConfig.ts b/clients/client-emr-containers/src/runtimeConfig.ts index adec9e3ded33..9f4b7c4c1735 100644 --- a/clients/client-emr-containers/src/runtimeConfig.ts +++ b/clients/client-emr-containers/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: EMRContainersClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-emr-serverless/src/runtimeConfig.ts b/clients/client-emr-serverless/src/runtimeConfig.ts index 114d49957a19..953c3cdf780f 100644 --- a/clients/client-emr-serverless/src/runtimeConfig.ts +++ b/clients/client-emr-serverless/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: EMRServerlessClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-emr/src/runtimeConfig.ts b/clients/client-emr/src/runtimeConfig.ts index 94dd0736036c..aad613dfb2a6 100644 --- a/clients/client-emr/src/runtimeConfig.ts +++ b/clients/client-emr/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: EMRClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-entityresolution/src/runtimeConfig.ts b/clients/client-entityresolution/src/runtimeConfig.ts index c7165629426a..45b3babeb6d8 100644 --- a/clients/client-entityresolution/src/runtimeConfig.ts +++ b/clients/client-entityresolution/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: EntityResolutionClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-eventbridge/src/runtimeConfig.ts b/clients/client-eventbridge/src/runtimeConfig.ts index 879c30ba0b7e..38684bdfbf1b 100644 --- a/clients/client-eventbridge/src/runtimeConfig.ts +++ b/clients/client-eventbridge/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: EventBridgeClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-evidently/src/runtimeConfig.ts b/clients/client-evidently/src/runtimeConfig.ts index 954e6e4e8f64..c65a9daab32f 100644 --- a/clients/client-evidently/src/runtimeConfig.ts +++ b/clients/client-evidently/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: EvidentlyClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-finspace-data/src/runtimeConfig.ts b/clients/client-finspace-data/src/runtimeConfig.ts index 85f336e59eaf..bb048a9e66fc 100644 --- a/clients/client-finspace-data/src/runtimeConfig.ts +++ b/clients/client-finspace-data/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: FinspaceDataClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-finspace/src/runtimeConfig.ts b/clients/client-finspace/src/runtimeConfig.ts index a8a213cfe220..2954956b34ea 100644 --- a/clients/client-finspace/src/runtimeConfig.ts +++ b/clients/client-finspace/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: FinspaceClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-firehose/src/runtimeConfig.ts b/clients/client-firehose/src/runtimeConfig.ts index 2969005d3b0e..b46ab3b16f34 100644 --- a/clients/client-firehose/src/runtimeConfig.ts +++ b/clients/client-firehose/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: FirehoseClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-fis/src/runtimeConfig.ts b/clients/client-fis/src/runtimeConfig.ts index 9606122266ba..eb02a92c0bf0 100644 --- a/clients/client-fis/src/runtimeConfig.ts +++ b/clients/client-fis/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: FisClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-fms/src/runtimeConfig.ts b/clients/client-fms/src/runtimeConfig.ts index d42832278d34..22dd35efdb3f 100644 --- a/clients/client-fms/src/runtimeConfig.ts +++ b/clients/client-fms/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: FMSClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-forecast/src/runtimeConfig.ts b/clients/client-forecast/src/runtimeConfig.ts index bea2c5452257..c870fd4da3fa 100644 --- a/clients/client-forecast/src/runtimeConfig.ts +++ b/clients/client-forecast/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: ForecastClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-forecastquery/src/runtimeConfig.ts b/clients/client-forecastquery/src/runtimeConfig.ts index 9ac0447d8c84..abe44576940f 100644 --- a/clients/client-forecastquery/src/runtimeConfig.ts +++ b/clients/client-forecastquery/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: ForecastqueryClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-frauddetector/src/runtimeConfig.ts b/clients/client-frauddetector/src/runtimeConfig.ts index ee2c77a082fe..b112e6ea4b5d 100644 --- a/clients/client-frauddetector/src/runtimeConfig.ts +++ b/clients/client-frauddetector/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: FraudDetectorClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-freetier/src/runtimeConfig.ts b/clients/client-freetier/src/runtimeConfig.ts index ad2e9fa7a1d1..cfff74684588 100644 --- a/clients/client-freetier/src/runtimeConfig.ts +++ b/clients/client-freetier/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: FreeTierClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-fsx/src/runtimeConfig.ts b/clients/client-fsx/src/runtimeConfig.ts index c390b7f6b6a3..05d17ddb7b3e 100644 --- a/clients/client-fsx/src/runtimeConfig.ts +++ b/clients/client-fsx/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: FSxClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-gamelift/src/runtimeConfig.ts b/clients/client-gamelift/src/runtimeConfig.ts index ceb12d6657b1..b1ff2a35e675 100644 --- a/clients/client-gamelift/src/runtimeConfig.ts +++ b/clients/client-gamelift/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: GameLiftClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-glacier/src/runtimeConfig.ts b/clients/client-glacier/src/runtimeConfig.ts index 872edb2006a9..547c52330b44 100644 --- a/clients/client-glacier/src/runtimeConfig.ts +++ b/clients/client-glacier/src/runtimeConfig.ts @@ -3,7 +3,6 @@ import packageInfo from "../package.json"; // eslint-disable-line import { bodyChecksumGenerator } from "@aws-sdk/body-checksum-node"; -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -41,8 +40,7 @@ export const getRuntimeConfig = (config: GlacierClientConfig) => { defaultsMode, bodyChecksumGenerator: config?.bodyChecksumGenerator ?? bodyChecksumGenerator, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-global-accelerator/src/runtimeConfig.ts b/clients/client-global-accelerator/src/runtimeConfig.ts index 789859258c1e..823c54d4e541 100644 --- a/clients/client-global-accelerator/src/runtimeConfig.ts +++ b/clients/client-global-accelerator/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: GlobalAcceleratorClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-glue/src/runtimeConfig.ts b/clients/client-glue/src/runtimeConfig.ts index 579bd58e7875..009f39960358 100644 --- a/clients/client-glue/src/runtimeConfig.ts +++ b/clients/client-glue/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: GlueClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-grafana/src/runtimeConfig.ts b/clients/client-grafana/src/runtimeConfig.ts index 373530445b63..51055e6297ae 100644 --- a/clients/client-grafana/src/runtimeConfig.ts +++ b/clients/client-grafana/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: GrafanaClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-greengrass/src/runtimeConfig.ts b/clients/client-greengrass/src/runtimeConfig.ts index 2a318cf0720e..f32ce9fe3630 100644 --- a/clients/client-greengrass/src/runtimeConfig.ts +++ b/clients/client-greengrass/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: GreengrassClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-greengrassv2/src/runtimeConfig.ts b/clients/client-greengrassv2/src/runtimeConfig.ts index bf7efbb8c7c2..d5c506438b23 100644 --- a/clients/client-greengrassv2/src/runtimeConfig.ts +++ b/clients/client-greengrassv2/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: GreengrassV2ClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-groundstation/src/runtimeConfig.ts b/clients/client-groundstation/src/runtimeConfig.ts index 6d8c63a439a8..58d53cdca813 100644 --- a/clients/client-groundstation/src/runtimeConfig.ts +++ b/clients/client-groundstation/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: GroundStationClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-guardduty/src/runtimeConfig.ts b/clients/client-guardduty/src/runtimeConfig.ts index f67cfe0ee3e1..8595368eff10 100644 --- a/clients/client-guardduty/src/runtimeConfig.ts +++ b/clients/client-guardduty/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: GuardDutyClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-health/src/runtimeConfig.ts b/clients/client-health/src/runtimeConfig.ts index 494d60b88d8c..2a9c02194e12 100644 --- a/clients/client-health/src/runtimeConfig.ts +++ b/clients/client-health/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: HealthClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-healthlake/src/runtimeConfig.ts b/clients/client-healthlake/src/runtimeConfig.ts index f57c65cf06b1..c6ddf957b2da 100644 --- a/clients/client-healthlake/src/runtimeConfig.ts +++ b/clients/client-healthlake/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: HealthLakeClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-honeycode/src/runtimeConfig.ts b/clients/client-honeycode/src/runtimeConfig.ts index 55149c4abd57..4f46692d0780 100644 --- a/clients/client-honeycode/src/runtimeConfig.ts +++ b/clients/client-honeycode/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: HoneycodeClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-iam/src/runtimeConfig.ts b/clients/client-iam/src/runtimeConfig.ts index b107f574f872..e2852ecf5e7e 100644 --- a/clients/client-iam/src/runtimeConfig.ts +++ b/clients/client-iam/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: IAMClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-identitystore/src/runtimeConfig.ts b/clients/client-identitystore/src/runtimeConfig.ts index c40258a7e20e..6a1442c6896d 100644 --- a/clients/client-identitystore/src/runtimeConfig.ts +++ b/clients/client-identitystore/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: IdentitystoreClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-imagebuilder/src/runtimeConfig.ts b/clients/client-imagebuilder/src/runtimeConfig.ts index c19aa9b98cb6..c30f053a7c7e 100644 --- a/clients/client-imagebuilder/src/runtimeConfig.ts +++ b/clients/client-imagebuilder/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: ImagebuilderClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-inspector-scan/src/runtimeConfig.ts b/clients/client-inspector-scan/src/runtimeConfig.ts index 5024932be50e..46a72fd67fe6 100644 --- a/clients/client-inspector-scan/src/runtimeConfig.ts +++ b/clients/client-inspector-scan/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: InspectorScanClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-inspector/src/runtimeConfig.ts b/clients/client-inspector/src/runtimeConfig.ts index bede357d46fb..284e764765f5 100644 --- a/clients/client-inspector/src/runtimeConfig.ts +++ b/clients/client-inspector/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: InspectorClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-inspector2/src/runtimeConfig.ts b/clients/client-inspector2/src/runtimeConfig.ts index d11218978b82..5d8765ea3a53 100644 --- a/clients/client-inspector2/src/runtimeConfig.ts +++ b/clients/client-inspector2/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: Inspector2ClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-internetmonitor/src/runtimeConfig.ts b/clients/client-internetmonitor/src/runtimeConfig.ts index 408cd52a032b..0b10cb9ee6cb 100644 --- a/clients/client-internetmonitor/src/runtimeConfig.ts +++ b/clients/client-internetmonitor/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: InternetMonitorClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-iot-1click-devices-service/src/runtimeConfig.ts b/clients/client-iot-1click-devices-service/src/runtimeConfig.ts index 5435f1b663ca..6196511aed99 100644 --- a/clients/client-iot-1click-devices-service/src/runtimeConfig.ts +++ b/clients/client-iot-1click-devices-service/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: IoT1ClickDevicesServiceClientConfig) => runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-iot-1click-projects/src/runtimeConfig.ts b/clients/client-iot-1click-projects/src/runtimeConfig.ts index 6ee4e6afa1d7..a57030637bba 100644 --- a/clients/client-iot-1click-projects/src/runtimeConfig.ts +++ b/clients/client-iot-1click-projects/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: IoT1ClickProjectsClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-iot-data-plane/src/runtimeConfig.ts b/clients/client-iot-data-plane/src/runtimeConfig.ts index 0f38360b7492..b300ed799b5c 100644 --- a/clients/client-iot-data-plane/src/runtimeConfig.ts +++ b/clients/client-iot-data-plane/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: IoTDataPlaneClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-iot-events-data/src/runtimeConfig.ts b/clients/client-iot-events-data/src/runtimeConfig.ts index 569c3fd54d98..f2984138c601 100644 --- a/clients/client-iot-events-data/src/runtimeConfig.ts +++ b/clients/client-iot-events-data/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: IoTEventsDataClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-iot-events/src/runtimeConfig.ts b/clients/client-iot-events/src/runtimeConfig.ts index d6fd8e95340e..71f9e543b82c 100644 --- a/clients/client-iot-events/src/runtimeConfig.ts +++ b/clients/client-iot-events/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: IoTEventsClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-iot-jobs-data-plane/src/runtimeConfig.ts b/clients/client-iot-jobs-data-plane/src/runtimeConfig.ts index 23ddf8de77c4..4396c09d6b64 100644 --- a/clients/client-iot-jobs-data-plane/src/runtimeConfig.ts +++ b/clients/client-iot-jobs-data-plane/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: IoTJobsDataPlaneClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-iot-roborunner/src/runtimeConfig.ts b/clients/client-iot-roborunner/src/runtimeConfig.ts index 60411a03e38a..d9bf935c3e7e 100644 --- a/clients/client-iot-roborunner/src/runtimeConfig.ts +++ b/clients/client-iot-roborunner/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: IoTRoboRunnerClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-iot-wireless/src/runtimeConfig.ts b/clients/client-iot-wireless/src/runtimeConfig.ts index 233a733f3a0e..337e8dfbb17b 100644 --- a/clients/client-iot-wireless/src/runtimeConfig.ts +++ b/clients/client-iot-wireless/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: IoTWirelessClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-iot/src/runtimeConfig.ts b/clients/client-iot/src/runtimeConfig.ts index 2c251e81c222..ef1dba965981 100644 --- a/clients/client-iot/src/runtimeConfig.ts +++ b/clients/client-iot/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: IoTClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-iotanalytics/src/runtimeConfig.ts b/clients/client-iotanalytics/src/runtimeConfig.ts index 5b0e52bc4bda..ac5ad0b3959d 100644 --- a/clients/client-iotanalytics/src/runtimeConfig.ts +++ b/clients/client-iotanalytics/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: IoTAnalyticsClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-iotdeviceadvisor/src/runtimeConfig.ts b/clients/client-iotdeviceadvisor/src/runtimeConfig.ts index d0727bdb686d..82d3a0ca9b9d 100644 --- a/clients/client-iotdeviceadvisor/src/runtimeConfig.ts +++ b/clients/client-iotdeviceadvisor/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: IotDeviceAdvisorClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-iotfleethub/src/runtimeConfig.ts b/clients/client-iotfleethub/src/runtimeConfig.ts index 9bbf6237d6f7..ccb15c9d8405 100644 --- a/clients/client-iotfleethub/src/runtimeConfig.ts +++ b/clients/client-iotfleethub/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: IoTFleetHubClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-iotfleetwise/src/runtimeConfig.ts b/clients/client-iotfleetwise/src/runtimeConfig.ts index ea23b67d01a9..a0918cabed92 100644 --- a/clients/client-iotfleetwise/src/runtimeConfig.ts +++ b/clients/client-iotfleetwise/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: IoTFleetWiseClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-iotsecuretunneling/src/runtimeConfig.ts b/clients/client-iotsecuretunneling/src/runtimeConfig.ts index aab8aa43bb0f..f8f47664afaf 100644 --- a/clients/client-iotsecuretunneling/src/runtimeConfig.ts +++ b/clients/client-iotsecuretunneling/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: IoTSecureTunnelingClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-iotsitewise/src/runtimeConfig.ts b/clients/client-iotsitewise/src/runtimeConfig.ts index 5c6911540f87..4ebc795a3c61 100644 --- a/clients/client-iotsitewise/src/runtimeConfig.ts +++ b/clients/client-iotsitewise/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: IoTSiteWiseClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-iotthingsgraph/src/runtimeConfig.ts b/clients/client-iotthingsgraph/src/runtimeConfig.ts index e8d9a62b9df6..d16f4e48d384 100644 --- a/clients/client-iotthingsgraph/src/runtimeConfig.ts +++ b/clients/client-iotthingsgraph/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: IoTThingsGraphClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-iottwinmaker/src/runtimeConfig.ts b/clients/client-iottwinmaker/src/runtimeConfig.ts index ff5f8d2ea886..a1509e3bf461 100644 --- a/clients/client-iottwinmaker/src/runtimeConfig.ts +++ b/clients/client-iottwinmaker/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: IoTTwinMakerClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-ivs-realtime/src/runtimeConfig.ts b/clients/client-ivs-realtime/src/runtimeConfig.ts index 469407d46b96..67705596829c 100644 --- a/clients/client-ivs-realtime/src/runtimeConfig.ts +++ b/clients/client-ivs-realtime/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: IVSRealTimeClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-ivs/src/runtimeConfig.ts b/clients/client-ivs/src/runtimeConfig.ts index 8cd7337e7b09..b52efbfe1745 100644 --- a/clients/client-ivs/src/runtimeConfig.ts +++ b/clients/client-ivs/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: IvsClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-ivschat/src/runtimeConfig.ts b/clients/client-ivschat/src/runtimeConfig.ts index ab6f644c49e4..770b813c77db 100644 --- a/clients/client-ivschat/src/runtimeConfig.ts +++ b/clients/client-ivschat/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: IvschatClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-kafka/src/runtimeConfig.ts b/clients/client-kafka/src/runtimeConfig.ts index e70abcc7681e..ee39a1bd4c43 100644 --- a/clients/client-kafka/src/runtimeConfig.ts +++ b/clients/client-kafka/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: KafkaClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-kafkaconnect/src/runtimeConfig.ts b/clients/client-kafkaconnect/src/runtimeConfig.ts index b30f1f700710..357cb4c76ee7 100644 --- a/clients/client-kafkaconnect/src/runtimeConfig.ts +++ b/clients/client-kafkaconnect/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: KafkaConnectClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-kendra-ranking/src/runtimeConfig.ts b/clients/client-kendra-ranking/src/runtimeConfig.ts index 693f76484d1e..03dd1a3bbc56 100644 --- a/clients/client-kendra-ranking/src/runtimeConfig.ts +++ b/clients/client-kendra-ranking/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: KendraRankingClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-kendra/src/runtimeConfig.ts b/clients/client-kendra/src/runtimeConfig.ts index dafc7b5889d9..c382298c0a2c 100644 --- a/clients/client-kendra/src/runtimeConfig.ts +++ b/clients/client-kendra/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: KendraClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-keyspaces/src/runtimeConfig.ts b/clients/client-keyspaces/src/runtimeConfig.ts index 8e6a611552fd..de5d52da62d3 100644 --- a/clients/client-keyspaces/src/runtimeConfig.ts +++ b/clients/client-keyspaces/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: KeyspacesClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-kinesis-analytics-v2/src/runtimeConfig.ts b/clients/client-kinesis-analytics-v2/src/runtimeConfig.ts index e4a0a2a15433..f57739591e28 100644 --- a/clients/client-kinesis-analytics-v2/src/runtimeConfig.ts +++ b/clients/client-kinesis-analytics-v2/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: KinesisAnalyticsV2ClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-kinesis-analytics/src/runtimeConfig.ts b/clients/client-kinesis-analytics/src/runtimeConfig.ts index b2a728377a03..d0ae00ead84a 100644 --- a/clients/client-kinesis-analytics/src/runtimeConfig.ts +++ b/clients/client-kinesis-analytics/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: KinesisAnalyticsClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-kinesis-video-archived-media/src/runtimeConfig.ts b/clients/client-kinesis-video-archived-media/src/runtimeConfig.ts index 98485a4b43af..554bf726e68a 100644 --- a/clients/client-kinesis-video-archived-media/src/runtimeConfig.ts +++ b/clients/client-kinesis-video-archived-media/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: KinesisVideoArchivedMediaClientConfig) runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-kinesis-video-media/src/runtimeConfig.ts b/clients/client-kinesis-video-media/src/runtimeConfig.ts index 6bb72b92d6c7..7ac1db253d54 100644 --- a/clients/client-kinesis-video-media/src/runtimeConfig.ts +++ b/clients/client-kinesis-video-media/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: KinesisVideoMediaClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-kinesis-video-signaling/src/runtimeConfig.ts b/clients/client-kinesis-video-signaling/src/runtimeConfig.ts index df56cd469e10..ff4978deb53f 100644 --- a/clients/client-kinesis-video-signaling/src/runtimeConfig.ts +++ b/clients/client-kinesis-video-signaling/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: KinesisVideoSignalingClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-kinesis-video-webrtc-storage/src/runtimeConfig.ts b/clients/client-kinesis-video-webrtc-storage/src/runtimeConfig.ts index 2e5dd3b2e819..e06bbb3237ef 100644 --- a/clients/client-kinesis-video-webrtc-storage/src/runtimeConfig.ts +++ b/clients/client-kinesis-video-webrtc-storage/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: KinesisVideoWebRTCStorageClientConfig) runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-kinesis-video/src/runtimeConfig.ts b/clients/client-kinesis-video/src/runtimeConfig.ts index f9bd7eefa568..df7896cec12d 100644 --- a/clients/client-kinesis-video/src/runtimeConfig.ts +++ b/clients/client-kinesis-video/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: KinesisVideoClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-kinesis/src/runtimeConfig.ts b/clients/client-kinesis/src/runtimeConfig.ts index ec928c4bb79b..337ee2eeaa4a 100644 --- a/clients/client-kinesis/src/runtimeConfig.ts +++ b/clients/client-kinesis/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -40,8 +39,7 @@ export const getRuntimeConfig = (config: KinesisClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-kms/src/runtimeConfig.ts b/clients/client-kms/src/runtimeConfig.ts index 7ae8d3efb63d..d2fd60548d1f 100644 --- a/clients/client-kms/src/runtimeConfig.ts +++ b/clients/client-kms/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: KMSClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-lakeformation/src/runtimeConfig.ts b/clients/client-lakeformation/src/runtimeConfig.ts index 4319a2e1454d..5d0327d19efe 100644 --- a/clients/client-lakeformation/src/runtimeConfig.ts +++ b/clients/client-lakeformation/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: LakeFormationClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-lambda/src/runtimeConfig.ts b/clients/client-lambda/src/runtimeConfig.ts index 9a8b7ffbca29..58bdab2040c0 100644 --- a/clients/client-lambda/src/runtimeConfig.ts +++ b/clients/client-lambda/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -40,8 +39,7 @@ export const getRuntimeConfig = (config: LambdaClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-launch-wizard/src/runtimeConfig.ts b/clients/client-launch-wizard/src/runtimeConfig.ts index ed74b74fd36b..6ab49dab6923 100644 --- a/clients/client-launch-wizard/src/runtimeConfig.ts +++ b/clients/client-launch-wizard/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: LaunchWizardClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-lex-model-building-service/src/runtimeConfig.ts b/clients/client-lex-model-building-service/src/runtimeConfig.ts index 294d15a5b3fc..d82f587d187c 100644 --- a/clients/client-lex-model-building-service/src/runtimeConfig.ts +++ b/clients/client-lex-model-building-service/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: LexModelBuildingServiceClientConfig) => runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-lex-models-v2/src/runtimeConfig.ts b/clients/client-lex-models-v2/src/runtimeConfig.ts index 905e3be82fec..daaf36722f8c 100644 --- a/clients/client-lex-models-v2/src/runtimeConfig.ts +++ b/clients/client-lex-models-v2/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: LexModelsV2ClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-lex-runtime-service/src/runtimeConfig.ts b/clients/client-lex-runtime-service/src/runtimeConfig.ts index 3370d7fa0e5e..940c57206e60 100644 --- a/clients/client-lex-runtime-service/src/runtimeConfig.ts +++ b/clients/client-lex-runtime-service/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: LexRuntimeServiceClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-lex-runtime-v2/src/runtimeConfig.ts b/clients/client-lex-runtime-v2/src/runtimeConfig.ts index 5eed6fa7119a..4cf39d19b8a5 100644 --- a/clients/client-lex-runtime-v2/src/runtimeConfig.ts +++ b/clients/client-lex-runtime-v2/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { eventStreamPayloadHandlerProvider } from "@aws-sdk/eventstream-handler-node"; @@ -41,8 +40,7 @@ export const getRuntimeConfig = (config: LexRuntimeV2ClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-license-manager-linux-subscriptions/src/runtimeConfig.ts b/clients/client-license-manager-linux-subscriptions/src/runtimeConfig.ts index 4f550321b636..c19c714614e3 100644 --- a/clients/client-license-manager-linux-subscriptions/src/runtimeConfig.ts +++ b/clients/client-license-manager-linux-subscriptions/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: LicenseManagerLinuxSubscriptionsClientC runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-license-manager-user-subscriptions/src/runtimeConfig.ts b/clients/client-license-manager-user-subscriptions/src/runtimeConfig.ts index 39ff8bf69126..11c80844e28a 100644 --- a/clients/client-license-manager-user-subscriptions/src/runtimeConfig.ts +++ b/clients/client-license-manager-user-subscriptions/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: LicenseManagerUserSubscriptionsClientCo runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-license-manager/src/runtimeConfig.ts b/clients/client-license-manager/src/runtimeConfig.ts index dd7ac9ae6a5e..de3001db0aff 100644 --- a/clients/client-license-manager/src/runtimeConfig.ts +++ b/clients/client-license-manager/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: LicenseManagerClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-lightsail/src/runtimeConfig.ts b/clients/client-lightsail/src/runtimeConfig.ts index a5aca4394fd4..d4cdd76e758a 100644 --- a/clients/client-lightsail/src/runtimeConfig.ts +++ b/clients/client-lightsail/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: LightsailClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-location/src/runtimeConfig.ts b/clients/client-location/src/runtimeConfig.ts index 46f1b0de3dcf..ecebd13251dd 100644 --- a/clients/client-location/src/runtimeConfig.ts +++ b/clients/client-location/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: LocationClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-lookoutequipment/src/runtimeConfig.ts b/clients/client-lookoutequipment/src/runtimeConfig.ts index edfdcbe2fca6..926c8cc6cbad 100644 --- a/clients/client-lookoutequipment/src/runtimeConfig.ts +++ b/clients/client-lookoutequipment/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: LookoutEquipmentClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-lookoutmetrics/src/runtimeConfig.ts b/clients/client-lookoutmetrics/src/runtimeConfig.ts index 711d682dd77d..93a9b54819d2 100644 --- a/clients/client-lookoutmetrics/src/runtimeConfig.ts +++ b/clients/client-lookoutmetrics/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: LookoutMetricsClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-lookoutvision/src/runtimeConfig.ts b/clients/client-lookoutvision/src/runtimeConfig.ts index fa1c7deb6cd8..8c6a04079142 100644 --- a/clients/client-lookoutvision/src/runtimeConfig.ts +++ b/clients/client-lookoutvision/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: LookoutVisionClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-m2/src/runtimeConfig.ts b/clients/client-m2/src/runtimeConfig.ts index ad6efa051c87..185a975b1441 100644 --- a/clients/client-m2/src/runtimeConfig.ts +++ b/clients/client-m2/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: M2ClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-machine-learning/src/runtimeConfig.ts b/clients/client-machine-learning/src/runtimeConfig.ts index accd41d893e3..d5822bfc145e 100644 --- a/clients/client-machine-learning/src/runtimeConfig.ts +++ b/clients/client-machine-learning/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: MachineLearningClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-macie2/src/runtimeConfig.ts b/clients/client-macie2/src/runtimeConfig.ts index f40dc103550c..c823e946f692 100644 --- a/clients/client-macie2/src/runtimeConfig.ts +++ b/clients/client-macie2/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: Macie2ClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-managedblockchain-query/src/runtimeConfig.ts b/clients/client-managedblockchain-query/src/runtimeConfig.ts index 7f52c4bb3582..c1c0c3af7200 100644 --- a/clients/client-managedblockchain-query/src/runtimeConfig.ts +++ b/clients/client-managedblockchain-query/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: ManagedBlockchainQueryClientConfig) => runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-managedblockchain/src/runtimeConfig.ts b/clients/client-managedblockchain/src/runtimeConfig.ts index f2b082c3418d..47460e0b7794 100644 --- a/clients/client-managedblockchain/src/runtimeConfig.ts +++ b/clients/client-managedblockchain/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: ManagedBlockchainClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-marketplace-agreement/src/runtimeConfig.ts b/clients/client-marketplace-agreement/src/runtimeConfig.ts index bb4303fd6c7c..74abc2cdbd27 100644 --- a/clients/client-marketplace-agreement/src/runtimeConfig.ts +++ b/clients/client-marketplace-agreement/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: MarketplaceAgreementClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-marketplace-catalog/src/runtimeConfig.ts b/clients/client-marketplace-catalog/src/runtimeConfig.ts index 27d4bbc3cced..fc602f17f6ab 100644 --- a/clients/client-marketplace-catalog/src/runtimeConfig.ts +++ b/clients/client-marketplace-catalog/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: MarketplaceCatalogClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-marketplace-commerce-analytics/src/runtimeConfig.ts b/clients/client-marketplace-commerce-analytics/src/runtimeConfig.ts index 1bf96b92e579..1073c6db708e 100644 --- a/clients/client-marketplace-commerce-analytics/src/runtimeConfig.ts +++ b/clients/client-marketplace-commerce-analytics/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: MarketplaceCommerceAnalyticsClientConfi runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-marketplace-deployment/src/runtimeConfig.ts b/clients/client-marketplace-deployment/src/runtimeConfig.ts index 3adc7b269221..afaa15e012c8 100644 --- a/clients/client-marketplace-deployment/src/runtimeConfig.ts +++ b/clients/client-marketplace-deployment/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: MarketplaceDeploymentClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-marketplace-entitlement-service/src/runtimeConfig.ts b/clients/client-marketplace-entitlement-service/src/runtimeConfig.ts index d92d92191a93..1185ef4f0b7d 100644 --- a/clients/client-marketplace-entitlement-service/src/runtimeConfig.ts +++ b/clients/client-marketplace-entitlement-service/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: MarketplaceEntitlementServiceClientConf runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-marketplace-metering/src/runtimeConfig.ts b/clients/client-marketplace-metering/src/runtimeConfig.ts index b0255fbb5a98..5cb29d5d398c 100644 --- a/clients/client-marketplace-metering/src/runtimeConfig.ts +++ b/clients/client-marketplace-metering/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: MarketplaceMeteringClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-mediaconnect/src/runtimeConfig.ts b/clients/client-mediaconnect/src/runtimeConfig.ts index fd5742c8cf56..d6ec431b86e3 100644 --- a/clients/client-mediaconnect/src/runtimeConfig.ts +++ b/clients/client-mediaconnect/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: MediaConnectClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-mediaconvert/src/runtimeConfig.ts b/clients/client-mediaconvert/src/runtimeConfig.ts index 20a340d0f3c0..6995bfb6059c 100644 --- a/clients/client-mediaconvert/src/runtimeConfig.ts +++ b/clients/client-mediaconvert/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: MediaConvertClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-medialive/src/runtimeConfig.ts b/clients/client-medialive/src/runtimeConfig.ts index 4d43f5265905..23165fd5346a 100644 --- a/clients/client-medialive/src/runtimeConfig.ts +++ b/clients/client-medialive/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: MediaLiveClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-mediapackage-vod/src/runtimeConfig.ts b/clients/client-mediapackage-vod/src/runtimeConfig.ts index 17e638341df5..8e25f4e3b7db 100644 --- a/clients/client-mediapackage-vod/src/runtimeConfig.ts +++ b/clients/client-mediapackage-vod/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: MediaPackageVodClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-mediapackage/src/runtimeConfig.ts b/clients/client-mediapackage/src/runtimeConfig.ts index afa8d280dbec..39ea2272cb1b 100644 --- a/clients/client-mediapackage/src/runtimeConfig.ts +++ b/clients/client-mediapackage/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: MediaPackageClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-mediapackagev2/src/runtimeConfig.ts b/clients/client-mediapackagev2/src/runtimeConfig.ts index a8b8bd1282b5..72f4031da9f1 100644 --- a/clients/client-mediapackagev2/src/runtimeConfig.ts +++ b/clients/client-mediapackagev2/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: MediaPackageV2ClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-mediastore-data/src/runtimeConfig.ts b/clients/client-mediastore-data/src/runtimeConfig.ts index b67bb1999642..633619139466 100644 --- a/clients/client-mediastore-data/src/runtimeConfig.ts +++ b/clients/client-mediastore-data/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: MediaStoreDataClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-mediastore/src/runtimeConfig.ts b/clients/client-mediastore/src/runtimeConfig.ts index a1f2584ac87e..098ad77fe2f0 100644 --- a/clients/client-mediastore/src/runtimeConfig.ts +++ b/clients/client-mediastore/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: MediaStoreClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-mediatailor/src/runtimeConfig.ts b/clients/client-mediatailor/src/runtimeConfig.ts index eeb8b8b04350..899f23885305 100644 --- a/clients/client-mediatailor/src/runtimeConfig.ts +++ b/clients/client-mediatailor/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: MediaTailorClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-medical-imaging/src/runtimeConfig.ts b/clients/client-medical-imaging/src/runtimeConfig.ts index a7f3751c5d4b..acc2ce4471a1 100644 --- a/clients/client-medical-imaging/src/runtimeConfig.ts +++ b/clients/client-medical-imaging/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: MedicalImagingClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-memorydb/src/runtimeConfig.ts b/clients/client-memorydb/src/runtimeConfig.ts index aaac1e52b1dd..ce01dab70ac9 100644 --- a/clients/client-memorydb/src/runtimeConfig.ts +++ b/clients/client-memorydb/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: MemoryDBClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-mgn/src/runtimeConfig.ts b/clients/client-mgn/src/runtimeConfig.ts index 3c775eb4fb84..3f30b0a3b32f 100644 --- a/clients/client-mgn/src/runtimeConfig.ts +++ b/clients/client-mgn/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: MgnClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-migration-hub-refactor-spaces/src/runtimeConfig.ts b/clients/client-migration-hub-refactor-spaces/src/runtimeConfig.ts index bfdaeedd6068..d84912b72f2b 100644 --- a/clients/client-migration-hub-refactor-spaces/src/runtimeConfig.ts +++ b/clients/client-migration-hub-refactor-spaces/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: MigrationHubRefactorSpacesClientConfig) runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-migration-hub/src/runtimeConfig.ts b/clients/client-migration-hub/src/runtimeConfig.ts index fc35ec98c615..70c6baacb3ed 100644 --- a/clients/client-migration-hub/src/runtimeConfig.ts +++ b/clients/client-migration-hub/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: MigrationHubClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-migrationhub-config/src/runtimeConfig.ts b/clients/client-migrationhub-config/src/runtimeConfig.ts index 19b3e24ac27a..1e1250087a27 100644 --- a/clients/client-migrationhub-config/src/runtimeConfig.ts +++ b/clients/client-migrationhub-config/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: MigrationHubConfigClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-migrationhuborchestrator/src/runtimeConfig.ts b/clients/client-migrationhuborchestrator/src/runtimeConfig.ts index 6f75b0359fc1..e4246408c983 100644 --- a/clients/client-migrationhuborchestrator/src/runtimeConfig.ts +++ b/clients/client-migrationhuborchestrator/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: MigrationHubOrchestratorClientConfig) = runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-migrationhubstrategy/src/runtimeConfig.ts b/clients/client-migrationhubstrategy/src/runtimeConfig.ts index 41f516fedeb7..0c6a4257c291 100644 --- a/clients/client-migrationhubstrategy/src/runtimeConfig.ts +++ b/clients/client-migrationhubstrategy/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: MigrationHubStrategyClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-mobile/src/runtimeConfig.ts b/clients/client-mobile/src/runtimeConfig.ts index b985e4cb414f..8d0a9fc2fcae 100644 --- a/clients/client-mobile/src/runtimeConfig.ts +++ b/clients/client-mobile/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: MobileClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-mq/src/runtimeConfig.ts b/clients/client-mq/src/runtimeConfig.ts index 54dc67fa3a16..6330e86d6b53 100644 --- a/clients/client-mq/src/runtimeConfig.ts +++ b/clients/client-mq/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: MqClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-mturk/src/runtimeConfig.ts b/clients/client-mturk/src/runtimeConfig.ts index 2be30a716f64..5197593975e1 100644 --- a/clients/client-mturk/src/runtimeConfig.ts +++ b/clients/client-mturk/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: MTurkClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-mwaa/src/runtimeConfig.ts b/clients/client-mwaa/src/runtimeConfig.ts index 4b3936a77d9a..24c4819f8476 100644 --- a/clients/client-mwaa/src/runtimeConfig.ts +++ b/clients/client-mwaa/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: MWAAClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-neptune-graph/src/runtimeConfig.ts b/clients/client-neptune-graph/src/runtimeConfig.ts index 9de2405e4635..b804ddc387b6 100644 --- a/clients/client-neptune-graph/src/runtimeConfig.ts +++ b/clients/client-neptune-graph/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: NeptuneGraphClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-neptune/src/runtimeConfig.ts b/clients/client-neptune/src/runtimeConfig.ts index 1ee7316fa111..97d40cb751ab 100644 --- a/clients/client-neptune/src/runtimeConfig.ts +++ b/clients/client-neptune/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: NeptuneClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-neptunedata/src/runtimeConfig.ts b/clients/client-neptunedata/src/runtimeConfig.ts index 77dfbc64b7e3..a83abc828895 100644 --- a/clients/client-neptunedata/src/runtimeConfig.ts +++ b/clients/client-neptunedata/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: NeptunedataClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-network-firewall/src/runtimeConfig.ts b/clients/client-network-firewall/src/runtimeConfig.ts index a00d07c69c09..13eff082eea4 100644 --- a/clients/client-network-firewall/src/runtimeConfig.ts +++ b/clients/client-network-firewall/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: NetworkFirewallClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-networkmanager/src/runtimeConfig.ts b/clients/client-networkmanager/src/runtimeConfig.ts index fdc650ec7d4e..808c284d3d6d 100644 --- a/clients/client-networkmanager/src/runtimeConfig.ts +++ b/clients/client-networkmanager/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: NetworkManagerClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-networkmonitor/src/runtimeConfig.ts b/clients/client-networkmonitor/src/runtimeConfig.ts index 38a9064c01ea..d4f04fdc1bf5 100644 --- a/clients/client-networkmonitor/src/runtimeConfig.ts +++ b/clients/client-networkmonitor/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: NetworkMonitorClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-nimble/src/runtimeConfig.ts b/clients/client-nimble/src/runtimeConfig.ts index 856eeb3b9f1f..41a394571c72 100644 --- a/clients/client-nimble/src/runtimeConfig.ts +++ b/clients/client-nimble/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: NimbleClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-oam/src/runtimeConfig.ts b/clients/client-oam/src/runtimeConfig.ts index 47d9769d38c1..137af2e95bb0 100644 --- a/clients/client-oam/src/runtimeConfig.ts +++ b/clients/client-oam/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: OAMClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-omics/src/runtimeConfig.ts b/clients/client-omics/src/runtimeConfig.ts index ea5d9ceb0f68..bdd287fb4cf8 100644 --- a/clients/client-omics/src/runtimeConfig.ts +++ b/clients/client-omics/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: OmicsClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-opensearch/src/runtimeConfig.ts b/clients/client-opensearch/src/runtimeConfig.ts index 2268ab29eec5..16a3bc618b66 100644 --- a/clients/client-opensearch/src/runtimeConfig.ts +++ b/clients/client-opensearch/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: OpenSearchClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-opensearchserverless/src/runtimeConfig.ts b/clients/client-opensearchserverless/src/runtimeConfig.ts index 32939b07bff5..0ce8a90f665f 100644 --- a/clients/client-opensearchserverless/src/runtimeConfig.ts +++ b/clients/client-opensearchserverless/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: OpenSearchServerlessClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-opsworks/src/runtimeConfig.ts b/clients/client-opsworks/src/runtimeConfig.ts index ab1b7e2f4e04..49e364621e9c 100644 --- a/clients/client-opsworks/src/runtimeConfig.ts +++ b/clients/client-opsworks/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: OpsWorksClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-opsworkscm/src/runtimeConfig.ts b/clients/client-opsworkscm/src/runtimeConfig.ts index 1fd41d5a9ac5..aea6dc7d0eb6 100644 --- a/clients/client-opsworkscm/src/runtimeConfig.ts +++ b/clients/client-opsworkscm/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: OpsWorksCMClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-organizations/src/runtimeConfig.ts b/clients/client-organizations/src/runtimeConfig.ts index 09526e92b39e..3e3a50dedaf0 100644 --- a/clients/client-organizations/src/runtimeConfig.ts +++ b/clients/client-organizations/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: OrganizationsClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-osis/src/runtimeConfig.ts b/clients/client-osis/src/runtimeConfig.ts index cf7172bd0ed9..2082a671e252 100644 --- a/clients/client-osis/src/runtimeConfig.ts +++ b/clients/client-osis/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: OSISClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-outposts/src/runtimeConfig.ts b/clients/client-outposts/src/runtimeConfig.ts index e26775c67a96..737b546da634 100644 --- a/clients/client-outposts/src/runtimeConfig.ts +++ b/clients/client-outposts/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: OutpostsClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-panorama/src/runtimeConfig.ts b/clients/client-panorama/src/runtimeConfig.ts index b90e5037c7fa..49e4ff0cd965 100644 --- a/clients/client-panorama/src/runtimeConfig.ts +++ b/clients/client-panorama/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: PanoramaClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-payment-cryptography-data/src/runtimeConfig.ts b/clients/client-payment-cryptography-data/src/runtimeConfig.ts index f7aaaa48f044..dd70f0547316 100644 --- a/clients/client-payment-cryptography-data/src/runtimeConfig.ts +++ b/clients/client-payment-cryptography-data/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: PaymentCryptographyDataClientConfig) => runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-payment-cryptography/src/runtimeConfig.ts b/clients/client-payment-cryptography/src/runtimeConfig.ts index c739bb74f1dc..8f9970c2aec0 100644 --- a/clients/client-payment-cryptography/src/runtimeConfig.ts +++ b/clients/client-payment-cryptography/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: PaymentCryptographyClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-pca-connector-ad/src/runtimeConfig.ts b/clients/client-pca-connector-ad/src/runtimeConfig.ts index 5908756d9f27..18033b968090 100644 --- a/clients/client-pca-connector-ad/src/runtimeConfig.ts +++ b/clients/client-pca-connector-ad/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: PcaConnectorAdClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-personalize-events/src/runtimeConfig.ts b/clients/client-personalize-events/src/runtimeConfig.ts index 3e57a48091b4..7e4fa926cfbe 100644 --- a/clients/client-personalize-events/src/runtimeConfig.ts +++ b/clients/client-personalize-events/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: PersonalizeEventsClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-personalize-runtime/src/runtimeConfig.ts b/clients/client-personalize-runtime/src/runtimeConfig.ts index da5ccf8e8887..5b6682ed603d 100644 --- a/clients/client-personalize-runtime/src/runtimeConfig.ts +++ b/clients/client-personalize-runtime/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: PersonalizeRuntimeClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-personalize/src/runtimeConfig.ts b/clients/client-personalize/src/runtimeConfig.ts index 2a333cbb8936..3ac9e15daf62 100644 --- a/clients/client-personalize/src/runtimeConfig.ts +++ b/clients/client-personalize/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: PersonalizeClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-pi/src/runtimeConfig.ts b/clients/client-pi/src/runtimeConfig.ts index c5e9879ea3cf..0b54b18b9088 100644 --- a/clients/client-pi/src/runtimeConfig.ts +++ b/clients/client-pi/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: PIClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-pinpoint-email/src/runtimeConfig.ts b/clients/client-pinpoint-email/src/runtimeConfig.ts index 25a81b1dcaf2..fba20da5fb02 100644 --- a/clients/client-pinpoint-email/src/runtimeConfig.ts +++ b/clients/client-pinpoint-email/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: PinpointEmailClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-pinpoint-sms-voice-v2/src/runtimeConfig.ts b/clients/client-pinpoint-sms-voice-v2/src/runtimeConfig.ts index c24a1ecd654a..9994cd2b0819 100644 --- a/clients/client-pinpoint-sms-voice-v2/src/runtimeConfig.ts +++ b/clients/client-pinpoint-sms-voice-v2/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: PinpointSMSVoiceV2ClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-pinpoint-sms-voice/src/runtimeConfig.ts b/clients/client-pinpoint-sms-voice/src/runtimeConfig.ts index 118d200c090d..cd9b26dc2c9d 100644 --- a/clients/client-pinpoint-sms-voice/src/runtimeConfig.ts +++ b/clients/client-pinpoint-sms-voice/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: PinpointSMSVoiceClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-pinpoint/src/runtimeConfig.ts b/clients/client-pinpoint/src/runtimeConfig.ts index 1416cc0112a6..b1c2681b29cc 100644 --- a/clients/client-pinpoint/src/runtimeConfig.ts +++ b/clients/client-pinpoint/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: PinpointClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-pipes/src/runtimeConfig.ts b/clients/client-pipes/src/runtimeConfig.ts index 3dbda97936c9..859af2041fdb 100644 --- a/clients/client-pipes/src/runtimeConfig.ts +++ b/clients/client-pipes/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: PipesClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-polly/src/runtimeConfig.ts b/clients/client-polly/src/runtimeConfig.ts index 2a3b7bee56fd..9a0992c7731d 100644 --- a/clients/client-polly/src/runtimeConfig.ts +++ b/clients/client-polly/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: PollyClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-pricing/src/runtimeConfig.ts b/clients/client-pricing/src/runtimeConfig.ts index 9104a01b06de..56c2914c6480 100644 --- a/clients/client-pricing/src/runtimeConfig.ts +++ b/clients/client-pricing/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: PricingClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-privatenetworks/src/runtimeConfig.ts b/clients/client-privatenetworks/src/runtimeConfig.ts index cd1cf84b819b..f3fdf46088e9 100644 --- a/clients/client-privatenetworks/src/runtimeConfig.ts +++ b/clients/client-privatenetworks/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: PrivateNetworksClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-proton/src/runtimeConfig.ts b/clients/client-proton/src/runtimeConfig.ts index 7156849415bc..dd51c0865ee7 100644 --- a/clients/client-proton/src/runtimeConfig.ts +++ b/clients/client-proton/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: ProtonClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-qbusiness/src/runtimeConfig.ts b/clients/client-qbusiness/src/runtimeConfig.ts index d5f1d70030ad..8bc069b5407b 100644 --- a/clients/client-qbusiness/src/runtimeConfig.ts +++ b/clients/client-qbusiness/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: QBusinessClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-qconnect/src/runtimeConfig.ts b/clients/client-qconnect/src/runtimeConfig.ts index 07f506573596..97725765871b 100644 --- a/clients/client-qconnect/src/runtimeConfig.ts +++ b/clients/client-qconnect/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: QConnectClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-qldb-session/src/runtimeConfig.ts b/clients/client-qldb-session/src/runtimeConfig.ts index 5c3a6dbb0b6d..7ca6c756114e 100644 --- a/clients/client-qldb-session/src/runtimeConfig.ts +++ b/clients/client-qldb-session/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: QLDBSessionClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-qldb/src/runtimeConfig.ts b/clients/client-qldb/src/runtimeConfig.ts index f9855f21cbab..11344983c631 100644 --- a/clients/client-qldb/src/runtimeConfig.ts +++ b/clients/client-qldb/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: QLDBClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-quicksight/src/runtimeConfig.ts b/clients/client-quicksight/src/runtimeConfig.ts index 878d45afff36..6a1a16e1ce8f 100644 --- a/clients/client-quicksight/src/runtimeConfig.ts +++ b/clients/client-quicksight/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: QuickSightClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-ram/src/runtimeConfig.ts b/clients/client-ram/src/runtimeConfig.ts index e41c134c2cfb..60287cf7abce 100644 --- a/clients/client-ram/src/runtimeConfig.ts +++ b/clients/client-ram/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: RAMClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-rbin/src/runtimeConfig.ts b/clients/client-rbin/src/runtimeConfig.ts index 85bf3554f49d..42a414b5333a 100644 --- a/clients/client-rbin/src/runtimeConfig.ts +++ b/clients/client-rbin/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: RbinClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-rds-data/src/runtimeConfig.ts b/clients/client-rds-data/src/runtimeConfig.ts index fcd7fa925ebd..4e4fc48f9c34 100644 --- a/clients/client-rds-data/src/runtimeConfig.ts +++ b/clients/client-rds-data/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: RDSDataClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-rds/src/runtimeConfig.ts b/clients/client-rds/src/runtimeConfig.ts index 1df7d010c86d..d70df1f1c228 100644 --- a/clients/client-rds/src/runtimeConfig.ts +++ b/clients/client-rds/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: RDSClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-redshift-data/src/runtimeConfig.ts b/clients/client-redshift-data/src/runtimeConfig.ts index 585ab94d2b1a..29a4aedf0b72 100644 --- a/clients/client-redshift-data/src/runtimeConfig.ts +++ b/clients/client-redshift-data/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: RedshiftDataClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-redshift-serverless/src/runtimeConfig.ts b/clients/client-redshift-serverless/src/runtimeConfig.ts index 71040b64e323..9836721cecfd 100644 --- a/clients/client-redshift-serverless/src/runtimeConfig.ts +++ b/clients/client-redshift-serverless/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: RedshiftServerlessClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-redshift/src/runtimeConfig.ts b/clients/client-redshift/src/runtimeConfig.ts index 0e71c852c7fd..236637a5f529 100644 --- a/clients/client-redshift/src/runtimeConfig.ts +++ b/clients/client-redshift/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: RedshiftClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-rekognition/src/runtimeConfig.ts b/clients/client-rekognition/src/runtimeConfig.ts index f145cb058b3e..fb3605199d1c 100644 --- a/clients/client-rekognition/src/runtimeConfig.ts +++ b/clients/client-rekognition/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: RekognitionClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-rekognitionstreaming/src/runtimeConfig.ts b/clients/client-rekognitionstreaming/src/runtimeConfig.ts index 2eef06acce21..21d14164e66b 100644 --- a/clients/client-rekognitionstreaming/src/runtimeConfig.ts +++ b/clients/client-rekognitionstreaming/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { eventStreamPayloadHandlerProvider } from "@aws-sdk/eventstream-handler-node"; @@ -41,8 +40,7 @@ export const getRuntimeConfig = (config: RekognitionStreamingClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-repostspace/src/runtimeConfig.ts b/clients/client-repostspace/src/runtimeConfig.ts index 689ec9354a43..0d61f28f034f 100644 --- a/clients/client-repostspace/src/runtimeConfig.ts +++ b/clients/client-repostspace/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: RepostspaceClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-resiliencehub/src/runtimeConfig.ts b/clients/client-resiliencehub/src/runtimeConfig.ts index ac4ca9c479e0..1b1d2770e358 100644 --- a/clients/client-resiliencehub/src/runtimeConfig.ts +++ b/clients/client-resiliencehub/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: ResiliencehubClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-resource-explorer-2/src/runtimeConfig.ts b/clients/client-resource-explorer-2/src/runtimeConfig.ts index 0c30bd5de443..23178d3cb144 100644 --- a/clients/client-resource-explorer-2/src/runtimeConfig.ts +++ b/clients/client-resource-explorer-2/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: ResourceExplorer2ClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-resource-groups-tagging-api/src/runtimeConfig.ts b/clients/client-resource-groups-tagging-api/src/runtimeConfig.ts index 0545fcae0c10..bce18c6070b9 100644 --- a/clients/client-resource-groups-tagging-api/src/runtimeConfig.ts +++ b/clients/client-resource-groups-tagging-api/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: ResourceGroupsTaggingAPIClientConfig) = runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-resource-groups/src/runtimeConfig.ts b/clients/client-resource-groups/src/runtimeConfig.ts index 9dcaf6d42101..655b4176c52d 100644 --- a/clients/client-resource-groups/src/runtimeConfig.ts +++ b/clients/client-resource-groups/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: ResourceGroupsClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-robomaker/src/runtimeConfig.ts b/clients/client-robomaker/src/runtimeConfig.ts index 2caa1a44e56d..e746eaa82bf5 100644 --- a/clients/client-robomaker/src/runtimeConfig.ts +++ b/clients/client-robomaker/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: RoboMakerClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-rolesanywhere/src/runtimeConfig.ts b/clients/client-rolesanywhere/src/runtimeConfig.ts index 0f812dff6b63..e78c51018fa1 100644 --- a/clients/client-rolesanywhere/src/runtimeConfig.ts +++ b/clients/client-rolesanywhere/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: RolesAnywhereClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-route-53-domains/src/runtimeConfig.ts b/clients/client-route-53-domains/src/runtimeConfig.ts index 8ece0a718d3f..44d58912bcd7 100644 --- a/clients/client-route-53-domains/src/runtimeConfig.ts +++ b/clients/client-route-53-domains/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: Route53DomainsClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-route-53/src/runtimeConfig.ts b/clients/client-route-53/src/runtimeConfig.ts index 559ddd015102..e8f2ca32da89 100644 --- a/clients/client-route-53/src/runtimeConfig.ts +++ b/clients/client-route-53/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: Route53ClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-route53-recovery-cluster/src/runtimeConfig.ts b/clients/client-route53-recovery-cluster/src/runtimeConfig.ts index 10a6df3a9db5..33aa21d2b996 100644 --- a/clients/client-route53-recovery-cluster/src/runtimeConfig.ts +++ b/clients/client-route53-recovery-cluster/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: Route53RecoveryClusterClientConfig) => runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-route53-recovery-control-config/src/runtimeConfig.ts b/clients/client-route53-recovery-control-config/src/runtimeConfig.ts index 26c012654bbe..1e91898bcc5e 100644 --- a/clients/client-route53-recovery-control-config/src/runtimeConfig.ts +++ b/clients/client-route53-recovery-control-config/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: Route53RecoveryControlConfigClientConfi runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-route53-recovery-readiness/src/runtimeConfig.ts b/clients/client-route53-recovery-readiness/src/runtimeConfig.ts index 8f4a2d2ec0d0..e892b48a9ddf 100644 --- a/clients/client-route53-recovery-readiness/src/runtimeConfig.ts +++ b/clients/client-route53-recovery-readiness/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: Route53RecoveryReadinessClientConfig) = runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-route53resolver/src/runtimeConfig.ts b/clients/client-route53resolver/src/runtimeConfig.ts index 9a10e871cd42..c33e5665387d 100644 --- a/clients/client-route53resolver/src/runtimeConfig.ts +++ b/clients/client-route53resolver/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: Route53ResolverClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-rum/src/runtimeConfig.ts b/clients/client-rum/src/runtimeConfig.ts index 17904581cfb1..ca99a0d59f2c 100644 --- a/clients/client-rum/src/runtimeConfig.ts +++ b/clients/client-rum/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: RUMClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-s3-control/src/runtimeConfig.ts b/clients/client-s3-control/src/runtimeConfig.ts index 16bb087e6d66..438295ce3678 100644 --- a/clients/client-s3-control/src/runtimeConfig.ts +++ b/clients/client-s3-control/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -40,8 +39,7 @@ export const getRuntimeConfig = (config: S3ControlClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-s3/src/models/models_0.ts b/clients/client-s3/src/models/models_0.ts index 91b0215e46b3..2aac06b6fe19 100644 --- a/clients/client-s3/src/models/models_0.ts +++ b/clients/client-s3/src/models/models_0.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { ExceptionOptionType as __ExceptionOptionType, SENSITIVE_STRING } from "@smithy/smithy-client"; + import { StreamingBlobTypes } from "@smithy/types"; import { S3ServiceException as __BaseException } from "./S3ServiceException"; diff --git a/clients/client-s3/src/models/models_1.ts b/clients/client-s3/src/models/models_1.ts index 4e7bd09a2305..dc79c2b1ad48 100644 --- a/clients/client-s3/src/models/models_1.ts +++ b/clients/client-s3/src/models/models_1.ts @@ -1,5 +1,6 @@ // smithy-typescript generated code import { ExceptionOptionType as __ExceptionOptionType, SENSITIVE_STRING } from "@smithy/smithy-client"; + import { StreamingBlobTypes } from "@smithy/types"; import { @@ -27,6 +28,7 @@ import { StorageClass, Tag, } from "./models_0"; + import { S3ServiceException as __BaseException } from "./S3ServiceException"; /** diff --git a/clients/client-s3/src/runtimeConfig.ts b/clients/client-s3/src/runtimeConfig.ts index 3efe1813a18c..2c3adf46423f 100644 --- a/clients/client-s3/src/runtimeConfig.ts +++ b/clients/client-s3/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { NODE_USE_ARN_REGION_CONFIG_OPTIONS } from "@aws-sdk/middleware-bucket-endpoint"; @@ -44,8 +43,7 @@ export const getRuntimeConfig = (config: S3ClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-s3outposts/src/runtimeConfig.ts b/clients/client-s3outposts/src/runtimeConfig.ts index e198fdf76473..1b7d2337ec94 100644 --- a/clients/client-s3outposts/src/runtimeConfig.ts +++ b/clients/client-s3outposts/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: S3OutpostsClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-sagemaker-a2i-runtime/src/runtimeConfig.ts b/clients/client-sagemaker-a2i-runtime/src/runtimeConfig.ts index 85b0bfa82ec6..7371c42e1796 100644 --- a/clients/client-sagemaker-a2i-runtime/src/runtimeConfig.ts +++ b/clients/client-sagemaker-a2i-runtime/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: SageMakerA2IRuntimeClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-sagemaker-edge/src/runtimeConfig.ts b/clients/client-sagemaker-edge/src/runtimeConfig.ts index 88697db4d368..2ac272d48a7d 100644 --- a/clients/client-sagemaker-edge/src/runtimeConfig.ts +++ b/clients/client-sagemaker-edge/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: SagemakerEdgeClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-sagemaker-featurestore-runtime/src/runtimeConfig.ts b/clients/client-sagemaker-featurestore-runtime/src/runtimeConfig.ts index 9ec4fbb089dd..a7b506beb94e 100644 --- a/clients/client-sagemaker-featurestore-runtime/src/runtimeConfig.ts +++ b/clients/client-sagemaker-featurestore-runtime/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: SageMakerFeatureStoreRuntimeClientConfi runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-sagemaker-geospatial/src/runtimeConfig.ts b/clients/client-sagemaker-geospatial/src/runtimeConfig.ts index ca50814b04a2..413d52835d24 100644 --- a/clients/client-sagemaker-geospatial/src/runtimeConfig.ts +++ b/clients/client-sagemaker-geospatial/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: SageMakerGeospatialClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-sagemaker-metrics/src/runtimeConfig.ts b/clients/client-sagemaker-metrics/src/runtimeConfig.ts index 8fdbdb167781..3949f9bac470 100644 --- a/clients/client-sagemaker-metrics/src/runtimeConfig.ts +++ b/clients/client-sagemaker-metrics/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: SageMakerMetricsClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-sagemaker-runtime/src/runtimeConfig.ts b/clients/client-sagemaker-runtime/src/runtimeConfig.ts index d92b6bd6a103..1cc66e60cace 100644 --- a/clients/client-sagemaker-runtime/src/runtimeConfig.ts +++ b/clients/client-sagemaker-runtime/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -40,8 +39,7 @@ export const getRuntimeConfig = (config: SageMakerRuntimeClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-sagemaker/src/runtimeConfig.ts b/clients/client-sagemaker/src/runtimeConfig.ts index 12a497ad521a..bdab15b3f0b9 100644 --- a/clients/client-sagemaker/src/runtimeConfig.ts +++ b/clients/client-sagemaker/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: SageMakerClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-savingsplans/src/runtimeConfig.ts b/clients/client-savingsplans/src/runtimeConfig.ts index abc1239e7f47..b50f4c8db27b 100644 --- a/clients/client-savingsplans/src/runtimeConfig.ts +++ b/clients/client-savingsplans/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: SavingsplansClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-scheduler/src/runtimeConfig.ts b/clients/client-scheduler/src/runtimeConfig.ts index 949d10ba6b99..c99156fe472c 100644 --- a/clients/client-scheduler/src/runtimeConfig.ts +++ b/clients/client-scheduler/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: SchedulerClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-schemas/src/runtimeConfig.ts b/clients/client-schemas/src/runtimeConfig.ts index f04b5d58a472..512e3e945452 100644 --- a/clients/client-schemas/src/runtimeConfig.ts +++ b/clients/client-schemas/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: SchemasClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-secrets-manager/src/runtimeConfig.ts b/clients/client-secrets-manager/src/runtimeConfig.ts index 6a8f0adbfd45..ad17350f8bf7 100644 --- a/clients/client-secrets-manager/src/runtimeConfig.ts +++ b/clients/client-secrets-manager/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: SecretsManagerClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-securityhub/src/runtimeConfig.ts b/clients/client-securityhub/src/runtimeConfig.ts index 48c2ac87f73e..d104e3e8746a 100644 --- a/clients/client-securityhub/src/runtimeConfig.ts +++ b/clients/client-securityhub/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: SecurityHubClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-securitylake/src/runtimeConfig.ts b/clients/client-securitylake/src/runtimeConfig.ts index c7c5c713ba83..f6bd5af09b59 100644 --- a/clients/client-securitylake/src/runtimeConfig.ts +++ b/clients/client-securitylake/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: SecurityLakeClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-serverlessapplicationrepository/src/runtimeConfig.ts b/clients/client-serverlessapplicationrepository/src/runtimeConfig.ts index 693310f83064..17c64fd93bd7 100644 --- a/clients/client-serverlessapplicationrepository/src/runtimeConfig.ts +++ b/clients/client-serverlessapplicationrepository/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: ServerlessApplicationRepositoryClientCo runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-service-catalog-appregistry/src/runtimeConfig.ts b/clients/client-service-catalog-appregistry/src/runtimeConfig.ts index 745c51456796..da7a9fa6b084 100644 --- a/clients/client-service-catalog-appregistry/src/runtimeConfig.ts +++ b/clients/client-service-catalog-appregistry/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: ServiceCatalogAppRegistryClientConfig) runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-service-catalog/src/runtimeConfig.ts b/clients/client-service-catalog/src/runtimeConfig.ts index 1be03048b939..b239ceb1db4b 100644 --- a/clients/client-service-catalog/src/runtimeConfig.ts +++ b/clients/client-service-catalog/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: ServiceCatalogClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-service-quotas/src/runtimeConfig.ts b/clients/client-service-quotas/src/runtimeConfig.ts index ad75e0bab7ad..f2a2968a3f21 100644 --- a/clients/client-service-quotas/src/runtimeConfig.ts +++ b/clients/client-service-quotas/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: ServiceQuotasClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-servicediscovery/src/runtimeConfig.ts b/clients/client-servicediscovery/src/runtimeConfig.ts index 5930c55f0a40..6114f019adf5 100644 --- a/clients/client-servicediscovery/src/runtimeConfig.ts +++ b/clients/client-servicediscovery/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: ServiceDiscoveryClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-ses/src/runtimeConfig.ts b/clients/client-ses/src/runtimeConfig.ts index 9d47693e4fe2..d3bc9d85c75a 100644 --- a/clients/client-ses/src/runtimeConfig.ts +++ b/clients/client-ses/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: SESClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-sesv2/src/runtimeConfig.ts b/clients/client-sesv2/src/runtimeConfig.ts index e6b7442fa13a..628a77de0c3b 100644 --- a/clients/client-sesv2/src/runtimeConfig.ts +++ b/clients/client-sesv2/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: SESv2ClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-sfn/src/runtimeConfig.ts b/clients/client-sfn/src/runtimeConfig.ts index adf1db62431f..a84384f121d8 100644 --- a/clients/client-sfn/src/runtimeConfig.ts +++ b/clients/client-sfn/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: SFNClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-shield/src/runtimeConfig.ts b/clients/client-shield/src/runtimeConfig.ts index b04972891cf8..9733c1dad435 100644 --- a/clients/client-shield/src/runtimeConfig.ts +++ b/clients/client-shield/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: ShieldClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-signer/src/runtimeConfig.ts b/clients/client-signer/src/runtimeConfig.ts index 219731a669a7..1ddb3986c052 100644 --- a/clients/client-signer/src/runtimeConfig.ts +++ b/clients/client-signer/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: SignerClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-simspaceweaver/src/runtimeConfig.ts b/clients/client-simspaceweaver/src/runtimeConfig.ts index 9846edb47198..500a543530d8 100644 --- a/clients/client-simspaceweaver/src/runtimeConfig.ts +++ b/clients/client-simspaceweaver/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: SimSpaceWeaverClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-sms/src/runtimeConfig.ts b/clients/client-sms/src/runtimeConfig.ts index dd1016ec5b4c..5ac8e1157b26 100644 --- a/clients/client-sms/src/runtimeConfig.ts +++ b/clients/client-sms/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: SMSClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-snow-device-management/src/runtimeConfig.ts b/clients/client-snow-device-management/src/runtimeConfig.ts index e535d0cf566b..9f8ea67bd351 100644 --- a/clients/client-snow-device-management/src/runtimeConfig.ts +++ b/clients/client-snow-device-management/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: SnowDeviceManagementClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-snowball/src/runtimeConfig.ts b/clients/client-snowball/src/runtimeConfig.ts index 292a94123611..0c153682685e 100644 --- a/clients/client-snowball/src/runtimeConfig.ts +++ b/clients/client-snowball/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: SnowballClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-sns/src/runtimeConfig.ts b/clients/client-sns/src/runtimeConfig.ts index b69cde7428a5..c3c87e8da07c 100644 --- a/clients/client-sns/src/runtimeConfig.ts +++ b/clients/client-sns/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: SNSClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-sqs/src/runtimeConfig.ts b/clients/client-sqs/src/runtimeConfig.ts index 9c2cb5cbf0f2..46a37a744ce5 100644 --- a/clients/client-sqs/src/runtimeConfig.ts +++ b/clients/client-sqs/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -40,8 +39,7 @@ export const getRuntimeConfig = (config: SQSClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-ssm-contacts/src/runtimeConfig.ts b/clients/client-ssm-contacts/src/runtimeConfig.ts index acef4bf23352..400bdc18a1ff 100644 --- a/clients/client-ssm-contacts/src/runtimeConfig.ts +++ b/clients/client-ssm-contacts/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: SSMContactsClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-ssm-incidents/src/runtimeConfig.ts b/clients/client-ssm-incidents/src/runtimeConfig.ts index 38882a157657..3cbec82679d6 100644 --- a/clients/client-ssm-incidents/src/runtimeConfig.ts +++ b/clients/client-ssm-incidents/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: SSMIncidentsClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-ssm-sap/src/runtimeConfig.ts b/clients/client-ssm-sap/src/runtimeConfig.ts index 7b5d96b9ce94..ae27d22e567c 100644 --- a/clients/client-ssm-sap/src/runtimeConfig.ts +++ b/clients/client-ssm-sap/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: SsmSapClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-ssm/src/runtimeConfig.ts b/clients/client-ssm/src/runtimeConfig.ts index 548df8d5382d..79ce49cf7b80 100644 --- a/clients/client-ssm/src/runtimeConfig.ts +++ b/clients/client-ssm/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: SSMClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-sso-admin/src/runtimeConfig.ts b/clients/client-sso-admin/src/runtimeConfig.ts index 8e9851ab5ad3..acc092b81951 100644 --- a/clients/client-sso-admin/src/runtimeConfig.ts +++ b/clients/client-sso-admin/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: SSOAdminClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-sso-oidc/package.json b/clients/client-sso-oidc/package.json index 579fe829027c..b86ed3217e89 100644 --- a/clients/client-sso-oidc/package.json +++ b/clients/client-sso-oidc/package.json @@ -22,7 +22,6 @@ "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/client-sts": "*", "@aws-sdk/core": "*", - "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", "@aws-sdk/middleware-recursion-detection": "*", @@ -86,6 +85,9 @@ "url": "https://aws.amazon.com/javascript/" }, "license": "Apache-2.0", + "peerDependencies": { + "@aws-sdk/credential-provider-node": "*" + }, "browser": { "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser" }, diff --git a/clients/client-sso-oidc/src/credentialDefaultProvider.ts b/clients/client-sso-oidc/src/credentialDefaultProvider.ts new file mode 100644 index 000000000000..dd98203a786c --- /dev/null +++ b/clients/client-sso-oidc/src/credentialDefaultProvider.ts @@ -0,0 +1,8 @@ +// smithy-typescript generated code +/** + * @internal + */ +export const defaultProvider = ((input: any) => { + // @ts-ignore + return () => import("@aws-sdk/credential-provider-node").then(({ defaultProvider }) => defaultProvider(input)()); +}) as any; diff --git a/clients/client-sso-oidc/src/runtimeConfig.ts b/clients/client-sso-oidc/src/runtimeConfig.ts index 57626d0b0314..756edf2a67d5 100644 --- a/clients/client-sso-oidc/src/runtimeConfig.ts +++ b/clients/client-sso-oidc/src/runtimeConfig.ts @@ -2,9 +2,8 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; +import { defaultProvider as credentialDefaultProvider } from "./credentialDefaultProvider"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; -import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { NODE_REGION_CONFIG_FILE_OPTIONS, @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: SSOOIDCClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-storage-gateway/src/runtimeConfig.ts b/clients/client-storage-gateway/src/runtimeConfig.ts index 2f1b314310d3..6aba971fa846 100644 --- a/clients/client-storage-gateway/src/runtimeConfig.ts +++ b/clients/client-storage-gateway/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: StorageGatewayClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-sts/package.json b/clients/client-sts/package.json index 3a125f2d9467..a838468f3b5a 100644 --- a/clients/client-sts/package.json +++ b/clients/client-sts/package.json @@ -23,7 +23,6 @@ "@aws-crypto/sha256-browser": "3.0.0", "@aws-crypto/sha256-js": "3.0.0", "@aws-sdk/core": "*", - "@aws-sdk/credential-provider-node": "*", "@aws-sdk/middleware-host-header": "*", "@aws-sdk/middleware-logger": "*", "@aws-sdk/middleware-recursion-detection": "*", @@ -88,6 +87,9 @@ "url": "https://aws.amazon.com/javascript/" }, "license": "Apache-2.0", + "peerDependencies": { + "@aws-sdk/credential-provider-node": "*" + }, "browser": { "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser" }, diff --git a/clients/client-sts/src/credentialDefaultProvider.ts b/clients/client-sts/src/credentialDefaultProvider.ts new file mode 100644 index 000000000000..dd98203a786c --- /dev/null +++ b/clients/client-sts/src/credentialDefaultProvider.ts @@ -0,0 +1,8 @@ +// smithy-typescript generated code +/** + * @internal + */ +export const defaultProvider = ((input: any) => { + // @ts-ignore + return () => import("@aws-sdk/credential-provider-node").then(({ defaultProvider }) => defaultProvider(input)()); +}) as any; diff --git a/clients/client-sts/src/defaultRoleAssumers.ts b/clients/client-sts/src/defaultRoleAssumers.ts index 329a34efafbd..9e795410e386 100644 --- a/clients/client-sts/src/defaultRoleAssumers.ts +++ b/clients/client-sts/src/defaultRoleAssumers.ts @@ -52,6 +52,9 @@ export const getDefaultRoleAssumerWithWebIdentity = ( * dependencies. * * @internal + * + * @deprecated this is no longer needed. Use the defaultProvider directly, + * which will load STS if needed. */ export const decorateDefaultCredentialProvider = (provider: DefaultCredentialProvider): DefaultCredentialProvider => diff --git a/clients/client-sts/src/runtimeConfig.ts b/clients/client-sts/src/runtimeConfig.ts index 4372e8cd673e..cd214de4d0f3 100644 --- a/clients/client-sts/src/runtimeConfig.ts +++ b/clients/client-sts/src/runtimeConfig.ts @@ -2,9 +2,8 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "./defaultStsRoleAssumers"; +import { defaultProvider as credentialDefaultProvider } from "./credentialDefaultProvider"; import { AwsSdkSigV4Signer, emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; -import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { NODE_REGION_CONFIG_FILE_OPTIONS, @@ -41,8 +40,7 @@ export const getRuntimeConfig = (config: STSClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), @@ -51,8 +49,7 @@ export const getRuntimeConfig = (config: STSClientConfig) => { schemeId: "aws.auth#sigv4", identityProvider: (ipc: IdentityProviderConfig) => ipc.getIdentityProvider("aws.auth#sigv4") || - (async (idProps) => - await decorateDefaultCredentialProvider(credentialDefaultProvider)(idProps?.__config || {})()), + (async (idProps) => await credentialDefaultProvider(idProps?.__config || {})()), signer: new AwsSdkSigV4Signer(), }, { diff --git a/clients/client-supplychain/src/runtimeConfig.ts b/clients/client-supplychain/src/runtimeConfig.ts index bf10662c433c..cfce61f0ca99 100644 --- a/clients/client-supplychain/src/runtimeConfig.ts +++ b/clients/client-supplychain/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: SupplyChainClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-support-app/src/runtimeConfig.ts b/clients/client-support-app/src/runtimeConfig.ts index 4782def7198a..e621dc60b5be 100644 --- a/clients/client-support-app/src/runtimeConfig.ts +++ b/clients/client-support-app/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: SupportAppClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-support/src/runtimeConfig.ts b/clients/client-support/src/runtimeConfig.ts index 59f553ca1fad..d76de5f65931 100644 --- a/clients/client-support/src/runtimeConfig.ts +++ b/clients/client-support/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: SupportClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-swf/src/runtimeConfig.ts b/clients/client-swf/src/runtimeConfig.ts index 22472b3681b4..bd79dac0b3a8 100644 --- a/clients/client-swf/src/runtimeConfig.ts +++ b/clients/client-swf/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: SWFClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-synthetics/src/runtimeConfig.ts b/clients/client-synthetics/src/runtimeConfig.ts index 40282b533eed..f68cb32bf6c9 100644 --- a/clients/client-synthetics/src/runtimeConfig.ts +++ b/clients/client-synthetics/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: SyntheticsClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-textract/src/runtimeConfig.ts b/clients/client-textract/src/runtimeConfig.ts index e158de8fe1c5..6de627aa00f4 100644 --- a/clients/client-textract/src/runtimeConfig.ts +++ b/clients/client-textract/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: TextractClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-timestream-query/src/runtimeConfig.ts b/clients/client-timestream-query/src/runtimeConfig.ts index 502356fcc186..b586515d765d 100644 --- a/clients/client-timestream-query/src/runtimeConfig.ts +++ b/clients/client-timestream-query/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS } from "@aws-sdk/middleware-endpoint-discovery"; @@ -40,8 +39,7 @@ export const getRuntimeConfig = (config: TimestreamQueryClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-timestream-write/src/runtimeConfig.ts b/clients/client-timestream-write/src/runtimeConfig.ts index 20a4d5a5f21d..3e205afb8c2b 100644 --- a/clients/client-timestream-write/src/runtimeConfig.ts +++ b/clients/client-timestream-write/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS } from "@aws-sdk/middleware-endpoint-discovery"; @@ -40,8 +39,7 @@ export const getRuntimeConfig = (config: TimestreamWriteClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-tnb/src/runtimeConfig.ts b/clients/client-tnb/src/runtimeConfig.ts index 2753602b0f78..18923bc5e630 100644 --- a/clients/client-tnb/src/runtimeConfig.ts +++ b/clients/client-tnb/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: TnbClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-transcribe-streaming/src/runtimeConfig.ts b/clients/client-transcribe-streaming/src/runtimeConfig.ts index 4b5428b3db3d..f2e7f9d1c877 100644 --- a/clients/client-transcribe-streaming/src/runtimeConfig.ts +++ b/clients/client-transcribe-streaming/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { eventStreamPayloadHandlerProvider } from "@aws-sdk/eventstream-handler-node"; @@ -41,8 +40,7 @@ export const getRuntimeConfig = (config: TranscribeStreamingClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-transcribe/src/runtimeConfig.ts b/clients/client-transcribe/src/runtimeConfig.ts index 8d2327642b4b..53f5e454df7b 100644 --- a/clients/client-transcribe/src/runtimeConfig.ts +++ b/clients/client-transcribe/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: TranscribeClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-transfer/src/runtimeConfig.ts b/clients/client-transfer/src/runtimeConfig.ts index ec9a876f8e29..85edee140e17 100644 --- a/clients/client-transfer/src/runtimeConfig.ts +++ b/clients/client-transfer/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: TransferClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-translate/src/runtimeConfig.ts b/clients/client-translate/src/runtimeConfig.ts index f28ad742abff..e29bb0872371 100644 --- a/clients/client-translate/src/runtimeConfig.ts +++ b/clients/client-translate/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: TranslateClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-trustedadvisor/src/runtimeConfig.ts b/clients/client-trustedadvisor/src/runtimeConfig.ts index 705ec7334c9f..d9bd27eddd11 100644 --- a/clients/client-trustedadvisor/src/runtimeConfig.ts +++ b/clients/client-trustedadvisor/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: TrustedAdvisorClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-verifiedpermissions/src/runtimeConfig.ts b/clients/client-verifiedpermissions/src/runtimeConfig.ts index 71e24acf37c4..d156f37a1e98 100644 --- a/clients/client-verifiedpermissions/src/runtimeConfig.ts +++ b/clients/client-verifiedpermissions/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: VerifiedPermissionsClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-voice-id/src/runtimeConfig.ts b/clients/client-voice-id/src/runtimeConfig.ts index a1c7fb675e9d..cdfd5b793a5c 100644 --- a/clients/client-voice-id/src/runtimeConfig.ts +++ b/clients/client-voice-id/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: VoiceIDClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-vpc-lattice/src/runtimeConfig.ts b/clients/client-vpc-lattice/src/runtimeConfig.ts index 12f7fd2aa826..077c5e3891e2 100644 --- a/clients/client-vpc-lattice/src/runtimeConfig.ts +++ b/clients/client-vpc-lattice/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: VPCLatticeClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-waf-regional/src/runtimeConfig.ts b/clients/client-waf-regional/src/runtimeConfig.ts index eb8b9b341da2..3c0eabdb39c5 100644 --- a/clients/client-waf-regional/src/runtimeConfig.ts +++ b/clients/client-waf-regional/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: WAFRegionalClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-waf/src/runtimeConfig.ts b/clients/client-waf/src/runtimeConfig.ts index d43d8eb7bc8d..db9887c51258 100644 --- a/clients/client-waf/src/runtimeConfig.ts +++ b/clients/client-waf/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: WAFClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-wafv2/src/runtimeConfig.ts b/clients/client-wafv2/src/runtimeConfig.ts index 74e5148560ec..1d9037be457d 100644 --- a/clients/client-wafv2/src/runtimeConfig.ts +++ b/clients/client-wafv2/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: WAFV2ClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-wellarchitected/src/runtimeConfig.ts b/clients/client-wellarchitected/src/runtimeConfig.ts index c86ee208320e..5fcdd3b7d4b6 100644 --- a/clients/client-wellarchitected/src/runtimeConfig.ts +++ b/clients/client-wellarchitected/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: WellArchitectedClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-wisdom/src/runtimeConfig.ts b/clients/client-wisdom/src/runtimeConfig.ts index 37c9b3388c10..2bd15fb86be2 100644 --- a/clients/client-wisdom/src/runtimeConfig.ts +++ b/clients/client-wisdom/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: WisdomClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-workdocs/src/runtimeConfig.ts b/clients/client-workdocs/src/runtimeConfig.ts index fba1581e1f22..438e1a69ef1f 100644 --- a/clients/client-workdocs/src/runtimeConfig.ts +++ b/clients/client-workdocs/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: WorkDocsClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-worklink/src/runtimeConfig.ts b/clients/client-worklink/src/runtimeConfig.ts index 33531084b7d4..d77933ce1a01 100644 --- a/clients/client-worklink/src/runtimeConfig.ts +++ b/clients/client-worklink/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: WorkLinkClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-workmail/src/runtimeConfig.ts b/clients/client-workmail/src/runtimeConfig.ts index 782ffa52c469..a07242e2c106 100644 --- a/clients/client-workmail/src/runtimeConfig.ts +++ b/clients/client-workmail/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: WorkMailClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-workmailmessageflow/src/runtimeConfig.ts b/clients/client-workmailmessageflow/src/runtimeConfig.ts index 2df5ef4d00f9..46ddec8bf740 100644 --- a/clients/client-workmailmessageflow/src/runtimeConfig.ts +++ b/clients/client-workmailmessageflow/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: WorkMailMessageFlowClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-workspaces-thin-client/src/runtimeConfig.ts b/clients/client-workspaces-thin-client/src/runtimeConfig.ts index 00b30107e6d1..62554c4b1d9f 100644 --- a/clients/client-workspaces-thin-client/src/runtimeConfig.ts +++ b/clients/client-workspaces-thin-client/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: WorkSpacesThinClientClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-workspaces-web/src/runtimeConfig.ts b/clients/client-workspaces-web/src/runtimeConfig.ts index 3a5afd8bf24a..e1f95b143f2f 100644 --- a/clients/client-workspaces-web/src/runtimeConfig.ts +++ b/clients/client-workspaces-web/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: WorkSpacesWebClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-workspaces/src/runtimeConfig.ts b/clients/client-workspaces/src/runtimeConfig.ts index 792f42cdc555..8c3ea4e9137b 100644 --- a/clients/client-workspaces/src/runtimeConfig.ts +++ b/clients/client-workspaces/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: WorkSpacesClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/clients/client-xray/src/runtimeConfig.ts b/clients/client-xray/src/runtimeConfig.ts index d0a66ea5a1c3..0fc4aea77833 100644 --- a/clients/client-xray/src/runtimeConfig.ts +++ b/clients/client-xray/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -39,8 +38,7 @@ export const getRuntimeConfig = (config: XRayClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddAwsAuthPlugin.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddAwsAuthPlugin.java index 984e75e8d8e9..39f31027ea7a 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddAwsAuthPlugin.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddAwsAuthPlugin.java @@ -38,6 +38,7 @@ import software.amazon.smithy.model.shapes.OperationShape; import software.amazon.smithy.model.shapes.ServiceShape; import software.amazon.smithy.model.shapes.Shape; +import software.amazon.smithy.model.shapes.ShapeId; import software.amazon.smithy.model.traits.OptionalAuthTrait; import software.amazon.smithy.typescript.codegen.CodegenUtils; import software.amazon.smithy.typescript.codegen.LanguageTarget; @@ -207,19 +208,21 @@ public Map> getRuntimeConfigWriters( case NODE: return MapUtils.of( "credentialDefaultProvider", writer -> { - if (!testServiceId(service, "STS")) { - writer.addDependency(AwsDependency.STS_CLIENT); - writer.addImport("decorateDefaultCredentialProvider", "decorateDefaultCredentialProvider", - AwsDependency.STS_CLIENT); + if (isCredentialService(service)) { + writer + .addDependency(AwsDependency.CREDENTIAL_PROVIDER_NODE_PEER) + .addDependency(AwsDependency.STS_CLIENT) + .addRelativeImport("defaultProvider", "credentialDefaultProvider", + Paths.get(".", CodegenUtils.SOURCE_FOLDER, "credentialDefaultProvider")) + .write("credentialDefaultProvider"); } else { - writer.addRelativeImport("decorateDefaultCredentialProvider", - "decorateDefaultCredentialProvider", Paths.get(".", CodegenUtils.SOURCE_FOLDER, - STS_ROLE_ASSUMERS_FILE)); + writer + .addDependency(AwsDependency.CREDENTIAL_PROVIDER_NODE) + .addDependency(AwsDependency.STS_CLIENT) + .addImport("defaultProvider", "credentialDefaultProvider", + AwsDependency.CREDENTIAL_PROVIDER_NODE) + .write("credentialDefaultProvider"); } - writer.addDependency(AwsDependency.CREDENTIAL_PROVIDER_NODE); - writer.addImport("defaultProvider", "credentialDefaultProvider", - AwsDependency.CREDENTIAL_PROVIDER_NODE); - writer.write("decorateDefaultCredentialProvider(credentialDefaultProvider)"); } ); default: @@ -238,6 +241,22 @@ public void customize(TypeScriptCodegenContext codegenContext) { writerFactory.accept(Paths.get(CodegenUtils.SOURCE_FOLDER, "index.ts").toString(), writer -> { writeAdditionalExports(settings, model, writer); }); + + if (isCredentialService(settings.getService(model))) { + writerFactory.accept(CodegenUtils.SOURCE_FOLDER + "/credentialDefaultProvider.ts", writer -> { + writer + .write(""" + /** + * @internal + */ + export const defaultProvider = ((input: any) => { + // @ts-ignore + return () => import("@aws-sdk/credential-provider-node") + .then(({ defaultProvider }) => defaultProvider(input)()); + }) as any; + """); + }); + } } private void writeAdditionalFiles( @@ -326,4 +345,14 @@ private static boolean areAllOptionalAuthOperations(Model model, ServiceShape se } return true; } + + /** + * Some services with circular dependencies to credential providers. + */ + private boolean isCredentialService(ServiceShape service) { + return List.of( + ShapeId.from("com.amazonaws.ssooidc#AWSSSOOIDCService"), + ShapeId.from("com.amazonaws.sts#AWSSecurityTokenServiceV20110615") + ).stream().anyMatch(service.getId()::equals); + } } diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsDependency.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsDependency.java index 211c31d95d33..5964e8f213f7 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsDependency.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AwsDependency.java @@ -17,6 +17,7 @@ import static software.amazon.smithy.typescript.codegen.TypeScriptDependency.DEV_DEPENDENCY; import static software.amazon.smithy.typescript.codegen.TypeScriptDependency.NORMAL_DEPENDENCY; +import static software.amazon.smithy.typescript.codegen.TypeScriptDependency.PEER_DEPENDENCY; import java.io.IOException; import java.io.StringReader; @@ -41,6 +42,7 @@ public enum AwsDependency implements Dependency { MIDDLEWARE_SIGNING(NORMAL_DEPENDENCY, "@aws-sdk/middleware-signing"), MIDDLEWARE_TOKEN(NORMAL_DEPENDENCY, "@aws-sdk/middleware-token"), CREDENTIAL_PROVIDER_NODE(NORMAL_DEPENDENCY, "@aws-sdk/credential-provider-node"), + CREDENTIAL_PROVIDER_NODE_PEER(PEER_DEPENDENCY, "@aws-sdk/credential-provider-node"), ACCEPT_HEADER(NORMAL_DEPENDENCY, "@aws-sdk/middleware-sdk-api-gateway"), S3_MIDDLEWARE(NORMAL_DEPENDENCY, "@aws-sdk/middleware-sdk-s3"), ADD_EXPECT_CONTINUE(NORMAL_DEPENDENCY, "@aws-sdk/middleware-expect-continue"), diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/auth/http/integration/AddAwsDefaultSigningName.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/auth/http/integration/AddAwsDefaultSigningName.java index 831a87f51670..d7914141815b 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/auth/http/integration/AddAwsDefaultSigningName.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/auth/http/integration/AddAwsDefaultSigningName.java @@ -11,7 +11,6 @@ import java.util.logging.Logger; import software.amazon.smithy.aws.traits.ServiceTrait; import software.amazon.smithy.aws.traits.auth.SigV4Trait; -import software.amazon.smithy.aws.typescript.codegen.AddAwsAuthPlugin; import software.amazon.smithy.codegen.core.SymbolProvider; import software.amazon.smithy.model.Model; import software.amazon.smithy.model.shapes.ServiceShape; @@ -27,7 +26,7 @@ */ @SmithyInternalApi public final class AddAwsDefaultSigningName implements TypeScriptIntegration { - private static final Logger LOGGER = Logger.getLogger(AddAwsAuthPlugin.class.getName()); + private static final Logger LOGGER = Logger.getLogger(AddAwsDefaultSigningName.class.getName()); /** * Integration should only be used if `experimentalIdentityAndAuth` flag is true. diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/auth/http/integration/AddSTSAuthCustomizations.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/auth/http/integration/AddSTSAuthCustomizations.java index 60b4cdc5a743..6e7a405a9b4d 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/auth/http/integration/AddSTSAuthCustomizations.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/auth/http/integration/AddSTSAuthCustomizations.java @@ -110,12 +110,10 @@ public Map> getRuntimeConfigWriters( return MapUtils.of( "credentialDefaultProvider", writer -> { writer - .addRelativeImport("decorateDefaultCredentialProvider", null, - Paths.get(".", CodegenUtils.SOURCE_FOLDER, STS_ROLE_ASSUMERS_FILE)) - .addDependency(AwsDependency.CREDENTIAL_PROVIDER_NODE) - .addImport("defaultProvider", "credentialDefaultProvider", - AwsDependency.CREDENTIAL_PROVIDER_NODE) - .write("decorateDefaultCredentialProvider(credentialDefaultProvider)"); + .addRelativeImport("defaultProvider", "credentialDefaultProvider", + Paths.get(".", CodegenUtils.SOURCE_FOLDER, "credentialDefaultProvider")) + .addDependency(AwsDependency.CREDENTIAL_PROVIDER_NODE_PEER) + .write("credentialDefaultProvider"); } ); default: @@ -220,14 +218,9 @@ public void customizeSupportedHttpAuthSchemes( // Use `@aws-sdk/credential-provider-node` with `@aws-sdk/client-sts` as the // default identity provider chain for Node.js .putDefaultIdentityProvider(LanguageTarget.NODE, w -> w - .addRelativeImport("decorateDefaultCredentialProvider", null, - Paths.get(".", CodegenUtils.SOURCE_FOLDER, STS_ROLE_ASSUMERS_FILE)) - .addDependency(AwsDependency.CREDENTIAL_PROVIDER_NODE) - .addImport("defaultProvider", "credentialDefaultProvider", - AwsDependency.CREDENTIAL_PROVIDER_NODE) .write(""" async (idProps) => await \ - decorateDefaultCredentialProvider(credentialDefaultProvider)(idProps?.__config || {})()""")) + credentialDefaultProvider(idProps?.__config || {})()""")) .addResolveConfigFunction(ResolveConfigFunction.builder() .resolveConfigFunction(Symbol.builder() .namespace(AuthUtils.HTTP_AUTH_SCHEME_PROVIDER_MODULE, "/") diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/auth/http/integration/AwsSdkCustomizeSigV4Auth.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/auth/http/integration/AwsSdkCustomizeSigV4Auth.java index ef7f6452bb37..bf9ff2219eda 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/auth/http/integration/AwsSdkCustomizeSigV4Auth.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/auth/http/integration/AwsSdkCustomizeSigV4Auth.java @@ -8,10 +8,12 @@ import static software.amazon.smithy.aws.typescript.codegen.AwsTraitsUtils.isAwsService; import static software.amazon.smithy.aws.typescript.codegen.AwsTraitsUtils.isSigV4Service; +import java.nio.file.Paths; import java.util.Collections; import java.util.List; import java.util.Map; import java.util.Set; +import java.util.function.BiConsumer; import java.util.function.Consumer; import software.amazon.smithy.aws.traits.auth.SigV4Trait; import software.amazon.smithy.aws.typescript.codegen.AwsDependency; @@ -21,8 +23,11 @@ import software.amazon.smithy.model.knowledge.TopDownIndex; import software.amazon.smithy.model.shapes.OperationShape; import software.amazon.smithy.model.shapes.ServiceShape; +import software.amazon.smithy.model.shapes.ShapeId; import software.amazon.smithy.model.traits.OptionalAuthTrait; +import software.amazon.smithy.typescript.codegen.CodegenUtils; import software.amazon.smithy.typescript.codegen.LanguageTarget; +import software.amazon.smithy.typescript.codegen.TypeScriptCodegenContext; import software.amazon.smithy.typescript.codegen.TypeScriptDependency; import software.amazon.smithy.typescript.codegen.TypeScriptSettings; import software.amazon.smithy.typescript.codegen.TypeScriptWriter; @@ -108,18 +113,29 @@ public Map> getRuntimeConfigWriters( } case NODE: if (isAwsService(service)) { - return MapUtils.of( - "credentialDefaultProvider", writer -> { - writer - .addDependency(AwsDependency.STS_CLIENT) - .addImport("decorateDefaultCredentialProvider", "decorateDefaultCredentialProvider", - AwsDependency.STS_CLIENT) - .addDependency(AwsDependency.CREDENTIAL_PROVIDER_NODE) - .addImport("defaultProvider", "credentialDefaultProvider", - AwsDependency.CREDENTIAL_PROVIDER_NODE) - .write("decorateDefaultCredentialProvider(credentialDefaultProvider)"); - } - ); + if (isCredentialService(service)) { + return MapUtils.of( + "credentialDefaultProvider", writer -> { + writer + .addDependency(AwsDependency.CREDENTIAL_PROVIDER_NODE_PEER) + .addDependency(AwsDependency.STS_CLIENT) + .addRelativeImport("defaultProvider", "credentialDefaultProvider", + Paths.get(".", CodegenUtils.SOURCE_FOLDER, "credentialDefaultProvider")) + .write("credentialDefaultProvider"); + } + ); + } else { + return MapUtils.of( + "credentialDefaultProvider", writer -> { + writer + .addDependency(AwsDependency.CREDENTIAL_PROVIDER_NODE) + .addDependency(AwsDependency.STS_CLIENT) + .addImport("defaultProvider", "credentialDefaultProvider", + AwsDependency.CREDENTIAL_PROVIDER_NODE) + .write("credentialDefaultProvider"); + } + ); + } } default: return Collections.emptyMap(); @@ -183,6 +199,31 @@ public void customizeSupportedHttpAuthSchemes( } } + @Override + public void customize(TypeScriptCodegenContext codegenContext) { + TypeScriptSettings settings = codegenContext.settings(); + Model model = codegenContext.model(); + + if (isCredentialService(settings.getService(model))) { + BiConsumer> writerFactory = + codegenContext.writerDelegator()::useFileWriter; + + writerFactory.accept(CodegenUtils.SOURCE_FOLDER + "/credentialDefaultProvider.ts", writer -> { + writer + .write(""" + /** + * @internal + */ + export const defaultProvider = ((input: any) => { + // @ts-ignore + return () => import("@aws-sdk/credential-provider-node") + .then(({ defaultProvider }) => defaultProvider(input)()); + }) as any; + """); + }); + } + } + private boolean areAllOptionalAuthOperations(Model model, ServiceShape service) { TopDownIndex topDownIndex = TopDownIndex.of(model); Set operations = topDownIndex.getContainedOperations(service); @@ -193,4 +234,14 @@ private boolean areAllOptionalAuthOperations(Model model, ServiceShape service) } return true; } + + /** + * Some services with circular dependencies to credential providers. + */ + private boolean isCredentialService(ServiceShape service) { + return List.of( + ShapeId.from("com.amazonaws.ssooidc#AWSSSOOIDCService"), + ShapeId.from("com.amazonaws.sts#AWSSecurityTokenServiceV20110615") + ).stream().anyMatch(service.getId()::equals); + } } diff --git a/codegen/smithy-aws-typescript-codegen/src/main/resources/software/amazon/smithy/aws/typescript/codegen/sts-client-defaultRoleAssumers.ts b/codegen/smithy-aws-typescript-codegen/src/main/resources/software/amazon/smithy/aws/typescript/codegen/sts-client-defaultRoleAssumers.ts index 93c80aef3a21..4409fb38ab5b 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/resources/software/amazon/smithy/aws/typescript/codegen/sts-client-defaultRoleAssumers.ts +++ b/codegen/smithy-aws-typescript-codegen/src/main/resources/software/amazon/smithy/aws/typescript/codegen/sts-client-defaultRoleAssumers.ts @@ -49,6 +49,9 @@ export const getDefaultRoleAssumerWithWebIdentity = ( * dependencies. * * @internal + * + * @deprecated this is no longer needed. Use the defaultProvider directly, + * which will load STS if needed. */ export const decorateDefaultCredentialProvider = (provider: DefaultCredentialProvider): DefaultCredentialProvider => diff --git a/codegen/smithy-aws-typescript-codegen/src/test/java/software/amazon/smithy/aws/typescript/codegen/AddAwsAuthPluginTest.java b/codegen/smithy-aws-typescript-codegen/src/test/java/software/amazon/smithy/aws/typescript/codegen/AddAwsAuthPluginTest.java index ab63bd0fdddf..77072b28148b 100644 --- a/codegen/smithy-aws-typescript-codegen/src/test/java/software/amazon/smithy/aws/typescript/codegen/AddAwsAuthPluginTest.java +++ b/codegen/smithy-aws-typescript-codegen/src/test/java/software/amazon/smithy/aws/typescript/codegen/AddAwsAuthPluginTest.java @@ -42,8 +42,6 @@ public void awsClient() { assertThat(manifest.getFileString(CodegenUtils.SOURCE_FOLDER + "/NotSameClient.ts").get(), not(containsString("signingName"))); // Check config files - assertThat(manifest.getFileString(CodegenUtils.SOURCE_FOLDER + "/runtimeConfig.ts").get(), - containsString("decorateDefaultCredentialProvider")); assertThat(manifest.getFileString(CodegenUtils.SOURCE_FOLDER + "/runtimeConfig.browser.ts").get(), containsString("Credential is missing")); assertThat(manifest.getFileString(CodegenUtils.SOURCE_FOLDER + "/runtimeConfig.shared.ts").get(), not(containsString("signingName:"))); @@ -81,8 +79,6 @@ public void sigV4GenericClient() { assertThat(manifest.getFileString(CodegenUtils.SOURCE_FOLDER + "/SsdkExampleSigV4Client.ts").get(), containsString("signingName?")); // Check config files - assertThat(manifest.getFileString(CodegenUtils.SOURCE_FOLDER + "/runtimeConfig.ts").get(), - containsString("decorateDefaultCredentialProvider")); assertThat(manifest.getFileString(CodegenUtils.SOURCE_FOLDER + "/runtimeConfig.browser.ts").get(), containsString("Credential is missing")); assertThat(manifest.getFileString(CodegenUtils.SOURCE_FOLDER + "/runtimeConfig.shared.ts").get(), containsString("signingName:")); diff --git a/package.json b/package.json index 4b97e8ca09e1..399d3c5e0e74 100644 --- a/package.json +++ b/package.json @@ -117,7 +117,7 @@ "ts-loader": "9.4.2", "ts-mocha": "10.0.0", "ts-node": "10.9.1", - "turbo": "^1.6.3", + "turbo": "^1.11.3", "typescript": "~4.9.5", "verdaccio": "5.25.0", "webpack": "5.73.0", diff --git a/packages/credential-provider-cognito-identity/src/CognitoProviderParameters.ts b/packages/credential-provider-cognito-identity/src/CognitoProviderParameters.ts index 68fb2d96ef74..93e684eda0ea 100644 --- a/packages/credential-provider-cognito-identity/src/CognitoProviderParameters.ts +++ b/packages/credential-provider-cognito-identity/src/CognitoProviderParameters.ts @@ -1,5 +1,4 @@ -import { CognitoIdentityClient } from "@aws-sdk/client-cognito-identity"; - +import type { CognitoIdentityClient, CognitoIdentityClientConfig } from "./loadCognitoIdentity"; import { Logins } from "./Logins"; /** @@ -10,7 +9,12 @@ export interface CognitoProviderParameters { * The SDK client with which the credential provider will contact the Amazon * Cognito service. */ - client: CognitoIdentityClient; + client?: CognitoIdentityClient; + + /** + * Client config, only used when not supplying a client. + */ + clientConfig?: CognitoIdentityClientConfig; /** * The Amazon Resource Name (ARN) of the role to be assumed when multiple diff --git a/packages/credential-provider-cognito-identity/src/fromCognitoIdentity.ts b/packages/credential-provider-cognito-identity/src/fromCognitoIdentity.ts index e4c9b4f9bc00..d61e238f5dfd 100644 --- a/packages/credential-provider-cognito-identity/src/fromCognitoIdentity.ts +++ b/packages/credential-provider-cognito-identity/src/fromCognitoIdentity.ts @@ -1,4 +1,4 @@ -import { GetCredentialsForIdentityCommand } from "@aws-sdk/client-cognito-identity"; +import type { CredentialProviderOptions } from "@aws-sdk/types"; import { CredentialsProviderError } from "@smithy/property-provider"; import { AwsCredentialIdentity, Provider } from "@smithy/types"; @@ -30,6 +30,9 @@ export type CognitoIdentityCredentialProvider = Provider => { + parameters.logger?.debug("@aws-sdk/credential-provider-cognito-identity", "fromCognitoIdentity"); + const { GetCredentialsForIdentityCommand, CognitoIdentityClient } = await import("./loadCognitoIdentity"); + const { Credentials: { AccessKeyId = throwOnMissingAccessKeyId(), @@ -37,7 +40,7 @@ export function fromCognitoIdentity(parameters: FromCognitoIdentityParameters): SecretKey = throwOnMissingSecretKey(), SessionToken, } = throwOnMissingCredentials(), - } = await parameters.client.send( + } = await (parameters.client ?? new CognitoIdentityClient(parameters.clientConfig ?? {})).send( new GetCredentialsForIdentityCommand({ CustomRoleArn: parameters.customRoleArn, IdentityId: parameters.identityId, @@ -58,7 +61,7 @@ export function fromCognitoIdentity(parameters: FromCognitoIdentityParameters): /** * @internal */ -export interface FromCognitoIdentityParameters extends CognitoProviderParameters { +export interface FromCognitoIdentityParameters extends CognitoProviderParameters, CredentialProviderOptions { /** * The unique identifier for the identity against which credentials will be * issued. diff --git a/packages/credential-provider-cognito-identity/src/fromCognitoIdentityPool.ts b/packages/credential-provider-cognito-identity/src/fromCognitoIdentityPool.ts index 5dd17464bcee..d38755510db4 100644 --- a/packages/credential-provider-cognito-identity/src/fromCognitoIdentityPool.ts +++ b/packages/credential-provider-cognito-identity/src/fromCognitoIdentityPool.ts @@ -1,4 +1,4 @@ -import { GetIdCommand } from "@aws-sdk/client-cognito-identity"; +import type { CredentialProviderOptions } from "@aws-sdk/types"; import { CredentialsProviderError } from "@smithy/property-provider"; import { CognitoProviderParameters } from "./CognitoProviderParameters"; @@ -21,31 +21,39 @@ export function fromCognitoIdentityPool({ accountId, cache = localStorage(), client, + clientConfig, customRoleArn, identityPoolId, logins, userIdentifier = !logins || Object.keys(logins).length === 0 ? "ANONYMOUS" : undefined, + logger, }: FromCognitoIdentityPoolParameters): CognitoIdentityCredentialProvider { - const cacheKey = userIdentifier ? `aws:cognito-identity-credentials:${identityPoolId}:${userIdentifier}` : undefined; + logger?.debug("@aws-sdk/credential-provider-cognito-identity", "fromCognitoIdentity"); + const cacheKey: string | undefined = userIdentifier + ? `aws:cognito-identity-credentials:${identityPoolId}:${userIdentifier}` + : undefined; let provider: CognitoIdentityCredentialProvider = async () => { - let identityId = cacheKey && (await cache.getItem(cacheKey)); + const { GetIdCommand, CognitoIdentityClient } = await import("./loadCognitoIdentity"); + const _client = client ?? new CognitoIdentityClient(clientConfig ?? {}); + + let identityId: string | undefined = (cacheKey && (await cache.getItem(cacheKey))) as string | undefined; if (!identityId) { - const { IdentityId = throwOnMissingId() } = await client.send( + const { IdentityId = throwOnMissingId() } = await _client.send( new GetIdCommand({ AccountId: accountId, IdentityPoolId: identityPoolId, Logins: logins ? await resolveLogins(logins) : undefined, }) ); - identityId = IdentityId; + identityId = IdentityId as string; if (cacheKey) { Promise.resolve(cache.setItem(cacheKey, identityId)).catch(() => {}); } } provider = fromCognitoIdentity({ - client, + client: _client, customRoleArn, logins, identityId, @@ -67,7 +75,7 @@ export function fromCognitoIdentityPool({ /** * @internal */ -export interface FromCognitoIdentityPoolParameters extends CognitoProviderParameters { +export interface FromCognitoIdentityPoolParameters extends CognitoProviderParameters, CredentialProviderOptions { /** * A standard AWS account ID (9+ digits). */ diff --git a/packages/credential-provider-cognito-identity/src/loadCognitoIdentity.ts b/packages/credential-provider-cognito-identity/src/loadCognitoIdentity.ts new file mode 100644 index 000000000000..2be4a10c0bc9 --- /dev/null +++ b/packages/credential-provider-cognito-identity/src/loadCognitoIdentity.ts @@ -0,0 +1,9 @@ +import { + CognitoIdentityClient, + GetCredentialsForIdentityCommand, + GetIdCommand, +} from "@aws-sdk/client-cognito-identity"; + +// This file must be loaded dynamically. +export { CognitoIdentityClient, GetCredentialsForIdentityCommand, GetIdCommand }; +export type { CognitoIdentityClientConfig } from "@aws-sdk/client-cognito-identity"; diff --git a/packages/credential-provider-env/src/fromEnv.ts b/packages/credential-provider-env/src/fromEnv.ts index 4618bab05e9d..2d47bd54107e 100644 --- a/packages/credential-provider-env/src/fromEnv.ts +++ b/packages/credential-provider-env/src/fromEnv.ts @@ -1,6 +1,9 @@ +import type { CredentialProviderOptions } from "@aws-sdk/types"; import { CredentialsProviderError } from "@smithy/property-provider"; import { AwsCredentialIdentityProvider } from "@smithy/types"; +export interface FromEnvInit extends CredentialProviderOptions {} + /** * @internal */ @@ -29,22 +32,25 @@ export const ENV_CREDENTIAL_SCOPE = "AWS_CREDENTIAL_SCOPE"; * `AWS_ACCESS_KEY_ID` or `AWS_SECRET_ACCESS_KEY` environment variable is not * set in this process, the provider will return a rejected promise. */ -export const fromEnv = (): AwsCredentialIdentityProvider => async () => { - const accessKeyId: string | undefined = process.env[ENV_KEY]; - const secretAccessKey: string | undefined = process.env[ENV_SECRET]; - const sessionToken: string | undefined = process.env[ENV_SESSION]; - const expiry: string | undefined = process.env[ENV_EXPIRATION]; - const credentialScope: string | undefined = process.env[ENV_CREDENTIAL_SCOPE]; +export const fromEnv = + (init?: FromEnvInit): AwsCredentialIdentityProvider => + async () => { + init?.logger?.debug("@aws-sdk/credential-provider-env", "fromEnv"); + const accessKeyId: string | undefined = process.env[ENV_KEY]; + const secretAccessKey: string | undefined = process.env[ENV_SECRET]; + const sessionToken: string | undefined = process.env[ENV_SESSION]; + const expiry: string | undefined = process.env[ENV_EXPIRATION]; + const credentialScope: string | undefined = process.env[ENV_CREDENTIAL_SCOPE]; - if (accessKeyId && secretAccessKey) { - return { - accessKeyId, - secretAccessKey, - ...(sessionToken && { sessionToken }), - ...(expiry && { expiration: new Date(expiry) }), - ...(credentialScope && { credentialScope }), - }; - } + if (accessKeyId && secretAccessKey) { + return { + accessKeyId, + secretAccessKey, + ...(sessionToken && { sessionToken }), + ...(expiry && { expiration: new Date(expiry) }), + ...(credentialScope && { credentialScope }), + }; + } - throw new CredentialsProviderError("Unable to find environment variable credentials."); -}; + throw new CredentialsProviderError("Unable to find environment variable credentials."); + }; diff --git a/packages/credential-provider-http/src/fromHttp/fromHttp.browser.ts b/packages/credential-provider-http/src/fromHttp/fromHttp.browser.ts index d672d8b45a12..e35e72a93c66 100644 --- a/packages/credential-provider-http/src/fromHttp/fromHttp.browser.ts +++ b/packages/credential-provider-http/src/fromHttp/fromHttp.browser.ts @@ -11,6 +11,7 @@ import { retryWrapper } from "./retry-wrapper"; * Creates a provider that gets credentials via HTTP request. */ export const fromHttp = (options: FromHttpOptions): AwsCredentialIdentityProvider => { + options.logger?.debug("@aws-sdk/credential-provider-http", "fromHttp"); let host: string; const full = options.credentialsFullUri; diff --git a/packages/credential-provider-http/src/fromHttp/fromHttp.ts b/packages/credential-provider-http/src/fromHttp/fromHttp.ts index b38082e27fa7..a7310afe7721 100644 --- a/packages/credential-provider-http/src/fromHttp/fromHttp.ts +++ b/packages/credential-provider-http/src/fromHttp/fromHttp.ts @@ -18,6 +18,7 @@ const AWS_CONTAINER_AUTHORIZATION_TOKEN = "AWS_CONTAINER_AUTHORIZATION_TOKEN"; * Creates a provider that gets credentials via HTTP request. */ export const fromHttp = (options: FromHttpOptions): AwsCredentialIdentityProvider => { + options.logger?.debug("@aws-sdk/credential-provider-http", "fromHttp"); let host: string; const relative = options.awsContainerCredentialsRelativeUri ?? process.env[AWS_CONTAINER_CREDENTIALS_RELATIVE_URI]; diff --git a/packages/credential-provider-http/src/fromHttp/fromHttpTypes.ts b/packages/credential-provider-http/src/fromHttp/fromHttpTypes.ts index a25206290777..923d9392392a 100644 --- a/packages/credential-provider-http/src/fromHttp/fromHttpTypes.ts +++ b/packages/credential-provider-http/src/fromHttp/fromHttpTypes.ts @@ -1,9 +1,11 @@ +import type { CredentialProviderOptions } from "@aws-sdk/types"; + /** * @public * * Input for the fromHttp function in the HTTP Credentials Provider for Node.js. */ -export interface FromHttpOptions { +export interface FromHttpOptions extends CredentialProviderOptions { /** * If this value is provided, it will be used as-is. * diff --git a/packages/credential-provider-ini/package.json b/packages/credential-provider-ini/package.json index 22a61fdb33e2..0b6ed49b0673 100644 --- a/packages/credential-provider-ini/package.json +++ b/packages/credential-provider-ini/package.json @@ -24,6 +24,7 @@ }, "license": "Apache-2.0", "dependencies": { + "@aws-sdk/client-sts": "*", "@aws-sdk/credential-provider-env": "*", "@aws-sdk/credential-provider-process": "*", "@aws-sdk/credential-provider-sso": "*", diff --git a/packages/credential-provider-ini/src/fromIni.ts b/packages/credential-provider-ini/src/fromIni.ts index 41ca5440c54b..f178196698ba 100644 --- a/packages/credential-provider-ini/src/fromIni.ts +++ b/packages/credential-provider-ini/src/fromIni.ts @@ -1,14 +1,16 @@ -import { AssumeRoleWithWebIdentityParams } from "@aws-sdk/credential-provider-web-identity"; +import type { AssumeRoleWithWebIdentityParams } from "@aws-sdk/credential-provider-web-identity"; +import type { CredentialProviderOptions } from "@aws-sdk/types"; import { getProfileName, parseKnownFiles, SourceProfileInit } from "@smithy/shared-ini-file-loader"; -import { AwsCredentialIdentity, AwsCredentialIdentityProvider } from "@smithy/types"; +import type { AwsCredentialIdentity, AwsCredentialIdentityProvider, Pluggable } from "@smithy/types"; +import type { STSClientConfig } from "./loadSts"; import { AssumeRoleParams } from "./resolveAssumeRoleCredentials"; import { resolveProfileData } from "./resolveProfileData"; /** - * @internal + * @public */ -export interface FromIniInit extends SourceProfileInit { +export interface FromIniInit extends SourceProfileInit, CredentialProviderOptions { /** * A function that returns a promise fulfilled with an MFA token code for * the provided MFA Serial code. If a profile requires an MFA code and @@ -36,6 +38,9 @@ export interface FromIniInit extends SourceProfileInit { * @param params */ roleAssumerWithWebIdentity?: (params: AssumeRoleWithWebIdentityParams) => Promise; + + clientConfig?: STSClientConfig; + clientPlugins?: Pluggable[]; } /** @@ -47,6 +52,7 @@ export interface FromIniInit extends SourceProfileInit { export const fromIni = (init: FromIniInit = {}): AwsCredentialIdentityProvider => async () => { + init.logger?.debug("@aws-sdk/credential-provider-ini", "fromIni"); const profiles = await parseKnownFiles(init); return resolveProfileData(getProfileName(init), profiles, init); }; diff --git a/packages/credential-provider-ini/src/loadSts.ts b/packages/credential-provider-ini/src/loadSts.ts new file mode 100644 index 000000000000..738ef6bc3a29 --- /dev/null +++ b/packages/credential-provider-ini/src/loadSts.ts @@ -0,0 +1,5 @@ +import { getDefaultRoleAssumer } from "@aws-sdk/client-sts"; + +// This file must be loaded dynamically. +export { getDefaultRoleAssumer }; +export type { STSClientConfig } from "@aws-sdk/client-sts"; diff --git a/packages/credential-provider-ini/src/resolveAssumeRoleCredentials.spec.ts b/packages/credential-provider-ini/src/resolveAssumeRoleCredentials.spec.ts index 405d670a7ef1..4d13ca989fcb 100644 --- a/packages/credential-provider-ini/src/resolveAssumeRoleCredentials.spec.ts +++ b/packages/credential-provider-ini/src/resolveAssumeRoleCredentials.spec.ts @@ -5,6 +5,11 @@ import { isAssumeRoleProfile, resolveAssumeRoleCredentials } from "./resolveAssu import { resolveCredentialSource } from "./resolveCredentialSource"; import { resolveProfileData } from "./resolveProfileData"; +jest.mock("@aws-sdk/client-sts", () => { + return { + getDefaultRoleAssumer: jest.fn().mockReturnValue(() => {}), + }; +}); jest.mock("@smithy/shared-ini-file-loader"); jest.mock("./resolveCredentialSource"); jest.mock("./resolveProfileData"); @@ -115,24 +120,17 @@ describe(resolveAssumeRoleCredentials.name, () => { beforeEach(() => { (getProfileName as jest.Mock).mockReturnValue(mockProfileName); (resolveProfileData as jest.Mock).mockResolvedValue(mockSourceCredsFromProfile); - (resolveCredentialSource as jest.Mock).mockReturnValue(() => Promise.resolve(mockSourceCredsFromCredential)); + (resolveCredentialSource as jest.Mock).mockReturnValue(() => () => Promise.resolve(mockSourceCredsFromCredential)); }); afterEach(() => { jest.clearAllMocks(); }); - it("throws error if roleAssumer is not available in options", async () => { - const expectedError = new CredentialsProviderError( - `Profile ${mockProfileName} requires a role to be assumed, but no role assumption callback was provided.`, - false - ); - try { - await resolveAssumeRoleCredentials(mockProfileName, mockProfiles, { ...mockOptions, roleAssumer: undefined }); - fail(`expected ${expectedError}`); - } catch (error) { - expect(error).toStrictEqual(expectedError); - } + it("dynamically loads STS if roleAssumer is not available in options", async () => { + const inputOptions = { ...mockOptions, roleAssumer: undefined }; + await resolveAssumeRoleCredentials(mockProfileName, mockProfiles, inputOptions); + expect(inputOptions.roleAssumer).toBeDefined(); }); it("throws error if source_profile is in visited profiles", async () => { diff --git a/packages/credential-provider-ini/src/resolveAssumeRoleCredentials.ts b/packages/credential-provider-ini/src/resolveAssumeRoleCredentials.ts index f175ab54cd12..b107c043aab2 100644 --- a/packages/credential-provider-ini/src/resolveAssumeRoleCredentials.ts +++ b/packages/credential-provider-ini/src/resolveAssumeRoleCredentials.ts @@ -1,6 +1,6 @@ import { CredentialsProviderError } from "@smithy/property-provider"; import { getProfileName } from "@smithy/shared-ini-file-loader"; -import { ParsedIniData, Profile } from "@smithy/types"; +import { AwsCredentialIdentity, ParsedIniData, Profile } from "@smithy/types"; import { FromIniInit } from "./fromIni"; import { resolveCredentialSource } from "./resolveCredentialSource"; @@ -83,13 +83,12 @@ export const resolveAssumeRoleCredentials = async ( options: FromIniInit, visitedProfiles: Record = {} ) => { + options.logger?.debug("@aws-sdk/credential-provider-ini", "resolveAssumeRoleCredentials (STS)"); const data = profiles[profileName]; if (!options.roleAssumer) { - throw new CredentialsProviderError( - `Profile ${profileName} requires a role to be assumed, but no role assumption callback was provided.`, - false - ); + const { getDefaultRoleAssumer } = await import("./loadSts"); + options.roleAssumer = getDefaultRoleAssumer(options.clientConfig, options.clientPlugins); } const { source_profile } = data; @@ -102,12 +101,12 @@ export const resolveAssumeRoleCredentials = async ( ); } - const sourceCredsProvider = source_profile + const sourceCredsProvider: Promise = source_profile ? resolveProfileData(source_profile, profiles, options, { ...visitedProfiles, [source_profile]: true, }) - : resolveCredentialSource(data.credential_source!, profileName)(); + : (await resolveCredentialSource(data.credential_source!, profileName)(options))(); const params: AssumeRoleParams = { RoleArn: data.role_arn!, @@ -129,5 +128,5 @@ export const resolveAssumeRoleCredentials = async ( } const sourceCreds = await sourceCredsProvider; - return options.roleAssumer(sourceCreds, params); + return options.roleAssumer!(sourceCreds, params); }; diff --git a/packages/credential-provider-ini/src/resolveCredentialSource.spec.ts b/packages/credential-provider-ini/src/resolveCredentialSource.spec.ts index 3378f2c22220..5e0923b2f3aa 100644 --- a/packages/credential-provider-ini/src/resolveCredentialSource.spec.ts +++ b/packages/credential-provider-ini/src/resolveCredentialSource.spec.ts @@ -1,25 +1,25 @@ +jest.mock("@aws-sdk/credential-provider-env"); +jest.mock("@smithy/credential-provider-imds"); + import { fromEnv } from "@aws-sdk/credential-provider-env"; import { fromContainerMetadata, fromInstanceMetadata } from "@smithy/credential-provider-imds"; import { CredentialsProviderError } from "@smithy/property-provider"; import { resolveCredentialSource } from "./resolveCredentialSource"; -jest.mock("@aws-sdk/credential-provider-env"); -jest.mock("@smithy/credential-provider-imds"); - describe(resolveCredentialSource.name, () => { const mockProfileName = "mockProfileName"; - const mockCreds = { - accessKeyId: "mockAccessKeyId", - secretAccessKey: "mockSecretAccessKey", - }; - const mockFakeCreds = { accessKeyId: "mockFakeAccessKeyId", secretAccessKey: "mockFakeSecretAccessKey", }; + const mockCreds = { + accessKeyId: "mockAccessKeyId", + secretAccessKey: "mockSecretAccessKey", + }; + beforeEach(() => { (fromEnv as jest.Mock).mockReturnValue(() => Promise.resolve(mockFakeCreds)); (fromContainerMetadata as jest.Mock).mockReturnValue(() => Promise.resolve(mockFakeCreds)); @@ -36,9 +36,16 @@ describe(resolveCredentialSource.name, () => { ["Environment", fromEnv], ])("when credentialSource=%s, calls %p", async (credentialSource, fromFn) => { (fromFn as jest.Mock).mockReturnValue(() => Promise.resolve(mockCreds)); - const receivedCreds = await resolveCredentialSource(credentialSource, mockProfileName)(); + const providerFactory = resolveCredentialSource(credentialSource, mockProfileName); + expect(typeof providerFactory).toEqual("function"); + + const provider = await providerFactory(); + expect(typeof provider).toEqual("function"); + + const receivedCreds = await provider(); expect(receivedCreds).toStrictEqual(mockCreds); - expect(fromFn).toHaveBeenCalledWith(); + + expect(fromFn).toHaveBeenCalled(); [fromContainerMetadata, fromInstanceMetadata, fromEnv] .filter((fn) => fn !== fromFn) .forEach((fnNotCalled) => { @@ -53,7 +60,9 @@ describe(resolveCredentialSource.name, () => { `expected EcsContainer or Ec2InstanceMetadata or Environment.` ); try { - await resolveCredentialSource(mockCredentialSource, mockProfileName)(); + await ( + await resolveCredentialSource(mockCredentialSource, mockProfileName)() + )(); fail(`expected ${expectedError}`); } catch (error) { expect(error).toStrictEqual(expectedError); diff --git a/packages/credential-provider-ini/src/resolveCredentialSource.ts b/packages/credential-provider-ini/src/resolveCredentialSource.ts index 943a0653852f..2cbc2db38b86 100644 --- a/packages/credential-provider-ini/src/resolveCredentialSource.ts +++ b/packages/credential-provider-ini/src/resolveCredentialSource.ts @@ -1,5 +1,4 @@ -import { fromEnv } from "@aws-sdk/credential-provider-env"; -import { fromContainerMetadata, fromInstanceMetadata } from "@smithy/credential-provider-imds"; +import type { CredentialProviderOptions } from "@aws-sdk/types"; import { CredentialsProviderError } from "@smithy/property-provider"; import { AwsCredentialIdentityProvider } from "@smithy/types"; @@ -15,14 +14,17 @@ import { AwsCredentialIdentityProvider } from "@smithy/types"; export const resolveCredentialSource = ( credentialSource: string, profileName: string -): AwsCredentialIdentityProvider => { - const sourceProvidersMap: Record AwsCredentialIdentityProvider> = { - EcsContainer: fromContainerMetadata, - Ec2InstanceMetadata: fromInstanceMetadata, - Environment: fromEnv, +): ((options?: CredentialProviderOptions) => Promise) => { + const sourceProvidersMap = { + EcsContainer: (options?: CredentialProviderOptions) => + import("@smithy/credential-provider-imds").then(({ fromContainerMetadata }) => fromContainerMetadata(options)), + Ec2InstanceMetadata: (options?: CredentialProviderOptions) => + import("@smithy/credential-provider-imds").then(({ fromInstanceMetadata }) => fromInstanceMetadata(options)), + Environment: (options?: CredentialProviderOptions) => + import("@aws-sdk/credential-provider-env").then(({ fromEnv }) => fromEnv(options)), }; if (credentialSource in sourceProvidersMap) { - return sourceProvidersMap[credentialSource](); + return sourceProvidersMap[credentialSource as keyof typeof sourceProvidersMap]; } else { throw new CredentialsProviderError( `Unsupported credential source in profile ${profileName}. Got ${credentialSource}, ` + diff --git a/packages/credential-provider-ini/src/resolveProcessCredentials.ts b/packages/credential-provider-ini/src/resolveProcessCredentials.ts index 26bbef43a8cf..152f9db5d11a 100644 --- a/packages/credential-provider-ini/src/resolveProcessCredentials.ts +++ b/packages/credential-provider-ini/src/resolveProcessCredentials.ts @@ -1,6 +1,4 @@ -import { fromProcess } from "@aws-sdk/credential-provider-process"; -import { Credentials } from "@aws-sdk/types"; -import { Profile } from "@smithy/types"; +import { Credentials, Profile } from "@aws-sdk/types"; import { FromIniInit } from "./fromIni"; @@ -21,7 +19,9 @@ export const isProcessProfile = (arg: any): arg is ProcessProfile => * @internal */ export const resolveProcessCredentials = async (options: FromIniInit, profile: string): Promise => - fromProcess({ - ...options, - profile, - })(); + import("@aws-sdk/credential-provider-process").then(({ fromProcess }) => + fromProcess({ + ...options, + profile, + })() + ); diff --git a/packages/credential-provider-ini/src/resolveProfileData.spec.ts b/packages/credential-provider-ini/src/resolveProfileData.spec.ts index 22d3c2ad5be1..20d6317928e7 100644 --- a/packages/credential-provider-ini/src/resolveProfileData.spec.ts +++ b/packages/credential-provider-ini/src/resolveProfileData.spec.ts @@ -70,7 +70,7 @@ describe(resolveProfileData.name, () => { (resolveStaticCredentials as jest.Mock).mockImplementation(() => Promise.resolve(mockCreds)); const receivedCreds = await resolveProfileData(mockProfileName, mockProfiles, mockOptions, { testProfile: true }); expect(receivedCreds).toStrictEqual(mockCreds); - expect(resolveStaticCredentials).toHaveBeenCalledWith(mockProfiles[mockProfileName]); + expect(resolveStaticCredentials).toHaveBeenCalledWith(mockProfiles[mockProfileName], mockOptions); }); describe("resolves with assumeRole", () => { @@ -97,7 +97,7 @@ describe(resolveProfileData.name, () => { (resolveStaticCredentials as jest.Mock).mockImplementation(() => Promise.resolve(mockCreds)); const receivedCreds = await resolveProfileData(mockProfileName, mockProfiles, mockOptions); expect(receivedCreds).toStrictEqual(mockCreds); - expect(resolveStaticCredentials).toHaveBeenCalledWith(mockProfiles[mockProfileName]); + expect(resolveStaticCredentials).toHaveBeenCalledWith(mockProfiles[mockProfileName], mockOptions); }); it("resolves with web identity profile, when it's not static or assume role", async () => { diff --git a/packages/credential-provider-ini/src/resolveProfileData.ts b/packages/credential-provider-ini/src/resolveProfileData.ts index 9971f056abb2..b1815e1262be 100644 --- a/packages/credential-provider-ini/src/resolveProfileData.ts +++ b/packages/credential-provider-ini/src/resolveProfileData.ts @@ -1,5 +1,5 @@ import { CredentialsProviderError } from "@smithy/property-provider"; -import { AwsCredentialIdentity, ParsedIniData } from "@smithy/types"; +import type { AwsCredentialIdentity, ParsedIniData } from "@smithy/types"; import { FromIniInit } from "./fromIni"; import { isAssumeRoleProfile, resolveAssumeRoleCredentials } from "./resolveAssumeRoleCredentials"; @@ -23,7 +23,7 @@ export const resolveProfileData = async ( // preferred over role assumption metadata. This special treatment of // second and subsequent hops is to ensure compatibility with the AWS CLI. if (Object.keys(visitedProfiles).length > 0 && isStaticCredsProfile(data)) { - return resolveStaticCredentials(data); + return resolveStaticCredentials(data, options); } // If this is the first profile visited, role assumption keys should be @@ -35,7 +35,7 @@ export const resolveProfileData = async ( // If no role assumption metadata is present, attempt to load static // credentials from the selected profile. if (isStaticCredsProfile(data)) { - return resolveStaticCredentials(data); + return resolveStaticCredentials(data, options); } // If no static credentials are present, attempt to assume role with @@ -51,7 +51,7 @@ export const resolveProfileData = async ( } if (isSsoProfile(data)) { - return resolveSsoCredentials(data); + return await resolveSsoCredentials(data); } // If the profile cannot be parsed or contains neither static credentials diff --git a/packages/credential-provider-ini/src/resolveSsoCredentials.spec.ts b/packages/credential-provider-ini/src/resolveSsoCredentials.spec.ts index 74c969b571d5..b030f3c0df7c 100644 --- a/packages/credential-provider-ini/src/resolveSsoCredentials.spec.ts +++ b/packages/credential-provider-ini/src/resolveSsoCredentials.spec.ts @@ -1,4 +1,4 @@ -import { fromSSO, isSsoProfile as origIsSsoProfile, validateSsoProfile } from "@aws-sdk/credential-provider-sso"; +import { fromSSO, validateSsoProfile } from "@aws-sdk/credential-provider-sso"; import { AwsCredentialIdentity } from "@smithy/types"; import { isSsoProfile, resolveSsoCredentials } from "./resolveSsoCredentials"; @@ -6,14 +6,16 @@ import { isSsoProfile, resolveSsoCredentials } from "./resolveSsoCredentials"; jest.mock("@aws-sdk/credential-provider-sso"); describe(isSsoProfile.name, () => { - afterEach(() => { - jest.clearAllMocks(); + it("returns false for empty profile", () => { + expect(isSsoProfile({})).toEqual(false); }); - it.each([false, true])("returns value returned by original isSsoProfile: %s", (value) => { - (origIsSsoProfile as unknown as jest.Mock).mockReturnValue(value); - expect(isSsoProfile({})).toEqual(value); - }); + it.each(["sso_start_url", "sso_account_id", "sso_region", "sso_session", "sso_role_name"])( + "returns true if value at '%s' is of type string", + (key) => { + expect(isSsoProfile({ [key]: "string" })).toEqual(true); + } + ); }); describe(resolveSsoCredentials.name, () => { diff --git a/packages/credential-provider-ini/src/resolveSsoCredentials.ts b/packages/credential-provider-ini/src/resolveSsoCredentials.ts index a29dba13e7d5..50742e9ed448 100644 --- a/packages/credential-provider-ini/src/resolveSsoCredentials.ts +++ b/packages/credential-provider-ini/src/resolveSsoCredentials.ts @@ -1,15 +1,11 @@ -import { fromSSO, validateSsoProfile } from "@aws-sdk/credential-provider-sso"; -import { SsoProfile } from "@aws-sdk/credential-provider-sso"; +import type { SsoProfile } from "@aws-sdk/credential-provider-sso"; +import type { Profile } from "@smithy/types"; /** * @internal */ -export { isSsoProfile } from "@aws-sdk/credential-provider-sso"; - -/** - * @internal - */ -export const resolveSsoCredentials = (data: Partial) => { +export const resolveSsoCredentials = async (data: Partial) => { + const { fromSSO, validateSsoProfile } = await import("@aws-sdk/credential-provider-sso"); const { sso_start_url, sso_account_id, sso_session, sso_region, sso_role_name } = validateSsoProfile(data); return fromSSO({ ssoStartUrl: sso_start_url, @@ -19,3 +15,15 @@ export const resolveSsoCredentials = (data: Partial) => { ssoRoleName: sso_role_name, })(); }; + +/** + * @internal + * duplicated from \@aws-sdk/credential-provider-sso to defer import. + */ +export const isSsoProfile = (arg: Profile): arg is Partial => + arg && + (typeof arg.sso_start_url === "string" || + typeof arg.sso_account_id === "string" || + typeof arg.sso_session === "string" || + typeof arg.sso_region === "string" || + typeof arg.sso_role_name === "string"); diff --git a/packages/credential-provider-ini/src/resolveStaticCredentials.ts b/packages/credential-provider-ini/src/resolveStaticCredentials.ts index 934d377a7f1e..012dda732f06 100644 --- a/packages/credential-provider-ini/src/resolveStaticCredentials.ts +++ b/packages/credential-provider-ini/src/resolveStaticCredentials.ts @@ -1,5 +1,7 @@ import { AwsCredentialIdentity, Profile } from "@smithy/types"; +import { FromIniInit } from "./fromIni"; + /** * @internal */ @@ -23,10 +25,15 @@ export const isStaticCredsProfile = (arg: any): arg is StaticCredsProfile => /** * @internal */ -export const resolveStaticCredentials = (profile: StaticCredsProfile): Promise => - Promise.resolve({ +export const resolveStaticCredentials = ( + profile: StaticCredsProfile, + options?: FromIniInit +): Promise => { + options?.logger?.debug("@aws-sdk/credential-provider-ini", "resolveStaticCredentials"); + return Promise.resolve({ accessKeyId: profile.aws_access_key_id, secretAccessKey: profile.aws_secret_access_key, sessionToken: profile.aws_session_token, credentialScope: profile.aws_credential_scope, }); +}; diff --git a/packages/credential-provider-ini/src/resolveWebIdentityCredentials.ts b/packages/credential-provider-ini/src/resolveWebIdentityCredentials.ts index 5a59d03c353c..f55a9c34a12e 100644 --- a/packages/credential-provider-ini/src/resolveWebIdentityCredentials.ts +++ b/packages/credential-provider-ini/src/resolveWebIdentityCredentials.ts @@ -1,4 +1,3 @@ -import { fromTokenFile } from "@aws-sdk/credential-provider-web-identity"; import { AwsCredentialIdentity, Profile } from "@smithy/types"; import { FromIniInit } from "./fromIni"; @@ -29,9 +28,11 @@ export const resolveWebIdentityCredentials = async ( profile: WebIdentityProfile, options: FromIniInit ): Promise => - fromTokenFile({ - webIdentityTokenFile: profile.web_identity_token_file, - roleArn: profile.role_arn, - roleSessionName: profile.role_session_name, - roleAssumerWithWebIdentity: options.roleAssumerWithWebIdentity, - })(); + import("@aws-sdk/credential-provider-web-identity").then(({ fromTokenFile }) => + fromTokenFile({ + webIdentityTokenFile: profile.web_identity_token_file, + roleArn: profile.role_arn, + roleSessionName: profile.role_session_name, + roleAssumerWithWebIdentity: options.roleAssumerWithWebIdentity, + })() + ); diff --git a/packages/credential-provider-node/src/defaultProvider.spec.ts b/packages/credential-provider-node/src/defaultProvider.spec.ts index 9be6a3e8c6a9..5a2f09fa5030 100644 --- a/packages/credential-provider-node/src/defaultProvider.spec.ts +++ b/packages/credential-provider-node/src/defaultProvider.spec.ts @@ -70,7 +70,7 @@ describe(defaultProvider.name, () => { expect(receivedCreds).toEqual(mockCreds); expect(fromEnv).not.toHaveBeenCalled(); - expect(fromSSO).toHaveBeenCalledWith(mockInit); + expect(fromSSO).not.toHaveBeenCalled(); // skipped when direct input is not sso. expect(fromIni).toHaveBeenCalledWith(mockInit); expect(fromProcess).toHaveBeenCalledWith(mockInit); expect(fromTokenFile).toHaveBeenCalledWith(mockInit); @@ -107,9 +107,10 @@ describe(defaultProvider.name, () => { expect(receivedCreds).toStrictEqual(mockCreds); expect(fromEnv).not.toHaveBeenCalled(); - for (const fromFn of [fromSSO, fromIni, fromProcess, fromTokenFile, remoteProvider]) { + for (const fromFn of [fromIni, fromProcess, fromTokenFile, remoteProvider]) { expect(fromFn).toHaveBeenCalledWith(mockInitWithoutProfile); } + expect(fromSSO).not.toHaveBeenCalled(); process.env = ORIGINAL_ENV; }); @@ -121,9 +122,10 @@ describe(defaultProvider.name, () => { expect(receivedCreds).toStrictEqual(mockCreds); expect(fromEnv).toHaveBeenCalledTimes(1); - for (const fromFn of [fromSSO, fromIni, fromProcess, fromTokenFile, remoteProvider]) { + for (const fromFn of [fromIni, fromProcess, fromTokenFile, remoteProvider]) { expect(fromFn).toHaveBeenCalledWith(mockInitWithoutProfile); } + expect(fromSSO).not.toHaveBeenCalled(); }); describe(credentialsTreatedAsExpired.name, () => { diff --git a/packages/credential-provider-node/src/defaultProvider.ts b/packages/credential-provider-node/src/defaultProvider.ts index e0184cc72e03..94aad155eee7 100644 --- a/packages/credential-provider-node/src/defaultProvider.ts +++ b/packages/credential-provider-node/src/defaultProvider.ts @@ -1,6 +1,6 @@ import type { FromIniInit } from "@aws-sdk/credential-provider-ini"; import type { FromProcessInit } from "@aws-sdk/credential-provider-process"; -import type { FromSSOInit } from "@aws-sdk/credential-provider-sso"; +import type { FromSSOInit, SsoCredentialsParameters } from "@aws-sdk/credential-provider-sso"; import type { FromTokenFileInit } from "@aws-sdk/credential-provider-web-identity"; import type { RemoteProviderInit } from "@smithy/credential-provider-imds"; import { chain, CredentialsProviderError, memoize } from "@smithy/property-provider"; @@ -9,7 +9,14 @@ import { AwsCredentialIdentity, MemoizedProvider } from "@smithy/types"; import { remoteProvider } from "./remoteProvider"; -export type DefaultProviderInit = FromIniInit & RemoteProviderInit & FromProcessInit & FromSSOInit & FromTokenFileInit; +/** + * @public + */ +export type DefaultProviderInit = FromIniInit & + RemoteProviderInit & + FromProcessInit & + (FromSSOInit & Partial) & + FromTokenFileInit; /** * Creates a credential provider that will attempt to find credentials from the @@ -30,20 +37,20 @@ export type DefaultProviderInit = FromIniInit & RemoteProviderInit & FromProcess * @param init Configuration that is passed to each individual * provider * - * @see {@link fromEnv} The function used to source credentials from - * environment variables - * @see {@link fromSSO} The function used to source credentials from - * resolved SSO token cache - * @see {@link fromTokenFile} The function used to source credentials from - * token file - * @see {@link fromIni} The function used to source credentials from INI - * files - * @see {@link fromProcess} The function used to sources credentials from - * credential_process in INI files + * @see {@link fromEnv} The function used to source credentials from + * environment variables. + * @see {@link fromSSO} The function used to source credentials from + * resolved SSO token cache. + * @see {@link fromTokenFile} The function used to source credentials from + * token file. + * @see {@link fromIni} The function used to source credentials from INI + * files. + * @see {@link fromProcess} The function used to sources credentials from + * credential_process in INI files. * @see {@link fromInstanceMetadata} The function used to source credentials from the - * EC2 Instance Metadata Service + * EC2 Instance Metadata Service. * @see {@link fromContainerMetadata} The function used to source credentials from the - * ECS Container Metadata Service + * ECS Container Metadata Service. */ export const defaultProvider = (init: DefaultProviderInit = {}): MemoizedProvider => memoize( @@ -52,27 +59,39 @@ export const defaultProvider = (init: DefaultProviderInit = {}): MemoizedProvide ? [] : [ async () => { + init.logger?.debug("@aws-sdk/credential-provider-node", "defaultProvider::fromEnv"); const { fromEnv } = await import("@aws-sdk/credential-provider-env"); return fromEnv()(); }, ]), async () => { + init.logger?.debug("@aws-sdk/credential-provider-node", "defaultProvider::fromSSO"); + const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName } = init; + if (!ssoStartUrl || !ssoAccountId || !ssoRegion || !ssoRoleName) { + throw new CredentialsProviderError( + "Skipping SSO provider in default chain (inputs do not include SSO fields)." + ); + } const { fromSSO } = await import("@aws-sdk/credential-provider-sso"); return fromSSO(init)(); }, async () => { + init.logger?.debug("@aws-sdk/credential-provider-node", "defaultProvider::fromIni"); const { fromIni } = await import("@aws-sdk/credential-provider-ini"); return fromIni(init)(); }, async () => { + init.logger?.debug("@aws-sdk/credential-provider-node", "defaultProvider::fromProcess"); const { fromProcess } = await import("@aws-sdk/credential-provider-process"); return fromProcess(init)(); }, async () => { + init.logger?.debug("@aws-sdk/credential-provider-node", "defaultProvider::fromTokenFile"); const { fromTokenFile } = await import("@aws-sdk/credential-provider-web-identity"); return fromTokenFile(init)(); }, async () => { + init.logger?.debug("@aws-sdk/credential-provider-node", "defaultProvider::remoteProvider"); return (await remoteProvider(init))(); }, async () => { diff --git a/packages/credential-provider-node/src/remoteProvider.ts b/packages/credential-provider-node/src/remoteProvider.ts index 49a1c1952466..7bd4d93da1b4 100644 --- a/packages/credential-provider-node/src/remoteProvider.ts +++ b/packages/credential-provider-node/src/remoteProvider.ts @@ -13,6 +13,7 @@ export const remoteProvider = async (init: RemoteProviderInit): Promise async () => { + init.logger?.debug("@aws-sdk/credential-provider-process", "fromProcess"); const profiles = await parseKnownFiles(init); return resolveProcessCredentials(getProfileName(init), profiles); }; diff --git a/packages/credential-provider-sso/src/fromSSO.spec.ts b/packages/credential-provider-sso/src/fromSSO.spec.ts index 499aa957e5a2..65eadc44fc3f 100644 --- a/packages/credential-provider-sso/src/fromSSO.spec.ts +++ b/packages/credential-provider-sso/src/fromSSO.spec.ts @@ -8,6 +8,9 @@ import { resolveSSOCredentials } from "./resolveSSOCredentials"; import { validateSsoProfile } from "./validateSsoProfile"; jest.mock("@smithy/shared-ini-file-loader"); +jest.mock("@aws-sdk/client-sso", () => ({ + SSOClient: jest.fn(), +})); jest.mock("./isSsoProfile"); jest.mock("./resolveSSOCredentials"); jest.mock("./validateSsoProfile"); @@ -116,6 +119,7 @@ describe(fromSSO.name, () => { ssoRoleName: mockValidatedSsoProfile.sso_role_name, profile: mockProfileName, ssoSession: undefined, + ssoClient: expect.any(SSOClient), }); }); }); diff --git a/packages/credential-provider-sso/src/fromSSO.ts b/packages/credential-provider-sso/src/fromSSO.ts index 087514504f9a..b39e05211b70 100644 --- a/packages/credential-provider-sso/src/fromSSO.ts +++ b/packages/credential-provider-sso/src/fromSSO.ts @@ -1,9 +1,10 @@ -import { SSOClient } from "@aws-sdk/client-sso"; +import type { CredentialProviderOptions } from "@aws-sdk/types"; import { CredentialsProviderError } from "@smithy/property-provider"; import { getProfileName, loadSsoSessionData, parseKnownFiles, SourceProfileInit } from "@smithy/shared-ini-file-loader"; import { AwsCredentialIdentityProvider } from "@smithy/types"; import { isSsoProfile } from "./isSsoProfile"; +import type { SSOClient, SSOClientConfig } from "./loadSso"; import { resolveSSOCredentials } from "./resolveSSOCredentials"; import { validateSsoProfile } from "./validateSsoProfile"; @@ -41,8 +42,9 @@ export interface SsoCredentialsParameters { /** * @internal */ -export interface FromSSOInit extends SourceProfileInit { +export interface FromSSOInit extends SourceProfileInit, CredentialProviderOptions { ssoClient?: SSOClient; + clientConfig?: SSOClientConfig; } /** @@ -79,7 +81,13 @@ export interface FromSSOInit extends SourceProfileInit { export const fromSSO = (init: FromSSOInit & Partial = {}): AwsCredentialIdentityProvider => async () => { - const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, ssoSession } = init; + init.logger?.debug("@aws-sdk/credential-provider-sso", "fromSSO"); + const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init; + let { ssoClient } = init; + if (!ssoClient) { + const { SSOClient } = await import("./loadSso"); + ssoClient = new SSOClient(init.clientConfig ?? {}); + } const profileName = getProfileName(init); if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) { diff --git a/packages/credential-provider-sso/src/loadSso.ts b/packages/credential-provider-sso/src/loadSso.ts new file mode 100644 index 000000000000..9249dc71c4b5 --- /dev/null +++ b/packages/credential-provider-sso/src/loadSso.ts @@ -0,0 +1,6 @@ +import { GetRoleCredentialsCommand, SSOClient } from "@aws-sdk/client-sso"; + +// This file must be loaded dynamically. +export { GetRoleCredentialsCommand, SSOClient }; + +export type { SSOClientConfig, GetRoleCredentialsCommandOutput } from "@aws-sdk/client-sso"; diff --git a/packages/credential-provider-sso/src/resolveSSOCredentials.ts b/packages/credential-provider-sso/src/resolveSSOCredentials.ts index db218bae8cd1..298f5ea4beca 100644 --- a/packages/credential-provider-sso/src/resolveSSOCredentials.ts +++ b/packages/credential-provider-sso/src/resolveSSOCredentials.ts @@ -1,10 +1,10 @@ -import { GetRoleCredentialsCommand, GetRoleCredentialsCommandOutput, SSOClient } from "@aws-sdk/client-sso"; import { fromSso as getSsoTokenProvider } from "@aws-sdk/token-providers"; import { CredentialsProviderError } from "@smithy/property-provider"; import { getSSOTokenFromFile, SSOToken } from "@smithy/shared-ini-file-loader"; import { AwsCredentialIdentity } from "@smithy/types"; import { FromSSOInit, SsoCredentialsParameters } from "./fromSSO"; +import type { GetRoleCredentialsCommandOutput } from "./loadSso"; const SHOULD_FAIL_CREDENTIAL_CHAIN = false; @@ -52,6 +52,9 @@ export const resolveSSOCredentials = async ({ } const { accessToken } = token; + + const { SSOClient, GetRoleCredentialsCommand } = await import("./loadSso"); + const sso = ssoClient || new SSOClient({ region: ssoRegion }); let ssoResp: GetRoleCredentialsCommandOutput; try { @@ -66,10 +69,16 @@ export const resolveSSOCredentials = async ({ throw CredentialsProviderError.from(e, SHOULD_FAIL_CREDENTIAL_CHAIN); } - const { roleCredentials: { accessKeyId, secretAccessKey, sessionToken, expiration } = {} } = ssoResp; - // TODO(credentialScope): Extract from ssoResp object with other credential fields - // TODO(credentialScope): when this field becomes defined on the shape. - const credentialScope = (ssoResp?.roleCredentials as any)?.credentialScope; + const { roleCredentials: { accessKeyId, secretAccessKey, sessionToken, expiration, credentialScope } = {} } = + ssoResp as unknown as { + roleCredentials: { + accessKeyId?: string; + secretAccessKey?: string; + sessionToken?: string; + expiration?: Date | string; + credentialScope?: string; + }; + }; if (!accessKeyId || !secretAccessKey || !sessionToken || !expiration) { throw new CredentialsProviderError("SSO returns an invalid temporary credential.", SHOULD_FAIL_CREDENTIAL_CHAIN); diff --git a/packages/credential-provider-web-identity/package.json b/packages/credential-provider-web-identity/package.json index 978f24248aff..fd46535a202f 100644 --- a/packages/credential-provider-web-identity/package.json +++ b/packages/credential-provider-web-identity/package.json @@ -32,6 +32,7 @@ }, "license": "Apache-2.0", "dependencies": { + "@aws-sdk/client-sts": "*", "@aws-sdk/types": "*", "@smithy/property-provider": "^2.1.1", "@smithy/types": "^2.9.1", diff --git a/packages/credential-provider-web-identity/src/fromTokenFile.spec.ts b/packages/credential-provider-web-identity/src/fromTokenFile.spec.ts index 62e9fadce2f1..0f4695bd3e20 100644 --- a/packages/credential-provider-web-identity/src/fromTokenFile.spec.ts +++ b/packages/credential-provider-web-identity/src/fromTokenFile.spec.ts @@ -57,7 +57,7 @@ describe(fromTokenFile.name, () => { roleAssumerWithWebIdentity, })(); expect(creds).toEqual(MOCK_CREDS); - expect(fromWebToken as jest.Mock).toBeCalledTimes(1); + expect(fromWebToken as jest.Mock).toHaveBeenCalledTimes(1); const webTokenInit = (fromWebToken as jest.Mock).mock.calls[0][0]; expect(webTokenInit.webIdentityToken).toBe(mockTokenValue); expect(webTokenInit.roleSessionName).toBe(mockRoleSessionName); @@ -75,12 +75,12 @@ describe(fromTokenFile.name, () => { }; const creds = await fromTokenFile(init)(); expect(creds).toEqual(MOCK_CREDS); - expect(fromWebToken as jest.Mock).toBeCalledTimes(1); + expect(fromWebToken as jest.Mock).toHaveBeenCalledTimes(1); const webTokenInit = (fromWebToken as jest.Mock).mock.calls[0][0]; expect(webTokenInit.roleSessionName).toBe(init.roleSessionName); expect(webTokenInit.roleArn).toBe(init.roleArn); expect(webTokenInit.roleAssumerWithWebIdentity).toBe(roleAssumerWithWebIdentity); - expect(readFileSync as jest.Mock).toBeCalledTimes(1); + expect(readFileSync as jest.Mock).toHaveBeenCalledTimes(1); expect((readFileSync as jest.Mock).mock.calls[0][0]).toBe(init.webIdentityTokenFile); }); diff --git a/packages/credential-provider-web-identity/src/fromTokenFile.ts b/packages/credential-provider-web-identity/src/fromTokenFile.ts index c02a806aaadb..2b73cc9d0e04 100644 --- a/packages/credential-provider-web-identity/src/fromTokenFile.ts +++ b/packages/credential-provider-web-identity/src/fromTokenFile.ts @@ -1,5 +1,6 @@ +import { CredentialProviderOptions } from "@aws-sdk/types"; import { CredentialsProviderError } from "@smithy/property-provider"; -import { AwsCredentialIdentityProvider } from "@smithy/types"; +import type { AwsCredentialIdentityProvider } from "@smithy/types"; import { readFileSync } from "fs"; import { fromWebToken, FromWebTokenInit } from "./fromWebToken"; @@ -9,9 +10,11 @@ const ENV_ROLE_ARN = "AWS_ROLE_ARN"; const ENV_ROLE_SESSION_NAME = "AWS_ROLE_SESSION_NAME"; /** - * @internal + * @public */ -export interface FromTokenFileInit extends Partial> { +export interface FromTokenFileInit + extends Partial>, + CredentialProviderOptions { /** * File location of where the `OIDC` token is stored. */ @@ -26,6 +29,7 @@ export interface FromTokenFileInit extends Partial async () => { + init.logger?.debug("@aws-sdk/credential-provider-web-identity", "fromTokenFile"); const webIdentityTokenFile = init?.webIdentityTokenFile ?? process.env[ENV_TOKEN_FILE]; const roleArn = init?.roleArn ?? process.env[ENV_ROLE_ARN]; const roleSessionName = init?.roleSessionName ?? process.env[ENV_ROLE_SESSION_NAME]; diff --git a/packages/credential-provider-web-identity/src/fromWebToken.spec.ts b/packages/credential-provider-web-identity/src/fromWebToken.spec.ts index efd635f47fbe..5afb5df0116c 100644 --- a/packages/credential-provider-web-identity/src/fromWebToken.spec.ts +++ b/packages/credential-provider-web-identity/src/fromWebToken.spec.ts @@ -1,4 +1,4 @@ -import { CredentialsProviderError } from "@smithy/property-provider"; +import { getDefaultRoleAssumerWithWebIdentity } from "@aws-sdk/client-sts"; import { fromWebToken } from "./fromWebToken"; @@ -15,26 +15,22 @@ const MOCK_CREDS = { sessionToken: "sessionToken", }; +jest.mock("@aws-sdk/client-sts", () => ({ + getDefaultRoleAssumerWithWebIdentity: jest.fn().mockReturnValue(() => {}), +})); + describe("fromWebToken", () => { afterEach(() => { jest.clearAllMocks(); jest.restoreAllMocks(); }); - it("throws if roleAssumerWithWebIdentity is not defined", async () => { - try { - await fromWebToken({ - webIdentityToken: mockToken, - roleArn: mockRoleArn, - })(); - fail(`Expected error to be thrown`); - } catch (error) { - expect(error).toEqual( - new CredentialsProviderError( - `Role Arn '${mockRoleArn}' needs to be assumed with web identity, but no role assumption callback was provided.`, - false - ) - ); - } + it("dynamically imports roleAssumerWithWebIdentity if not provided", async () => { + await fromWebToken({ + webIdentityToken: mockToken, + roleArn: mockRoleArn, + })(); + + expect(getDefaultRoleAssumerWithWebIdentity).toHaveBeenCalled(); }); it("passes values to roleAssumerWithWebIdentity", async () => { diff --git a/packages/credential-provider-web-identity/src/fromWebToken.ts b/packages/credential-provider-web-identity/src/fromWebToken.ts index bfd8eb8a860d..92d745c750e4 100644 --- a/packages/credential-provider-web-identity/src/fromWebToken.ts +++ b/packages/credential-provider-web-identity/src/fromWebToken.ts @@ -1,8 +1,10 @@ -import { CredentialsProviderError } from "@smithy/property-provider"; -import { AwsCredentialIdentity, AwsCredentialIdentityProvider } from "@smithy/types"; +import type { CredentialProviderOptions } from "@aws-sdk/types"; +import type { AwsCredentialIdentity, AwsCredentialIdentityProvider, Pluggable } from "@smithy/types"; + +import type { STSClientConfig } from "./loadSts"; /** - * @internal + * @public */ export interface AssumeRoleWithWebIdentityParams { /** @@ -115,10 +117,13 @@ export interface AssumeRoleWithWebIdentityParams { } type LowerCaseKey = { [K in keyof T as `${Uncapitalize}`]: T[K] }; + /** - * @internal + * @public */ -export interface FromWebTokenInit extends Omit, "roleSessionName"> { +export interface FromWebTokenInit + extends Omit, "roleSessionName">, + CredentialProviderOptions { /** * The IAM session name used to distinguish sessions. */ @@ -131,6 +136,16 @@ export interface FromWebTokenInit extends Omit Promise; + + /** + * @internal + */ + clientConfig?: STSClientConfig; + + /** + * @internal + */ + clientPlugins?: Pluggable[]; } /** @@ -138,27 +153,18 @@ export interface FromWebTokenInit extends Omit - () => { - const { - roleArn, - roleSessionName, - webIdentityToken, - providerId, - policyArns, - policy, - durationSeconds, - roleAssumerWithWebIdentity, - } = init; + async () => { + init.logger?.debug("@aws-sdk/credential-provider-web-identity", "fromWebToken"); + const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds } = init; + + let { roleAssumerWithWebIdentity } = init; if (!roleAssumerWithWebIdentity) { - throw new CredentialsProviderError( - `Role Arn '${roleArn}' needs to be assumed with web identity,` + - ` but no role assumption callback was provided.`, - false - ); + const { getDefaultRoleAssumerWithWebIdentity } = await import("./loadSts"); + roleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity(init.clientConfig, init.clientPlugins); } - return roleAssumerWithWebIdentity({ + return roleAssumerWithWebIdentity!({ RoleArn: roleArn, RoleSessionName: roleSessionName ?? `aws-sdk-js-session-${Date.now()}`, WebIdentityToken: webIdentityToken, diff --git a/packages/credential-provider-web-identity/src/loadSts.ts b/packages/credential-provider-web-identity/src/loadSts.ts new file mode 100644 index 000000000000..ca2eb9076c2f --- /dev/null +++ b/packages/credential-provider-web-identity/src/loadSts.ts @@ -0,0 +1,5 @@ +import { getDefaultRoleAssumerWithWebIdentity } from "@aws-sdk/client-sts"; + +// This file must be loaded dynamically. +export { getDefaultRoleAssumerWithWebIdentity }; +export type { STSClientConfig } from "@aws-sdk/client-sts"; diff --git a/packages/credential-providers/README.md b/packages/credential-providers/README.md index fd122b3bdd84..c098379a6029 100644 --- a/packages/credential-providers/README.md +++ b/packages/credential-providers/README.md @@ -28,6 +28,9 @@ A collection of all credential providers, with default clients. ## `fromCognitoIdentity()` +- Uses `@aws-sdk/client-cognito-identity` +- Available in browsers & native apps + The function `fromCognitoIdentity()` returns `CredentialsProvider` that retrieves credentials for the provided identity ID. See [GetCredentialsForIdentity API][getcredentialsforidentity_api] for more information. @@ -63,6 +66,9 @@ const client = new FooClient({ ## `fromCognitoIdentityPool()` +- Uses `@aws-sdk/client-cognito-identity` +- Available in browsers & native apps + The function `fromCognitoIdentityPool()` returns `AwsCredentialIdentityProvider` that calls [GetId API][getid_api] to obtain an `identityId`, then generates temporary AWS credentials with [GetCredentialsForIdentity API][getcredentialsforidentity_api], see @@ -108,6 +114,9 @@ const client = new FooClient({ ## `fromTemporaryCredentials()` +- Uses `@aws-sdk/client-sts` +- Available in browsers & native apps + The function `fromTemporaryCredentials` returns `AwsCredentialIdentityProvider` that retrieves temporary credentials from [STS AssumeRole API][assumerole_api]. @@ -147,6 +156,9 @@ const client = new FooClient({ ## `fromWebToken()` +- Uses `@aws-sdk/client-sts` +- Available in browsers & native apps + The function `fromWebToken` returns `AwsCredentialIdentityProvider` that gets credentials calling [STS AssumeRoleWithWebIdentity API][assumerolewithwebidentity_api] @@ -210,6 +222,8 @@ provider, see the documentation for the identity provider. ## `fromContainerMetadata()` and `fromInstanceMetadata()` +- Not available in browsers & native apps + `fromContainerMetadata` and `fromInstanceMetadata` will create `AwsCredentialIdentityProvider` functions that read from the ECS container metadata service and the EC2 instance metadata service, respectively. @@ -260,6 +274,8 @@ Please see [Configure the instance metadata service][config_instance_metadata] f ## `fromHttp()` +- Available in browsers & native apps, without the EC2 and Container metadata components. + This creates a provider function that makes a `GET` request to any provided HTTPS URL. A limited set of HTTP destinations are also accepted. @@ -359,6 +375,10 @@ const client = new FooClient({ ## `fromIni()` +- May use `@aws-sdk/client-sso` or `@aws-sdk/client-sts` depending + on how the file is configured. +- Not available in browsers & native apps. + `fromIni` creates `AwsCredentialIdentityProvider` functions that read from a shared credentials file at `~/.aws/credentials` and a shared configuration file at `~/.aws/config`. Both files are expected to be INI formatted with section names corresponding to profiles. Sections in the credentials file are @@ -485,6 +505,8 @@ See [`fromSSO()`](#fromsso) fro more information ## `fromEnv()` +- Not available in browser & native apps + ```javascript import { fromEnv } from "@aws-sdk/credential-providers"; // ES6 import // const { fromEnv } = require("@aws-sdk/credential-providers"); // CommonJS import @@ -510,6 +532,8 @@ contains a falsy value, the promise returned by the `fromEnv` function will be r ## `fromProcess()` +- Not available in browsers & native apps + ```javascript import { fromProcess } from "@aws-sdk/credential-providers"; // ES6 import // const { fromProcess } = require("@aws-sdk/credential-providers"); // CommonJS import @@ -566,6 +590,9 @@ credential_process = /usr/local/bin/awscreds dev ## `fromTokenFile()` +- Uses `@aws-sdk/client-sts` +- Not available in browsers & native apps + The function `fromTokenFile` returns `AwsCredentialIdentityProvider` that reads credentials as follows: - Reads file location of where the OIDC token is stored from either provided option @@ -598,6 +625,9 @@ const client = new FooClient({ ## `fromSSO()` +- Uses `@aws-sdk/client-sso` & `@aws-sdk/client-sso-oidc` +- Not available in browsers & native apps + > This credential provider **ONLY** supports profiles using the SSO credential. If you have a > profile that assumes a role which derived from the SSO credential, you should use the > [`fromIni()`](#fromini), or `@aws-sdk/credential-provider-node` package. @@ -718,6 +748,10 @@ sso_start_url = https://d-abc123.awsapps.com/start ## `fromNodeProviderChain()` +- May use `@aws-sdk/client-sts`, `@aws-sdk/client-sso`, etc. depending on + which link in the chain finally resolves credentials. +- Not available in browsers & native apps + The credential provider used as default in the Node.js clients, but with default role assumers so you don't need to import them from STS client and supply them manually. You normally don't need to use this explicitly in the client constructor. It is useful for utility functions requiring diff --git a/packages/credential-providers/src/fromCognitoIdentity.spec.ts b/packages/credential-providers/src/fromCognitoIdentity.spec.ts index 4341d2ee8395..c520b7fdedb2 100644 --- a/packages/credential-providers/src/fromCognitoIdentity.spec.ts +++ b/packages/credential-providers/src/fromCognitoIdentity.spec.ts @@ -1,4 +1,3 @@ -import { CognitoIdentityClient } from "@aws-sdk/client-cognito-identity"; import { fromCognitoIdentity as coreProvider } from "@aws-sdk/credential-provider-cognito-identity"; import { fromCognitoIdentity } from "./fromCognitoIdentity"; @@ -20,23 +19,12 @@ describe("fromCognitoIdentity", () => { jest.clearAllMocks(); }); - it("should inject default client", () => { + it("defers to @aws-sdk/credential-provider-cognito-identity", () => { fromCognitoIdentity({ identityId, }); - expect((coreProvider as jest.Mock).mock.calls[0][0]?.identityId).toBe(identityId); - expect((coreProvider as jest.Mock).mock.calls[0][0]?.client).toBeInstanceOf(CognitoIdentityClient); - expect(CognitoIdentityClient).toBeCalled(); - }); - - it("should use client config if supplied", () => { - const clientConfig = "CLIENT" as any; - fromCognitoIdentity({ + expect(coreProvider).toHaveBeenCalledWith({ identityId, - clientConfig, }); - expect((coreProvider as jest.Mock).mock.calls[0][0]?.identityId).toBe(identityId); - expect((coreProvider as jest.Mock).mock.calls[0][0]?.client).toBeInstanceOf(CognitoIdentityClient); - expect(CognitoIdentityClient).toBeCalledWith(clientConfig); }); }); diff --git a/packages/credential-providers/src/fromCognitoIdentity.ts b/packages/credential-providers/src/fromCognitoIdentity.ts index 32c8d582cdf6..16167efbfdb0 100644 --- a/packages/credential-providers/src/fromCognitoIdentity.ts +++ b/packages/credential-providers/src/fromCognitoIdentity.ts @@ -1,4 +1,4 @@ -import { CognitoIdentityClient, CognitoIdentityClientConfig } from "@aws-sdk/client-cognito-identity"; +import type { CognitoIdentityClientConfig } from "@aws-sdk/client-cognito-identity"; import { CognitoIdentityCredentialProvider as _CognitoIdentityCredentialProvider, fromCognitoIdentity as _fromCognitoIdentity, @@ -52,5 +52,4 @@ export type CognitoIdentityCredentialProvider = _CognitoIdentityCredentialProvid export const fromCognitoIdentity = (options: FromCognitoIdentityParameters): CognitoIdentityCredentialProvider => _fromCognitoIdentity({ ...options, - client: new CognitoIdentityClient(options.clientConfig ?? {}), }); diff --git a/packages/credential-providers/src/fromCognitoIdentityPool.spec.ts b/packages/credential-providers/src/fromCognitoIdentityPool.spec.ts index 234d502a2bb2..1950cb5cf052 100644 --- a/packages/credential-providers/src/fromCognitoIdentityPool.spec.ts +++ b/packages/credential-providers/src/fromCognitoIdentityPool.spec.ts @@ -1,4 +1,3 @@ -import { CognitoIdentityClient } from "@aws-sdk/client-cognito-identity"; import { fromCognitoIdentityPool as coreProvider } from "@aws-sdk/credential-provider-cognito-identity"; import { fromCognitoIdentityPool } from "./fromCognitoIdentityPool"; @@ -20,28 +19,12 @@ describe("fromCognitoIdentityPool", () => { jest.clearAllMocks(); }); - it("should inject default client", () => { + it("defers to @aws-sdk/credential-provider-cognito-identity", () => { fromCognitoIdentityPool({ identityPoolId, }); - expect(coreProvider).toBeCalledWith( - expect.objectContaining({ - identityPoolId, - }) - ); - expect((coreProvider as jest.Mock).mock.calls[0][0]?.identityPoolId).toBe(identityPoolId); - expect((coreProvider as jest.Mock).mock.calls[0][0]?.client).toBeInstanceOf(CognitoIdentityClient); - expect(CognitoIdentityClient).toBeCalledWith({}); - }); - - it("should use client config if supplied", () => { - const clientConfig = "CLIENT" as any; - fromCognitoIdentityPool({ + expect(coreProvider).toHaveBeenCalledWith({ identityPoolId, - clientConfig, }); - expect((coreProvider as jest.Mock).mock.calls[0][0]?.identityPoolId).toBe(identityPoolId); - expect((coreProvider as jest.Mock).mock.calls[0][0]?.client).toBeInstanceOf(CognitoIdentityClient); - expect(CognitoIdentityClient).toBeCalledWith(clientConfig); }); }); diff --git a/packages/credential-providers/src/fromCognitoIdentityPool.ts b/packages/credential-providers/src/fromCognitoIdentityPool.ts index ebc2bafee830..9f6082ccb3e2 100644 --- a/packages/credential-providers/src/fromCognitoIdentityPool.ts +++ b/packages/credential-providers/src/fromCognitoIdentityPool.ts @@ -1,4 +1,4 @@ -import { CognitoIdentityClient, CognitoIdentityClientConfig } from "@aws-sdk/client-cognito-identity"; +import type { CognitoIdentityClientConfig } from "@aws-sdk/client-cognito-identity"; import { CognitoIdentityCredentialProvider, fromCognitoIdentityPool as _fromCognitoIdentityPool, @@ -54,5 +54,4 @@ export const fromCognitoIdentityPool = ( ): CognitoIdentityCredentialProvider => _fromCognitoIdentityPool({ ...options, - client: new CognitoIdentityClient(options.clientConfig ?? {}), }); diff --git a/packages/credential-providers/src/fromContainerMetadata.ts b/packages/credential-providers/src/fromContainerMetadata.ts index c87abc59025f..ee2d9b28cf5c 100644 --- a/packages/credential-providers/src/fromContainerMetadata.ts +++ b/packages/credential-providers/src/fromContainerMetadata.ts @@ -1,10 +1,11 @@ +import type { CredentialProviderOptions } from "@aws-sdk/types"; import { fromContainerMetadata as _fromContainerMetadata, RemoteProviderInit as _RemoteProviderInit, } from "@smithy/credential-provider-imds"; import { AwsCredentialIdentityProvider } from "@smithy/types"; -export interface RemoteProviderInit extends _RemoteProviderInit {} +export interface RemoteProviderInit extends _RemoteProviderInit, CredentialProviderOptions {} /** * Create a credential provider function that reads from ECS container metadata service. @@ -25,5 +26,7 @@ export interface RemoteProviderInit extends _RemoteProviderInit {} * }); * ``` */ -export const fromContainerMetadata = (init?: RemoteProviderInit): AwsCredentialIdentityProvider => - _fromContainerMetadata(init); +export const fromContainerMetadata = (init?: RemoteProviderInit): AwsCredentialIdentityProvider => { + init?.logger?.debug("@smithy/credential-provider-imds", "fromContainerMetadata"); + return _fromContainerMetadata(init); +}; diff --git a/packages/credential-providers/src/fromEnv.ts b/packages/credential-providers/src/fromEnv.ts index 9cdee779b351..2d939ba609cc 100644 --- a/packages/credential-providers/src/fromEnv.ts +++ b/packages/credential-providers/src/fromEnv.ts @@ -1,4 +1,4 @@ -import { fromEnv as _fromEnv } from "@aws-sdk/credential-provider-env"; +import { fromEnv as _fromEnv, FromEnvInit } from "@aws-sdk/credential-provider-env"; import { AwsCredentialIdentityProvider } from "@smithy/types"; /** @@ -25,4 +25,4 @@ import { AwsCredentialIdentityProvider } from "@smithy/types"; * }); * ``` */ -export const fromEnv = (): AwsCredentialIdentityProvider => _fromEnv(); +export const fromEnv = (init?: FromEnvInit): AwsCredentialIdentityProvider => _fromEnv(init); diff --git a/packages/credential-providers/src/fromIni.spec.ts b/packages/credential-providers/src/fromIni.spec.ts index c328b6eb4a8a..f14303dbfe75 100644 --- a/packages/credential-providers/src/fromIni.spec.ts +++ b/packages/credential-providers/src/fromIni.spec.ts @@ -20,16 +20,15 @@ describe("fromIni", () => { jest.clearAllMocks(); }); - it("should inject default role assumers", () => { + it("should not inject default role assumers", () => { + // these role assumers are now dynamically loaded. const profile = "profile"; fromIni({ profile }); - expect(coreProvider).toBeCalledWith({ + expect(coreProvider).toHaveBeenCalledWith({ profile, - roleAssumer: mockRoleAssumer, - roleAssumerWithWebIdentity: mockRoleAssumerWithWebIdentity, }); - expect(getDefaultRoleAssumer).toBeCalled(); - expect(getDefaultRoleAssumerWithWebIdentity).toBeCalled(); + expect(getDefaultRoleAssumer).not.toHaveBeenCalled(); + expect(getDefaultRoleAssumerWithWebIdentity).not.toHaveBeenCalled(); }); it("should use supplied role assumers", () => { @@ -37,23 +36,22 @@ describe("fromIni", () => { const roleAssumer = jest.fn(); const roleAssumerWithWebIdentity = jest.fn(); fromIni({ profile, roleAssumer, roleAssumerWithWebIdentity }); - expect(coreProvider).toBeCalledWith({ + expect(coreProvider).toHaveBeenCalledWith({ profile, roleAssumer, roleAssumerWithWebIdentity, }); - expect(getDefaultRoleAssumer).not.toBeCalled(); - expect(getDefaultRoleAssumerWithWebIdentity).not.toBeCalled(); + expect(getDefaultRoleAssumer).not.toHaveBeenCalled(); + expect(getDefaultRoleAssumerWithWebIdentity).not.toHaveBeenCalled(); }); - it("should use supplied sts and plugins options", () => { + it("defers to @aws-sdk/credential-provider-ini", () => { const profile = "profile"; const clientConfig = { region: "US_BAR_1", }; const plugin = { applyToStack: () => {} }; fromIni({ profile, clientConfig, clientPlugins: [plugin] }); - expect(getDefaultRoleAssumer).toBeCalledWith(clientConfig, [plugin]); - expect(getDefaultRoleAssumerWithWebIdentity).toBeCalledWith(clientConfig, [plugin]); + expect(coreProvider).toHaveBeenCalledWith({ profile, clientConfig, clientPlugins: [plugin] }); }); }); diff --git a/packages/credential-providers/src/fromIni.ts b/packages/credential-providers/src/fromIni.ts index 46c3fb7ebfad..e98825009c45 100644 --- a/packages/credential-providers/src/fromIni.ts +++ b/packages/credential-providers/src/fromIni.ts @@ -1,11 +1,5 @@ -import { getDefaultRoleAssumer, getDefaultRoleAssumerWithWebIdentity, STSClientConfig } from "@aws-sdk/client-sts"; -import { fromIni as _fromIni, FromIniInit as _FromIniInit } from "@aws-sdk/credential-provider-ini"; -import { AwsCredentialIdentityProvider, Pluggable } from "@smithy/types"; - -export interface FromIniInit extends _FromIniInit { - clientConfig?: STSClientConfig; - clientPlugins?: Pluggable[]; -} +import { fromIni as _fromIni, FromIniInit } from "@aws-sdk/credential-provider-ini"; +import { AwsCredentialIdentityProvider } from "@smithy/types"; /** * Creates a credential provider function that reads from a shared credentials file at `~/.aws/credentials` and a @@ -49,7 +43,4 @@ export interface FromIniInit extends _FromIniInit { export const fromIni = (init: FromIniInit = {}): AwsCredentialIdentityProvider => _fromIni({ ...init, - roleAssumer: init.roleAssumer ?? getDefaultRoleAssumer(init.clientConfig, init.clientPlugins), - roleAssumerWithWebIdentity: - init.roleAssumerWithWebIdentity ?? getDefaultRoleAssumerWithWebIdentity(init.clientConfig, init.clientPlugins), }); diff --git a/packages/credential-providers/src/fromInstanceMetadata.ts b/packages/credential-providers/src/fromInstanceMetadata.ts index fd9ad5acb78b..00347eac5fe1 100644 --- a/packages/credential-providers/src/fromInstanceMetadata.ts +++ b/packages/credential-providers/src/fromInstanceMetadata.ts @@ -1,3 +1,4 @@ +import type { CredentialProviderOptions } from "@aws-sdk/types"; import { fromInstanceMetadata as _fromInstanceMetadata, RemoteProviderConfig as _RemoteProviderInit, @@ -23,5 +24,9 @@ import { AwsCredentialIdentityProvider } from "@smithy/types"; * }); * ``` */ -export const fromInstanceMetadata = (init?: _RemoteProviderInit): AwsCredentialIdentityProvider => - _fromInstanceMetadata(init); +export const fromInstanceMetadata = ( + init?: _RemoteProviderInit & CredentialProviderOptions +): AwsCredentialIdentityProvider => { + init?.logger?.debug("@smithy/credential-provider-imds", "fromInstanceMetadata"); + return _fromInstanceMetadata(init); +}; diff --git a/packages/credential-providers/src/fromNodeProviderChain.spec.ts b/packages/credential-providers/src/fromNodeProviderChain.spec.ts index 424314a4d01b..5dcc6d67a4bf 100644 --- a/packages/credential-providers/src/fromNodeProviderChain.spec.ts +++ b/packages/credential-providers/src/fromNodeProviderChain.spec.ts @@ -20,16 +20,14 @@ describe(fromNodeProviderChain.name, () => { jest.clearAllMocks(); }); - it("should inject default role assumers", () => { + it("should not inject default role assumers", () => { const profile = "profile"; fromNodeProviderChain({ profile }); - expect(defaultProvider).toBeCalledWith({ + expect(defaultProvider).toHaveBeenCalledWith({ profile, - roleAssumer: mockRoleAssumer, - roleAssumerWithWebIdentity: mockRoleAssumerWithWebIdentity, }); - expect(getDefaultRoleAssumer).toBeCalled(); - expect(getDefaultRoleAssumerWithWebIdentity).toBeCalled(); + expect(getDefaultRoleAssumer).not.toHaveBeenCalled(); + expect(getDefaultRoleAssumerWithWebIdentity).not.toHaveBeenCalled(); }); it("should use supplied role assumers", () => { @@ -37,23 +35,22 @@ describe(fromNodeProviderChain.name, () => { const roleAssumer = jest.fn(); const roleAssumerWithWebIdentity = jest.fn(); fromNodeProviderChain({ profile, roleAssumer, roleAssumerWithWebIdentity }); - expect(defaultProvider).toBeCalledWith({ + expect(defaultProvider).toHaveBeenCalledWith({ profile, roleAssumer, roleAssumerWithWebIdentity, }); - expect(getDefaultRoleAssumer).not.toBeCalled(); - expect(getDefaultRoleAssumerWithWebIdentity).not.toBeCalled(); + expect(getDefaultRoleAssumer).not.toHaveBeenCalled(); + expect(getDefaultRoleAssumerWithWebIdentity).not.toHaveBeenCalled(); }); - it("should use supplied sts options and plugins", () => { + it("should defer to @aws-sdk/credential-provider-node", () => { const profile = "profile"; const clientConfig = { region: "US_BAR_1", }; const plugin = { applyToStack: () => {} }; fromNodeProviderChain({ profile, clientConfig, clientPlugins: [plugin] }); - expect(getDefaultRoleAssumer).toBeCalledWith(clientConfig, [plugin]); - expect(getDefaultRoleAssumerWithWebIdentity).toBeCalledWith(clientConfig, [plugin]); + expect(defaultProvider).toHaveBeenCalledWith({ profile, clientConfig, clientPlugins: [plugin] }); }); }); diff --git a/packages/credential-providers/src/fromNodeProviderChain.ts b/packages/credential-providers/src/fromNodeProviderChain.ts index 46f7e91cafd2..2c39f9feaa65 100644 --- a/packages/credential-providers/src/fromNodeProviderChain.ts +++ b/packages/credential-providers/src/fromNodeProviderChain.ts @@ -1,11 +1,5 @@ -import { getDefaultRoleAssumer, getDefaultRoleAssumerWithWebIdentity, STSClientConfig } from "@aws-sdk/client-sts"; import { defaultProvider, DefaultProviderInit } from "@aws-sdk/credential-provider-node"; -import { AwsCredentialIdentityProvider, Pluggable } from "@smithy/types"; - -export interface fromNodeProviderChainInit extends DefaultProviderInit { - clientConfig?: STSClientConfig; - clientPlugins?: Pluggable[]; -} +import type { AwsCredentialIdentityProvider } from "@smithy/types"; /** * This is the same credential provider as {@link defaultProvider|the default provider for Node.js SDK}, @@ -32,10 +26,7 @@ export interface fromNodeProviderChainInit extends DefaultProviderInit { * }) * ``` */ -export const fromNodeProviderChain = (init: fromNodeProviderChainInit = {}): AwsCredentialIdentityProvider => +export const fromNodeProviderChain = (init: DefaultProviderInit = {}): AwsCredentialIdentityProvider => defaultProvider({ ...init, - roleAssumer: init.roleAssumer ?? getDefaultRoleAssumer(init.clientConfig, init.clientPlugins), - roleAssumerWithWebIdentity: - init.roleAssumerWithWebIdentity ?? getDefaultRoleAssumerWithWebIdentity(init.clientConfig, init.clientPlugins), }); diff --git a/packages/credential-providers/src/fromProcess.ts b/packages/credential-providers/src/fromProcess.ts index 289c1a8b47dd..e71dbee9839c 100644 --- a/packages/credential-providers/src/fromProcess.ts +++ b/packages/credential-providers/src/fromProcess.ts @@ -1,8 +1,6 @@ -import { fromProcess as _fromProcess, FromProcessInit as _FromProcessInit } from "@aws-sdk/credential-provider-process"; +import { fromProcess as _fromProcess, FromProcessInit } from "@aws-sdk/credential-provider-process"; import { AwsCredentialIdentityProvider } from "@smithy/types"; -export interface FromProcessInit extends _FromProcessInit {} - /** * Creates a credential provider function that executes a given process and attempt to read its standard output to * receive a JSON payload containing the credentials. diff --git a/packages/credential-providers/src/fromSSO.spec.ts b/packages/credential-providers/src/fromSSO.spec.ts index 0179c62f3272..df2bbd427128 100644 --- a/packages/credential-providers/src/fromSSO.spec.ts +++ b/packages/credential-providers/src/fromSSO.spec.ts @@ -1,26 +1,18 @@ -import { SSOClient } from "@aws-sdk/client-sso"; +jest.mock("@aws-sdk/credential-provider-sso", () => ({ + fromSSO: jest.fn(), +})); -import { fromSSO } from "./fromSSO"; +import { fromSSO as OG } from "@aws-sdk/credential-provider-sso"; -jest.mock("@aws-sdk/client-sso", () => ({ - SSOClient: jest.fn().mockImplementation(function () { - return "SSO_CLIENT"; - }), -})); +import { fromSSO } from "./fromSSO"; describe("fromSSO", () => { beforeEach(() => { jest.clearAllMocks(); }); - it("should not inject SSO client if no client config supplied", async () => { + it("defers to credential-provider-sso", async () => { fromSSO(); - expect(SSOClient as jest.Mock).not.toBeCalled(); - }); - - it("should inject SSO client if client config is supplied", async () => { - const region = "us-foo-1"; - fromSSO({ clientConfig: { region } }); - expect(SSOClient as jest.Mock).toBeCalledWith({ region }); + expect(OG as jest.Mock).toHaveBeenCalled(); }); }); diff --git a/packages/credential-providers/src/fromSSO.ts b/packages/credential-providers/src/fromSSO.ts index 0730928e5c9a..19133bf75980 100644 --- a/packages/credential-providers/src/fromSSO.ts +++ b/packages/credential-providers/src/fromSSO.ts @@ -1,11 +1,6 @@ -import { SSOClient, SSOClientConfig } from "@aws-sdk/client-sso"; -import { fromSSO as _fromSSO, FromSSOInit as _FromSSOInit } from "@aws-sdk/credential-provider-sso"; +import { fromSSO as _fromSSO, FromSSOInit } from "@aws-sdk/credential-provider-sso"; import { AwsCredentialIdentityProvider } from "@smithy/types"; -export interface FromSSOInit extends Omit<_FromSSOInit, "client"> { - clientConfig?: SSOClientConfig; -} - /** * Creates a credential provider function that reads from the _resolved_ access token from local disk then requests * temporary AWS credentials. @@ -47,5 +42,6 @@ export interface FromSSOInit extends Omit<_FromSSOInit, "client"> { * }); * ``` */ -export const fromSSO = (init: FromSSOInit = {}): AwsCredentialIdentityProvider => - _fromSSO({ ...{ ssoClient: init.clientConfig ? new SSOClient(init.clientConfig) : undefined }, ...init }); +export const fromSSO = (init: FromSSOInit = {}): AwsCredentialIdentityProvider => { + return _fromSSO({ ...init }); +}; diff --git a/packages/credential-providers/src/fromTemporaryCredentials.spec.ts b/packages/credential-providers/src/fromTemporaryCredentials.spec.ts index 00f24961b7dc..bed6d6b4baa5 100644 --- a/packages/credential-providers/src/fromTemporaryCredentials.spec.ts +++ b/packages/credential-providers/src/fromTemporaryCredentials.spec.ts @@ -61,17 +61,17 @@ describe("fromTemporaryCredentials", () => { secretAccessKey: "SECRET_ACCESS_KEY", sessionToken: "SESSION_TOKEN", }); - expect(STSClient as jest.Mock).toBeCalledWith({ + expect(STSClient as jest.Mock).toHaveBeenCalledWith({ credentials: masterCredentials, region, }); - expect(mockUsePlugin).toBeCalledTimes(1); + expect(mockUsePlugin).toHaveBeenCalledTimes(1); expect(mockUsePlugin).toHaveBeenNthCalledWith(1, plugin); - expect(AssumeRoleCommand as unknown as jest.Mock).toBeCalledWith({ + expect(AssumeRoleCommand as unknown as jest.Mock).toHaveBeenCalledWith({ RoleArn, RoleSessionName, }); - expect(mockSend as jest.Mock).toBeCalledWith({ command: "ASSUME_ROLE", input: options.params }); + expect(mockSend as jest.Mock).toHaveBeenCalledWith({ command: "ASSUME_ROLE", input: options.params }); }); it("should create STS client if not supplied", async () => { @@ -85,10 +85,10 @@ describe("fromTemporaryCredentials", () => { clientPlugins: [plugin], }); await provider(); - expect(STSClient as jest.Mock).toBeCalledWith({ + expect(STSClient as jest.Mock).toHaveBeenCalledWith({ credentials: masterCredentials, }); - expect(mockUsePlugin).toBeCalledTimes(1); + expect(mockUsePlugin).toHaveBeenCalledTimes(1); expect(mockUsePlugin).toHaveBeenNthCalledWith(1, plugin); }); @@ -100,7 +100,7 @@ describe("fromTemporaryCredentials", () => { }, }); await provider(); - expect(STSClient as jest.Mock).toBeCalledWith({}); + expect(STSClient as jest.Mock).toHaveBeenCalledWith({}); }); it("should create a role session name if none provided", async () => { @@ -108,7 +108,7 @@ describe("fromTemporaryCredentials", () => { params: { RoleArn }, }); await provider(); - expect(AssumeRoleCommand as unknown as jest.Mock).toBeCalledWith({ + expect(AssumeRoleCommand as unknown as jest.Mock).toHaveBeenCalledWith({ RoleArn, RoleSessionName: expect.stringMatching(/^aws-sdk-js-/), }); @@ -180,8 +180,8 @@ describe("fromTemporaryCredentials", () => { mfaCodeProvider, }); await provider(); - expect(mfaCodeProvider).toBeCalledWith(SerialNumber); - expect(mockSend).toBeCalledWith( + expect(mfaCodeProvider).toHaveBeenCalledWith(SerialNumber); + expect(mockSend).toHaveBeenCalledWith( expect.objectContaining({ input: { RoleArn, diff --git a/packages/credential-providers/src/fromTemporaryCredentials.ts b/packages/credential-providers/src/fromTemporaryCredentials.ts index 6e70696de8c0..fc48c992383a 100644 --- a/packages/credential-providers/src/fromTemporaryCredentials.ts +++ b/packages/credential-providers/src/fromTemporaryCredentials.ts @@ -1,8 +1,9 @@ -import { AssumeRoleCommand, AssumeRoleCommandInput, STSClient, STSClientConfig } from "@aws-sdk/client-sts"; +import type { AssumeRoleCommandInput, STSClient, STSClientConfig } from "@aws-sdk/client-sts"; +import type { CredentialProviderOptions } from "@aws-sdk/types"; import { CredentialsProviderError } from "@smithy/property-provider"; import { AwsCredentialIdentity, AwsCredentialIdentityProvider, Pluggable } from "@smithy/types"; -export interface FromTemporaryCredentialsOptions { +export interface FromTemporaryCredentialsOptions extends CredentialProviderOptions { params: Omit & { RoleSessionName?: string }; masterCredentials?: AwsCredentialIdentity | AwsCredentialIdentityProvider; clientConfig?: STSClientConfig; @@ -53,6 +54,7 @@ export interface FromTemporaryCredentialsOptions { export const fromTemporaryCredentials = (options: FromTemporaryCredentialsOptions): AwsCredentialIdentityProvider => { let stsClient: STSClient; return async (): Promise => { + options.logger?.debug("@aws-sdk/credential-providers", "fromTemporaryCredentials (STS)"); const params = { ...options.params, RoleSessionName: options.params.RoleSessionName ?? "aws-sdk-js-" + Date.now() }; if (params?.SerialNumber) { if (!options.mfaCodeProvider) { @@ -63,6 +65,9 @@ export const fromTemporaryCredentials = (options: FromTemporaryCredentialsOption } params.TokenCode = await options.mfaCodeProvider(params?.SerialNumber); } + + const { AssumeRoleCommand, STSClient } = await import("./loadSts"); + if (!stsClient) stsClient = new STSClient({ ...options.clientConfig, credentials: options.masterCredentials }); if (options.clientPlugins) { for (const plugin of options.clientPlugins) { diff --git a/packages/credential-providers/src/fromTokenFile.spec.ts b/packages/credential-providers/src/fromTokenFile.spec.ts index 56bd3eb07bb4..f92bffedb4ac 100644 --- a/packages/credential-providers/src/fromTokenFile.spec.ts +++ b/packages/credential-providers/src/fromTokenFile.spec.ts @@ -18,15 +18,13 @@ describe("fromTokenFile", () => { jest.clearAllMocks(); }); - it("should inject default role assumer", () => { + it("should not inject default role assumer", () => { fromTokenFile(); - expect(coreProvider).toBeCalledWith({ - roleAssumerWithWebIdentity: mockRoleAssumerWithWebIdentity, - }); - expect(getDefaultRoleAssumerWithWebIdentity).toBeCalled(); + expect(coreProvider).toHaveBeenCalledWith({}); + expect(getDefaultRoleAssumerWithWebIdentity).not.toHaveBeenCalled(); }); - it("should supply sts config and plugins to role assumer", () => { + it("defers to @aws-sdk/credential-provider-web-identity", () => { const clientConfig = { region: "US_FOO_0", }; @@ -35,9 +33,9 @@ describe("fromTokenFile", () => { clientConfig, clientPlugins: [plugin], }); - expect((coreProvider as jest.Mock).mock.calls[0][0]).toMatchObject({ - roleAssumerWithWebIdentity: mockRoleAssumerWithWebIdentity, + expect(coreProvider).toHaveBeenCalledWith({ + clientConfig, + clientPlugins: [plugin], }); - expect(getDefaultRoleAssumerWithWebIdentity).toBeCalledWith(clientConfig, [plugin]); }); }); diff --git a/packages/credential-providers/src/fromTokenFile.ts b/packages/credential-providers/src/fromTokenFile.ts index 5ea0ad2e9a74..c5614c12d3ca 100644 --- a/packages/credential-providers/src/fromTokenFile.ts +++ b/packages/credential-providers/src/fromTokenFile.ts @@ -1,14 +1,5 @@ -import { getDefaultRoleAssumerWithWebIdentity, STSClientConfig } from "@aws-sdk/client-sts"; -import { - fromTokenFile as _fromTokenFile, - FromTokenFileInit as _FromTokenFileInit, -} from "@aws-sdk/credential-provider-web-identity"; -import { AwsCredentialIdentityProvider, Pluggable } from "@smithy/types"; - -export interface FromTokenFileInit extends _FromTokenFileInit { - clientConfig?: STSClientConfig; - clientPlugins?: Pluggable[]; -} +import { fromTokenFile as _fromTokenFile, FromTokenFileInit } from "@aws-sdk/credential-provider-web-identity"; +import type { AwsCredentialIdentityProvider } from "@smithy/types"; /** * Creates a credential provider function that reads OIDC token from given file, then call STS.AssumeRoleWithWebIdentity @@ -41,6 +32,4 @@ export interface FromTokenFileInit extends _FromTokenFileInit { export const fromTokenFile = (init: FromTokenFileInit = {}): AwsCredentialIdentityProvider => _fromTokenFile({ ...init, - roleAssumerWithWebIdentity: - init.roleAssumerWithWebIdentity ?? getDefaultRoleAssumerWithWebIdentity(init.clientConfig, init.clientPlugins), }); diff --git a/packages/credential-providers/src/fromWebToken.spec.ts b/packages/credential-providers/src/fromWebToken.spec.ts index dd724b777719..3ca8a0ad1d5a 100644 --- a/packages/credential-providers/src/fromWebToken.spec.ts +++ b/packages/credential-providers/src/fromWebToken.spec.ts @@ -21,20 +21,19 @@ describe("fromWebToken", () => { jest.clearAllMocks(); }); - it("should inject default role assumer", () => { + it("should not inject default role assumer", () => { fromWebToken({ roleArn, webIdentityToken, }); - expect(coreProvider).toBeCalledWith({ + expect(coreProvider).toHaveBeenCalledWith({ roleArn, webIdentityToken, - roleAssumerWithWebIdentity: mockRoleAssumerWithWebIdentity, }); - expect(getDefaultRoleAssumerWithWebIdentity).toBeCalled(); + expect(getDefaultRoleAssumerWithWebIdentity).not.toHaveBeenCalled(); }); - it("should supply sts config and plugins to role assumer", () => { + it("defers to @aws-sdk/credential-provider-web-identity", () => { const clientConfig = { region: "US_FOO_0", }; @@ -45,9 +44,11 @@ describe("fromWebToken", () => { clientConfig, clientPlugins: [plugin], }); - expect((coreProvider as jest.Mock).mock.calls[0][0]).toMatchObject({ - roleAssumerWithWebIdentity: mockRoleAssumerWithWebIdentity, + expect(coreProvider).toHaveBeenCalledWith({ + roleArn, + webIdentityToken, + clientConfig, + clientPlugins: [plugin], }); - expect(getDefaultRoleAssumerWithWebIdentity).toBeCalledWith(clientConfig, [plugin]); }); }); diff --git a/packages/credential-providers/src/fromWebToken.ts b/packages/credential-providers/src/fromWebToken.ts index 29b48a6dcb12..93e75cbd83ba 100644 --- a/packages/credential-providers/src/fromWebToken.ts +++ b/packages/credential-providers/src/fromWebToken.ts @@ -1,14 +1,5 @@ -import { getDefaultRoleAssumerWithWebIdentity, STSClientConfig } from "@aws-sdk/client-sts"; -import { - fromWebToken as _fromWebToken, - FromWebTokenInit as _FromWebTokenInit, -} from "@aws-sdk/credential-provider-web-identity"; -import { AwsCredentialIdentityProvider, Pluggable } from "@smithy/types"; - -export interface FromWebTokenInit extends _FromWebTokenInit { - clientConfig?: STSClientConfig; - clientPlugins?: Pluggable[]; -} +import { fromWebToken as _fromWebToken, FromWebTokenInit } from "@aws-sdk/credential-provider-web-identity"; +import type { AwsCredentialIdentityProvider } from "@smithy/types"; /** * Creates a credential provider function that gets credentials calling STS @@ -50,6 +41,4 @@ export interface FromWebTokenInit extends _FromWebTokenInit { export const fromWebToken = (init: FromWebTokenInit): AwsCredentialIdentityProvider => _fromWebToken({ ...init, - roleAssumerWithWebIdentity: - init.roleAssumerWithWebIdentity ?? getDefaultRoleAssumerWithWebIdentity(init.clientConfig, init.clientPlugins), }); diff --git a/packages/credential-providers/src/loadSts.ts b/packages/credential-providers/src/loadSts.ts new file mode 100644 index 000000000000..9a4a3a091916 --- /dev/null +++ b/packages/credential-providers/src/loadSts.ts @@ -0,0 +1,4 @@ +import { AssumeRoleCommand, STSClient } from "@aws-sdk/client-sts"; + +// This file must be loaded dynamically. +export { AssumeRoleCommand, STSClient }; diff --git a/packages/token-providers/package.json b/packages/token-providers/package.json index 762c88f77b24..f6f6f3dcc820 100644 --- a/packages/token-providers/package.json +++ b/packages/token-providers/package.json @@ -6,12 +6,11 @@ "module": "./dist-es/index.js", "sideEffects": false, "scripts": { - "build:client-bundle": "node ./scripts/esbuild", "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", "build:cjs": "node ../../scripts/compilation/inline token-providers", "build:es": "tsc -p tsconfig.es.json", "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build", - "build:types": "tsc -p tsconfig.types.json && node ./scripts/nocheck", + "build:types": "tsc -p tsconfig.types.json", "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", "extract:docs": "api-extractor run --local", @@ -27,42 +26,11 @@ }, "license": "Apache-2.0", "dependencies": { - "@aws-crypto/sha256-browser": "3.0.0", - "@aws-crypto/sha256-js": "3.0.0", - "@aws-sdk/middleware-host-header": "*", - "@aws-sdk/middleware-logger": "*", - "@aws-sdk/middleware-recursion-detection": "*", - "@aws-sdk/middleware-user-agent": "*", - "@aws-sdk/region-config-resolver": "*", + "@aws-sdk/client-sso-oidc": "*", "@aws-sdk/types": "*", - "@aws-sdk/util-endpoints": "*", - "@aws-sdk/util-user-agent-browser": "*", - "@aws-sdk/util-user-agent-node": "*", - "@smithy/config-resolver": "^2.1.1", - "@smithy/fetch-http-handler": "^2.4.1", - "@smithy/hash-node": "^2.1.1", - "@smithy/invalid-dependency": "^2.1.1", - "@smithy/middleware-content-length": "^2.1.1", - "@smithy/middleware-endpoint": "^2.4.1", - "@smithy/middleware-retry": "^2.1.1", - "@smithy/middleware-serde": "^2.1.1", - "@smithy/middleware-stack": "^2.1.1", - "@smithy/node-config-provider": "^2.2.1", - "@smithy/node-http-handler": "^2.3.1", "@smithy/property-provider": "^2.1.1", - "@smithy/protocol-http": "^3.1.1", "@smithy/shared-ini-file-loader": "^2.3.1", - "@smithy/smithy-client": "^2.3.1", "@smithy/types": "^2.9.1", - "@smithy/url-parser": "^2.1.1", - "@smithy/util-base64": "^2.1.1", - "@smithy/util-body-length-browser": "^2.1.1", - "@smithy/util-body-length-node": "^2.2.1", - "@smithy/util-defaults-mode-browser": "^2.1.1", - "@smithy/util-defaults-mode-node": "^2.1.1", - "@smithy/util-endpoints": "^1.1.1", - "@smithy/util-retry": "^2.1.1", - "@smithy/util-utf8": "^2.1.1", "tslib": "^2.5.0" }, "devDependencies": { @@ -87,13 +55,8 @@ "files": [ "dist-*/**" ], - "browser": { - "./dist-es/bundle/client-sso-oidc-node": "./dist-es/bundle/client-sso-oidc-browser" - }, - "react-native": { - "./dist-es/bundle/client-sso-oidc-node": "./dist-es/bundle/client-sso-oidc-browser", - "./dist-cjs/bundle/client-sso-oidc-node": "./dist-cjs/bundle/client-sso-oidc-browser" - }, + "browser": {}, + "react-native": {}, "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/token-providers", "repository": { "type": "git", diff --git a/packages/token-providers/scripts/api/source.ts b/packages/token-providers/scripts/api/source.ts deleted file mode 100644 index d3aa8b1b149d..000000000000 --- a/packages/token-providers/scripts/api/source.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { - AccessDeniedException, - AuthorizationPendingException, - CreateTokenCommand, - ExpiredTokenException, - InternalServerException, - InvalidClientException, - InvalidRequestException, - InvalidScopeException, - SlowDownException, - SSOOIDCClient, - UnauthorizedClientException, - UnsupportedGrantTypeException, -} from "../../../../clients/client-sso-oidc/src/index"; - -// create a bundled version of a subset of the SSOOIDC client -// to break the cyclical dependency. - -export { - AccessDeniedException, - AuthorizationPendingException, - CreateTokenCommand, - ExpiredTokenException, - InternalServerException, - InvalidClientException, - InvalidRequestException, - InvalidScopeException, - SlowDownException, - SSOOIDCClient, - UnauthorizedClientException, - UnsupportedGrantTypeException, -}; diff --git a/packages/token-providers/scripts/esbuild.js b/packages/token-providers/scripts/esbuild.js deleted file mode 100644 index 9c78eecf11a0..000000000000 --- a/packages/token-providers/scripts/esbuild.js +++ /dev/null @@ -1,59 +0,0 @@ -/** - * - * This script builds a minimal bundle of the code - * in SSOOIDCClient and its CreateTokenCommand, with everything else - * left external. - * - * This is to break a cyclical dependency with the credential providers - * and certain services used by those providers. - * - */ - -const fs = require("fs"); -const path = require("path"); -const esbuild = require("esbuild"); - -const root = path.join(__dirname, "..", "..", ".."); - -(async () => { - const defaultRuntimeConfigFile = path.join(root, "clients", "client-sso-oidc", "src", "runtimeConfig.ts"); - const nodeRuntimeConfig = fs.readFileSync(defaultRuntimeConfigFile); - const browserRuntimeConfig = fs.readFileSync( - path.join(path.dirname(defaultRuntimeConfigFile), "runtimeConfig.browser.ts") - ); - const clientPkgJsonPath = path.join(root, "clients", "client-sso-oidc", "package.json"); - const clientPkgJson = require(clientPkgJsonPath); - fs.writeFileSync( - clientPkgJsonPath, - JSON.stringify({ - version: clientPkgJson.version, - }) - ); - - for (const platform of ["browser", "node"]) { - if (platform === "browser") { - fs.writeFileSync(defaultRuntimeConfigFile, browserRuntimeConfig); - } else { - fs.writeFileSync(defaultRuntimeConfigFile, nodeRuntimeConfig); - } - - const outfile = path.join(root, "packages", "token-providers", "src", "bundle", `client-sso-oidc-${platform}.ts`); - - await esbuild.build({ - platform, - bundle: true, - format: "esm", - mainFields: ["module", "main"], - entryPoints: [path.join(root, "packages", "token-providers", "scripts", "api", "source.js")], - outfile: outfile, - external: ["tslib", "@aws-crypto/*", "@smithy/*", "@aws-sdk/*"], - }); - - await new Promise((r) => setTimeout(r, 1000)); - - fs.writeFileSync(outfile, `// @ts-nocheck \n/* eslint-disable */\n` + fs.readFileSync(outfile)); - } - - fs.writeFileSync(defaultRuntimeConfigFile, nodeRuntimeConfig); - fs.writeFileSync(clientPkgJsonPath, JSON.stringify(clientPkgJson, null, 2) + "\n"); -})(); diff --git a/packages/token-providers/scripts/nocheck.js b/packages/token-providers/scripts/nocheck.js deleted file mode 100644 index ea099d1b0caa..000000000000 --- a/packages/token-providers/scripts/nocheck.js +++ /dev/null @@ -1,23 +0,0 @@ -const fs = require("fs"); -const path = require("path"); - -const root = path.join(__dirname, ".."); - -const browserFile = path.join(root, "dist-types", "bundle", "client-sso-oidc-browser.d.ts"); -const nodeFile = path.join(root, "dist-types", "bundle", "client-sso-oidc-node.d.ts"); - -const noCheck = "// @ts-nocheck\n"; - -for (const file of [browserFile, nodeFile]) { - if (fs.existsSync(file)) { - const contents = fs.readFileSync(file, "utf-8"); - if (!contents.startsWith(noCheck)) { - fs.writeFileSync(file, noCheck + contents, "utf-8"); - console.info("Rewriting", file, "with ts-nocheck."); - } else { - console.info("No-op: ", file, "already starts with ts-nocheck."); - } - } else { - throw new Error("File not found: " + file); - } -} diff --git a/packages/token-providers/src/bundle/client-sso-oidc-browser.ts b/packages/token-providers/src/bundle/client-sso-oidc-browser.ts deleted file mode 100644 index e709fd6034a7..000000000000 --- a/packages/token-providers/src/bundle/client-sso-oidc-browser.ts +++ /dev/null @@ -1,1191 +0,0 @@ -// @ts-nocheck -/* eslint-disable */ -// ../../clients/client-sso-oidc/src/SSOOIDCClient.ts -import { getHostHeaderPlugin, resolveHostHeaderConfig } from "@aws-sdk/middleware-host-header"; -import { getLoggerPlugin } from "@aws-sdk/middleware-logger"; -import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection"; -import { getUserAgentPlugin, resolveUserAgentConfig } from "@aws-sdk/middleware-user-agent"; -import { resolveRegionConfig } from "@smithy/config-resolver"; -import { getContentLengthPlugin } from "@smithy/middleware-content-length"; -import { resolveEndpointConfig } from "@smithy/middleware-endpoint"; -import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry"; -import { Client as __Client } from "@smithy/smithy-client"; - -// ../../clients/client-sso-oidc/src/endpoint/EndpointParameters.ts -var resolveClientEndpointParameters = (options) => { - return { - ...options, - useDualstackEndpoint: options.useDualstackEndpoint ?? false, - useFipsEndpoint: options.useFipsEndpoint ?? false, - defaultSigningName: "awsssooidc", - }; -}; - -// ../../clients/client-sso-oidc/package.json -var package_default = { version: "3.429.0" }; - -// ../../clients/client-sso-oidc/src/runtimeConfig.ts -import { Sha256 } from "@aws-crypto/sha256-browser"; -import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; -import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@smithy/config-resolver"; -import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler"; -import { invalidProvider } from "@smithy/invalid-dependency"; -import { calculateBodyLength } from "@smithy/util-body-length-browser"; -import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/util-retry"; - -// ../../clients/client-sso-oidc/src/runtimeConfig.shared.ts -import { NoOpLogger } from "@smithy/smithy-client"; -import { parseUrl } from "@smithy/url-parser"; -import { fromBase64, toBase64 } from "@smithy/util-base64"; -import { fromUtf8, toUtf8 } from "@smithy/util-utf8"; - -// ../../clients/client-sso-oidc/src/endpoint/endpointResolver.ts -import { resolveEndpoint } from "@aws-sdk/util-endpoints"; - -// ../../clients/client-sso-oidc/src/endpoint/ruleset.ts -var s = "required"; -var t = "fn"; -var u = "argv"; -var v = "ref"; -var a = "isSet"; -var b = "tree"; -var c = "error"; -var d = "endpoint"; -var e = "PartitionResult"; -var f = "getAttr"; -var g = { [s]: false, type: "String" }; -var h = { [s]: true, default: false, type: "Boolean" }; -var i = { [v]: "Endpoint" }; -var j = { [t]: "booleanEquals", [u]: [{ [v]: "UseFIPS" }, true] }; -var k = { [t]: "booleanEquals", [u]: [{ [v]: "UseDualStack" }, true] }; -var l = {}; -var m = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [{ [v]: e }, "supportsFIPS"] }] }; -var n = { [v]: e }; -var o = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [n, "supportsDualStack"] }] }; -var p = [j]; -var q = [k]; -var r = [{ [v]: "Region" }]; -var _data = { - version: "1.0", - parameters: { Region: g, UseDualStack: h, UseFIPS: h, Endpoint: g }, - rules: [ - { - conditions: [{ [t]: a, [u]: [i] }], - type: b, - rules: [ - { conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, - { conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, - { endpoint: { url: i, properties: l, headers: l }, type: d }, - ], - }, - { - conditions: [{ [t]: a, [u]: r }], - type: b, - rules: [ - { - conditions: [{ [t]: "aws.partition", [u]: r, assign: e }], - type: b, - rules: [ - { - conditions: [j, k], - type: b, - rules: [ - { - conditions: [m, o], - type: b, - rules: [ - { - endpoint: { - url: "https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: l, - headers: l, - }, - type: d, - }, - ], - }, - { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }, - ], - }, - { - conditions: p, - type: b, - rules: [ - { - conditions: [m], - type: b, - rules: [ - { - conditions: [{ [t]: "stringEquals", [u]: ["aws-us-gov", { [t]: f, [u]: [n, "name"] }] }], - endpoint: { url: "https://oidc.{Region}.amazonaws.com", properties: l, headers: l }, - type: d, - }, - { - endpoint: { - url: "https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: l, - headers: l, - }, - type: d, - }, - ], - }, - { error: "FIPS is enabled but this partition does not support FIPS", type: c }, - ], - }, - { - conditions: q, - type: b, - rules: [ - { - conditions: [o], - type: b, - rules: [ - { - endpoint: { - url: "https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: l, - headers: l, - }, - type: d, - }, - ], - }, - { error: "DualStack is enabled but this partition does not support DualStack", type: c }, - ], - }, - { - endpoint: { url: "https://oidc.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, - type: d, - }, - ], - }, - ], - }, - { error: "Invalid Configuration: Missing Region", type: c }, - ], -}; -var ruleSet = _data; - -// ../../clients/client-sso-oidc/src/endpoint/endpointResolver.ts -var defaultEndpointResolver = (endpointParams, context = {}) => { - return resolveEndpoint(ruleSet, { - endpointParams, - logger: context.logger, - }); -}; - -// ../../clients/client-sso-oidc/src/runtimeConfig.shared.ts -var getRuntimeConfig = (config) => ({ - apiVersion: "2019-06-10", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "SSO OIDC", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); - -// ../../clients/client-sso-oidc/src/runtimeConfig.ts -import { loadConfigsForDefaultMode } from "@smithy/smithy-client"; -import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser"; -var getRuntimeConfig2 = (config) => { - const defaultsMode = resolveDefaultsModeConfig(config); - const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); - const clientSharedValues = getRuntimeConfig(config); - return { - ...clientSharedValues, - ...config, - runtime: "browser", - defaultsMode, - bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - defaultUserAgentProvider: - config?.defaultUserAgentProvider ?? - defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_default.version }), - maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS, - region: config?.region ?? invalidProvider("Region is missing"), - requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider), - retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE), - sha256: config?.sha256 ?? Sha256, - streamCollector: config?.streamCollector ?? streamCollector, - useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)), - useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)), - }; -}; - -// ../../clients/client-sso-oidc/src/runtimeExtensions.ts -import { - getAwsRegionExtensionConfiguration, - resolveAwsRegionExtensionConfiguration, -} from "@aws-sdk/region-config-resolver"; -import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http"; -import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client"; -var asPartial = (t2) => t2; -var resolveRuntimeExtensions = (runtimeConfig, extensions) => { - const extensionConfiguration = { - ...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)), - ...asPartial(getDefaultExtensionConfiguration(runtimeConfig)), - ...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)), - }; - extensions.forEach((extension) => extension.configure(extensionConfiguration)); - return { - ...runtimeConfig, - ...resolveAwsRegionExtensionConfiguration(extensionConfiguration), - ...resolveDefaultRuntimeConfig(extensionConfiguration), - ...resolveHttpHandlerRuntimeConfig(extensionConfiguration), - }; -}; - -// ../../clients/client-sso-oidc/src/SSOOIDCClient.ts -var SSOOIDCClient = class extends __Client { - constructor(...[configuration]) { - const _config_0 = getRuntimeConfig2(configuration || {}); - const _config_1 = resolveClientEndpointParameters(_config_0); - const _config_2 = resolveRegionConfig(_config_1); - const _config_3 = resolveEndpointConfig(_config_2); - const _config_4 = resolveRetryConfig(_config_3); - const _config_5 = resolveHostHeaderConfig(_config_4); - const _config_6 = resolveUserAgentConfig(_config_5); - const _config_7 = resolveRuntimeExtensions(_config_6, configuration?.extensions || []); - super(_config_7); - this.config = _config_7; - this.middlewareStack.use(getRetryPlugin(this.config)); - this.middlewareStack.use(getContentLengthPlugin(this.config)); - this.middlewareStack.use(getHostHeaderPlugin(this.config)); - this.middlewareStack.use(getLoggerPlugin(this.config)); - this.middlewareStack.use(getRecursionDetectionPlugin(this.config)); - this.middlewareStack.use(getUserAgentPlugin(this.config)); - } - /** - * Destroy underlying resources, like sockets. It's usually not necessary to do this. - * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed. - * Otherwise, sockets might stay open for quite a long time before the server terminates them. - */ - destroy() { - super.destroy(); - } -}; - -// ../../clients/client-sso-oidc/src/SSOOIDC.ts -import { createAggregatedClient } from "@smithy/smithy-client"; - -// ../../clients/client-sso-oidc/src/commands/CreateTokenCommand.ts -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { MetadataBearer as __MetadataBearer, SMITHY_CONTEXT_KEY } from "@smithy/types"; - -// ../../clients/client-sso-oidc/src/protocols/Aws_restJson1.ts -import { HttpRequest as __HttpRequest } from "@smithy/protocol-http"; -import { - _json, - collectBody, - decorateServiceException as __decorateServiceException, - expectInt32 as __expectInt32, - expectLong as __expectLong, - expectNonNull as __expectNonNull, - expectObject as __expectObject, - expectString as __expectString, - map, - take, - withBaseException, -} from "@smithy/smithy-client"; - -// ../../clients/client-sso-oidc/src/models/SSOOIDCServiceException.ts -import { - ServiceException as __ServiceException, - ServiceExceptionOptions as __ServiceExceptionOptions, -} from "@smithy/smithy-client"; -var SSOOIDCServiceException = class _SSOOIDCServiceException extends __ServiceException { - /** - * @internal - */ - constructor(options) { - super(options); - Object.setPrototypeOf(this, _SSOOIDCServiceException.prototype); - } -}; - -// ../../clients/client-sso-oidc/src/models/models_0.ts -var AccessDeniedException = class _AccessDeniedException extends SSOOIDCServiceException { - /** - * @internal - */ - constructor(opts) { - super({ - name: "AccessDeniedException", - $fault: "client", - ...opts, - }); - this.name = "AccessDeniedException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _AccessDeniedException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -var AuthorizationPendingException = class _AuthorizationPendingException extends SSOOIDCServiceException { - /** - * @internal - */ - constructor(opts) { - super({ - name: "AuthorizationPendingException", - $fault: "client", - ...opts, - }); - this.name = "AuthorizationPendingException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _AuthorizationPendingException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -var ExpiredTokenException = class _ExpiredTokenException extends SSOOIDCServiceException { - /** - * @internal - */ - constructor(opts) { - super({ - name: "ExpiredTokenException", - $fault: "client", - ...opts, - }); - this.name = "ExpiredTokenException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _ExpiredTokenException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -var InternalServerException = class _InternalServerException extends SSOOIDCServiceException { - /** - * @internal - */ - constructor(opts) { - super({ - name: "InternalServerException", - $fault: "server", - ...opts, - }); - this.name = "InternalServerException"; - this.$fault = "server"; - Object.setPrototypeOf(this, _InternalServerException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -var InvalidClientException = class _InvalidClientException extends SSOOIDCServiceException { - /** - * @internal - */ - constructor(opts) { - super({ - name: "InvalidClientException", - $fault: "client", - ...opts, - }); - this.name = "InvalidClientException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _InvalidClientException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -var InvalidGrantException = class _InvalidGrantException extends SSOOIDCServiceException { - /** - * @internal - */ - constructor(opts) { - super({ - name: "InvalidGrantException", - $fault: "client", - ...opts, - }); - this.name = "InvalidGrantException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _InvalidGrantException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -var InvalidRequestException = class _InvalidRequestException extends SSOOIDCServiceException { - /** - * @internal - */ - constructor(opts) { - super({ - name: "InvalidRequestException", - $fault: "client", - ...opts, - }); - this.name = "InvalidRequestException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _InvalidRequestException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -var InvalidScopeException = class _InvalidScopeException extends SSOOIDCServiceException { - /** - * @internal - */ - constructor(opts) { - super({ - name: "InvalidScopeException", - $fault: "client", - ...opts, - }); - this.name = "InvalidScopeException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _InvalidScopeException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -var SlowDownException = class _SlowDownException extends SSOOIDCServiceException { - /** - * @internal - */ - constructor(opts) { - super({ - name: "SlowDownException", - $fault: "client", - ...opts, - }); - this.name = "SlowDownException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _SlowDownException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -var UnauthorizedClientException = class _UnauthorizedClientException extends SSOOIDCServiceException { - /** - * @internal - */ - constructor(opts) { - super({ - name: "UnauthorizedClientException", - $fault: "client", - ...opts, - }); - this.name = "UnauthorizedClientException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _UnauthorizedClientException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -var UnsupportedGrantTypeException = class _UnsupportedGrantTypeException extends SSOOIDCServiceException { - /** - * @internal - */ - constructor(opts) { - super({ - name: "UnsupportedGrantTypeException", - $fault: "client", - ...opts, - }); - this.name = "UnsupportedGrantTypeException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _UnsupportedGrantTypeException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -var InvalidClientMetadataException = class _InvalidClientMetadataException extends SSOOIDCServiceException { - /** - * @internal - */ - constructor(opts) { - super({ - name: "InvalidClientMetadataException", - $fault: "client", - ...opts, - }); - this.name = "InvalidClientMetadataException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _InvalidClientMetadataException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; - -// ../../clients/client-sso-oidc/src/protocols/Aws_restJson1.ts -var se_CreateTokenCommand = async (input, context) => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const headers = { - "content-type": "application/json", - }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}/token`; - let body; - body = JSON.stringify( - take(input, { - clientId: [], - clientSecret: [], - code: [], - deviceCode: [], - grantType: [], - redirectUri: [], - refreshToken: [], - scope: (_) => _json(_), - }) - ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); -}; -var se_RegisterClientCommand = async (input, context) => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const headers = { - "content-type": "application/json", - }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}/client/register`; - let body; - body = JSON.stringify( - take(input, { - clientName: [], - clientType: [], - scopes: (_) => _json(_), - }) - ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); -}; -var se_StartDeviceAuthorizationCommand = async (input, context) => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const headers = { - "content-type": "application/json", - }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}/device_authorization`; - let body; - body = JSON.stringify( - take(input, { - clientId: [], - clientSecret: [], - startUrl: [], - }) - ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); -}; -var de_CreateTokenCommand = async (output, context) => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CreateTokenCommandError(output, context); - } - const contents = map({ - $metadata: deserializeMetadata(output), - }); - const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - const doc = take(data, { - accessToken: __expectString, - expiresIn: __expectInt32, - idToken: __expectString, - refreshToken: __expectString, - tokenType: __expectString, - }); - Object.assign(contents, doc); - return contents; -}; -var de_CreateTokenCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AccessDeniedException": - case "com.amazonaws.ssooidc#AccessDeniedException": - throw await de_AccessDeniedExceptionRes(parsedOutput, context); - case "AuthorizationPendingException": - case "com.amazonaws.ssooidc#AuthorizationPendingException": - throw await de_AuthorizationPendingExceptionRes(parsedOutput, context); - case "ExpiredTokenException": - case "com.amazonaws.ssooidc#ExpiredTokenException": - throw await de_ExpiredTokenExceptionRes(parsedOutput, context); - case "InternalServerException": - case "com.amazonaws.ssooidc#InternalServerException": - throw await de_InternalServerExceptionRes(parsedOutput, context); - case "InvalidClientException": - case "com.amazonaws.ssooidc#InvalidClientException": - throw await de_InvalidClientExceptionRes(parsedOutput, context); - case "InvalidGrantException": - case "com.amazonaws.ssooidc#InvalidGrantException": - throw await de_InvalidGrantExceptionRes(parsedOutput, context); - case "InvalidRequestException": - case "com.amazonaws.ssooidc#InvalidRequestException": - throw await de_InvalidRequestExceptionRes(parsedOutput, context); - case "InvalidScopeException": - case "com.amazonaws.ssooidc#InvalidScopeException": - throw await de_InvalidScopeExceptionRes(parsedOutput, context); - case "SlowDownException": - case "com.amazonaws.ssooidc#SlowDownException": - throw await de_SlowDownExceptionRes(parsedOutput, context); - case "UnauthorizedClientException": - case "com.amazonaws.ssooidc#UnauthorizedClientException": - throw await de_UnauthorizedClientExceptionRes(parsedOutput, context); - case "UnsupportedGrantTypeException": - case "com.amazonaws.ssooidc#UnsupportedGrantTypeException": - throw await de_UnsupportedGrantTypeExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -var de_RegisterClientCommand = async (output, context) => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_RegisterClientCommandError(output, context); - } - const contents = map({ - $metadata: deserializeMetadata(output), - }); - const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - const doc = take(data, { - authorizationEndpoint: __expectString, - clientId: __expectString, - clientIdIssuedAt: __expectLong, - clientSecret: __expectString, - clientSecretExpiresAt: __expectLong, - tokenEndpoint: __expectString, - }); - Object.assign(contents, doc); - return contents; -}; -var de_RegisterClientCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerException": - case "com.amazonaws.ssooidc#InternalServerException": - throw await de_InternalServerExceptionRes(parsedOutput, context); - case "InvalidClientMetadataException": - case "com.amazonaws.ssooidc#InvalidClientMetadataException": - throw await de_InvalidClientMetadataExceptionRes(parsedOutput, context); - case "InvalidRequestException": - case "com.amazonaws.ssooidc#InvalidRequestException": - throw await de_InvalidRequestExceptionRes(parsedOutput, context); - case "InvalidScopeException": - case "com.amazonaws.ssooidc#InvalidScopeException": - throw await de_InvalidScopeExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -var de_StartDeviceAuthorizationCommand = async (output, context) => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_StartDeviceAuthorizationCommandError(output, context); - } - const contents = map({ - $metadata: deserializeMetadata(output), - }); - const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - const doc = take(data, { - deviceCode: __expectString, - expiresIn: __expectInt32, - interval: __expectInt32, - userCode: __expectString, - verificationUri: __expectString, - verificationUriComplete: __expectString, - }); - Object.assign(contents, doc); - return contents; -}; -var de_StartDeviceAuthorizationCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerException": - case "com.amazonaws.ssooidc#InternalServerException": - throw await de_InternalServerExceptionRes(parsedOutput, context); - case "InvalidClientException": - case "com.amazonaws.ssooidc#InvalidClientException": - throw await de_InvalidClientExceptionRes(parsedOutput, context); - case "InvalidRequestException": - case "com.amazonaws.ssooidc#InvalidRequestException": - throw await de_InvalidRequestExceptionRes(parsedOutput, context); - case "SlowDownException": - case "com.amazonaws.ssooidc#SlowDownException": - throw await de_SlowDownExceptionRes(parsedOutput, context); - case "UnauthorizedClientException": - case "com.amazonaws.ssooidc#UnauthorizedClientException": - throw await de_UnauthorizedClientExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -var throwDefaultError = withBaseException(SSOOIDCServiceException); -var de_AccessDeniedExceptionRes = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - const doc = take(data, { - error: __expectString, - error_description: __expectString, - }); - Object.assign(contents, doc); - const exception = new AccessDeniedException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; -var de_AuthorizationPendingExceptionRes = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - const doc = take(data, { - error: __expectString, - error_description: __expectString, - }); - Object.assign(contents, doc); - const exception = new AuthorizationPendingException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; -var de_ExpiredTokenExceptionRes = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - const doc = take(data, { - error: __expectString, - error_description: __expectString, - }); - Object.assign(contents, doc); - const exception = new ExpiredTokenException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; -var de_InternalServerExceptionRes = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - const doc = take(data, { - error: __expectString, - error_description: __expectString, - }); - Object.assign(contents, doc); - const exception = new InternalServerException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; -var de_InvalidClientExceptionRes = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - const doc = take(data, { - error: __expectString, - error_description: __expectString, - }); - Object.assign(contents, doc); - const exception = new InvalidClientException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; -var de_InvalidClientMetadataExceptionRes = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - const doc = take(data, { - error: __expectString, - error_description: __expectString, - }); - Object.assign(contents, doc); - const exception = new InvalidClientMetadataException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; -var de_InvalidGrantExceptionRes = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - const doc = take(data, { - error: __expectString, - error_description: __expectString, - }); - Object.assign(contents, doc); - const exception = new InvalidGrantException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; -var de_InvalidRequestExceptionRes = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - const doc = take(data, { - error: __expectString, - error_description: __expectString, - }); - Object.assign(contents, doc); - const exception = new InvalidRequestException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; -var de_InvalidScopeExceptionRes = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - const doc = take(data, { - error: __expectString, - error_description: __expectString, - }); - Object.assign(contents, doc); - const exception = new InvalidScopeException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; -var de_SlowDownExceptionRes = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - const doc = take(data, { - error: __expectString, - error_description: __expectString, - }); - Object.assign(contents, doc); - const exception = new SlowDownException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; -var de_UnauthorizedClientExceptionRes = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - const doc = take(data, { - error: __expectString, - error_description: __expectString, - }); - Object.assign(contents, doc); - const exception = new UnauthorizedClientException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; -var de_UnsupportedGrantTypeExceptionRes = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - const doc = take(data, { - error: __expectString, - error_description: __expectString, - }); - Object.assign(contents, doc); - const exception = new UnsupportedGrantTypeException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; -var deserializeMetadata = (output) => ({ - httpStatusCode: output.statusCode, - requestId: - output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"], - extendedRequestId: output.headers["x-amz-id-2"], - cfId: output.headers["x-amz-cf-id"], -}); -var collectBodyString = (streamBody, context) => - collectBody(streamBody, context).then((body) => context.utf8Encoder(body)); -var parseBody = (streamBody, context) => - collectBodyString(streamBody, context).then((encoded) => { - if (encoded.length) { - return JSON.parse(encoded); - } - return {}; - }); -var parseErrorBody = async (errorBody, context) => { - const value = await parseBody(errorBody, context); - value.message = value.message ?? value.Message; - return value; -}; -var loadRestJsonErrorCode = (output, data) => { - const findKey = (object, key) => Object.keys(object).find((k2) => k2.toLowerCase() === key.toLowerCase()); - const sanitizeErrorCode = (rawValue) => { - let cleanValue = rawValue; - if (typeof cleanValue === "number") { - cleanValue = cleanValue.toString(); - } - if (cleanValue.indexOf(",") >= 0) { - cleanValue = cleanValue.split(",")[0]; - } - if (cleanValue.indexOf(":") >= 0) { - cleanValue = cleanValue.split(":")[0]; - } - if (cleanValue.indexOf("#") >= 0) { - cleanValue = cleanValue.split("#")[1]; - } - return cleanValue; - }; - const headerKey = findKey(output.headers, "x-amzn-errortype"); - if (headerKey !== void 0) { - return sanitizeErrorCode(output.headers[headerKey]); - } - if (data.code !== void 0) { - return sanitizeErrorCode(data.code); - } - if (data["__type"] !== void 0) { - return sanitizeErrorCode(data["__type"]); - } -}; - -// ../../clients/client-sso-oidc/src/commands/CreateTokenCommand.ts -class CreateTokenCommand extends $Command { - /** - * @public - */ - constructor(input) { - super(); - this.input = input; - } - // Start section: command_properties - // End section: command_properties - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - /** - * @internal - */ - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, _CreateTokenCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSOOIDCClient"; - const commandName = "CreateTokenCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AWSSSOOIDCService", - operation: "CreateToken", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - /** - * @internal - */ - serialize(input, context) { - return se_CreateTokenCommand(input, context); - } - /** - * @internal - */ - deserialize(output, context) { - return de_CreateTokenCommand(output, context); - } - // Start section: command_body_extra - // End section: command_body_extra -} - -// ../../clients/client-sso-oidc/src/commands/RegisterClientCommand.ts -import { getEndpointPlugin as getEndpointPlugin2 } from "@smithy/middleware-endpoint"; -import { getSerdePlugin as getSerdePlugin2 } from "@smithy/middleware-serde"; -import { Command as $Command2 } from "@smithy/smithy-client"; -import { MetadataBearer as __MetadataBearer2, SMITHY_CONTEXT_KEY as SMITHY_CONTEXT_KEY2 } from "@smithy/types"; -class RegisterClientCommand extends $Command2 { - /** - * @public - */ - constructor(input) { - super(); - this.input = input; - } - // Start section: command_properties - // End section: command_properties - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - /** - * @internal - */ - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin2(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use( - getEndpointPlugin2(configuration, _RegisterClientCommand.getEndpointParameterInstructions()) - ); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSOOIDCClient"; - const commandName = "RegisterClientCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY2]: { - service: "AWSSSOOIDCService", - operation: "RegisterClient", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - /** - * @internal - */ - serialize(input, context) { - return se_RegisterClientCommand(input, context); - } - /** - * @internal - */ - deserialize(output, context) { - return de_RegisterClientCommand(output, context); - } - // Start section: command_body_extra - // End section: command_body_extra -} - -// ../../clients/client-sso-oidc/src/commands/StartDeviceAuthorizationCommand.ts -import { getEndpointPlugin as getEndpointPlugin3 } from "@smithy/middleware-endpoint"; -import { getSerdePlugin as getSerdePlugin3 } from "@smithy/middleware-serde"; -import { Command as $Command3 } from "@smithy/smithy-client"; -import { MetadataBearer as __MetadataBearer3, SMITHY_CONTEXT_KEY as SMITHY_CONTEXT_KEY3 } from "@smithy/types"; -class StartDeviceAuthorizationCommand extends $Command3 { - /** - * @public - */ - constructor(input) { - super(); - this.input = input; - } - // Start section: command_properties - // End section: command_properties - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - /** - * @internal - */ - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin3(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use( - getEndpointPlugin3(configuration, _StartDeviceAuthorizationCommand.getEndpointParameterInstructions()) - ); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSOOIDCClient"; - const commandName = "StartDeviceAuthorizationCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY3]: { - service: "AWSSSOOIDCService", - operation: "StartDeviceAuthorization", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - /** - * @internal - */ - serialize(input, context) { - return se_StartDeviceAuthorizationCommand(input, context); - } - /** - * @internal - */ - deserialize(output, context) { - return de_StartDeviceAuthorizationCommand(output, context); - } - // Start section: command_body_extra - // End section: command_body_extra -} - -// ../../clients/client-sso-oidc/src/SSOOIDC.ts -var commands = { - CreateTokenCommand, - RegisterClientCommand, - StartDeviceAuthorizationCommand, -}; -var SSOOIDC = class extends SSOOIDCClient {}; -createAggregatedClient(commands, SSOOIDC); -export { - AccessDeniedException, - AuthorizationPendingException, - CreateTokenCommand, - ExpiredTokenException, - InternalServerException, - InvalidClientException, - InvalidRequestException, - InvalidScopeException, - SSOOIDCClient, - SlowDownException, - UnauthorizedClientException, - UnsupportedGrantTypeException, -}; diff --git a/packages/token-providers/src/bundle/client-sso-oidc-node.ts b/packages/token-providers/src/bundle/client-sso-oidc-node.ts deleted file mode 100644 index 24bce9d0ccbd..000000000000 --- a/packages/token-providers/src/bundle/client-sso-oidc-node.ts +++ /dev/null @@ -1,1204 +0,0 @@ -// @ts-nocheck -/* eslint-disable */ -// ../../clients/client-sso-oidc/src/SSOOIDCClient.ts -import { getHostHeaderPlugin, resolveHostHeaderConfig } from "@aws-sdk/middleware-host-header"; -import { getLoggerPlugin } from "@aws-sdk/middleware-logger"; -import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection"; -import { getUserAgentPlugin, resolveUserAgentConfig } from "@aws-sdk/middleware-user-agent"; -import { resolveRegionConfig } from "@smithy/config-resolver"; -import { getContentLengthPlugin } from "@smithy/middleware-content-length"; -import { resolveEndpointConfig } from "@smithy/middleware-endpoint"; -import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry"; -import { Client as __Client } from "@smithy/smithy-client"; - -// ../../clients/client-sso-oidc/src/endpoint/EndpointParameters.ts -var resolveClientEndpointParameters = (options) => { - return { - ...options, - useDualstackEndpoint: options.useDualstackEndpoint ?? false, - useFipsEndpoint: options.useFipsEndpoint ?? false, - defaultSigningName: "awsssooidc", - }; -}; - -// ../../clients/client-sso-oidc/package.json -var package_default = { version: "3.429.0" }; - -// ../../clients/client-sso-oidc/src/runtimeConfig.ts -import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; -import { - NODE_REGION_CONFIG_FILE_OPTIONS, - NODE_REGION_CONFIG_OPTIONS, - NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, - NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, -} from "@smithy/config-resolver"; -import { Hash } from "@smithy/hash-node"; -import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry"; -import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider"; -import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler"; -import { calculateBodyLength } from "@smithy/util-body-length-node"; -import { DEFAULT_RETRY_MODE } from "@smithy/util-retry"; - -// ../../clients/client-sso-oidc/src/runtimeConfig.shared.ts -import { NoOpLogger } from "@smithy/smithy-client"; -import { parseUrl } from "@smithy/url-parser"; -import { fromBase64, toBase64 } from "@smithy/util-base64"; -import { fromUtf8, toUtf8 } from "@smithy/util-utf8"; - -// ../../clients/client-sso-oidc/src/endpoint/endpointResolver.ts -import { resolveEndpoint } from "@smithy/util-endpoints"; - -// ../../clients/client-sso-oidc/src/endpoint/ruleset.ts -var s = "required"; -var t = "fn"; -var u = "argv"; -var v = "ref"; -var a = "isSet"; -var b = "tree"; -var c = "error"; -var d = "endpoint"; -var e = "PartitionResult"; -var f = "getAttr"; -var g = { [s]: false, type: "String" }; -var h = { [s]: true, default: false, type: "Boolean" }; -var i = { [v]: "Endpoint" }; -var j = { [t]: "booleanEquals", [u]: [{ [v]: "UseFIPS" }, true] }; -var k = { [t]: "booleanEquals", [u]: [{ [v]: "UseDualStack" }, true] }; -var l = {}; -var m = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [{ [v]: e }, "supportsFIPS"] }] }; -var n = { [v]: e }; -var o = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [n, "supportsDualStack"] }] }; -var p = [j]; -var q = [k]; -var r = [{ [v]: "Region" }]; -var _data = { - version: "1.0", - parameters: { Region: g, UseDualStack: h, UseFIPS: h, Endpoint: g }, - rules: [ - { - conditions: [{ [t]: a, [u]: [i] }], - type: b, - rules: [ - { conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, - { conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, - { endpoint: { url: i, properties: l, headers: l }, type: d }, - ], - }, - { - conditions: [{ [t]: a, [u]: r }], - type: b, - rules: [ - { - conditions: [{ [t]: "aws.partition", [u]: r, assign: e }], - type: b, - rules: [ - { - conditions: [j, k], - type: b, - rules: [ - { - conditions: [m, o], - type: b, - rules: [ - { - endpoint: { - url: "https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: l, - headers: l, - }, - type: d, - }, - ], - }, - { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }, - ], - }, - { - conditions: p, - type: b, - rules: [ - { - conditions: [m], - type: b, - rules: [ - { - conditions: [{ [t]: "stringEquals", [u]: ["aws-us-gov", { [t]: f, [u]: [n, "name"] }] }], - endpoint: { url: "https://oidc.{Region}.amazonaws.com", properties: l, headers: l }, - type: d, - }, - { - endpoint: { - url: "https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: l, - headers: l, - }, - type: d, - }, - ], - }, - { error: "FIPS is enabled but this partition does not support FIPS", type: c }, - ], - }, - { - conditions: q, - type: b, - rules: [ - { - conditions: [o], - type: b, - rules: [ - { - endpoint: { - url: "https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: l, - headers: l, - }, - type: d, - }, - ], - }, - { error: "DualStack is enabled but this partition does not support DualStack", type: c }, - ], - }, - { - endpoint: { url: "https://oidc.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, - type: d, - }, - ], - }, - ], - }, - { error: "Invalid Configuration: Missing Region", type: c }, - ], -}; -var ruleSet = _data; - -// ../../clients/client-sso-oidc/src/endpoint/endpointResolver.ts -var defaultEndpointResolver = (endpointParams, context = {}) => { - return resolveEndpoint(ruleSet, { - endpointParams, - logger: context.logger, - }); -}; - -// ../../clients/client-sso-oidc/src/runtimeConfig.shared.ts -var getRuntimeConfig = (config) => ({ - apiVersion: "2019-06-10", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "SSO OIDC", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); - -// ../../clients/client-sso-oidc/src/runtimeConfig.ts -import { loadConfigsForDefaultMode } from "@smithy/smithy-client"; -import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node"; -import { emitWarningIfUnsupportedVersion } from "@smithy/smithy-client"; -var getRuntimeConfig2 = (config) => { - emitWarningIfUnsupportedVersion(process.version); - const defaultsMode = resolveDefaultsModeConfig(config); - const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); - const clientSharedValues = getRuntimeConfig(config); - return { - ...clientSharedValues, - ...config, - runtime: "node", - defaultsMode, - bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - defaultUserAgentProvider: - config?.defaultUserAgentProvider ?? - defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_default.version }), - maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), - region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), - requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider), - retryMode: - config?.retryMode ?? - loadNodeConfig({ - ...NODE_RETRY_MODE_CONFIG_OPTIONS, - default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE, - }), - sha256: config?.sha256 ?? Hash.bind(null, "sha256"), - streamCollector: config?.streamCollector ?? streamCollector, - useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), - useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), - }; -}; - -// ../../clients/client-sso-oidc/src/runtimeExtensions.ts -import { - getAwsRegionExtensionConfiguration, - resolveAwsRegionExtensionConfiguration, -} from "@aws-sdk/region-config-resolver"; -import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http"; -import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client"; -var asPartial = (t2) => t2; -var resolveRuntimeExtensions = (runtimeConfig, extensions) => { - const extensionConfiguration = { - ...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)), - ...asPartial(getDefaultExtensionConfiguration(runtimeConfig)), - ...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)), - }; - extensions.forEach((extension) => extension.configure(extensionConfiguration)); - return { - ...runtimeConfig, - ...resolveAwsRegionExtensionConfiguration(extensionConfiguration), - ...resolveDefaultRuntimeConfig(extensionConfiguration), - ...resolveHttpHandlerRuntimeConfig(extensionConfiguration), - }; -}; - -// ../../clients/client-sso-oidc/src/SSOOIDCClient.ts -var SSOOIDCClient = class extends __Client { - constructor(...[configuration]) { - const _config_0 = getRuntimeConfig2(configuration || {}); - const _config_1 = resolveClientEndpointParameters(_config_0); - const _config_2 = resolveRegionConfig(_config_1); - const _config_3 = resolveEndpointConfig(_config_2); - const _config_4 = resolveRetryConfig(_config_3); - const _config_5 = resolveHostHeaderConfig(_config_4); - const _config_6 = resolveUserAgentConfig(_config_5); - const _config_7 = resolveRuntimeExtensions(_config_6, configuration?.extensions || []); - super(_config_7); - this.config = _config_7; - this.middlewareStack.use(getRetryPlugin(this.config)); - this.middlewareStack.use(getContentLengthPlugin(this.config)); - this.middlewareStack.use(getHostHeaderPlugin(this.config)); - this.middlewareStack.use(getLoggerPlugin(this.config)); - this.middlewareStack.use(getRecursionDetectionPlugin(this.config)); - this.middlewareStack.use(getUserAgentPlugin(this.config)); - } - /** - * Destroy underlying resources, like sockets. It's usually not necessary to do this. - * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed. - * Otherwise, sockets might stay open for quite a long time before the server terminates them. - */ - destroy() { - super.destroy(); - } -}; - -// ../../clients/client-sso-oidc/src/SSOOIDC.ts -import { createAggregatedClient } from "@smithy/smithy-client"; - -// ../../clients/client-sso-oidc/src/commands/CreateTokenCommand.ts -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { MetadataBearer as __MetadataBearer, SMITHY_CONTEXT_KEY } from "@smithy/types"; - -// ../../clients/client-sso-oidc/src/protocols/Aws_restJson1.ts -import { HttpRequest as __HttpRequest } from "@smithy/protocol-http"; -import { - _json, - collectBody, - decorateServiceException as __decorateServiceException, - expectInt32 as __expectInt32, - expectLong as __expectLong, - expectNonNull as __expectNonNull, - expectObject as __expectObject, - expectString as __expectString, - map, - take, - withBaseException, -} from "@smithy/smithy-client"; - -// ../../clients/client-sso-oidc/src/models/SSOOIDCServiceException.ts -import { - ServiceException as __ServiceException, - ServiceExceptionOptions as __ServiceExceptionOptions, -} from "@smithy/smithy-client"; -var SSOOIDCServiceException = class _SSOOIDCServiceException extends __ServiceException { - /** - * @internal - */ - constructor(options) { - super(options); - Object.setPrototypeOf(this, _SSOOIDCServiceException.prototype); - } -}; - -// ../../clients/client-sso-oidc/src/models/models_0.ts -var AccessDeniedException = class _AccessDeniedException extends SSOOIDCServiceException { - /** - * @internal - */ - constructor(opts) { - super({ - name: "AccessDeniedException", - $fault: "client", - ...opts, - }); - this.name = "AccessDeniedException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _AccessDeniedException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -var AuthorizationPendingException = class _AuthorizationPendingException extends SSOOIDCServiceException { - /** - * @internal - */ - constructor(opts) { - super({ - name: "AuthorizationPendingException", - $fault: "client", - ...opts, - }); - this.name = "AuthorizationPendingException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _AuthorizationPendingException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -var ExpiredTokenException = class _ExpiredTokenException extends SSOOIDCServiceException { - /** - * @internal - */ - constructor(opts) { - super({ - name: "ExpiredTokenException", - $fault: "client", - ...opts, - }); - this.name = "ExpiredTokenException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _ExpiredTokenException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -var InternalServerException = class _InternalServerException extends SSOOIDCServiceException { - /** - * @internal - */ - constructor(opts) { - super({ - name: "InternalServerException", - $fault: "server", - ...opts, - }); - this.name = "InternalServerException"; - this.$fault = "server"; - Object.setPrototypeOf(this, _InternalServerException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -var InvalidClientException = class _InvalidClientException extends SSOOIDCServiceException { - /** - * @internal - */ - constructor(opts) { - super({ - name: "InvalidClientException", - $fault: "client", - ...opts, - }); - this.name = "InvalidClientException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _InvalidClientException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -var InvalidGrantException = class _InvalidGrantException extends SSOOIDCServiceException { - /** - * @internal - */ - constructor(opts) { - super({ - name: "InvalidGrantException", - $fault: "client", - ...opts, - }); - this.name = "InvalidGrantException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _InvalidGrantException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -var InvalidRequestException = class _InvalidRequestException extends SSOOIDCServiceException { - /** - * @internal - */ - constructor(opts) { - super({ - name: "InvalidRequestException", - $fault: "client", - ...opts, - }); - this.name = "InvalidRequestException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _InvalidRequestException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -var InvalidScopeException = class _InvalidScopeException extends SSOOIDCServiceException { - /** - * @internal - */ - constructor(opts) { - super({ - name: "InvalidScopeException", - $fault: "client", - ...opts, - }); - this.name = "InvalidScopeException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _InvalidScopeException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -var SlowDownException = class _SlowDownException extends SSOOIDCServiceException { - /** - * @internal - */ - constructor(opts) { - super({ - name: "SlowDownException", - $fault: "client", - ...opts, - }); - this.name = "SlowDownException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _SlowDownException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -var UnauthorizedClientException = class _UnauthorizedClientException extends SSOOIDCServiceException { - /** - * @internal - */ - constructor(opts) { - super({ - name: "UnauthorizedClientException", - $fault: "client", - ...opts, - }); - this.name = "UnauthorizedClientException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _UnauthorizedClientException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -var UnsupportedGrantTypeException = class _UnsupportedGrantTypeException extends SSOOIDCServiceException { - /** - * @internal - */ - constructor(opts) { - super({ - name: "UnsupportedGrantTypeException", - $fault: "client", - ...opts, - }); - this.name = "UnsupportedGrantTypeException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _UnsupportedGrantTypeException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -var InvalidClientMetadataException = class _InvalidClientMetadataException extends SSOOIDCServiceException { - /** - * @internal - */ - constructor(opts) { - super({ - name: "InvalidClientMetadataException", - $fault: "client", - ...opts, - }); - this.name = "InvalidClientMetadataException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _InvalidClientMetadataException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; - -// ../../clients/client-sso-oidc/src/protocols/Aws_restJson1.ts -var se_CreateTokenCommand = async (input, context) => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const headers = { - "content-type": "application/json", - }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}/token`; - let body; - body = JSON.stringify( - take(input, { - clientId: [], - clientSecret: [], - code: [], - deviceCode: [], - grantType: [], - redirectUri: [], - refreshToken: [], - scope: (_) => _json(_), - }) - ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); -}; -var se_RegisterClientCommand = async (input, context) => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const headers = { - "content-type": "application/json", - }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}/client/register`; - let body; - body = JSON.stringify( - take(input, { - clientName: [], - clientType: [], - scopes: (_) => _json(_), - }) - ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); -}; -var se_StartDeviceAuthorizationCommand = async (input, context) => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const headers = { - "content-type": "application/json", - }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}/device_authorization`; - let body; - body = JSON.stringify( - take(input, { - clientId: [], - clientSecret: [], - startUrl: [], - }) - ); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); -}; -var de_CreateTokenCommand = async (output, context) => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CreateTokenCommandError(output, context); - } - const contents = map({ - $metadata: deserializeMetadata(output), - }); - const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - const doc = take(data, { - accessToken: __expectString, - expiresIn: __expectInt32, - idToken: __expectString, - refreshToken: __expectString, - tokenType: __expectString, - }); - Object.assign(contents, doc); - return contents; -}; -var de_CreateTokenCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AccessDeniedException": - case "com.amazonaws.ssooidc#AccessDeniedException": - throw await de_AccessDeniedExceptionRes(parsedOutput, context); - case "AuthorizationPendingException": - case "com.amazonaws.ssooidc#AuthorizationPendingException": - throw await de_AuthorizationPendingExceptionRes(parsedOutput, context); - case "ExpiredTokenException": - case "com.amazonaws.ssooidc#ExpiredTokenException": - throw await de_ExpiredTokenExceptionRes(parsedOutput, context); - case "InternalServerException": - case "com.amazonaws.ssooidc#InternalServerException": - throw await de_InternalServerExceptionRes(parsedOutput, context); - case "InvalidClientException": - case "com.amazonaws.ssooidc#InvalidClientException": - throw await de_InvalidClientExceptionRes(parsedOutput, context); - case "InvalidGrantException": - case "com.amazonaws.ssooidc#InvalidGrantException": - throw await de_InvalidGrantExceptionRes(parsedOutput, context); - case "InvalidRequestException": - case "com.amazonaws.ssooidc#InvalidRequestException": - throw await de_InvalidRequestExceptionRes(parsedOutput, context); - case "InvalidScopeException": - case "com.amazonaws.ssooidc#InvalidScopeException": - throw await de_InvalidScopeExceptionRes(parsedOutput, context); - case "SlowDownException": - case "com.amazonaws.ssooidc#SlowDownException": - throw await de_SlowDownExceptionRes(parsedOutput, context); - case "UnauthorizedClientException": - case "com.amazonaws.ssooidc#UnauthorizedClientException": - throw await de_UnauthorizedClientExceptionRes(parsedOutput, context); - case "UnsupportedGrantTypeException": - case "com.amazonaws.ssooidc#UnsupportedGrantTypeException": - throw await de_UnsupportedGrantTypeExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -var de_RegisterClientCommand = async (output, context) => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_RegisterClientCommandError(output, context); - } - const contents = map({ - $metadata: deserializeMetadata(output), - }); - const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - const doc = take(data, { - authorizationEndpoint: __expectString, - clientId: __expectString, - clientIdIssuedAt: __expectLong, - clientSecret: __expectString, - clientSecretExpiresAt: __expectLong, - tokenEndpoint: __expectString, - }); - Object.assign(contents, doc); - return contents; -}; -var de_RegisterClientCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerException": - case "com.amazonaws.ssooidc#InternalServerException": - throw await de_InternalServerExceptionRes(parsedOutput, context); - case "InvalidClientMetadataException": - case "com.amazonaws.ssooidc#InvalidClientMetadataException": - throw await de_InvalidClientMetadataExceptionRes(parsedOutput, context); - case "InvalidRequestException": - case "com.amazonaws.ssooidc#InvalidRequestException": - throw await de_InvalidRequestExceptionRes(parsedOutput, context); - case "InvalidScopeException": - case "com.amazonaws.ssooidc#InvalidScopeException": - throw await de_InvalidScopeExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -var de_StartDeviceAuthorizationCommand = async (output, context) => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_StartDeviceAuthorizationCommandError(output, context); - } - const contents = map({ - $metadata: deserializeMetadata(output), - }); - const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - const doc = take(data, { - deviceCode: __expectString, - expiresIn: __expectInt32, - interval: __expectInt32, - userCode: __expectString, - verificationUri: __expectString, - verificationUriComplete: __expectString, - }); - Object.assign(contents, doc); - return contents; -}; -var de_StartDeviceAuthorizationCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerException": - case "com.amazonaws.ssooidc#InternalServerException": - throw await de_InternalServerExceptionRes(parsedOutput, context); - case "InvalidClientException": - case "com.amazonaws.ssooidc#InvalidClientException": - throw await de_InvalidClientExceptionRes(parsedOutput, context); - case "InvalidRequestException": - case "com.amazonaws.ssooidc#InvalidRequestException": - throw await de_InvalidRequestExceptionRes(parsedOutput, context); - case "SlowDownException": - case "com.amazonaws.ssooidc#SlowDownException": - throw await de_SlowDownExceptionRes(parsedOutput, context); - case "UnauthorizedClientException": - case "com.amazonaws.ssooidc#UnauthorizedClientException": - throw await de_UnauthorizedClientExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -var throwDefaultError = withBaseException(SSOOIDCServiceException); -var de_AccessDeniedExceptionRes = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - const doc = take(data, { - error: __expectString, - error_description: __expectString, - }); - Object.assign(contents, doc); - const exception = new AccessDeniedException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; -var de_AuthorizationPendingExceptionRes = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - const doc = take(data, { - error: __expectString, - error_description: __expectString, - }); - Object.assign(contents, doc); - const exception = new AuthorizationPendingException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; -var de_ExpiredTokenExceptionRes = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - const doc = take(data, { - error: __expectString, - error_description: __expectString, - }); - Object.assign(contents, doc); - const exception = new ExpiredTokenException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; -var de_InternalServerExceptionRes = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - const doc = take(data, { - error: __expectString, - error_description: __expectString, - }); - Object.assign(contents, doc); - const exception = new InternalServerException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; -var de_InvalidClientExceptionRes = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - const doc = take(data, { - error: __expectString, - error_description: __expectString, - }); - Object.assign(contents, doc); - const exception = new InvalidClientException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; -var de_InvalidClientMetadataExceptionRes = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - const doc = take(data, { - error: __expectString, - error_description: __expectString, - }); - Object.assign(contents, doc); - const exception = new InvalidClientMetadataException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; -var de_InvalidGrantExceptionRes = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - const doc = take(data, { - error: __expectString, - error_description: __expectString, - }); - Object.assign(contents, doc); - const exception = new InvalidGrantException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; -var de_InvalidRequestExceptionRes = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - const doc = take(data, { - error: __expectString, - error_description: __expectString, - }); - Object.assign(contents, doc); - const exception = new InvalidRequestException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; -var de_InvalidScopeExceptionRes = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - const doc = take(data, { - error: __expectString, - error_description: __expectString, - }); - Object.assign(contents, doc); - const exception = new InvalidScopeException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; -var de_SlowDownExceptionRes = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - const doc = take(data, { - error: __expectString, - error_description: __expectString, - }); - Object.assign(contents, doc); - const exception = new SlowDownException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; -var de_UnauthorizedClientExceptionRes = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - const doc = take(data, { - error: __expectString, - error_description: __expectString, - }); - Object.assign(contents, doc); - const exception = new UnauthorizedClientException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; -var de_UnsupportedGrantTypeExceptionRes = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - const doc = take(data, { - error: __expectString, - error_description: __expectString, - }); - Object.assign(contents, doc); - const exception = new UnsupportedGrantTypeException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; -var deserializeMetadata = (output) => ({ - httpStatusCode: output.statusCode, - requestId: - output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"], - extendedRequestId: output.headers["x-amz-id-2"], - cfId: output.headers["x-amz-cf-id"], -}); -var collectBodyString = (streamBody, context) => - collectBody(streamBody, context).then((body) => context.utf8Encoder(body)); -var parseBody = (streamBody, context) => - collectBodyString(streamBody, context).then((encoded) => { - if (encoded.length) { - return JSON.parse(encoded); - } - return {}; - }); -var parseErrorBody = async (errorBody, context) => { - const value = await parseBody(errorBody, context); - value.message = value.message ?? value.Message; - return value; -}; -var loadRestJsonErrorCode = (output, data) => { - const findKey = (object, key) => Object.keys(object).find((k2) => k2.toLowerCase() === key.toLowerCase()); - const sanitizeErrorCode = (rawValue) => { - let cleanValue = rawValue; - if (typeof cleanValue === "number") { - cleanValue = cleanValue.toString(); - } - if (cleanValue.indexOf(",") >= 0) { - cleanValue = cleanValue.split(",")[0]; - } - if (cleanValue.indexOf(":") >= 0) { - cleanValue = cleanValue.split(":")[0]; - } - if (cleanValue.indexOf("#") >= 0) { - cleanValue = cleanValue.split("#")[1]; - } - return cleanValue; - }; - const headerKey = findKey(output.headers, "x-amzn-errortype"); - if (headerKey !== void 0) { - return sanitizeErrorCode(output.headers[headerKey]); - } - if (data.code !== void 0) { - return sanitizeErrorCode(data.code); - } - if (data["__type"] !== void 0) { - return sanitizeErrorCode(data["__type"]); - } -}; - -// ../../clients/client-sso-oidc/src/commands/CreateTokenCommand.ts -class CreateTokenCommand extends $Command { - /** - * @public - */ - constructor(input) { - super(); - this.input = input; - } - // Start section: command_properties - // End section: command_properties - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - /** - * @internal - */ - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, CreateTokenCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSOOIDCClient"; - const commandName = "CreateTokenCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AWSSSOOIDCService", - operation: "CreateToken", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - /** - * @internal - */ - serialize(input, context) { - return se_CreateTokenCommand(input, context); - } - /** - * @internal - */ - deserialize(output, context) { - return de_CreateTokenCommand(output, context); - } - // Start section: command_body_extra - // End section: command_body_extra -} - -// ../../clients/client-sso-oidc/src/commands/RegisterClientCommand.ts -import { getEndpointPlugin as getEndpointPlugin2 } from "@smithy/middleware-endpoint"; -import { getSerdePlugin as getSerdePlugin2 } from "@smithy/middleware-serde"; -import { Command as $Command2 } from "@smithy/smithy-client"; -import { MetadataBearer as __MetadataBearer2, SMITHY_CONTEXT_KEY as SMITHY_CONTEXT_KEY2 } from "@smithy/types"; -class RegisterClientCommand extends $Command2 { - /** - * @public - */ - constructor(input) { - super(); - this.input = input; - } - // Start section: command_properties - // End section: command_properties - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - /** - * @internal - */ - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin2(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use( - getEndpointPlugin2(configuration, _RegisterClientCommand.getEndpointParameterInstructions()) - ); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSOOIDCClient"; - const commandName = "RegisterClientCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY2]: { - service: "AWSSSOOIDCService", - operation: "RegisterClient", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - /** - * @internal - */ - serialize(input, context) { - return se_RegisterClientCommand(input, context); - } - /** - * @internal - */ - deserialize(output, context) { - return de_RegisterClientCommand(output, context); - } - // Start section: command_body_extra - // End section: command_body_extra -} - -// ../../clients/client-sso-oidc/src/commands/StartDeviceAuthorizationCommand.ts -import { getEndpointPlugin as getEndpointPlugin3 } from "@smithy/middleware-endpoint"; -import { getSerdePlugin as getSerdePlugin3 } from "@smithy/middleware-serde"; -import { Command as $Command3 } from "@smithy/smithy-client"; -import { MetadataBearer as __MetadataBearer3, SMITHY_CONTEXT_KEY as SMITHY_CONTEXT_KEY3 } from "@smithy/types"; -class StartDeviceAuthorizationCommand extends $Command3 { - /** - * @public - */ - constructor(input) { - super(); - this.input = input; - } - // Start section: command_properties - // End section: command_properties - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - /** - * @internal - */ - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin3(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use( - getEndpointPlugin3(configuration, _StartDeviceAuthorizationCommand.getEndpointParameterInstructions()) - ); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSOOIDCClient"; - const commandName = "StartDeviceAuthorizationCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY3]: { - service: "AWSSSOOIDCService", - operation: "StartDeviceAuthorization", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - /** - * @internal - */ - serialize(input, context) { - return se_StartDeviceAuthorizationCommand(input, context); - } - /** - * @internal - */ - deserialize(output, context) { - return de_StartDeviceAuthorizationCommand(output, context); - } - // Start section: command_body_extra - // End section: command_body_extra -} - -// ../../clients/client-sso-oidc/src/SSOOIDC.ts -var commands = { - CreateTokenCommand, - RegisterClientCommand, - StartDeviceAuthorizationCommand, -}; -var SSOOIDC = class extends SSOOIDCClient {}; -createAggregatedClient(commands, SSOOIDC); -export { - AccessDeniedException, - AuthorizationPendingException, - CreateTokenCommand, - ExpiredTokenException, - InternalServerException, - InvalidClientException, - InvalidRequestException, - InvalidScopeException, - SSOOIDCClient, - SlowDownException, - UnauthorizedClientException, - UnsupportedGrantTypeException, -}; diff --git a/packages/token-providers/src/fromSso.ts b/packages/token-providers/src/fromSso.ts index 0674632b6563..91aada276a2f 100644 --- a/packages/token-providers/src/fromSso.ts +++ b/packages/token-providers/src/fromSso.ts @@ -1,4 +1,4 @@ -import { TokenIdentity, TokenIdentityProvider } from "@aws-sdk/types"; +import { CredentialProviderOptions, TokenIdentity, TokenIdentityProvider } from "@aws-sdk/types"; import { TokenProviderError } from "@smithy/property-provider"; import { getProfileName, @@ -20,7 +20,7 @@ import { writeSSOTokenToFile } from "./writeSSOTokenToFile"; */ const lastRefreshAttemptTime = new Date(0); -export interface FromSsoInit extends SourceProfileInit {} +export interface FromSsoInit extends SourceProfileInit, CredentialProviderOptions {} /** * Creates a token provider that will read from SSO token cache or ssoOidc.createToken() call. @@ -28,6 +28,8 @@ export interface FromSsoInit extends SourceProfileInit {} export const fromSso = (init: FromSsoInit = {}): TokenIdentityProvider => async () => { + init.logger?.debug("@aws-sdk/token-providers", "fromSso"); + const profiles = await parseKnownFiles(init); const profileName = getProfileName(init); const profile = profiles[profileName]; diff --git a/packages/token-providers/src/fromStatic.ts b/packages/token-providers/src/fromStatic.ts index eebde53d5084..58e738ca0c7f 100644 --- a/packages/token-providers/src/fromStatic.ts +++ b/packages/token-providers/src/fromStatic.ts @@ -1,7 +1,7 @@ -import { TokenIdentity, TokenIdentityProvider } from "@aws-sdk/types"; +import { CredentialProviderOptions, TokenIdentity, TokenIdentityProvider } from "@aws-sdk/types"; import { TokenProviderError } from "@smithy/property-provider"; -export interface FromStaticInit { +export interface FromStaticInit extends CredentialProviderOptions { token?: TokenIdentity; } @@ -9,8 +9,9 @@ export interface FromStaticInit { * Creates a token provider that will read from static token. */ export const fromStatic = - ({ token }: FromStaticInit): TokenIdentityProvider => + ({ token, logger }: FromStaticInit): TokenIdentityProvider => async () => { + logger?.debug("@aws-sdk/token-providers", "fromStatic"); if (!token || !token.token) { throw new TokenProviderError(`Please pass a valid token to fromStatic`, false); } diff --git a/packages/token-providers/src/getNewSsoOidcToken.spec.ts b/packages/token-providers/src/getNewSsoOidcToken.spec.ts index 44154d6b660c..7dddac5db81e 100644 --- a/packages/token-providers/src/getNewSsoOidcToken.spec.ts +++ b/packages/token-providers/src/getNewSsoOidcToken.spec.ts @@ -1,8 +1,9 @@ -import { CreateTokenCommand } from "./bundle/client-sso-oidc-node"; +import { CreateTokenCommand } from "@aws-sdk/client-sso-oidc"; + import { getNewSsoOidcToken } from "./getNewSsoOidcToken"; import { getSsoOidcClient } from "./getSsoOidcClient"; -jest.mock("./bundle/client-sso-oidc-node"); +jest.mock("@aws-sdk/client-sso-oidc"); jest.mock("./getSsoOidcClient"); describe(getNewSsoOidcToken.name, () => { diff --git a/packages/token-providers/src/getNewSsoOidcToken.ts b/packages/token-providers/src/getNewSsoOidcToken.ts index cd3cde4cde36..80401072bf3d 100644 --- a/packages/token-providers/src/getNewSsoOidcToken.ts +++ b/packages/token-providers/src/getNewSsoOidcToken.ts @@ -1,13 +1,15 @@ import { SSOToken } from "@smithy/shared-ini-file-loader"; -import { CreateTokenCommand } from "./bundle/client-sso-oidc-node"; import { getSsoOidcClient } from "./getSsoOidcClient"; /** * Returns a new SSO OIDC token from ssoOids.createToken() API call. + * @internal */ -export const getNewSsoOidcToken = (ssoToken: SSOToken, ssoRegion: string) => { - const ssoOidcClient = getSsoOidcClient(ssoRegion); +export const getNewSsoOidcToken = async (ssoToken: SSOToken, ssoRegion: string) => { + const { CreateTokenCommand } = await import("./loadSsoOidc"); + + const ssoOidcClient = await getSsoOidcClient(ssoRegion); return ssoOidcClient.send( new CreateTokenCommand({ clientId: ssoToken.clientId, diff --git a/packages/token-providers/src/getSsoOidcClient.spec.ts b/packages/token-providers/src/getSsoOidcClient.spec.ts index e4232e75ef18..a88600c04df9 100644 --- a/packages/token-providers/src/getSsoOidcClient.spec.ts +++ b/packages/token-providers/src/getSsoOidcClient.spec.ts @@ -1,6 +1,6 @@ -import { SSOOIDCClient } from "./bundle/client-sso-oidc-node"; +import { SSOOIDCClient } from "@aws-sdk/client-sso-oidc"; -jest.mock("./bundle/client-sso-oidc-node"); +jest.mock("@aws-sdk/client-sso-oidc"); describe("getSsoOidcClient", () => { const mockSsoRegion = "mockSsoRegion"; @@ -15,33 +15,33 @@ describe("getSsoOidcClient", () => { }); it("creates new SSOOIDC client", () => { - jest.isolateModules(() => { + jest.isolateModules(async () => { const { getSsoOidcClient } = require("./getSsoOidcClient"); - expect(getSsoOidcClient(mockSsoRegion)).toEqual(getMockClient(mockSsoRegion) as any); + expect(await getSsoOidcClient(mockSsoRegion)).toEqual(getMockClient(mockSsoRegion) as any); expect(SSOOIDCClient).toHaveBeenCalledTimes(1); }); }); it("returns SSOOIDC client from hash if already created", () => { - jest.isolateModules(() => { + jest.isolateModules(async () => { const { getSsoOidcClient } = require("./getSsoOidcClient"); - expect(getSsoOidcClient(mockSsoRegion)).toEqual(getMockClient(mockSsoRegion) as any); + expect(await getSsoOidcClient(mockSsoRegion)).toEqual(getMockClient(mockSsoRegion) as any); expect(SSOOIDCClient).toHaveBeenCalledTimes(1); - expect(getSsoOidcClient(mockSsoRegion)).toEqual(getMockClient(mockSsoRegion) as any); + expect(await getSsoOidcClient(mockSsoRegion)).toEqual(getMockClient(mockSsoRegion) as any); expect(SSOOIDCClient).toHaveBeenCalledTimes(1); }); }); it("creates new SSOOIDC client per region", () => { - jest.isolateModules(() => { + jest.isolateModules(async () => { const { getSsoOidcClient } = require("./getSsoOidcClient"); const mockSsoRegion1 = `${mockSsoRegion}1`; - expect(getSsoOidcClient(mockSsoRegion1)).toEqual(getMockClient(mockSsoRegion1) as any); + expect(await getSsoOidcClient(mockSsoRegion1)).toEqual(getMockClient(mockSsoRegion1) as any); expect(SSOOIDCClient).toHaveBeenCalledTimes(1); expect(SSOOIDCClient).toHaveBeenCalledWith({ region: mockSsoRegion1 }); const mockSsoRegion2 = `${mockSsoRegion}2`; - expect(getSsoOidcClient(mockSsoRegion2)).toEqual(getMockClient(mockSsoRegion2) as any); + expect(await getSsoOidcClient(mockSsoRegion2)).toEqual(getMockClient(mockSsoRegion2) as any); expect(SSOOIDCClient).toHaveBeenCalledTimes(2); expect(SSOOIDCClient).toHaveBeenNthCalledWith(2, { region: mockSsoRegion2 }); }); diff --git a/packages/token-providers/src/getSsoOidcClient.ts b/packages/token-providers/src/getSsoOidcClient.ts index c861aa430927..f2aefb3c58ce 100644 --- a/packages/token-providers/src/getSsoOidcClient.ts +++ b/packages/token-providers/src/getSsoOidcClient.ts @@ -1,12 +1,13 @@ -import { SSOOIDCClient } from "./bundle/client-sso-oidc-node"; - -const ssoOidcClientsHash: Record = {}; +const ssoOidcClientsHash: Record = {}; /** * Returns a SSOOIDC client for the given region. If the client has already been created, * it will be returned from the hash. + * @internal */ -export const getSsoOidcClient = (ssoRegion: string) => { +export const getSsoOidcClient = async (ssoRegion: string) => { + const { SSOOIDCClient } = await import("./loadSsoOidc"); + // return ssoOidsClient if already created. if (ssoOidcClientsHash[ssoRegion]) { return ssoOidcClientsHash[ssoRegion]; diff --git a/packages/token-providers/src/index.ts b/packages/token-providers/src/index.ts index ec5f9a646039..a0b176b4f272 100644 --- a/packages/token-providers/src/index.ts +++ b/packages/token-providers/src/index.ts @@ -1,4 +1,3 @@ -export * from "./bundle/client-sso-oidc-node"; export * from "./fromSso"; export * from "./fromStatic"; export * from "./nodeProvider"; diff --git a/packages/token-providers/src/loadSsoOidc.ts b/packages/token-providers/src/loadSsoOidc.ts new file mode 100644 index 000000000000..745efba1073e --- /dev/null +++ b/packages/token-providers/src/loadSsoOidc.ts @@ -0,0 +1,4 @@ +import { CreateTokenCommand, SSOOIDCClient } from "@aws-sdk/client-sso-oidc"; + +// This file must be loaded dynamically. +export { CreateTokenCommand, SSOOIDCClient }; diff --git a/packages/types/src/credentials.ts b/packages/types/src/credentials.ts index e5b44d7e93d2..fdd6d1a0c805 100644 --- a/packages/types/src/credentials.ts +++ b/packages/types/src/credentials.ts @@ -1,3 +1,5 @@ +import { Logger } from "@smithy/types"; + import { AwsCredentialIdentity } from "./identity"; import { Provider } from "./util"; @@ -16,3 +18,18 @@ export interface Credentials extends AwsCredentialIdentity {} * @deprecated Use {@link AwsCredentialIdentityProvider} */ export type CredentialProvider = Provider; + +/** + * @public + * + * Common options for credential providers. + */ +export type CredentialProviderOptions = { + /** + * This logger is only used to provide information + * on what credential providers were used during resolution. + * + * It does not log credentials. + */ + logger?: Logger; +}; diff --git a/private/aws-client-api-test/src/client-interface-tests/client-s3/impl/initializeWithMaximalConfiguration.ts b/private/aws-client-api-test/src/client-interface-tests/client-s3/impl/initializeWithMaximalConfiguration.ts index a9902c618d6e..bef20f5f9710 100644 --- a/private/aws-client-api-test/src/client-interface-tests/client-s3/impl/initializeWithMaximalConfiguration.ts +++ b/private/aws-client-api-test/src/client-interface-tests/client-s3/impl/initializeWithMaximalConfiguration.ts @@ -1,5 +1,4 @@ import { S3Client } from "@aws-sdk/client-s3"; -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { NODE_USE_ARN_REGION_CONFIG_OPTIONS } from "@aws-sdk/middleware-bucket-endpoint"; import { SignatureV4MultiRegion } from "@aws-sdk/signature-v4-multi-region"; @@ -56,7 +55,7 @@ export const initializeWithMaximalConfiguration = () => { runtime: "node", defaultsMode, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: credentialDefaultProvider, defaultUserAgentProvider: defaultUserAgent({ serviceId: "S3", clientVersion: "3.0.0-client-s3-interface-test" }), eventStreamSerdeProvider: eventStreamSerdeProvider, getAwsChunkedEncodingStream: getAwsChunkedEncodingStream, diff --git a/private/aws-protocoltests-json/src/runtimeConfig.ts b/private/aws-protocoltests-json/src/runtimeConfig.ts index 6381b44b2cd1..cdb1e8815afb 100644 --- a/private/aws-protocoltests-json/src/runtimeConfig.ts +++ b/private/aws-protocoltests-json/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; @@ -43,8 +42,7 @@ export const getRuntimeConfig = (config: JsonProtocolClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), diff --git a/private/weather/src/runtimeConfig.ts b/private/weather/src/runtimeConfig.ts index 8ff8af5d33ee..408360d2637f 100644 --- a/private/weather/src/runtimeConfig.ts +++ b/private/weather/src/runtimeConfig.ts @@ -2,7 +2,6 @@ // @ts-ignore: package.json will be imported from dist folders import packageInfo from "../package.json"; // eslint-disable-line -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; import { Hash } from "@smithy/hash-node"; @@ -31,8 +30,7 @@ export const getRuntimeConfig = (config: WeatherClientConfig) => { runtime: "node", defaultsMode, bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: - config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), + credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider, defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ clientVersion: packageInfo.version }), maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), diff --git a/scripts/runtime-dependency-version-check/check-dependencies.js b/scripts/runtime-dependency-version-check/check-dependencies.js index 7abbcf0c7b7d..4ca4e57204d4 100644 --- a/scripts/runtime-dependency-version-check/check-dependencies.js +++ b/scripts/runtime-dependency-version-check/check-dependencies.js @@ -51,7 +51,11 @@ const walk = require("../utils/walk"); ); for (const dependency of importedDependencies) { - if (!(dependency in pkgJson.dependencies) && dependency !== pkgJson.name) { + if ( + !(dependency in (pkgJson.dependencies ?? {})) && + !(dependency in (pkgJson.peerDependencies ?? {})) && + dependency !== pkgJson.name + ) { errors.push(`${dependency} undeclared but imported in ${pkgJson.name} ${file}}`); } } diff --git a/yarn.lock b/yarn.lock index b2c085fe45d6..fbf77528c698 100644 --- a/yarn.lock +++ b/yarn.lock @@ -12839,47 +12839,47 @@ tunnel-agent@^0.6.0: dependencies: safe-buffer "^5.0.1" -turbo-darwin-64@1.10.12: - version "1.10.12" - resolved "https://registry.yarnpkg.com/turbo-darwin-64/-/turbo-darwin-64-1.10.12.tgz#a3d9d6bd3436e795254865bc3d76a9c79aff8085" - integrity sha512-vmDfGVPl5/aFenAbOj3eOx3ePNcWVUyZwYr7taRl0ZBbmv2TzjRiFotO4vrKCiTVnbqjQqAFQWY2ugbqCI1kOQ== - -turbo-darwin-arm64@1.10.12: - version "1.10.12" - resolved "https://registry.yarnpkg.com/turbo-darwin-arm64/-/turbo-darwin-arm64-1.10.12.tgz#ff1d9466935687ca68c0dee88a909c34cc654357" - integrity sha512-3JliEESLNX2s7g54SOBqqkqJ7UhcOGkS0ywMr5SNuvF6kWVTbuUq7uBU/sVbGq8RwvK1ONlhPvJne5MUqBCTCQ== - -turbo-linux-64@1.10.12: - version "1.10.12" - resolved "https://registry.yarnpkg.com/turbo-linux-64/-/turbo-linux-64-1.10.12.tgz#d184a491cc67c07672d339e36427378d0fc6b82e" - integrity sha512-siYhgeX0DidIfHSgCR95b8xPee9enKSOjCzx7EjTLmPqPaCiVebRYvbOIYdQWRqiaKh9yfhUtFmtMOMScUf1gg== - -turbo-linux-arm64@1.10.12: - version "1.10.12" - resolved "https://registry.yarnpkg.com/turbo-linux-arm64/-/turbo-linux-arm64-1.10.12.tgz#44e6ca10b20fd4c59f8c85acf8366c7c09ebca81" - integrity sha512-K/ZhvD9l4SslclaMkTiIrnfcACgos79YcAo4kwc8bnMQaKuUeRpM15sxLpZp3xDjDg8EY93vsKyjaOhdFG2UbA== - -turbo-windows-64@1.10.12: - version "1.10.12" - resolved "https://registry.yarnpkg.com/turbo-windows-64/-/turbo-windows-64-1.10.12.tgz#36380eca8e7b0505d08b87a084efab1500b2a80e" - integrity sha512-7FSgSwvktWDNOqV65l9AbZwcoueAILeE4L7JvjauNASAjjbuzXGCEq5uN8AQU3U5BOFj4TdXrVmO2dX+lLu8Zg== - -turbo-windows-arm64@1.10.12: - version "1.10.12" - resolved "https://registry.yarnpkg.com/turbo-windows-arm64/-/turbo-windows-arm64-1.10.12.tgz#757ad59b9abf1949f22280bee6e8aad253743ba5" - integrity sha512-gCNXF52dwom1HLY9ry/cneBPOKTBHhzpqhMylcyvJP0vp9zeMQQkt6yjYv+6QdnmELC92CtKNp2FsNZo+z0pyw== - -turbo@^1.6.3: - version "1.10.12" - resolved "https://registry.yarnpkg.com/turbo/-/turbo-1.10.12.tgz#cd6f56b92da0600dae9fd94230483556a5c83187" - integrity sha512-WM3+jTfQWnB9W208pmP4oeehZcC6JQNlydb/ZHMRrhmQa+htGhWLCzd6Q9rLe0MwZLPpSPFV2/bN5egCLyoKjQ== +turbo-darwin-64@1.11.3: + version "1.11.3" + resolved "https://registry.yarnpkg.com/turbo-darwin-64/-/turbo-darwin-64-1.11.3.tgz#fb51f6fa030ee7a169d383b5f4f7641df6a3bdb8" + integrity sha512-IsOOg2bVbIt3o/X8Ew9fbQp5t1hTHN3fGNQYrPQwMR2W1kIAC6RfbVD4A9OeibPGyEPUpwOH79hZ9ydFH5kifw== + +turbo-darwin-arm64@1.11.3: + version "1.11.3" + resolved "https://registry.yarnpkg.com/turbo-darwin-arm64/-/turbo-darwin-arm64-1.11.3.tgz#f936cc7ba5565bd9be1ddc8ef4f15284044a63a5" + integrity sha512-FsJL7k0SaPbJzI/KCnrf/fi3PgCDCjTliMc/kEFkuWVA6Httc3Q4lxyLIIinz69q6JTx8wzh6yznUMzJRI3+dg== + +turbo-linux-64@1.11.3: + version "1.11.3" + resolved "https://registry.yarnpkg.com/turbo-linux-64/-/turbo-linux-64-1.11.3.tgz#86f56a91c05eea512a187079f7f7f860d8168be6" + integrity sha512-SvW7pvTVRGsqtSkII5w+wriZXvxqkluw5FO/MNAdFw0qmoov+PZ237+37/NgArqE3zVn1GX9P6nUx9VO+xcQAg== + +turbo-linux-arm64@1.11.3: + version "1.11.3" + resolved "https://registry.yarnpkg.com/turbo-linux-arm64/-/turbo-linux-arm64-1.11.3.tgz#0001dab6ded89154e2a5be21e87720daba953056" + integrity sha512-YhUfBi1deB3m+3M55X458J6B7RsIS7UtM3P1z13cUIhF+pOt65BgnaSnkHLwETidmhRh8Dl3GelaQGrB3RdCDw== + +turbo-windows-64@1.11.3: + version "1.11.3" + resolved "https://registry.yarnpkg.com/turbo-windows-64/-/turbo-windows-64-1.11.3.tgz#8d03c4fd8a46b81f2aecf60fc9845674c84d15a8" + integrity sha512-s+vEnuM2TiZuAUUUpmBHDr6vnNbJgj+5JYfnYmVklYs16kXh+EppafYQOAkcRIMAh7GjV3pLq5/uGqc7seZeHA== + +turbo-windows-arm64@1.11.3: + version "1.11.3" + resolved "https://registry.yarnpkg.com/turbo-windows-arm64/-/turbo-windows-arm64-1.11.3.tgz#cc436d1462f5450e97f985ba6d8d447272bb97db" + integrity sha512-ZR5z5Zpc7cASwfdRAV5yNScCZBsgGSbcwiA/u3farCacbPiXsfoWUkz28iyrx21/TRW0bi6dbsB2v17swa8bjw== + +turbo@^1.11.3: + version "1.11.3" + resolved "https://registry.yarnpkg.com/turbo/-/turbo-1.11.3.tgz#3bd823043585e1acfe125727bcecd4f91ef2103b" + integrity sha512-RCJOUFcFMQNIGKSjC9YmA5yVP1qtDiBA0Lv9VIgrXraI5Da1liVvl3VJPsoDNIR9eFMyA/aagx1iyj6UWem5hA== optionalDependencies: - turbo-darwin-64 "1.10.12" - turbo-darwin-arm64 "1.10.12" - turbo-linux-64 "1.10.12" - turbo-linux-arm64 "1.10.12" - turbo-windows-64 "1.10.12" - turbo-windows-arm64 "1.10.12" + turbo-darwin-64 "1.11.3" + turbo-darwin-arm64 "1.11.3" + turbo-linux-64 "1.11.3" + turbo-linux-arm64 "1.11.3" + turbo-windows-64 "1.11.3" + turbo-windows-arm64 "1.11.3" tweetnacl@^0.14.3, tweetnacl@~0.14.0: version "0.14.5"