1
1
// smithy-typescript generated code
2
- import {
3
- EndpointsInputConfig ,
4
- EndpointsResolvedConfig ,
5
- RegionInputConfig ,
6
- RegionResolvedConfig ,
7
- resolveEndpointsConfig ,
8
- resolveRegionConfig ,
9
- } from "@aws-sdk/config-resolver" ;
2
+ import { RegionInputConfig , RegionResolvedConfig , resolveRegionConfig } from "@aws-sdk/config-resolver" ;
10
3
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length" ;
4
+ import { EndpointInputConfig , EndpointResolvedConfig , resolveEndpointConfig } from "@aws-sdk/middleware-endpoint" ;
11
5
import {
12
6
getHostHeaderPlugin ,
13
7
HostHeaderInputConfig ,
@@ -41,13 +35,13 @@ import {
41
35
Credentials as __Credentials ,
42
36
Decoder as __Decoder ,
43
37
Encoder as __Encoder ,
38
+ EndpointV2 as __EndpointV2 ,
44
39
Hash as __Hash ,
45
40
HashConstructor as __HashConstructor ,
46
41
HttpHandlerOptions as __HttpHandlerOptions ,
47
42
Logger as __Logger ,
48
43
Provider as __Provider ,
49
44
Provider ,
50
- RegionInfoProvider ,
51
45
StreamCollector as __StreamCollector ,
52
46
UrlParser as __UrlParser ,
53
47
UserAgent as __UserAgent ,
@@ -105,6 +99,12 @@ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./command
105
99
import { UpdateArchiveRuleCommandInput , UpdateArchiveRuleCommandOutput } from "./commands/UpdateArchiveRuleCommand" ;
106
100
import { UpdateFindingsCommandInput , UpdateFindingsCommandOutput } from "./commands/UpdateFindingsCommand" ;
107
101
import { ValidatePolicyCommandInput , ValidatePolicyCommandOutput } from "./commands/ValidatePolicyCommand" ;
102
+ import {
103
+ ClientInputEndpointParameters ,
104
+ ClientResolvedEndpointParameters ,
105
+ EndpointParameters ,
106
+ resolveClientEndpointParameters ,
107
+ } from "./endpoint/EndpointParameters" ;
108
108
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig" ;
109
109
110
110
export type ServiceInputTypes =
@@ -276,12 +276,6 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
276
276
*/
277
277
credentialDefaultProvider ?: ( input : any ) => __Provider < __Credentials > ;
278
278
279
- /**
280
- * Fetch related hostname, signing name or signing region with given region.
281
- * @internal
282
- */
283
- regionInfoProvider ?: RegionInfoProvider ;
284
-
285
279
/**
286
280
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
287
281
* @internal
@@ -297,11 +291,12 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
297
291
type AccessAnalyzerClientConfigType = Partial < __SmithyConfiguration < __HttpHandlerOptions > > &
298
292
ClientDefaults &
299
293
RegionInputConfig &
300
- EndpointsInputConfig &
294
+ EndpointInputConfig < EndpointParameters > &
301
295
RetryInputConfig &
302
296
HostHeaderInputConfig &
303
297
AwsAuthInputConfig &
304
- UserAgentInputConfig ;
298
+ UserAgentInputConfig &
299
+ ClientInputEndpointParameters ;
305
300
/**
306
301
* The configuration interface of AccessAnalyzerClient class constructor that set the region, credentials and other options.
307
302
*/
@@ -310,11 +305,12 @@ export interface AccessAnalyzerClientConfig extends AccessAnalyzerClientConfigTy
310
305
type AccessAnalyzerClientResolvedConfigType = __SmithyResolvedConfiguration < __HttpHandlerOptions > &
311
306
Required < ClientDefaults > &
312
307
RegionResolvedConfig &
313
- EndpointsResolvedConfig &
308
+ EndpointResolvedConfig < EndpointParameters > &
314
309
RetryResolvedConfig &
315
310
HostHeaderResolvedConfig &
316
311
AwsAuthResolvedConfig &
317
- UserAgentResolvedConfig ;
312
+ UserAgentResolvedConfig &
313
+ ClientResolvedEndpointParameters ;
318
314
/**
319
315
* The resolved configuration interface of AccessAnalyzerClient class. This is resolved and normalized from the {@link AccessAnalyzerClientConfig | constructor configuration interface}.
320
316
*/
@@ -344,14 +340,15 @@ export class AccessAnalyzerClient extends __Client<
344
340
345
341
constructor ( configuration : AccessAnalyzerClientConfig ) {
346
342
const _config_0 = __getRuntimeConfig ( configuration ) ;
347
- const _config_1 = resolveRegionConfig ( _config_0 ) ;
348
- const _config_2 = resolveEndpointsConfig ( _config_1 ) ;
349
- const _config_3 = resolveRetryConfig ( _config_2 ) ;
350
- const _config_4 = resolveHostHeaderConfig ( _config_3 ) ;
351
- const _config_5 = resolveAwsAuthConfig ( _config_4 ) ;
352
- const _config_6 = resolveUserAgentConfig ( _config_5 ) ;
353
- super ( _config_6 ) ;
354
- this . config = _config_6 ;
343
+ const _config_1 = resolveClientEndpointParameters ( _config_0 ) ;
344
+ const _config_2 = resolveRegionConfig ( _config_1 ) ;
345
+ const _config_3 = resolveEndpointConfig ( _config_2 ) ;
346
+ const _config_4 = resolveRetryConfig ( _config_3 ) ;
347
+ const _config_5 = resolveHostHeaderConfig ( _config_4 ) ;
348
+ const _config_6 = resolveAwsAuthConfig ( _config_5 ) ;
349
+ const _config_7 = resolveUserAgentConfig ( _config_6 ) ;
350
+ super ( _config_7 ) ;
351
+ this . config = _config_7 ;
355
352
this . middlewareStack . use ( getRetryPlugin ( this . config ) ) ;
356
353
this . middlewareStack . use ( getContentLengthPlugin ( this . config ) ) ;
357
354
this . middlewareStack . use ( getHostHeaderPlugin ( this . config ) ) ;
0 commit comments