Skip to content

Commit e5d2e1c

Browse files
authored
chore(clients): set bodyLengthChecker type to BodyLengthCalculator (#3405)
1 parent 7e4abf7 commit e5d2e1c

File tree

305 files changed

+610
-305
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

305 files changed

+610
-305
lines changed

clients/client-accessanalyzer/src/AccessAnalyzerClient.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import {
3535
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
3636
} from "@aws-sdk/smithy-client";
3737
import {
38+
BodyLengthCalculator as __BodyLengthCalculator,
3839
Credentials as __Credentials,
3940
Decoder as __Decoder,
4041
Encoder as __Encoder,
@@ -187,7 +188,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
187188
* A function that can calculate the length of a request body.
188189
* @internal
189190
*/
190-
bodyLengthChecker?: (body: any) => number | undefined;
191+
bodyLengthChecker?: __BodyLengthCalculator;
191192

192193
/**
193194
* A function that converts a stream into an array of bytes.

clients/client-account/src/AccountClient.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import {
3535
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
3636
} from "@aws-sdk/smithy-client";
3737
import {
38+
BodyLengthCalculator as __BodyLengthCalculator,
3839
Credentials as __Credentials,
3940
Decoder as __Decoder,
4041
Encoder as __Encoder,
@@ -97,7 +98,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
9798
* A function that can calculate the length of a request body.
9899
* @internal
99100
*/
100-
bodyLengthChecker?: (body: any) => number | undefined;
101+
bodyLengthChecker?: __BodyLengthCalculator;
101102

102103
/**
103104
* A function that converts a stream into an array of bytes.

clients/client-acm-pca/src/ACMPCAClient.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import {
3535
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
3636
} from "@aws-sdk/smithy-client";
3737
import {
38+
BodyLengthCalculator as __BodyLengthCalculator,
3839
Credentials as __Credentials,
3940
Decoder as __Decoder,
4041
Encoder as __Encoder,
@@ -187,7 +188,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
187188
* A function that can calculate the length of a request body.
188189
* @internal
189190
*/
190-
bodyLengthChecker?: (body: any) => number | undefined;
191+
bodyLengthChecker?: __BodyLengthCalculator;
191192

192193
/**
193194
* A function that converts a stream into an array of bytes.

clients/client-acm/src/ACMClient.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import {
3535
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
3636
} from "@aws-sdk/smithy-client";
3737
import {
38+
BodyLengthCalculator as __BodyLengthCalculator,
3839
Credentials as __Credentials,
3940
Decoder as __Decoder,
4041
Encoder as __Encoder,
@@ -148,7 +149,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
148149
* A function that can calculate the length of a request body.
149150
* @internal
150151
*/
151-
bodyLengthChecker?: (body: any) => number | undefined;
152+
bodyLengthChecker?: __BodyLengthCalculator;
152153

153154
/**
154155
* A function that converts a stream into an array of bytes.

clients/client-alexa-for-business/src/AlexaForBusinessClient.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import {
3535
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
3636
} from "@aws-sdk/smithy-client";
3737
import {
38+
BodyLengthCalculator as __BodyLengthCalculator,
3839
Credentials as __Credentials,
3940
Decoder as __Decoder,
4041
Encoder as __Encoder,
@@ -475,7 +476,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
475476
* A function that can calculate the length of a request body.
476477
* @internal
477478
*/
478-
bodyLengthChecker?: (body: any) => number | undefined;
479+
bodyLengthChecker?: __BodyLengthCalculator;
479480

480481
/**
481482
* A function that converts a stream into an array of bytes.

clients/client-amp/src/AmpClient.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import {
3535
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
3636
} from "@aws-sdk/smithy-client";
3737
import {
38+
BodyLengthCalculator as __BodyLengthCalculator,
3839
Credentials as __Credentials,
3940
Decoder as __Decoder,
4041
Encoder as __Encoder,
@@ -163,7 +164,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
163164
* A function that can calculate the length of a request body.
164165
* @internal
165166
*/
166-
bodyLengthChecker?: (body: any) => number | undefined;
167+
bodyLengthChecker?: __BodyLengthCalculator;
167168

168169
/**
169170
* A function that converts a stream into an array of bytes.

clients/client-amplify/src/AmplifyClient.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import {
3535
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
3636
} from "@aws-sdk/smithy-client";
3737
import {
38+
BodyLengthCalculator as __BodyLengthCalculator,
3839
Credentials as __Credentials,
3940
Decoder as __Decoder,
4041
Encoder as __Encoder,
@@ -220,7 +221,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
220221
* A function that can calculate the length of a request body.
221222
* @internal
222223
*/
223-
bodyLengthChecker?: (body: any) => number | undefined;
224+
bodyLengthChecker?: __BodyLengthCalculator;
224225

225226
/**
226227
* A function that converts a stream into an array of bytes.

clients/client-amplifybackend/src/AmplifyBackendClient.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import {
3535
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
3636
} from "@aws-sdk/smithy-client";
3737
import {
38+
BodyLengthCalculator as __BodyLengthCalculator,
3839
Credentials as __Credentials,
3940
Decoder as __Decoder,
4041
Encoder as __Encoder,
@@ -199,7 +200,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
199200
* A function that can calculate the length of a request body.
200201
* @internal
201202
*/
202-
bodyLengthChecker?: (body: any) => number | undefined;
203+
bodyLengthChecker?: __BodyLengthCalculator;
203204

204205
/**
205206
* A function that converts a stream into an array of bytes.

clients/client-amplifyuibuilder/src/AmplifyUIBuilderClient.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import {
3535
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
3636
} from "@aws-sdk/smithy-client";
3737
import {
38+
BodyLengthCalculator as __BodyLengthCalculator,
3839
Credentials as __Credentials,
3940
Decoder as __Decoder,
4041
Encoder as __Encoder,
@@ -124,7 +125,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
124125
* A function that can calculate the length of a request body.
125126
* @internal
126127
*/
127-
bodyLengthChecker?: (body: any) => number | undefined;
128+
bodyLengthChecker?: __BodyLengthCalculator;
128129

129130
/**
130131
* A function that converts a stream into an array of bytes.

clients/client-api-gateway/src/APIGatewayClient.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ import {
3636
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
3737
} from "@aws-sdk/smithy-client";
3838
import {
39+
BodyLengthCalculator as __BodyLengthCalculator,
3940
Credentials as __Credentials,
4041
Decoder as __Decoder,
4142
Encoder as __Encoder,
@@ -548,7 +549,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
548549
* A function that can calculate the length of a request body.
549550
* @internal
550551
*/
551-
bodyLengthChecker?: (body: any) => number | undefined;
552+
bodyLengthChecker?: __BodyLengthCalculator;
552553

553554
/**
554555
* A function that converts a stream into an array of bytes.

clients/client-apigatewaymanagementapi/src/ApiGatewayManagementApiClient.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import {
3535
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
3636
} from "@aws-sdk/smithy-client";
3737
import {
38+
BodyLengthCalculator as __BodyLengthCalculator,
3839
Credentials as __Credentials,
3940
Decoder as __Decoder,
4041
Encoder as __Encoder,
@@ -85,7 +86,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
8586
* A function that can calculate the length of a request body.
8687
* @internal
8788
*/
88-
bodyLengthChecker?: (body: any) => number | undefined;
89+
bodyLengthChecker?: __BodyLengthCalculator;
8990

9091
/**
9192
* A function that converts a stream into an array of bytes.

clients/client-apigatewayv2/src/ApiGatewayV2Client.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import {
3535
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
3636
} from "@aws-sdk/smithy-client";
3737
import {
38+
BodyLengthCalculator as __BodyLengthCalculator,
3839
Credentials as __Credentials,
3940
Decoder as __Decoder,
4041
Encoder as __Encoder,
@@ -334,7 +335,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
334335
* A function that can calculate the length of a request body.
335336
* @internal
336337
*/
337-
bodyLengthChecker?: (body: any) => number | undefined;
338+
bodyLengthChecker?: __BodyLengthCalculator;
338339

339340
/**
340341
* A function that converts a stream into an array of bytes.

clients/client-app-mesh/src/AppMeshClient.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import {
3535
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
3636
} from "@aws-sdk/smithy-client";
3737
import {
38+
BodyLengthCalculator as __BodyLengthCalculator,
3839
Credentials as __Credentials,
3940
Decoder as __Decoder,
4041
Encoder as __Encoder,
@@ -244,7 +245,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
244245
* A function that can calculate the length of a request body.
245246
* @internal
246247
*/
247-
bodyLengthChecker?: (body: any) => number | undefined;
248+
bodyLengthChecker?: __BodyLengthCalculator;
248249

249250
/**
250251
* A function that converts a stream into an array of bytes.

clients/client-appconfig/src/AppConfigClient.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import {
3535
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
3636
} from "@aws-sdk/smithy-client";
3737
import {
38+
BodyLengthCalculator as __BodyLengthCalculator,
3839
Credentials as __Credentials,
3940
Decoder as __Decoder,
4041
Encoder as __Encoder,
@@ -226,7 +227,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
226227
* A function that can calculate the length of a request body.
227228
* @internal
228229
*/
229-
bodyLengthChecker?: (body: any) => number | undefined;
230+
bodyLengthChecker?: __BodyLengthCalculator;
230231

231232
/**
232233
* A function that converts a stream into an array of bytes.

clients/client-appconfigdata/src/AppConfigDataClient.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import {
3535
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
3636
} from "@aws-sdk/smithy-client";
3737
import {
38+
BodyLengthCalculator as __BodyLengthCalculator,
3839
Credentials as __Credentials,
3940
Decoder as __Decoder,
4041
Encoder as __Encoder,
@@ -87,7 +88,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
8788
* A function that can calculate the length of a request body.
8889
* @internal
8990
*/
90-
bodyLengthChecker?: (body: any) => number | undefined;
91+
bodyLengthChecker?: __BodyLengthCalculator;
9192

9293
/**
9394
* A function that converts a stream into an array of bytes.

clients/client-appflow/src/AppflowClient.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import {
3535
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
3636
} from "@aws-sdk/smithy-client";
3737
import {
38+
BodyLengthCalculator as __BodyLengthCalculator,
3839
Credentials as __Credentials,
3940
Decoder as __Decoder,
4041
Encoder as __Encoder,
@@ -172,7 +173,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
172173
* A function that can calculate the length of a request body.
173174
* @internal
174175
*/
175-
bodyLengthChecker?: (body: any) => number | undefined;
176+
bodyLengthChecker?: __BodyLengthCalculator;
176177

177178
/**
178179
* A function that converts a stream into an array of bytes.

clients/client-appintegrations/src/AppIntegrationsClient.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import {
3535
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
3636
} from "@aws-sdk/smithy-client";
3737
import {
38+
BodyLengthCalculator as __BodyLengthCalculator,
3839
Credentials as __Credentials,
3940
Decoder as __Decoder,
4041
Encoder as __Encoder,
@@ -160,7 +161,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
160161
* A function that can calculate the length of a request body.
161162
* @internal
162163
*/
163-
bodyLengthChecker?: (body: any) => number | undefined;
164+
bodyLengthChecker?: __BodyLengthCalculator;
164165

165166
/**
166167
* A function that converts a stream into an array of bytes.

clients/client-application-auto-scaling/src/ApplicationAutoScalingClient.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import {
3535
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
3636
} from "@aws-sdk/smithy-client";
3737
import {
38+
BodyLengthCalculator as __BodyLengthCalculator,
3839
Credentials as __Credentials,
3940
Decoder as __Decoder,
4041
Encoder as __Encoder,
@@ -133,7 +134,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
133134
* A function that can calculate the length of a request body.
134135
* @internal
135136
*/
136-
bodyLengthChecker?: (body: any) => number | undefined;
137+
bodyLengthChecker?: __BodyLengthCalculator;
137138

138139
/**
139140
* A function that converts a stream into an array of bytes.

clients/client-application-discovery-service/src/ApplicationDiscoveryServiceClient.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import {
3535
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
3636
} from "@aws-sdk/smithy-client";
3737
import {
38+
BodyLengthCalculator as __BodyLengthCalculator,
3839
Credentials as __Credentials,
3940
Decoder as __Decoder,
4041
Encoder as __Encoder,
@@ -199,7 +200,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
199200
* A function that can calculate the length of a request body.
200201
* @internal
201202
*/
202-
bodyLengthChecker?: (body: any) => number | undefined;
203+
bodyLengthChecker?: __BodyLengthCalculator;
203204

204205
/**
205206
* A function that converts a stream into an array of bytes.

clients/client-application-insights/src/ApplicationInsightsClient.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import {
3535
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
3636
} from "@aws-sdk/smithy-client";
3737
import {
38+
BodyLengthCalculator as __BodyLengthCalculator,
3839
Credentials as __Credentials,
3940
Decoder as __Decoder,
4041
Encoder as __Encoder,
@@ -184,7 +185,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
184185
* A function that can calculate the length of a request body.
185186
* @internal
186187
*/
187-
bodyLengthChecker?: (body: any) => number | undefined;
188+
bodyLengthChecker?: __BodyLengthCalculator;
188189

189190
/**
190191
* A function that converts a stream into an array of bytes.

clients/client-applicationcostprofiler/src/ApplicationCostProfilerClient.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import {
3535
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
3636
} from "@aws-sdk/smithy-client";
3737
import {
38+
BodyLengthCalculator as __BodyLengthCalculator,
3839
Credentials as __Credentials,
3940
Decoder as __Decoder,
4041
Encoder as __Encoder,
@@ -115,7 +116,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
115116
* A function that can calculate the length of a request body.
116117
* @internal
117118
*/
118-
bodyLengthChecker?: (body: any) => number | undefined;
119+
bodyLengthChecker?: __BodyLengthCalculator;
119120

120121
/**
121122
* A function that converts a stream into an array of bytes.

clients/client-apprunner/src/AppRunnerClient.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import {
3535
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
3636
} from "@aws-sdk/smithy-client";
3737
import {
38+
BodyLengthCalculator as __BodyLengthCalculator,
3839
Credentials as __Credentials,
3940
Decoder as __Decoder,
4041
Encoder as __Encoder,
@@ -184,7 +185,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
184185
* A function that can calculate the length of a request body.
185186
* @internal
186187
*/
187-
bodyLengthChecker?: (body: any) => number | undefined;
188+
bodyLengthChecker?: __BodyLengthCalculator;
188189

189190
/**
190191
* A function that converts a stream into an array of bytes.

clients/client-appstream/src/AppStreamClient.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import {
3535
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
3636
} from "@aws-sdk/smithy-client";
3737
import {
38+
BodyLengthCalculator as __BodyLengthCalculator,
3839
Credentials as __Credentials,
3940
Decoder as __Decoder,
4041
Encoder as __Encoder,
@@ -352,7 +353,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
352353
* A function that can calculate the length of a request body.
353354
* @internal
354355
*/
355-
bodyLengthChecker?: (body: any) => number | undefined;
356+
bodyLengthChecker?: __BodyLengthCalculator;
356357

357358
/**
358359
* A function that converts a stream into an array of bytes.

0 commit comments

Comments
 (0)