Skip to content

Commit

Permalink
chore: switch to prettier@2 defaults with 120 printWidth (aws#1185)
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr authored Jul 10, 2020
1 parent 36cb5ca commit 97efeeb
Show file tree
Hide file tree
Showing 9,884 changed files with 375,434 additions and 915,734 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
6 changes: 0 additions & 6 deletions .prettierrc

This file was deleted.

3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"editor.tabSize": 2,
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.rulers": [80, 120]
}
209 changes: 61 additions & 148 deletions clients/client-accessanalyzer/AccessAnalyzer.ts

Large diffs are not rendered by default.

113 changes: 29 additions & 84 deletions clients/client-accessanalyzer/AccessAnalyzerClient.ts
Original file line number Diff line number Diff line change
@@ -1,114 +1,64 @@
import {
CreateAnalyzerCommandInput,
CreateAnalyzerCommandOutput
} from "./commands/CreateAnalyzerCommand";
import {
CreateArchiveRuleCommandInput,
CreateArchiveRuleCommandOutput
} from "./commands/CreateArchiveRuleCommand";
import {
DeleteAnalyzerCommandInput,
DeleteAnalyzerCommandOutput
} from "./commands/DeleteAnalyzerCommand";
import {
DeleteArchiveRuleCommandInput,
DeleteArchiveRuleCommandOutput
} from "./commands/DeleteArchiveRuleCommand";
import { CreateAnalyzerCommandInput, CreateAnalyzerCommandOutput } from "./commands/CreateAnalyzerCommand";
import { CreateArchiveRuleCommandInput, CreateArchiveRuleCommandOutput } from "./commands/CreateArchiveRuleCommand";
import { DeleteAnalyzerCommandInput, DeleteAnalyzerCommandOutput } from "./commands/DeleteAnalyzerCommand";
import { DeleteArchiveRuleCommandInput, DeleteArchiveRuleCommandOutput } from "./commands/DeleteArchiveRuleCommand";
import {
GetAnalyzedResourceCommandInput,
GetAnalyzedResourceCommandOutput
GetAnalyzedResourceCommandOutput,
} from "./commands/GetAnalyzedResourceCommand";
import {
GetAnalyzerCommandInput,
GetAnalyzerCommandOutput
} from "./commands/GetAnalyzerCommand";
import {
GetArchiveRuleCommandInput,
GetArchiveRuleCommandOutput
} from "./commands/GetArchiveRuleCommand";
import {
GetFindingCommandInput,
GetFindingCommandOutput
} from "./commands/GetFindingCommand";
import { GetAnalyzerCommandInput, GetAnalyzerCommandOutput } from "./commands/GetAnalyzerCommand";
import { GetArchiveRuleCommandInput, GetArchiveRuleCommandOutput } from "./commands/GetArchiveRuleCommand";
import { GetFindingCommandInput, GetFindingCommandOutput } from "./commands/GetFindingCommand";
import {
ListAnalyzedResourcesCommandInput,
ListAnalyzedResourcesCommandOutput
ListAnalyzedResourcesCommandOutput,
} from "./commands/ListAnalyzedResourcesCommand";
import {
ListAnalyzersCommandInput,
ListAnalyzersCommandOutput
} from "./commands/ListAnalyzersCommand";
import {
ListArchiveRulesCommandInput,
ListArchiveRulesCommandOutput
} from "./commands/ListArchiveRulesCommand";
import {
ListFindingsCommandInput,
ListFindingsCommandOutput
} from "./commands/ListFindingsCommand";
import { ListAnalyzersCommandInput, ListAnalyzersCommandOutput } from "./commands/ListAnalyzersCommand";
import { ListArchiveRulesCommandInput, ListArchiveRulesCommandOutput } from "./commands/ListArchiveRulesCommand";
import { ListFindingsCommandInput, ListFindingsCommandOutput } from "./commands/ListFindingsCommand";
import {
ListTagsForResourceCommandInput,
ListTagsForResourceCommandOutput
ListTagsForResourceCommandOutput,
} from "./commands/ListTagsForResourceCommand";
import {
StartResourceScanCommandInput,
StartResourceScanCommandOutput
} from "./commands/StartResourceScanCommand";
import {
TagResourceCommandInput,
TagResourceCommandOutput
} from "./commands/TagResourceCommand";
import {
UntagResourceCommandInput,
UntagResourceCommandOutput
} from "./commands/UntagResourceCommand";
import {
UpdateArchiveRuleCommandInput,
UpdateArchiveRuleCommandOutput
} from "./commands/UpdateArchiveRuleCommand";
import {
UpdateFindingsCommandInput,
UpdateFindingsCommandOutput
} from "./commands/UpdateFindingsCommand";
import { StartResourceScanCommandInput, StartResourceScanCommandOutput } from "./commands/StartResourceScanCommand";
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
import { UpdateArchiveRuleCommandInput, UpdateArchiveRuleCommandOutput } from "./commands/UpdateArchiveRuleCommand";
import { UpdateFindingsCommandInput, UpdateFindingsCommandOutput } from "./commands/UpdateFindingsCommand";
import { ClientDefaultValues as __ClientDefaultValues } from "./runtimeConfig";
import {
EndpointsInputConfig,
EndpointsResolvedConfig,
RegionInputConfig,
RegionResolvedConfig,
resolveEndpointsConfig,
resolveRegionConfig
resolveRegionConfig,
} from "@aws-sdk/config-resolver";
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
import {
HostHeaderInputConfig,
HostHeaderResolvedConfig,
getHostHeaderPlugin,
resolveHostHeaderConfig
resolveHostHeaderConfig,
} from "@aws-sdk/middleware-host-header";
import {
RetryInputConfig,
RetryResolvedConfig,
getRetryPlugin,
resolveRetryConfig
} from "@aws-sdk/middleware-retry";
import { RetryInputConfig, RetryResolvedConfig, getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
import {
AwsAuthInputConfig,
AwsAuthResolvedConfig,
getAwsAuthPlugin,
resolveAwsAuthConfig
resolveAwsAuthConfig,
} from "@aws-sdk/middleware-signing";
import {
UserAgentInputConfig,
UserAgentResolvedConfig,
getUserAgentPlugin,
resolveUserAgentConfig
resolveUserAgentConfig,
} from "@aws-sdk/middleware-user-agent";
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
import {
Client as __Client,
SmithyConfiguration as __SmithyConfiguration,
SmithyResolvedConfiguration as __SmithyResolvedConfiguration
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
} from "@aws-sdk/smithy-client";
import {
RegionInfoProvider,
Expand All @@ -119,7 +69,7 @@ import {
HttpHandlerOptions as __HttpHandlerOptions,
Provider as __Provider,
StreamCollector as __StreamCollector,
UrlParser as __UrlParser
UrlParser as __UrlParser,
} from "@aws-sdk/types";

export type ServiceInputTypes =
Expand Down Expand Up @@ -162,8 +112,7 @@ export type ServiceOutputTypes =
| UpdateArchiveRuleCommandOutput
| UpdateFindingsCommandOutput;

export interface ClientDefaults
extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
/**
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
*/
Expand Down Expand Up @@ -252,9 +201,7 @@ export interface ClientDefaults
regionInfoProvider?: RegionInfoProvider;
}

export type AccessAnalyzerClientConfig = Partial<
__SmithyConfiguration<__HttpHandlerOptions>
> &
export type AccessAnalyzerClientConfig = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
ClientDefaults &
RegionInputConfig &
EndpointsInputConfig &
Expand All @@ -263,9 +210,7 @@ export type AccessAnalyzerClientConfig = Partial<
UserAgentInputConfig &
HostHeaderInputConfig;

export type AccessAnalyzerClientResolvedConfig = __SmithyResolvedConfiguration<
__HttpHandlerOptions
> &
export type AccessAnalyzerClientResolvedConfig = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
Required<ClientDefaults> &
RegionResolvedConfig &
EndpointsResolvedConfig &
Expand Down Expand Up @@ -294,7 +239,7 @@ export class AccessAnalyzerClient extends __Client<
constructor(configuration: AccessAnalyzerClientConfig) {
let _config_0 = {
...__ClientDefaultValues,
...configuration
...configuration,
};
let _config_1 = resolveRegionConfig(_config_0);
let _config_2 = resolveEndpointsConfig(_config_1);
Expand Down
34 changes: 9 additions & 25 deletions clients/client-accessanalyzer/commands/CreateAnalyzerCommand.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
import {
AccessAnalyzerClientResolvedConfig,
ServiceInputTypes,
ServiceOutputTypes
} from "../AccessAnalyzerClient";
import { AccessAnalyzerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AccessAnalyzerClient";
import { CreateAnalyzerRequest, CreateAnalyzerResponse } from "../models/index";
import {
deserializeAws_restJson1CreateAnalyzerCommand,
serializeAws_restJson1CreateAnalyzerCommand
serializeAws_restJson1CreateAnalyzerCommand,
} from "../protocols/Aws_restJson1";
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
import {
HttpRequest as __HttpRequest,
HttpResponse as __HttpResponse
} from "@aws-sdk/protocol-http";
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
import { Command as $Command } from "@aws-sdk/smithy-client";
import {
FinalizeHandlerArguments,
Expand All @@ -21,12 +14,11 @@ import {
MiddlewareStack,
HttpHandlerOptions as __HttpHandlerOptions,
MetadataBearer as __MetadataBearer,
SerdeContext as __SerdeContext
SerdeContext as __SerdeContext,
} from "@aws-sdk/types";

export type CreateAnalyzerCommandInput = CreateAnalyzerRequest;
export type CreateAnalyzerCommandOutput = CreateAnalyzerResponse &
__MetadataBearer;
export type CreateAnalyzerCommandOutput = CreateAnalyzerResponse & __MetadataBearer;

export class CreateAnalyzerCommand extends $Command<
CreateAnalyzerCommandInput,
Expand All @@ -47,14 +39,12 @@ export class CreateAnalyzerCommand extends $Command<
configuration: AccessAnalyzerClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler<CreateAnalyzerCommandInput, CreateAnalyzerCommandOutput> {
this.middlewareStack.use(
getSerdePlugin(configuration, this.serialize, this.deserialize)
);
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));

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

const handlerExecutionContext: HandlerExecutionContext = {
logger: {} as any
logger: {} as any,
};
const { requestHandler } = configuration;
return stack.resolve(
Expand All @@ -64,17 +54,11 @@ export class CreateAnalyzerCommand extends $Command<
);
}

private serialize(
input: CreateAnalyzerCommandInput,
context: __SerdeContext
): Promise<__HttpRequest> {
private serialize(input: CreateAnalyzerCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
return serializeAws_restJson1CreateAnalyzerCommand(input, context);
}

private deserialize(
output: __HttpResponse,
context: __SerdeContext
): Promise<CreateAnalyzerCommandOutput> {
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateAnalyzerCommandOutput> {
return deserializeAws_restJson1CreateAnalyzerCommand(output, context);
}

Expand Down
31 changes: 8 additions & 23 deletions clients/client-accessanalyzer/commands/CreateArchiveRuleCommand.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,11 @@
import {
AccessAnalyzerClientResolvedConfig,
ServiceInputTypes,
ServiceOutputTypes
} from "../AccessAnalyzerClient";
import { AccessAnalyzerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AccessAnalyzerClient";
import { CreateArchiveRuleRequest } from "../models/index";
import {
deserializeAws_restJson1CreateArchiveRuleCommand,
serializeAws_restJson1CreateArchiveRuleCommand
serializeAws_restJson1CreateArchiveRuleCommand,
} from "../protocols/Aws_restJson1";
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
import {
HttpRequest as __HttpRequest,
HttpResponse as __HttpResponse
} from "@aws-sdk/protocol-http";
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
import { Command as $Command } from "@aws-sdk/smithy-client";
import {
FinalizeHandlerArguments,
Expand All @@ -21,7 +14,7 @@ import {
MiddlewareStack,
HttpHandlerOptions as __HttpHandlerOptions,
MetadataBearer as __MetadataBearer,
SerdeContext as __SerdeContext
SerdeContext as __SerdeContext,
} from "@aws-sdk/types";

export type CreateArchiveRuleCommandInput = CreateArchiveRuleRequest;
Expand All @@ -46,14 +39,12 @@ export class CreateArchiveRuleCommand extends $Command<
configuration: AccessAnalyzerClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler<CreateArchiveRuleCommandInput, CreateArchiveRuleCommandOutput> {
this.middlewareStack.use(
getSerdePlugin(configuration, this.serialize, this.deserialize)
);
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));

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

const handlerExecutionContext: HandlerExecutionContext = {
logger: {} as any
logger: {} as any,
};
const { requestHandler } = configuration;
return stack.resolve(
Expand All @@ -63,17 +54,11 @@ export class CreateArchiveRuleCommand extends $Command<
);
}

private serialize(
input: CreateArchiveRuleCommandInput,
context: __SerdeContext
): Promise<__HttpRequest> {
private serialize(input: CreateArchiveRuleCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
return serializeAws_restJson1CreateArchiveRuleCommand(input, context);
}

private deserialize(
output: __HttpResponse,
context: __SerdeContext
): Promise<CreateArchiveRuleCommandOutput> {
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateArchiveRuleCommandOutput> {
return deserializeAws_restJson1CreateArchiveRuleCommand(output, context);
}

Expand Down
Loading

0 comments on commit 97efeeb

Please sign in to comment.