Skip to content

Commit

Permalink
feat: regenerate service clients (#204)
Browse files Browse the repository at this point in the history
* fix(kinesis): generate metadata protocolsettings properly

* fix: export more interfaces in commands
  • Loading branch information
AllanZhengYP committed Mar 1, 2019
1 parent 7bc40aa commit 28d6121
Show file tree
Hide file tree
Showing 189 changed files with 510 additions and 252 deletions.
86 changes: 0 additions & 86 deletions models/kinesis/2013-12-02/service-2.json
Original file line number Diff line number Diff line change
Expand Up @@ -427,22 +427,6 @@
],
"documentation":"<p>Disables server-side encryption for a specified stream. </p> <p>Stopping encryption is an asynchronous operation. Upon receiving the request, Kinesis Data Streams returns immediately and sets the status of the stream to <code>UPDATING</code>. After the update is complete, Kinesis Data Streams sets the status of the stream back to <code>ACTIVE</code>. Stopping encryption normally takes a few seconds to complete, but it can take minutes. You can continue to read and write data to your stream while its status is <code>UPDATING</code>. Once the status of the stream is <code>ACTIVE</code>, records written to the stream are no longer encrypted by Kinesis Data Streams. </p> <p>API Limits: You can successfully disable server-side encryption 25 times in a rolling 24-hour period. </p> <p>Note: It can take up to 5 seconds after the stream is in an <code>ACTIVE</code> status before all records written to the stream are no longer subject to encryption. After you disabled encryption, you can verify that encryption is not applied by inspecting the API response from <code>PutRecord</code> or <code>PutRecords</code>.</p>"
},
"SubscribeToShard":{
"name":"SubscribeToShard",
"http":{
"method":"POST",
"requestUri":"/"
},
"input":{"shape":"SubscribeToShardInput"},
"output":{"shape":"SubscribeToShardOutput"},
"errors":[
{"shape":"ResourceNotFoundException"},
{"shape":"InvalidArgumentException"},
{"shape":"ResourceInUseException"},
{"shape":"LimitExceededException"}
],
"documentation":"<p>Call this operation from your consumer after you call <a>RegisterStreamConsumer</a> to register the consumer with Kinesis Data Streams. If the call succeeds, your consumer starts receiving events of type <a>SubscribeToShardEvent</a> for up to 5 minutes, after which time you need to call <code>SubscribeToShard</code> again to renew the subscription if you want to continue to receive records.</p> <p>You can make one call to <code>SubscribeToShard</code> per second per <code>ConsumerARN</code>. If your call succeeds, and then you call the operation again less than 5 seconds later, the second call generates a <a>ResourceInUseException</a>. If you call the operation a second time more than 5 seconds after the first call succeeds, the second call succeeds and the first connection gets shut down.</p>"
},
"UpdateShardCount":{
"name":"UpdateShardCount",
"http":{
Expand Down Expand Up @@ -1847,76 +1831,6 @@
"UPDATING"
]
},
"SubscribeToShardEvent":{
"type":"structure",
"required":[
"Records",
"ContinuationSequenceNumber",
"MillisBehindLatest"
],
"members":{
"Records":{
"shape":"RecordList",
"documentation":"<p/>"
},
"ContinuationSequenceNumber":{
"shape":"SequenceNumber",
"documentation":"<p>Use this as <code>StartingSequenceNumber</code> in the next call to <a>SubscribeToShard</a>.</p>"
},
"MillisBehindLatest":{
"shape":"MillisBehindLatest",
"documentation":"<p>The number of milliseconds the read records are from the tip of the stream, indicating how far behind current time the consumer is. A value of zero indicates that record processing is caught up, and there are no new records to process at this moment.</p>"
}
},
"documentation":"<p>After you call <a>SubscribeToShard</a>, Kinesis Data Streams sends events of this type to your consumer. </p>",
"event":true
},
"SubscribeToShardEventStream":{
"type":"structure",
"required":["SubscribeToShardEvent"],
"members":{
"SubscribeToShardEvent":{"shape":"SubscribeToShardEvent"},
"ResourceNotFoundException":{"shape":"ResourceNotFoundException"},
"ResourceInUseException":{"shape":"ResourceInUseException"},
"KMSDisabledException":{"shape":"KMSDisabledException"},
"KMSInvalidStateException":{"shape":"KMSInvalidStateException"},
"KMSAccessDeniedException":{"shape":"KMSAccessDeniedException"},
"KMSNotFoundException":{"shape":"KMSNotFoundException"},
"KMSOptInRequired":{"shape":"KMSOptInRequired"},
"KMSThrottlingException":{"shape":"KMSThrottlingException"},
"InternalFailureException":{"shape":"InternalFailureException"}
},
"eventstream":true
},
"SubscribeToShardInput":{
"type":"structure",
"required":[
"ConsumerARN",
"ShardId",
"StartingPosition"
],
"members":{
"ConsumerARN":{
"shape":"ConsumerARN",
"documentation":"<p>For this parameter, use the value you obtained when you called <a>RegisterStreamConsumer</a>.</p>"
},
"ShardId":{
"shape":"ShardId",
"documentation":"<p>The ID of the shard you want to subscribe to. To see a list of all the shards for a given stream, use <a>ListShards</a>.</p>"
},
"StartingPosition":{"shape":"StartingPosition"}
}
},
"SubscribeToShardOutput":{
"type":"structure",
"required":["EventStream"],
"members":{
"EventStream":{
"shape":"SubscribeToShardEventStream",
"documentation":"<p>The event stream that your consumer can use to read records from the shard.</p>"
}
}
},
"Tag":{
"type":"structure",
"required":["Key"],
Expand Down
4 changes: 2 additions & 2 deletions packages/client-codecommit-node/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The AWS SDK is modulized by clients and commends in CommonJS modules. To send a
```javascript
//javascript
const { CodeCommitClient } = require('@aws-sdk/client-codecommit-node/CodeCommitClient');
const { BatchGetRepositoriesCommand } = require('@aws-sdk/client-codecommit-node/BatchGetRepositoriesCommand');
const { BatchGetRepositoriesCommand } = require('@aws-sdk/client-codecommit-node/commands/BatchGetRepositoriesCommand');
```

```javascript
Expand Down Expand Up @@ -111,7 +111,7 @@ 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)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import {OutputTypesUnion} from '../types/OutputTypesUnion';
import {BatchGetRepositoriesInput} from '../types/BatchGetRepositoriesInput';
import {BatchGetRepositoriesOutput} from '../types/BatchGetRepositoriesOutput';
import {CodeCommitResolvedConfiguration} from '../CodeCommitConfiguration';
export * from '../types/BatchGetRepositoriesInput';
export * from '../types/BatchGetRepositoriesOutput';
export * from '../types/BatchGetRepositoriesExceptionsUnion';

export class BatchGetRepositoriesCommand implements __aws_sdk_types.Command<
InputTypesUnion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import {OutputTypesUnion} from '../types/OutputTypesUnion';
import {CreateBranchInput} from '../types/CreateBranchInput';
import {CreateBranchOutput} from '../types/CreateBranchOutput';
import {CodeCommitResolvedConfiguration} from '../CodeCommitConfiguration';
export * from '../types/CreateBranchInput';
export * from '../types/CreateBranchOutput';
export * from '../types/CreateBranchExceptionsUnion';

export class CreateBranchCommand implements __aws_sdk_types.Command<
InputTypesUnion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import {OutputTypesUnion} from '../types/OutputTypesUnion';
import {CreatePullRequestInput} from '../types/CreatePullRequestInput';
import {CreatePullRequestOutput} from '../types/CreatePullRequestOutput';
import {CodeCommitResolvedConfiguration} from '../CodeCommitConfiguration';
export * from '../types/CreatePullRequestInput';
export * from '../types/CreatePullRequestOutput';
export * from '../types/CreatePullRequestExceptionsUnion';

export class CreatePullRequestCommand implements __aws_sdk_types.Command<
InputTypesUnion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import {OutputTypesUnion} from '../types/OutputTypesUnion';
import {CreateRepositoryInput} from '../types/CreateRepositoryInput';
import {CreateRepositoryOutput} from '../types/CreateRepositoryOutput';
import {CodeCommitResolvedConfiguration} from '../CodeCommitConfiguration';
export * from '../types/CreateRepositoryInput';
export * from '../types/CreateRepositoryOutput';
export * from '../types/CreateRepositoryExceptionsUnion';

export class CreateRepositoryCommand implements __aws_sdk_types.Command<
InputTypesUnion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import {OutputTypesUnion} from '../types/OutputTypesUnion';
import {DeleteBranchInput} from '../types/DeleteBranchInput';
import {DeleteBranchOutput} from '../types/DeleteBranchOutput';
import {CodeCommitResolvedConfiguration} from '../CodeCommitConfiguration';
export * from '../types/DeleteBranchInput';
export * from '../types/DeleteBranchOutput';
export * from '../types/DeleteBranchExceptionsUnion';

export class DeleteBranchCommand implements __aws_sdk_types.Command<
InputTypesUnion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import {OutputTypesUnion} from '../types/OutputTypesUnion';
import {DeleteCommentContentInput} from '../types/DeleteCommentContentInput';
import {DeleteCommentContentOutput} from '../types/DeleteCommentContentOutput';
import {CodeCommitResolvedConfiguration} from '../CodeCommitConfiguration';
export * from '../types/DeleteCommentContentInput';
export * from '../types/DeleteCommentContentOutput';
export * from '../types/DeleteCommentContentExceptionsUnion';

export class DeleteCommentContentCommand implements __aws_sdk_types.Command<
InputTypesUnion,
Expand Down
3 changes: 3 additions & 0 deletions packages/client-codecommit-node/commands/DeleteFileCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import {OutputTypesUnion} from '../types/OutputTypesUnion';
import {DeleteFileInput} from '../types/DeleteFileInput';
import {DeleteFileOutput} from '../types/DeleteFileOutput';
import {CodeCommitResolvedConfiguration} from '../CodeCommitConfiguration';
export * from '../types/DeleteFileInput';
export * from '../types/DeleteFileOutput';
export * from '../types/DeleteFileExceptionsUnion';

export class DeleteFileCommand implements __aws_sdk_types.Command<
InputTypesUnion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import {OutputTypesUnion} from '../types/OutputTypesUnion';
import {DeleteRepositoryInput} from '../types/DeleteRepositoryInput';
import {DeleteRepositoryOutput} from '../types/DeleteRepositoryOutput';
import {CodeCommitResolvedConfiguration} from '../CodeCommitConfiguration';
export * from '../types/DeleteRepositoryInput';
export * from '../types/DeleteRepositoryOutput';
export * from '../types/DeleteRepositoryExceptionsUnion';

export class DeleteRepositoryCommand implements __aws_sdk_types.Command<
InputTypesUnion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import {OutputTypesUnion} from '../types/OutputTypesUnion';
import {DescribePullRequestEventsInput} from '../types/DescribePullRequestEventsInput';
import {DescribePullRequestEventsOutput} from '../types/DescribePullRequestEventsOutput';
import {CodeCommitResolvedConfiguration} from '../CodeCommitConfiguration';
export * from '../types/DescribePullRequestEventsInput';
export * from '../types/DescribePullRequestEventsOutput';
export * from '../types/DescribePullRequestEventsExceptionsUnion';

export class DescribePullRequestEventsCommand implements __aws_sdk_types.Command<
InputTypesUnion,
Expand Down
3 changes: 3 additions & 0 deletions packages/client-codecommit-node/commands/GetBlobCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import {OutputTypesUnion} from '../types/OutputTypesUnion';
import {GetBlobInput} from '../types/GetBlobInput';
import {GetBlobOutput} from '../types/GetBlobOutput';
import {CodeCommitResolvedConfiguration} from '../CodeCommitConfiguration';
export * from '../types/GetBlobInput';
export * from '../types/GetBlobOutput';
export * from '../types/GetBlobExceptionsUnion';

export class GetBlobCommand implements __aws_sdk_types.Command<
InputTypesUnion,
Expand Down
3 changes: 3 additions & 0 deletions packages/client-codecommit-node/commands/GetBranchCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import {OutputTypesUnion} from '../types/OutputTypesUnion';
import {GetBranchInput} from '../types/GetBranchInput';
import {GetBranchOutput} from '../types/GetBranchOutput';
import {CodeCommitResolvedConfiguration} from '../CodeCommitConfiguration';
export * from '../types/GetBranchInput';
export * from '../types/GetBranchOutput';
export * from '../types/GetBranchExceptionsUnion';

export class GetBranchCommand implements __aws_sdk_types.Command<
InputTypesUnion,
Expand Down
3 changes: 3 additions & 0 deletions packages/client-codecommit-node/commands/GetCommentCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import {OutputTypesUnion} from '../types/OutputTypesUnion';
import {GetCommentInput} from '../types/GetCommentInput';
import {GetCommentOutput} from '../types/GetCommentOutput';
import {CodeCommitResolvedConfiguration} from '../CodeCommitConfiguration';
export * from '../types/GetCommentInput';
export * from '../types/GetCommentOutput';
export * from '../types/GetCommentExceptionsUnion';

export class GetCommentCommand implements __aws_sdk_types.Command<
InputTypesUnion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import {OutputTypesUnion} from '../types/OutputTypesUnion';
import {GetCommentsForComparedCommitInput} from '../types/GetCommentsForComparedCommitInput';
import {GetCommentsForComparedCommitOutput} from '../types/GetCommentsForComparedCommitOutput';
import {CodeCommitResolvedConfiguration} from '../CodeCommitConfiguration';
export * from '../types/GetCommentsForComparedCommitInput';
export * from '../types/GetCommentsForComparedCommitOutput';
export * from '../types/GetCommentsForComparedCommitExceptionsUnion';

export class GetCommentsForComparedCommitCommand implements __aws_sdk_types.Command<
InputTypesUnion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import {OutputTypesUnion} from '../types/OutputTypesUnion';
import {GetCommentsForPullRequestInput} from '../types/GetCommentsForPullRequestInput';
import {GetCommentsForPullRequestOutput} from '../types/GetCommentsForPullRequestOutput';
import {CodeCommitResolvedConfiguration} from '../CodeCommitConfiguration';
export * from '../types/GetCommentsForPullRequestInput';
export * from '../types/GetCommentsForPullRequestOutput';
export * from '../types/GetCommentsForPullRequestExceptionsUnion';

export class GetCommentsForPullRequestCommand implements __aws_sdk_types.Command<
InputTypesUnion,
Expand Down
3 changes: 3 additions & 0 deletions packages/client-codecommit-node/commands/GetCommitCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import {OutputTypesUnion} from '../types/OutputTypesUnion';
import {GetCommitInput} from '../types/GetCommitInput';
import {GetCommitOutput} from '../types/GetCommitOutput';
import {CodeCommitResolvedConfiguration} from '../CodeCommitConfiguration';
export * from '../types/GetCommitInput';
export * from '../types/GetCommitOutput';
export * from '../types/GetCommitExceptionsUnion';

export class GetCommitCommand implements __aws_sdk_types.Command<
InputTypesUnion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import {OutputTypesUnion} from '../types/OutputTypesUnion';
import {GetDifferencesInput} from '../types/GetDifferencesInput';
import {GetDifferencesOutput} from '../types/GetDifferencesOutput';
import {CodeCommitResolvedConfiguration} from '../CodeCommitConfiguration';
export * from '../types/GetDifferencesInput';
export * from '../types/GetDifferencesOutput';
export * from '../types/GetDifferencesExceptionsUnion';

export class GetDifferencesCommand implements __aws_sdk_types.Command<
InputTypesUnion,
Expand Down
3 changes: 3 additions & 0 deletions packages/client-codecommit-node/commands/GetFileCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import {OutputTypesUnion} from '../types/OutputTypesUnion';
import {GetFileInput} from '../types/GetFileInput';
import {GetFileOutput} from '../types/GetFileOutput';
import {CodeCommitResolvedConfiguration} from '../CodeCommitConfiguration';
export * from '../types/GetFileInput';
export * from '../types/GetFileOutput';
export * from '../types/GetFileExceptionsUnion';

export class GetFileCommand implements __aws_sdk_types.Command<
InputTypesUnion,
Expand Down
3 changes: 3 additions & 0 deletions packages/client-codecommit-node/commands/GetFolderCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import {OutputTypesUnion} from '../types/OutputTypesUnion';
import {GetFolderInput} from '../types/GetFolderInput';
import {GetFolderOutput} from '../types/GetFolderOutput';
import {CodeCommitResolvedConfiguration} from '../CodeCommitConfiguration';
export * from '../types/GetFolderInput';
export * from '../types/GetFolderOutput';
export * from '../types/GetFolderExceptionsUnion';

export class GetFolderCommand implements __aws_sdk_types.Command<
InputTypesUnion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import {OutputTypesUnion} from '../types/OutputTypesUnion';
import {GetMergeConflictsInput} from '../types/GetMergeConflictsInput';
import {GetMergeConflictsOutput} from '../types/GetMergeConflictsOutput';
import {CodeCommitResolvedConfiguration} from '../CodeCommitConfiguration';
export * from '../types/GetMergeConflictsInput';
export * from '../types/GetMergeConflictsOutput';
export * from '../types/GetMergeConflictsExceptionsUnion';

export class GetMergeConflictsCommand implements __aws_sdk_types.Command<
InputTypesUnion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import {OutputTypesUnion} from '../types/OutputTypesUnion';
import {GetPullRequestInput} from '../types/GetPullRequestInput';
import {GetPullRequestOutput} from '../types/GetPullRequestOutput';
import {CodeCommitResolvedConfiguration} from '../CodeCommitConfiguration';
export * from '../types/GetPullRequestInput';
export * from '../types/GetPullRequestOutput';
export * from '../types/GetPullRequestExceptionsUnion';

export class GetPullRequestCommand implements __aws_sdk_types.Command<
InputTypesUnion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import {OutputTypesUnion} from '../types/OutputTypesUnion';
import {GetRepositoryInput} from '../types/GetRepositoryInput';
import {GetRepositoryOutput} from '../types/GetRepositoryOutput';
import {CodeCommitResolvedConfiguration} from '../CodeCommitConfiguration';
export * from '../types/GetRepositoryInput';
export * from '../types/GetRepositoryOutput';
export * from '../types/GetRepositoryExceptionsUnion';

export class GetRepositoryCommand implements __aws_sdk_types.Command<
InputTypesUnion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import {OutputTypesUnion} from '../types/OutputTypesUnion';
import {GetRepositoryTriggersInput} from '../types/GetRepositoryTriggersInput';
import {GetRepositoryTriggersOutput} from '../types/GetRepositoryTriggersOutput';
import {CodeCommitResolvedConfiguration} from '../CodeCommitConfiguration';
export * from '../types/GetRepositoryTriggersInput';
export * from '../types/GetRepositoryTriggersOutput';
export * from '../types/GetRepositoryTriggersExceptionsUnion';

export class GetRepositoryTriggersCommand implements __aws_sdk_types.Command<
InputTypesUnion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import {OutputTypesUnion} from '../types/OutputTypesUnion';
import {ListBranchesInput} from '../types/ListBranchesInput';
import {ListBranchesOutput} from '../types/ListBranchesOutput';
import {CodeCommitResolvedConfiguration} from '../CodeCommitConfiguration';
export * from '../types/ListBranchesInput';
export * from '../types/ListBranchesOutput';
export * from '../types/ListBranchesExceptionsUnion';

export class ListBranchesCommand implements __aws_sdk_types.Command<
InputTypesUnion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import {OutputTypesUnion} from '../types/OutputTypesUnion';
import {ListPullRequestsInput} from '../types/ListPullRequestsInput';
import {ListPullRequestsOutput} from '../types/ListPullRequestsOutput';
import {CodeCommitResolvedConfiguration} from '../CodeCommitConfiguration';
export * from '../types/ListPullRequestsInput';
export * from '../types/ListPullRequestsOutput';
export * from '../types/ListPullRequestsExceptionsUnion';

export class ListPullRequestsCommand implements __aws_sdk_types.Command<
InputTypesUnion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import {OutputTypesUnion} from '../types/OutputTypesUnion';
import {ListRepositoriesInput} from '../types/ListRepositoriesInput';
import {ListRepositoriesOutput} from '../types/ListRepositoriesOutput';
import {CodeCommitResolvedConfiguration} from '../CodeCommitConfiguration';
export * from '../types/ListRepositoriesInput';
export * from '../types/ListRepositoriesOutput';
export * from '../types/ListRepositoriesExceptionsUnion';

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

0 comments on commit 28d6121

Please sign in to comment.