@aws-sdk/client-kinesis 3.300.0 → 3.303.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.
Files changed (33) hide show
  1. package/dist-cjs/models/models_0.js +47 -55
  2. package/dist-es/models/models_0.js +47 -55
  3. package/dist-types/commands/AddTagsToStreamCommand.d.ts +2 -2
  4. package/dist-types/commands/CreateStreamCommand.d.ts +2 -2
  5. package/dist-types/commands/DecreaseStreamRetentionPeriodCommand.d.ts +1 -1
  6. package/dist-types/commands/DeleteStreamCommand.d.ts +1 -1
  7. package/dist-types/commands/DeregisterStreamConsumerCommand.d.ts +1 -1
  8. package/dist-types/commands/DescribeStreamCommand.d.ts +1 -1
  9. package/dist-types/commands/DescribeStreamConsumerCommand.d.ts +1 -1
  10. package/dist-types/commands/DescribeStreamSummaryCommand.d.ts +1 -1
  11. package/dist-types/commands/DisableEnhancedMonitoringCommand.d.ts +2 -2
  12. package/dist-types/commands/EnableEnhancedMonitoringCommand.d.ts +2 -2
  13. package/dist-types/commands/GetRecordsCommand.d.ts +1 -1
  14. package/dist-types/commands/GetShardIteratorCommand.d.ts +1 -1
  15. package/dist-types/commands/IncreaseStreamRetentionPeriodCommand.d.ts +1 -1
  16. package/dist-types/commands/ListShardsCommand.d.ts +2 -2
  17. package/dist-types/commands/ListStreamConsumersCommand.d.ts +1 -1
  18. package/dist-types/commands/ListStreamsCommand.d.ts +1 -1
  19. package/dist-types/commands/ListTagsForStreamCommand.d.ts +1 -1
  20. package/dist-types/commands/MergeShardsCommand.d.ts +1 -1
  21. package/dist-types/commands/PutRecordCommand.d.ts +1 -1
  22. package/dist-types/commands/PutRecordsCommand.d.ts +3 -3
  23. package/dist-types/commands/RegisterStreamConsumerCommand.d.ts +1 -1
  24. package/dist-types/commands/RemoveTagsFromStreamCommand.d.ts +2 -2
  25. package/dist-types/commands/SplitShardCommand.d.ts +1 -1
  26. package/dist-types/commands/StartStreamEncryptionCommand.d.ts +1 -1
  27. package/dist-types/commands/StopStreamEncryptionCommand.d.ts +1 -1
  28. package/dist-types/commands/SubscribeToShardCommand.d.ts +2 -2
  29. package/dist-types/commands/UpdateShardCountCommand.d.ts +1 -1
  30. package/dist-types/commands/UpdateStreamModeCommand.d.ts +2 -2
  31. package/dist-types/models/models_0.d.ts +87 -47
  32. package/dist-types/ts3.4/models/models_0.d.ts +59 -47
  33. package/package.json +38 -38
@@ -67,40 +67,35 @@ class ResourceNotFoundException extends KinesisServiceException_1.KinesisService
67
67
  }
68
68
  }
69
69
  exports.ResourceNotFoundException = ResourceNotFoundException;
