Skip to content

chore: prefix aws-protocoltests- for protocol test clients #2942

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

Merged
merged 6 commits into from
Oct 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
  •  
  •  
  •  
24 changes: 12 additions & 12 deletions codegen/protocol-test-codegen/smithy-build.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": "1.0",
"projections": {
"aws-ec2": {
"aws-protocoltests-ec2": {
"transforms": [
{
"name": "includeServices",
Expand All @@ -12,7 +12,7 @@
],
"plugins": {
"typescript-codegen": {
"package": "@aws-sdk/aws-ec2",
"package": "@aws-sdk/aws-protocoltests-ec2",
"packageVersion": "1.0.0-alpha.1",
"packageJson": {
"author": {
Expand All @@ -25,7 +25,7 @@
}
}
},
"aws-json": {
"aws-protocoltests-json": {
"transforms": [
{
"name": "includeServices",
Expand All @@ -36,7 +36,7 @@
],
"plugins": {
"typescript-codegen": {
"package": "@aws-sdk/aws-json",
"package": "@aws-sdk/aws-protocoltests-json",
"packageVersion": "1.0.0-alpha.1",
"packageJson": {
"author": {
Expand All @@ -49,7 +49,7 @@
}
}
},
"aws-json-10": {
"aws-protocoltests-json-10": {
"transforms": [
{
"name": "includeServices",
Expand All @@ -60,7 +60,7 @@
],
"plugins": {
"typescript-codegen": {
"package": "@aws-sdk/aws-json-10",
"package": "@aws-sdk/aws-protocoltests-json-10",
"packageVersion": "1.0.0-alpha.1",
"packageJson": {
"author": {
Expand All @@ -73,7 +73,7 @@
}
}
},
"aws-query": {
"aws-protocoltests-query": {
"transforms": [
{
"name": "includeServices",
Expand All @@ -84,7 +84,7 @@
],
"plugins": {
"typescript-codegen": {
"package": "@aws-sdk/aws-query",
"package": "@aws-sdk/aws-protocoltests-query",
"packageVersion": "1.0.0-alpha.1",
"packageJson": {
"author": {
Expand All @@ -97,7 +97,7 @@
}
}
},
"aws-restjson": {
"aws-protocoltests-restjson": {
"transforms": [
{
"name": "includeServices",
Expand All @@ -108,7 +108,7 @@
],
"plugins": {
"typescript-codegen": {
"package": "@aws-sdk/aws-restjson",
"package": "@aws-sdk/aws-protocoltests-restjson",
"packageVersion": "1.0.0-alpha.1",
"packageJson": {
"author": {
Expand Down Expand Up @@ -142,7 +142,7 @@
}
}
},
"aws-restxml": {
"aws-protocoltests-restxml": {
"transforms": [
{
"name": "includeServices",
Expand All @@ -153,7 +153,7 @@
],
"plugins": {
"typescript-codegen": {
"package": "@aws-sdk/aws-restxml",
"package": "@aws-sdk/aws-protocoltests-restxml",
"packageVersion": "1.0.0-alpha.1",
"packageJson": {
"author": {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"clear-build-info": "rimraf ./packages/**/*.tsbuildinfo ./clients/**/*.tsbuildinfo ./lib/**/*.tsbuildinfo ./protocol_tests/**/*.tsbuildinfo",
"remove-documentation": "rimraf ./docs",
"build:crypto-dependencies": "lerna run --scope '@aws-sdk/{types,util-utf8-browser,util-locate-window,hash-node}' --include-dependencies build",
"build:protocols": "yarn build:crypto-dependencies && lerna run --scope '@aws-sdk/aws-*' --ignore '@aws-sdk/*-server' --include-dependencies build",
"build:protocols": "yarn build:crypto-dependencies && lerna run --scope '@aws-sdk/aws-protocoltests-*' --include-dependencies build",
"build:server-protocols": "yarn build:crypto-dependencies && lerna run --scope '@aws-sdk/*-server' --include-dependencies build",
"build:all": "yarn build:crypto-dependencies && lerna run build",
"build-documentation": "yarn remove-documentation && typedoc",
Expand All @@ -24,7 +24,7 @@
"test:integration:legacy": "cucumber-js --fail-fast",
"test:integration:legacy:since:release": "./tests/integ-legacy/index.js",
"test:integration": "jest --config jest.config.integ.js --passWithNoTests",
"test:protocols": "yarn build:protocols && lerna run test --scope '@aws-sdk/aws-*' --ignore '@aws-sdk/*-server'",
"test:protocols": "yarn build:protocols && lerna run test --scope '@aws-sdk/aws-protocoltests-*'",
"test:server-protocols": "yarn build:server-protocols && lerna run test --scope '@aws-sdk/*-server'",
"pretest:e2e": "yarn build:crypto-dependencies && lerna run --scope '@aws-sdk/{client-cloudformation,karma-credential-loader}' --include-dependencies build",
"test:e2e": "node ./tests/e2e/index.js",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# @aws-sdk/aws-ec2
# @aws-sdk/aws-protocoltests-ec2

[![NPM version](https://img.shields.io/npm/v/@aws-sdk/aws-ec2/latest.svg)](https://www.npmjs.com/package/@aws-sdk/aws-ec2)
[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/aws-ec2.svg)](https://www.npmjs.com/package/@aws-sdk/aws-ec2)
[![NPM version](https://img.shields.io/npm/v/@aws-sdk/aws-protocoltests-ec2/latest.svg)](https://www.npmjs.com/package/@aws-sdk/aws-protocoltests-ec2)
[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/aws-protocoltests-ec2.svg)](https://www.npmjs.com/package/@aws-sdk/aws-protocoltests-ec2)

## Description

Expand All @@ -11,12 +11,12 @@ An EC2 query service that sends query requests and XML responses.

## Installing

To install the this package, simply type add or install @aws-sdk/aws-ec2
To install the this package, simply type add or install @aws-sdk/aws-protocoltests-ec2
using your favorite package manager:

- `npm install @aws-sdk/aws-ec2`
- `yarn add @aws-sdk/aws-ec2`
- `pnpm add @aws-sdk/aws-ec2`
- `npm install @aws-sdk/aws-protocoltests-ec2`
- `yarn add @aws-sdk/aws-protocoltests-ec2`
- `pnpm add @aws-sdk/aws-protocoltests-ec2`

## Getting Started

Expand All @@ -28,12 +28,12 @@ the commands you need, for example `EmptyInputAndEmptyOutputCommand`:

```js
// ES5 example
const { EC2ProtocolClient, EmptyInputAndEmptyOutputCommand } = require("@aws-sdk/aws-ec2");
const { EC2ProtocolClient, EmptyInputAndEmptyOutputCommand } = require("@aws-sdk/aws-protocoltests-ec2");
```

```ts
// ES6+ example
import { EC2ProtocolClient, EmptyInputAndEmptyOutputCommand } from "@aws-sdk/aws-ec2";
import { EC2ProtocolClient, EmptyInputAndEmptyOutputCommand } from "@aws-sdk/aws-protocoltests-ec2";
```

### Usage
Expand Down Expand Up @@ -126,7 +126,7 @@ However, it results in a bigger bundle size and may be dropped in next major ver
on [modular packages in AWS SDK for JavaScript](https://aws.amazon.com/blogs/developer/modular-packages-in-aws-sdk-for-javascript/)

```ts
import * as AWS from "@aws-sdk/aws-ec2";
import * as AWS from "@aws-sdk/aws-protocoltests-ec2";
const client = new AWS.EC2Protocol({ region: "REGION" });

// async/await.
Expand Down Expand Up @@ -193,7 +193,7 @@ visit our [code samples repo](https://github.com/aws-samples/aws-sdk-js-tests).

## Contributing

This client code is generated automatically. Any modifications will be overwritten the next time the `@aws-sdk/aws-ec2` package is updated.
This client code is generated automatically. Any modifications will be overwritten the next time the `@aws-sdk/aws-protocoltests-ec2` package is updated.
To contribute to client you can check our [generate clients scripts](https://github.com/aws/aws-sdk-js-v3/tree/main/scripts/generate-clients).

## License
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@aws-sdk/aws-query",
"description": "@aws-sdk/aws-query client",
"name": "@aws-sdk/aws-protocoltests-ec2",
"description": "@aws-sdk/aws-protocoltests-ec2 client",
"version": "3.38.0",
"scripts": {
"build": "yarn build:cjs && yarn build:es && yarn build:types",
Expand Down Expand Up @@ -87,10 +87,10 @@
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
},
"private": true,
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/aws-query",
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/aws-protocoltests-ec2",
"repository": {
"type": "git",
"url": "https://github.com/aws/aws-sdk-js-v3.git",
"directory": "clients/aws-query"
"directory": "clients/aws-protocoltests-ec2"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ export interface EmptyInputAndEmptyOutputCommandOutput extends EmptyInputAndEmpt
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { EC2ProtocolClient, EmptyInputAndEmptyOutputCommand } from "@aws-sdk/aws-ec2"; // ES Modules import
* // const { EC2ProtocolClient, EmptyInputAndEmptyOutputCommand } = require("@aws-sdk/aws-ec2"); // CommonJS import
* import { EC2ProtocolClient, EmptyInputAndEmptyOutputCommand } from "@aws-sdk/aws-protocoltests-ec2"; // ES Modules import
* // const { EC2ProtocolClient, EmptyInputAndEmptyOutputCommand } = require("@aws-sdk/aws-protocoltests-ec2"); // CommonJS import
* const client = new EC2ProtocolClient(config);
* const command = new EmptyInputAndEmptyOutputCommand(input);
* const response = await client.send(command);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ export interface GreetingWithErrorsCommandOutput extends GreetingWithErrorsOutpu
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { EC2ProtocolClient, GreetingWithErrorsCommand } from "@aws-sdk/aws-ec2"; // ES Modules import
* // const { EC2ProtocolClient, GreetingWithErrorsCommand } = require("@aws-sdk/aws-ec2"); // CommonJS import
* import { EC2ProtocolClient, GreetingWithErrorsCommand } from "@aws-sdk/aws-protocoltests-ec2"; // ES Modules import
* // const { EC2ProtocolClient, GreetingWithErrorsCommand } = require("@aws-sdk/aws-protocoltests-ec2"); // CommonJS import
* const client = new EC2ProtocolClient(config);
* const command = new GreetingWithErrorsCommand(input);
* const response = await client.send(command);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ export interface IgnoresWrappingXmlNameCommandOutput extends IgnoresWrappingXmlN
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { EC2ProtocolClient, IgnoresWrappingXmlNameCommand } from "@aws-sdk/aws-ec2"; // ES Modules import
* // const { EC2ProtocolClient, IgnoresWrappingXmlNameCommand } = require("@aws-sdk/aws-ec2"); // CommonJS import
* import { EC2ProtocolClient, IgnoresWrappingXmlNameCommand } from "@aws-sdk/aws-protocoltests-ec2"; // ES Modules import
* // const { EC2ProtocolClient, IgnoresWrappingXmlNameCommand } = require("@aws-sdk/aws-protocoltests-ec2"); // CommonJS import
* const client = new EC2ProtocolClient(config);
* const command = new IgnoresWrappingXmlNameCommand(input);
* const response = await client.send(command);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ export interface NestedStructuresCommandOutput extends __MetadataBearer {}
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { EC2ProtocolClient, NestedStructuresCommand } from "@aws-sdk/aws-ec2"; // ES Modules import
* // const { EC2ProtocolClient, NestedStructuresCommand } = require("@aws-sdk/aws-ec2"); // CommonJS import
* import { EC2ProtocolClient, NestedStructuresCommand } from "@aws-sdk/aws-protocoltests-ec2"; // ES Modules import
* // const { EC2ProtocolClient, NestedStructuresCommand } = require("@aws-sdk/aws-protocoltests-ec2"); // CommonJS import
* const client = new EC2ProtocolClient(config);
* const command = new NestedStructuresCommand(input);
* const response = await client.send(command);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ export interface NoInputAndOutputCommandOutput extends NoInputAndOutputOutput, _
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { EC2ProtocolClient, NoInputAndOutputCommand } from "@aws-sdk/aws-ec2"; // ES Modules import
* // const { EC2ProtocolClient, NoInputAndOutputCommand } = require("@aws-sdk/aws-ec2"); // CommonJS import
* import { EC2ProtocolClient, NoInputAndOutputCommand } from "@aws-sdk/aws-protocoltests-ec2"; // ES Modules import
* // const { EC2ProtocolClient, NoInputAndOutputCommand } = require("@aws-sdk/aws-protocoltests-ec2"); // CommonJS import
* const client = new EC2ProtocolClient(config);
* const command = new NoInputAndOutputCommand(input);
* const response = await client.send(command);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ export interface QueryIdempotencyTokenAutoFillCommandOutput extends __MetadataBe
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { EC2ProtocolClient, QueryIdempotencyTokenAutoFillCommand } from "@aws-sdk/aws-ec2"; // ES Modules import
* // const { EC2ProtocolClient, QueryIdempotencyTokenAutoFillCommand } = require("@aws-sdk/aws-ec2"); // CommonJS import
* import { EC2ProtocolClient, QueryIdempotencyTokenAutoFillCommand } from "@aws-sdk/aws-protocoltests-ec2"; // ES Modules import
* // const { EC2ProtocolClient, QueryIdempotencyTokenAutoFillCommand } = require("@aws-sdk/aws-protocoltests-ec2"); // CommonJS import
* const client = new EC2ProtocolClient(config);
* const command = new QueryIdempotencyTokenAutoFillCommand(input);
* const response = await client.send(command);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ export interface QueryListsCommandOutput extends __MetadataBearer {}
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { EC2ProtocolClient, QueryListsCommand } from "@aws-sdk/aws-ec2"; // ES Modules import
* // const { EC2ProtocolClient, QueryListsCommand } = require("@aws-sdk/aws-ec2"); // CommonJS import
* import { EC2ProtocolClient, QueryListsCommand } from "@aws-sdk/aws-protocoltests-ec2"; // ES Modules import
* // const { EC2ProtocolClient, QueryListsCommand } = require("@aws-sdk/aws-protocoltests-ec2"); // CommonJS import
* const client = new EC2ProtocolClient(config);
* const command = new QueryListsCommand(input);
* const response = await client.send(command);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ export interface QueryTimestampsCommandOutput extends __MetadataBearer {}
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { EC2ProtocolClient, QueryTimestampsCommand } from "@aws-sdk/aws-ec2"; // ES Modules import
* // const { EC2ProtocolClient, QueryTimestampsCommand } = require("@aws-sdk/aws-ec2"); // CommonJS import
* import { EC2ProtocolClient, QueryTimestampsCommand } from "@aws-sdk/aws-protocoltests-ec2"; // ES Modules import
* // const { EC2ProtocolClient, QueryTimestampsCommand } = require("@aws-sdk/aws-protocoltests-ec2"); // CommonJS import
* const client = new EC2ProtocolClient(config);
* const command = new QueryTimestampsCommand(input);
* const response = await client.send(command);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ export interface RecursiveXmlShapesCommandOutput extends RecursiveXmlShapesOutpu
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { EC2ProtocolClient, RecursiveXmlShapesCommand } from "@aws-sdk/aws-ec2"; // ES Modules import
* // const { EC2ProtocolClient, RecursiveXmlShapesCommand } = require("@aws-sdk/aws-ec2"); // CommonJS import
* import { EC2ProtocolClient, RecursiveXmlShapesCommand } from "@aws-sdk/aws-protocoltests-ec2"; // ES Modules import
* // const { EC2ProtocolClient, RecursiveXmlShapesCommand } = require("@aws-sdk/aws-protocoltests-ec2"); // CommonJS import
* const client = new EC2ProtocolClient(config);
* const command = new RecursiveXmlShapesCommand(input);
* const response = await client.send(command);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ export interface SimpleInputParamsCommandOutput extends __MetadataBearer {}
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { EC2ProtocolClient, SimpleInputParamsCommand } from "@aws-sdk/aws-ec2"; // ES Modules import
* // const { EC2ProtocolClient, SimpleInputParamsCommand } = require("@aws-sdk/aws-ec2"); // CommonJS import
* import { EC2ProtocolClient, SimpleInputParamsCommand } from "@aws-sdk/aws-protocoltests-ec2"; // ES Modules import
* // const { EC2ProtocolClient, SimpleInputParamsCommand } = require("@aws-sdk/aws-protocoltests-ec2"); // CommonJS import
* const client = new EC2ProtocolClient(config);
* const command = new SimpleInputParamsCommand(input);
* const response = await client.send(command);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ export interface XmlBlobsCommandOutput extends XmlBlobsOutput, __MetadataBearer
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { EC2ProtocolClient, XmlBlobsCommand } from "@aws-sdk/aws-ec2"; // ES Modules import
* // const { EC2ProtocolClient, XmlBlobsCommand } = require("@aws-sdk/aws-ec2"); // CommonJS import
* import { EC2ProtocolClient, XmlBlobsCommand } from "@aws-sdk/aws-protocoltests-ec2"; // ES Modules import
* // const { EC2ProtocolClient, XmlBlobsCommand } = require("@aws-sdk/aws-protocoltests-ec2"); // CommonJS import
* const client = new EC2ProtocolClient(config);
* const command = new XmlBlobsCommand(input);
* const response = await client.send(command);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ export interface XmlEnumsCommandOutput extends XmlEnumsOutput, __MetadataBearer
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { EC2ProtocolClient, XmlEnumsCommand } from "@aws-sdk/aws-ec2"; // ES Modules import
* // const { EC2ProtocolClient, XmlEnumsCommand } = require("@aws-sdk/aws-ec2"); // CommonJS import
* import { EC2ProtocolClient, XmlEnumsCommand } from "@aws-sdk/aws-protocoltests-ec2"; // ES Modules import
* // const { EC2ProtocolClient, XmlEnumsCommand } = require("@aws-sdk/aws-protocoltests-ec2"); // CommonJS import
* const client = new EC2ProtocolClient(config);
* const command = new XmlEnumsCommand(input);
* const response = await client.send(command);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ export interface XmlListsCommandOutput extends XmlListsOutput, __MetadataBearer
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { EC2ProtocolClient, XmlListsCommand } from "@aws-sdk/aws-ec2"; // ES Modules import
* // const { EC2ProtocolClient, XmlListsCommand } = require("@aws-sdk/aws-ec2"); // CommonJS import
* import { EC2ProtocolClient, XmlListsCommand } from "@aws-sdk/aws-protocoltests-ec2"; // ES Modules import
* // const { EC2ProtocolClient, XmlListsCommand } = require("@aws-sdk/aws-protocoltests-ec2"); // CommonJS import
* const client = new EC2ProtocolClient(config);
* const command = new XmlListsCommand(input);
* const response = await client.send(command);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ export interface XmlTimestampsCommandOutput extends XmlTimestampsOutput, __Metad
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { EC2ProtocolClient, XmlTimestampsCommand } from "@aws-sdk/aws-ec2"; // ES Modules import
* // const { EC2ProtocolClient, XmlTimestampsCommand } = require("@aws-sdk/aws-ec2"); // CommonJS import
* import { EC2ProtocolClient, XmlTimestampsCommand } from "@aws-sdk/aws-protocoltests-ec2"; // ES Modules import
* // const { EC2ProtocolClient, XmlTimestampsCommand } = require("@aws-sdk/aws-protocoltests-ec2"); // CommonJS import
* const client = new EC2ProtocolClient(config);
* const command = new XmlTimestampsCommand(input);
* const response = await client.send(command);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,3 @@
*.tgz
*.log
package-lock.json

*.d.ts
*.js
*.js.map
Loading