@aws-sdk/client-kinesis 3.30.0 → 3.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -0
- package/dist/cjs/KinesisClient.js +14 -14
- package/dist/cjs/KinesisClient.js.map +1 -1
- package/dist/cjs/commands/AddTagsToStreamCommand.js +3 -3
- package/dist/cjs/commands/AddTagsToStreamCommand.js.map +1 -1
- package/dist/cjs/commands/CreateStreamCommand.js +3 -3
- package/dist/cjs/commands/CreateStreamCommand.js.map +1 -1
- package/dist/cjs/commands/DecreaseStreamRetentionPeriodCommand.js +3 -3
- package/dist/cjs/commands/DecreaseStreamRetentionPeriodCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteStreamCommand.js +3 -3
- package/dist/cjs/commands/DeleteStreamCommand.js.map +1 -1
- package/dist/cjs/commands/DeregisterStreamConsumerCommand.js +3 -3
- package/dist/cjs/commands/DeregisterStreamConsumerCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeLimitsCommand.js +3 -3
- package/dist/cjs/commands/DescribeLimitsCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeStreamCommand.js +3 -3
- package/dist/cjs/commands/DescribeStreamCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeStreamConsumerCommand.js +3 -3
- package/dist/cjs/commands/DescribeStreamConsumerCommand.js.map +1 -1
- package/dist/cjs/commands/DescribeStreamSummaryCommand.js +3 -3
- package/dist/cjs/commands/DescribeStreamSummaryCommand.js.map +1 -1
- package/dist/cjs/commands/DisableEnhancedMonitoringCommand.js +3 -3
- package/dist/cjs/commands/DisableEnhancedMonitoringCommand.js.map +1 -1
- package/dist/cjs/commands/EnableEnhancedMonitoringCommand.js +3 -3
- package/dist/cjs/commands/EnableEnhancedMonitoringCommand.js.map +1 -1
- package/dist/cjs/commands/GetRecordsCommand.js +3 -3
- package/dist/cjs/commands/GetRecordsCommand.js.map +1 -1
- package/dist/cjs/commands/GetShardIteratorCommand.js +3 -3
- package/dist/cjs/commands/GetShardIteratorCommand.js.map +1 -1
- package/dist/cjs/commands/IncreaseStreamRetentionPeriodCommand.js +3 -3
- package/dist/cjs/commands/IncreaseStreamRetentionPeriodCommand.js.map +1 -1
- package/dist/cjs/commands/ListShardsCommand.js +3 -3
- package/dist/cjs/commands/ListShardsCommand.js.map +1 -1
- package/dist/cjs/commands/ListStreamConsumersCommand.js +3 -3
- package/dist/cjs/commands/ListStreamConsumersCommand.js.map +1 -1
- package/dist/cjs/commands/ListStreamsCommand.js +3 -3
- package/dist/cjs/commands/ListStreamsCommand.js.map +1 -1
- package/dist/cjs/commands/ListTagsForStreamCommand.js +3 -3
- package/dist/cjs/commands/ListTagsForStreamCommand.js.map +1 -1
- package/dist/cjs/commands/MergeShardsCommand.js +3 -3
- package/dist/cjs/commands/MergeShardsCommand.js.map +1 -1
- package/dist/cjs/commands/PutRecordCommand.js +3 -3
- package/dist/cjs/commands/PutRecordCommand.js.map +1 -1
- package/dist/cjs/commands/PutRecordsCommand.js +3 -3
- package/dist/cjs/commands/PutRecordsCommand.js.map +1 -1
- package/dist/cjs/commands/RegisterStreamConsumerCommand.js +3 -3
- package/dist/cjs/commands/RegisterStreamConsumerCommand.js.map +1 -1
- package/dist/cjs/commands/RemoveTagsFromStreamCommand.js +3 -3
- package/dist/cjs/commands/RemoveTagsFromStreamCommand.js.map +1 -1
- package/dist/cjs/commands/SplitShardCommand.js +3 -3
- package/dist/cjs/commands/SplitShardCommand.js.map +1 -1
- package/dist/cjs/commands/StartStreamEncryptionCommand.js +3 -3
- package/dist/cjs/commands/StartStreamEncryptionCommand.js.map +1 -1
- package/dist/cjs/commands/StopStreamEncryptionCommand.js +3 -3
- package/dist/cjs/commands/StopStreamEncryptionCommand.js.map +1 -1
- package/dist/cjs/commands/SubscribeToShardCommand.js +3 -3
- package/dist/cjs/commands/SubscribeToShardCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateShardCountCommand.js +3 -3
- package/dist/cjs/commands/UpdateShardCountCommand.js.map +1 -1
- package/dist/cjs/endpoints.js +1 -1
- package/dist/cjs/endpoints.js.map +1 -1
- package/dist/cjs/index.js +35 -35
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/models/index.js +1 -1
- package/dist/cjs/models/index.js.map +1 -1
- package/dist/cjs/package.json +43 -43
- package/dist/cjs/protocols/Aws_json1_1.js +82 -82
- package/dist/cjs/protocols/Aws_json1_1.js.map +1 -1
- package/dist/cjs/runtimeConfig.browser.js +4 -4
- package/dist/cjs/runtimeConfig.browser.js.map +1 -1
- package/dist/cjs/runtimeConfig.js +8 -8
- package/dist/cjs/runtimeConfig.js.map +1 -1
- package/dist/cjs/runtimeConfig.native.js +1 -1
- package/dist/cjs/runtimeConfig.native.js.map +1 -1
- package/dist/cjs/waiters/waitForStreamExists.js +3 -3
- package/dist/cjs/waiters/waitForStreamExists.js.map +1 -1
- package/dist/cjs/waiters/waitForStreamNotExists.js +3 -3
- package/dist/cjs/waiters/waitForStreamNotExists.js.map +1 -1
- package/dist/es/Kinesis.js +1 -6
- package/dist/es/Kinesis.js.map +1 -1
- package/dist/es/KinesisClient.js +1 -11
- package/dist/es/KinesisClient.js.map +1 -1
- package/dist/es/commands/AddTagsToStreamCommand.js +2 -35
- package/dist/es/commands/AddTagsToStreamCommand.js.map +1 -1
- package/dist/es/commands/CreateStreamCommand.js +2 -67
- package/dist/es/commands/CreateStreamCommand.js.map +1 -1
- package/dist/es/commands/DecreaseStreamRetentionPeriodCommand.js +2 -32
- package/dist/es/commands/DecreaseStreamRetentionPeriodCommand.js.map +1 -1
- package/dist/es/commands/DeleteStreamCommand.js +2 -45
- package/dist/es/commands/DeleteStreamCommand.js.map +1 -1
- package/dist/es/commands/DeregisterStreamConsumerCommand.js +2 -34
- package/dist/es/commands/DeregisterStreamConsumerCommand.js.map +1 -1
- package/dist/es/commands/DescribeLimitsCommand.js +2 -30
- package/dist/es/commands/DescribeLimitsCommand.js.map +1 -1
- package/dist/es/commands/DescribeStreamCommand.js +2 -43
- package/dist/es/commands/DescribeStreamCommand.js.map +1 -1
- package/dist/es/commands/DescribeStreamConsumerCommand.js +2 -34
- package/dist/es/commands/DescribeStreamConsumerCommand.js.map +1 -1
- package/dist/es/commands/DescribeStreamSummaryCommand.js +2 -34
- package/dist/es/commands/DescribeStreamSummaryCommand.js.map +1 -1
- package/dist/es/commands/DisableEnhancedMonitoringCommand.js +2 -27
- package/dist/es/commands/DisableEnhancedMonitoringCommand.js.map +1 -1
- package/dist/es/commands/EnableEnhancedMonitoringCommand.js +2 -27
- package/dist/es/commands/EnableEnhancedMonitoringCommand.js.map +1 -1
- package/dist/es/commands/GetRecordsCommand.js +2 -73
- package/dist/es/commands/GetRecordsCommand.js.map +1 -1
- package/dist/es/commands/GetShardIteratorCommand.js +2 -60
- package/dist/es/commands/GetShardIteratorCommand.js.map +1 -1
- package/dist/es/commands/IncreaseStreamRetentionPeriodCommand.js +2 -35
- package/dist/es/commands/IncreaseStreamRetentionPeriodCommand.js.map +1 -1
- package/dist/es/commands/ListShardsCommand.js +2 -35
- package/dist/es/commands/ListShardsCommand.js.map +1 -1
- package/dist/es/commands/ListStreamConsumersCommand.js +2 -29
- package/dist/es/commands/ListStreamConsumersCommand.js.map +1 -1
- package/dist/es/commands/ListStreamsCommand.js +2 -42
- package/dist/es/commands/ListStreamsCommand.js.map +1 -1
- package/dist/es/commands/ListTagsForStreamCommand.js +2 -28
- package/dist/es/commands/ListTagsForStreamCommand.js.map +1 -1
- package/dist/es/commands/MergeShardsCommand.js +2 -62
- package/dist/es/commands/MergeShardsCommand.js.map +1 -1
- package/dist/es/commands/PutRecordCommand.js +2 -62
- package/dist/es/commands/PutRecordCommand.js.map +1 -1
- package/dist/es/commands/PutRecordsCommand.js +2 -82
- package/dist/es/commands/PutRecordsCommand.js.map +1 -1
- package/dist/es/commands/RegisterStreamConsumerCommand.js +2 -40
- package/dist/es/commands/RegisterStreamConsumerCommand.js.map +1 -1
- package/dist/es/commands/RemoveTagsFromStreamCommand.js +2 -32
- package/dist/es/commands/RemoveTagsFromStreamCommand.js.map +1 -1
- package/dist/es/commands/SplitShardCommand.js +2 -68
- package/dist/es/commands/SplitShardCommand.js.map +1 -1
- package/dist/es/commands/StartStreamEncryptionCommand.js +2 -42
- package/dist/es/commands/StartStreamEncryptionCommand.js.map +1 -1
- package/dist/es/commands/StopStreamEncryptionCommand.js +2 -42
- package/dist/es/commands/StopStreamEncryptionCommand.js.map +1 -1
- package/dist/es/commands/SubscribeToShardCommand.js +2 -48
- package/dist/es/commands/SubscribeToShardCommand.js.map +1 -1
- package/dist/es/commands/UpdateShardCountCommand.js +2 -70
- package/dist/es/commands/UpdateShardCountCommand.js.map +1 -1
- package/dist/es/endpoints.js +1 -1
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/models/models_0.js +0 -225
- package/dist/es/models/models_0.js.map +1 -1
- package/dist/es/package.json +43 -43
- package/dist/es/pagination/ListStreamConsumersPaginator.js +16 -28
- package/dist/es/pagination/ListStreamConsumersPaginator.js.map +1 -1
- package/dist/es/protocols/Aws_json1_1.js +698 -703
- package/dist/es/protocols/Aws_json1_1.js.map +1 -1
- package/dist/es/runtimeConfig.browser.js +0 -3
- package/dist/es/runtimeConfig.browser.js.map +1 -1
- package/dist/es/runtimeConfig.js +0 -3
- package/dist/es/runtimeConfig.js.map +1 -1
- package/dist/es/runtimeConfig.native.js +0 -3
- package/dist/es/runtimeConfig.native.js.map +1 -1
- package/dist/es/runtimeConfig.shared.js +0 -3
- package/dist/es/runtimeConfig.shared.js.map +1 -1
- package/dist/es/waiters/waitForStreamExists.js +8 -17
- package/dist/es/waiters/waitForStreamExists.js.map +1 -1
- package/dist/es/waiters/waitForStreamNotExists.js +8 -17
- package/dist/es/waiters/waitForStreamNotExists.js.map +1 -1
- package/dist/types/runtimeConfig.browser.d.ts +1 -0
- package/dist/types/runtimeConfig.d.ts +1 -0
- package/dist/types/runtimeConfig.native.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.d.ts +1 -0
- package/dist/types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +43 -43
- package/protocols/Aws_json1_1.ts +10 -6
- package/tsconfig.es.json +0 -2
- package/tsconfig.json +3 -5
- package/tsconfig.types.json +8 -0
package/dist/cjs/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-kinesis",
|
|
3
3
|
"description": "AWS SDK for JavaScript Kinesis Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.34.0",
|
|
5
5
|
"scripts": {
|
|
6
|
-
"
|
|
7
|
-
"build-documentation": "yarn remove-documentation && typedoc ./",
|
|
8
|
-
"remove-definitions": "rimraf ./types",
|
|
9
|
-
"remove-dist": "rimraf ./dist",
|
|
10
|
-
"remove-documentation": "rimraf ./docs",
|
|
11
|
-
"test": "exit 0",
|
|
6
|
+
"build": "yarn build:cjs && yarn build:es && yarn build:types",
|
|
12
7
|
"build:cjs": "tsc -p tsconfig.json",
|
|
8
|
+
"build:docs": "yarn clean:docs && typedoc ./",
|
|
13
9
|
"build:es": "tsc -p tsconfig.es.json",
|
|
14
|
-
"build": "
|
|
15
|
-
"
|
|
10
|
+
"build:types": "tsc -p tsconfig.types.json",
|
|
11
|
+
"clean": "yarn clean:dist && yarn clean:docs",
|
|
12
|
+
"clean:dist": "rimraf ./dist",
|
|
13
|
+
"clean:docs": "rimraf ./docs",
|
|
14
|
+
"downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4",
|
|
15
|
+
"test": "exit 0"
|
|
16
16
|
},
|
|
17
17
|
"main": "./dist/cjs/index.js",
|
|
18
18
|
"types": "./dist/types/index.d.ts",
|
|
@@ -27,49 +27,49 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@aws-crypto/sha256-browser": "^1.0.0",
|
|
29
29
|
"@aws-crypto/sha256-js": "^1.0.0",
|
|
30
|
-
"@aws-sdk/client-sts": "3.
|
|
31
|
-
"@aws-sdk/config-resolver": "3.
|
|
32
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
33
|
-
"@aws-sdk/eventstream-serde-browser": "3.
|
|
34
|
-
"@aws-sdk/eventstream-serde-config-resolver": "3.
|
|
35
|
-
"@aws-sdk/eventstream-serde-node": "3.
|
|
36
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
37
|
-
"@aws-sdk/hash-node": "3.
|
|
38
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
39
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
40
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
41
|
-
"@aws-sdk/middleware-logger": "3.
|
|
42
|
-
"@aws-sdk/middleware-retry": "3.
|
|
43
|
-
"@aws-sdk/middleware-serde": "3.
|
|
44
|
-
"@aws-sdk/middleware-signing": "3.
|
|
45
|
-
"@aws-sdk/middleware-stack": "3.
|
|
46
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
47
|
-
"@aws-sdk/node-config-provider": "3.
|
|
48
|
-
"@aws-sdk/node-http-handler": "3.
|
|
49
|
-
"@aws-sdk/protocol-http": "3.
|
|
50
|
-
"@aws-sdk/smithy-client": "3.
|
|
51
|
-
"@aws-sdk/types": "3.
|
|
52
|
-
"@aws-sdk/url-parser": "3.
|
|
53
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
54
|
-
"@aws-sdk/util-base64-node": "3.
|
|
55
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
56
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
57
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
58
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
59
|
-
"@aws-sdk/util-utf8-browser": "3.
|
|
60
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
61
|
-
"@aws-sdk/util-waiter": "3.
|
|
30
|
+
"@aws-sdk/client-sts": "3.34.0",
|
|
31
|
+
"@aws-sdk/config-resolver": "3.34.0",
|
|
32
|
+
"@aws-sdk/credential-provider-node": "3.34.0",
|
|
33
|
+
"@aws-sdk/eventstream-serde-browser": "3.34.0",
|
|
34
|
+
"@aws-sdk/eventstream-serde-config-resolver": "3.34.0",
|
|
35
|
+
"@aws-sdk/eventstream-serde-node": "3.34.0",
|
|
36
|
+
"@aws-sdk/fetch-http-handler": "3.34.0",
|
|
37
|
+
"@aws-sdk/hash-node": "3.34.0",
|
|
38
|
+
"@aws-sdk/invalid-dependency": "3.34.0",
|
|
39
|
+
"@aws-sdk/middleware-content-length": "3.34.0",
|
|
40
|
+
"@aws-sdk/middleware-host-header": "3.34.0",
|
|
41
|
+
"@aws-sdk/middleware-logger": "3.34.0",
|
|
42
|
+
"@aws-sdk/middleware-retry": "3.34.0",
|
|
43
|
+
"@aws-sdk/middleware-serde": "3.34.0",
|
|
44
|
+
"@aws-sdk/middleware-signing": "3.34.0",
|
|
45
|
+
"@aws-sdk/middleware-stack": "3.34.0",
|
|
46
|
+
"@aws-sdk/middleware-user-agent": "3.34.0",
|
|
47
|
+
"@aws-sdk/node-config-provider": "3.34.0",
|
|
48
|
+
"@aws-sdk/node-http-handler": "3.34.0",
|
|
49
|
+
"@aws-sdk/protocol-http": "3.34.0",
|
|
50
|
+
"@aws-sdk/smithy-client": "3.34.0",
|
|
51
|
+
"@aws-sdk/types": "3.34.0",
|
|
52
|
+
"@aws-sdk/url-parser": "3.34.0",
|
|
53
|
+
"@aws-sdk/util-base64-browser": "3.34.0",
|
|
54
|
+
"@aws-sdk/util-base64-node": "3.34.0",
|
|
55
|
+
"@aws-sdk/util-body-length-browser": "3.34.0",
|
|
56
|
+
"@aws-sdk/util-body-length-node": "3.34.0",
|
|
57
|
+
"@aws-sdk/util-user-agent-browser": "3.34.0",
|
|
58
|
+
"@aws-sdk/util-user-agent-node": "3.34.0",
|
|
59
|
+
"@aws-sdk/util-utf8-browser": "3.34.0",
|
|
60
|
+
"@aws-sdk/util-utf8-node": "3.34.0",
|
|
61
|
+
"@aws-sdk/util-waiter": "3.34.0",
|
|
62
62
|
"tslib": "^2.3.0"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@aws-sdk/client-documentation-generator": "3.
|
|
65
|
+
"@aws-sdk/client-documentation-generator": "3.34.0",
|
|
66
66
|
"@types/node": "^12.7.5",
|
|
67
67
|
"downlevel-dts": "0.7.0",
|
|
68
68
|
"jest": "^26.1.0",
|
|
69
69
|
"rimraf": "^3.0.0",
|
|
70
70
|
"ts-jest": "^26.4.1",
|
|
71
71
|
"typedoc": "^0.19.2",
|
|
72
|
-
"typescript": "~4.
|
|
72
|
+
"typescript": "~4.3.5"
|
|
73
73
|
},
|
|
74
74
|
"engines": {
|
|
75
75
|
"node": ">=10.0.0"
|
|
@@ -2741,7 +2741,7 @@ const deserializeAws_json1_1ChildShard = (output, context) => {
|
|
|
2741
2741
|
ParentShards: output.ParentShards !== undefined && output.ParentShards !== null
|
|
2742
2742
|
? deserializeAws_json1_1ShardIdList(output.ParentShards, context)
|
|
2743
2743
|
: undefined,
|
|
2744
|
-
ShardId:
|
|
2744
|
+
ShardId: smithy_client_1.expectString(output.ShardId),
|
|
2745
2745
|
};
|
|
2746
2746
|
};
|
|
2747
2747
|
const deserializeAws_json1_1ChildShardList = (output, context) => {
|
|
@@ -2756,23 +2756,23 @@ const deserializeAws_json1_1ChildShardList = (output, context) => {
|
|
|
2756
2756
|
};
|
|
2757
2757
|
const deserializeAws_json1_1Consumer = (output, context) => {
|
|
2758
2758
|
return {
|
|
2759
|
-
ConsumerARN:
|
|
2759
|
+
ConsumerARN: smithy_client_1.expectString(output.ConsumerARN),
|
|
2760
2760
|
ConsumerCreationTimestamp: output.ConsumerCreationTimestamp !== undefined && output.ConsumerCreationTimestamp !== null
|
|
2761
|
-
?
|
|
2761
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.ConsumerCreationTimestamp)))
|
|
2762
2762
|
: undefined,
|
|
2763
|
-
ConsumerName:
|
|
2764
|
-
ConsumerStatus:
|
|
2763
|
+
ConsumerName: smithy_client_1.expectString(output.ConsumerName),
|
|
2764
|
+
ConsumerStatus: smithy_client_1.expectString(output.ConsumerStatus),
|
|
2765
2765
|
};
|
|
2766
2766
|
};
|
|
2767
2767
|
const deserializeAws_json1_1ConsumerDescription = (output, context) => {
|
|
2768
2768
|
return {
|
|
2769
|
-
ConsumerARN:
|
|
2769
|
+
ConsumerARN: smithy_client_1.expectString(output.ConsumerARN),
|
|
2770
2770
|
ConsumerCreationTimestamp: output.ConsumerCreationTimestamp !== undefined && output.ConsumerCreationTimestamp !== null
|
|
2771
|
-
?
|
|
2771
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.ConsumerCreationTimestamp)))
|
|
2772
2772
|
: undefined,
|
|
2773
|
-
ConsumerName:
|
|
2774
|
-
ConsumerStatus:
|
|
2775
|
-
StreamARN:
|
|
2773
|
+
ConsumerName: smithy_client_1.expectString(output.ConsumerName),
|
|
2774
|
+
ConsumerStatus: smithy_client_1.expectString(output.ConsumerStatus),
|
|
2775
|
+
StreamARN: smithy_client_1.expectString(output.StreamARN),
|
|
2776
2776
|
};
|
|
2777
2777
|
};
|
|
2778
2778
|
const deserializeAws_json1_1ConsumerList = (output, context) => {
|
|
@@ -2787,8 +2787,8 @@ const deserializeAws_json1_1ConsumerList = (output, context) => {
|
|
|
2787
2787
|
};
|
|
2788
2788
|
const deserializeAws_json1_1DescribeLimitsOutput = (output, context) => {
|
|
2789
2789
|
return {
|
|
2790
|
-
OpenShardCount:
|
|
2791
|
-
ShardLimit:
|
|
2790
|
+
OpenShardCount: smithy_client_1.expectInt32(output.OpenShardCount),
|
|
2791
|
+
ShardLimit: smithy_client_1.expectInt32(output.ShardLimit),
|
|
2792
2792
|
};
|
|
2793
2793
|
};
|
|
2794
2794
|
const deserializeAws_json1_1DescribeStreamConsumerOutput = (output, context) => {
|
|
@@ -2837,17 +2837,17 @@ const deserializeAws_json1_1EnhancedMonitoringOutput = (output, context) => {
|
|
|
2837
2837
|
DesiredShardLevelMetrics: output.DesiredShardLevelMetrics !== undefined && output.DesiredShardLevelMetrics !== null
|
|
2838
2838
|
? deserializeAws_json1_1MetricsNameList(output.DesiredShardLevelMetrics, context)
|
|
2839
2839
|
: undefined,
|
|
2840
|
-
StreamName:
|
|
2840
|
+
StreamName: smithy_client_1.expectString(output.StreamName),
|
|
2841
2841
|
};
|
|
2842
2842
|
};
|
|
2843
2843
|
const deserializeAws_json1_1ExpiredIteratorException = (output, context) => {
|
|
2844
2844
|
return {
|
|
2845
|
-
message:
|
|
2845
|
+
message: smithy_client_1.expectString(output.message),
|
|
2846
2846
|
};
|
|
2847
2847
|
};
|
|
2848
2848
|
const deserializeAws_json1_1ExpiredNextTokenException = (output, context) => {
|
|
2849
2849
|
return {
|
|
2850
|
-
message:
|
|
2850
|
+
message: smithy_client_1.expectString(output.message),
|
|
2851
2851
|
};
|
|
2852
2852
|
};
|
|
2853
2853
|
const deserializeAws_json1_1GetRecordsOutput = (output, context) => {
|
|
@@ -2855,8 +2855,8 @@ const deserializeAws_json1_1GetRecordsOutput = (output, context) => {
|
|
|
2855
2855
|
ChildShards: output.ChildShards !== undefined && output.ChildShards !== null
|
|
2856
2856
|
? deserializeAws_json1_1ChildShardList(output.ChildShards, context)
|
|
2857
2857
|
: undefined,
|
|
2858
|
-
MillisBehindLatest:
|
|
2859
|
-
NextShardIterator:
|
|
2858
|
+
MillisBehindLatest: smithy_client_1.expectLong(output.MillisBehindLatest),
|
|
2859
|
+
NextShardIterator: smithy_client_1.expectString(output.NextShardIterator),
|
|
2860
2860
|
Records: output.Records !== undefined && output.Records !== null
|
|
2861
2861
|
? deserializeAws_json1_1RecordList(output.Records, context)
|
|
2862
2862
|
: undefined,
|
|
@@ -2864,63 +2864,63 @@ const deserializeAws_json1_1GetRecordsOutput = (output, context) => {
|
|
|
2864
2864
|
};
|
|
2865
2865
|
const deserializeAws_json1_1GetShardIteratorOutput = (output, context) => {
|
|
2866
2866
|
return {
|
|
2867
|
-
ShardIterator:
|
|
2867
|
+
ShardIterator: smithy_client_1.expectString(output.ShardIterator),
|
|
2868
2868
|
};
|
|
2869
2869
|
};
|
|
2870
2870
|
const deserializeAws_json1_1HashKeyRange = (output, context) => {
|
|
2871
2871
|
return {
|
|
2872
|
-
EndingHashKey:
|
|
2873
|
-
StartingHashKey:
|
|
2872
|
+
EndingHashKey: smithy_client_1.expectString(output.EndingHashKey),
|
|
2873
|
+
StartingHashKey: smithy_client_1.expectString(output.StartingHashKey),
|
|
2874
2874
|
};
|
|
2875
2875
|
};
|
|
2876
2876
|
const deserializeAws_json1_1InternalFailureException = (output, context) => {
|
|
2877
2877
|
return {
|
|
2878
|
-
message:
|
|
2878
|
+
message: smithy_client_1.expectString(output.message),
|
|
2879
2879
|
};
|
|
2880
2880
|
};
|
|
2881
2881
|
const deserializeAws_json1_1InvalidArgumentException = (output, context) => {
|
|
2882
2882
|
return {
|
|
2883
|
-
message:
|
|
2883
|
+
message: smithy_client_1.expectString(output.message),
|
|
2884
2884
|
};
|
|
2885
2885
|
};
|
|
2886
2886
|
const deserializeAws_json1_1KMSAccessDeniedException = (output, context) => {
|
|
2887
2887
|
return {
|
|
2888
|
-
message:
|
|
2888
|
+
message: smithy_client_1.expectString(output.message),
|
|
2889
2889
|
};
|
|
2890
2890
|
};
|
|
2891
2891
|
const deserializeAws_json1_1KMSDisabledException = (output, context) => {
|
|
2892
2892
|
return {
|
|
2893
|
-
message:
|
|
2893
|
+
message: smithy_client_1.expectString(output.message),
|
|
2894
2894
|
};
|
|
2895
2895
|
};
|
|
2896
2896
|
const deserializeAws_json1_1KMSInvalidStateException = (output, context) => {
|
|
2897
2897
|
return {
|
|
2898
|
-
message:
|
|
2898
|
+
message: smithy_client_1.expectString(output.message),
|
|
2899
2899
|
};
|
|
2900
2900
|
};
|
|
2901
2901
|
const deserializeAws_json1_1KMSNotFoundException = (output, context) => {
|
|
2902
2902
|
return {
|
|
2903
|
-
message:
|
|
2903
|
+
message: smithy_client_1.expectString(output.message),
|
|
2904
2904
|
};
|
|
2905
2905
|
};
|
|
2906
2906
|
const deserializeAws_json1_1KMSOptInRequired = (output, context) => {
|
|
2907
2907
|
return {
|
|
2908
|
-
message:
|
|
2908
|
+
message: smithy_client_1.expectString(output.message),
|
|
2909
2909
|
};
|
|
2910
2910
|
};
|
|
2911
2911
|
const deserializeAws_json1_1KMSThrottlingException = (output, context) => {
|
|
2912
2912
|
return {
|
|
2913
|
-
message:
|
|
2913
|
+
message: smithy_client_1.expectString(output.message),
|
|
2914
2914
|
};
|
|
2915
2915
|
};
|
|
2916
2916
|
const deserializeAws_json1_1LimitExceededException = (output, context) => {
|
|
2917
2917
|
return {
|
|
2918
|
-
message:
|
|
2918
|
+
message: smithy_client_1.expectString(output.message),
|
|
2919
2919
|
};
|
|
2920
2920
|
};
|
|
2921
2921
|
const deserializeAws_json1_1ListShardsOutput = (output, context) => {
|
|
2922
2922
|
return {
|
|
2923
|
-
NextToken:
|
|
2923
|
+
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
2924
2924
|
Shards: output.Shards !== undefined && output.Shards !== null
|
|
2925
2925
|
? deserializeAws_json1_1ShardList(output.Shards, context)
|
|
2926
2926
|
: undefined,
|
|
@@ -2931,12 +2931,12 @@ const deserializeAws_json1_1ListStreamConsumersOutput = (output, context) => {
|
|
|
2931
2931
|
Consumers: output.Consumers !== undefined && output.Consumers !== null
|
|
2932
2932
|
? deserializeAws_json1_1ConsumerList(output.Consumers, context)
|
|
2933
2933
|
: undefined,
|
|
2934
|
-
NextToken:
|
|
2934
|
+
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
2935
2935
|
};
|
|
2936
2936
|
};
|
|
2937
2937
|
const deserializeAws_json1_1ListStreamsOutput = (output, context) => {
|
|
2938
2938
|
return {
|
|
2939
|
-
HasMoreStreams:
|
|
2939
|
+
HasMoreStreams: smithy_client_1.expectBoolean(output.HasMoreStreams),
|
|
2940
2940
|
StreamNames: output.StreamNames !== undefined && output.StreamNames !== null
|
|
2941
2941
|
? deserializeAws_json1_1StreamNameList(output.StreamNames, context)
|
|
2942
2942
|
: undefined,
|
|
@@ -2944,7 +2944,7 @@ const deserializeAws_json1_1ListStreamsOutput = (output, context) => {
|
|
|
2944
2944
|
};
|
|
2945
2945
|
const deserializeAws_json1_1ListTagsForStreamOutput = (output, context) => {
|
|
2946
2946
|
return {
|
|
2947
|
-
HasMoreTags:
|
|
2947
|
+
HasMoreTags: smithy_client_1.expectBoolean(output.HasMoreTags),
|
|
2948
2948
|
Tags: output.Tags !== undefined && output.Tags !== null
|
|
2949
2949
|
? deserializeAws_json1_1TagList(output.Tags, context)
|
|
2950
2950
|
: undefined,
|
|
@@ -2957,25 +2957,25 @@ const deserializeAws_json1_1MetricsNameList = (output, context) => {
|
|
|
2957
2957
|
if (entry === null) {
|
|
2958
2958
|
return null;
|
|
2959
2959
|
}
|
|
2960
|
-
return
|
|
2960
|
+
return smithy_client_1.expectString(entry);
|
|
2961
2961
|
});
|
|
2962
2962
|
};
|
|
2963
2963
|
const deserializeAws_json1_1ProvisionedThroughputExceededException = (output, context) => {
|
|
2964
2964
|
return {
|
|
2965
|
-
message:
|
|
2965
|
+
message: smithy_client_1.expectString(output.message),
|
|
2966
2966
|
};
|
|
2967
2967
|
};
|
|
2968
2968
|
const deserializeAws_json1_1PutRecordOutput = (output, context) => {
|
|
2969
2969
|
return {
|
|
2970
|
-
EncryptionType:
|
|
2971
|
-
SequenceNumber:
|
|
2972
|
-
ShardId:
|
|
2970
|
+
EncryptionType: smithy_client_1.expectString(output.EncryptionType),
|
|
2971
|
+
SequenceNumber: smithy_client_1.expectString(output.SequenceNumber),
|
|
2972
|
+
ShardId: smithy_client_1.expectString(output.ShardId),
|
|
2973
2973
|
};
|
|
2974
2974
|
};
|
|
2975
2975
|
const deserializeAws_json1_1PutRecordsOutput = (output, context) => {
|
|
2976
2976
|
return {
|
|
2977
|
-
EncryptionType:
|
|
2978
|
-
FailedRecordCount:
|
|
2977
|
+
EncryptionType: smithy_client_1.expectString(output.EncryptionType),
|
|
2978
|
+
FailedRecordCount: smithy_client_1.expectInt32(output.FailedRecordCount),
|
|
2979
2979
|
Records: output.Records !== undefined && output.Records !== null
|
|
2980
2980
|
? deserializeAws_json1_1PutRecordsResultEntryList(output.Records, context)
|
|
2981
2981
|
: undefined,
|
|
@@ -2983,10 +2983,10 @@ const deserializeAws_json1_1PutRecordsOutput = (output, context) => {
|
|
|
2983
2983
|
};
|
|
2984
2984
|
const deserializeAws_json1_1PutRecordsResultEntry = (output, context) => {
|
|
2985
2985
|
return {
|
|
2986
|
-
ErrorCode:
|
|
2987
|
-
ErrorMessage:
|
|
2988
|
-
SequenceNumber:
|
|
2989
|
-
ShardId:
|
|
2986
|
+
ErrorCode: smithy_client_1.expectString(output.ErrorCode),
|
|
2987
|
+
ErrorMessage: smithy_client_1.expectString(output.ErrorMessage),
|
|
2988
|
+
SequenceNumber: smithy_client_1.expectString(output.SequenceNumber),
|
|
2989
|
+
ShardId: smithy_client_1.expectString(output.ShardId),
|
|
2990
2990
|
};
|
|
2991
2991
|
};
|
|
2992
2992
|
const deserializeAws_json1_1PutRecordsResultEntryList = (output, context) => {
|
|
@@ -3002,12 +3002,12 @@ const deserializeAws_json1_1PutRecordsResultEntryList = (output, context) => {
|
|
|
3002
3002
|
const deserializeAws_json1_1_Record = (output, context) => {
|
|
3003
3003
|
return {
|
|
3004
3004
|
ApproximateArrivalTimestamp: output.ApproximateArrivalTimestamp !== undefined && output.ApproximateArrivalTimestamp !== null
|
|
3005
|
-
?
|
|
3005
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.ApproximateArrivalTimestamp)))
|
|
3006
3006
|
: undefined,
|
|
3007
3007
|
Data: output.Data !== undefined && output.Data !== null ? context.base64Decoder(output.Data) : undefined,
|
|
3008
|
-
EncryptionType:
|
|
3009
|
-
PartitionKey:
|
|
3010
|
-
SequenceNumber:
|
|
3008
|
+
EncryptionType: smithy_client_1.expectString(output.EncryptionType),
|
|
3009
|
+
PartitionKey: smithy_client_1.expectString(output.PartitionKey),
|
|
3010
|
+
SequenceNumber: smithy_client_1.expectString(output.SequenceNumber),
|
|
3011
3011
|
};
|
|
3012
3012
|
};
|
|
3013
3013
|
const deserializeAws_json1_1RecordList = (output, context) => {
|
|
@@ -3029,31 +3029,31 @@ const deserializeAws_json1_1RegisterStreamConsumerOutput = (output, context) =>
|
|
|
3029
3029
|
};
|
|
3030
3030
|
const deserializeAws_json1_1ResourceInUseException = (output, context) => {
|
|
3031
3031
|
return {
|
|
3032
|
-
message:
|
|
3032
|
+
message: smithy_client_1.expectString(output.message),
|
|
3033
3033
|
};
|
|
3034
3034
|
};
|
|
3035
3035
|
const deserializeAws_json1_1ResourceNotFoundException = (output, context) => {
|
|
3036
3036
|
return {
|
|
3037
|
-
message:
|
|
3037
|
+
message: smithy_client_1.expectString(output.message),
|
|
3038
3038
|
};
|
|
3039
3039
|
};
|
|
3040
3040
|
const deserializeAws_json1_1SequenceNumberRange = (output, context) => {
|
|
3041
3041
|
return {
|
|
3042
|
-
EndingSequenceNumber:
|
|
3043
|
-
StartingSequenceNumber:
|
|
3042
|
+
EndingSequenceNumber: smithy_client_1.expectString(output.EndingSequenceNumber),
|
|
3043
|
+
StartingSequenceNumber: smithy_client_1.expectString(output.StartingSequenceNumber),
|
|
3044
3044
|
};
|
|
3045
3045
|
};
|
|
3046
3046
|
const deserializeAws_json1_1Shard = (output, context) => {
|
|
3047
3047
|
return {
|
|
3048
|
-
AdjacentParentShardId:
|
|
3048
|
+
AdjacentParentShardId: smithy_client_1.expectString(output.AdjacentParentShardId),
|
|
3049
3049
|
HashKeyRange: output.HashKeyRange !== undefined && output.HashKeyRange !== null
|
|
3050
3050
|
? deserializeAws_json1_1HashKeyRange(output.HashKeyRange, context)
|
|
3051
3051
|
: undefined,
|
|
3052
|
-
ParentShardId:
|
|
3052
|
+
ParentShardId: smithy_client_1.expectString(output.ParentShardId),
|
|
3053
3053
|
SequenceNumberRange: output.SequenceNumberRange !== undefined && output.SequenceNumberRange !== null
|
|
3054
3054
|
? deserializeAws_json1_1SequenceNumberRange(output.SequenceNumberRange, context)
|
|
3055
3055
|
: undefined,
|
|
3056
|
-
ShardId:
|
|
3056
|
+
ShardId: smithy_client_1.expectString(output.ShardId),
|
|
3057
3057
|
};
|
|
3058
3058
|
};
|
|
3059
3059
|
const deserializeAws_json1_1ShardIdList = (output, context) => {
|
|
@@ -3063,7 +3063,7 @@ const deserializeAws_json1_1ShardIdList = (output, context) => {
|
|
|
3063
3063
|
if (entry === null) {
|
|
3064
3064
|
return null;
|
|
3065
3065
|
}
|
|
3066
|
-
return
|
|
3066
|
+
return smithy_client_1.expectString(entry);
|
|
3067
3067
|
});
|
|
3068
3068
|
};
|
|
3069
3069
|
const deserializeAws_json1_1ShardList = (output, context) => {
|
|
@@ -3078,40 +3078,40 @@ const deserializeAws_json1_1ShardList = (output, context) => {
|
|
|
3078
3078
|
};
|
|
3079
3079
|
const deserializeAws_json1_1StreamDescription = (output, context) => {
|
|
3080
3080
|
return {
|
|
3081
|
-
EncryptionType:
|
|
3081
|
+
EncryptionType: smithy_client_1.expectString(output.EncryptionType),
|
|
3082
3082
|
EnhancedMonitoring: output.EnhancedMonitoring !== undefined && output.EnhancedMonitoring !== null
|
|
3083
3083
|
? deserializeAws_json1_1EnhancedMonitoringList(output.EnhancedMonitoring, context)
|
|
3084
3084
|
: undefined,
|
|
3085
|
-
HasMoreShards:
|
|
3086
|
-
KeyId:
|
|
3087
|
-
RetentionPeriodHours:
|
|
3085
|
+
HasMoreShards: smithy_client_1.expectBoolean(output.HasMoreShards),
|
|
3086
|
+
KeyId: smithy_client_1.expectString(output.KeyId),
|
|
3087
|
+
RetentionPeriodHours: smithy_client_1.expectInt32(output.RetentionPeriodHours),
|
|
3088
3088
|
Shards: output.Shards !== undefined && output.Shards !== null
|
|
3089
3089
|
? deserializeAws_json1_1ShardList(output.Shards, context)
|
|
3090
3090
|
: undefined,
|
|
3091
|
-
StreamARN:
|
|
3091
|
+
StreamARN: smithy_client_1.expectString(output.StreamARN),
|
|
3092
3092
|
StreamCreationTimestamp: output.StreamCreationTimestamp !== undefined && output.StreamCreationTimestamp !== null
|
|
3093
|
-
?
|
|
3093
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.StreamCreationTimestamp)))
|
|
3094
3094
|
: undefined,
|
|
3095
|
-
StreamName:
|
|
3096
|
-
StreamStatus:
|
|
3095
|
+
StreamName: smithy_client_1.expectString(output.StreamName),
|
|
3096
|
+
StreamStatus: smithy_client_1.expectString(output.StreamStatus),
|
|
3097
3097
|
};
|
|
3098
3098
|
};
|
|
3099
3099
|
const deserializeAws_json1_1StreamDescriptionSummary = (output, context) => {
|
|
3100
3100
|
return {
|
|
3101
|
-
ConsumerCount:
|
|
3102
|
-
EncryptionType:
|
|
3101
|
+
ConsumerCount: smithy_client_1.expectInt32(output.ConsumerCount),
|
|
3102
|
+
EncryptionType: smithy_client_1.expectString(output.EncryptionType),
|
|
3103
3103
|
EnhancedMonitoring: output.EnhancedMonitoring !== undefined && output.EnhancedMonitoring !== null
|
|
3104
3104
|
? deserializeAws_json1_1EnhancedMonitoringList(output.EnhancedMonitoring, context)
|
|
3105
3105
|
: undefined,
|
|
3106
|
-
KeyId:
|
|
3107
|
-
OpenShardCount:
|
|
3108
|
-
RetentionPeriodHours:
|
|
3109
|
-
StreamARN:
|
|
3106
|
+
KeyId: smithy_client_1.expectString(output.KeyId),
|
|
3107
|
+
OpenShardCount: smithy_client_1.expectInt32(output.OpenShardCount),
|
|
3108
|
+
RetentionPeriodHours: smithy_client_1.expectInt32(output.RetentionPeriodHours),
|
|
3109
|
+
StreamARN: smithy_client_1.expectString(output.StreamARN),
|
|
3110
3110
|
StreamCreationTimestamp: output.StreamCreationTimestamp !== undefined && output.StreamCreationTimestamp !== null
|
|
3111
|
-
?
|
|
3111
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.StreamCreationTimestamp)))
|
|
3112
3112
|
: undefined,
|
|
3113
|
-
StreamName:
|
|
3114
|
-
StreamStatus:
|
|
3113
|
+
StreamName: smithy_client_1.expectString(output.StreamName),
|
|
3114
|
+
StreamStatus: smithy_client_1.expectString(output.StreamStatus),
|
|
3115
3115
|
};
|
|
3116
3116
|
};
|
|
3117
3117
|
const deserializeAws_json1_1StreamNameList = (output, context) => {
|
|
@@ -3121,7 +3121,7 @@ const deserializeAws_json1_1StreamNameList = (output, context) => {
|
|
|
3121
3121
|
if (entry === null) {
|
|
3122
3122
|
return null;
|
|
3123
3123
|
}
|
|
3124
|
-
return
|
|
3124
|
+
return smithy_client_1.expectString(entry);
|
|
3125
3125
|
});
|
|
3126
3126
|
};
|
|
3127
3127
|
const deserializeAws_json1_1SubscribeToShardEvent = (output, context) => {
|
|
@@ -3129,8 +3129,8 @@ const deserializeAws_json1_1SubscribeToShardEvent = (output, context) => {
|
|
|
3129
3129
|
ChildShards: output.ChildShards !== undefined && output.ChildShards !== null
|
|
3130
3130
|
? deserializeAws_json1_1ChildShardList(output.ChildShards, context)
|
|
3131
3131
|
: undefined,
|
|
3132
|
-
ContinuationSequenceNumber:
|
|
3133
|
-
MillisBehindLatest:
|
|
3132
|
+
ContinuationSequenceNumber: smithy_client_1.expectString(output.ContinuationSequenceNumber),
|
|
3133
|
+
MillisBehindLatest: smithy_client_1.expectLong(output.MillisBehindLatest),
|
|
3134
3134
|
Records: output.Records !== undefined && output.Records !== null
|
|
3135
3135
|
? deserializeAws_json1_1RecordList(output.Records, context)
|
|
3136
3136
|
: undefined,
|
|
@@ -3192,14 +3192,14 @@ const deserializeAws_json1_1SubscribeToShardEventStream = (output, context) => {
|
|
|
3192
3192
|
const deserializeAws_json1_1SubscribeToShardOutput = (output, context) => {
|
|
3193
3193
|
return {
|
|
3194
3194
|
EventStream: output.EventStream !== undefined && output.EventStream !== null
|
|
3195
|
-
? deserializeAws_json1_1SubscribeToShardEventStream(output.EventStream, context)
|
|
3195
|
+
? deserializeAws_json1_1SubscribeToShardEventStream(smithy_client_1.expectUnion(output.EventStream), context)
|
|
3196
3196
|
: undefined,
|
|
3197
3197
|
};
|
|
3198
3198
|
};
|
|
3199
3199
|
const deserializeAws_json1_1Tag = (output, context) => {
|
|
3200
3200
|
return {
|
|
3201
|
-
Key:
|
|
3202
|
-
Value:
|
|
3201
|
+
Key: smithy_client_1.expectString(output.Key),
|
|
3202
|
+
Value: smithy_client_1.expectString(output.Value),
|
|
3203
3203
|
};
|
|
3204
3204
|
};
|
|
3205
3205
|
const deserializeAws_json1_1TagList = (output, context) => {
|
|
@@ -3214,9 +3214,9 @@ const deserializeAws_json1_1TagList = (output, context) => {
|
|
|
3214
3214
|
};
|
|
3215
3215
|
const deserializeAws_json1_1UpdateShardCountOutput = (output, context) => {
|
|
3216
3216
|
return {
|
|
3217
|
-
CurrentShardCount:
|
|
3218
|
-
StreamName:
|
|
3219
|
-
TargetShardCount:
|
|
3217
|
+
CurrentShardCount: smithy_client_1.expectInt32(output.CurrentShardCount),
|
|
3218
|
+
StreamName: smithy_client_1.expectString(output.StreamName),
|
|
3219
|
+
TargetShardCount: smithy_client_1.expectInt32(output.TargetShardCount),
|
|
3220
3220
|
};
|
|
3221
3221
|
};
|
|
3222
3222
|
const deserializeMetadata = (output) => {
|