Skip to content

Commit

Permalink
feat(dynamodb): deprecate client-dyanmodb-v2 clients and migrate to c…
Browse files Browse the repository at this point in the history
…lient-dynamodb clients (#201)
  • Loading branch information
AllanZhengYP committed Feb 15, 2019
1 parent 672af0a commit aae3b39
Show file tree
Hide file tree
Showing 938 changed files with 249 additions and 44 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @aws-sdk/client-dynamodb-v2-node
# @aws-sdk/client-dynamodb-browser

## Description

Expand All @@ -9,7 +9,7 @@
To install the this package using NPM, simply type the following into a terminal window:

```
npm install @aws-sdk/client-dynamodb-v2-node
npm install @aws-sdk/client-dynamodb-browser
```

## Getting Started
Expand All @@ -20,14 +20,14 @@ The AWS SDK is modulized by clients and commends in CommonJS modules. To send a

```javascript
//javascript
const { DynamoDBClient } = require('@aws-sdk/client-dynamodb-v2-node/DynamoDBClient');
const { BatchGetItemCommand } = require('@aws-sdk/client-dynamodb-v2-node/BatchGetItemCommand');
const { DynamoDBClient } = require('@aws-sdk/client-dynamodb-browser/DynamoDBClient');
const { BatchGetItemCommand } = require('@aws-sdk/client-dynamodb-browser/commands/BatchGetItemCommand');
```

```javascript
//typescript
const { DynamoDBClient } = import '@aws-sdk/client-dynamodb-v2-node/DynamoDBClient';
const { BatchGetItemCommand } = import '@aws-sdk/client-dynamodb-v2-node/commands/BatchGetItemCommand';
const { DynamoDBClient } = import '@aws-sdk/client-dynamodb-browser/DynamoDBClient';
const { BatchGetItemCommand } = import '@aws-sdk/client-dynamodb-browser/commands/BatchGetItemCommand';
```

### Usage
Expand Down Expand Up @@ -75,7 +75,7 @@ dynamoDB.send(batchGetItemCommand, (err, data) => {
Besides using `send()`, the SDK can also send requests using the simplified callback style in version 2 of the SDK.

```javascript
import * as AWS from '@aws-sdk/@aws-sdk/client-dynamodb-v2-node/DynamoDB';
import * as AWS from '@aws-sdk/@aws-sdk/client-dynamodb-browser/DynamoDB';
const dynamoDB = new AWS.DynamoDB({region: 'region'})
dynamoDB.batchGetItem(params, (err, data) => {
//do something
Expand Down Expand Up @@ -111,13 +111,13 @@ The keys within exceptions are also parsed, you can access them by specifying ex

Please use these community resources for getting help. We use the GitHub issues for tracking bugs and feature requests and have limited bandwidth to address them.

* Ask a question on [StackOverflow](https://stackoverflow.com/) and tag it with `aws-sdk-js`
* Ask a question on [StackOverflow](https://stackoverflow.com/questions/tagged/aws-sdk-js) and tag it with `aws-sdk-js`
* Come join the AWS JavaScript community on [gitter](https://gitter.im/aws/aws-sdk-js-v3)
* If it turns out that you may have found a bug, please [open an issue](https://github.com/aws/aws-sdk-js-v3/issues)

## Contributing

This client code is generated automatically. Any modifications will be overwritten the next time the `@aws-sdk/@aws-sdk/client-dynamodb-v2-node' package is updated. To contribute to SDK you can checkout our [code generator package][].
This client code is generated automatically. Any modifications will be overwritten the next time the `@aws-sdk/@aws-sdk/client-dynamodb-browser' package is updated. To contribute to SDK you can checkout our [code generator package][].

## License

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import {OutputTypesUnion} from '../types/OutputTypesUnion';
import {BatchGetItemInput} from '../types/BatchGetItemInput';
import {BatchGetItemOutput} from '../types/BatchGetItemOutput';
import {DynamoDBResolvedConfiguration} from '../DynamoDBConfiguration';
export * from '../types/BatchGetItemInput';
export * from '../types/BatchGetItemOutput';
export * from '../types/BatchGetItemExceptionsUnion';

export class BatchGetItemCommand implements __aws_sdk_types.Command<
InputTypesUnion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import {OutputTypesUnion} from '../types/OutputTypesUnion';
import {BatchWriteItemInput} from '../types/BatchWriteItemInput';
import {BatchWriteItemOutput} from '../types/BatchWriteItemOutput';
import {DynamoDBResolvedConfiguration} from '../DynamoDBConfiguration';
export * from '../types/BatchWriteItemInput';
export * from '../types/BatchWriteItemOutput';
export * from '../types/BatchWriteItemExceptionsUnion';

export class BatchWriteItemCommand implements __aws_sdk_types.Command<
InputTypesUnion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import {OutputTypesUnion} from '../types/OutputTypesUnion';
import {CreateBackupInput} from '../types/CreateBackupInput';
import {CreateBackupOutput} from '../types/CreateBackupOutput';
import {DynamoDBResolvedConfiguration} from '../DynamoDBConfiguration';
export * from '../types/CreateBackupInput';
export * from '../types/CreateBackupOutput';
export * from '../types/CreateBackupExceptionsUnion';

export class CreateBackupCommand implements __aws_sdk_types.Command<
InputTypesUnion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import {OutputTypesUnion} from '../types/OutputTypesUnion';
import {CreateGlobalTableInput} from '../types/CreateGlobalTableInput';
import {CreateGlobalTableOutput} from '../types/CreateGlobalTableOutput';
import {DynamoDBResolvedConfiguration} from '../DynamoDBConfiguration';
export * from '../types/CreateGlobalTableInput';
export * from '../types/CreateGlobalTableOutput';
export * from '../types/CreateGlobalTableExceptionsUnion';

export class CreateGlobalTableCommand implements __aws_sdk_types.Command<
InputTypesUnion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import {OutputTypesUnion} from '../types/OutputTypesUnion';
import {CreateTableInput} from '../types/CreateTableInput';
import {CreateTableOutput} from '../types/CreateTableOutput';
import {DynamoDBResolvedConfiguration} from '../DynamoDBConfiguration';
export * from '../types/CreateTableInput';
export * from '../types/CreateTableOutput';
export * from '../types/CreateTableExceptionsUnion';

export class CreateTableCommand implements __aws_sdk_types.Command<
InputTypesUnion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import {OutputTypesUnion} from '../types/OutputTypesUnion';
import {DeleteBackupInput} from '../types/DeleteBackupInput';
import {DeleteBackupOutput} from '../types/DeleteBackupOutput';
import {DynamoDBResolvedConfiguration} from '../DynamoDBConfiguration';
export * from '../types/DeleteBackupInput';
export * from '../types/DeleteBackupOutput';
export * from '../types/DeleteBackupExceptionsUnion';

export class DeleteBackupCommand implements __aws_sdk_types.Command<
InputTypesUnion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import {OutputTypesUnion} from '../types/OutputTypesUnion';
import {DeleteItemInput} from '../types/DeleteItemInput';
import {DeleteItemOutput} from '../types/DeleteItemOutput';
import {DynamoDBResolvedConfiguration} from '../DynamoDBConfiguration';
export * from '../types/DeleteItemInput';
export * from '../types/DeleteItemOutput';
export * from '../types/DeleteItemExceptionsUnion';

export class DeleteItemCommand implements __aws_sdk_types.Command<
InputTypesUnion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import {OutputTypesUnion} from '../types/OutputTypesUnion';
import {DeleteTableInput} from '../types/DeleteTableInput';
import {DeleteTableOutput} from '../types/DeleteTableOutput';
import {DynamoDBResolvedConfiguration} from '../DynamoDBConfiguration';
export * from '../types/DeleteTableInput';
export * from '../types/DeleteTableOutput';
export * from '../types/DeleteTableExceptionsUnion';

export class DeleteTableCommand implements __aws_sdk_types.Command<
InputTypesUnion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import {OutputTypesUnion} from '../types/OutputTypesUnion';
import {DescribeBackupInput} from '../types/DescribeBackupInput';
import {DescribeBackupOutput} from '../types/DescribeBackupOutput';
import {DynamoDBResolvedConfiguration} from '../DynamoDBConfiguration';
export * from '../types/DescribeBackupInput';
export * from '../types/DescribeBackupOutput';
export * from '../types/DescribeBackupExceptionsUnion';

export class DescribeBackupCommand implements __aws_sdk_types.Command<
InputTypesUnion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import {OutputTypesUnion} from '../types/OutputTypesUnion';
import {DescribeContinuousBackupsInput} from '../types/DescribeContinuousBackupsInput';
import {DescribeContinuousBackupsOutput} from '../types/DescribeContinuousBackupsOutput';
import {DynamoDBResolvedConfiguration} from '../DynamoDBConfiguration';
export * from '../types/DescribeContinuousBackupsInput';
export * from '../types/DescribeContinuousBackupsOutput';
export * from '../types/DescribeContinuousBackupsExceptionsUnion';

export class DescribeContinuousBackupsCommand implements __aws_sdk_types.Command<
InputTypesUnion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import {OutputTypesUnion} from '../types/OutputTypesUnion';
import {DescribeEndpointsInput} from '../types/DescribeEndpointsInput';
import {DescribeEndpointsOutput} from '../types/DescribeEndpointsOutput';
import {DynamoDBResolvedConfiguration} from '../DynamoDBConfiguration';
export * from '../types/DescribeEndpointsInput';
export * from '../types/DescribeEndpointsOutput';
export * from '../types/DescribeEndpointsExceptionsUnion';

export class DescribeEndpointsCommand implements __aws_sdk_types.Command<
InputTypesUnion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import {OutputTypesUnion} from '../types/OutputTypesUnion';
import {DescribeGlobalTableInput} from '../types/DescribeGlobalTableInput';
import {DescribeGlobalTableOutput} from '../types/DescribeGlobalTableOutput';
import {DynamoDBResolvedConfiguration} from '../DynamoDBConfiguration';
export * from '../types/DescribeGlobalTableInput';
export * from '../types/DescribeGlobalTableOutput';
export * from '../types/DescribeGlobalTableExceptionsUnion';

export class DescribeGlobalTableCommand implements __aws_sdk_types.Command<
InputTypesUnion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import {OutputTypesUnion} from '../types/OutputTypesUnion';
import {DescribeGlobalTableSettingsInput} from '../types/DescribeGlobalTableSettingsInput';
import {DescribeGlobalTableSettingsOutput} from '../types/DescribeGlobalTableSettingsOutput';
import {DynamoDBResolvedConfiguration} from '../DynamoDBConfiguration';
export * from '../types/DescribeGlobalTableSettingsInput';
export * from '../types/DescribeGlobalTableSettingsOutput';
export * from '../types/DescribeGlobalTableSettingsExceptionsUnion';

export class DescribeGlobalTableSettingsCommand implements __aws_sdk_types.Command<
InputTypesUnion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import {OutputTypesUnion} from '../types/OutputTypesUnion';
import {DescribeLimitsInput} from '../types/DescribeLimitsInput';
import {DescribeLimitsOutput} from '../types/DescribeLimitsOutput';
import {DynamoDBResolvedConfiguration} from '../DynamoDBConfiguration';
export * from '../types/DescribeLimitsInput';
export * from '../types/DescribeLimitsOutput';
export * from '../types/DescribeLimitsExceptionsUnion';

export class DescribeLimitsCommand implements __aws_sdk_types.Command<
InputTypesUnion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import {OutputTypesUnion} from '../types/OutputTypesUnion';
import {DescribeTableInput} from '../types/DescribeTableInput';
import {DescribeTableOutput} from '../types/DescribeTableOutput';
import {DynamoDBResolvedConfiguration} from '../DynamoDBConfiguration';
export * from '../types/DescribeTableInput';
export * from '../types/DescribeTableOutput';
export * from '../types/DescribeTableExceptionsUnion';

export class DescribeTableCommand implements __aws_sdk_types.Command<
InputTypesUnion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import {OutputTypesUnion} from '../types/OutputTypesUnion';
import {DescribeTimeToLiveInput} from '../types/DescribeTimeToLiveInput';
import {DescribeTimeToLiveOutput} from '../types/DescribeTimeToLiveOutput';
import {DynamoDBResolvedConfiguration} from '../DynamoDBConfiguration';
export * from '../types/DescribeTimeToLiveInput';
export * from '../types/DescribeTimeToLiveOutput';
export * from '../types/DescribeTimeToLiveExceptionsUnion';

export class DescribeTimeToLiveCommand implements __aws_sdk_types.Command<
InputTypesUnion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import {OutputTypesUnion} from '../types/OutputTypesUnion';
import {GetItemInput} from '../types/GetItemInput';
import {GetItemOutput} from '../types/GetItemOutput';
import {DynamoDBResolvedConfiguration} from '../DynamoDBConfiguration';
export * from '../types/GetItemInput';
export * from '../types/GetItemOutput';
export * from '../types/GetItemExceptionsUnion';

export class GetItemCommand implements __aws_sdk_types.Command<
InputTypesUnion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import {OutputTypesUnion} from '../types/OutputTypesUnion';
import {ListBackupsInput} from '../types/ListBackupsInput';
import {ListBackupsOutput} from '../types/ListBackupsOutput';
import {DynamoDBResolvedConfiguration} from '../DynamoDBConfiguration';
export * from '../types/ListBackupsInput';
export * from '../types/ListBackupsOutput';
export * from '../types/ListBackupsExceptionsUnion';

export class ListBackupsCommand implements __aws_sdk_types.Command<
InputTypesUnion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import {OutputTypesUnion} from '../types/OutputTypesUnion';
import {ListGlobalTablesInput} from '../types/ListGlobalTablesInput';
import {ListGlobalTablesOutput} from '../types/ListGlobalTablesOutput';
import {DynamoDBResolvedConfiguration} from '../DynamoDBConfiguration';
export * from '../types/ListGlobalTablesInput';
export * from '../types/ListGlobalTablesOutput';
export * from '../types/ListGlobalTablesExceptionsUnion';

export class ListGlobalTablesCommand implements __aws_sdk_types.Command<
InputTypesUnion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import {OutputTypesUnion} from '../types/OutputTypesUnion';
import {ListTablesInput} from '../types/ListTablesInput';
import {ListTablesOutput} from '../types/ListTablesOutput';
import {DynamoDBResolvedConfiguration} from '../DynamoDBConfiguration';
export * from '../types/ListTablesInput';
export * from '../types/ListTablesOutput';
export * from '../types/ListTablesExceptionsUnion';

export class ListTablesCommand implements __aws_sdk_types.Command<
InputTypesUnion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import {OutputTypesUnion} from '../types/OutputTypesUnion';
import {ListTagsOfResourceInput} from '../types/ListTagsOfResourceInput';
import {ListTagsOfResourceOutput} from '../types/ListTagsOfResourceOutput';
import {DynamoDBResolvedConfiguration} from '../DynamoDBConfiguration';
export * from '../types/ListTagsOfResourceInput';
export * from '../types/ListTagsOfResourceOutput';
export * from '../types/ListTagsOfResourceExceptionsUnion';

export class ListTagsOfResourceCommand implements __aws_sdk_types.Command<
InputTypesUnion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import {OutputTypesUnion} from '../types/OutputTypesUnion';
import {PutItemInput} from '../types/PutItemInput';
import {PutItemOutput} from '../types/PutItemOutput';
import {DynamoDBResolvedConfiguration} from '../DynamoDBConfiguration';
export * from '../types/PutItemInput';
export * from '../types/PutItemOutput';
export * from '../types/PutItemExceptionsUnion';

export class PutItemCommand implements __aws_sdk_types.Command<
InputTypesUnion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import {OutputTypesUnion} from '../types/OutputTypesUnion';
import {QueryInput} from '../types/QueryInput';
import {QueryOutput} from '../types/QueryOutput';
import {DynamoDBResolvedConfiguration} from '../DynamoDBConfiguration';
export * from '../types/QueryInput';
export * from '../types/QueryOutput';
export * from '../types/QueryExceptionsUnion';

export class QueryCommand implements __aws_sdk_types.Command<
InputTypesUnion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import {OutputTypesUnion} from '../types/OutputTypesUnion';
import {RestoreTableFromBackupInput} from '../types/RestoreTableFromBackupInput';
import {RestoreTableFromBackupOutput} from '../types/RestoreTableFromBackupOutput';
import {DynamoDBResolvedConfiguration} from '../DynamoDBConfiguration';
export * from '../types/RestoreTableFromBackupInput';
export * from '../types/RestoreTableFromBackupOutput';
export * from '../types/RestoreTableFromBackupExceptionsUnion';

export class RestoreTableFromBackupCommand implements __aws_sdk_types.Command<
InputTypesUnion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import {OutputTypesUnion} from '../types/OutputTypesUnion';
import {RestoreTableToPointInTimeInput} from '../types/RestoreTableToPointInTimeInput';
import {RestoreTableToPointInTimeOutput} from '../types/RestoreTableToPointInTimeOutput';
import {DynamoDBResolvedConfiguration} from '../DynamoDBConfiguration';
export * from '../types/RestoreTableToPointInTimeInput';
export * from '../types/RestoreTableToPointInTimeOutput';
export * from '../types/RestoreTableToPointInTimeExceptionsUnion';

export class RestoreTableToPointInTimeCommand implements __aws_sdk_types.Command<
InputTypesUnion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import {OutputTypesUnion} from '../types/OutputTypesUnion';
import {ScanInput} from '../types/ScanInput';
import {ScanOutput} from '../types/ScanOutput';
import {DynamoDBResolvedConfiguration} from '../DynamoDBConfiguration';
export * from '../types/ScanInput';
export * from '../types/ScanOutput';
export * from '../types/ScanExceptionsUnion';

export class ScanCommand implements __aws_sdk_types.Command<
InputTypesUnion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import {OutputTypesUnion} from '../types/OutputTypesUnion';
import {TagResourceInput} from '../types/TagResourceInput';
import {TagResourceOutput} from '../types/TagResourceOutput';
import {DynamoDBResolvedConfiguration} from '../DynamoDBConfiguration';
export * from '../types/TagResourceInput';
export * from '../types/TagResourceOutput';
export * from '../types/TagResourceExceptionsUnion';

export class TagResourceCommand implements __aws_sdk_types.Command<
InputTypesUnion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import {OutputTypesUnion} from '../types/OutputTypesUnion';
import {UntagResourceInput} from '../types/UntagResourceInput';
import {UntagResourceOutput} from '../types/UntagResourceOutput';
import {DynamoDBResolvedConfiguration} from '../DynamoDBConfiguration';
export * from '../types/UntagResourceInput';
export * from '../types/UntagResourceOutput';
export * from '../types/UntagResourceExceptionsUnion';

export class UntagResourceCommand implements __aws_sdk_types.Command<
InputTypesUnion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import {OutputTypesUnion} from '../types/OutputTypesUnion';
import {UpdateContinuousBackupsInput} from '../types/UpdateContinuousBackupsInput';
import {UpdateContinuousBackupsOutput} from '../types/UpdateContinuousBackupsOutput';
import {DynamoDBResolvedConfiguration} from '../DynamoDBConfiguration';
export * from '../types/UpdateContinuousBackupsInput';
export * from '../types/UpdateContinuousBackupsOutput';
export * from '../types/UpdateContinuousBackupsExceptionsUnion';

export class UpdateContinuousBackupsCommand implements __aws_sdk_types.Command<
InputTypesUnion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import {OutputTypesUnion} from '../types/OutputTypesUnion';
import {UpdateGlobalTableInput} from '../types/UpdateGlobalTableInput';
import {UpdateGlobalTableOutput} from '../types/UpdateGlobalTableOutput';
import {DynamoDBResolvedConfiguration} from '../DynamoDBConfiguration';
export * from '../types/UpdateGlobalTableInput';
export * from '../types/UpdateGlobalTableOutput';
export * from '../types/UpdateGlobalTableExceptionsUnion';

export class UpdateGlobalTableCommand implements __aws_sdk_types.Command<
InputTypesUnion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import {OutputTypesUnion} from '../types/OutputTypesUnion';
import {UpdateGlobalTableSettingsInput} from '../types/UpdateGlobalTableSettingsInput';
import {UpdateGlobalTableSettingsOutput} from '../types/UpdateGlobalTableSettingsOutput';
import {DynamoDBResolvedConfiguration} from '../DynamoDBConfiguration';
export * from '../types/UpdateGlobalTableSettingsInput';
export * from '../types/UpdateGlobalTableSettingsOutput';
export * from '../types/UpdateGlobalTableSettingsExceptionsUnion';

export class UpdateGlobalTableSettingsCommand implements __aws_sdk_types.Command<
InputTypesUnion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import {OutputTypesUnion} from '../types/OutputTypesUnion';
import {UpdateItemInput} from '../types/UpdateItemInput';
import {UpdateItemOutput} from '../types/UpdateItemOutput';
import {DynamoDBResolvedConfiguration} from '../DynamoDBConfiguration';
export * from '../types/UpdateItemInput';
export * from '../types/UpdateItemOutput';
export * from '../types/UpdateItemExceptionsUnion';

export class UpdateItemCommand implements __aws_sdk_types.Command<
InputTypesUnion,
Expand Down

0 comments on commit aae3b39

Please sign in to comment.