Skip to content

chore(clients): set bodyLengthChecker type to BodyLengthCalculator #3405

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion clients/client-accessanalyzer/src/AccessAnalyzerClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import {
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
} from "@aws-sdk/smithy-client";
import {
BodyLengthCalculator as __BodyLengthCalculator,
Credentials as __Credentials,
Decoder as __Decoder,
Encoder as __Encoder,
Expand Down Expand Up @@ -187,7 +188,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
* A function that can calculate the length of a request body.
* @internal
*/
bodyLengthChecker?: (body: any) => number | undefined;
bodyLengthChecker?: __BodyLengthCalculator;

/**
* A function that converts a stream into an array of bytes.
Expand Down
3 changes: 2 additions & 1 deletion clients/client-account/src/AccountClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import {
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
} from "@aws-sdk/smithy-client";
import {
BodyLengthCalculator as __BodyLengthCalculator,
Credentials as __Credentials,
Decoder as __Decoder,
Encoder as __Encoder,
Expand Down Expand Up @@ -97,7 +98,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
* A function that can calculate the length of a request body.
* @internal
*/
bodyLengthChecker?: (body: any) => number | undefined;
bodyLengthChecker?: __BodyLengthCalculator;

/**
* A function that converts a stream into an array of bytes.
Expand Down
3 changes: 2 additions & 1 deletion clients/client-acm-pca/src/ACMPCAClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import {
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
} from "@aws-sdk/smithy-client";
import {
BodyLengthCalculator as __BodyLengthCalculator,
Credentials as __Credentials,
Decoder as __Decoder,
Encoder as __Encoder,
Expand Down Expand Up @@ -187,7 +188,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
* A function that can calculate the length of a request body.
* @internal
*/
bodyLengthChecker?: (body: any) => number | undefined;
bodyLengthChecker?: __BodyLengthCalculator;

/**
* A function that converts a stream into an array of bytes.
Expand Down
3 changes: 2 additions & 1 deletion clients/client-acm/src/ACMClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import {
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
} from "@aws-sdk/smithy-client";
import {
BodyLengthCalculator as __BodyLengthCalculator,
Credentials as __Credentials,
Decoder as __Decoder,
Encoder as __Encoder,
Expand Down Expand Up @@ -148,7 +149,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
* A function that can calculate the length of a request body.
* @internal
*/
bodyLengthChecker?: (body: any) => number | undefined;
bodyLengthChecker?: __BodyLengthCalculator;

/**
* A function that converts a stream into an array of bytes.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import {
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
} from "@aws-sdk/smithy-client";
import {
BodyLengthCalculator as __BodyLengthCalculator,
Credentials as __Credentials,
Decoder as __Decoder,
Encoder as __Encoder,
Expand Down Expand Up @@ -475,7 +476,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
* A function that can calculate the length of a request body.
* @internal
*/
bodyLengthChecker?: (body: any) => number | undefined;
bodyLengthChecker?: __BodyLengthCalculator;

/**
* A function that converts a stream into an array of bytes.
Expand Down
3 changes: 2 additions & 1 deletion clients/client-amp/src/AmpClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import {
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
} from "@aws-sdk/smithy-client";
import {
BodyLengthCalculator as __BodyLengthCalculator,
Credentials as __Credentials,
Decoder as __Decoder,
Encoder as __Encoder,
Expand Down Expand Up @@ -163,7 +164,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
* A function that can calculate the length of a request body.
* @internal
*/
bodyLengthChecker?: (body: any) => number | undefined;
bodyLengthChecker?: __BodyLengthCalculator;

/**
* A function that converts a stream into an array of bytes.
Expand Down
3 changes: 2 additions & 1 deletion clients/client-amplify/src/AmplifyClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import {
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
} from "@aws-sdk/smithy-client";
import {
BodyLengthCalculator as __BodyLengthCalculator,
Credentials as __Credentials,
Decoder as __Decoder,
Encoder as __Encoder,
Expand Down Expand Up @@ -220,7 +221,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
* A function that can calculate the length of a request body.
* @internal
*/
bodyLengthChecker?: (body: any) => number | undefined;
bodyLengthChecker?: __BodyLengthCalculator;

/**
* A function that converts a stream into an array of bytes.
Expand Down
3 changes: 2 additions & 1 deletion clients/client-amplifybackend/src/AmplifyBackendClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import {
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
} from "@aws-sdk/smithy-client";
import {
BodyLengthCalculator as __BodyLengthCalculator,
Credentials as __Credentials,
Decoder as __Decoder,
Encoder as __Encoder,
Expand Down Expand Up @@ -199,7 +200,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
* A function that can calculate the length of a request body.
* @internal
*/
bodyLengthChecker?: (body: any) => number | undefined;
bodyLengthChecker?: __BodyLengthCalculator;

/**
* A function that converts a stream into an array of bytes.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import {
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
} from "@aws-sdk/smithy-client";
import {
BodyLengthCalculator as __BodyLengthCalculator,
Credentials as __Credentials,
Decoder as __Decoder,
Encoder as __Encoder,
Expand Down Expand Up @@ -124,7 +125,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
* A function that can calculate the length of a request body.
* @internal
*/
bodyLengthChecker?: (body: any) => number | undefined;
bodyLengthChecker?: __BodyLengthCalculator;

/**
* A function that converts a stream into an array of bytes.
Expand Down
3 changes: 2 additions & 1 deletion clients/client-api-gateway/src/APIGatewayClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import {
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
} from "@aws-sdk/smithy-client";
import {
BodyLengthCalculator as __BodyLengthCalculator,
Credentials as __Credentials,
Decoder as __Decoder,
Encoder as __Encoder,
Expand Down Expand Up @@ -548,7 +549,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
* A function that can calculate the length of a request body.
* @internal
*/
bodyLengthChecker?: (body: any) => number | undefined;
bodyLengthChecker?: __BodyLengthCalculator;

/**
* A function that converts a stream into an array of bytes.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import {
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
} from "@aws-sdk/smithy-client";
import {
BodyLengthCalculator as __BodyLengthCalculator,
Credentials as __Credentials,
Decoder as __Decoder,
Encoder as __Encoder,
Expand Down Expand Up @@ -85,7 +86,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
* A function that can calculate the length of a request body.
* @internal
*/
bodyLengthChecker?: (body: any) => number | undefined;
bodyLengthChecker?: __BodyLengthCalculator;

/**
* A function that converts a stream into an array of bytes.
Expand Down
3 changes: 2 additions & 1 deletion clients/client-apigatewayv2/src/ApiGatewayV2Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import {
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
} from "@aws-sdk/smithy-client";
import {
BodyLengthCalculator as __BodyLengthCalculator,
Credentials as __Credentials,
Decoder as __Decoder,
Encoder as __Encoder,
Expand Down Expand Up @@ -334,7 +335,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
* A function that can calculate the length of a request body.
* @internal
*/
bodyLengthChecker?: (body: any) => number | undefined;
bodyLengthChecker?: __BodyLengthCalculator;

/**
* A function that converts a stream into an array of bytes.
Expand Down
3 changes: 2 additions & 1 deletion clients/client-app-mesh/src/AppMeshClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import {
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
} from "@aws-sdk/smithy-client";
import {
BodyLengthCalculator as __BodyLengthCalculator,
Credentials as __Credentials,
Decoder as __Decoder,
Encoder as __Encoder,
Expand Down Expand Up @@ -244,7 +245,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
* A function that can calculate the length of a request body.
* @internal
*/
bodyLengthChecker?: (body: any) => number | undefined;
bodyLengthChecker?: __BodyLengthCalculator;

/**
* A function that converts a stream into an array of bytes.
Expand Down
3 changes: 2 additions & 1 deletion clients/client-appconfig/src/AppConfigClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import {
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
} from "@aws-sdk/smithy-client";
import {
BodyLengthCalculator as __BodyLengthCalculator,
Credentials as __Credentials,
Decoder as __Decoder,
Encoder as __Encoder,
Expand Down Expand Up @@ -226,7 +227,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
* A function that can calculate the length of a request body.
* @internal
*/
bodyLengthChecker?: (body: any) => number | undefined;
bodyLengthChecker?: __BodyLengthCalculator;

/**
* A function that converts a stream into an array of bytes.
Expand Down
3 changes: 2 additions & 1 deletion clients/client-appconfigdata/src/AppConfigDataClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import {
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
} from "@aws-sdk/smithy-client";
import {
BodyLengthCalculator as __BodyLengthCalculator,
Credentials as __Credentials,
Decoder as __Decoder,
Encoder as __Encoder,
Expand Down Expand Up @@ -87,7 +88,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
* A function that can calculate the length of a request body.
* @internal
*/
bodyLengthChecker?: (body: any) => number | undefined;
bodyLengthChecker?: __BodyLengthCalculator;

/**
* A function that converts a stream into an array of bytes.
Expand Down
3 changes: 2 additions & 1 deletion clients/client-appflow/src/AppflowClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import {
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
} from "@aws-sdk/smithy-client";
import {
BodyLengthCalculator as __BodyLengthCalculator,
Credentials as __Credentials,
Decoder as __Decoder,
Encoder as __Encoder,
Expand Down Expand Up @@ -172,7 +173,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
* A function that can calculate the length of a request body.
* @internal
*/
bodyLengthChecker?: (body: any) => number | undefined;
bodyLengthChecker?: __BodyLengthCalculator;

/**
* A function that converts a stream into an array of bytes.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import {
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
} from "@aws-sdk/smithy-client";
import {
BodyLengthCalculator as __BodyLengthCalculator,
Credentials as __Credentials,
Decoder as __Decoder,
Encoder as __Encoder,
Expand Down Expand Up @@ -160,7 +161,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
* A function that can calculate the length of a request body.
* @internal
*/
bodyLengthChecker?: (body: any) => number | undefined;
bodyLengthChecker?: __BodyLengthCalculator;

/**
* A function that converts a stream into an array of bytes.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import {
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
} from "@aws-sdk/smithy-client";
import {
BodyLengthCalculator as __BodyLengthCalculator,
Credentials as __Credentials,
Decoder as __Decoder,
Encoder as __Encoder,
Expand Down Expand Up @@ -133,7 +134,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
* A function that can calculate the length of a request body.
* @internal
*/
bodyLengthChecker?: (body: any) => number | undefined;
bodyLengthChecker?: __BodyLengthCalculator;

/**
* A function that converts a stream into an array of bytes.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import {
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
} from "@aws-sdk/smithy-client";
import {
BodyLengthCalculator as __BodyLengthCalculator,
Credentials as __Credentials,
Decoder as __Decoder,
Encoder as __Encoder,
Expand Down Expand Up @@ -199,7 +200,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
* A function that can calculate the length of a request body.
* @internal
*/
bodyLengthChecker?: (body: any) => number | undefined;
bodyLengthChecker?: __BodyLengthCalculator;

/**
* A function that converts a stream into an array of bytes.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import {
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
} from "@aws-sdk/smithy-client";
import {
BodyLengthCalculator as __BodyLengthCalculator,
Credentials as __Credentials,
Decoder as __Decoder,
Encoder as __Encoder,
Expand Down Expand Up @@ -184,7 +185,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
* A function that can calculate the length of a request body.
* @internal
*/
bodyLengthChecker?: (body: any) => number | undefined;
bodyLengthChecker?: __BodyLengthCalculator;

/**
* A function that converts a stream into an array of bytes.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import {
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
} from "@aws-sdk/smithy-client";
import {
BodyLengthCalculator as __BodyLengthCalculator,
Credentials as __Credentials,
Decoder as __Decoder,
Encoder as __Encoder,
Expand Down Expand Up @@ -115,7 +116,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
* A function that can calculate the length of a request body.
* @internal
*/
bodyLengthChecker?: (body: any) => number | undefined;
bodyLengthChecker?: __BodyLengthCalculator;

/**
* A function that converts a stream into an array of bytes.
Expand Down
3 changes: 2 additions & 1 deletion clients/client-apprunner/src/AppRunnerClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import {
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
} from "@aws-sdk/smithy-client";
import {
BodyLengthCalculator as __BodyLengthCalculator,
Credentials as __Credentials,
Decoder as __Decoder,
Encoder as __Encoder,
Expand Down Expand Up @@ -184,7 +185,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
* A function that can calculate the length of a request body.
* @internal
*/
bodyLengthChecker?: (body: any) => number | undefined;
bodyLengthChecker?: __BodyLengthCalculator;

/**
* A function that converts a stream into an array of bytes.
Expand Down
3 changes: 2 additions & 1 deletion clients/client-appstream/src/AppStreamClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import {
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
} from "@aws-sdk/smithy-client";
import {
BodyLengthCalculator as __BodyLengthCalculator,
Credentials as __Credentials,
Decoder as __Decoder,
Encoder as __Encoder,
Expand Down Expand Up @@ -352,7 +353,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
* A function that can calculate the length of a request body.
* @internal
*/
bodyLengthChecker?: (body: any) => number | undefined;
bodyLengthChecker?: __BodyLengthCalculator;

/**
* A function that converts a stream into an array of bytes.
Expand Down
Loading