From 9a5139690644b60a117fe6b1cad5c549da989f33 Mon Sep 17 00:00:00 2001 From: Trivikram Kamat <16024985+trivikr@users.noreply.github.com> Date: Thu, 19 Nov 2020 22:48:17 +0000 Subject: [PATCH 1/9] chore: remove customization specific to credentialProvider --- .../codegen/AddAwsRuntimeConfig.java | 30 ++++--------------- 1 file changed, 6 insertions(+), 24 deletions(-) diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddAwsRuntimeConfig.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddAwsRuntimeConfig.java index 64dd2bbf818de..c08f2a63e5517 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddAwsRuntimeConfig.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddAwsRuntimeConfig.java @@ -178,10 +178,6 @@ private Map> getDefaultConfig(LanguageTarget } } - /** - * Cognito Identity client doesn't require signing for some commands, so we are tolerant to - * credential config resolver failure. - */ private Map> getCredentialProviderConfig( ServiceShape service, LanguageTarget target @@ -191,15 +187,11 @@ private Map> getCredentialProviderConfig( case BROWSER: return MapUtils.of( "credentialDefaultProvider", writer -> { - if (serviceId.equals("Cognito Identity")) { - writer.write("credentialDefaultProvider: (() => {}) as any,"); - } else { - writer.addDependency(TypeScriptDependency.INVALID_DEPENDENCY); - writer.addImport("invalidFunction", "invalidFunction", - TypeScriptDependency.INVALID_DEPENDENCY.packageName); - writer.write( - "credentialDefaultProvider: invalidFunction(\"Credential is missing\") as any,"); - } + writer.addDependency(TypeScriptDependency.INVALID_DEPENDENCY); + writer.addImport("invalidFunction", "invalidFunction", + TypeScriptDependency.INVALID_DEPENDENCY.packageName); + writer.write( + "credentialDefaultProvider: invalidFunction(\"Credential is missing\") as any,"); } ); case NODE: @@ -208,17 +200,7 @@ private Map> getCredentialProviderConfig( writer.addDependency(AwsDependency.CREDENTIAL_PROVIDER_NODE); writer.addImport("defaultProvider", "credentialDefaultProvider", AwsDependency.CREDENTIAL_PROVIDER_NODE.packageName); - - if (serviceId.equals("Cognito Identity")) { - writer.openBlock("credentialDefaultProvider: ((options: any) => {", "}) as any,", () -> { - writer.write("try {").indent(); - writer.write("return credentialDefaultProvider(options);"); - writer.dedent().write("} catch(e){}"); - writer.write("return {}"); - }); - } else { - writer.write("credentialDefaultProvider,"); - } + writer.write("credentialDefaultProvider,"); } ); default: From 44cb52baf86320971c79418dc3e03178f6f01a77 Mon Sep 17 00:00:00 2001 From: Trivikram Kamat <16024985+trivikr@users.noreply.github.com> Date: Thu, 19 Nov 2020 23:00:56 +0000 Subject: [PATCH 2/9] chore(client-cognito-identity): populate credentialDefaultProvider --- clients/client-cognito-identity/runtimeConfig.browser.ts | 2 +- clients/client-cognito-identity/runtimeConfig.ts | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/clients/client-cognito-identity/runtimeConfig.browser.ts b/clients/client-cognito-identity/runtimeConfig.browser.ts index 146e1a7c804ed..399b09ffc9a88 100644 --- a/clients/client-cognito-identity/runtimeConfig.browser.ts +++ b/clients/client-cognito-identity/runtimeConfig.browser.ts @@ -21,7 +21,7 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: (() => {}) as any, + credentialDefaultProvider: invalidFunction("Credential is missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, region: invalidFunction("Region is missing") as any, diff --git a/clients/client-cognito-identity/runtimeConfig.ts b/clients/client-cognito-identity/runtimeConfig.ts index c59f39f9f13f8..d236052526af1 100644 --- a/clients/client-cognito-identity/runtimeConfig.ts +++ b/clients/client-cognito-identity/runtimeConfig.ts @@ -23,12 +23,7 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: ((options: any) => { - try { - return credentialDefaultProvider(options); - } catch (e) {} - return {}; - }) as any, + credentialDefaultProvider, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), From a01aa34db2a1128183a13545bca00a44a46d2268 Mon Sep 17 00:00:00 2001 From: Trivikram Kamat <16024985+trivikr@users.noreply.github.com> Date: Thu, 19 Nov 2020 23:06:38 +0000 Subject: [PATCH 3/9] chore: remove getCredentialProviderConfig from AddAwsRuntimeConfig --- .../codegen/AddAwsRuntimeConfig.java | 44 ++++++------------- 1 file changed, 13 insertions(+), 31 deletions(-) diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddAwsRuntimeConfig.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddAwsRuntimeConfig.java index c08f2a63e5517..e9e52e8fe466e 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddAwsRuntimeConfig.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddAwsRuntimeConfig.java @@ -124,7 +124,6 @@ public Map> getRuntimeConfigWriters( + "trait was found on " + service.getId()); } } - runtimeConfigs.putAll(getCredentialProviderConfig(service, target)); runtimeConfigs.putAll(getDefaultConfig(target)); return runtimeConfigs; } @@ -146,6 +145,13 @@ private Map> getDefaultConfig(LanguageTarget TypeScriptDependency.INVALID_DEPENDENCY.packageName); writer.write("region: invalidFunction(\"Region is missing\") as any,"); }, + "credentialDefaultProvider", writer -> { + writer.addDependency(TypeScriptDependency.INVALID_DEPENDENCY); + writer.addImport("invalidFunction", "invalidFunction", + TypeScriptDependency.INVALID_DEPENDENCY.packageName); + writer.write( + "credentialDefaultProvider: invalidFunction(\"Credential is missing\") as any,"); + }, "maxAttempts", writer -> { writer.addDependency(TypeScriptDependency.MIDDLEWARE_RETRY); writer.addImport("DEFAULT_MAX_ATTEMPTS", "DEFAULT_MAX_ATTEMPTS", @@ -167,6 +173,12 @@ private Map> getDefaultConfig(LanguageTarget writer.write( "region: loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),"); }, + "credentialDefaultProvider", writer -> { + writer.addDependency(AwsDependency.CREDENTIAL_PROVIDER_NODE); + writer.addImport("defaultProvider", "credentialDefaultProvider", + AwsDependency.CREDENTIAL_PROVIDER_NODE.packageName); + writer.write("credentialDefaultProvider,"); + }, "maxAttempts", writer -> { writer.addImport("NODE_MAX_ATTEMPT_CONFIG_OPTIONS", "NODE_MAX_ATTEMPT_CONFIG_OPTIONS", TypeScriptDependency.MIDDLEWARE_RETRY.packageName); @@ -177,34 +189,4 @@ private Map> getDefaultConfig(LanguageTarget return Collections.emptyMap(); } } - - private Map> getCredentialProviderConfig( - ServiceShape service, - LanguageTarget target - ) { - String serviceId = service.getTrait(ServiceTrait.class).map(ServiceTrait::getSdkId).orElse(""); - switch (target) { - case BROWSER: - return MapUtils.of( - "credentialDefaultProvider", writer -> { - writer.addDependency(TypeScriptDependency.INVALID_DEPENDENCY); - writer.addImport("invalidFunction", "invalidFunction", - TypeScriptDependency.INVALID_DEPENDENCY.packageName); - writer.write( - "credentialDefaultProvider: invalidFunction(\"Credential is missing\") as any,"); - } - ); - case NODE: - return MapUtils.of( - "credentialDefaultProvider", writer -> { - writer.addDependency(AwsDependency.CREDENTIAL_PROVIDER_NODE); - writer.addImport("defaultProvider", "credentialDefaultProvider", - AwsDependency.CREDENTIAL_PROVIDER_NODE.packageName); - writer.write("credentialDefaultProvider,"); - } - ); - default: - return Collections.emptyMap(); - } - } } From 9b734642f5b9fc0d21063a5ea2106ff3abf4fabc Mon Sep 17 00:00:00 2001 From: Trivikram Kamat <16024985+trivikr@users.noreply.github.com> Date: Wed, 25 Nov 2020 16:21:16 +0000 Subject: [PATCH 4/9] feat(invalid-dependency): add invalidAsyncFunction --- packages/invalid-dependency/src/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/invalid-dependency/src/index.ts b/packages/invalid-dependency/src/index.ts index b86c69139c0d3..d9207f0ea74d7 100644 --- a/packages/invalid-dependency/src/index.ts +++ b/packages/invalid-dependency/src/index.ts @@ -1,3 +1,5 @@ export const invalidFunction = (message: string) => () => { throw new Error(message); }; + +export const invalidAsyncFunction = (message: string) => () => Promise.resolve(new Error(message)); From cd987046bdb6cb8419814041df458fee8640133d Mon Sep 17 00:00:00 2001 From: Trivikram Kamat <16024985+trivikr@users.noreply.github.com> Date: Wed, 25 Nov 2020 16:25:35 +0000 Subject: [PATCH 5/9] chore(codegen): use invalidAsyncFunction for credential and region providers --- .../aws/typescript/codegen/AddAwsRuntimeConfig.java | 8 ++++---- .../aws/typescript/codegen/AddAwsRuntimeConfigTest.java | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddAwsRuntimeConfig.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddAwsRuntimeConfig.java index e9e52e8fe466e..eea99b89963fe 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddAwsRuntimeConfig.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddAwsRuntimeConfig.java @@ -141,16 +141,16 @@ private Map> getDefaultConfig(LanguageTarget return MapUtils.of( "region", writer -> { writer.addDependency(TypeScriptDependency.INVALID_DEPENDENCY); - writer.addImport("invalidFunction", "invalidFunction", + writer.addImport("invalidAsyncFunction", "invalidAsyncFunction", TypeScriptDependency.INVALID_DEPENDENCY.packageName); - writer.write("region: invalidFunction(\"Region is missing\") as any,"); + writer.write("region: invalidAsyncFunction(\"Region is missing\") as any,"); }, "credentialDefaultProvider", writer -> { writer.addDependency(TypeScriptDependency.INVALID_DEPENDENCY); - writer.addImport("invalidFunction", "invalidFunction", + writer.addImport("invalidAsyncFunction", "invalidAsyncFunction", TypeScriptDependency.INVALID_DEPENDENCY.packageName); writer.write( - "credentialDefaultProvider: invalidFunction(\"Credential is missing\") as any,"); + "credentialDefaultProvider: invalidAsyncFunction(\"Credential is missing\") as any,"); }, "maxAttempts", writer -> { writer.addDependency(TypeScriptDependency.MIDDLEWARE_RETRY); diff --git a/codegen/smithy-aws-typescript-codegen/src/test/java/software/amazon/smithy/aws/typescript/codegen/AddAwsRuntimeConfigTest.java b/codegen/smithy-aws-typescript-codegen/src/test/java/software/amazon/smithy/aws/typescript/codegen/AddAwsRuntimeConfigTest.java index f0b389611cd39..82328df9c7c46 100644 --- a/codegen/smithy-aws-typescript-codegen/src/test/java/software/amazon/smithy/aws/typescript/codegen/AddAwsRuntimeConfigTest.java +++ b/codegen/smithy-aws-typescript-codegen/src/test/java/software/amazon/smithy/aws/typescript/codegen/AddAwsRuntimeConfigTest.java @@ -37,7 +37,7 @@ public void addsAwsRuntimeConfigSettings() { // Check that both the config files were updated. assertThat(manifest.getFileString("runtimeConfig.ts").get(), containsString("credentialDefaultProvider")); - assertThat(manifest.getFileString("runtimeConfig.browser.ts").get(), containsString("invalidFunction")); + assertThat(manifest.getFileString("runtimeConfig.browser.ts").get(), containsString("invalidAsyncFunction")); // Check that the dependency interface was updated. assertThat(manifest.getFileString("NotSameClient.ts").get(), containsString("credentialDefaultProvider?")); From 67ef2564af5f14c38d602e38678df606cae64b0b Mon Sep 17 00:00:00 2001 From: Trivikram Kamat <16024985+trivikr@users.noreply.github.com> Date: Wed, 25 Nov 2020 16:35:51 +0000 Subject: [PATCH 6/9] chore: fix gradle build errors --- .../smithy/aws/typescript/codegen/AddAwsRuntimeConfig.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddAwsRuntimeConfig.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddAwsRuntimeConfig.java index eea99b89963fe..6c8a81f188517 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddAwsRuntimeConfig.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddAwsRuntimeConfig.java @@ -150,7 +150,8 @@ private Map> getDefaultConfig(LanguageTarget writer.addImport("invalidAsyncFunction", "invalidAsyncFunction", TypeScriptDependency.INVALID_DEPENDENCY.packageName); writer.write( - "credentialDefaultProvider: invalidAsyncFunction(\"Credential is missing\") as any,"); + "credentialDefaultProvider: invalidAsyncFunction(\"Credential" + + "is missing\") as any,"); }, "maxAttempts", writer -> { writer.addDependency(TypeScriptDependency.MIDDLEWARE_RETRY); From c0cee062067373c7a6b076a498eab23c666fa990 Mon Sep 17 00:00:00 2001 From: Trivikram Kamat <16024985+trivikr@users.noreply.github.com> Date: Wed, 25 Nov 2020 16:44:46 +0000 Subject: [PATCH 7/9] chore: use invalidAsyncFunction in region and credential providers --- clients/client-accessanalyzer/runtimeConfig.browser.ts | 6 +++--- clients/client-acm-pca/runtimeConfig.browser.ts | 6 +++--- clients/client-acm/runtimeConfig.browser.ts | 6 +++--- clients/client-alexa-for-business/runtimeConfig.browser.ts | 6 +++--- clients/client-amplify/runtimeConfig.browser.ts | 6 +++--- clients/client-api-gateway/runtimeConfig.browser.ts | 6 +++--- .../client-apigatewaymanagementapi/runtimeConfig.browser.ts | 6 +++--- clients/client-apigatewayv2/runtimeConfig.browser.ts | 6 +++--- clients/client-app-mesh/runtimeConfig.browser.ts | 6 +++--- clients/client-appconfig/runtimeConfig.browser.ts | 6 +++--- clients/client-appflow/runtimeConfig.browser.ts | 6 +++--- .../runtimeConfig.browser.ts | 6 +++--- .../runtimeConfig.browser.ts | 6 +++--- .../client-application-insights/runtimeConfig.browser.ts | 6 +++--- clients/client-appstream/runtimeConfig.browser.ts | 6 +++--- clients/client-appsync/runtimeConfig.browser.ts | 6 +++--- clients/client-athena/runtimeConfig.browser.ts | 6 +++--- clients/client-auto-scaling-plans/runtimeConfig.browser.ts | 6 +++--- clients/client-auto-scaling/runtimeConfig.browser.ts | 6 +++--- clients/client-backup/runtimeConfig.browser.ts | 6 +++--- clients/client-batch/runtimeConfig.browser.ts | 6 +++--- clients/client-braket/runtimeConfig.browser.ts | 6 +++--- clients/client-budgets/runtimeConfig.browser.ts | 6 +++--- clients/client-chime/runtimeConfig.browser.ts | 6 +++--- clients/client-cloud9/runtimeConfig.browser.ts | 6 +++--- clients/client-clouddirectory/runtimeConfig.browser.ts | 6 +++--- clients/client-cloudformation/runtimeConfig.browser.ts | 6 +++--- clients/client-cloudfront/runtimeConfig.browser.ts | 6 +++--- clients/client-cloudhsm-v2/runtimeConfig.browser.ts | 6 +++--- clients/client-cloudhsm/runtimeConfig.browser.ts | 6 +++--- clients/client-cloudsearch-domain/runtimeConfig.browser.ts | 6 +++--- clients/client-cloudsearch/runtimeConfig.browser.ts | 6 +++--- clients/client-cloudtrail/runtimeConfig.browser.ts | 6 +++--- clients/client-cloudwatch-events/runtimeConfig.browser.ts | 6 +++--- clients/client-cloudwatch-logs/runtimeConfig.browser.ts | 6 +++--- clients/client-cloudwatch/runtimeConfig.browser.ts | 6 +++--- clients/client-codeartifact/runtimeConfig.browser.ts | 6 +++--- clients/client-codebuild/runtimeConfig.browser.ts | 6 +++--- clients/client-codecommit/runtimeConfig.browser.ts | 6 +++--- clients/client-codedeploy/runtimeConfig.browser.ts | 6 +++--- clients/client-codeguru-reviewer/runtimeConfig.browser.ts | 6 +++--- clients/client-codeguruprofiler/runtimeConfig.browser.ts | 6 +++--- clients/client-codepipeline/runtimeConfig.browser.ts | 6 +++--- .../client-codestar-connections/runtimeConfig.browser.ts | 6 +++--- .../client-codestar-notifications/runtimeConfig.browser.ts | 6 +++--- clients/client-codestar/runtimeConfig.browser.ts | 6 +++--- .../runtimeConfig.browser.ts | 6 +++--- clients/client-cognito-identity/runtimeConfig.browser.ts | 6 +++--- clients/client-cognito-sync/runtimeConfig.browser.ts | 6 +++--- clients/client-comprehend/runtimeConfig.browser.ts | 6 +++--- clients/client-comprehendmedical/runtimeConfig.browser.ts | 6 +++--- clients/client-compute-optimizer/runtimeConfig.browser.ts | 6 +++--- clients/client-config-service/runtimeConfig.browser.ts | 6 +++--- clients/client-connect/runtimeConfig.browser.ts | 6 +++--- clients/client-connectparticipant/runtimeConfig.browser.ts | 6 +++--- .../runtimeConfig.browser.ts | 6 +++--- clients/client-cost-explorer/runtimeConfig.browser.ts | 6 +++--- clients/client-data-pipeline/runtimeConfig.browser.ts | 6 +++--- .../runtimeConfig.browser.ts | 6 +++--- clients/client-databrew/runtimeConfig.browser.ts | 6 +++--- clients/client-dataexchange/runtimeConfig.browser.ts | 6 +++--- clients/client-datasync/runtimeConfig.browser.ts | 6 +++--- clients/client-dax/runtimeConfig.browser.ts | 6 +++--- clients/client-detective/runtimeConfig.browser.ts | 6 +++--- clients/client-device-farm/runtimeConfig.browser.ts | 6 +++--- clients/client-direct-connect/runtimeConfig.browser.ts | 6 +++--- clients/client-directory-service/runtimeConfig.browser.ts | 6 +++--- clients/client-dlm/runtimeConfig.browser.ts | 6 +++--- clients/client-docdb/runtimeConfig.browser.ts | 6 +++--- clients/client-dynamodb-streams/runtimeConfig.browser.ts | 6 +++--- clients/client-dynamodb/runtimeConfig.browser.ts | 6 +++--- clients/client-ebs/runtimeConfig.browser.ts | 6 +++--- .../client-ec2-instance-connect/runtimeConfig.browser.ts | 6 +++--- clients/client-ec2/runtimeConfig.browser.ts | 6 +++--- clients/client-ecr/runtimeConfig.browser.ts | 6 +++--- clients/client-ecs/runtimeConfig.browser.ts | 6 +++--- clients/client-efs/runtimeConfig.browser.ts | 6 +++--- clients/client-eks/runtimeConfig.browser.ts | 6 +++--- clients/client-elastic-beanstalk/runtimeConfig.browser.ts | 6 +++--- clients/client-elastic-inference/runtimeConfig.browser.ts | 6 +++--- .../runtimeConfig.browser.ts | 6 +++--- .../client-elastic-load-balancing/runtimeConfig.browser.ts | 6 +++--- clients/client-elastic-transcoder/runtimeConfig.browser.ts | 6 +++--- clients/client-elasticache/runtimeConfig.browser.ts | 6 +++--- .../client-elasticsearch-service/runtimeConfig.browser.ts | 6 +++--- clients/client-emr/runtimeConfig.browser.ts | 6 +++--- clients/client-eventbridge/runtimeConfig.browser.ts | 6 +++--- clients/client-firehose/runtimeConfig.browser.ts | 6 +++--- clients/client-fms/runtimeConfig.browser.ts | 6 +++--- clients/client-forecast/runtimeConfig.browser.ts | 6 +++--- clients/client-forecastquery/runtimeConfig.browser.ts | 6 +++--- clients/client-frauddetector/runtimeConfig.browser.ts | 6 +++--- clients/client-fsx/runtimeConfig.browser.ts | 6 +++--- clients/client-gamelift/runtimeConfig.browser.ts | 6 +++--- clients/client-glacier/runtimeConfig.browser.ts | 6 +++--- clients/client-global-accelerator/runtimeConfig.browser.ts | 6 +++--- clients/client-glue/runtimeConfig.browser.ts | 6 +++--- clients/client-greengrass/runtimeConfig.browser.ts | 6 +++--- clients/client-groundstation/runtimeConfig.browser.ts | 6 +++--- clients/client-guardduty/runtimeConfig.browser.ts | 6 +++--- clients/client-health/runtimeConfig.browser.ts | 6 +++--- clients/client-honeycode/runtimeConfig.browser.ts | 6 +++--- clients/client-iam/runtimeConfig.browser.ts | 6 +++--- clients/client-identitystore/runtimeConfig.browser.ts | 6 +++--- clients/client-imagebuilder/runtimeConfig.browser.ts | 6 +++--- clients/client-inspector/runtimeConfig.browser.ts | 6 +++--- .../runtimeConfig.browser.ts | 6 +++--- clients/client-iot-1click-projects/runtimeConfig.browser.ts | 6 +++--- clients/client-iot-data-plane/runtimeConfig.browser.ts | 6 +++--- clients/client-iot-events-data/runtimeConfig.browser.ts | 6 +++--- clients/client-iot-events/runtimeConfig.browser.ts | 6 +++--- clients/client-iot-jobs-data-plane/runtimeConfig.browser.ts | 6 +++--- clients/client-iot/runtimeConfig.browser.ts | 6 +++--- clients/client-iotanalytics/runtimeConfig.browser.ts | 6 +++--- clients/client-iotsecuretunneling/runtimeConfig.browser.ts | 6 +++--- clients/client-iotsitewise/runtimeConfig.browser.ts | 6 +++--- clients/client-iotthingsgraph/runtimeConfig.browser.ts | 6 +++--- clients/client-ivs/runtimeConfig.browser.ts | 6 +++--- clients/client-kafka/runtimeConfig.browser.ts | 6 +++--- clients/client-kendra/runtimeConfig.browser.ts | 6 +++--- .../client-kinesis-analytics-v2/runtimeConfig.browser.ts | 6 +++--- clients/client-kinesis-analytics/runtimeConfig.browser.ts | 6 +++--- .../runtimeConfig.browser.ts | 6 +++--- clients/client-kinesis-video-media/runtimeConfig.browser.ts | 6 +++--- .../client-kinesis-video-signaling/runtimeConfig.browser.ts | 6 +++--- clients/client-kinesis-video/runtimeConfig.browser.ts | 6 +++--- clients/client-kinesis/runtimeConfig.browser.ts | 6 +++--- clients/client-kms/runtimeConfig.browser.ts | 6 +++--- clients/client-lakeformation/runtimeConfig.browser.ts | 6 +++--- clients/client-lambda/runtimeConfig.browser.ts | 6 +++--- .../runtimeConfig.browser.ts | 6 +++--- clients/client-lex-runtime-service/runtimeConfig.browser.ts | 6 +++--- clients/client-license-manager/runtimeConfig.browser.ts | 6 +++--- clients/client-lightsail/runtimeConfig.browser.ts | 6 +++--- clients/client-machine-learning/runtimeConfig.browser.ts | 6 +++--- clients/client-macie/runtimeConfig.browser.ts | 6 +++--- clients/client-macie2/runtimeConfig.browser.ts | 6 +++--- clients/client-managedblockchain/runtimeConfig.browser.ts | 6 +++--- clients/client-marketplace-catalog/runtimeConfig.browser.ts | 6 +++--- .../runtimeConfig.browser.ts | 6 +++--- .../runtimeConfig.browser.ts | 6 +++--- .../client-marketplace-metering/runtimeConfig.browser.ts | 6 +++--- clients/client-mediaconnect/runtimeConfig.browser.ts | 6 +++--- clients/client-mediaconvert/runtimeConfig.browser.ts | 6 +++--- clients/client-medialive/runtimeConfig.browser.ts | 6 +++--- clients/client-mediapackage-vod/runtimeConfig.browser.ts | 6 +++--- clients/client-mediapackage/runtimeConfig.browser.ts | 6 +++--- clients/client-mediastore-data/runtimeConfig.browser.ts | 6 +++--- clients/client-mediastore/runtimeConfig.browser.ts | 6 +++--- clients/client-mediatailor/runtimeConfig.browser.ts | 6 +++--- clients/client-migration-hub/runtimeConfig.browser.ts | 6 +++--- clients/client-migrationhub-config/runtimeConfig.browser.ts | 6 +++--- clients/client-mobile/runtimeConfig.browser.ts | 6 +++--- clients/client-mq/runtimeConfig.browser.ts | 6 +++--- clients/client-mturk/runtimeConfig.browser.ts | 6 +++--- clients/client-neptune/runtimeConfig.browser.ts | 6 +++--- clients/client-network-firewall/runtimeConfig.browser.ts | 6 +++--- clients/client-networkmanager/runtimeConfig.browser.ts | 6 +++--- clients/client-opsworks/runtimeConfig.browser.ts | 6 +++--- clients/client-opsworkscm/runtimeConfig.browser.ts | 6 +++--- clients/client-organizations/runtimeConfig.browser.ts | 6 +++--- clients/client-outposts/runtimeConfig.browser.ts | 6 +++--- clients/client-personalize-events/runtimeConfig.browser.ts | 6 +++--- clients/client-personalize-runtime/runtimeConfig.browser.ts | 6 +++--- clients/client-personalize/runtimeConfig.browser.ts | 6 +++--- clients/client-pi/runtimeConfig.browser.ts | 6 +++--- clients/client-pinpoint-email/runtimeConfig.browser.ts | 6 +++--- clients/client-pinpoint-sms-voice/runtimeConfig.browser.ts | 6 +++--- clients/client-pinpoint/runtimeConfig.browser.ts | 6 +++--- clients/client-polly/runtimeConfig.browser.ts | 6 +++--- clients/client-pricing/runtimeConfig.browser.ts | 6 +++--- clients/client-qldb-session/runtimeConfig.browser.ts | 6 +++--- clients/client-qldb/runtimeConfig.browser.ts | 6 +++--- clients/client-quicksight/runtimeConfig.browser.ts | 6 +++--- clients/client-ram/runtimeConfig.browser.ts | 6 +++--- clients/client-rds-data/runtimeConfig.browser.ts | 6 +++--- clients/client-rds/runtimeConfig.browser.ts | 6 +++--- clients/client-redshift-data/runtimeConfig.browser.ts | 6 +++--- clients/client-redshift/runtimeConfig.browser.ts | 6 +++--- clients/client-rekognition/runtimeConfig.browser.ts | 6 +++--- .../runtimeConfig.browser.ts | 6 +++--- clients/client-resource-groups/runtimeConfig.browser.ts | 6 +++--- clients/client-robomaker/runtimeConfig.browser.ts | 6 +++--- clients/client-route-53-domains/runtimeConfig.browser.ts | 6 +++--- clients/client-route-53/runtimeConfig.browser.ts | 6 +++--- clients/client-route53resolver/runtimeConfig.browser.ts | 6 +++--- clients/client-s3-control/runtimeConfig.browser.ts | 6 +++--- clients/client-s3/runtimeConfig.browser.ts | 6 +++--- clients/client-s3outposts/runtimeConfig.browser.ts | 6 +++--- .../client-sagemaker-a2i-runtime/runtimeConfig.browser.ts | 6 +++--- clients/client-sagemaker-runtime/runtimeConfig.browser.ts | 6 +++--- clients/client-sagemaker/runtimeConfig.browser.ts | 6 +++--- clients/client-savingsplans/runtimeConfig.browser.ts | 6 +++--- clients/client-schemas/runtimeConfig.browser.ts | 6 +++--- clients/client-secrets-manager/runtimeConfig.browser.ts | 6 +++--- clients/client-securityhub/runtimeConfig.browser.ts | 6 +++--- .../runtimeConfig.browser.ts | 6 +++--- .../runtimeConfig.browser.ts | 6 +++--- clients/client-service-catalog/runtimeConfig.browser.ts | 6 +++--- clients/client-service-quotas/runtimeConfig.browser.ts | 6 +++--- clients/client-servicediscovery/runtimeConfig.browser.ts | 6 +++--- clients/client-ses/runtimeConfig.browser.ts | 6 +++--- clients/client-sesv2/runtimeConfig.browser.ts | 6 +++--- clients/client-sfn/runtimeConfig.browser.ts | 6 +++--- clients/client-shield/runtimeConfig.browser.ts | 6 +++--- clients/client-signer/runtimeConfig.browser.ts | 6 +++--- clients/client-sms/runtimeConfig.browser.ts | 6 +++--- clients/client-snowball/runtimeConfig.browser.ts | 6 +++--- clients/client-sns/runtimeConfig.browser.ts | 6 +++--- clients/client-sqs/runtimeConfig.browser.ts | 6 +++--- clients/client-ssm/runtimeConfig.browser.ts | 6 +++--- clients/client-sso-admin/runtimeConfig.browser.ts | 6 +++--- clients/client-sso-oidc/runtimeConfig.browser.ts | 6 +++--- clients/client-sso/runtimeConfig.browser.ts | 6 +++--- clients/client-storage-gateway/runtimeConfig.browser.ts | 6 +++--- clients/client-sts/runtimeConfig.browser.ts | 6 +++--- clients/client-support/runtimeConfig.browser.ts | 6 +++--- clients/client-swf/runtimeConfig.browser.ts | 6 +++--- clients/client-synthetics/runtimeConfig.browser.ts | 6 +++--- clients/client-textract/runtimeConfig.browser.ts | 6 +++--- clients/client-timestream-query/runtimeConfig.browser.ts | 6 +++--- clients/client-timestream-write/runtimeConfig.browser.ts | 6 +++--- .../client-transcribe-streaming/runtimeConfig.browser.ts | 6 +++--- clients/client-transcribe/runtimeConfig.browser.ts | 6 +++--- clients/client-transfer/runtimeConfig.browser.ts | 6 +++--- clients/client-translate/runtimeConfig.browser.ts | 6 +++--- clients/client-waf-regional/runtimeConfig.browser.ts | 6 +++--- clients/client-waf/runtimeConfig.browser.ts | 6 +++--- clients/client-wafv2/runtimeConfig.browser.ts | 6 +++--- clients/client-workdocs/runtimeConfig.browser.ts | 6 +++--- clients/client-worklink/runtimeConfig.browser.ts | 6 +++--- clients/client-workmail/runtimeConfig.browser.ts | 6 +++--- clients/client-workmailmessageflow/runtimeConfig.browser.ts | 6 +++--- clients/client-workspaces/runtimeConfig.browser.ts | 6 +++--- clients/client-xray/runtimeConfig.browser.ts | 6 +++--- protocol_tests/aws-ec2/runtimeConfig.browser.ts | 6 +++--- protocol_tests/aws-json/runtimeConfig.browser.ts | 6 +++--- protocol_tests/aws-query/runtimeConfig.browser.ts | 6 +++--- protocol_tests/aws-restjson/runtimeConfig.browser.ts | 6 +++--- protocol_tests/aws-restxml/runtimeConfig.browser.ts | 6 +++--- 240 files changed, 720 insertions(+), 720 deletions(-) diff --git a/clients/client-accessanalyzer/runtimeConfig.browser.ts b/clients/client-accessanalyzer/runtimeConfig.browser.ts index 8b1b50a2a43c9..aea62fb426257 100644 --- a/clients/client-accessanalyzer/runtimeConfig.browser.ts +++ b/clients/client-accessanalyzer/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-acm-pca/runtimeConfig.browser.ts b/clients/client-acm-pca/runtimeConfig.browser.ts index 90ffd3b77df6e..9b071e3e9dd57 100644 --- a/clients/client-acm-pca/runtimeConfig.browser.ts +++ b/clients/client-acm-pca/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-acm/runtimeConfig.browser.ts b/clients/client-acm/runtimeConfig.browser.ts index de4dbeb0f4be4..92c538fdd6816 100644 --- a/clients/client-acm/runtimeConfig.browser.ts +++ b/clients/client-acm/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-alexa-for-business/runtimeConfig.browser.ts b/clients/client-alexa-for-business/runtimeConfig.browser.ts index 0dfea46d68b72..9b181024e2927 100644 --- a/clients/client-alexa-for-business/runtimeConfig.browser.ts +++ b/clients/client-alexa-for-business/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-amplify/runtimeConfig.browser.ts b/clients/client-amplify/runtimeConfig.browser.ts index 83571a02912c0..94d63be37d9d7 100644 --- a/clients/client-amplify/runtimeConfig.browser.ts +++ b/clients/client-amplify/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-api-gateway/runtimeConfig.browser.ts b/clients/client-api-gateway/runtimeConfig.browser.ts index c2ab16b9ce7dc..fd249324763eb 100644 --- a/clients/client-api-gateway/runtimeConfig.browser.ts +++ b/clients/client-api-gateway/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-apigatewaymanagementapi/runtimeConfig.browser.ts b/clients/client-apigatewaymanagementapi/runtimeConfig.browser.ts index c126ce3c0f8b8..ee28d5c154cf4 100644 --- a/clients/client-apigatewaymanagementapi/runtimeConfig.browser.ts +++ b/clients/client-apigatewaymanagementapi/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-apigatewayv2/runtimeConfig.browser.ts b/clients/client-apigatewayv2/runtimeConfig.browser.ts index d7fc28aab3c9b..b3ad587e97f7f 100644 --- a/clients/client-apigatewayv2/runtimeConfig.browser.ts +++ b/clients/client-apigatewayv2/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-app-mesh/runtimeConfig.browser.ts b/clients/client-app-mesh/runtimeConfig.browser.ts index 67720f4812eac..828cbab883916 100644 --- a/clients/client-app-mesh/runtimeConfig.browser.ts +++ b/clients/client-app-mesh/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-appconfig/runtimeConfig.browser.ts b/clients/client-appconfig/runtimeConfig.browser.ts index f650c4ff3e5fe..2cf27d1514fa7 100644 --- a/clients/client-appconfig/runtimeConfig.browser.ts +++ b/clients/client-appconfig/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-appflow/runtimeConfig.browser.ts b/clients/client-appflow/runtimeConfig.browser.ts index 29ab56d33b279..7ea6f6d852d17 100644 --- a/clients/client-appflow/runtimeConfig.browser.ts +++ b/clients/client-appflow/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-application-auto-scaling/runtimeConfig.browser.ts b/clients/client-application-auto-scaling/runtimeConfig.browser.ts index ea94bbe254b3c..ba86a5f99019d 100644 --- a/clients/client-application-auto-scaling/runtimeConfig.browser.ts +++ b/clients/client-application-auto-scaling/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-application-discovery-service/runtimeConfig.browser.ts b/clients/client-application-discovery-service/runtimeConfig.browser.ts index 2b60555451c4f..ce53f6ccf93d8 100644 --- a/clients/client-application-discovery-service/runtimeConfig.browser.ts +++ b/clients/client-application-discovery-service/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-application-insights/runtimeConfig.browser.ts b/clients/client-application-insights/runtimeConfig.browser.ts index 8681b5d42fdf1..42308c08870d7 100644 --- a/clients/client-application-insights/runtimeConfig.browser.ts +++ b/clients/client-application-insights/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-appstream/runtimeConfig.browser.ts b/clients/client-appstream/runtimeConfig.browser.ts index 915df1b1d9d70..800136672f53e 100644 --- a/clients/client-appstream/runtimeConfig.browser.ts +++ b/clients/client-appstream/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-appsync/runtimeConfig.browser.ts b/clients/client-appsync/runtimeConfig.browser.ts index 8a7310381c7cd..134b4d6e52519 100644 --- a/clients/client-appsync/runtimeConfig.browser.ts +++ b/clients/client-appsync/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-athena/runtimeConfig.browser.ts b/clients/client-athena/runtimeConfig.browser.ts index d9d5632257f85..688953830511d 100644 --- a/clients/client-athena/runtimeConfig.browser.ts +++ b/clients/client-athena/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-auto-scaling-plans/runtimeConfig.browser.ts b/clients/client-auto-scaling-plans/runtimeConfig.browser.ts index bfcbf2cbe6276..e186de94b36ae 100644 --- a/clients/client-auto-scaling-plans/runtimeConfig.browser.ts +++ b/clients/client-auto-scaling-plans/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-auto-scaling/runtimeConfig.browser.ts b/clients/client-auto-scaling/runtimeConfig.browser.ts index b87f784c4d096..fcfd7609814b8 100644 --- a/clients/client-auto-scaling/runtimeConfig.browser.ts +++ b/clients/client-auto-scaling/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-backup/runtimeConfig.browser.ts b/clients/client-backup/runtimeConfig.browser.ts index 277e57de5ac33..20fc2f3c06716 100644 --- a/clients/client-backup/runtimeConfig.browser.ts +++ b/clients/client-backup/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-batch/runtimeConfig.browser.ts b/clients/client-batch/runtimeConfig.browser.ts index a10942f07f0ee..8099a7dea94bb 100644 --- a/clients/client-batch/runtimeConfig.browser.ts +++ b/clients/client-batch/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-braket/runtimeConfig.browser.ts b/clients/client-braket/runtimeConfig.browser.ts index 3c37013f39e14..c2dc763f049bd 100644 --- a/clients/client-braket/runtimeConfig.browser.ts +++ b/clients/client-braket/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-budgets/runtimeConfig.browser.ts b/clients/client-budgets/runtimeConfig.browser.ts index 725de9caa3ed5..28528ee7c7b2f 100644 --- a/clients/client-budgets/runtimeConfig.browser.ts +++ b/clients/client-budgets/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-chime/runtimeConfig.browser.ts b/clients/client-chime/runtimeConfig.browser.ts index c0471764a163d..63562750f1b96 100644 --- a/clients/client-chime/runtimeConfig.browser.ts +++ b/clients/client-chime/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-cloud9/runtimeConfig.browser.ts b/clients/client-cloud9/runtimeConfig.browser.ts index eac45da3e3427..6bd17f48efdc8 100644 --- a/clients/client-cloud9/runtimeConfig.browser.ts +++ b/clients/client-cloud9/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-clouddirectory/runtimeConfig.browser.ts b/clients/client-clouddirectory/runtimeConfig.browser.ts index b242a7ee14138..784991fb10fd1 100644 --- a/clients/client-clouddirectory/runtimeConfig.browser.ts +++ b/clients/client-clouddirectory/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-cloudformation/runtimeConfig.browser.ts b/clients/client-cloudformation/runtimeConfig.browser.ts index ff205622d8d64..2608f64837d93 100644 --- a/clients/client-cloudformation/runtimeConfig.browser.ts +++ b/clients/client-cloudformation/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-cloudfront/runtimeConfig.browser.ts b/clients/client-cloudfront/runtimeConfig.browser.ts index 79f058717dd94..9229b4403ae72 100644 --- a/clients/client-cloudfront/runtimeConfig.browser.ts +++ b/clients/client-cloudfront/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-cloudhsm-v2/runtimeConfig.browser.ts b/clients/client-cloudhsm-v2/runtimeConfig.browser.ts index de1cdd196e235..c1d051d6d1f86 100644 --- a/clients/client-cloudhsm-v2/runtimeConfig.browser.ts +++ b/clients/client-cloudhsm-v2/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-cloudhsm/runtimeConfig.browser.ts b/clients/client-cloudhsm/runtimeConfig.browser.ts index 6fe72bf5fa240..d55671208cc6a 100644 --- a/clients/client-cloudhsm/runtimeConfig.browser.ts +++ b/clients/client-cloudhsm/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-cloudsearch-domain/runtimeConfig.browser.ts b/clients/client-cloudsearch-domain/runtimeConfig.browser.ts index 6d988844e21b8..b3e8f0ee43373 100644 --- a/clients/client-cloudsearch-domain/runtimeConfig.browser.ts +++ b/clients/client-cloudsearch-domain/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-cloudsearch/runtimeConfig.browser.ts b/clients/client-cloudsearch/runtimeConfig.browser.ts index 8b42c108def9e..3f83cfbfa4280 100644 --- a/clients/client-cloudsearch/runtimeConfig.browser.ts +++ b/clients/client-cloudsearch/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-cloudtrail/runtimeConfig.browser.ts b/clients/client-cloudtrail/runtimeConfig.browser.ts index df85bc44ed515..ea7b936f2eb70 100644 --- a/clients/client-cloudtrail/runtimeConfig.browser.ts +++ b/clients/client-cloudtrail/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-cloudwatch-events/runtimeConfig.browser.ts b/clients/client-cloudwatch-events/runtimeConfig.browser.ts index 9b081e2c908c9..396c11b774255 100644 --- a/clients/client-cloudwatch-events/runtimeConfig.browser.ts +++ b/clients/client-cloudwatch-events/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-cloudwatch-logs/runtimeConfig.browser.ts b/clients/client-cloudwatch-logs/runtimeConfig.browser.ts index 79c7ac30ebabf..654fea3e6e316 100644 --- a/clients/client-cloudwatch-logs/runtimeConfig.browser.ts +++ b/clients/client-cloudwatch-logs/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-cloudwatch/runtimeConfig.browser.ts b/clients/client-cloudwatch/runtimeConfig.browser.ts index c815c76c0c91c..930f159ba383c 100644 --- a/clients/client-cloudwatch/runtimeConfig.browser.ts +++ b/clients/client-cloudwatch/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-codeartifact/runtimeConfig.browser.ts b/clients/client-codeartifact/runtimeConfig.browser.ts index a1f2408a9c1f3..db03607571dc4 100644 --- a/clients/client-codeartifact/runtimeConfig.browser.ts +++ b/clients/client-codeartifact/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-codebuild/runtimeConfig.browser.ts b/clients/client-codebuild/runtimeConfig.browser.ts index fc405664254f9..f98a337451d0f 100644 --- a/clients/client-codebuild/runtimeConfig.browser.ts +++ b/clients/client-codebuild/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-codecommit/runtimeConfig.browser.ts b/clients/client-codecommit/runtimeConfig.browser.ts index 903fe4577f88c..b0fe76fabddaa 100644 --- a/clients/client-codecommit/runtimeConfig.browser.ts +++ b/clients/client-codecommit/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-codedeploy/runtimeConfig.browser.ts b/clients/client-codedeploy/runtimeConfig.browser.ts index 5df53401f175d..79dc845fadbe7 100644 --- a/clients/client-codedeploy/runtimeConfig.browser.ts +++ b/clients/client-codedeploy/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-codeguru-reviewer/runtimeConfig.browser.ts b/clients/client-codeguru-reviewer/runtimeConfig.browser.ts index f384396a2eb2a..4cdd6b918c6fc 100644 --- a/clients/client-codeguru-reviewer/runtimeConfig.browser.ts +++ b/clients/client-codeguru-reviewer/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-codeguruprofiler/runtimeConfig.browser.ts b/clients/client-codeguruprofiler/runtimeConfig.browser.ts index e4904045fc29c..de0d8fe56f0c3 100644 --- a/clients/client-codeguruprofiler/runtimeConfig.browser.ts +++ b/clients/client-codeguruprofiler/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-codepipeline/runtimeConfig.browser.ts b/clients/client-codepipeline/runtimeConfig.browser.ts index 39013d8bae41d..d5fd093ac1d1c 100644 --- a/clients/client-codepipeline/runtimeConfig.browser.ts +++ b/clients/client-codepipeline/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-codestar-connections/runtimeConfig.browser.ts b/clients/client-codestar-connections/runtimeConfig.browser.ts index 32dcbc4aa8603..94bd12cc1a79e 100644 --- a/clients/client-codestar-connections/runtimeConfig.browser.ts +++ b/clients/client-codestar-connections/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-codestar-notifications/runtimeConfig.browser.ts b/clients/client-codestar-notifications/runtimeConfig.browser.ts index 7c0ad0859b63f..56d9f07993dbd 100644 --- a/clients/client-codestar-notifications/runtimeConfig.browser.ts +++ b/clients/client-codestar-notifications/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-codestar/runtimeConfig.browser.ts b/clients/client-codestar/runtimeConfig.browser.ts index fa22ed9ca3d5a..3f58b65fdce39 100644 --- a/clients/client-codestar/runtimeConfig.browser.ts +++ b/clients/client-codestar/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-cognito-identity-provider/runtimeConfig.browser.ts b/clients/client-cognito-identity-provider/runtimeConfig.browser.ts index 8a30acf24e9ea..7621eec4c8278 100644 --- a/clients/client-cognito-identity-provider/runtimeConfig.browser.ts +++ b/clients/client-cognito-identity-provider/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-cognito-identity/runtimeConfig.browser.ts b/clients/client-cognito-identity/runtimeConfig.browser.ts index 399b09ffc9a88..69f1637cb22c5 100644 --- a/clients/client-cognito-identity/runtimeConfig.browser.ts +++ b/clients/client-cognito-identity/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-cognito-sync/runtimeConfig.browser.ts b/clients/client-cognito-sync/runtimeConfig.browser.ts index 0c2ac580cdd50..87d48c6c1cfa6 100644 --- a/clients/client-cognito-sync/runtimeConfig.browser.ts +++ b/clients/client-cognito-sync/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-comprehend/runtimeConfig.browser.ts b/clients/client-comprehend/runtimeConfig.browser.ts index 9e72ae0f35553..616dd876ba9be 100644 --- a/clients/client-comprehend/runtimeConfig.browser.ts +++ b/clients/client-comprehend/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-comprehendmedical/runtimeConfig.browser.ts b/clients/client-comprehendmedical/runtimeConfig.browser.ts index ede3e7bdd6f19..611752e1ac17c 100644 --- a/clients/client-comprehendmedical/runtimeConfig.browser.ts +++ b/clients/client-comprehendmedical/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-compute-optimizer/runtimeConfig.browser.ts b/clients/client-compute-optimizer/runtimeConfig.browser.ts index 867334922bde6..de4cb581cee77 100644 --- a/clients/client-compute-optimizer/runtimeConfig.browser.ts +++ b/clients/client-compute-optimizer/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-config-service/runtimeConfig.browser.ts b/clients/client-config-service/runtimeConfig.browser.ts index 92f0db701edb4..5d1b9935f122b 100644 --- a/clients/client-config-service/runtimeConfig.browser.ts +++ b/clients/client-config-service/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-connect/runtimeConfig.browser.ts b/clients/client-connect/runtimeConfig.browser.ts index fbc326f9313aa..4e2c2e16f6a02 100644 --- a/clients/client-connect/runtimeConfig.browser.ts +++ b/clients/client-connect/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-connectparticipant/runtimeConfig.browser.ts b/clients/client-connectparticipant/runtimeConfig.browser.ts index 96a8a9804916f..0ce59f46c95e5 100644 --- a/clients/client-connectparticipant/runtimeConfig.browser.ts +++ b/clients/client-connectparticipant/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-cost-and-usage-report-service/runtimeConfig.browser.ts b/clients/client-cost-and-usage-report-service/runtimeConfig.browser.ts index 796cf591696c4..e7c31d6031ba3 100644 --- a/clients/client-cost-and-usage-report-service/runtimeConfig.browser.ts +++ b/clients/client-cost-and-usage-report-service/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-cost-explorer/runtimeConfig.browser.ts b/clients/client-cost-explorer/runtimeConfig.browser.ts index 53f9d83198d7d..8f3344350f8fb 100644 --- a/clients/client-cost-explorer/runtimeConfig.browser.ts +++ b/clients/client-cost-explorer/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-data-pipeline/runtimeConfig.browser.ts b/clients/client-data-pipeline/runtimeConfig.browser.ts index be57a4936bbfa..613353f22c2b1 100644 --- a/clients/client-data-pipeline/runtimeConfig.browser.ts +++ b/clients/client-data-pipeline/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-database-migration-service/runtimeConfig.browser.ts b/clients/client-database-migration-service/runtimeConfig.browser.ts index 2f358d8a26ee5..ea13446b6c9ae 100644 --- a/clients/client-database-migration-service/runtimeConfig.browser.ts +++ b/clients/client-database-migration-service/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-databrew/runtimeConfig.browser.ts b/clients/client-databrew/runtimeConfig.browser.ts index 8a58d45a97968..2844b55136af5 100644 --- a/clients/client-databrew/runtimeConfig.browser.ts +++ b/clients/client-databrew/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-dataexchange/runtimeConfig.browser.ts b/clients/client-dataexchange/runtimeConfig.browser.ts index fe9e5ae646360..dadda53b3ccd0 100644 --- a/clients/client-dataexchange/runtimeConfig.browser.ts +++ b/clients/client-dataexchange/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-datasync/runtimeConfig.browser.ts b/clients/client-datasync/runtimeConfig.browser.ts index 98eb12c002604..5c295b330156a 100644 --- a/clients/client-datasync/runtimeConfig.browser.ts +++ b/clients/client-datasync/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-dax/runtimeConfig.browser.ts b/clients/client-dax/runtimeConfig.browser.ts index 85675930b9340..2ff9968497fc9 100644 --- a/clients/client-dax/runtimeConfig.browser.ts +++ b/clients/client-dax/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-detective/runtimeConfig.browser.ts b/clients/client-detective/runtimeConfig.browser.ts index b99c155c9b1a9..0239a097a0dc6 100644 --- a/clients/client-detective/runtimeConfig.browser.ts +++ b/clients/client-detective/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-device-farm/runtimeConfig.browser.ts b/clients/client-device-farm/runtimeConfig.browser.ts index f82a2d7b06c65..8b7baa2d90dd3 100644 --- a/clients/client-device-farm/runtimeConfig.browser.ts +++ b/clients/client-device-farm/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-direct-connect/runtimeConfig.browser.ts b/clients/client-direct-connect/runtimeConfig.browser.ts index 72f6b75601217..1a709d07189c6 100644 --- a/clients/client-direct-connect/runtimeConfig.browser.ts +++ b/clients/client-direct-connect/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-directory-service/runtimeConfig.browser.ts b/clients/client-directory-service/runtimeConfig.browser.ts index 69d6c832fe0a2..2c144ceb1746e 100644 --- a/clients/client-directory-service/runtimeConfig.browser.ts +++ b/clients/client-directory-service/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-dlm/runtimeConfig.browser.ts b/clients/client-dlm/runtimeConfig.browser.ts index 26d20a3b3a8e4..734d036d47500 100644 --- a/clients/client-dlm/runtimeConfig.browser.ts +++ b/clients/client-dlm/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-docdb/runtimeConfig.browser.ts b/clients/client-docdb/runtimeConfig.browser.ts index ac5a5988db086..c6ce37fec65f6 100644 --- a/clients/client-docdb/runtimeConfig.browser.ts +++ b/clients/client-docdb/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-dynamodb-streams/runtimeConfig.browser.ts b/clients/client-dynamodb-streams/runtimeConfig.browser.ts index 208ca5607300a..a669444fa9212 100644 --- a/clients/client-dynamodb-streams/runtimeConfig.browser.ts +++ b/clients/client-dynamodb-streams/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-dynamodb/runtimeConfig.browser.ts b/clients/client-dynamodb/runtimeConfig.browser.ts index 5cb53e6753656..8e14698997938 100644 --- a/clients/client-dynamodb/runtimeConfig.browser.ts +++ b/clients/client-dynamodb/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-ebs/runtimeConfig.browser.ts b/clients/client-ebs/runtimeConfig.browser.ts index c49193882b40b..56236077f9b98 100644 --- a/clients/client-ebs/runtimeConfig.browser.ts +++ b/clients/client-ebs/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-ec2-instance-connect/runtimeConfig.browser.ts b/clients/client-ec2-instance-connect/runtimeConfig.browser.ts index 119751d44e332..27ffa0dacd2f8 100644 --- a/clients/client-ec2-instance-connect/runtimeConfig.browser.ts +++ b/clients/client-ec2-instance-connect/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-ec2/runtimeConfig.browser.ts b/clients/client-ec2/runtimeConfig.browser.ts index 1aa7cf58f2c70..f25edc10f29bd 100644 --- a/clients/client-ec2/runtimeConfig.browser.ts +++ b/clients/client-ec2/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-ecr/runtimeConfig.browser.ts b/clients/client-ecr/runtimeConfig.browser.ts index 975cef0e2644a..c200a5e3fd9da 100644 --- a/clients/client-ecr/runtimeConfig.browser.ts +++ b/clients/client-ecr/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-ecs/runtimeConfig.browser.ts b/clients/client-ecs/runtimeConfig.browser.ts index 3e81f0856b321..308e028f2e72c 100644 --- a/clients/client-ecs/runtimeConfig.browser.ts +++ b/clients/client-ecs/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-efs/runtimeConfig.browser.ts b/clients/client-efs/runtimeConfig.browser.ts index c8885543070f1..3b747ea08dd72 100644 --- a/clients/client-efs/runtimeConfig.browser.ts +++ b/clients/client-efs/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-eks/runtimeConfig.browser.ts b/clients/client-eks/runtimeConfig.browser.ts index a3a7f56b3a490..075359b1e4ac1 100644 --- a/clients/client-eks/runtimeConfig.browser.ts +++ b/clients/client-eks/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-elastic-beanstalk/runtimeConfig.browser.ts b/clients/client-elastic-beanstalk/runtimeConfig.browser.ts index cccc16d0958ba..c3d616c549fec 100644 --- a/clients/client-elastic-beanstalk/runtimeConfig.browser.ts +++ b/clients/client-elastic-beanstalk/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-elastic-inference/runtimeConfig.browser.ts b/clients/client-elastic-inference/runtimeConfig.browser.ts index 097120a917b74..b87fe5e3bc676 100644 --- a/clients/client-elastic-inference/runtimeConfig.browser.ts +++ b/clients/client-elastic-inference/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-elastic-load-balancing-v2/runtimeConfig.browser.ts b/clients/client-elastic-load-balancing-v2/runtimeConfig.browser.ts index fc983a0be958f..58ba193eaf5ac 100644 --- a/clients/client-elastic-load-balancing-v2/runtimeConfig.browser.ts +++ b/clients/client-elastic-load-balancing-v2/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-elastic-load-balancing/runtimeConfig.browser.ts b/clients/client-elastic-load-balancing/runtimeConfig.browser.ts index 2af59187728c7..da5081073853b 100644 --- a/clients/client-elastic-load-balancing/runtimeConfig.browser.ts +++ b/clients/client-elastic-load-balancing/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-elastic-transcoder/runtimeConfig.browser.ts b/clients/client-elastic-transcoder/runtimeConfig.browser.ts index d4cbf889aa119..a4f866dab231b 100644 --- a/clients/client-elastic-transcoder/runtimeConfig.browser.ts +++ b/clients/client-elastic-transcoder/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-elasticache/runtimeConfig.browser.ts b/clients/client-elasticache/runtimeConfig.browser.ts index 1ae5b8f0e5035..f4b6fcd4a184d 100644 --- a/clients/client-elasticache/runtimeConfig.browser.ts +++ b/clients/client-elasticache/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-elasticsearch-service/runtimeConfig.browser.ts b/clients/client-elasticsearch-service/runtimeConfig.browser.ts index 9c0c6be1ee6e8..5d127229beea5 100644 --- a/clients/client-elasticsearch-service/runtimeConfig.browser.ts +++ b/clients/client-elasticsearch-service/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-emr/runtimeConfig.browser.ts b/clients/client-emr/runtimeConfig.browser.ts index 4311396dfb40a..394b91541f3b9 100644 --- a/clients/client-emr/runtimeConfig.browser.ts +++ b/clients/client-emr/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-eventbridge/runtimeConfig.browser.ts b/clients/client-eventbridge/runtimeConfig.browser.ts index 7ba88c74d0598..52c92b281eebf 100644 --- a/clients/client-eventbridge/runtimeConfig.browser.ts +++ b/clients/client-eventbridge/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-firehose/runtimeConfig.browser.ts b/clients/client-firehose/runtimeConfig.browser.ts index 8385939325656..14b92e169ad6d 100644 --- a/clients/client-firehose/runtimeConfig.browser.ts +++ b/clients/client-firehose/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-fms/runtimeConfig.browser.ts b/clients/client-fms/runtimeConfig.browser.ts index 7a3ad455b49e6..86365b3512e99 100644 --- a/clients/client-fms/runtimeConfig.browser.ts +++ b/clients/client-fms/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-forecast/runtimeConfig.browser.ts b/clients/client-forecast/runtimeConfig.browser.ts index 226c128db4bfc..761e437655209 100644 --- a/clients/client-forecast/runtimeConfig.browser.ts +++ b/clients/client-forecast/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-forecastquery/runtimeConfig.browser.ts b/clients/client-forecastquery/runtimeConfig.browser.ts index 066548687b61d..8156913b6fdf0 100644 --- a/clients/client-forecastquery/runtimeConfig.browser.ts +++ b/clients/client-forecastquery/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-frauddetector/runtimeConfig.browser.ts b/clients/client-frauddetector/runtimeConfig.browser.ts index 50655bf6c8345..142e9e3b8098a 100644 --- a/clients/client-frauddetector/runtimeConfig.browser.ts +++ b/clients/client-frauddetector/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-fsx/runtimeConfig.browser.ts b/clients/client-fsx/runtimeConfig.browser.ts index 3ac2f574e6110..7f485db76e085 100644 --- a/clients/client-fsx/runtimeConfig.browser.ts +++ b/clients/client-fsx/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-gamelift/runtimeConfig.browser.ts b/clients/client-gamelift/runtimeConfig.browser.ts index 6d07cfd14e54c..f478c90dc94c7 100644 --- a/clients/client-gamelift/runtimeConfig.browser.ts +++ b/clients/client-gamelift/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-glacier/runtimeConfig.browser.ts b/clients/client-glacier/runtimeConfig.browser.ts index e1024f7af463b..b3f2a0e9414fc 100644 --- a/clients/client-glacier/runtimeConfig.browser.ts +++ b/clients/client-glacier/runtimeConfig.browser.ts @@ -3,7 +3,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { bodyChecksumGenerator } from "@aws-sdk/body-checksum-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -23,10 +23,10 @@ export const ClientDefaultValues: Required = { base64Encoder: toBase64, bodyChecksumGenerator, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-global-accelerator/runtimeConfig.browser.ts b/clients/client-global-accelerator/runtimeConfig.browser.ts index 4b43c10c09695..5a1f4789e0df0 100644 --- a/clients/client-global-accelerator/runtimeConfig.browser.ts +++ b/clients/client-global-accelerator/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-glue/runtimeConfig.browser.ts b/clients/client-glue/runtimeConfig.browser.ts index 5b879ad928f14..6de537f2e151e 100644 --- a/clients/client-glue/runtimeConfig.browser.ts +++ b/clients/client-glue/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-greengrass/runtimeConfig.browser.ts b/clients/client-greengrass/runtimeConfig.browser.ts index 3ca845ae999e4..7863e3490661f 100644 --- a/clients/client-greengrass/runtimeConfig.browser.ts +++ b/clients/client-greengrass/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-groundstation/runtimeConfig.browser.ts b/clients/client-groundstation/runtimeConfig.browser.ts index 15340a15c6af5..47cb7d5f0ce73 100644 --- a/clients/client-groundstation/runtimeConfig.browser.ts +++ b/clients/client-groundstation/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-guardduty/runtimeConfig.browser.ts b/clients/client-guardduty/runtimeConfig.browser.ts index 3682a7c2f51b3..222af394850f1 100644 --- a/clients/client-guardduty/runtimeConfig.browser.ts +++ b/clients/client-guardduty/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-health/runtimeConfig.browser.ts b/clients/client-health/runtimeConfig.browser.ts index 5376b3e1377b9..0b3ebc6dd73a3 100644 --- a/clients/client-health/runtimeConfig.browser.ts +++ b/clients/client-health/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-honeycode/runtimeConfig.browser.ts b/clients/client-honeycode/runtimeConfig.browser.ts index fbf853594aba8..2e4c76f329921 100644 --- a/clients/client-honeycode/runtimeConfig.browser.ts +++ b/clients/client-honeycode/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-iam/runtimeConfig.browser.ts b/clients/client-iam/runtimeConfig.browser.ts index 08d82fb24098b..8101d3b6dd293 100644 --- a/clients/client-iam/runtimeConfig.browser.ts +++ b/clients/client-iam/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-identitystore/runtimeConfig.browser.ts b/clients/client-identitystore/runtimeConfig.browser.ts index 00cc4521d0f7c..5fd83a0895882 100644 --- a/clients/client-identitystore/runtimeConfig.browser.ts +++ b/clients/client-identitystore/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-imagebuilder/runtimeConfig.browser.ts b/clients/client-imagebuilder/runtimeConfig.browser.ts index ade0137f8ba62..ee32dda920d77 100644 --- a/clients/client-imagebuilder/runtimeConfig.browser.ts +++ b/clients/client-imagebuilder/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-inspector/runtimeConfig.browser.ts b/clients/client-inspector/runtimeConfig.browser.ts index 62e8c2508ea3b..5a01db88c24ad 100644 --- a/clients/client-inspector/runtimeConfig.browser.ts +++ b/clients/client-inspector/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-iot-1click-devices-service/runtimeConfig.browser.ts b/clients/client-iot-1click-devices-service/runtimeConfig.browser.ts index e4b50b48c0e40..5657814d55c23 100644 --- a/clients/client-iot-1click-devices-service/runtimeConfig.browser.ts +++ b/clients/client-iot-1click-devices-service/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-iot-1click-projects/runtimeConfig.browser.ts b/clients/client-iot-1click-projects/runtimeConfig.browser.ts index d7384e4152ad7..74eda9ea83265 100644 --- a/clients/client-iot-1click-projects/runtimeConfig.browser.ts +++ b/clients/client-iot-1click-projects/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-iot-data-plane/runtimeConfig.browser.ts b/clients/client-iot-data-plane/runtimeConfig.browser.ts index 99dfa23ebd14b..a0282f592e89f 100644 --- a/clients/client-iot-data-plane/runtimeConfig.browser.ts +++ b/clients/client-iot-data-plane/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-iot-events-data/runtimeConfig.browser.ts b/clients/client-iot-events-data/runtimeConfig.browser.ts index aeaac0bbbd7ce..1b65ea8766662 100644 --- a/clients/client-iot-events-data/runtimeConfig.browser.ts +++ b/clients/client-iot-events-data/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-iot-events/runtimeConfig.browser.ts b/clients/client-iot-events/runtimeConfig.browser.ts index af63c349236a1..c23b7156601c6 100644 --- a/clients/client-iot-events/runtimeConfig.browser.ts +++ b/clients/client-iot-events/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-iot-jobs-data-plane/runtimeConfig.browser.ts b/clients/client-iot-jobs-data-plane/runtimeConfig.browser.ts index 07c150111dc97..2fbc727eac35b 100644 --- a/clients/client-iot-jobs-data-plane/runtimeConfig.browser.ts +++ b/clients/client-iot-jobs-data-plane/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-iot/runtimeConfig.browser.ts b/clients/client-iot/runtimeConfig.browser.ts index ea4bebee995c6..22885b57e5813 100644 --- a/clients/client-iot/runtimeConfig.browser.ts +++ b/clients/client-iot/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-iotanalytics/runtimeConfig.browser.ts b/clients/client-iotanalytics/runtimeConfig.browser.ts index f42c960882930..ebce7964af708 100644 --- a/clients/client-iotanalytics/runtimeConfig.browser.ts +++ b/clients/client-iotanalytics/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-iotsecuretunneling/runtimeConfig.browser.ts b/clients/client-iotsecuretunneling/runtimeConfig.browser.ts index 9ae69ee462fef..e052690091069 100644 --- a/clients/client-iotsecuretunneling/runtimeConfig.browser.ts +++ b/clients/client-iotsecuretunneling/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-iotsitewise/runtimeConfig.browser.ts b/clients/client-iotsitewise/runtimeConfig.browser.ts index f9c1454e49d8c..ce1cfd4eb1a70 100644 --- a/clients/client-iotsitewise/runtimeConfig.browser.ts +++ b/clients/client-iotsitewise/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-iotthingsgraph/runtimeConfig.browser.ts b/clients/client-iotthingsgraph/runtimeConfig.browser.ts index 37a028500673d..ab12a90c403d2 100644 --- a/clients/client-iotthingsgraph/runtimeConfig.browser.ts +++ b/clients/client-iotthingsgraph/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-ivs/runtimeConfig.browser.ts b/clients/client-ivs/runtimeConfig.browser.ts index f591e321ba451..7ab32ca29a68b 100644 --- a/clients/client-ivs/runtimeConfig.browser.ts +++ b/clients/client-ivs/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-kafka/runtimeConfig.browser.ts b/clients/client-kafka/runtimeConfig.browser.ts index d62e728f6b8d2..1cbf191089832 100644 --- a/clients/client-kafka/runtimeConfig.browser.ts +++ b/clients/client-kafka/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-kendra/runtimeConfig.browser.ts b/clients/client-kendra/runtimeConfig.browser.ts index cc7ef420e7841..214af8a7d83e7 100644 --- a/clients/client-kendra/runtimeConfig.browser.ts +++ b/clients/client-kendra/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-kinesis-analytics-v2/runtimeConfig.browser.ts b/clients/client-kinesis-analytics-v2/runtimeConfig.browser.ts index 3b2022b439ecd..937d32a94b372 100644 --- a/clients/client-kinesis-analytics-v2/runtimeConfig.browser.ts +++ b/clients/client-kinesis-analytics-v2/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-kinesis-analytics/runtimeConfig.browser.ts b/clients/client-kinesis-analytics/runtimeConfig.browser.ts index 7a45a14fcf62d..659d88daaccf8 100644 --- a/clients/client-kinesis-analytics/runtimeConfig.browser.ts +++ b/clients/client-kinesis-analytics/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-kinesis-video-archived-media/runtimeConfig.browser.ts b/clients/client-kinesis-video-archived-media/runtimeConfig.browser.ts index 6ac5ac02ffdfb..03046c3eafa2d 100644 --- a/clients/client-kinesis-video-archived-media/runtimeConfig.browser.ts +++ b/clients/client-kinesis-video-archived-media/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-kinesis-video-media/runtimeConfig.browser.ts b/clients/client-kinesis-video-media/runtimeConfig.browser.ts index ff05b45309ce8..c3f79ca4d69bf 100644 --- a/clients/client-kinesis-video-media/runtimeConfig.browser.ts +++ b/clients/client-kinesis-video-media/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-kinesis-video-signaling/runtimeConfig.browser.ts b/clients/client-kinesis-video-signaling/runtimeConfig.browser.ts index 4e9225ba79bfa..cc758db8a392a 100644 --- a/clients/client-kinesis-video-signaling/runtimeConfig.browser.ts +++ b/clients/client-kinesis-video-signaling/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-kinesis-video/runtimeConfig.browser.ts b/clients/client-kinesis-video/runtimeConfig.browser.ts index e1544b1f122c5..a0515622f4c1d 100644 --- a/clients/client-kinesis-video/runtimeConfig.browser.ts +++ b/clients/client-kinesis-video/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-kinesis/runtimeConfig.browser.ts b/clients/client-kinesis/runtimeConfig.browser.ts index d893f360847c4..1eaaa5072663d 100644 --- a/clients/client-kinesis/runtimeConfig.browser.ts +++ b/clients/client-kinesis/runtimeConfig.browser.ts @@ -3,7 +3,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { eventStreamSerdeProvider } from "@aws-sdk/eventstream-serde-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -22,11 +22,11 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), eventStreamSerdeProvider, maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-kms/runtimeConfig.browser.ts b/clients/client-kms/runtimeConfig.browser.ts index c620b26c54dd7..6a2f63e13ccdf 100644 --- a/clients/client-kms/runtimeConfig.browser.ts +++ b/clients/client-kms/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-lakeformation/runtimeConfig.browser.ts b/clients/client-lakeformation/runtimeConfig.browser.ts index 57c6a65fb0b25..c3f4c7865c5e8 100644 --- a/clients/client-lakeformation/runtimeConfig.browser.ts +++ b/clients/client-lakeformation/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-lambda/runtimeConfig.browser.ts b/clients/client-lambda/runtimeConfig.browser.ts index 24e2c29fb608b..bc489aa675a89 100644 --- a/clients/client-lambda/runtimeConfig.browser.ts +++ b/clients/client-lambda/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-lex-model-building-service/runtimeConfig.browser.ts b/clients/client-lex-model-building-service/runtimeConfig.browser.ts index 37be0ccdd2b8c..7bff2a013b34f 100644 --- a/clients/client-lex-model-building-service/runtimeConfig.browser.ts +++ b/clients/client-lex-model-building-service/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-lex-runtime-service/runtimeConfig.browser.ts b/clients/client-lex-runtime-service/runtimeConfig.browser.ts index b4c57777d8f9c..3fee6e138d0f8 100644 --- a/clients/client-lex-runtime-service/runtimeConfig.browser.ts +++ b/clients/client-lex-runtime-service/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-license-manager/runtimeConfig.browser.ts b/clients/client-license-manager/runtimeConfig.browser.ts index c9a366356ab7f..a84c699effda7 100644 --- a/clients/client-license-manager/runtimeConfig.browser.ts +++ b/clients/client-license-manager/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-lightsail/runtimeConfig.browser.ts b/clients/client-lightsail/runtimeConfig.browser.ts index 33dbde3bf2089..0ac4cd8d625d9 100644 --- a/clients/client-lightsail/runtimeConfig.browser.ts +++ b/clients/client-lightsail/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-machine-learning/runtimeConfig.browser.ts b/clients/client-machine-learning/runtimeConfig.browser.ts index 969c6b9aed15c..1658535d8132b 100644 --- a/clients/client-machine-learning/runtimeConfig.browser.ts +++ b/clients/client-machine-learning/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-macie/runtimeConfig.browser.ts b/clients/client-macie/runtimeConfig.browser.ts index 4626efad63dc7..a6a89f18a7bdf 100644 --- a/clients/client-macie/runtimeConfig.browser.ts +++ b/clients/client-macie/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-macie2/runtimeConfig.browser.ts b/clients/client-macie2/runtimeConfig.browser.ts index 8ec85366ed855..a445915561154 100644 --- a/clients/client-macie2/runtimeConfig.browser.ts +++ b/clients/client-macie2/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-managedblockchain/runtimeConfig.browser.ts b/clients/client-managedblockchain/runtimeConfig.browser.ts index 27f60580e81a1..0abd1eda07877 100644 --- a/clients/client-managedblockchain/runtimeConfig.browser.ts +++ b/clients/client-managedblockchain/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-marketplace-catalog/runtimeConfig.browser.ts b/clients/client-marketplace-catalog/runtimeConfig.browser.ts index 65de4399932cb..24faccf6ed40d 100644 --- a/clients/client-marketplace-catalog/runtimeConfig.browser.ts +++ b/clients/client-marketplace-catalog/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-marketplace-commerce-analytics/runtimeConfig.browser.ts b/clients/client-marketplace-commerce-analytics/runtimeConfig.browser.ts index 8794166301f35..38c169205c460 100644 --- a/clients/client-marketplace-commerce-analytics/runtimeConfig.browser.ts +++ b/clients/client-marketplace-commerce-analytics/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-marketplace-entitlement-service/runtimeConfig.browser.ts b/clients/client-marketplace-entitlement-service/runtimeConfig.browser.ts index b7fcc7fd8ed86..78333b72fbff0 100644 --- a/clients/client-marketplace-entitlement-service/runtimeConfig.browser.ts +++ b/clients/client-marketplace-entitlement-service/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-marketplace-metering/runtimeConfig.browser.ts b/clients/client-marketplace-metering/runtimeConfig.browser.ts index 4ce090897742b..c41c5e38106a8 100644 --- a/clients/client-marketplace-metering/runtimeConfig.browser.ts +++ b/clients/client-marketplace-metering/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-mediaconnect/runtimeConfig.browser.ts b/clients/client-mediaconnect/runtimeConfig.browser.ts index 2c23d579d8f6f..a7f8aa623d14a 100644 --- a/clients/client-mediaconnect/runtimeConfig.browser.ts +++ b/clients/client-mediaconnect/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-mediaconvert/runtimeConfig.browser.ts b/clients/client-mediaconvert/runtimeConfig.browser.ts index ce4cf5f2e763e..b431a5e74268d 100644 --- a/clients/client-mediaconvert/runtimeConfig.browser.ts +++ b/clients/client-mediaconvert/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-medialive/runtimeConfig.browser.ts b/clients/client-medialive/runtimeConfig.browser.ts index 201998727295c..c806ed837fdae 100644 --- a/clients/client-medialive/runtimeConfig.browser.ts +++ b/clients/client-medialive/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-mediapackage-vod/runtimeConfig.browser.ts b/clients/client-mediapackage-vod/runtimeConfig.browser.ts index 710ba4149a24b..c21fda55558e1 100644 --- a/clients/client-mediapackage-vod/runtimeConfig.browser.ts +++ b/clients/client-mediapackage-vod/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-mediapackage/runtimeConfig.browser.ts b/clients/client-mediapackage/runtimeConfig.browser.ts index f63a407304698..eb1e8310a0f4a 100644 --- a/clients/client-mediapackage/runtimeConfig.browser.ts +++ b/clients/client-mediapackage/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-mediastore-data/runtimeConfig.browser.ts b/clients/client-mediastore-data/runtimeConfig.browser.ts index 8e3adcb02d0ca..958f1b4c07513 100644 --- a/clients/client-mediastore-data/runtimeConfig.browser.ts +++ b/clients/client-mediastore-data/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-mediastore/runtimeConfig.browser.ts b/clients/client-mediastore/runtimeConfig.browser.ts index b1f8afbe04b6d..1719626d88c70 100644 --- a/clients/client-mediastore/runtimeConfig.browser.ts +++ b/clients/client-mediastore/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-mediatailor/runtimeConfig.browser.ts b/clients/client-mediatailor/runtimeConfig.browser.ts index 38f65ca914128..b1e53b07d9081 100644 --- a/clients/client-mediatailor/runtimeConfig.browser.ts +++ b/clients/client-mediatailor/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-migration-hub/runtimeConfig.browser.ts b/clients/client-migration-hub/runtimeConfig.browser.ts index 3a5217e69614a..35c86deda7346 100644 --- a/clients/client-migration-hub/runtimeConfig.browser.ts +++ b/clients/client-migration-hub/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-migrationhub-config/runtimeConfig.browser.ts b/clients/client-migrationhub-config/runtimeConfig.browser.ts index 1bf2bb8049418..e50d07af47750 100644 --- a/clients/client-migrationhub-config/runtimeConfig.browser.ts +++ b/clients/client-migrationhub-config/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-mobile/runtimeConfig.browser.ts b/clients/client-mobile/runtimeConfig.browser.ts index 710ee79907078..070b80b5b7d5d 100644 --- a/clients/client-mobile/runtimeConfig.browser.ts +++ b/clients/client-mobile/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-mq/runtimeConfig.browser.ts b/clients/client-mq/runtimeConfig.browser.ts index d189266cd8337..8e45013929d2d 100644 --- a/clients/client-mq/runtimeConfig.browser.ts +++ b/clients/client-mq/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-mturk/runtimeConfig.browser.ts b/clients/client-mturk/runtimeConfig.browser.ts index 9b01147f5bc47..700ac5768ac72 100644 --- a/clients/client-mturk/runtimeConfig.browser.ts +++ b/clients/client-mturk/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-neptune/runtimeConfig.browser.ts b/clients/client-neptune/runtimeConfig.browser.ts index 38fd55f960d5f..cd560819dfcf4 100644 --- a/clients/client-neptune/runtimeConfig.browser.ts +++ b/clients/client-neptune/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-network-firewall/runtimeConfig.browser.ts b/clients/client-network-firewall/runtimeConfig.browser.ts index aab700e45e125..181e838300cbf 100644 --- a/clients/client-network-firewall/runtimeConfig.browser.ts +++ b/clients/client-network-firewall/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-networkmanager/runtimeConfig.browser.ts b/clients/client-networkmanager/runtimeConfig.browser.ts index 7c40edd99f5ea..118482dbb6788 100644 --- a/clients/client-networkmanager/runtimeConfig.browser.ts +++ b/clients/client-networkmanager/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-opsworks/runtimeConfig.browser.ts b/clients/client-opsworks/runtimeConfig.browser.ts index 1fe71ee1bf4a5..a8485afee0192 100644 --- a/clients/client-opsworks/runtimeConfig.browser.ts +++ b/clients/client-opsworks/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-opsworkscm/runtimeConfig.browser.ts b/clients/client-opsworkscm/runtimeConfig.browser.ts index 461049f98e5bb..9faa544c9b79f 100644 --- a/clients/client-opsworkscm/runtimeConfig.browser.ts +++ b/clients/client-opsworkscm/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-organizations/runtimeConfig.browser.ts b/clients/client-organizations/runtimeConfig.browser.ts index b20663f3fbd8b..0bbd703209087 100644 --- a/clients/client-organizations/runtimeConfig.browser.ts +++ b/clients/client-organizations/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-outposts/runtimeConfig.browser.ts b/clients/client-outposts/runtimeConfig.browser.ts index 0cd3011c4ce58..f52a4bc657f70 100644 --- a/clients/client-outposts/runtimeConfig.browser.ts +++ b/clients/client-outposts/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-personalize-events/runtimeConfig.browser.ts b/clients/client-personalize-events/runtimeConfig.browser.ts index 07f545d39b0a0..be6605596fd27 100644 --- a/clients/client-personalize-events/runtimeConfig.browser.ts +++ b/clients/client-personalize-events/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-personalize-runtime/runtimeConfig.browser.ts b/clients/client-personalize-runtime/runtimeConfig.browser.ts index bdcadd20efdad..84c92ec5acfa8 100644 --- a/clients/client-personalize-runtime/runtimeConfig.browser.ts +++ b/clients/client-personalize-runtime/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-personalize/runtimeConfig.browser.ts b/clients/client-personalize/runtimeConfig.browser.ts index ca912482eb641..c29645ad41946 100644 --- a/clients/client-personalize/runtimeConfig.browser.ts +++ b/clients/client-personalize/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-pi/runtimeConfig.browser.ts b/clients/client-pi/runtimeConfig.browser.ts index cd28bf3be0c2f..8505dd027c93c 100644 --- a/clients/client-pi/runtimeConfig.browser.ts +++ b/clients/client-pi/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-pinpoint-email/runtimeConfig.browser.ts b/clients/client-pinpoint-email/runtimeConfig.browser.ts index 2e29acd7f825b..4a03a5f4e91da 100644 --- a/clients/client-pinpoint-email/runtimeConfig.browser.ts +++ b/clients/client-pinpoint-email/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-pinpoint-sms-voice/runtimeConfig.browser.ts b/clients/client-pinpoint-sms-voice/runtimeConfig.browser.ts index ba52a34f0806f..24d8d2b7e92e7 100644 --- a/clients/client-pinpoint-sms-voice/runtimeConfig.browser.ts +++ b/clients/client-pinpoint-sms-voice/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-pinpoint/runtimeConfig.browser.ts b/clients/client-pinpoint/runtimeConfig.browser.ts index 05efcd6b80a4d..2f20bbbad2bcb 100644 --- a/clients/client-pinpoint/runtimeConfig.browser.ts +++ b/clients/client-pinpoint/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-polly/runtimeConfig.browser.ts b/clients/client-polly/runtimeConfig.browser.ts index 0e00aef263d6f..d666057083bcb 100644 --- a/clients/client-polly/runtimeConfig.browser.ts +++ b/clients/client-polly/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-pricing/runtimeConfig.browser.ts b/clients/client-pricing/runtimeConfig.browser.ts index a7f73cfb0ad3d..9727b15241e3f 100644 --- a/clients/client-pricing/runtimeConfig.browser.ts +++ b/clients/client-pricing/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-qldb-session/runtimeConfig.browser.ts b/clients/client-qldb-session/runtimeConfig.browser.ts index c844c968aebc8..fe0ee71dbd68a 100644 --- a/clients/client-qldb-session/runtimeConfig.browser.ts +++ b/clients/client-qldb-session/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-qldb/runtimeConfig.browser.ts b/clients/client-qldb/runtimeConfig.browser.ts index 5c93dcfe1bbec..c7139cb57ae8c 100644 --- a/clients/client-qldb/runtimeConfig.browser.ts +++ b/clients/client-qldb/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-quicksight/runtimeConfig.browser.ts b/clients/client-quicksight/runtimeConfig.browser.ts index 5ab4997759e91..1cd4c65e949ee 100644 --- a/clients/client-quicksight/runtimeConfig.browser.ts +++ b/clients/client-quicksight/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-ram/runtimeConfig.browser.ts b/clients/client-ram/runtimeConfig.browser.ts index 7f8946d1f9fdd..5c9dfc43f5688 100644 --- a/clients/client-ram/runtimeConfig.browser.ts +++ b/clients/client-ram/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-rds-data/runtimeConfig.browser.ts b/clients/client-rds-data/runtimeConfig.browser.ts index 5a05fca0dd694..a2cc85379b4f5 100644 --- a/clients/client-rds-data/runtimeConfig.browser.ts +++ b/clients/client-rds-data/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-rds/runtimeConfig.browser.ts b/clients/client-rds/runtimeConfig.browser.ts index 679718f18fda9..e1dd909bb3aa0 100644 --- a/clients/client-rds/runtimeConfig.browser.ts +++ b/clients/client-rds/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-redshift-data/runtimeConfig.browser.ts b/clients/client-redshift-data/runtimeConfig.browser.ts index f85265d7f4d78..0ddcb664de062 100644 --- a/clients/client-redshift-data/runtimeConfig.browser.ts +++ b/clients/client-redshift-data/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-redshift/runtimeConfig.browser.ts b/clients/client-redshift/runtimeConfig.browser.ts index e70b6fb000a10..3c941956d348b 100644 --- a/clients/client-redshift/runtimeConfig.browser.ts +++ b/clients/client-redshift/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-rekognition/runtimeConfig.browser.ts b/clients/client-rekognition/runtimeConfig.browser.ts index 05abfada08ea4..a4e078b5ac7f3 100644 --- a/clients/client-rekognition/runtimeConfig.browser.ts +++ b/clients/client-rekognition/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-resource-groups-tagging-api/runtimeConfig.browser.ts b/clients/client-resource-groups-tagging-api/runtimeConfig.browser.ts index 84a253efcd85f..85702060e8381 100644 --- a/clients/client-resource-groups-tagging-api/runtimeConfig.browser.ts +++ b/clients/client-resource-groups-tagging-api/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-resource-groups/runtimeConfig.browser.ts b/clients/client-resource-groups/runtimeConfig.browser.ts index 5b5da46362caf..a2823ee8e7852 100644 --- a/clients/client-resource-groups/runtimeConfig.browser.ts +++ b/clients/client-resource-groups/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-robomaker/runtimeConfig.browser.ts b/clients/client-robomaker/runtimeConfig.browser.ts index 7cca2425823fe..18c64ac90a054 100644 --- a/clients/client-robomaker/runtimeConfig.browser.ts +++ b/clients/client-robomaker/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-route-53-domains/runtimeConfig.browser.ts b/clients/client-route-53-domains/runtimeConfig.browser.ts index 2d2650784ac6b..20d16d59875c6 100644 --- a/clients/client-route-53-domains/runtimeConfig.browser.ts +++ b/clients/client-route-53-domains/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-route-53/runtimeConfig.browser.ts b/clients/client-route-53/runtimeConfig.browser.ts index d5f89996fd9c2..7d7799b09f66c 100644 --- a/clients/client-route-53/runtimeConfig.browser.ts +++ b/clients/client-route-53/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-route53resolver/runtimeConfig.browser.ts b/clients/client-route53resolver/runtimeConfig.browser.ts index 6bb5a50738af6..8227eab7f4b04 100644 --- a/clients/client-route53resolver/runtimeConfig.browser.ts +++ b/clients/client-route53resolver/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-s3-control/runtimeConfig.browser.ts b/clients/client-s3-control/runtimeConfig.browser.ts index ba38eb375ffbf..77cade9d06bbd 100644 --- a/clients/client-s3-control/runtimeConfig.browser.ts +++ b/clients/client-s3-control/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-s3/runtimeConfig.browser.ts b/clients/client-s3/runtimeConfig.browser.ts index a83be0bef37aa..3e7ed9ca99e35 100644 --- a/clients/client-s3/runtimeConfig.browser.ts +++ b/clients/client-s3/runtimeConfig.browser.ts @@ -4,7 +4,7 @@ import { Sha256 } from "@aws-crypto/sha256-browser"; import { eventStreamSerdeProvider } from "@aws-sdk/eventstream-serde-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; import { blobHasher as streamHasher } from "@aws-sdk/hash-blob-browser"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { Md5 } from "@aws-sdk/md5-js"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; @@ -24,12 +24,12 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), eventStreamSerdeProvider, maxAttempts: DEFAULT_MAX_ATTEMPTS, md5: Md5, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-s3outposts/runtimeConfig.browser.ts b/clients/client-s3outposts/runtimeConfig.browser.ts index b217d530eaeab..6ae63da72eba8 100644 --- a/clients/client-s3outposts/runtimeConfig.browser.ts +++ b/clients/client-s3outposts/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-sagemaker-a2i-runtime/runtimeConfig.browser.ts b/clients/client-sagemaker-a2i-runtime/runtimeConfig.browser.ts index 23050f3ab0a3c..a292984f97877 100644 --- a/clients/client-sagemaker-a2i-runtime/runtimeConfig.browser.ts +++ b/clients/client-sagemaker-a2i-runtime/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-sagemaker-runtime/runtimeConfig.browser.ts b/clients/client-sagemaker-runtime/runtimeConfig.browser.ts index 1e315907d27d1..ff82f4baef703 100644 --- a/clients/client-sagemaker-runtime/runtimeConfig.browser.ts +++ b/clients/client-sagemaker-runtime/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-sagemaker/runtimeConfig.browser.ts b/clients/client-sagemaker/runtimeConfig.browser.ts index ca258cb71532b..0b3a61ed323d1 100644 --- a/clients/client-sagemaker/runtimeConfig.browser.ts +++ b/clients/client-sagemaker/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-savingsplans/runtimeConfig.browser.ts b/clients/client-savingsplans/runtimeConfig.browser.ts index 8c1562f09c12e..de7d8132f165a 100644 --- a/clients/client-savingsplans/runtimeConfig.browser.ts +++ b/clients/client-savingsplans/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-schemas/runtimeConfig.browser.ts b/clients/client-schemas/runtimeConfig.browser.ts index fb305ffb4bab6..e9a919557cbe9 100644 --- a/clients/client-schemas/runtimeConfig.browser.ts +++ b/clients/client-schemas/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-secrets-manager/runtimeConfig.browser.ts b/clients/client-secrets-manager/runtimeConfig.browser.ts index 140e64cc15a6a..2dddda132a68f 100644 --- a/clients/client-secrets-manager/runtimeConfig.browser.ts +++ b/clients/client-secrets-manager/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-securityhub/runtimeConfig.browser.ts b/clients/client-securityhub/runtimeConfig.browser.ts index dfddc4902541f..895ae6aafc3a7 100644 --- a/clients/client-securityhub/runtimeConfig.browser.ts +++ b/clients/client-securityhub/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-serverlessapplicationrepository/runtimeConfig.browser.ts b/clients/client-serverlessapplicationrepository/runtimeConfig.browser.ts index bc00c2e884e7b..0fedf8d4dc24f 100644 --- a/clients/client-serverlessapplicationrepository/runtimeConfig.browser.ts +++ b/clients/client-serverlessapplicationrepository/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-service-catalog-appregistry/runtimeConfig.browser.ts b/clients/client-service-catalog-appregistry/runtimeConfig.browser.ts index f319628115533..4f451273696f7 100644 --- a/clients/client-service-catalog-appregistry/runtimeConfig.browser.ts +++ b/clients/client-service-catalog-appregistry/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-service-catalog/runtimeConfig.browser.ts b/clients/client-service-catalog/runtimeConfig.browser.ts index d09447087e46c..afd0157c051b5 100644 --- a/clients/client-service-catalog/runtimeConfig.browser.ts +++ b/clients/client-service-catalog/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-service-quotas/runtimeConfig.browser.ts b/clients/client-service-quotas/runtimeConfig.browser.ts index 5a7f22af89cd6..458ce3ce4e711 100644 --- a/clients/client-service-quotas/runtimeConfig.browser.ts +++ b/clients/client-service-quotas/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-servicediscovery/runtimeConfig.browser.ts b/clients/client-servicediscovery/runtimeConfig.browser.ts index 12048d8e5cfd0..994ee89c31f0a 100644 --- a/clients/client-servicediscovery/runtimeConfig.browser.ts +++ b/clients/client-servicediscovery/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-ses/runtimeConfig.browser.ts b/clients/client-ses/runtimeConfig.browser.ts index e9744d812dfdc..26eb616cdfb73 100644 --- a/clients/client-ses/runtimeConfig.browser.ts +++ b/clients/client-ses/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-sesv2/runtimeConfig.browser.ts b/clients/client-sesv2/runtimeConfig.browser.ts index 3b0175a077505..a540a3f328022 100644 --- a/clients/client-sesv2/runtimeConfig.browser.ts +++ b/clients/client-sesv2/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-sfn/runtimeConfig.browser.ts b/clients/client-sfn/runtimeConfig.browser.ts index 674fad8b015c9..29ff52e06066b 100644 --- a/clients/client-sfn/runtimeConfig.browser.ts +++ b/clients/client-sfn/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-shield/runtimeConfig.browser.ts b/clients/client-shield/runtimeConfig.browser.ts index 066cd72b59f41..e68cfe313d51d 100644 --- a/clients/client-shield/runtimeConfig.browser.ts +++ b/clients/client-shield/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-signer/runtimeConfig.browser.ts b/clients/client-signer/runtimeConfig.browser.ts index a788ed7a51d4f..8a57aa7d2a725 100644 --- a/clients/client-signer/runtimeConfig.browser.ts +++ b/clients/client-signer/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-sms/runtimeConfig.browser.ts b/clients/client-sms/runtimeConfig.browser.ts index 1dcb5c55bef75..8232328b3c511 100644 --- a/clients/client-sms/runtimeConfig.browser.ts +++ b/clients/client-sms/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-snowball/runtimeConfig.browser.ts b/clients/client-snowball/runtimeConfig.browser.ts index 3c9f4976635f8..6d4ae01f4a08f 100644 --- a/clients/client-snowball/runtimeConfig.browser.ts +++ b/clients/client-snowball/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-sns/runtimeConfig.browser.ts b/clients/client-sns/runtimeConfig.browser.ts index 945dea6806d76..7a32870c37435 100644 --- a/clients/client-sns/runtimeConfig.browser.ts +++ b/clients/client-sns/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-sqs/runtimeConfig.browser.ts b/clients/client-sqs/runtimeConfig.browser.ts index 83a34c17e1f4b..c7810b4c2efc3 100644 --- a/clients/client-sqs/runtimeConfig.browser.ts +++ b/clients/client-sqs/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { Md5 } from "@aws-sdk/md5-js"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; @@ -22,11 +22,11 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, md5: Md5, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-ssm/runtimeConfig.browser.ts b/clients/client-ssm/runtimeConfig.browser.ts index 3a647b2ce454f..188eb31b35b24 100644 --- a/clients/client-ssm/runtimeConfig.browser.ts +++ b/clients/client-ssm/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-sso-admin/runtimeConfig.browser.ts b/clients/client-sso-admin/runtimeConfig.browser.ts index ac9fb53989428..ff78878335bc7 100644 --- a/clients/client-sso-admin/runtimeConfig.browser.ts +++ b/clients/client-sso-admin/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-sso-oidc/runtimeConfig.browser.ts b/clients/client-sso-oidc/runtimeConfig.browser.ts index 1b3acddd14be8..c1f6b89f069a0 100644 --- a/clients/client-sso-oidc/runtimeConfig.browser.ts +++ b/clients/client-sso-oidc/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-sso/runtimeConfig.browser.ts b/clients/client-sso/runtimeConfig.browser.ts index afa8469240500..e0586f6519e2d 100644 --- a/clients/client-sso/runtimeConfig.browser.ts +++ b/clients/client-sso/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-storage-gateway/runtimeConfig.browser.ts b/clients/client-storage-gateway/runtimeConfig.browser.ts index f47b6797e93cf..66830ce32ac70 100644 --- a/clients/client-storage-gateway/runtimeConfig.browser.ts +++ b/clients/client-storage-gateway/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-sts/runtimeConfig.browser.ts b/clients/client-sts/runtimeConfig.browser.ts index 809eb596e9824..51151068b48d9 100644 --- a/clients/client-sts/runtimeConfig.browser.ts +++ b/clients/client-sts/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-support/runtimeConfig.browser.ts b/clients/client-support/runtimeConfig.browser.ts index 18234482e58fc..7263a91ad5627 100644 --- a/clients/client-support/runtimeConfig.browser.ts +++ b/clients/client-support/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-swf/runtimeConfig.browser.ts b/clients/client-swf/runtimeConfig.browser.ts index 274007ddc5654..59c0a7d26b5dd 100644 --- a/clients/client-swf/runtimeConfig.browser.ts +++ b/clients/client-swf/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-synthetics/runtimeConfig.browser.ts b/clients/client-synthetics/runtimeConfig.browser.ts index fd65fc72e0a47..3178cc9c86a2a 100644 --- a/clients/client-synthetics/runtimeConfig.browser.ts +++ b/clients/client-synthetics/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-textract/runtimeConfig.browser.ts b/clients/client-textract/runtimeConfig.browser.ts index 5c342938619b2..7c9195aaf64e9 100644 --- a/clients/client-textract/runtimeConfig.browser.ts +++ b/clients/client-textract/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-timestream-query/runtimeConfig.browser.ts b/clients/client-timestream-query/runtimeConfig.browser.ts index bfbc11bbaed83..344860992f16d 100644 --- a/clients/client-timestream-query/runtimeConfig.browser.ts +++ b/clients/client-timestream-query/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-timestream-write/runtimeConfig.browser.ts b/clients/client-timestream-write/runtimeConfig.browser.ts index dc9a16f0d4449..c9ababccb0dbd 100644 --- a/clients/client-timestream-write/runtimeConfig.browser.ts +++ b/clients/client-timestream-write/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-transcribe-streaming/runtimeConfig.browser.ts b/clients/client-transcribe-streaming/runtimeConfig.browser.ts index 952537f0ad2cf..4657be4850b73 100644 --- a/clients/client-transcribe-streaming/runtimeConfig.browser.ts +++ b/clients/client-transcribe-streaming/runtimeConfig.browser.ts @@ -3,7 +3,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { eventStreamSerdeProvider } from "@aws-sdk/eventstream-serde-browser"; import { streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { WebSocketHandler, eventStreamPayloadHandler } from "@aws-sdk/middleware-sdk-transcribe-streaming"; import { parseUrl } from "@aws-sdk/url-parser-browser"; @@ -23,12 +23,12 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), eventStreamPayloadHandlerProvider: () => eventStreamPayloadHandler, eventStreamSerdeProvider, maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new WebSocketHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-transcribe/runtimeConfig.browser.ts b/clients/client-transcribe/runtimeConfig.browser.ts index 70db9aed15b46..fe63667d11153 100644 --- a/clients/client-transcribe/runtimeConfig.browser.ts +++ b/clients/client-transcribe/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-transfer/runtimeConfig.browser.ts b/clients/client-transfer/runtimeConfig.browser.ts index 82b5a032228e5..0d93781eac69d 100644 --- a/clients/client-transfer/runtimeConfig.browser.ts +++ b/clients/client-transfer/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-translate/runtimeConfig.browser.ts b/clients/client-translate/runtimeConfig.browser.ts index 5a445e3ca9b95..3dc5a28957f9b 100644 --- a/clients/client-translate/runtimeConfig.browser.ts +++ b/clients/client-translate/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-waf-regional/runtimeConfig.browser.ts b/clients/client-waf-regional/runtimeConfig.browser.ts index f9b28b2364bc4..2607d15e90996 100644 --- a/clients/client-waf-regional/runtimeConfig.browser.ts +++ b/clients/client-waf-regional/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-waf/runtimeConfig.browser.ts b/clients/client-waf/runtimeConfig.browser.ts index 196c31645ed47..f91cf67d9a882 100644 --- a/clients/client-waf/runtimeConfig.browser.ts +++ b/clients/client-waf/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-wafv2/runtimeConfig.browser.ts b/clients/client-wafv2/runtimeConfig.browser.ts index c231226454e89..d724f23f635dd 100644 --- a/clients/client-wafv2/runtimeConfig.browser.ts +++ b/clients/client-wafv2/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-workdocs/runtimeConfig.browser.ts b/clients/client-workdocs/runtimeConfig.browser.ts index ae609e929e370..e20215bf0c639 100644 --- a/clients/client-workdocs/runtimeConfig.browser.ts +++ b/clients/client-workdocs/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-worklink/runtimeConfig.browser.ts b/clients/client-worklink/runtimeConfig.browser.ts index 07cabc8ceeacc..25670e2c8ea0e 100644 --- a/clients/client-worklink/runtimeConfig.browser.ts +++ b/clients/client-worklink/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-workmail/runtimeConfig.browser.ts b/clients/client-workmail/runtimeConfig.browser.ts index bc945fd483c9b..3e89fe07279bd 100644 --- a/clients/client-workmail/runtimeConfig.browser.ts +++ b/clients/client-workmail/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-workmailmessageflow/runtimeConfig.browser.ts b/clients/client-workmailmessageflow/runtimeConfig.browser.ts index 43c66da3fef8d..3455971ed8e0e 100644 --- a/clients/client-workmailmessageflow/runtimeConfig.browser.ts +++ b/clients/client-workmailmessageflow/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-workspaces/runtimeConfig.browser.ts b/clients/client-workspaces/runtimeConfig.browser.ts index 206282408413a..df2b7c8083d0b 100644 --- a/clients/client-workspaces/runtimeConfig.browser.ts +++ b/clients/client-workspaces/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/clients/client-xray/runtimeConfig.browser.ts b/clients/client-xray/runtimeConfig.browser.ts index 4f815f4104ffb..79d9cf6f79af8 100644 --- a/clients/client-xray/runtimeConfig.browser.ts +++ b/clients/client-xray/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/protocol_tests/aws-ec2/runtimeConfig.browser.ts b/protocol_tests/aws-ec2/runtimeConfig.browser.ts index e41052307cd7c..6f536157708ec 100644 --- a/protocol_tests/aws-ec2/runtimeConfig.browser.ts +++ b/protocol_tests/aws-ec2/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/protocol_tests/aws-json/runtimeConfig.browser.ts b/protocol_tests/aws-json/runtimeConfig.browser.ts index 4de4319902285..495f92be689ea 100644 --- a/protocol_tests/aws-json/runtimeConfig.browser.ts +++ b/protocol_tests/aws-json/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/protocol_tests/aws-query/runtimeConfig.browser.ts b/protocol_tests/aws-query/runtimeConfig.browser.ts index e7e3ae135eb83..8e70f36a301c7 100644 --- a/protocol_tests/aws-query/runtimeConfig.browser.ts +++ b/protocol_tests/aws-query/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/protocol_tests/aws-restjson/runtimeConfig.browser.ts b/protocol_tests/aws-restjson/runtimeConfig.browser.ts index 0d3ee25024dcf..5f24183b0bc2c 100644 --- a/protocol_tests/aws-restjson/runtimeConfig.browser.ts +++ b/protocol_tests/aws-restjson/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, diff --git a/protocol_tests/aws-restxml/runtimeConfig.browser.ts b/protocol_tests/aws-restxml/runtimeConfig.browser.ts index 480eeed9278b0..fa5b8050b0f15 100644 --- a/protocol_tests/aws-restxml/runtimeConfig.browser.ts +++ b/protocol_tests/aws-restxml/runtimeConfig.browser.ts @@ -2,7 +2,7 @@ import packageInfo from "./package.json"; import { Sha256 } from "@aws-crypto/sha256-browser"; import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler"; -import { invalidFunction } from "@aws-sdk/invalid-dependency"; +import { invalidAsyncFunction } from "@aws-sdk/invalid-dependency"; import { DEFAULT_MAX_ATTEMPTS } from "@aws-sdk/middleware-retry"; import { parseUrl } from "@aws-sdk/url-parser-browser"; import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser"; @@ -21,10 +21,10 @@ export const ClientDefaultValues: Required = { base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, - credentialDefaultProvider: invalidFunction("Credential is missing") as any, + credentialDefaultProvider: invalidAsyncFunction("Credentialis missing") as any, defaultUserAgent: defaultUserAgent(packageInfo.name, packageInfo.version), maxAttempts: DEFAULT_MAX_ATTEMPTS, - region: invalidFunction("Region is missing") as any, + region: invalidAsyncFunction("Region is missing") as any, requestHandler: new FetchHttpHandler(), sha256: Sha256, streamCollector, From dad74c034482299e0fa99b6f61fb30d72bd2f572 Mon Sep 17 00:00:00 2001 From: Trivikram Kamat <16024985+trivikr@users.noreply.github.com> Date: Wed, 25 Nov 2020 16:47:06 +0000 Subject: [PATCH 8/9] fix(invalid-dependency): invalidAsyncFunction to reject with error --- packages/invalid-dependency/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/invalid-dependency/src/index.ts b/packages/invalid-dependency/src/index.ts index d9207f0ea74d7..bb3efb7971d4b 100644 --- a/packages/invalid-dependency/src/index.ts +++ b/packages/invalid-dependency/src/index.ts @@ -2,4 +2,4 @@ export const invalidFunction = (message: string) => () => { throw new Error(message); }; -export const invalidAsyncFunction = (message: string) => () => Promise.resolve(new Error(message)); +export const invalidAsyncFunction = (message: string) => () => Promise.reject(new Error(message)); From 2d76860e03b1bc00b1574baa810238959be804d5 Mon Sep 17 00:00:00 2001 From: Trivikram Kamat <16024985+trivikr@users.noreply.github.com> Date: Wed, 25 Nov 2020 17:10:57 +0000 Subject: [PATCH 9/9] test(invalid-dependency): add unit tests --- packages/invalid-dependency/jest.config.js | 5 +++++ packages/invalid-dependency/src/index.ts | 7 ++----- .../invalid-dependency/src/invalidAsyncFunction.spec.ts | 8 ++++++++ packages/invalid-dependency/src/invalidAsyncFunction.ts | 1 + packages/invalid-dependency/src/invalidFunction.spec.ts | 8 ++++++++ packages/invalid-dependency/src/invalidFunction.ts | 3 +++ 6 files changed, 27 insertions(+), 5 deletions(-) create mode 100644 packages/invalid-dependency/jest.config.js create mode 100644 packages/invalid-dependency/src/invalidAsyncFunction.spec.ts create mode 100644 packages/invalid-dependency/src/invalidAsyncFunction.ts create mode 100644 packages/invalid-dependency/src/invalidFunction.spec.ts create mode 100644 packages/invalid-dependency/src/invalidFunction.ts diff --git a/packages/invalid-dependency/jest.config.js b/packages/invalid-dependency/jest.config.js new file mode 100644 index 0000000000000..a8d1c2e499123 --- /dev/null +++ b/packages/invalid-dependency/jest.config.js @@ -0,0 +1,5 @@ +const base = require("../../jest.config.base.js"); + +module.exports = { + ...base, +}; diff --git a/packages/invalid-dependency/src/index.ts b/packages/invalid-dependency/src/index.ts index bb3efb7971d4b..4f9e9a9951a5a 100644 --- a/packages/invalid-dependency/src/index.ts +++ b/packages/invalid-dependency/src/index.ts @@ -1,5 +1,2 @@ -export const invalidFunction = (message: string) => () => { - throw new Error(message); -}; - -export const invalidAsyncFunction = (message: string) => () => Promise.reject(new Error(message)); +export * from "./invalidFunction"; +export * from "./invalidAsyncFunction"; diff --git a/packages/invalid-dependency/src/invalidAsyncFunction.spec.ts b/packages/invalid-dependency/src/invalidAsyncFunction.spec.ts new file mode 100644 index 0000000000000..7801c34672d98 --- /dev/null +++ b/packages/invalid-dependency/src/invalidAsyncFunction.spec.ts @@ -0,0 +1,8 @@ +import { invalidAsyncFunction } from "./invalidAsyncFunction"; + +describe("invalidAsyncFunction", () => { + it("rejects with error containing message", async () => { + const message = "Error"; + await expect(invalidAsyncFunction(message)).rejects.toThrow(new Error(message)); + }); +}); diff --git a/packages/invalid-dependency/src/invalidAsyncFunction.ts b/packages/invalid-dependency/src/invalidAsyncFunction.ts new file mode 100644 index 0000000000000..ea31e5e2db63f --- /dev/null +++ b/packages/invalid-dependency/src/invalidAsyncFunction.ts @@ -0,0 +1 @@ +export const invalidAsyncFunction = (message: string) => () => Promise.reject(new Error(message)); diff --git a/packages/invalid-dependency/src/invalidFunction.spec.ts b/packages/invalid-dependency/src/invalidFunction.spec.ts new file mode 100644 index 0000000000000..d58782e792769 --- /dev/null +++ b/packages/invalid-dependency/src/invalidFunction.spec.ts @@ -0,0 +1,8 @@ +import { invalidFunction } from "./invalidFunction"; + +describe("invalidFunction", () => { + it("throws error with message", () => { + const message = "Error"; + expect(invalidFunction(message)).toThrowError(new Error(message)); + }); +}); diff --git a/packages/invalid-dependency/src/invalidFunction.ts b/packages/invalid-dependency/src/invalidFunction.ts new file mode 100644 index 0000000000000..b86c69139c0d3 --- /dev/null +++ b/packages/invalid-dependency/src/invalidFunction.ts @@ -0,0 +1,3 @@ +export const invalidFunction = (message: string) => () => { + throw new Error(message); +};