Skip to content

Commit a8a9615

Browse files
committed
chore(client): reorder auth plugin
1 parent 289a6cd commit a8a9615

File tree

245 files changed

+3425
-3425
lines changed

Some content is hidden

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

245 files changed

+3425
-3425
lines changed

clients/client-accessanalyzer/AccessAnalyzerClient.ts

Lines changed: 14 additions & 14 deletions
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
*/
@@ -210,25 +205,30 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
210205
* @internal
211206
*/
212207
defaultUserAgentProvider?: Provider<__UserAgent>;
208+
209+
/**
210+
* Default credentials provider; Not available in browser runtime
211+
*/
212+
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
213213
}
214214

215215
export type AccessAnalyzerClientConfig = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
216216
ClientDefaults &
217217
RegionInputConfig &
218218
EndpointsInputConfig &
219-
AwsAuthInputConfig &
220219
RetryInputConfig &
221220
HostHeaderInputConfig &
222-
UserAgentInputConfig;
221+
UserAgentInputConfig &
222+
AwsAuthInputConfig;
223223

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

233233
/**
234234
* <p>AWS IAM Access Analyzer helps identify potential resource-access risks by enabling you to identify
@@ -254,18 +254,18 @@ 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);
260-
let _config_6 = resolveUserAgentConfig(_config_5);
257+
let _config_3 = resolveRetryConfig(_config_2);
258+
let _config_4 = resolveHostHeaderConfig(_config_3);
259+
let _config_5 = resolveUserAgentConfig(_config_4);
260+
let _config_6 = resolveAwsAuthConfig(_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));
268267
this.middlewareStack.use(getUserAgentPlugin(this.config));
268+
this.middlewareStack.use(getAwsAuthPlugin(this.config));
269269
}
270270

271271
destroy(): void {

clients/client-acm-pca/ACMPCAClient.ts

Lines changed: 14 additions & 14 deletions
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
*/
@@ -255,25 +250,30 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
255250
* @internal
256251
*/
257252
defaultUserAgentProvider?: Provider<__UserAgent>;
253+
254+
/**
255+
* Default credentials provider; Not available in browser runtime
256+
*/
257+
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
258258
}
259259

260260
export type ACMPCAClientConfig = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
261261
ClientDefaults &
262262
RegionInputConfig &
263263
EndpointsInputConfig &
264-
AwsAuthInputConfig &
265264
RetryInputConfig &
266265
HostHeaderInputConfig &
267-
UserAgentInputConfig;
266+
UserAgentInputConfig &
267+
AwsAuthInputConfig;
268268

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

278278
/**
279279
* <note>
@@ -308,18 +308,18 @@ 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);
314-
let _config_6 = resolveUserAgentConfig(_config_5);
311+
let _config_3 = resolveRetryConfig(_config_2);
312+
let _config_4 = resolveHostHeaderConfig(_config_3);
313+
let _config_5 = resolveUserAgentConfig(_config_4);
314+
let _config_6 = resolveAwsAuthConfig(_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));
322321
this.middlewareStack.use(getUserAgentPlugin(this.config));
322+
this.middlewareStack.use(getAwsAuthPlugin(this.config));
323323
}
324324

325325
destroy(): void {

clients/client-acm/ACMClient.ts

Lines changed: 14 additions & 14 deletions
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
*/
@@ -204,25 +199,30 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
204199
* @internal
205200
*/
206201
defaultUserAgentProvider?: Provider<__UserAgent>;
202+
203+
/**
204+
* Default credentials provider; Not available in browser runtime
205+
*/
206+
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
207207
}
208208

209209
export type ACMClientConfig = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
210210
ClientDefaults &
211211
RegionInputConfig &
212212
EndpointsInputConfig &
213-
AwsAuthInputConfig &
214213
RetryInputConfig &
215214
HostHeaderInputConfig &
216-
UserAgentInputConfig;
215+
UserAgentInputConfig &
216+
AwsAuthInputConfig;
217217

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

227227
/**
228228
* <fullname>AWS Certificate Manager</fullname>
@@ -247,18 +247,18 @@ 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);
253-
let _config_6 = resolveUserAgentConfig(_config_5);
250+
let _config_3 = resolveRetryConfig(_config_2);
251+
let _config_4 = resolveHostHeaderConfig(_config_3);
252+
let _config_5 = resolveUserAgentConfig(_config_4);
253+
let _config_6 = resolveAwsAuthConfig(_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));
261260
this.middlewareStack.use(getUserAgentPlugin(this.config));
261+
this.middlewareStack.use(getAwsAuthPlugin(this.config));
262262
}
263263

264264
destroy(): void {

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

Lines changed: 14 additions & 14 deletions
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
*/
@@ -543,25 +538,30 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
543538
* @internal
544539
*/
545540
defaultUserAgentProvider?: Provider<__UserAgent>;
541+
542+
/**
543+
* Default credentials provider; Not available in browser runtime
544+
*/
545+
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
546546
}
547547

548548
export type AlexaForBusinessClientConfig = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
549549
ClientDefaults &
550550
RegionInputConfig &
551551
EndpointsInputConfig &
552-
AwsAuthInputConfig &
553552
RetryInputConfig &
554553
HostHeaderInputConfig &
555-
UserAgentInputConfig;
554+
UserAgentInputConfig &
555+
AwsAuthInputConfig;
556556

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

566566
/**
567567
* <p>Alexa for Business helps you use Alexa in your organization. Alexa for Business provides you with the tools
@@ -588,18 +588,18 @@ 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);
594-
let _config_6 = resolveUserAgentConfig(_config_5);
591+
let _config_3 = resolveRetryConfig(_config_2);
592+
let _config_4 = resolveHostHeaderConfig(_config_3);
593+
let _config_5 = resolveUserAgentConfig(_config_4);
594+
let _config_6 = resolveAwsAuthConfig(_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));
602601
this.middlewareStack.use(getUserAgentPlugin(this.config));
602+
this.middlewareStack.use(getAwsAuthPlugin(this.config));
603603
}
604604

605605
destroy(): void {

clients/client-amplify/AmplifyClient.ts

Lines changed: 14 additions & 14 deletions
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
*/
@@ -288,25 +283,30 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
288283
* @internal
289284
*/
290285
defaultUserAgentProvider?: Provider<__UserAgent>;
286+
287+
/**
288+
* Default credentials provider; Not available in browser runtime
289+
*/
290+
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
291291
}
292292

293293
export type AmplifyClientConfig = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
294294
ClientDefaults &
295295
RegionInputConfig &
296296
EndpointsInputConfig &
297-
AwsAuthInputConfig &
298297
RetryInputConfig &
299298
HostHeaderInputConfig &
300-
UserAgentInputConfig;
299+
UserAgentInputConfig &
300+
AwsAuthInputConfig;
301301

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

311311
/**
312312
* <p>Amplify enables developers to develop and deploy cloud-powered mobile and web apps.
@@ -331,18 +331,18 @@ 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);
337-
let _config_6 = resolveUserAgentConfig(_config_5);
334+
let _config_3 = resolveRetryConfig(_config_2);
335+
let _config_4 = resolveHostHeaderConfig(_config_3);
336+
let _config_5 = resolveUserAgentConfig(_config_4);
337+
let _config_6 = resolveAwsAuthConfig(_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));
345344
this.middlewareStack.use(getUserAgentPlugin(this.config));
345+
this.middlewareStack.use(getAwsAuthPlugin(this.config));
346346
}
347347

348348
destroy(): void {

0 commit comments

Comments
 (0)