Skip to content

Commit 97efeeb

Browse files
authored
chore: switch to prettier@2 defaults with 120 printWidth (#1185)
1 parent 36cb5ca commit 97efeeb

File tree

9,884 files changed

+375434
-915734
lines changed

Some content is hidden

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

9,884 files changed

+375434
-915734
lines changed

.prettierrc

-6
This file was deleted.

.vscode/settings.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"editor.tabSize": 2,
33
"editor.formatOnSave": true,
4-
"editor.defaultFormatter": "esbenp.prettier-vscode"
4+
"editor.defaultFormatter": "esbenp.prettier-vscode",
5+
"editor.rulers": [80, 120]
56
}

clients/client-accessanalyzer/AccessAnalyzer.ts

+61-148
Large diffs are not rendered by default.

clients/client-accessanalyzer/AccessAnalyzerClient.ts

+29-84
Original file line numberDiff line numberDiff line change
@@ -1,114 +1,64 @@
1-
import {
2-
CreateAnalyzerCommandInput,
3-
CreateAnalyzerCommandOutput
4-
} from "./commands/CreateAnalyzerCommand";
5-
import {
6-
CreateArchiveRuleCommandInput,
7-
CreateArchiveRuleCommandOutput
8-
} from "./commands/CreateArchiveRuleCommand";
9-
import {
10-
DeleteAnalyzerCommandInput,
11-
DeleteAnalyzerCommandOutput
12-
} from "./commands/DeleteAnalyzerCommand";
13-
import {
14-
DeleteArchiveRuleCommandInput,
15-
DeleteArchiveRuleCommandOutput
16-
} from "./commands/DeleteArchiveRuleCommand";
1+
import { CreateAnalyzerCommandInput, CreateAnalyzerCommandOutput } from "./commands/CreateAnalyzerCommand";
2+
import { CreateArchiveRuleCommandInput, CreateArchiveRuleCommandOutput } from "./commands/CreateArchiveRuleCommand";
3+
import { DeleteAnalyzerCommandInput, DeleteAnalyzerCommandOutput } from "./commands/DeleteAnalyzerCommand";
4+
import { DeleteArchiveRuleCommandInput, DeleteArchiveRuleCommandOutput } from "./commands/DeleteArchiveRuleCommand";
175
import {
186
GetAnalyzedResourceCommandInput,
19-
GetAnalyzedResourceCommandOutput
7+
GetAnalyzedResourceCommandOutput,
208
} from "./commands/GetAnalyzedResourceCommand";
21-
import {
22-
GetAnalyzerCommandInput,
23-
GetAnalyzerCommandOutput
24-
} from "./commands/GetAnalyzerCommand";
25-
import {
26-
GetArchiveRuleCommandInput,
27-
GetArchiveRuleCommandOutput
28-
} from "./commands/GetArchiveRuleCommand";
29-
import {
30-
GetFindingCommandInput,
31-
GetFindingCommandOutput
32-
} from "./commands/GetFindingCommand";
9+
import { GetAnalyzerCommandInput, GetAnalyzerCommandOutput } from "./commands/GetAnalyzerCommand";
10+
import { GetArchiveRuleCommandInput, GetArchiveRuleCommandOutput } from "./commands/GetArchiveRuleCommand";
11+
import { GetFindingCommandInput, GetFindingCommandOutput } from "./commands/GetFindingCommand";
3312
import {
3413
ListAnalyzedResourcesCommandInput,
35-
ListAnalyzedResourcesCommandOutput
14+
ListAnalyzedResourcesCommandOutput,
3615
} from "./commands/ListAnalyzedResourcesCommand";
37-
import {
38-
ListAnalyzersCommandInput,
39-
ListAnalyzersCommandOutput
40-
} from "./commands/ListAnalyzersCommand";
41-
import {
42-
ListArchiveRulesCommandInput,
43-
ListArchiveRulesCommandOutput
44-
} from "./commands/ListArchiveRulesCommand";
45-
import {
46-
ListFindingsCommandInput,
47-
ListFindingsCommandOutput
48-
} from "./commands/ListFindingsCommand";
16+
import { ListAnalyzersCommandInput, ListAnalyzersCommandOutput } from "./commands/ListAnalyzersCommand";
17+
import { ListArchiveRulesCommandInput, ListArchiveRulesCommandOutput } from "./commands/ListArchiveRulesCommand";
18+
import { ListFindingsCommandInput, ListFindingsCommandOutput } from "./commands/ListFindingsCommand";
4919
import {
5020
ListTagsForResourceCommandInput,
51-
ListTagsForResourceCommandOutput
21+
ListTagsForResourceCommandOutput,
5222
} from "./commands/ListTagsForResourceCommand";
53-
import {
54-
StartResourceScanCommandInput,
55-
StartResourceScanCommandOutput
56-
} from "./commands/StartResourceScanCommand";
57-
import {
58-
TagResourceCommandInput,
59-
TagResourceCommandOutput
60-
} from "./commands/TagResourceCommand";
61-
import {
62-
UntagResourceCommandInput,
63-
UntagResourceCommandOutput
64-
} from "./commands/UntagResourceCommand";
65-
import {
66-
UpdateArchiveRuleCommandInput,
67-
UpdateArchiveRuleCommandOutput
68-
} from "./commands/UpdateArchiveRuleCommand";
69-
import {
70-
UpdateFindingsCommandInput,
71-
UpdateFindingsCommandOutput
72-
} from "./commands/UpdateFindingsCommand";
23+
import { StartResourceScanCommandInput, StartResourceScanCommandOutput } from "./commands/StartResourceScanCommand";
24+
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
25+
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
26+
import { UpdateArchiveRuleCommandInput, UpdateArchiveRuleCommandOutput } from "./commands/UpdateArchiveRuleCommand";
27+
import { UpdateFindingsCommandInput, UpdateFindingsCommandOutput } from "./commands/UpdateFindingsCommand";
7328
import { ClientDefaultValues as __ClientDefaultValues } from "./runtimeConfig";
7429
import {
7530
EndpointsInputConfig,
7631
EndpointsResolvedConfig,
7732
RegionInputConfig,
7833
RegionResolvedConfig,
7934
resolveEndpointsConfig,
80-
resolveRegionConfig
35+
resolveRegionConfig,
8136
} from "@aws-sdk/config-resolver";
8237
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
8338
import {
8439
HostHeaderInputConfig,
8540
HostHeaderResolvedConfig,
8641
getHostHeaderPlugin,
87-
resolveHostHeaderConfig
42+
resolveHostHeaderConfig,
8843
} from "@aws-sdk/middleware-host-header";
89-
import {
90-
RetryInputConfig,
91-
RetryResolvedConfig,
92-
getRetryPlugin,
93-
resolveRetryConfig
94-
} from "@aws-sdk/middleware-retry";
44+
import { RetryInputConfig, RetryResolvedConfig, getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
9545
import {
9646
AwsAuthInputConfig,
9747
AwsAuthResolvedConfig,
9848
getAwsAuthPlugin,
99-
resolveAwsAuthConfig
49+
resolveAwsAuthConfig,
10050
} from "@aws-sdk/middleware-signing";
10151
import {
10252
UserAgentInputConfig,
10353
UserAgentResolvedConfig,
10454
getUserAgentPlugin,
105-
resolveUserAgentConfig
55+
resolveUserAgentConfig,
10656
} from "@aws-sdk/middleware-user-agent";
10757
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
10858
import {
10959
Client as __Client,
11060
SmithyConfiguration as __SmithyConfiguration,
111-
SmithyResolvedConfiguration as __SmithyResolvedConfiguration
61+
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
11262
} from "@aws-sdk/smithy-client";
11363
import {
11464
RegionInfoProvider,
@@ -119,7 +69,7 @@ import {
11969
HttpHandlerOptions as __HttpHandlerOptions,
12070
Provider as __Provider,
12171
StreamCollector as __StreamCollector,
122-
UrlParser as __UrlParser
72+
UrlParser as __UrlParser,
12373
} from "@aws-sdk/types";
12474

12575
export type ServiceInputTypes =
@@ -162,8 +112,7 @@ export type ServiceOutputTypes =
162112
| UpdateArchiveRuleCommandOutput
163113
| UpdateFindingsCommandOutput;
164114

165-
export interface ClientDefaults
166-
extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
115+
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
167116
/**
168117
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
169118
*/
@@ -252,9 +201,7 @@ export interface ClientDefaults
252201
regionInfoProvider?: RegionInfoProvider;
253202
}
254203

255-
export type AccessAnalyzerClientConfig = Partial<
256-
__SmithyConfiguration<__HttpHandlerOptions>
257-
> &
204+
export type AccessAnalyzerClientConfig = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
258205
ClientDefaults &
259206
RegionInputConfig &
260207
EndpointsInputConfig &
@@ -263,9 +210,7 @@ export type AccessAnalyzerClientConfig = Partial<
263210
UserAgentInputConfig &
264211
HostHeaderInputConfig;
265212

266-
export type AccessAnalyzerClientResolvedConfig = __SmithyResolvedConfiguration<
267-
__HttpHandlerOptions
268-
> &
213+
export type AccessAnalyzerClientResolvedConfig = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
269214
Required<ClientDefaults> &
270215
RegionResolvedConfig &
271216
EndpointsResolvedConfig &
@@ -294,7 +239,7 @@ export class AccessAnalyzerClient extends __Client<
294239
constructor(configuration: AccessAnalyzerClientConfig) {
295240
let _config_0 = {
296241
...__ClientDefaultValues,
297-
...configuration
242+
...configuration,
298243
};
299244
let _config_1 = resolveRegionConfig(_config_0);
300245
let _config_2 = resolveEndpointsConfig(_config_1);

clients/client-accessanalyzer/commands/CreateAnalyzerCommand.ts

+9-25
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,11 @@
1-
import {
2-
AccessAnalyzerClientResolvedConfig,
3-
ServiceInputTypes,
4-
ServiceOutputTypes
5-
} from "../AccessAnalyzerClient";
1+
import { AccessAnalyzerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AccessAnalyzerClient";
62
import { CreateAnalyzerRequest, CreateAnalyzerResponse } from "../models/index";
73
import {
84
deserializeAws_restJson1CreateAnalyzerCommand,
9-
serializeAws_restJson1CreateAnalyzerCommand
5+
serializeAws_restJson1CreateAnalyzerCommand,
106
} from "../protocols/Aws_restJson1";
117
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
12-
import {
13-
HttpRequest as __HttpRequest,
14-
HttpResponse as __HttpResponse
15-
} from "@aws-sdk/protocol-http";
8+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
169
import { Command as $Command } from "@aws-sdk/smithy-client";
1710
import {
1811
FinalizeHandlerArguments,
@@ -21,12 +14,11 @@ import {
2114
MiddlewareStack,
2215
HttpHandlerOptions as __HttpHandlerOptions,
2316
MetadataBearer as __MetadataBearer,
24-
SerdeContext as __SerdeContext
17+
SerdeContext as __SerdeContext,
2518
} from "@aws-sdk/types";
2619

2720
export type CreateAnalyzerCommandInput = CreateAnalyzerRequest;
28-
export type CreateAnalyzerCommandOutput = CreateAnalyzerResponse &
29-
__MetadataBearer;
21+
export type CreateAnalyzerCommandOutput = CreateAnalyzerResponse & __MetadataBearer;
3022

3123
export class CreateAnalyzerCommand extends $Command<
3224
CreateAnalyzerCommandInput,
@@ -47,14 +39,12 @@ export class CreateAnalyzerCommand extends $Command<
4739
configuration: AccessAnalyzerClientResolvedConfig,
4840
options?: __HttpHandlerOptions
4941
): Handler<CreateAnalyzerCommandInput, CreateAnalyzerCommandOutput> {
50-
this.middlewareStack.use(
51-
getSerdePlugin(configuration, this.serialize, this.deserialize)
52-
);
42+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
5343

5444
const stack = clientStack.concat(this.middlewareStack);
5545

5646
const handlerExecutionContext: HandlerExecutionContext = {
57-
logger: {} as any
47+
logger: {} as any,
5848
};
5949
const { requestHandler } = configuration;
6050
return stack.resolve(
@@ -64,17 +54,11 @@ export class CreateAnalyzerCommand extends $Command<
6454
);
6555
}
6656

67-
private serialize(
68-
input: CreateAnalyzerCommandInput,
69-
context: __SerdeContext
70-
): Promise<__HttpRequest> {
57+
private serialize(input: CreateAnalyzerCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
7158
return serializeAws_restJson1CreateAnalyzerCommand(input, context);
7259
}
7360

74-
private deserialize(
75-
output: __HttpResponse,
76-
context: __SerdeContext
77-
): Promise<CreateAnalyzerCommandOutput> {
61+
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateAnalyzerCommandOutput> {
7862
return deserializeAws_restJson1CreateAnalyzerCommand(output, context);
7963
}
8064

clients/client-accessanalyzer/commands/CreateArchiveRuleCommand.ts

+8-23
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,11 @@
1-
import {
2-
AccessAnalyzerClientResolvedConfig,
3-
ServiceInputTypes,
4-
ServiceOutputTypes
5-
} from "../AccessAnalyzerClient";
1+
import { AccessAnalyzerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AccessAnalyzerClient";
62
import { CreateArchiveRuleRequest } from "../models/index";
73
import {
84
deserializeAws_restJson1CreateArchiveRuleCommand,
9-
serializeAws_restJson1CreateArchiveRuleCommand
5+
serializeAws_restJson1CreateArchiveRuleCommand,
106
} from "../protocols/Aws_restJson1";
117
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
12-
import {
13-
HttpRequest as __HttpRequest,
14-
HttpResponse as __HttpResponse
15-
} from "@aws-sdk/protocol-http";
8+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
169
import { Command as $Command } from "@aws-sdk/smithy-client";
1710
import {
1811
FinalizeHandlerArguments,
@@ -21,7 +14,7 @@ import {
2114
MiddlewareStack,
2215
HttpHandlerOptions as __HttpHandlerOptions,
2316
MetadataBearer as __MetadataBearer,
24-
SerdeContext as __SerdeContext
17+
SerdeContext as __SerdeContext,
2518
} from "@aws-sdk/types";
2619

2720
export type CreateArchiveRuleCommandInput = CreateArchiveRuleRequest;
@@ -46,14 +39,12 @@ export class CreateArchiveRuleCommand extends $Command<
4639
configuration: AccessAnalyzerClientResolvedConfig,
4740
options?: __HttpHandlerOptions
4841
): Handler<CreateArchiveRuleCommandInput, CreateArchiveRuleCommandOutput> {
49-
this.middlewareStack.use(
50-
getSerdePlugin(configuration, this.serialize, this.deserialize)
51-
);
42+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
5243

5344
const stack = clientStack.concat(this.middlewareStack);
5445

5546
const handlerExecutionContext: HandlerExecutionContext = {
56-
logger: {} as any
47+
logger: {} as any,
5748
};
5849
const { requestHandler } = configuration;
5950
return stack.resolve(
@@ -63,17 +54,11 @@ export class CreateArchiveRuleCommand extends $Command<
6354
);
6455
}
6556

66-
private serialize(
67-
input: CreateArchiveRuleCommandInput,
68-
context: __SerdeContext
69-
): Promise<__HttpRequest> {
57+
private serialize(input: CreateArchiveRuleCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
7058
return serializeAws_restJson1CreateArchiveRuleCommand(input, context);
7159
}
7260

73-
private deserialize(
74-
output: __HttpResponse,
75-
context: __SerdeContext
76-
): Promise<CreateArchiveRuleCommandOutput> {
61+
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateArchiveRuleCommandOutput> {
7762
return deserializeAws_restJson1CreateArchiveRuleCommand(output, context);
7863
}
7964

0 commit comments

Comments
 (0)