70
- var ConsumerStatus;
71
- (function (ConsumerStatus) {
72
- ConsumerStatus["ACTIVE"] = "ACTIVE";
73
- ConsumerStatus["CREATING"] = "CREATING";
74
- ConsumerStatus["DELETING"] = "DELETING";
75
- })(ConsumerStatus = exports.ConsumerStatus || (exports.ConsumerStatus = {}));
76
- var StreamMode;
77
- (function (StreamMode) {
78
- StreamMode["ON_DEMAND"] = "ON_DEMAND";
79
- StreamMode["PROVISIONED"] = "PROVISIONED";
80
- })(StreamMode = exports.StreamMode || (exports.StreamMode = {}));
81
- var EncryptionType;
82
- (function (EncryptionType) {
83
- EncryptionType["KMS"] = "KMS";
84
- EncryptionType["NONE"] = "NONE";
85
- })(EncryptionType = exports.EncryptionType || (exports.EncryptionType = {}));
86
- var MetricsName;
87
- (function (MetricsName) {
88
- MetricsName["ALL"] = "ALL";
89
- MetricsName["INCOMING_BYTES"] = "IncomingBytes";
90
- MetricsName["INCOMING_RECORDS"] = "IncomingRecords";
91
- MetricsName["ITERATOR_AGE_MILLISECONDS"] = "IteratorAgeMilliseconds";
92
- MetricsName["OUTGOING_BYTES"] = "OutgoingBytes";
93
- MetricsName["OUTGOING_RECORDS"] = "OutgoingRecords";
94
- MetricsName["READ_PROVISIONED_THROUGHPUT_EXCEEDED"] = "ReadProvisionedThroughputExceeded";
95
- MetricsName["WRITE_PROVISIONED_THROUGHPUT_EXCEEDED"] = "WriteProvisionedThroughputExceeded";
96
- })(MetricsName = exports.MetricsName || (exports.MetricsName = {}));
97
- var StreamStatus;
98
- (function (StreamStatus) {
99
- StreamStatus["ACTIVE"] = "ACTIVE";
100
- StreamStatus["CREATING"] = "CREATING";
101
- StreamStatus["DELETING"] = "DELETING";
102
- StreamStatus["UPDATING"] = "UPDATING";
103
- })(StreamStatus = exports.StreamStatus || (exports.StreamStatus = {}));
70
+ exports.ConsumerStatus = {
71
+ ACTIVE: "ACTIVE",
72
+ CREATING: "CREATING",
73
+ DELETING: "DELETING",
74
+ };
75
+ exports.StreamMode = {
76
+ ON_DEMAND: "ON_DEMAND",
77
+ PROVISIONED: "PROVISIONED",
78
+ };
79
+ exports.EncryptionType = {
80
+ KMS: "KMS",
81
+ NONE: "NONE",
82
+ };
83
+ exports.MetricsName = {
84
+ ALL: "ALL",
85
+ INCOMING_BYTES: "IncomingBytes",
86
+ INCOMING_RECORDS: "IncomingRecords",
87
+ ITERATOR_AGE_MILLISECONDS: "IteratorAgeMilliseconds",
88
+ OUTGOING_BYTES: "OutgoingBytes",
89
+ OUTGOING_RECORDS: "OutgoingRecords",
90
+ READ_PROVISIONED_THROUGHPUT_EXCEEDED: "ReadProvisionedThroughputExceeded",
91
+ WRITE_PROVISIONED_THROUGHPUT_EXCEEDED: "WriteProvisionedThroughputExceeded",
92
+ };
93
+ exports.StreamStatus = {
94
+ ACTIVE: "ACTIVE",
95
+ CREATING: "CREATING",
96
+ DELETING: "DELETING",
97
+ UPDATING: "UPDATING",
98
+ };
104
99
  class ExpiredIteratorException extends KinesisServiceException_1.KinesisServiceException {
105
100
  constructor(opts) {
106
101
  super({
@@ -218,14 +213,13 @@ class ProvisionedThroughputExceededException extends KinesisServiceException_1.K
218
213
  }
219
214
  }
220
215
  exports.ProvisionedThroughputExceededException = ProvisionedThroughputExceededException;
221
- var ShardIteratorType;
222
- (function (ShardIteratorType) {
223
- ShardIteratorType["AFTER_SEQUENCE_NUMBER"] = "AFTER_SEQUENCE_NUMBER";
224
- ShardIteratorType["AT_SEQUENCE_NUMBER"] = "AT_SEQUENCE_NUMBER";
225
- ShardIteratorType["AT_TIMESTAMP"] = "AT_TIMESTAMP";
226
- ShardIteratorType["LATEST"] = "LATEST";
227
- ShardIteratorType["TRIM_HORIZON"] = "TRIM_HORIZON";
228
- })(ShardIteratorType = exports.ShardIteratorType || (exports.ShardIteratorType = {}));
216
+ exports.ShardIteratorType = {
217
+ AFTER_SEQUENCE_NUMBER: "AFTER_SEQUENCE_NUMBER",
218
+ AT_SEQUENCE_NUMBER: "AT_SEQUENCE_NUMBER",
219
+ AT_TIMESTAMP: "AT_TIMESTAMP",
220
+ LATEST: "LATEST",
221
+ TRIM_HORIZON: "TRIM_HORIZON",
222
+ };
229
223
  class InternalFailureException extends KinesisServiceException_1.KinesisServiceException {
230
224
  constructor(opts) {
231
225
  super({
@@ -239,15 +233,14 @@ class InternalFailureException extends KinesisServiceException_1.KinesisServiceE
239
233
  }
240
234
  }
241
235
  exports.InternalFailureException = InternalFailureException;
242
- var ShardFilterType;
243
- (function (ShardFilterType) {
244
- ShardFilterType["AFTER_SHARD_ID"] = "AFTER_SHARD_ID";
245
- ShardFilterType["AT_LATEST"] = "AT_LATEST";
246
- ShardFilterType["AT_TIMESTAMP"] = "AT_TIMESTAMP";
247
- ShardFilterType["AT_TRIM_HORIZON"] = "AT_TRIM_HORIZON";
248
- ShardFilterType["FROM_TIMESTAMP"] = "FROM_TIMESTAMP";
249
- ShardFilterType["FROM_TRIM_HORIZON"] = "FROM_TRIM_HORIZON";
250
- })(ShardFilterType = exports.ShardFilterType || (exports.ShardFilterType = {}));
236
+ exports.ShardFilterType = {
237
+ AFTER_SHARD_ID: "AFTER_SHARD_ID",
238
+ AT_LATEST: "AT_LATEST",
239
+ AT_TIMESTAMP: "AT_TIMESTAMP",
240
+ AT_TRIM_HORIZON: "AT_TRIM_HORIZON",
241
+ FROM_TIMESTAMP: "FROM_TIMESTAMP",
242
+ FROM_TRIM_HORIZON: "FROM_TRIM_HORIZON",
243
+ };
251
244
  class ValidationException extends KinesisServiceException_1.KinesisServiceException {
252
245
  constructor(opts) {
253
246
  super({
@@ -287,10 +280,9 @@ var SubscribeToShardEventStream;
287
280
  return visitor._(value.$unknown[0], value.$unknown[1]);
288
281
  };
289
282
  })(SubscribeToShardEventStream = exports.SubscribeToShardEventStream || (exports.SubscribeToShardEventStream = {}));
290
- var ScalingType;
291
- (function (ScalingType) {
292
- ScalingType["UNIFORM_SCALING"] = "UNIFORM_SCALING";
293
- })(ScalingType = exports.ScalingType || (exports.ScalingType = {}));
283
+ exports.ScalingType = {
284
+ UNIFORM_SCALING: "UNIFORM_SCALING",
285
+ };
294
286
  const SubscribeToShardEventStreamFilterSensitiveLog = (obj) => {
295
287
  if (obj.SubscribeToShardEvent !== undefined)
296
288
  return { SubscribeToShardEvent: obj.SubscribeToShardEvent };
@@ -59,40 +59,35 @@ export class ResourceNotFoundException extends __BaseException {
59
59
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
60
60
  }
61
61
  }
62
- export var ConsumerStatus;
63
- (function (ConsumerStatus) {
64
- ConsumerStatus["ACTIVE"] = "ACTIVE";
65
- ConsumerStatus["CREATING"] = "CREATING";
66
- ConsumerStatus["DELETING"] = "DELETING";
67
- })(ConsumerStatus || (ConsumerStatus = {}));
68
- export var StreamMode;
69
- (function (StreamMode) {
70
- StreamMode["ON_DEMAND"] = "ON_DEMAND";
71
- StreamMode["PROVISIONED"] = "PROVISIONED";
72
- })(StreamMode || (StreamMode = {}));
73
- export var EncryptionType;
74
- (function (EncryptionType) {
75
- EncryptionType["KMS"] = "KMS";
76
- EncryptionType["NONE"] = "NONE";
77
- })(EncryptionType || (EncryptionType = {}));
78
- export var MetricsName;
79
- (function (MetricsName) {
80
- MetricsName["ALL"] = "ALL";
81
- MetricsName["INCOMING_BYTES"] = "IncomingBytes";
82
- MetricsName["INCOMING_RECORDS"] = "IncomingRecords";
83
- MetricsName["ITERATOR_AGE_MILLISECONDS"] = "IteratorAgeMilliseconds";
84
- MetricsName["OUTGOING_BYTES"] = "OutgoingBytes";
85
- MetricsName["OUTGOING_RECORDS"] = "OutgoingRecords";
86
- MetricsName["READ_PROVISIONED_THROUGHPUT_EXCEEDED"] = "ReadProvisionedThroughputExceeded";
87
- MetricsName["WRITE_PROVISIONED_THROUGHPUT_EXCEEDED"] = "WriteProvisionedThroughputExceeded";
88
- })(MetricsName || (MetricsName = {}));
89
- export var StreamStatus;
90
- (function (StreamStatus) {
91
- StreamStatus["ACTIVE"] = "ACTIVE";
92
- StreamStatus["CREATING"] = "CREATING";
93
- StreamStatus["DELETING"] = "DELETING";
94
- StreamStatus["UPDATING"] = "UPDATING";
95
- })(StreamStatus || (StreamStatus = {}));
62
+ export const ConsumerStatus = {
63
+ ACTIVE: "ACTIVE",
64
+ CREATING: "CREATING",
65
+ DELETING: "DELETING",
66
+ };
67
+ export const StreamMode = {
68
+ ON_DEMAND: "ON_DEMAND",
69
+ PROVISIONED: "PROVISIONED",
70
+ };
71
+ export const EncryptionType = {
72
+ KMS: "KMS",
73
+ NONE: "NONE",
74
+ };
75
+ export const MetricsName = {
76
+ ALL: "ALL",
77
+ INCOMING_BYTES: "IncomingBytes",
78
+ INCOMING_RECORDS: "IncomingRecords",
79
+ ITERATOR_AGE_MILLISECONDS: "IteratorAgeMilliseconds",
80
+ OUTGOING_BYTES: "OutgoingBytes",
81
+ OUTGOING_RECORDS: "OutgoingRecords",
82
+ READ_PROVISIONED_THROUGHPUT_EXCEEDED: "ReadProvisionedThroughputExceeded",
83
+ WRITE_PROVISIONED_THROUGHPUT_EXCEEDED: "WriteProvisionedThroughputExceeded",
84
+ };
85
+ export const StreamStatus = {
86
+ ACTIVE: "ACTIVE",
87
+ CREATING: "CREATING",
88
+ DELETING: "DELETING",
89
+ UPDATING: "UPDATING",
90
+ };
96
91
  export class ExpiredIteratorException extends __BaseException {
97
92
  constructor(opts) {
98
93
  super({
@@ -201,14 +196,13 @@ export class ProvisionedThroughputExceededException extends __BaseException {
201
196
  Object.setPrototypeOf(this, ProvisionedThroughputExceededException.prototype);
202
197
  }
203
198
  }
204
- export var ShardIteratorType;
205
- (function (ShardIteratorType) {
206
- ShardIteratorType["AFTER_SEQUENCE_NUMBER"] = "AFTER_SEQUENCE_NUMBER";
207
- ShardIteratorType["AT_SEQUENCE_NUMBER"] = "AT_SEQUENCE_NUMBER";
208
- ShardIteratorType["AT_TIMESTAMP"] = "AT_TIMESTAMP";
209
- ShardIteratorType["LATEST"] = "LATEST";
210
- ShardIteratorType["TRIM_HORIZON"] = "TRIM_HORIZON";
211
- })(ShardIteratorType || (ShardIteratorType = {}));
199
+ export const ShardIteratorType = {
200
+ AFTER_SEQUENCE_NUMBER: "AFTER_SEQUENCE_NUMBER",
201
+ AT_SEQUENCE_NUMBER: "AT_SEQUENCE_NUMBER",
202
+ AT_TIMESTAMP: "AT_TIMESTAMP",
203
+ LATEST: "LATEST",
204
+ TRIM_HORIZON: "TRIM_HORIZON",
205
+ };
212
206
  export class InternalFailureException extends __BaseException {
213
207
  constructor(opts) {
214
208
  super({
@@ -221,15 +215,14 @@ export class InternalFailureException extends __BaseException {
221
215
  Object.setPrototypeOf(this, InternalFailureException.prototype);
222
216
  }
223
217
  }
224
- export var ShardFilterType;
225
- (function (ShardFilterType) {
226
- ShardFilterType["AFTER_SHARD_ID"] = "AFTER_SHARD_ID";
227
- ShardFilterType["AT_LATEST"] = "AT_LATEST";
228
- ShardFilterType["AT_TIMESTAMP"] = "AT_TIMESTAMP";
229
- ShardFilterType["AT_TRIM_HORIZON"] = "AT_TRIM_HORIZON";
230
- ShardFilterType["FROM_TIMESTAMP"] = "FROM_TIMESTAMP";
231
- ShardFilterType["FROM_TRIM_HORIZON"] = "FROM_TRIM_HORIZON";
232
- })(ShardFilterType || (ShardFilterType = {}));
218
+ export const ShardFilterType = {
219
+ AFTER_SHARD_ID: "AFTER_SHARD_ID",
220
+ AT_LATEST: "AT_LATEST",
221
+ AT_TIMESTAMP: "AT_TIMESTAMP",
222
+ AT_TRIM_HORIZON: "AT_TRIM_HORIZON",
223
+ FROM_TIMESTAMP: "FROM_TIMESTAMP",
224
+ FROM_TRIM_HORIZON: "FROM_TRIM_HORIZON",
225
+ };
233
226
  export class ValidationException extends __BaseException {
234
227
  constructor(opts) {
235
228
  super({
@@ -268,10 +261,9 @@ export var SubscribeToShardEventStream;
268
261
  return visitor._(value.$unknown[0], value.$unknown[1]);
269
262
  };
270
263
  })(SubscribeToShardEventStream || (SubscribeToShardEventStream = {}));
271
- export var ScalingType;
272
- (function (ScalingType) {
273
- ScalingType["UNIFORM_SCALING"] = "UNIFORM_SCALING";
274
- })(ScalingType || (ScalingType = {}));
264
+ export const ScalingType = {
265
+ UNIFORM_SCALING: "UNIFORM_SCALING",
266
+ };
275
267
  export const SubscribeToShardEventStreamFilterSensitiveLog = (obj) => {
276
268
  if (obj.SubscribeToShardEvent !== undefined)
277
269
  return { SubscribeToShardEvent: obj.SubscribeToShardEvent };
@@ -36,9 +36,9 @@ export interface AddTagsToStreamCommandOutput extends __MetadataBearer {
36
36
  * import { KinesisClient, AddTagsToStreamCommand } from "@aws-sdk/client-kinesis"; // ES Modules import
37
37
  * // const { KinesisClient, AddTagsToStreamCommand } = require("@aws-sdk/client-kinesis"); // CommonJS import
38
38
  * const client = new KinesisClient(config);
39
- * const input = {
39
+ * const input = { // AddTagsToStreamInput
40
40
  * StreamName: "STRING_VALUE",
41
- * Tags: { // required
41
+ * Tags: { // TagMap // required
42
42
  * "<keys>": "STRING_VALUE",
43
43
  * },
44
44
  * StreamARN: "STRING_VALUE",
@@ -69,10 +69,10 @@ export interface CreateStreamCommandOutput extends __MetadataBearer {
69
69
  * import { KinesisClient, CreateStreamCommand } from "@aws-sdk/client-kinesis"; // ES Modules import
70
70
  * // const { KinesisClient, CreateStreamCommand } = require("@aws-sdk/client-kinesis"); // CommonJS import
71
71
  * const client = new KinesisClient(config);
72
- * const input = {
72
+ * const input = { // CreateStreamInput
73
73
  * StreamName: "STRING_VALUE", // required
74
74
  * ShardCount: Number("int"),
75
- * StreamModeDetails: {
75
+ * StreamModeDetails: { // StreamModeDetails
76
76
  * StreamMode: "PROVISIONED" || "ON_DEMAND", // required
77
77
  * },
78
78
  * };
@@ -35,7 +35,7 @@ export interface DecreaseStreamRetentionPeriodCommandOutput extends __MetadataBe
35
35
  * import { KinesisClient, DecreaseStreamRetentionPeriodCommand } from "@aws-sdk/client-kinesis"; // ES Modules import
36
36
  * // const { KinesisClient, DecreaseStreamRetentionPeriodCommand } = require("@aws-sdk/client-kinesis"); // CommonJS import
37
37
  * const client = new KinesisClient(config);
38
- * const input = {
38
+ * const input = { // DecreaseStreamRetentionPeriodInput
39
39
  * StreamName: "STRING_VALUE",
40
40
  * RetentionPeriodHours: Number("int"), // required
41
41
  * StreamARN: "STRING_VALUE",
@@ -48,7 +48,7 @@ export interface DeleteStreamCommandOutput extends __MetadataBearer {
48
48
  * import { KinesisClient, DeleteStreamCommand } from "@aws-sdk/client-kinesis"; // ES Modules import
49
49
  * // const { KinesisClient, DeleteStreamCommand } = require("@aws-sdk/client-kinesis"); // CommonJS import
50
50
  * const client = new KinesisClient(config);
51
- * const input = {
51
+ * const input = { // DeleteStreamInput
52
52
  * StreamName: "STRING_VALUE",
53
53
  * EnforceConsumerDeletion: true || false,
54
54
  * StreamARN: "STRING_VALUE",
@@ -33,7 +33,7 @@ export interface DeregisterStreamConsumerCommandOutput extends __MetadataBearer
33
33
  * import { KinesisClient, DeregisterStreamConsumerCommand } from "@aws-sdk/client-kinesis"; // ES Modules import
34
34
  * // const { KinesisClient, DeregisterStreamConsumerCommand } = require("@aws-sdk/client-kinesis"); // CommonJS import
35
35
  * const client = new KinesisClient(config);
36
- * const input = {
36
+ * const input = { // DeregisterStreamConsumerInput
37
37
  * StreamARN: "STRING_VALUE",
38
38
  * ConsumerName: "STRING_VALUE",
39
39
  * ConsumerARN: "STRING_VALUE",
@@ -49,7 +49,7 @@ export interface DescribeStreamCommandOutput extends DescribeStreamOutput, __Met
49
49
  * import { KinesisClient, DescribeStreamCommand } from "@aws-sdk/client-kinesis"; // ES Modules import
50
50
  * // const { KinesisClient, DescribeStreamCommand } = require("@aws-sdk/client-kinesis"); // CommonJS import
51
51
  * const client = new KinesisClient(config);
52
- * const input = {
52
+ * const input = { // DescribeStreamInput
53
53
  * StreamName: "STRING_VALUE",
54
54
  * Limit: Number("int"),
55
55
  * ExclusiveStartShardId: "STRING_VALUE",
@@ -33,7 +33,7 @@ export interface DescribeStreamConsumerCommandOutput extends DescribeStreamConsu
33
33
  * import { KinesisClient, DescribeStreamConsumerCommand } from "@aws-sdk/client-kinesis"; // ES Modules import
34
34
  * // const { KinesisClient, DescribeStreamConsumerCommand } = require("@aws-sdk/client-kinesis"); // CommonJS import
35
35
  * const client = new KinesisClient(config);
36
- * const input = {
36
+ * const input = { // DescribeStreamConsumerInput
37
37
  * StreamARN: "STRING_VALUE",
38
38
  * ConsumerName: "STRING_VALUE",
39
39
  * ConsumerARN: "STRING_VALUE",
@@ -37,7 +37,7 @@ export interface DescribeStreamSummaryCommandOutput extends DescribeStreamSummar
37
37
  * import { KinesisClient, DescribeStreamSummaryCommand } from "@aws-sdk/client-kinesis"; // ES Modules import
38
38
  * // const { KinesisClient, DescribeStreamSummaryCommand } = require("@aws-sdk/client-kinesis"); // CommonJS import
39
39
  * const client = new KinesisClient(config);
40
- * const input = {
40
+ * const input = { // DescribeStreamSummaryInput
41
41
  * StreamName: "STRING_VALUE",
42
42
  * StreamARN: "STRING_VALUE",
43
43
  * };
@@ -30,9 +30,9 @@ export interface DisableEnhancedMonitoringCommandOutput extends EnhancedMonitori
30
30
  * import { KinesisClient, DisableEnhancedMonitoringCommand } from "@aws-sdk/client-kinesis"; // ES Modules import
31
31
  * // const { KinesisClient, DisableEnhancedMonitoringCommand } = require("@aws-sdk/client-kinesis"); // CommonJS import
32
32
  * const client = new KinesisClient(config);
33
- * const input = {
33
+ * const input = { // DisableEnhancedMonitoringInput
34
34
  * StreamName: "STRING_VALUE",
35
- * ShardLevelMetrics: [ // required
35
+ * ShardLevelMetrics: [ // MetricsNameList // required
36
36
  * "IncomingBytes" || "IncomingRecords" || "OutgoingBytes" || "OutgoingRecords" || "WriteProvisionedThroughputExceeded" || "ReadProvisionedThroughputExceeded" || "IteratorAgeMilliseconds" || "ALL",
37
37
  * ],
38
38
  * StreamARN: "STRING_VALUE",
@@ -30,9 +30,9 @@ export interface EnableEnhancedMonitoringCommandOutput extends EnhancedMonitorin
30
30
  * import { KinesisClient, EnableEnhancedMonitoringCommand } from "@aws-sdk/client-kinesis"; // ES Modules import
31
31
  * // const { KinesisClient, EnableEnhancedMonitoringCommand } = require("@aws-sdk/client-kinesis"); // CommonJS import
32
32
  * const client = new KinesisClient(config);
33
- * const input = {
33
+ * const input = { // EnableEnhancedMonitoringInput
34
34
  * StreamName: "STRING_VALUE",
35
- * ShardLevelMetrics: [ // required
35
+ * ShardLevelMetrics: [ // MetricsNameList // required
36
36
  * "IncomingBytes" || "IncomingRecords" || "OutgoingBytes" || "OutgoingRecords" || "WriteProvisionedThroughputExceeded" || "ReadProvisionedThroughputExceeded" || "IteratorAgeMilliseconds" || "ALL",
37
37
  * ],
38
38
  * StreamARN: "STRING_VALUE",
@@ -77,7 +77,7 @@ export interface GetRecordsCommandOutput extends GetRecordsOutput, __MetadataBea
77
77
  * import { KinesisClient, GetRecordsCommand } from "@aws-sdk/client-kinesis"; // ES Modules import
78
78
  * // const { KinesisClient, GetRecordsCommand } = require("@aws-sdk/client-kinesis"); // CommonJS import
79
79
  * const client = new KinesisClient(config);
80
- * const input = {
80
+ * const input = { // GetRecordsInput
81
81
  * ShardIterator: "STRING_VALUE", // required
82
82
  * Limit: Number("int"),
83
83
  * StreamARN: "STRING_VALUE",
@@ -63,7 +63,7 @@ export interface GetShardIteratorCommandOutput extends GetShardIteratorOutput, _
63
63
  * import { KinesisClient, GetShardIteratorCommand } from "@aws-sdk/client-kinesis"; // ES Modules import
64
64
  * // const { KinesisClient, GetShardIteratorCommand } = require("@aws-sdk/client-kinesis"); // CommonJS import
65
65
  * const client = new KinesisClient(config);
66
- * const input = {
66
+ * const input = { // GetShardIteratorInput
67
67
  * StreamName: "STRING_VALUE",
68
68
  * ShardId: "STRING_VALUE", // required
69
69
  * ShardIteratorType: "AT_SEQUENCE_NUMBER" || "AFTER_SEQUENCE_NUMBER" || "TRIM_HORIZON" || "LATEST" || "AT_TIMESTAMP", // required
@@ -38,7 +38,7 @@ export interface IncreaseStreamRetentionPeriodCommandOutput extends __MetadataBe
38
38
  * import { KinesisClient, IncreaseStreamRetentionPeriodCommand } from "@aws-sdk/client-kinesis"; // ES Modules import
39
39
  * // const { KinesisClient, IncreaseStreamRetentionPeriodCommand } = require("@aws-sdk/client-kinesis"); // CommonJS import
40
40
  * const client = new KinesisClient(config);
41
- * const input = {
41
+ * const input = { // IncreaseStreamRetentionPeriodInput
42
42
  * StreamName: "STRING_VALUE",
43
43
  * RetentionPeriodHours: Number("int"), // required
44
44
  * StreamARN: "STRING_VALUE",
@@ -40,13 +40,13 @@ export interface ListShardsCommandOutput extends ListShardsOutput, __MetadataBea
40
40
  * import { KinesisClient, ListShardsCommand } from "@aws-sdk/client-kinesis"; // ES Modules import
41
41
  * // const { KinesisClient, ListShardsCommand } = require("@aws-sdk/client-kinesis"); // CommonJS import
42
42
  * const client = new KinesisClient(config);
43
- * const input = {
43
+ * const input = { // ListShardsInput
44
44
  * StreamName: "STRING_VALUE",
45
45
  * NextToken: "STRING_VALUE",
46
46
  * ExclusiveStartShardId: "STRING_VALUE",
47
47
  * MaxResults: Number("int"),
48
48
  * StreamCreationTimestamp: new Date("TIMESTAMP"),
49
- * ShardFilter: {
49
+ * ShardFilter: { // ShardFilter
50
50
  * Type: "AFTER_SHARD_ID" || "AT_TRIM_HORIZON" || "FROM_TRIM_HORIZON" || "AT_LATEST" || "AT_TIMESTAMP" || "FROM_TIMESTAMP", // required
51
51
  * ShardId: "STRING_VALUE",
52
52
  * Timestamp: new Date("TIMESTAMP"),
@@ -28,7 +28,7 @@ export interface ListStreamConsumersCommandOutput extends ListStreamConsumersOut
28
28
  * import { KinesisClient, ListStreamConsumersCommand } from "@aws-sdk/client-kinesis"; // ES Modules import
29
29
  * // const { KinesisClient, ListStreamConsumersCommand } = require("@aws-sdk/client-kinesis"); // CommonJS import
30
30
  * const client = new KinesisClient(config);
31
- * const input = {
31
+ * const input = { // ListStreamConsumersInput
32
32
  * StreamARN: "STRING_VALUE", // required
33
33
  * NextToken: "STRING_VALUE",
34
34
  * MaxResults: Number("int"),
@@ -41,7 +41,7 @@ export interface ListStreamsCommandOutput extends ListStreamsOutput, __MetadataB
41
41
  * import { KinesisClient, ListStreamsCommand } from "@aws-sdk/client-kinesis"; // ES Modules import
42
42
  * // const { KinesisClient, ListStreamsCommand } = require("@aws-sdk/client-kinesis"); // CommonJS import
43
43
  * const client = new KinesisClient(config);
44
- * const input = {
44
+ * const input = { // ListStreamsInput
45
45
  * Limit: Number("int"),
46
46
  * ExclusiveStartStreamName: "STRING_VALUE",
47
47
  * NextToken: "STRING_VALUE",
@@ -31,7 +31,7 @@ export interface ListTagsForStreamCommandOutput extends ListTagsForStreamOutput,
31
31
  * import { KinesisClient, ListTagsForStreamCommand } from "@aws-sdk/client-kinesis"; // ES Modules import
32
32
  * // const { KinesisClient, ListTagsForStreamCommand } = require("@aws-sdk/client-kinesis"); // CommonJS import
33
33
  * const client = new KinesisClient(config);
34
- * const input = {
34
+ * const input = { // ListTagsForStreamInput
35
35
  * StreamName: "STRING_VALUE",
36
36
  * ExclusiveStartTagKey: "STRING_VALUE",
37
37
  * Limit: Number("int"),
@@ -66,7 +66,7 @@ export interface MergeShardsCommandOutput extends __MetadataBearer {
66
66
  * import { KinesisClient, MergeShardsCommand } from "@aws-sdk/client-kinesis"; // ES Modules import
67
67
  * // const { KinesisClient, MergeShardsCommand } = require("@aws-sdk/client-kinesis"); // CommonJS import
68
68
  * const client = new KinesisClient(config);
69
- * const input = {
69
+ * const input = { // MergeShardsInput
70
70
  * StreamName: "STRING_VALUE",
71
71
  * ShardToMerge: "STRING_VALUE", // required
72
72
  * AdjacentShardToMerge: "STRING_VALUE", // required
@@ -65,7 +65,7 @@ export interface PutRecordCommandOutput extends PutRecordOutput, __MetadataBeare
65
65
  * import { KinesisClient, PutRecordCommand } from "@aws-sdk/client-kinesis"; // ES Modules import
66
66
  * // const { KinesisClient, PutRecordCommand } = require("@aws-sdk/client-kinesis"); // CommonJS import
67
67
  * const client = new KinesisClient(config);
68
- * const input = {
68
+ * const input = { // PutRecordInput
69
69
  * StreamName: "STRING_VALUE",
70
70
  * Data: "BLOB_VALUE", // required
71
71
  * PartitionKey: "STRING_VALUE", // required
@@ -85,9 +85,9 @@ export interface PutRecordsCommandOutput extends PutRecordsOutput, __MetadataBea
85
85
  * import { KinesisClient, PutRecordsCommand } from "@aws-sdk/client-kinesis"; // ES Modules import
86
86
  * // const { KinesisClient, PutRecordsCommand } = require("@aws-sdk/client-kinesis"); // CommonJS import
87
87
  * const client = new KinesisClient(config);
88
- * const input = {
89
- * Records: [ // required
90
- * {
88
+ * const input = { // PutRecordsInput
89
+ * Records: [ // PutRecordsRequestEntryList // required
90
+ * { // PutRecordsRequestEntry
91
91
  * Data: "BLOB_VALUE", // required
92
92
  * ExplicitHashKey: "STRING_VALUE",
93
93
  * PartitionKey: "STRING_VALUE", // required
@@ -39,7 +39,7 @@ export interface RegisterStreamConsumerCommandOutput extends RegisterStreamConsu
39
39
  * import { KinesisClient, RegisterStreamConsumerCommand } from "@aws-sdk/client-kinesis"; // ES Modules import
40
40
  * // const { KinesisClient, RegisterStreamConsumerCommand } = require("@aws-sdk/client-kinesis"); // CommonJS import
41
41
  * const client = new KinesisClient(config);
42
- * const input = {
42
+ * const input = { // RegisterStreamConsumerInput
43
43
  * StreamARN: "STRING_VALUE", // required
44
44
  * ConsumerName: "STRING_VALUE", // required
45
45
  * };
@@ -35,9 +35,9 @@ export interface RemoveTagsFromStreamCommandOutput extends __MetadataBearer {
35
35
  * import { KinesisClient, RemoveTagsFromStreamCommand } from "@aws-sdk/client-kinesis"; // ES Modules import
36
36
  * // const { KinesisClient, RemoveTagsFromStreamCommand } = require("@aws-sdk/client-kinesis"); // CommonJS import
37
37
  * const client = new KinesisClient(config);
38
- * const input = {
38
+ * const input = { // RemoveTagsFromStreamInput
39
39
  * StreamName: "STRING_VALUE",
40
- * TagKeys: [ // required
40
+ * TagKeys: [ // TagKeyList // required
41
41
  * "STRING_VALUE",
42
42
  * ],
43
43
  * StreamARN: "STRING_VALUE",
@@ -70,7 +70,7 @@ export interface SplitShardCommandOutput extends __MetadataBearer {
70
70
  * import { KinesisClient, SplitShardCommand } from "@aws-sdk/client-kinesis"; // ES Modules import
71
71
  * // const { KinesisClient, SplitShardCommand } = require("@aws-sdk/client-kinesis"); // CommonJS import
72
72
  * const client = new KinesisClient(config);
73
- * const input = {
73
+ * const input = { // SplitShardInput
74
74
  * StreamName: "STRING_VALUE",
75
75
  * ShardToSplit: "STRING_VALUE", // required
76
76
  * NewStartingHashKey: "STRING_VALUE", // required
@@ -45,7 +45,7 @@ export interface StartStreamEncryptionCommandOutput extends __MetadataBearer {
45
45
  * import { KinesisClient, StartStreamEncryptionCommand } from "@aws-sdk/client-kinesis"; // ES Modules import
46
46
  * // const { KinesisClient, StartStreamEncryptionCommand } = require("@aws-sdk/client-kinesis"); // CommonJS import
47
47
  * const client = new KinesisClient(config);
48
- * const input = {
48
+ * const input = { // StartStreamEncryptionInput
49
49
  * StreamName: "STRING_VALUE",
50
50
  * EncryptionType: "NONE" || "KMS", // required
51
51
  * KeyId: "STRING_VALUE", // required
@@ -44,7 +44,7 @@ export interface StopStreamEncryptionCommandOutput extends __MetadataBearer {
44
44
  * import { KinesisClient, StopStreamEncryptionCommand } from "@aws-sdk/client-kinesis"; // ES Modules import
45
45
  * // const { KinesisClient, StopStreamEncryptionCommand } = require("@aws-sdk/client-kinesis"); // CommonJS import
46
46
  * const client = new KinesisClient(config);
47
- * const input = {
47
+ * const input = { // StopStreamEncryptionInput
48
48
  * StreamName: "STRING_VALUE",
49
49
  * EncryptionType: "NONE" || "KMS", // required
50
50
  * KeyId: "STRING_VALUE", // required
@@ -48,10 +48,10 @@ export interface SubscribeToShardCommandOutput extends SubscribeToShardOutput, _
48
48
  * import { KinesisClient, SubscribeToShardCommand } from "@aws-sdk/client-kinesis"; // ES Modules import
49
49
  * // const { KinesisClient, SubscribeToShardCommand } = require("@aws-sdk/client-kinesis"); // CommonJS import
50
50
  * const client = new KinesisClient(config);
51
- * const input = {
51
+ * const input = { // SubscribeToShardInput
52
52
  * ConsumerARN: "STRING_VALUE", // required
53
53
  * ShardId: "STRING_VALUE", // required
54
- * StartingPosition: {
54
+ * StartingPosition: { // StartingPosition
55
55
  * Type: "AT_SEQUENCE_NUMBER" || "AFTER_SEQUENCE_NUMBER" || "TRIM_HORIZON" || "LATEST" || "AT_TIMESTAMP", // required
56
56
  * SequenceNumber: "STRING_VALUE",
57
57
  * Timestamp: new Date("TIMESTAMP"),
@@ -73,7 +73,7 @@ export interface UpdateShardCountCommandOutput extends UpdateShardCountOutput, _
73
73
  * import { KinesisClient, UpdateShardCountCommand } from "@aws-sdk/client-kinesis"; // ES Modules import
74
74
  * // const { KinesisClient, UpdateShardCountCommand } = require("@aws-sdk/client-kinesis"); // CommonJS import
75
75
  * const client = new KinesisClient(config);
76
- * const input = {
76
+ * const input = { // UpdateShardCountInput
77
77
  * StreamName: "STRING_VALUE",
78
78
  * TargetShardCount: Number("int"), // required
79
79
  * ScalingType: "UNIFORM_SCALING", // required
@@ -29,9 +29,9 @@ export interface UpdateStreamModeCommandOutput extends __MetadataBearer {
29
29
  * import { KinesisClient, UpdateStreamModeCommand } from "@aws-sdk/client-kinesis"; // ES Modules import
30
30
  * // const { KinesisClient, UpdateStreamModeCommand } = require("@aws-sdk/client-kinesis"); // CommonJS import
31
31
  * const client = new KinesisClient(config);
32
- * const input = {
32
+ * const input = { // UpdateStreamModeInput
33
33
  * StreamARN: "STRING_VALUE", // required
34
- * StreamModeDetails: {
34
+ * StreamModeDetails: { // StreamModeDetails
35
35
  * StreamMode: "PROVISIONED" || "ON_DEMAND", // required
36
36
  * },
37
37
  * };
@@ -120,12 +120,17 @@ export interface ChildShard {
120
120
  }
121
121
  /**
122
122
  * @public
123
+ * @enum
123
124
  */
124
- export declare enum ConsumerStatus {
125
- ACTIVE = "ACTIVE",
126
- CREATING = "CREATING",
127
- DELETING = "DELETING"
128
- }
125
+ export declare const ConsumerStatus: {
126
+ readonly ACTIVE: "ACTIVE";
127
+ readonly CREATING: "CREATING";
128
+ readonly DELETING: "DELETING";
129
+ };
130
+ /**
131
+ * @public
132
+ */
133
+ export type ConsumerStatus = (typeof ConsumerStatus)[keyof typeof ConsumerStatus];
129
134
  /**
130
135
  * @public
131
136
  * <p>An object that represents the details of the consumer you registered. This type of
@@ -190,11 +195,16 @@ export interface ConsumerDescription {
190
195
  }
191
196
  /**
192
197
  * @public
198
+ * @enum
193
199
  */
194
- export declare enum StreamMode {
195
- ON_DEMAND = "ON_DEMAND",
196
- PROVISIONED = "PROVISIONED"
197
- }
200
+ export declare const StreamMode: {
201
+ readonly ON_DEMAND: "ON_DEMAND";
202
+ readonly PROVISIONED: "PROVISIONED";
203
+ };
204
+ /**
205
+ * @public
206
+ */
207
+ export type StreamMode = (typeof StreamMode)[keyof typeof StreamMode];
198
208
  /**
199
209
  * @public
200
210
  * <p> Specifies the capacity mode to which you want to set your data stream. Currently, in
@@ -351,24 +361,34 @@ export interface DescribeStreamInput {
351
361
  }
352
362
  /**
353
363
  * @public
364
+ * @enum
354
365
  */
355
- export declare enum EncryptionType {
356
- KMS = "KMS",
357
- NONE = "NONE"
358
- }
366
+ export declare const EncryptionType: {
367
+ readonly KMS: "KMS";
368
+ readonly NONE: "NONE";
369
+ };
359
370
  /**
360
371
  * @public
361
372
  */
362
- export declare enum MetricsName {
363
- ALL = "ALL",
364
- INCOMING_BYTES = "IncomingBytes",
365
- INCOMING_RECORDS = "IncomingRecords",
366
- ITERATOR_AGE_MILLISECONDS = "IteratorAgeMilliseconds",
367
- OUTGOING_BYTES = "OutgoingBytes",
368
- OUTGOING_RECORDS = "OutgoingRecords",
369
- READ_PROVISIONED_THROUGHPUT_EXCEEDED = "ReadProvisionedThroughputExceeded",
370
- WRITE_PROVISIONED_THROUGHPUT_EXCEEDED = "WriteProvisionedThroughputExceeded"
371
- }
373
+ export type EncryptionType = (typeof EncryptionType)[keyof typeof EncryptionType];
374
+ /**
375
+ * @public
376
+ * @enum
377
+ */
378
+ export declare const MetricsName: {
379
+ readonly ALL: "ALL";
380
+ readonly INCOMING_BYTES: "IncomingBytes";
381
+ readonly INCOMING_RECORDS: "IncomingRecords";
382
+ readonly ITERATOR_AGE_MILLISECONDS: "IteratorAgeMilliseconds";
383
+ readonly OUTGOING_BYTES: "OutgoingBytes";
384
+ readonly OUTGOING_RECORDS: "OutgoingRecords";
385
+ readonly READ_PROVISIONED_THROUGHPUT_EXCEEDED: "ReadProvisionedThroughputExceeded";
386
+ readonly WRITE_PROVISIONED_THROUGHPUT_EXCEEDED: "WriteProvisionedThroughputExceeded";
387
+ };
388
+ /**
389
+ * @public
390
+ */
391
+ export type MetricsName = (typeof MetricsName)[keyof typeof MetricsName];
372
392
  /**
373
393
  * @public
374
394
  * <p>Represents enhanced metrics types.</p>
@@ -470,13 +490,18 @@ export interface Shard {
470
490
  }
471
491
  /**
472
492
  * @public
493
+ * @enum
473
494
  */
474
- export declare enum StreamStatus {
475
- ACTIVE = "ACTIVE",
476
- CREATING = "CREATING",
477
- DELETING = "DELETING",
478
- UPDATING = "UPDATING"
479
- }
495
+ export declare const StreamStatus: {
496
+ readonly ACTIVE: "ACTIVE";
497
+ readonly CREATING: "CREATING";
498
+ readonly DELETING: "DELETING";
499
+ readonly UPDATING: "UPDATING";
500
+ };
501
+ /**
502
+ * @public
503
+ */
504
+ export type StreamStatus = (typeof StreamStatus)[keyof typeof StreamStatus];
480
505
  /**
481
506
  * @public
482
507
  * <p>Represents the output for <a>DescribeStream</a>.</p>
@@ -1150,14 +1175,19 @@ export declare class ProvisionedThroughputExceededException extends __BaseExcept
1150
1175
  }
1151
1176
  /**
1152
1177
  * @public
1178
+ * @enum
1153
1179
  */
1154
- export declare enum ShardIteratorType {
1155
- AFTER_SEQUENCE_NUMBER = "AFTER_SEQUENCE_NUMBER",
1156
- AT_SEQUENCE_NUMBER = "AT_SEQUENCE_NUMBER",
1157
- AT_TIMESTAMP = "AT_TIMESTAMP",
1158
- LATEST = "LATEST",
1159
- TRIM_HORIZON = "TRIM_HORIZON"
1160
- }
1180
+ export declare const ShardIteratorType: {
1181
+ readonly AFTER_SEQUENCE_NUMBER: "AFTER_SEQUENCE_NUMBER";
1182
+ readonly AT_SEQUENCE_NUMBER: "AT_SEQUENCE_NUMBER";
1183
+ readonly AT_TIMESTAMP: "AT_TIMESTAMP";
1184
+ readonly LATEST: "LATEST";
1185
+ readonly TRIM_HORIZON: "TRIM_HORIZON";
1186
+ };
1187
+ /**
1188
+ * @public
1189
+ */
1190
+ export type ShardIteratorType = (typeof ShardIteratorType)[keyof typeof ShardIteratorType];
1161
1191
  /**
1162
1192
  * @public
1163
1193
  * <p>Represents the input for <code>GetShardIterator</code>.</p>
@@ -1267,15 +1297,20 @@ export declare class InternalFailureException extends __BaseException {
1267
1297
  }
1268
1298
  /**
1269
1299
  * @public
1300
+ * @enum
1270
1301
  */
1271
- export declare enum ShardFilterType {
1272
- AFTER_SHARD_ID = "AFTER_SHARD_ID",
1273
- AT_LATEST = "AT_LATEST",
1274
- AT_TIMESTAMP = "AT_TIMESTAMP",
1275
- AT_TRIM_HORIZON = "AT_TRIM_HORIZON",
1276
- FROM_TIMESTAMP = "FROM_TIMESTAMP",
1277
- FROM_TRIM_HORIZON = "FROM_TRIM_HORIZON"
1278
- }
1302
+ export declare const ShardFilterType: {
1303
+ readonly AFTER_SHARD_ID: "AFTER_SHARD_ID";
1304
+ readonly AT_LATEST: "AT_LATEST";
1305
+ readonly AT_TIMESTAMP: "AT_TIMESTAMP";
1306
+ readonly AT_TRIM_HORIZON: "AT_TRIM_HORIZON";
1307
+ readonly FROM_TIMESTAMP: "FROM_TIMESTAMP";
1308
+ readonly FROM_TRIM_HORIZON: "FROM_TRIM_HORIZON";
1309
+ };
1310
+ /**
1311
+ * @public
1312
+ */
1313
+ export type ShardFilterType = (typeof ShardFilterType)[keyof typeof ShardFilterType];
1279
1314
  /**
1280
1315
  * @public
1281
1316
  * <p>The request parameter used to filter out the response of the <code>ListShards</code>
@@ -2373,10 +2408,15 @@ export interface SubscribeToShardOutput {
2373
2408
  }
2374
2409
  /**
2375
2410
  * @public
2411
+ * @enum
2376
2412
  */
2377
- export declare enum ScalingType {
2378
- UNIFORM_SCALING = "UNIFORM_SCALING"
2379
- }
2413
+ export declare const ScalingType: {
2414
+ readonly UNIFORM_SCALING: "UNIFORM_SCALING";
2415
+ };
2416
+ /**
2417
+ * @public
2418
+ */
2419
+ export type ScalingType = (typeof ScalingType)[keyof typeof ScalingType];
2380
2420
  /**
2381
2421
  * @public
2382
2422
  */
@@ -49,11 +49,13 @@ export interface ChildShard {
49
49
  ParentShards: string[] | undefined;
50
50
  HashKeyRange: HashKeyRange | undefined;
51
51
  }
52
- export declare enum ConsumerStatus {
53
- ACTIVE = "ACTIVE",
54
- CREATING = "CREATING",
55
- DELETING = "DELETING",
56
- }
52
+ export declare const ConsumerStatus: {
53
+ readonly ACTIVE: "ACTIVE";
54
+ readonly CREATING: "CREATING";
55
+ readonly DELETING: "DELETING";
56
+ };
57
+ export type ConsumerStatus =
58
+ (typeof ConsumerStatus)[keyof typeof ConsumerStatus];
57
59
  export interface Consumer {
58
60
  ConsumerName: string | undefined;
59
61
  ConsumerARN: string | undefined;
@@ -67,10 +69,11 @@ export interface ConsumerDescription {
67
69
  ConsumerCreationTimestamp: Date | undefined;
68
70
  StreamARN: string | undefined;
69
71
  }
70
- export declare enum StreamMode {
71
- ON_DEMAND = "ON_DEMAND",
72
- PROVISIONED = "PROVISIONED",
73
- }
72
+ export declare const StreamMode: {
73
+ readonly ON_DEMAND: "ON_DEMAND";
74
+ readonly PROVISIONED: "PROVISIONED";
75
+ };
76
+ export type StreamMode = (typeof StreamMode)[keyof typeof StreamMode];
74
77
  export interface StreamModeDetails {
75
78
  StreamMode: StreamMode | string | undefined;
76
79
  }
@@ -107,20 +110,23 @@ export interface DescribeStreamInput {
107
110
  ExclusiveStartShardId?: string;
108
111
  StreamARN?: string;
109
112
  }
110
- export declare enum EncryptionType {
111
- KMS = "KMS",
112
- NONE = "NONE",
113
- }
114
- export declare enum MetricsName {
115
- ALL = "ALL",
116
- INCOMING_BYTES = "IncomingBytes",
117
- INCOMING_RECORDS = "IncomingRecords",
118
- ITERATOR_AGE_MILLISECONDS = "IteratorAgeMilliseconds",
119
- OUTGOING_BYTES = "OutgoingBytes",
120
- OUTGOING_RECORDS = "OutgoingRecords",
121
- READ_PROVISIONED_THROUGHPUT_EXCEEDED = "ReadProvisionedThroughputExceeded",
122
- WRITE_PROVISIONED_THROUGHPUT_EXCEEDED = "WriteProvisionedThroughputExceeded",
123
- }
113
+ export declare const EncryptionType: {
114
+ readonly KMS: "KMS";
115
+ readonly NONE: "NONE";
116
+ };
117
+ export type EncryptionType =
118
+ (typeof EncryptionType)[keyof typeof EncryptionType];
119
+ export declare const MetricsName: {
120
+ readonly ALL: "ALL";
121
+ readonly INCOMING_BYTES: "IncomingBytes";
122
+ readonly INCOMING_RECORDS: "IncomingRecords";
123
+ readonly ITERATOR_AGE_MILLISECONDS: "IteratorAgeMilliseconds";
124
+ readonly OUTGOING_BYTES: "OutgoingBytes";
125
+ readonly OUTGOING_RECORDS: "OutgoingRecords";
126
+ readonly READ_PROVISIONED_THROUGHPUT_EXCEEDED: "ReadProvisionedThroughputExceeded";
127
+ readonly WRITE_PROVISIONED_THROUGHPUT_EXCEEDED: "WriteProvisionedThroughputExceeded";
128
+ };
129
+ export type MetricsName = (typeof MetricsName)[keyof typeof MetricsName];
124
130
  export interface EnhancedMetrics {
125
131
  ShardLevelMetrics?: (MetricsName | string)[];
126
132
  }
@@ -135,12 +141,13 @@ export interface Shard {
135
141
  HashKeyRange: HashKeyRange | undefined;
136
142
  SequenceNumberRange: SequenceNumberRange | undefined;
137
143
  }
138
- export declare enum StreamStatus {
139
- ACTIVE = "ACTIVE",
140
- CREATING = "CREATING",
141
- DELETING = "DELETING",
142
- UPDATING = "UPDATING",
143
- }
144
+ export declare const StreamStatus: {
145
+ readonly ACTIVE: "ACTIVE";
146
+ readonly CREATING: "CREATING";
147
+ readonly DELETING: "DELETING";
148
+ readonly UPDATING: "UPDATING";
149
+ };
150
+ export type StreamStatus = (typeof StreamStatus)[keyof typeof StreamStatus];
144
151
  export interface StreamDescription {
145
152
  StreamName: string | undefined;
146
153
  StreamARN: string | undefined;
@@ -283,13 +290,15 @@ export declare class ProvisionedThroughputExceededException extends __BaseExcept
283
290
  >
284
291
  );
285
292
  }
286
- export declare enum ShardIteratorType {
287
- AFTER_SEQUENCE_NUMBER = "AFTER_SEQUENCE_NUMBER",
288
- AT_SEQUENCE_NUMBER = "AT_SEQUENCE_NUMBER",
289
- AT_TIMESTAMP = "AT_TIMESTAMP",
290
- LATEST = "LATEST",
291
- TRIM_HORIZON = "TRIM_HORIZON",
292
- }
293
+ export declare const ShardIteratorType: {
294
+ readonly AFTER_SEQUENCE_NUMBER: "AFTER_SEQUENCE_NUMBER";
295
+ readonly AT_SEQUENCE_NUMBER: "AT_SEQUENCE_NUMBER";
296
+ readonly AT_TIMESTAMP: "AT_TIMESTAMP";
297
+ readonly LATEST: "LATEST";
298
+ readonly TRIM_HORIZON: "TRIM_HORIZON";
299
+ };
300
+ export type ShardIteratorType =
301
+ (typeof ShardIteratorType)[keyof typeof ShardIteratorType];
293
302
  export interface GetShardIteratorInput {
294
303
  StreamName?: string;
295
304
  ShardId: string | undefined;
@@ -313,14 +322,16 @@ export declare class InternalFailureException extends __BaseException {
313
322
  opts: __ExceptionOptionType<InternalFailureException, __BaseException>
314
323
  );
315
324
  }
316
- export declare enum ShardFilterType {
317
- AFTER_SHARD_ID = "AFTER_SHARD_ID",
318
- AT_LATEST = "AT_LATEST",
319
- AT_TIMESTAMP = "AT_TIMESTAMP",
320
- AT_TRIM_HORIZON = "AT_TRIM_HORIZON",
321
- FROM_TIMESTAMP = "FROM_TIMESTAMP",
322
- FROM_TRIM_HORIZON = "FROM_TRIM_HORIZON",
323
- }
325
+ export declare const ShardFilterType: {
326
+ readonly AFTER_SHARD_ID: "AFTER_SHARD_ID";
327
+ readonly AT_LATEST: "AT_LATEST";
328
+ readonly AT_TIMESTAMP: "AT_TIMESTAMP";
329
+ readonly AT_TRIM_HORIZON: "AT_TRIM_HORIZON";
330
+ readonly FROM_TIMESTAMP: "FROM_TIMESTAMP";
331
+ readonly FROM_TRIM_HORIZON: "FROM_TRIM_HORIZON";
332
+ };
333
+ export type ShardFilterType =
334
+ (typeof ShardFilterType)[keyof typeof ShardFilterType];
324
335
  export interface ShardFilter {
325
336
  Type: ShardFilterType | string | undefined;
326
337
  ShardId?: string;
@@ -651,9 +662,10 @@ export declare namespace SubscribeToShardEventStream {
651
662
  export interface SubscribeToShardOutput {
652
663
  EventStream: AsyncIterable<SubscribeToShardEventStream> | undefined;
653
664
  }
654
- export declare enum ScalingType {
655
- UNIFORM_SCALING = "UNIFORM_SCALING",
656
- }
665
+ export declare const ScalingType: {
666
+ readonly UNIFORM_SCALING: "UNIFORM_SCALING";
667
+ };
668
+ export type ScalingType = (typeof ScalingType)[keyof typeof ScalingType];
657
669
  export interface UpdateShardCountInput {
658
670
  StreamName?: string;
659
671
  TargetShardCount: number | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
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.300.0",
4
+ "version": "3.303.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,46 +21,46 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.300.0",
25
- "@aws-sdk/config-resolver": "3.300.0",
26
- "@aws-sdk/credential-provider-node": "3.300.0",
27
- "@aws-sdk/eventstream-serde-browser": "3.296.0",
28
- "@aws-sdk/eventstream-serde-config-resolver": "3.296.0",
29
- "@aws-sdk/eventstream-serde-node": "3.299.0",
30
- "@aws-sdk/fetch-http-handler": "3.296.0",
31
- "@aws-sdk/hash-node": "3.296.0",
32
- "@aws-sdk/invalid-dependency": "3.296.0",
33
- "@aws-sdk/middleware-content-length": "3.296.0",
34
- "@aws-sdk/middleware-endpoint": "3.299.0",
35
- "@aws-sdk/middleware-host-header": "3.296.0",
36
- "@aws-sdk/middleware-logger": "3.296.0",
37
- "@aws-sdk/middleware-recursion-detection": "3.296.0",
38
- "@aws-sdk/middleware-retry": "3.300.0",
39
- "@aws-sdk/middleware-serde": "3.296.0",
40
- "@aws-sdk/middleware-signing": "3.299.0",
41
- "@aws-sdk/middleware-stack": "3.296.0",
42
- "@aws-sdk/middleware-user-agent": "3.299.0",
43
- "@aws-sdk/node-config-provider": "3.300.0",
44
- "@aws-sdk/node-http-handler": "3.296.0",
45
- "@aws-sdk/protocol-http": "3.296.0",
46
- "@aws-sdk/smithy-client": "3.296.0",
47
- "@aws-sdk/types": "3.296.0",
48
- "@aws-sdk/url-parser": "3.296.0",
49
- "@aws-sdk/util-base64": "3.295.0",
50
- "@aws-sdk/util-body-length-browser": "3.295.0",
51
- "@aws-sdk/util-body-length-node": "3.295.0",
52
- "@aws-sdk/util-defaults-mode-browser": "3.296.0",
53
- "@aws-sdk/util-defaults-mode-node": "3.300.0",
54
- "@aws-sdk/util-endpoints": "3.296.0",
55
- "@aws-sdk/util-retry": "3.296.0",
56
- "@aws-sdk/util-user-agent-browser": "3.299.0",
57
- "@aws-sdk/util-user-agent-node": "3.300.0",
58
- "@aws-sdk/util-utf8": "3.295.0",
59
- "@aws-sdk/util-waiter": "3.296.0",
24
+ "@aws-sdk/client-sts": "3.303.0",
25
+ "@aws-sdk/config-resolver": "3.303.0",
26
+ "@aws-sdk/credential-provider-node": "3.303.0",
27
+ "@aws-sdk/eventstream-serde-browser": "3.303.0",
28
+ "@aws-sdk/eventstream-serde-config-resolver": "3.303.0",
29
+ "@aws-sdk/eventstream-serde-node": "3.303.0",
30
+ "@aws-sdk/fetch-http-handler": "3.303.0",
31
+ "@aws-sdk/hash-node": "3.303.0",
32
+ "@aws-sdk/invalid-dependency": "3.303.0",
33
+ "@aws-sdk/middleware-content-length": "3.303.0",
34
+ "@aws-sdk/middleware-endpoint": "3.303.0",
35
+ "@aws-sdk/middleware-host-header": "3.303.0",
36
+ "@aws-sdk/middleware-logger": "3.303.0",
37
+ "@aws-sdk/middleware-recursion-detection": "3.303.0",
38
+ "@aws-sdk/middleware-retry": "3.303.0",
39
+ "@aws-sdk/middleware-serde": "3.303.0",
40
+ "@aws-sdk/middleware-signing": "3.303.0",
41
+ "@aws-sdk/middleware-stack": "3.303.0",
42
+ "@aws-sdk/middleware-user-agent": "3.303.0",
43
+ "@aws-sdk/node-config-provider": "3.303.0",
44
+ "@aws-sdk/node-http-handler": "3.303.0",
45
+ "@aws-sdk/protocol-http": "3.303.0",
46
+ "@aws-sdk/smithy-client": "3.303.0",
47
+ "@aws-sdk/types": "3.303.0",
48
+ "@aws-sdk/url-parser": "3.303.0",
49
+ "@aws-sdk/util-base64": "3.303.0",
50
+ "@aws-sdk/util-body-length-browser": "3.303.0",
51
+ "@aws-sdk/util-body-length-node": "3.303.0",
52
+ "@aws-sdk/util-defaults-mode-browser": "3.303.0",
53
+ "@aws-sdk/util-defaults-mode-node": "3.303.0",
54
+ "@aws-sdk/util-endpoints": "3.303.0",
55
+ "@aws-sdk/util-retry": "3.303.0",
56
+ "@aws-sdk/util-user-agent-browser": "3.303.0",
57
+ "@aws-sdk/util-user-agent-node": "3.303.0",
58
+ "@aws-sdk/util-utf8": "3.303.0",
59
+ "@aws-sdk/util-waiter": "3.303.0",
60
60
  "tslib": "^2.5.0"
61
61
  },
62
62
  "devDependencies": {
63
- "@aws-sdk/service-client-documentation-generator": "3.295.0",
63
+ "@aws-sdk/service-client-documentation-generator": "3.303.0",
64
64
  "@tsconfig/node14": "1.0.3",
65
65
  "@types/node": "^14.14.31",
66
66
  "concurrently": "7.0.0",