Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: commit all clients #324

Merged
merged 28 commits into from
Aug 19, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
093a925
feat: commit latest service models
AllanZhengYP Aug 6, 2019
e160388
feat: update lerna config
AllanZhengYP Aug 6, 2019
73af476
chore: move existing clients to clients folder
AllanZhengYP Aug 7, 2019
e60e3cf
chore: generate clients in right destination; update import map
AllanZhengYP Aug 8, 2019
e58e1e8
chore: fix issues with generating univeral clients
AllanZhengYP Aug 8, 2019
2fc24ed
chore: remove old service APIs
AllanZhengYP Aug 8, 2019
9e3cb69
chore: support generate clients for all funtime at the same time
AllanZhengYP Aug 8, 2019
f3f58cf
chore: fix issues with */ in doc block breaking code gen
AllanZhengYP Aug 8, 2019
c1c7399
chore: remove importexport service because of deprecation
AllanZhengYP Aug 8, 2019
608136f
chore: commit all clients
AllanZhengYP Aug 9, 2019
e502a33
fix(service-types-generator): fix self reference in generated model
AllanZhengYP Aug 9, 2019
33150e8
fix(service-model): code gen of different models with casing difference
AllanZhengYP Aug 12, 2019
48a149c
fix(types): correct client interface of validating config
AllanZhengYP Aug 13, 2019
0906d36
fix: remove universal client generation when import models
AllanZhengYP Aug 13, 2019
a35708c
fix: remove generated universal clients
AllanZhengYP Aug 13, 2019
d11041f
fix(service-types-generator): remove versions from cloudfront commands
AllanZhengYP Aug 14, 2019
59fe232
fix: fix incorrect codegen in commands signing middleware
AllanZhengYP Aug 14, 2019
3eb48d2
fix: fix naming conflict between operations and shapes
AllanZhengYP Aug 15, 2019
4a10eee
feat: introduce typescript incremental build
AllanZhengYP Aug 15, 2019
c0c58a9
chore: add travis wait time for long-running steps
AllanZhengYP Aug 15, 2019
c24841c
chore: re-generate all clients in clients folder
AllanZhengYP Aug 15, 2019
e0f1613
chore: fix glacier smoke test and smoke test generator
AllanZhengYP Aug 15, 2019
01a98c1
chore: increate travis wait time to 180
AllanZhengYP Aug 15, 2019
72f87c3
chore: ignore *.tsbuildinfo
AllanZhengYP Aug 15, 2019
8d1daa5
chore: regenerate clients with updated readme and smoke test
AllanZhengYP Aug 16, 2019
39ba17f
chore: update buildspec to node10 runtime
AllanZhengYP Aug 16, 2019
2c82eb2
feat: add back kinesis clients
AllanZhengYP Aug 16, 2019
7dd020c
fix: fix existing packages version
AllanZhengYP Aug 16, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ node_js:
- "10.9.0"
install:
- npm install
- npm run bootstrap
- travis_wait 180 npm run bootstrap
script:
- npm run test
- travis_wait 180 npm run test
after_success:
- ./node_modules/.bin/codecov -f coverage/*.json
3 changes: 3 additions & 0 deletions buildspec.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
version: 0.2

phases:
install:
runtime-versions:
nodejs: 10
pre_build:
commands:
- echo Installing dependencies
Expand Down
12 changes: 12 additions & 0 deletions clients/browser/client-acm-browser/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/node_modules/
/build/
/coverage/
/docs/
*.tsbuildinfo
*.tgz
*.log
package-lock.json

*.d.ts
*.js
*.js.map
6 changes: 6 additions & 0 deletions clients/browser/client-acm-browser/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/coverage/
/docs/
*.ts
!*.d.ts
tsconfig.test.json
*.tsbuildinfo
426 changes: 426 additions & 0 deletions clients/browser/client-acm-browser/ACM.ts

Large diffs are not rendered by default.

167 changes: 167 additions & 0 deletions clients/browser/client-acm-browser/ACMClient.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,167 @@
import * as __aws_crypto_sha256_browser from "@aws-crypto/sha256-browser";
import * as __aws_sdk_config_resolver from "@aws-sdk/config-resolver";
import * as __aws_sdk_core_handler from "@aws-sdk/core-handler";
import * as __aws_sdk_fetch_http_handler from "@aws-sdk/fetch-http-handler";
import * as __aws_sdk_json_builder from "@aws-sdk/json-builder";
import * as __aws_sdk_json_error_unmarshaller from "@aws-sdk/json-error-unmarshaller";
import * as __aws_sdk_json_parser from "@aws-sdk/json-parser";
import * as __aws_sdk_middleware_content_length from "@aws-sdk/middleware-content-length";
import * as __aws_sdk_middleware_header_default from "@aws-sdk/middleware-header-default";
import * as __aws_sdk_middleware_serializer from "@aws-sdk/middleware-serializer";
import * as __aws_sdk_middleware_stack from "@aws-sdk/middleware-stack";
import * as __aws_sdk_protocol_json_rpc from "@aws-sdk/protocol-json-rpc";
import * as __aws_sdk_retry_middleware from "@aws-sdk/retry-middleware";
import * as __aws_sdk_signature_v4 from "@aws-sdk/signature-v4";
import * as __aws_sdk_signing_middleware from "@aws-sdk/signing-middleware";
import * as __aws_sdk_stream_collector_browser from "@aws-sdk/stream-collector-browser";
import * as __aws_sdk_types from "@aws-sdk/types";
import * as __aws_sdk_url_parser_browser from "@aws-sdk/url-parser-browser";
import * as __aws_sdk_util_base64_browser from "@aws-sdk/util-base64-browser";
import * as __aws_sdk_util_body_length_browser from "@aws-sdk/util-body-length-browser";
import * as __aws_sdk_util_user_agent_browser from "@aws-sdk/util-user-agent-browser";
import * as __aws_sdk_util_utf8_browser from "@aws-sdk/util-utf8-browser";
import {
ACMConfiguration,
ACMResolvedConfiguration,
configurationProperties
} from "./ACMConfiguration";
import { InputTypesUnion } from "./types/InputTypesUnion";
import { OutputTypesUnion } from "./types/OutputTypesUnion";
import { clientVersion, ServiceMetadata } from "./model/ServiceMetadata";

export class ACMClient
implements
__aws_sdk_types.AWSClient<InputTypesUnion, OutputTypesUnion, Blob> {
readonly config: ACMResolvedConfiguration;

readonly middlewareStack = new __aws_sdk_middleware_stack.MiddlewareStack<
InputTypesUnion,
OutputTypesUnion,
Blob
>();

constructor(configuration: ACMConfiguration) {
this.config = __aws_sdk_config_resolver.resolveConfiguration(
configuration,
configurationProperties,
this.middlewareStack
);
this.middlewareStack.add(
__aws_sdk_middleware_serializer.serializerMiddleware(
this.config.serializer
),
{
step: "serialize",
priority: 90,
tags: { SERIALIZER: true }
}
);
this.middlewareStack.add(
__aws_sdk_middleware_content_length.contentLengthMiddleware(
this.config.bodyLengthChecker
),
{
step: "build",
priority: -80,
tags: { SET_CONTENT_LENGTH: true }
}
);
if (this.config.maxRetries > 0) {
this.middlewareStack.add(
__aws_sdk_retry_middleware.retryMiddleware(
this.config.maxRetries,
this.config.retryDecider,
this.config.delayDecider
),
{
step: "finalize",
priority: Infinity,
tags: { RETRY: true }
}
);
}
this.middlewareStack.add(
__aws_sdk_signing_middleware.signingMiddleware<
InputTypesUnion,
OutputTypesUnion,
Blob
>(this.config.signer),
{
step: "finalize",
priority: 0,
tags: { SIGNATURE: true }
}
);
this.middlewareStack.add(
__aws_sdk_middleware_header_default.headerDefault({
"X-Amz-User-Agent": __aws_sdk_util_user_agent_browser.defaultUserAgent(
ServiceMetadata.serviceId || ServiceMetadata.endpointPrefix,
clientVersion
)
}),
{
step: "build",
priority: 0,
tags: { SET_USER_AGENT: true }
}
);
}

destroy(): void {
if (!this.config._user_injected_http_handler) {
this.config.httpHandler.destroy();
}
}

/**
* This will need to be revised when the command interface lands.
*/
send<InputType extends InputTypesUnion, OutputType extends OutputTypesUnion>(
command: __aws_sdk_types.Command<
InputTypesUnion,
InputType,
OutputTypesUnion,
OutputType,
ACMResolvedConfiguration,
Blob
>
): Promise<OutputType>;
send<InputType extends InputTypesUnion, OutputType extends OutputTypesUnion>(
command: __aws_sdk_types.Command<
InputTypesUnion,
InputType,
OutputTypesUnion,
OutputType,
ACMResolvedConfiguration,
Blob
>,
cb: (err: any, data?: OutputType) => void
): void;
send<InputType extends InputTypesUnion, OutputType extends OutputTypesUnion>(
command: __aws_sdk_types.Command<
InputTypesUnion,
InputType,
OutputTypesUnion,
OutputType,
ACMResolvedConfiguration,
Blob
>,
cb?: (err: any, data?: OutputType) => void
): Promise<OutputType> | void {
const handler = command.resolveMiddleware(
this.middlewareStack,
this.config
);
if (cb) {
handler(command)
.then((result: OutputType) => cb(null, result), (err: any) => cb(err))
.catch(
// prevent any errors thrown in the callback from triggering an
// unhandled promise rejection
() => {}
);
} else {
return handler(command);
}
}
}
Loading