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 ,
@@ -57,6 +51,7 @@ import {
57
51
AddCustomRoutingEndpointsCommandInput ,
58
52
AddCustomRoutingEndpointsCommandOutput ,
59
53
} from "./commands/AddCustomRoutingEndpointsCommand" ;
54
+ import { AddEndpointsCommandInput , AddEndpointsCommandOutput } from "./commands/AddEndpointsCommand" ;
60
55
import { AdvertiseByoipCidrCommandInput , AdvertiseByoipCidrCommandOutput } from "./commands/AdvertiseByoipCidrCommand" ;
61
56
import {
62
57
AllowCustomRoutingTrafficCommandInput ,
@@ -168,6 +163,7 @@ import {
168
163
RemoveCustomRoutingEndpointsCommandInput ,
169
164
RemoveCustomRoutingEndpointsCommandOutput ,
170
165
} from "./commands/RemoveCustomRoutingEndpointsCommand" ;
166
+ import { RemoveEndpointsCommandInput , RemoveEndpointsCommandOutput } from "./commands/RemoveEndpointsCommand" ;
171
167
import { TagResourceCommandInput , TagResourceCommandOutput } from "./commands/TagResourceCommand" ;
172
168
import { UntagResourceCommandInput , UntagResourceCommandOutput } from "./commands/UntagResourceCommand" ;
173
169
import {
@@ -193,10 +189,17 @@ import {
193
189
} from "./commands/UpdateEndpointGroupCommand" ;
194
190
import { UpdateListenerCommandInput , UpdateListenerCommandOutput } from "./commands/UpdateListenerCommand" ;
195
191
import { WithdrawByoipCidrCommandInput , WithdrawByoipCidrCommandOutput } from "./commands/WithdrawByoipCidrCommand" ;
192
+ import {
193
+ ClientInputEndpointParameters ,
194
+ ClientResolvedEndpointParameters ,
195
+ EndpointParameters ,
196
+ resolveClientEndpointParameters ,
197
+ } from "./endpoint/EndpointParameters" ;
196
198
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig" ;
197
199
198
200
export type ServiceInputTypes =
199
201
| AddCustomRoutingEndpointsCommandInput
202
+ | AddEndpointsCommandInput
200
203
| AdvertiseByoipCidrCommandInput
201
204
| AllowCustomRoutingTrafficCommandInput
202
205
| CreateAcceleratorCommandInput
@@ -233,6 +236,7 @@ export type ServiceInputTypes =
233
236
| ListTagsForResourceCommandInput
234
237
| ProvisionByoipCidrCommandInput
235
238
| RemoveCustomRoutingEndpointsCommandInput
239
+ | RemoveEndpointsCommandInput
236
240
| TagResourceCommandInput
237
241
| UntagResourceCommandInput
238
242
| UpdateAcceleratorAttributesCommandInput
@@ -246,6 +250,7 @@ export type ServiceInputTypes =
246
250
247
251
export type ServiceOutputTypes =
248
252
| AddCustomRoutingEndpointsCommandOutput
253
+ | AddEndpointsCommandOutput
249
254
| AdvertiseByoipCidrCommandOutput
250
255
| AllowCustomRoutingTrafficCommandOutput
251
256
| CreateAcceleratorCommandOutput
@@ -282,6 +287,7 @@ export type ServiceOutputTypes =
282
287
| ListTagsForResourceCommandOutput
283
288
| ProvisionByoipCidrCommandOutput
284
289
| RemoveCustomRoutingEndpointsCommandOutput
290
+ | RemoveEndpointsCommandOutput
285
291
| TagResourceCommandOutput
286
292
| UntagResourceCommandOutput
287
293
| UpdateAcceleratorAttributesCommandOutput
@@ -402,12 +408,6 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
402
408
*/
403
409
credentialDefaultProvider ?: ( input : any ) => __Provider < __Credentials > ;
404
410
405
- /**
406
- * Fetch related hostname, signing name or signing region with given region.
407
- * @internal
408
- */
409
- regionInfoProvider ?: RegionInfoProvider ;
410
-
411
411
/**
412
412
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
413
413
* @internal
@@ -423,11 +423,12 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
423
423
type GlobalAcceleratorClientConfigType = Partial < __SmithyConfiguration < __HttpHandlerOptions > > &
424
424
ClientDefaults &
425
425
RegionInputConfig &
426
- EndpointsInputConfig &
426
+ EndpointInputConfig < EndpointParameters > &
427
427
RetryInputConfig &
428
428
HostHeaderInputConfig &
429
429
AwsAuthInputConfig &
430
- UserAgentInputConfig ;
430
+ UserAgentInputConfig &
431
+ ClientInputEndpointParameters ;
431
432
/**
432
433
* The configuration interface of GlobalAcceleratorClient class constructor that set the region, credentials and other options.
433
434
*/
@@ -436,11 +437,12 @@ export interface GlobalAcceleratorClientConfig extends GlobalAcceleratorClientCo
436
437
type GlobalAcceleratorClientResolvedConfigType = __SmithyResolvedConfiguration < __HttpHandlerOptions > &
437
438
Required < ClientDefaults > &
438
439
RegionResolvedConfig &
439
- EndpointsResolvedConfig &
440
+ EndpointResolvedConfig < EndpointParameters > &
440
441
RetryResolvedConfig &
441
442
HostHeaderResolvedConfig &
442
443
AwsAuthResolvedConfig &
443
- UserAgentResolvedConfig ;
444
+ UserAgentResolvedConfig &
445
+ ClientResolvedEndpointParameters ;
444
446
/**
445
447
* The resolved configuration interface of GlobalAcceleratorClient class. This is resolved and normalized from the {@link GlobalAcceleratorClientConfig | constructor configuration interface}.
446
448
*/
@@ -514,14 +516,15 @@ export class GlobalAcceleratorClient extends __Client<
514
516
515
517
constructor ( configuration : GlobalAcceleratorClientConfig ) {
516
518
const _config_0 = __getRuntimeConfig ( configuration ) ;
517
- const _config_1 = resolveRegionConfig ( _config_0 ) ;
518
- const _config_2 = resolveEndpointsConfig ( _config_1 ) ;
519
- const _config_3 = resolveRetryConfig ( _config_2 ) ;
520
- const _config_4 = resolveHostHeaderConfig ( _config_3 ) ;
521
- const _config_5 = resolveAwsAuthConfig ( _config_4 ) ;
522
- const _config_6 = resolveUserAgentConfig ( _config_5 ) ;
523
- super ( _config_6 ) ;
524
- this . config = _config_6 ;
519
+ const _config_1 = resolveClientEndpointParameters ( _config_0 ) ;
520
+ const _config_2 = resolveRegionConfig ( _config_1 ) ;
521
+ const _config_3 = resolveEndpointConfig ( _config_2 ) ;
522
+ const _config_4 = resolveRetryConfig ( _config_3 ) ;
523
+ const _config_5 = resolveHostHeaderConfig ( _config_4 ) ;
524
+ const _config_6 = resolveAwsAuthConfig ( _config_5 ) ;
525
+ const _config_7 = resolveUserAgentConfig ( _config_6 ) ;
526
+ super ( _config_7 ) ;
527
+ this . config = _config_7 ;
525
528
this . middlewareStack . use ( getRetryPlugin ( this . config ) ) ;
526
529
this . middlewareStack . use ( getContentLengthPlugin ( this . config ) ) ;
527
530
this . middlewareStack . use ( getHostHeaderPlugin ( this . config ) ) ;
0 commit comments