Skip to content

Commit 998113b

Browse files
authored
feat(endpoint): add remaining restJson1 services endpoint models (#4090)
* feat(endpoint): copy models for restJson1 services * feat(endpoint): add remaining restJson1 services endpoint models * fix(endpoint): remove unused functional test
1 parent 92809b9 commit 998113b

File tree

5,842 files changed

+303353
-33513
lines changed

Some content is hidden

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

5,842 files changed

+303353
-33513
lines changed

clients/client-accessanalyzer/package.json

+2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"@aws-sdk/hash-node": "*",
2727
"@aws-sdk/invalid-dependency": "*",
2828
"@aws-sdk/middleware-content-length": "*",
29+
"@aws-sdk/middleware-endpoint": "*",
2930
"@aws-sdk/middleware-host-header": "*",
3031
"@aws-sdk/middleware-logger": "*",
3132
"@aws-sdk/middleware-recursion-detection": "*",
@@ -46,6 +47,7 @@
4647
"@aws-sdk/util-body-length-node": "*",
4748
"@aws-sdk/util-defaults-mode-browser": "*",
4849
"@aws-sdk/util-defaults-mode-node": "*",
50+
"@aws-sdk/util-endpoints": "*",
4951
"@aws-sdk/util-user-agent-browser": "*",
5052
"@aws-sdk/util-user-agent-node": "*",
5153
"@aws-sdk/util-utf8-browser": "*",

clients/client-accessanalyzer/src/AccessAnalyzerClient.ts

+24-27
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
// 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";
103
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
4+
import { EndpointInputConfig, EndpointResolvedConfig, resolveEndpointConfig } from "@aws-sdk/middleware-endpoint";
115
import {
126
getHostHeaderPlugin,
137
HostHeaderInputConfig,
@@ -41,13 +35,13 @@ import {
4135
Credentials as __Credentials,
4236
Decoder as __Decoder,
4337
Encoder as __Encoder,
38+
EndpointV2 as __EndpointV2,
4439
Hash as __Hash,
4540
HashConstructor as __HashConstructor,
4641
HttpHandlerOptions as __HttpHandlerOptions,
4742
Logger as __Logger,
4843
Provider as __Provider,
4944
Provider,
50-
RegionInfoProvider,
5145
StreamCollector as __StreamCollector,
5246
UrlParser as __UrlParser,
5347
UserAgent as __UserAgent,
@@ -105,6 +99,12 @@ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./command
10599
import { UpdateArchiveRuleCommandInput, UpdateArchiveRuleCommandOutput } from "./commands/UpdateArchiveRuleCommand";
106100
import { UpdateFindingsCommandInput, UpdateFindingsCommandOutput } from "./commands/UpdateFindingsCommand";
107101
import { ValidatePolicyCommandInput, ValidatePolicyCommandOutput } from "./commands/ValidatePolicyCommand";
102+
import {
103+
ClientInputEndpointParameters,
104+
ClientResolvedEndpointParameters,
105+
EndpointParameters,
106+
resolveClientEndpointParameters,
107+
} from "./endpoint/EndpointParameters";
108108
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
109109

110110
export type ServiceInputTypes =
@@ -276,12 +276,6 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
276276
*/
277277
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
278278

279-
/**
280-
* Fetch related hostname, signing name or signing region with given region.
281-
* @internal
282-
*/
283-
regionInfoProvider?: RegionInfoProvider;
284-
285279
/**
286280
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
287281
* @internal
@@ -297,11 +291,12 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
297291
type AccessAnalyzerClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
298292
ClientDefaults &
299293
RegionInputConfig &
300-
EndpointsInputConfig &
294+
EndpointInputConfig<EndpointParameters> &
301295
RetryInputConfig &
302296
HostHeaderInputConfig &
303297
AwsAuthInputConfig &
304-
UserAgentInputConfig;
298+
UserAgentInputConfig &
299+
ClientInputEndpointParameters;
305300
/**
306301
* The configuration interface of AccessAnalyzerClient class constructor that set the region, credentials and other options.
307302
*/
@@ -310,11 +305,12 @@ export interface AccessAnalyzerClientConfig extends AccessAnalyzerClientConfigTy
310305
type AccessAnalyzerClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
311306
Required<ClientDefaults> &
312307
RegionResolvedConfig &
313-
EndpointsResolvedConfig &
308+
EndpointResolvedConfig<EndpointParameters> &
314309
RetryResolvedConfig &
315310
HostHeaderResolvedConfig &
316311
AwsAuthResolvedConfig &
317-
UserAgentResolvedConfig;
312+
UserAgentResolvedConfig &
313+
ClientResolvedEndpointParameters;
318314
/**
319315
* The resolved configuration interface of AccessAnalyzerClient class. This is resolved and normalized from the {@link AccessAnalyzerClientConfig | constructor configuration interface}.
320316
*/
@@ -344,14 +340,15 @@ export class AccessAnalyzerClient extends __Client<
344340

345341
constructor(configuration: AccessAnalyzerClientConfig) {
346342
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;
355352
this.middlewareStack.use(getRetryPlugin(this.config));
356353
this.middlewareStack.use(getContentLengthPlugin(this.config));
357354
this.middlewareStack.use(getHostHeaderPlugin(this.config));

clients/client-accessanalyzer/src/commands/ApplyArchiveRuleCommand.ts

+13
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// smithy-typescript generated code
2+
import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
23
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
34
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
45
import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -48,6 +49,15 @@ export class ApplyArchiveRuleCommand extends $Command<
4849
// Start section: command_properties
4950
// End section: command_properties
5051

52+
public static getEndpointParameterInstructions(): EndpointParameterInstructions {
53+
return {
54+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
55+
Endpoint: { type: "builtInParams", name: "endpoint" },
56+
Region: { type: "builtInParams", name: "region" },
57+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
58+
};
59+
}
60+
5161
constructor(readonly input: ApplyArchiveRuleCommandInput) {
5262
// Start section: command_constructor
5363
super();
@@ -63,6 +73,9 @@ export class ApplyArchiveRuleCommand extends $Command<
6373
options?: __HttpHandlerOptions
6474
): Handler<ApplyArchiveRuleCommandInput, ApplyArchiveRuleCommandOutput> {
6575
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
76+
this.middlewareStack.use(
77+
getEndpointPlugin(configuration, ApplyArchiveRuleCommand.getEndpointParameterInstructions())
78+
);
6679

6780
const stack = clientStack.concat(this.middlewareStack);
6881

clients/client-accessanalyzer/src/commands/CancelPolicyGenerationCommand.ts

+13
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// smithy-typescript generated code
2+
import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
23
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
34
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
45
import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -52,6 +53,15 @@ export class CancelPolicyGenerationCommand extends $Command<
5253
// Start section: command_properties
5354
// End section: command_properties
5455

56+
public static getEndpointParameterInstructions(): EndpointParameterInstructions {
57+
return {
58+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
59+
Endpoint: { type: "builtInParams", name: "endpoint" },
60+
Region: { type: "builtInParams", name: "region" },
61+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
62+
};
63+
}
64+
5565
constructor(readonly input: CancelPolicyGenerationCommandInput) {
5666
// Start section: command_constructor
5767
super();
@@ -67,6 +77,9 @@ export class CancelPolicyGenerationCommand extends $Command<
6777
options?: __HttpHandlerOptions
6878
): Handler<CancelPolicyGenerationCommandInput, CancelPolicyGenerationCommandOutput> {
6979
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
80+
this.middlewareStack.use(
81+
getEndpointPlugin(configuration, CancelPolicyGenerationCommand.getEndpointParameterInstructions())
82+
);
7083

7184
const stack = clientStack.concat(this.middlewareStack);
7285

clients/client-accessanalyzer/src/commands/CreateAccessPreviewCommand.ts

+13
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// smithy-typescript generated code
2+
import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
23
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
34
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
45
import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -53,6 +54,15 @@ export class CreateAccessPreviewCommand extends $Command<
5354
// Start section: command_properties
5455
// End section: command_properties
5556

57+
public static getEndpointParameterInstructions(): EndpointParameterInstructions {
58+
return {
59+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
60+
Endpoint: { type: "builtInParams", name: "endpoint" },
61+
Region: { type: "builtInParams", name: "region" },
62+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
63+
};
64+
}
65+
5666
constructor(readonly input: CreateAccessPreviewCommandInput) {
5767
// Start section: command_constructor
5868
super();
@@ -68,6 +78,9 @@ export class CreateAccessPreviewCommand extends $Command<
6878
options?: __HttpHandlerOptions
6979
): Handler<CreateAccessPreviewCommandInput, CreateAccessPreviewCommandOutput> {
7080
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
81+
this.middlewareStack.use(
82+
getEndpointPlugin(configuration, CreateAccessPreviewCommand.getEndpointParameterInstructions())
83+
);
7184

7285
const stack = clientStack.concat(this.middlewareStack);
7386

clients/client-accessanalyzer/src/commands/CreateAnalyzerCommand.ts

+13
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// smithy-typescript generated code
2+
import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
23
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
34
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
45
import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -52,6 +53,15 @@ export class CreateAnalyzerCommand extends $Command<
5253
// Start section: command_properties
5354
// End section: command_properties
5455

56+
public static getEndpointParameterInstructions(): EndpointParameterInstructions {
57+
return {
58+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
59+
Endpoint: { type: "builtInParams", name: "endpoint" },
60+
Region: { type: "builtInParams", name: "region" },
61+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
62+
};
63+
}
64+
5565
constructor(readonly input: CreateAnalyzerCommandInput) {
5666
// Start section: command_constructor
5767
super();
@@ -67,6 +77,9 @@ export class CreateAnalyzerCommand extends $Command<
6777
options?: __HttpHandlerOptions
6878
): Handler<CreateAnalyzerCommandInput, CreateAnalyzerCommandOutput> {
6979
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
80+
this.middlewareStack.use(
81+
getEndpointPlugin(configuration, CreateAnalyzerCommand.getEndpointParameterInstructions())
82+
);
7083

7184
const stack = clientStack.concat(this.middlewareStack);
7285

clients/client-accessanalyzer/src/commands/CreateArchiveRuleCommand.ts

+13
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// smithy-typescript generated code
2+
import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
23
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
34
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
45
import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -49,6 +50,15 @@ export class CreateArchiveRuleCommand extends $Command<
4950
// Start section: command_properties
5051
// End section: command_properties
5152

53+
public static getEndpointParameterInstructions(): EndpointParameterInstructions {
54+
return {
55+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
56+
Endpoint: { type: "builtInParams", name: "endpoint" },
57+
Region: { type: "builtInParams", name: "region" },
58+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
59+
};
60+
}
61+
5262
constructor(readonly input: CreateArchiveRuleCommandInput) {
5363
// Start section: command_constructor
5464
super();
@@ -64,6 +74,9 @@ export class CreateArchiveRuleCommand extends $Command<
6474
options?: __HttpHandlerOptions
6575
): Handler<CreateArchiveRuleCommandInput, CreateArchiveRuleCommandOutput> {
6676
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
77+
this.middlewareStack.use(
78+
getEndpointPlugin(configuration, CreateArchiveRuleCommand.getEndpointParameterInstructions())
79+
);
6780

6881
const stack = clientStack.concat(this.middlewareStack);
6982

clients/client-accessanalyzer/src/commands/DeleteAnalyzerCommand.ts

+13
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// smithy-typescript generated code
2+
import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
23
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
34
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
45
import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -49,6 +50,15 @@ export class DeleteAnalyzerCommand extends $Command<
4950
// Start section: command_properties
5051
// End section: command_properties
5152

53+
public static getEndpointParameterInstructions(): EndpointParameterInstructions {
54+
return {
55+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
56+
Endpoint: { type: "builtInParams", name: "endpoint" },
57+
Region: { type: "builtInParams", name: "region" },
58+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
59+
};
60+
}
61+
5262
constructor(readonly input: DeleteAnalyzerCommandInput) {
5363
// Start section: command_constructor
5464
super();
@@ -64,6 +74,9 @@ export class DeleteAnalyzerCommand extends $Command<
6474
options?: __HttpHandlerOptions
6575
): Handler<DeleteAnalyzerCommandInput, DeleteAnalyzerCommandOutput> {
6676
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
77+
this.middlewareStack.use(
78+
getEndpointPlugin(configuration, DeleteAnalyzerCommand.getEndpointParameterInstructions())
79+
);
6780

6881
const stack = clientStack.concat(this.middlewareStack);
6982

clients/client-accessanalyzer/src/commands/DeleteArchiveRuleCommand.ts

+13
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// smithy-typescript generated code
2+
import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
23
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
34
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
45
import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -47,6 +48,15 @@ export class DeleteArchiveRuleCommand extends $Command<
4748
// Start section: command_properties
4849
// End section: command_properties
4950

51+
public static getEndpointParameterInstructions(): EndpointParameterInstructions {
52+
return {
53+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
54+
Endpoint: { type: "builtInParams", name: "endpoint" },
55+
Region: { type: "builtInParams", name: "region" },
56+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
57+
};
58+
}
59+
5060
constructor(readonly input: DeleteArchiveRuleCommandInput) {
5161
// Start section: command_constructor
5262
super();
@@ -62,6 +72,9 @@ export class DeleteArchiveRuleCommand extends $Command<
6272
options?: __HttpHandlerOptions
6373
): Handler<DeleteArchiveRuleCommandInput, DeleteArchiveRuleCommandOutput> {
6474
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
75+
this.middlewareStack.use(
76+
getEndpointPlugin(configuration, DeleteArchiveRuleCommand.getEndpointParameterInstructions())
77+
);
6578

6679
const stack = clientStack.concat(this.middlewareStack);
6780

clients/client-accessanalyzer/src/commands/GetAccessPreviewCommand.ts

+13
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// smithy-typescript generated code
2+
import { EndpointParameterInstructions, getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
23
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
34
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
45
import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -52,6 +53,15 @@ export class GetAccessPreviewCommand extends $Command<
5253
// Start section: command_properties
5354
// End section: command_properties
5455

56+
public static getEndpointParameterInstructions(): EndpointParameterInstructions {
57+
return {
58+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
59+
Endpoint: { type: "builtInParams", name: "endpoint" },
60+
Region: { type: "builtInParams", name: "region" },
61+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
62+
};
63+
}
64+
5565
constructor(readonly input: GetAccessPreviewCommandInput) {
5666
// Start section: command_constructor
5767
super();
@@ -67,6 +77,9 @@ export class GetAccessPreviewCommand extends $Command<
6777
options?: __HttpHandlerOptions
6878
): Handler<GetAccessPreviewCommandInput, GetAccessPreviewCommandOutput> {
6979
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
80+
this.middlewareStack.use(
81+
getEndpointPlugin(configuration, GetAccessPreviewCommand.getEndpointParameterInstructions())
82+
);
7083

7184
const stack = clientStack.concat(this.middlewareStack);
7285

0 commit comments

Comments
 (0)