Skip to content

Commit e6b9c75

Browse files
authored
chore: prettify client-api-gateway (#632)
prettier --write clients/client-api-gateway/**/*.{ts,js,md,json}
1 parent a60f630 commit e6b9c75

File tree

126 files changed

+9765
-5449
lines changed

Some content is hidden

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

126 files changed

+9765
-5449
lines changed

clients/client-api-gateway/APIGateway.ts

Lines changed: 960 additions & 721 deletions
Large diffs are not rendered by default.

clients/client-api-gateway/APIGatewayClient.ts

Lines changed: 29 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ import {
168168
UsagePlanKeys,
169169
UsagePlans,
170170
VpcLink,
171-
VpcLinks,
171+
VpcLinks
172172
} from "./models/index";
173173
import { ClientDefaultValues as __ClientDefaultValues } from "./runtimeConfig";
174174
import {
@@ -177,39 +177,39 @@ import {
177177
RegionInputConfig,
178178
RegionResolvedConfig,
179179
resolveEndpointsConfig,
180-
resolveRegionConfig,
180+
resolveRegionConfig
181181
} from "@aws-sdk/config-resolver";
182182
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
183183
import {
184184
HostHeaderInputConfig,
185185
HostHeaderResolvedConfig,
186186
getHostHeaderPlugin,
187-
resolveHostHeaderConfig,
187+
resolveHostHeaderConfig
188188
} from "@aws-sdk/middleware-host-header";
189189
import {
190190
RetryInputConfig,
191191
RetryResolvedConfig,
192192
getRetryPlugin,
193-
resolveRetryConfig,
193+
resolveRetryConfig
194194
} from "@aws-sdk/middleware-retry";
195195
import { getAcceptsHeaderPlugin } from "@aws-sdk/middleware-sdk-api-gateway";
196196
import {
197197
AwsAuthInputConfig,
198198
AwsAuthResolvedConfig,
199199
getAwsAuthPlugin,
200-
resolveAwsAuthConfig,
200+
resolveAwsAuthConfig
201201
} from "@aws-sdk/middleware-signing";
202202
import {
203203
UserAgentInputConfig,
204204
UserAgentResolvedConfig,
205205
getUserAgentPlugin,
206-
resolveUserAgentConfig,
206+
resolveUserAgentConfig
207207
} from "@aws-sdk/middleware-user-agent";
208208
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
209209
import {
210210
Client as __Client,
211211
SmithyConfiguration as __SmithyConfiguration,
212-
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
212+
SmithyResolvedConfiguration as __SmithyResolvedConfiguration
213213
} from "@aws-sdk/smithy-client";
214214
import {
215215
RegionInfoProvider,
@@ -221,7 +221,7 @@ import {
221221
MetadataBearer as __MetadataBearer,
222222
Provider as __Provider,
223223
StreamCollector as __StreamCollector,
224-
UrlParser as __UrlParser,
224+
UrlParser as __UrlParser
225225
} from "@aws-sdk/types";
226226

227227
export type ServiceInputTypes =
@@ -523,23 +523,27 @@ export interface ClientDefaults
523523
regionInfoProvider?: RegionInfoProvider;
524524
}
525525

526-
export type APIGatewayClientConfig = Partial<__SmithyConfiguration<__HttpHandlerOptions>>
527-
& ClientDefaults
528-
& RegionInputConfig
529-
& EndpointsInputConfig
530-
& AwsAuthInputConfig
531-
& RetryInputConfig
532-
& UserAgentInputConfig
533-
& HostHeaderInputConfig
526+
export type APIGatewayClientConfig = Partial<
527+
__SmithyConfiguration<__HttpHandlerOptions>
528+
> &
529+
ClientDefaults &
530+
RegionInputConfig &
531+
EndpointsInputConfig &
532+
AwsAuthInputConfig &
533+
RetryInputConfig &
534+
UserAgentInputConfig &
535+
HostHeaderInputConfig;
534536

535-
export type APIGatewayClientResolvedConfig = __SmithyResolvedConfiguration<__HttpHandlerOptions>
536-
& Required<ClientDefaults>
537-
& RegionResolvedConfig
538-
& EndpointsResolvedConfig
539-
& AwsAuthResolvedConfig
540-
& RetryResolvedConfig
541-
& UserAgentResolvedConfig
542-
& HostHeaderResolvedConfig
537+
export type APIGatewayClientResolvedConfig = __SmithyResolvedConfiguration<
538+
__HttpHandlerOptions
539+
> &
540+
Required<ClientDefaults> &
541+
RegionResolvedConfig &
542+
EndpointsResolvedConfig &
543+
AwsAuthResolvedConfig &
544+
RetryResolvedConfig &
545+
UserAgentResolvedConfig &
546+
HostHeaderResolvedConfig;
543547

544548
/**
545549
* <fullname>
@@ -578,6 +582,5 @@ export class APIGatewayClient extends __Client<
578582
this.middlewareStack.use(getHostHeaderPlugin(this.config));
579583
}
580584

581-
destroy(): void {
582-
}
585+
destroy(): void {}
583586
}

clients/client-api-gateway/commands/CreateApiKeyCommand.ts

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
11
import {
22
APIGatewayClientResolvedConfig,
33
ServiceInputTypes,
4-
ServiceOutputTypes,
4+
ServiceOutputTypes
55
} from "../APIGatewayClient";
6-
import {
7-
ApiKey,
8-
CreateApiKeyRequest,
9-
} from "../models/index";
6+
import { ApiKey, CreateApiKeyRequest } from "../models/index";
107
import {
118
deserializeAws_restJson1_1CreateApiKeyCommand,
12-
serializeAws_restJson1_1CreateApiKeyCommand,
9+
serializeAws_restJson1_1CreateApiKeyCommand
1310
} from "../protocols/Aws_restJson1_1";
1411
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
1512
import {
1613
HttpRequest as __HttpRequest,
17-
HttpResponse as __HttpResponse,
14+
HttpResponse as __HttpResponse
1815
} from "@aws-sdk/protocol-http";
1916
import { Command as $Command } from "@aws-sdk/smithy-client";
2017
import {
@@ -23,13 +20,17 @@ import {
2320
HandlerExecutionContext,
2421
MiddlewareStack,
2522
SerdeContext,
26-
HttpHandlerOptions as __HttpHandlerOptions,
23+
HttpHandlerOptions as __HttpHandlerOptions
2724
} from "@aws-sdk/types";
2825

2926
export type CreateApiKeyCommandInput = CreateApiKeyRequest;
3027
export type CreateApiKeyCommandOutput = ApiKey;
3128

32-
export class CreateApiKeyCommand extends $Command<CreateApiKeyCommandInput, CreateApiKeyCommandOutput, APIGatewayClientResolvedConfig> {
29+
export class CreateApiKeyCommand extends $Command<
30+
CreateApiKeyCommandInput,
31+
CreateApiKeyCommandOutput,
32+
APIGatewayClientResolvedConfig
33+
> {
3334
// Start section: command_properties
3435
// End section: command_properties
3536

@@ -44,13 +45,15 @@ export class CreateApiKeyCommand extends $Command<CreateApiKeyCommandInput, Crea
4445
configuration: APIGatewayClientResolvedConfig,
4546
options?: __HttpHandlerOptions
4647
): Handler<CreateApiKeyCommandInput, CreateApiKeyCommandOutput> {
47-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
48+
this.middlewareStack.use(
49+
getSerdePlugin(configuration, this.serialize, this.deserialize)
50+
);
4851

4952
const stack = clientStack.concat(this.middlewareStack);
5053

5154
const handlerExecutionContext: HandlerExecutionContext = {
52-
logger: {} as any,
53-
}
55+
logger: {} as any
56+
};
5457
const { requestHandler } = configuration;
5558
return stack.resolve(
5659
(request: FinalizeHandlerArguments<any>) =>

clients/client-api-gateway/commands/CreateAuthorizerCommand.ts

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
11
import {
22
APIGatewayClientResolvedConfig,
33
ServiceInputTypes,
4-
ServiceOutputTypes,
4+
ServiceOutputTypes
55
} from "../APIGatewayClient";
6-
import {
7-
Authorizer,
8-
CreateAuthorizerRequest,
9-
} from "../models/index";
6+
import { Authorizer, CreateAuthorizerRequest } from "../models/index";
107
import {
118
deserializeAws_restJson1_1CreateAuthorizerCommand,
12-
serializeAws_restJson1_1CreateAuthorizerCommand,
9+
serializeAws_restJson1_1CreateAuthorizerCommand
1310
} from "../protocols/Aws_restJson1_1";
1411
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
1512
import {
1613
HttpRequest as __HttpRequest,
17-
HttpResponse as __HttpResponse,
14+
HttpResponse as __HttpResponse
1815
} from "@aws-sdk/protocol-http";
1916
import { Command as $Command } from "@aws-sdk/smithy-client";
2017
import {
@@ -23,13 +20,17 @@ import {
2320
HandlerExecutionContext,
2421
MiddlewareStack,
2522
SerdeContext,
26-
HttpHandlerOptions as __HttpHandlerOptions,
23+
HttpHandlerOptions as __HttpHandlerOptions
2724
} from "@aws-sdk/types";
2825

2926
export type CreateAuthorizerCommandInput = CreateAuthorizerRequest;
3027
export type CreateAuthorizerCommandOutput = Authorizer;
3128

32-
export class CreateAuthorizerCommand extends $Command<CreateAuthorizerCommandInput, CreateAuthorizerCommandOutput, APIGatewayClientResolvedConfig> {
29+
export class CreateAuthorizerCommand extends $Command<
30+
CreateAuthorizerCommandInput,
31+
CreateAuthorizerCommandOutput,
32+
APIGatewayClientResolvedConfig
33+
> {
3334
// Start section: command_properties
3435
// End section: command_properties
3536

@@ -44,13 +45,15 @@ export class CreateAuthorizerCommand extends $Command<CreateAuthorizerCommandInp
4445
configuration: APIGatewayClientResolvedConfig,
4546
options?: __HttpHandlerOptions
4647
): Handler<CreateAuthorizerCommandInput, CreateAuthorizerCommandOutput> {
47-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
48+
this.middlewareStack.use(
49+
getSerdePlugin(configuration, this.serialize, this.deserialize)
50+
);
4851

4952
const stack = clientStack.concat(this.middlewareStack);
5053

5154
const handlerExecutionContext: HandlerExecutionContext = {
52-
logger: {} as any,
53-
}
55+
logger: {} as any
56+
};
5457
const { requestHandler } = configuration;
5558
return stack.resolve(
5659
(request: FinalizeHandlerArguments<any>) =>

clients/client-api-gateway/commands/CreateBasePathMappingCommand.ts

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
11
import {
22
APIGatewayClientResolvedConfig,
33
ServiceInputTypes,
4-
ServiceOutputTypes,
4+
ServiceOutputTypes
55
} from "../APIGatewayClient";
6-
import {
7-
BasePathMapping,
8-
CreateBasePathMappingRequest,
9-
} from "../models/index";
6+
import { BasePathMapping, CreateBasePathMappingRequest } from "../models/index";
107
import {
118
deserializeAws_restJson1_1CreateBasePathMappingCommand,
12-
serializeAws_restJson1_1CreateBasePathMappingCommand,
9+
serializeAws_restJson1_1CreateBasePathMappingCommand
1310
} from "../protocols/Aws_restJson1_1";
1411
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
1512
import {
1613
HttpRequest as __HttpRequest,
17-
HttpResponse as __HttpResponse,
14+
HttpResponse as __HttpResponse
1815
} from "@aws-sdk/protocol-http";
1916
import { Command as $Command } from "@aws-sdk/smithy-client";
2017
import {
@@ -23,13 +20,17 @@ import {
2320
HandlerExecutionContext,
2421
MiddlewareStack,
2522
SerdeContext,
26-
HttpHandlerOptions as __HttpHandlerOptions,
23+
HttpHandlerOptions as __HttpHandlerOptions
2724
} from "@aws-sdk/types";
2825

2926
export type CreateBasePathMappingCommandInput = CreateBasePathMappingRequest;
3027
export type CreateBasePathMappingCommandOutput = BasePathMapping;
3128

32-
export class CreateBasePathMappingCommand extends $Command<CreateBasePathMappingCommandInput, CreateBasePathMappingCommandOutput, APIGatewayClientResolvedConfig> {
29+
export class CreateBasePathMappingCommand extends $Command<
30+
CreateBasePathMappingCommandInput,
31+
CreateBasePathMappingCommandOutput,
32+
APIGatewayClientResolvedConfig
33+
> {
3334
// Start section: command_properties
3435
// End section: command_properties
3536

@@ -43,14 +44,19 @@ export class CreateBasePathMappingCommand extends $Command<CreateBasePathMapping
4344
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
4445
configuration: APIGatewayClientResolvedConfig,
4546
options?: __HttpHandlerOptions
46-
): Handler<CreateBasePathMappingCommandInput, CreateBasePathMappingCommandOutput> {
47-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
47+
): Handler<
48+
CreateBasePathMappingCommandInput,
49+
CreateBasePathMappingCommandOutput
50+
> {
51+
this.middlewareStack.use(
52+
getSerdePlugin(configuration, this.serialize, this.deserialize)
53+
);
4854

4955
const stack = clientStack.concat(this.middlewareStack);
5056

5157
const handlerExecutionContext: HandlerExecutionContext = {
52-
logger: {} as any,
53-
}
58+
logger: {} as any
59+
};
5460
const { requestHandler } = configuration;
5561
return stack.resolve(
5662
(request: FinalizeHandlerArguments<any>) =>
@@ -70,7 +76,10 @@ export class CreateBasePathMappingCommand extends $Command<CreateBasePathMapping
7076
output: __HttpResponse,
7177
context: SerdeContext
7278
): Promise<CreateBasePathMappingCommandOutput> {
73-
return deserializeAws_restJson1_1CreateBasePathMappingCommand(output, context);
79+
return deserializeAws_restJson1_1CreateBasePathMappingCommand(
80+
output,
81+
context
82+
);
7483
}
7584

7685
// Start section: command_body_extra

clients/client-api-gateway/commands/CreateDeploymentCommand.ts

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
11
import {
22
APIGatewayClientResolvedConfig,
33
ServiceInputTypes,
4-
ServiceOutputTypes,
4+
ServiceOutputTypes
55
} from "../APIGatewayClient";
6-
import {
7-
CreateDeploymentRequest,
8-
Deployment,
9-
} from "../models/index";
6+
import { CreateDeploymentRequest, Deployment } from "../models/index";
107
import {
118
deserializeAws_restJson1_1CreateDeploymentCommand,
12-
serializeAws_restJson1_1CreateDeploymentCommand,
9+
serializeAws_restJson1_1CreateDeploymentCommand
1310
} from "../protocols/Aws_restJson1_1";
1411
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
1512
import {
1613
HttpRequest as __HttpRequest,
17-
HttpResponse as __HttpResponse,
14+
HttpResponse as __HttpResponse
1815
} from "@aws-sdk/protocol-http";
1916
import { Command as $Command } from "@aws-sdk/smithy-client";
2017
import {
@@ -23,13 +20,17 @@ import {
2320
HandlerExecutionContext,
2421
MiddlewareStack,
2522
SerdeContext,
26-
HttpHandlerOptions as __HttpHandlerOptions,
23+
HttpHandlerOptions as __HttpHandlerOptions
2724
} from "@aws-sdk/types";
2825

2926
export type CreateDeploymentCommandInput = CreateDeploymentRequest;
3027
export type CreateDeploymentCommandOutput = Deployment;
3128

32-
export class CreateDeploymentCommand extends $Command<CreateDeploymentCommandInput, CreateDeploymentCommandOutput, APIGatewayClientResolvedConfig> {
29+
export class CreateDeploymentCommand extends $Command<
30+
CreateDeploymentCommandInput,
31+
CreateDeploymentCommandOutput,
32+
APIGatewayClientResolvedConfig
33+
> {
3334
// Start section: command_properties
3435
// End section: command_properties
3536

@@ -44,13 +45,15 @@ export class CreateDeploymentCommand extends $Command<CreateDeploymentCommandInp
4445
configuration: APIGatewayClientResolvedConfig,
4546
options?: __HttpHandlerOptions
4647
): Handler<CreateDeploymentCommandInput, CreateDeploymentCommandOutput> {
47-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
48+
this.middlewareStack.use(
49+
getSerdePlugin(configuration, this.serialize, this.deserialize)
50+
);
4851

4952
const stack = clientStack.concat(this.middlewareStack);
5053

5154
const handlerExecutionContext: HandlerExecutionContext = {
52-
logger: {} as any,
53-
}
55+
logger: {} as any
56+
};
5457
const { requestHandler } = configuration;
5558
return stack.resolve(
5659
(request: FinalizeHandlerArguments<any>) =>

0 commit comments

Comments
 (0)