@@ -159,11 +159,6 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
159159 */
160160 serviceId ?: string ;
161161
162- /**
163- * Default credentials provider; Not available in browser runtime
164- */
165- credentialDefaultProvider ?: ( input : any ) => __Provider < __Credentials > ;
166-
167162 /**
168163 * The AWS region to which this client will send requests
169164 */
@@ -179,6 +174,11 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
179174 */
180175 logger ?: __Logger ;
181176
177+ /**
178+ * Default credentials provider; Not available in browser runtime.
179+ */
180+ credentialDefaultProvider ?: ( input : any ) => __Provider < __Credentials > ;
181+
182182 /**
183183 * Fetch related hostname, signing name or signing region with given region.
184184 */
@@ -195,18 +195,18 @@ export type JsonProtocolClientConfig = Partial<__SmithyConfiguration<__HttpHandl
195195 ClientDefaults &
196196 RegionInputConfig &
197197 EndpointsInputConfig &
198- AwsAuthInputConfig &
199198 RetryInputConfig &
200199 HostHeaderInputConfig &
200+ AwsAuthInputConfig &
201201 UserAgentInputConfig ;
202202
203203export type JsonProtocolClientResolvedConfig = __SmithyResolvedConfiguration < __HttpHandlerOptions > &
204204 Required < ClientDefaults > &
205205 RegionResolvedConfig &
206206 EndpointsResolvedConfig &
207- AwsAuthResolvedConfig &
208207 RetryResolvedConfig &
209208 HostHeaderResolvedConfig &
209+ AwsAuthResolvedConfig &
210210 UserAgentResolvedConfig ;
211211
212212export class JsonProtocolClient extends __Client <
@@ -224,17 +224,17 @@ export class JsonProtocolClient extends __Client<
224224 } ;
225225 let _config_1 = resolveRegionConfig ( _config_0 ) ;
226226 let _config_2 = resolveEndpointsConfig ( _config_1 ) ;
227- let _config_3 = resolveAwsAuthConfig ( _config_2 ) ;
228- let _config_4 = resolveRetryConfig ( _config_3 ) ;
229- let _config_5 = resolveHostHeaderConfig ( _config_4 ) ;
227+ let _config_3 = resolveRetryConfig ( _config_2 ) ;
228+ let _config_4 = resolveHostHeaderConfig ( _config_3 ) ;
229+ let _config_5 = resolveAwsAuthConfig ( _config_4 ) ;
230230 let _config_6 = resolveUserAgentConfig ( _config_5 ) ;
231231 super ( _config_6 ) ;
232232 this . config = _config_6 ;
233- this . middlewareStack . use ( getAwsAuthPlugin ( this . config ) ) ;
234233 this . middlewareStack . use ( getRetryPlugin ( this . config ) ) ;
235234 this . middlewareStack . use ( getContentLengthPlugin ( this . config ) ) ;
236235 this . middlewareStack . use ( getHostHeaderPlugin ( this . config ) ) ;
237236 this . middlewareStack . use ( getLoggerPlugin ( this . config ) ) ;
237+ this . middlewareStack . use ( getAwsAuthPlugin ( this . config ) ) ;
238238 this . middlewareStack . use ( getUserAgentPlugin ( this . config ) ) ;
239239 }
240240
0 commit comments