Skip to content

Commit

Permalink
feat: codegen for fixing streaming member shape(#968)
Browse files Browse the repository at this point in the history
* Update streaming member types(smithy-lang/smithy-typescript#138)
* Fix streaming type types when they are required(smithy-lang/smithy-typescript#140)
  • Loading branch information
AllanZhengYP committed Mar 5, 2020
1 parent 7c6af32 commit c7f13dc
Show file tree
Hide file tree
Showing 6,999 changed files with 264,384 additions and 153,334 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
170 changes: 107 additions & 63 deletions clients/client-accessanalyzer/AccessAnalyzerClient.ts
Original file line number Diff line number Diff line change
@@ -1,35 +1,75 @@
import {
CreateAnalyzerRequest,
CreateAnalyzerResponse,
CreateArchiveRuleRequest,
DeleteAnalyzerRequest,
DeleteArchiveRuleRequest,
GetAnalyzedResourceRequest,
GetAnalyzedResourceResponse,
GetAnalyzerRequest,
GetAnalyzerResponse,
GetArchiveRuleRequest,
GetArchiveRuleResponse,
GetFindingRequest,
GetFindingResponse,
ListAnalyzedResourcesRequest,
ListAnalyzedResourcesResponse,
ListAnalyzersRequest,
ListAnalyzersResponse,
ListArchiveRulesRequest,
ListArchiveRulesResponse,
ListFindingsRequest,
ListFindingsResponse,
ListTagsForResourceRequest,
ListTagsForResourceResponse,
StartResourceScanRequest,
TagResourceRequest,
TagResourceResponse,
UntagResourceRequest,
UntagResourceResponse,
UpdateArchiveRuleRequest,
UpdateFindingsRequest
} from "./models/index";
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
} from "./commands/GetAnalyzedResourceCommand";
import {
GetAnalyzerCommandInput,
GetAnalyzerCommandOutput
} from "./commands/GetAnalyzerCommand";
import {
GetArchiveRuleCommandInput,
GetArchiveRuleCommandOutput
} from "./commands/GetArchiveRuleCommand";
import {
GetFindingCommandInput,
GetFindingCommandOutput
} from "./commands/GetFindingCommand";
import {
ListAnalyzedResourcesCommandInput,
ListAnalyzedResourcesCommandOutput
} from "./commands/ListAnalyzedResourcesCommand";
import {
ListAnalyzersCommandInput,
ListAnalyzersCommandOutput
} from "./commands/ListAnalyzersCommand";
import {
ListArchiveRulesCommandInput,
ListArchiveRulesCommandOutput
} from "./commands/ListArchiveRulesCommand";
import {
ListFindingsCommandInput,
ListFindingsCommandOutput
} from "./commands/ListFindingsCommand";
import {
ListTagsForResourceCommandInput,
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 { ClientDefaultValues as __ClientDefaultValues } from "./runtimeConfig";
import {
EndpointsInputConfig,
Expand Down Expand Up @@ -77,46 +117,50 @@ import {
Encoder as __Encoder,
HashConstructor as __HashConstructor,
HttpHandlerOptions as __HttpHandlerOptions,
MetadataBearer as __MetadataBearer,
Provider as __Provider,
StreamCollector as __StreamCollector,
UrlParser as __UrlParser
} from "@aws-sdk/types";

export type ServiceInputTypes =
| CreateAnalyzerRequest
| CreateArchiveRuleRequest
| DeleteAnalyzerRequest
| DeleteArchiveRuleRequest
| GetAnalyzedResourceRequest
| GetAnalyzerRequest
| GetArchiveRuleRequest
| GetFindingRequest
| ListAnalyzedResourcesRequest
| ListAnalyzersRequest
| ListArchiveRulesRequest
| ListFindingsRequest
| ListTagsForResourceRequest
| StartResourceScanRequest
| TagResourceRequest
| UntagResourceRequest
| UpdateArchiveRuleRequest
| UpdateFindingsRequest;
| CreateAnalyzerCommandInput
| CreateArchiveRuleCommandInput
| DeleteAnalyzerCommandInput
| DeleteArchiveRuleCommandInput
| GetAnalyzedResourceCommandInput
| GetAnalyzerCommandInput
| GetArchiveRuleCommandInput
| GetFindingCommandInput
| ListAnalyzedResourcesCommandInput
| ListAnalyzersCommandInput
| ListArchiveRulesCommandInput
| ListFindingsCommandInput
| ListTagsForResourceCommandInput
| StartResourceScanCommandInput
| TagResourceCommandInput
| UntagResourceCommandInput
| UpdateArchiveRuleCommandInput
| UpdateFindingsCommandInput;

export type ServiceOutputTypes =
| __MetadataBearer
| CreateAnalyzerResponse
| GetAnalyzedResourceResponse
| GetAnalyzerResponse
| GetArchiveRuleResponse
| GetFindingResponse
| ListAnalyzedResourcesResponse
| ListAnalyzersResponse
| ListArchiveRulesResponse
| ListFindingsResponse
| ListTagsForResourceResponse
| TagResourceResponse
| UntagResourceResponse;
| CreateAnalyzerCommandOutput
| CreateArchiveRuleCommandOutput
| DeleteAnalyzerCommandOutput
| DeleteArchiveRuleCommandOutput
| GetAnalyzedResourceCommandOutput
| GetAnalyzerCommandOutput
| GetArchiveRuleCommandOutput
| GetFindingCommandOutput
| ListAnalyzedResourcesCommandOutput
| ListAnalyzersCommandOutput
| ListArchiveRulesCommandOutput
| ListFindingsCommandOutput
| ListTagsForResourceCommandOutput
| StartResourceScanCommandOutput
| TagResourceCommandOutput
| UntagResourceCommandOutput
| UpdateArchiveRuleCommandOutput
| UpdateFindingsCommandOutput;

export interface ClientDefaults
extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@ import {
HandlerExecutionContext,
MiddlewareStack,
HttpHandlerOptions as __HttpHandlerOptions,
MetadataBearer as __MetadataBearer,
SerdeContext as __SerdeContext
} from "@aws-sdk/types";

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

export class CreateAnalyzerCommand extends $Command<
CreateAnalyzerCommandInput,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,13 @@ import {
HandlerExecutionContext,
MiddlewareStack,
HttpHandlerOptions as __HttpHandlerOptions,
MetadataBearer as __MetadataBearer,
SerdeContext as __SerdeContext
} from "@aws-sdk/types";

export type GetAnalyzedResourceCommandInput = GetAnalyzedResourceRequest;
export type GetAnalyzedResourceCommandOutput = GetAnalyzedResourceResponse;
export type GetAnalyzedResourceCommandOutput = GetAnalyzedResourceResponse &
__MetadataBearer;

export class GetAnalyzedResourceCommand extends $Command<
GetAnalyzedResourceCommandInput,
Expand Down
3 changes: 2 additions & 1 deletion clients/client-accessanalyzer/commands/GetAnalyzerCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@ import {
HandlerExecutionContext,
MiddlewareStack,
HttpHandlerOptions as __HttpHandlerOptions,
MetadataBearer as __MetadataBearer,
SerdeContext as __SerdeContext
} from "@aws-sdk/types";

export type GetAnalyzerCommandInput = GetAnalyzerRequest;
export type GetAnalyzerCommandOutput = GetAnalyzerResponse;
export type GetAnalyzerCommandOutput = GetAnalyzerResponse & __MetadataBearer;

export class GetAnalyzerCommand extends $Command<
GetAnalyzerCommandInput,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@ import {
HandlerExecutionContext,
MiddlewareStack,
HttpHandlerOptions as __HttpHandlerOptions,
MetadataBearer as __MetadataBearer,
SerdeContext as __SerdeContext
} from "@aws-sdk/types";

export type GetArchiveRuleCommandInput = GetArchiveRuleRequest;
export type GetArchiveRuleCommandOutput = GetArchiveRuleResponse;
export type GetArchiveRuleCommandOutput = GetArchiveRuleResponse &
__MetadataBearer;

export class GetArchiveRuleCommand extends $Command<
GetArchiveRuleCommandInput,
Expand Down
3 changes: 2 additions & 1 deletion clients/client-accessanalyzer/commands/GetFindingCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@ import {
HandlerExecutionContext,
MiddlewareStack,
HttpHandlerOptions as __HttpHandlerOptions,
MetadataBearer as __MetadataBearer,
SerdeContext as __SerdeContext
} from "@aws-sdk/types";

export type GetFindingCommandInput = GetFindingRequest;
export type GetFindingCommandOutput = GetFindingResponse;
export type GetFindingCommandOutput = GetFindingResponse & __MetadataBearer;

export class GetFindingCommand extends $Command<
GetFindingCommandInput,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,13 @@ import {
HandlerExecutionContext,
MiddlewareStack,
HttpHandlerOptions as __HttpHandlerOptions,
MetadataBearer as __MetadataBearer,
SerdeContext as __SerdeContext
} from "@aws-sdk/types";

export type ListAnalyzedResourcesCommandInput = ListAnalyzedResourcesRequest;
export type ListAnalyzedResourcesCommandOutput = ListAnalyzedResourcesResponse;
export type ListAnalyzedResourcesCommandOutput = ListAnalyzedResourcesResponse &
__MetadataBearer;

export class ListAnalyzedResourcesCommand extends $Command<
ListAnalyzedResourcesCommandInput,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@ import {
HandlerExecutionContext,
MiddlewareStack,
HttpHandlerOptions as __HttpHandlerOptions,
MetadataBearer as __MetadataBearer,
SerdeContext as __SerdeContext
} from "@aws-sdk/types";

export type ListAnalyzersCommandInput = ListAnalyzersRequest;
export type ListAnalyzersCommandOutput = ListAnalyzersResponse;
export type ListAnalyzersCommandOutput = ListAnalyzersResponse &
__MetadataBearer;

export class ListAnalyzersCommand extends $Command<
ListAnalyzersCommandInput,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,13 @@ import {
HandlerExecutionContext,
MiddlewareStack,
HttpHandlerOptions as __HttpHandlerOptions,
MetadataBearer as __MetadataBearer,
SerdeContext as __SerdeContext
} from "@aws-sdk/types";

export type ListArchiveRulesCommandInput = ListArchiveRulesRequest;
export type ListArchiveRulesCommandOutput = ListArchiveRulesResponse;
export type ListArchiveRulesCommandOutput = ListArchiveRulesResponse &
__MetadataBearer;

export class ListArchiveRulesCommand extends $Command<
ListArchiveRulesCommandInput,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@ import {
HandlerExecutionContext,
MiddlewareStack,
HttpHandlerOptions as __HttpHandlerOptions,
MetadataBearer as __MetadataBearer,
SerdeContext as __SerdeContext
} from "@aws-sdk/types";

export type ListFindingsCommandInput = ListFindingsRequest;
export type ListFindingsCommandOutput = ListFindingsResponse;
export type ListFindingsCommandOutput = ListFindingsResponse & __MetadataBearer;

export class ListFindingsCommand extends $Command<
ListFindingsCommandInput,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,13 @@ import {
HandlerExecutionContext,
MiddlewareStack,
HttpHandlerOptions as __HttpHandlerOptions,
MetadataBearer as __MetadataBearer,
SerdeContext as __SerdeContext
} from "@aws-sdk/types";

export type ListTagsForResourceCommandInput = ListTagsForResourceRequest;
export type ListTagsForResourceCommandOutput = ListTagsForResourceResponse;
export type ListTagsForResourceCommandOutput = ListTagsForResourceResponse &
__MetadataBearer;

export class ListTagsForResourceCommand extends $Command<
ListTagsForResourceCommandInput,
Expand Down
3 changes: 2 additions & 1 deletion clients/client-accessanalyzer/commands/TagResourceCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@ import {
HandlerExecutionContext,
MiddlewareStack,
HttpHandlerOptions as __HttpHandlerOptions,
MetadataBearer as __MetadataBearer,
SerdeContext as __SerdeContext
} from "@aws-sdk/types";

export type TagResourceCommandInput = TagResourceRequest;
export type TagResourceCommandOutput = TagResourceResponse;
export type TagResourceCommandOutput = TagResourceResponse & __MetadataBearer;

export class TagResourceCommand extends $Command<
TagResourceCommandInput,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@ import {
HandlerExecutionContext,
MiddlewareStack,
HttpHandlerOptions as __HttpHandlerOptions,
MetadataBearer as __MetadataBearer,
SerdeContext as __SerdeContext
} from "@aws-sdk/types";

export type UntagResourceCommandInput = UntagResourceRequest;
export type UntagResourceCommandOutput = UntagResourceResponse;
export type UntagResourceCommandOutput = UntagResourceResponse &
__MetadataBearer;

export class UntagResourceCommand extends $Command<
UntagResourceCommandInput,
Expand Down
Loading

0 comments on commit c7f13dc

Please sign in to comment.