Skip to content

Commit 8d99715

Browse files
authored
fix(codegen): move auth to standalone plugin (#2076)
* fix(codegen): move auth to standalone plugin * fix(client-sso-*): remove unused auth dependencies * chore(client): reorder auth plugin
1 parent f85225f commit 8d99715

File tree

257 files changed

+2856
-2792
lines changed

Some content is hidden

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

257 files changed

+2856
-2792
lines changed

Diff for: clients/client-accessanalyzer/AccessAnalyzerClient.ts

+11-11
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,6 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
180180
*/
181181
serviceId?: string;
182182

183-
/**
184-
* Default credentials provider; Not available in browser runtime
185-
*/
186-
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
187-
188183
/**
189184
* The AWS region to which this client will send requests
190185
*/
@@ -200,6 +195,11 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
200195
*/
201196
logger?: __Logger;
202197

198+
/**
199+
* Default credentials provider; Not available in browser runtime.
200+
*/
201+
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
202+
203203
/**
204204
* Fetch related hostname, signing name or signing region with given region.
205205
*/
@@ -216,18 +216,18 @@ export type AccessAnalyzerClientConfig = Partial<__SmithyConfiguration<__HttpHan
216216
ClientDefaults &
217217
RegionInputConfig &
218218
EndpointsInputConfig &
219-
AwsAuthInputConfig &
220219
RetryInputConfig &
221220
HostHeaderInputConfig &
221+
AwsAuthInputConfig &
222222
UserAgentInputConfig;
223223

224224
export type AccessAnalyzerClientResolvedConfig = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
225225
Required<ClientDefaults> &
226226
RegionResolvedConfig &
227227
EndpointsResolvedConfig &
228-
AwsAuthResolvedConfig &
229228
RetryResolvedConfig &
230229
HostHeaderResolvedConfig &
230+
AwsAuthResolvedConfig &
231231
UserAgentResolvedConfig;
232232

233233
/**
@@ -254,17 +254,17 @@ export class AccessAnalyzerClient extends __Client<
254254
};
255255
let _config_1 = resolveRegionConfig(_config_0);
256256
let _config_2 = resolveEndpointsConfig(_config_1);
257-
let _config_3 = resolveAwsAuthConfig(_config_2);
258-
let _config_4 = resolveRetryConfig(_config_3);
259-
let _config_5 = resolveHostHeaderConfig(_config_4);
257+
let _config_3 = resolveRetryConfig(_config_2);
258+
let _config_4 = resolveHostHeaderConfig(_config_3);
259+
let _config_5 = resolveAwsAuthConfig(_config_4);
260260
let _config_6 = resolveUserAgentConfig(_config_5);
261261
super(_config_6);
262262
this.config = _config_6;
263-
this.middlewareStack.use(getAwsAuthPlugin(this.config));
264263
this.middlewareStack.use(getRetryPlugin(this.config));
265264
this.middlewareStack.use(getContentLengthPlugin(this.config));
266265
this.middlewareStack.use(getHostHeaderPlugin(this.config));
267266
this.middlewareStack.use(getLoggerPlugin(this.config));
267+
this.middlewareStack.use(getAwsAuthPlugin(this.config));
268268
this.middlewareStack.use(getUserAgentPlugin(this.config));
269269
}
270270

Diff for: clients/client-acm-pca/ACMPCAClient.ts

+11-11
Original file line numberDiff line numberDiff line change
@@ -225,11 +225,6 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
225225
*/
226226
serviceId?: string;
227227

228-
/**
229-
* Default credentials provider; Not available in browser runtime
230-
*/
231-
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
232-
233228
/**
234229
* The AWS region to which this client will send requests
235230
*/
@@ -245,6 +240,11 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
245240
*/
246241
logger?: __Logger;
247242

243+
/**
244+
* Default credentials provider; Not available in browser runtime.
245+
*/
246+
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
247+
248248
/**
249249
* Fetch related hostname, signing name or signing region with given region.
250250
*/
@@ -261,18 +261,18 @@ export type ACMPCAClientConfig = Partial<__SmithyConfiguration<__HttpHandlerOpti
261261
ClientDefaults &
262262
RegionInputConfig &
263263
EndpointsInputConfig &
264-
AwsAuthInputConfig &
265264
RetryInputConfig &
266265
HostHeaderInputConfig &
266+
AwsAuthInputConfig &
267267
UserAgentInputConfig;
268268

269269
export type ACMPCAClientResolvedConfig = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
270270
Required<ClientDefaults> &
271271
RegionResolvedConfig &
272272
EndpointsResolvedConfig &
273-
AwsAuthResolvedConfig &
274273
RetryResolvedConfig &
275274
HostHeaderResolvedConfig &
275+
AwsAuthResolvedConfig &
276276
UserAgentResolvedConfig;
277277

278278
/**
@@ -308,17 +308,17 @@ export class ACMPCAClient extends __Client<
308308
};
309309
let _config_1 = resolveRegionConfig(_config_0);
310310
let _config_2 = resolveEndpointsConfig(_config_1);
311-
let _config_3 = resolveAwsAuthConfig(_config_2);
312-
let _config_4 = resolveRetryConfig(_config_3);
313-
let _config_5 = resolveHostHeaderConfig(_config_4);
311+
let _config_3 = resolveRetryConfig(_config_2);
312+
let _config_4 = resolveHostHeaderConfig(_config_3);
313+
let _config_5 = resolveAwsAuthConfig(_config_4);
314314
let _config_6 = resolveUserAgentConfig(_config_5);
315315
super(_config_6);
316316
this.config = _config_6;
317-
this.middlewareStack.use(getAwsAuthPlugin(this.config));
318317
this.middlewareStack.use(getRetryPlugin(this.config));
319318
this.middlewareStack.use(getContentLengthPlugin(this.config));
320319
this.middlewareStack.use(getHostHeaderPlugin(this.config));
321320
this.middlewareStack.use(getLoggerPlugin(this.config));
321+
this.middlewareStack.use(getAwsAuthPlugin(this.config));
322322
this.middlewareStack.use(getUserAgentPlugin(this.config));
323323
}
324324

Diff for: clients/client-acm/ACMClient.ts

+11-11
Original file line numberDiff line numberDiff line change
@@ -174,11 +174,6 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
174174
*/
175175
serviceId?: string;
176176

177-
/**
178-
* Default credentials provider; Not available in browser runtime
179-
*/
180-
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
181-
182177
/**
183178
* The AWS region to which this client will send requests
184179
*/
@@ -194,6 +189,11 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
194189
*/
195190
logger?: __Logger;
196191

192+
/**
193+
* Default credentials provider; Not available in browser runtime.
194+
*/
195+
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
196+
197197
/**
198198
* Fetch related hostname, signing name or signing region with given region.
199199
*/
@@ -210,18 +210,18 @@ export type ACMClientConfig = Partial<__SmithyConfiguration<__HttpHandlerOptions
210210
ClientDefaults &
211211
RegionInputConfig &
212212
EndpointsInputConfig &
213-
AwsAuthInputConfig &
214213
RetryInputConfig &
215214
HostHeaderInputConfig &
215+
AwsAuthInputConfig &
216216
UserAgentInputConfig;
217217

218218
export type ACMClientResolvedConfig = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
219219
Required<ClientDefaults> &
220220
RegionResolvedConfig &
221221
EndpointsResolvedConfig &
222-
AwsAuthResolvedConfig &
223222
RetryResolvedConfig &
224223
HostHeaderResolvedConfig &
224+
AwsAuthResolvedConfig &
225225
UserAgentResolvedConfig;
226226

227227
/**
@@ -247,17 +247,17 @@ export class ACMClient extends __Client<
247247
};
248248
let _config_1 = resolveRegionConfig(_config_0);
249249
let _config_2 = resolveEndpointsConfig(_config_1);
250-
let _config_3 = resolveAwsAuthConfig(_config_2);
251-
let _config_4 = resolveRetryConfig(_config_3);
252-
let _config_5 = resolveHostHeaderConfig(_config_4);
250+
let _config_3 = resolveRetryConfig(_config_2);
251+
let _config_4 = resolveHostHeaderConfig(_config_3);
252+
let _config_5 = resolveAwsAuthConfig(_config_4);
253253
let _config_6 = resolveUserAgentConfig(_config_5);
254254
super(_config_6);
255255
this.config = _config_6;
256-
this.middlewareStack.use(getAwsAuthPlugin(this.config));
257256
this.middlewareStack.use(getRetryPlugin(this.config));
258257
this.middlewareStack.use(getContentLengthPlugin(this.config));
259258
this.middlewareStack.use(getHostHeaderPlugin(this.config));
260259
this.middlewareStack.use(getLoggerPlugin(this.config));
260+
this.middlewareStack.use(getAwsAuthPlugin(this.config));
261261
this.middlewareStack.use(getUserAgentPlugin(this.config));
262262
}
263263

Diff for: clients/client-alexa-for-business/AlexaForBusinessClient.ts

+11-11
Original file line numberDiff line numberDiff line change
@@ -513,11 +513,6 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
513513
*/
514514
serviceId?: string;
515515

516-
/**
517-
* Default credentials provider; Not available in browser runtime
518-
*/
519-
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
520-
521516
/**
522517
* The AWS region to which this client will send requests
523518
*/
@@ -533,6 +528,11 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
533528
*/
534529
logger?: __Logger;
535530

531+
/**
532+
* Default credentials provider; Not available in browser runtime.
533+
*/
534+
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
535+
536536
/**
537537
* Fetch related hostname, signing name or signing region with given region.
538538
*/
@@ -549,18 +549,18 @@ export type AlexaForBusinessClientConfig = Partial<__SmithyConfiguration<__HttpH
549549
ClientDefaults &
550550
RegionInputConfig &
551551
EndpointsInputConfig &
552-
AwsAuthInputConfig &
553552
RetryInputConfig &
554553
HostHeaderInputConfig &
554+
AwsAuthInputConfig &
555555
UserAgentInputConfig;
556556

557557
export type AlexaForBusinessClientResolvedConfig = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
558558
Required<ClientDefaults> &
559559
RegionResolvedConfig &
560560
EndpointsResolvedConfig &
561-
AwsAuthResolvedConfig &
562561
RetryResolvedConfig &
563562
HostHeaderResolvedConfig &
563+
AwsAuthResolvedConfig &
564564
UserAgentResolvedConfig;
565565

566566
/**
@@ -588,17 +588,17 @@ export class AlexaForBusinessClient extends __Client<
588588
};
589589
let _config_1 = resolveRegionConfig(_config_0);
590590
let _config_2 = resolveEndpointsConfig(_config_1);
591-
let _config_3 = resolveAwsAuthConfig(_config_2);
592-
let _config_4 = resolveRetryConfig(_config_3);
593-
let _config_5 = resolveHostHeaderConfig(_config_4);
591+
let _config_3 = resolveRetryConfig(_config_2);
592+
let _config_4 = resolveHostHeaderConfig(_config_3);
593+
let _config_5 = resolveAwsAuthConfig(_config_4);
594594
let _config_6 = resolveUserAgentConfig(_config_5);
595595
super(_config_6);
596596
this.config = _config_6;
597-
this.middlewareStack.use(getAwsAuthPlugin(this.config));
598597
this.middlewareStack.use(getRetryPlugin(this.config));
599598
this.middlewareStack.use(getContentLengthPlugin(this.config));
600599
this.middlewareStack.use(getHostHeaderPlugin(this.config));
601600
this.middlewareStack.use(getLoggerPlugin(this.config));
601+
this.middlewareStack.use(getAwsAuthPlugin(this.config));
602602
this.middlewareStack.use(getUserAgentPlugin(this.config));
603603
}
604604

Diff for: clients/client-amplify/AmplifyClient.ts

+11-11
Original file line numberDiff line numberDiff line change
@@ -258,11 +258,6 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
258258
*/
259259
serviceId?: string;
260260

261-
/**
262-
* Default credentials provider; Not available in browser runtime
263-
*/
264-
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
265-
266261
/**
267262
* The AWS region to which this client will send requests
268263
*/
@@ -278,6 +273,11 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
278273
*/
279274
logger?: __Logger;
280275

276+
/**
277+
* Default credentials provider; Not available in browser runtime.
278+
*/
279+
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
280+
281281
/**
282282
* Fetch related hostname, signing name or signing region with given region.
283283
*/
@@ -294,18 +294,18 @@ export type AmplifyClientConfig = Partial<__SmithyConfiguration<__HttpHandlerOpt
294294
ClientDefaults &
295295
RegionInputConfig &
296296
EndpointsInputConfig &
297-
AwsAuthInputConfig &
298297
RetryInputConfig &
299298
HostHeaderInputConfig &
299+
AwsAuthInputConfig &
300300
UserAgentInputConfig;
301301

302302
export type AmplifyClientResolvedConfig = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
303303
Required<ClientDefaults> &
304304
RegionResolvedConfig &
305305
EndpointsResolvedConfig &
306-
AwsAuthResolvedConfig &
307306
RetryResolvedConfig &
308307
HostHeaderResolvedConfig &
308+
AwsAuthResolvedConfig &
309309
UserAgentResolvedConfig;
310310

311311
/**
@@ -331,17 +331,17 @@ export class AmplifyClient extends __Client<
331331
};
332332
let _config_1 = resolveRegionConfig(_config_0);
333333
let _config_2 = resolveEndpointsConfig(_config_1);
334-
let _config_3 = resolveAwsAuthConfig(_config_2);
335-
let _config_4 = resolveRetryConfig(_config_3);
336-
let _config_5 = resolveHostHeaderConfig(_config_4);
334+
let _config_3 = resolveRetryConfig(_config_2);
335+
let _config_4 = resolveHostHeaderConfig(_config_3);
336+
let _config_5 = resolveAwsAuthConfig(_config_4);
337337
let _config_6 = resolveUserAgentConfig(_config_5);
338338
super(_config_6);
339339
this.config = _config_6;
340-
this.middlewareStack.use(getAwsAuthPlugin(this.config));
341340
this.middlewareStack.use(getRetryPlugin(this.config));
342341
this.middlewareStack.use(getContentLengthPlugin(this.config));
343342
this.middlewareStack.use(getHostHeaderPlugin(this.config));
344343
this.middlewareStack.use(getLoggerPlugin(this.config));
344+
this.middlewareStack.use(getAwsAuthPlugin(this.config));
345345
this.middlewareStack.use(getUserAgentPlugin(this.config));
346346
}
347347

0 commit comments

Comments
 (0)