@aws-sdk/client-kinesis 3.231.0 → 3.232.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 (101) hide show
  1. package/dist-cjs/commands/AddTagsToStreamCommand.js +2 -0
  2. package/dist-cjs/commands/DecreaseStreamRetentionPeriodCommand.js +2 -0
  3. package/dist-cjs/commands/DeleteStreamCommand.js +2 -0
  4. package/dist-cjs/commands/DeregisterStreamConsumerCommand.js +3 -0
  5. package/dist-cjs/commands/DescribeStreamCommand.js +2 -0
  6. package/dist-cjs/commands/DescribeStreamConsumerCommand.js +3 -0
  7. package/dist-cjs/commands/DescribeStreamSummaryCommand.js +2 -0
  8. package/dist-cjs/commands/DisableEnhancedMonitoringCommand.js +2 -0
  9. package/dist-cjs/commands/EnableEnhancedMonitoringCommand.js +2 -0
  10. package/dist-cjs/commands/GetRecordsCommand.js +2 -0
  11. package/dist-cjs/commands/GetShardIteratorCommand.js +2 -0
  12. package/dist-cjs/commands/IncreaseStreamRetentionPeriodCommand.js +2 -0
  13. package/dist-cjs/commands/ListShardsCommand.js +2 -0
  14. package/dist-cjs/commands/ListStreamConsumersCommand.js +2 -0
  15. package/dist-cjs/commands/ListTagsForStreamCommand.js +2 -0
  16. package/dist-cjs/commands/MergeShardsCommand.js +2 -0
  17. package/dist-cjs/commands/PutRecordCommand.js +2 -0
  18. package/dist-cjs/commands/PutRecordsCommand.js +2 -0
  19. package/dist-cjs/commands/RegisterStreamConsumerCommand.js +2 -0
  20. package/dist-cjs/commands/RemoveTagsFromStreamCommand.js +2 -0
  21. package/dist-cjs/commands/SplitShardCommand.js +2 -0
  22. package/dist-cjs/commands/StartStreamEncryptionCommand.js +2 -0
  23. package/dist-cjs/commands/StopStreamEncryptionCommand.js +2 -0
  24. package/dist-cjs/commands/SubscribeToShardCommand.js +2 -0
  25. package/dist-cjs/commands/UpdateShardCountCommand.js +2 -0
  26. package/dist-cjs/commands/UpdateStreamModeCommand.js +2 -0
  27. package/dist-cjs/endpoint/ruleset.js +1069 -5
  28. package/dist-cjs/models/models_0.js +19 -2
  29. package/dist-cjs/pagination/ListStreamsPaginator.js +36 -0
  30. package/dist-cjs/pagination/index.js +1 -0
  31. package/dist-cjs/protocols/Aws_json1_1.js +143 -0
  32. package/dist-es/commands/AddTagsToStreamCommand.js +2 -0
  33. package/dist-es/commands/DecreaseStreamRetentionPeriodCommand.js +2 -0
  34. package/dist-es/commands/DeleteStreamCommand.js +2 -0
  35. package/dist-es/commands/DeregisterStreamConsumerCommand.js +3 -0
  36. package/dist-es/commands/DescribeStreamCommand.js +2 -0
  37. package/dist-es/commands/DescribeStreamConsumerCommand.js +3 -0
  38. package/dist-es/commands/DescribeStreamSummaryCommand.js +2 -0
  39. package/dist-es/commands/DisableEnhancedMonitoringCommand.js +2 -0
  40. package/dist-es/commands/EnableEnhancedMonitoringCommand.js +2 -0
  41. package/dist-es/commands/GetRecordsCommand.js +2 -0
  42. package/dist-es/commands/GetShardIteratorCommand.js +2 -0
  43. package/dist-es/commands/IncreaseStreamRetentionPeriodCommand.js +2 -0
  44. package/dist-es/commands/ListShardsCommand.js +2 -0
  45. package/dist-es/commands/ListStreamConsumersCommand.js +2 -0
  46. package/dist-es/commands/ListTagsForStreamCommand.js +2 -0
  47. package/dist-es/commands/MergeShardsCommand.js +2 -0
  48. package/dist-es/commands/PutRecordCommand.js +2 -0
  49. package/dist-es/commands/PutRecordsCommand.js +2 -0
  50. package/dist-es/commands/RegisterStreamConsumerCommand.js +2 -0
  51. package/dist-es/commands/RemoveTagsFromStreamCommand.js +2 -0
  52. package/dist-es/commands/SplitShardCommand.js +2 -0
  53. package/dist-es/commands/StartStreamEncryptionCommand.js +2 -0
  54. package/dist-es/commands/StopStreamEncryptionCommand.js +2 -0
  55. package/dist-es/commands/SubscribeToShardCommand.js +2 -0
  56. package/dist-es/commands/UpdateShardCountCommand.js +2 -0
  57. package/dist-es/commands/UpdateStreamModeCommand.js +2 -0
  58. package/dist-es/endpoint/ruleset.js +1069 -5
  59. package/dist-es/models/models_0.js +15 -0
  60. package/dist-es/pagination/ListStreamsPaginator.js +32 -0
  61. package/dist-es/pagination/index.js +1 -0
  62. package/dist-es/protocols/Aws_json1_1.js +144 -1
  63. package/dist-types/Kinesis.d.ts +213 -138
  64. package/dist-types/KinesisClient.d.ts +1 -1
  65. package/dist-types/commands/AddTagsToStreamCommand.d.ts +6 -2
  66. package/dist-types/commands/CreateStreamCommand.d.ts +19 -16
  67. package/dist-types/commands/DecreaseStreamRetentionPeriodCommand.d.ts +5 -1
  68. package/dist-types/commands/DeleteStreamCommand.d.ts +9 -6
  69. package/dist-types/commands/DeregisterStreamConsumerCommand.d.ts +1 -1
  70. package/dist-types/commands/DescribeLimitsCommand.d.ts +2 -2
  71. package/dist-types/commands/DescribeStreamCommand.d.ts +10 -7
  72. package/dist-types/commands/DescribeStreamConsumerCommand.d.ts +1 -1
  73. package/dist-types/commands/DescribeStreamSummaryCommand.d.ts +6 -2
  74. package/dist-types/commands/DisableEnhancedMonitoringCommand.d.ts +4 -0
  75. package/dist-types/commands/EnableEnhancedMonitoringCommand.d.ts +4 -0
  76. package/dist-types/commands/GetRecordsCommand.d.ts +11 -16
  77. package/dist-types/commands/GetShardIteratorCommand.d.ts +10 -6
  78. package/dist-types/commands/IncreaseStreamRetentionPeriodCommand.d.ts +5 -1
  79. package/dist-types/commands/ListShardsCommand.d.ts +7 -3
  80. package/dist-types/commands/ListStreamConsumersCommand.d.ts +1 -1
  81. package/dist-types/commands/ListStreamsCommand.d.ts +3 -3
  82. package/dist-types/commands/ListTagsForStreamCommand.d.ts +4 -0
  83. package/dist-types/commands/MergeShardsCommand.d.ts +13 -8
  84. package/dist-types/commands/PutRecordCommand.d.ts +14 -10
  85. package/dist-types/commands/PutRecordsCommand.d.ts +16 -12
  86. package/dist-types/commands/RegisterStreamConsumerCommand.d.ts +3 -3
  87. package/dist-types/commands/RemoveTagsFromStreamCommand.d.ts +6 -2
  88. package/dist-types/commands/SplitShardCommand.d.ts +15 -10
  89. package/dist-types/commands/StartStreamEncryptionCommand.d.ts +7 -3
  90. package/dist-types/commands/StopStreamEncryptionCommand.d.ts +7 -3
  91. package/dist-types/commands/SubscribeToShardCommand.d.ts +4 -4
  92. package/dist-types/commands/UpdateShardCountCommand.d.ts +19 -14
  93. package/dist-types/endpoint/EndpointParameters.d.ts +4 -1
  94. package/dist-types/models/models_0.d.ts +351 -214
  95. package/dist-types/pagination/ListStreamsPaginator.d.ts +4 -0
  96. package/dist-types/pagination/index.d.ts +1 -0
  97. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +4 -1
  98. package/dist-types/ts3.4/models/models_0.d.ts +60 -18
  99. package/dist-types/ts3.4/pagination/ListStreamsPaginator.d.ts +11 -0
  100. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  101. package/package.json +1 -1
@@ -0,0 +1,4 @@
1
+ import { Paginator } from "@aws-sdk/types";
2
+ import { ListStreamsCommandInput, ListStreamsCommandOutput } from "../commands/ListStreamsCommand";
3
+ import { KinesisPaginationConfiguration } from "./Interfaces";
4
+ export declare function paginateListStreams(config: KinesisPaginationConfiguration, input: ListStreamsCommandInput, ...additionalArguments: any): Paginator<ListStreamsCommandOutput>;
@@ -1,2 +1,3 @@
1
1
  export * from "./Interfaces";
2
2
  export * from "./ListStreamConsumersPaginator";
3
+ export * from "./ListStreamsPaginator";
@@ -27,8 +27,11 @@ export declare const resolveClientEndpointParameters: <T>(
27
27
  defaultSigningName: string;
28
28
  };
29
29
  export interface EndpointParameters extends __EndpointParameters {
30
- Region?: string;
30
+ Region: string;
31
31
  UseDualStack?: boolean;
32
32
  UseFIPS?: boolean;
33
33
  Endpoint?: string;
34
+ StreamARN?: string;
35
+ OperationType?: string;
36
+ ConsumerARN?: string;
34
37
  }
@@ -1,8 +1,16 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
2
  import { KinesisServiceException as __BaseException } from "./KinesisServiceException";
3
+ export declare class AccessDeniedException extends __BaseException {
4
+ readonly name: "AccessDeniedException";
5
+ readonly $fault: "client";
6
+ constructor(
7
+ opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
8
+ );
9
+ }
3
10
  export interface AddTagsToStreamInput {
4
- StreamName: string | undefined;
11
+ StreamName?: string;
5
12
  Tags: Record<string, string> | undefined;
13
+ StreamARN?: string;
6
14
  }
7
15
  export declare class InvalidArgumentException extends __BaseException {
8
16
  readonly name: "InvalidArgumentException";
@@ -72,12 +80,14 @@ export interface CreateStreamInput {
72
80
  StreamModeDetails?: StreamModeDetails;
73
81
  }
74
82
  export interface DecreaseStreamRetentionPeriodInput {
75
- StreamName: string | undefined;
83
+ StreamName?: string;
76
84
  RetentionPeriodHours: number | undefined;
85
+ StreamARN?: string;
77
86
  }
78
87
  export interface DeleteStreamInput {
79
- StreamName: string | undefined;
88
+ StreamName?: string;
80
89
  EnforceConsumerDeletion?: boolean;
90
+ StreamARN?: string;
81
91
  }
82
92
  export interface DeregisterStreamConsumerInput {
83
93
  StreamARN?: string;
@@ -92,9 +102,10 @@ export interface DescribeLimitsOutput {
92
102
  OnDemandStreamCountLimit: number | undefined;
93
103
  }
94
104
  export interface DescribeStreamInput {
95
- StreamName: string | undefined;
105
+ StreamName?: string;
96
106
  Limit?: number;
97
107
  ExclusiveStartShardId?: string;
108
+ StreamARN?: string;
98
109
  }
99
110
  export declare enum EncryptionType {
100
111
  KMS = "KMS",
@@ -155,7 +166,8 @@ export interface DescribeStreamConsumerOutput {
155
166
  ConsumerDescription: ConsumerDescription | undefined;
156
167
  }
157
168
  export interface DescribeStreamSummaryInput {
158
- StreamName: string | undefined;
169
+ StreamName?: string;
170
+ StreamARN?: string;
159
171
  }
160
172
  export interface StreamDescriptionSummary {
161
173
  StreamName: string | undefined;
@@ -174,17 +186,20 @@ export interface DescribeStreamSummaryOutput {
174
186
  StreamDescriptionSummary: StreamDescriptionSummary | undefined;
175
187
  }
176
188
  export interface DisableEnhancedMonitoringInput {
177
- StreamName: string | undefined;
189
+ StreamName?: string;
178
190
  ShardLevelMetrics: (MetricsName | string)[] | undefined;
191
+ StreamARN?: string;
179
192
  }
180
193
  export interface EnhancedMonitoringOutput {
181
194
  StreamName?: string;
182
195
  CurrentShardLevelMetrics?: (MetricsName | string)[];
183
196
  DesiredShardLevelMetrics?: (MetricsName | string)[];
197
+ StreamARN?: string;
184
198
  }
185
199
  export interface EnableEnhancedMonitoringInput {
186
- StreamName: string | undefined;
200
+ StreamName?: string;
187
201
  ShardLevelMetrics: (MetricsName | string)[] | undefined;
202
+ StreamARN?: string;
188
203
  }
189
204
  export declare class ExpiredIteratorException extends __BaseException {
190
205
  readonly name: "ExpiredIteratorException";
@@ -203,6 +218,7 @@ export declare class ExpiredNextTokenException extends __BaseException {
203
218
  export interface GetRecordsInput {
204
219
  ShardIterator: string | undefined;
205
220
  Limit?: number;
221
+ StreamARN?: string;
206
222
  }
207
223
  export interface _Record {
208
224
  SequenceNumber: string | undefined;
@@ -275,18 +291,20 @@ export declare enum ShardIteratorType {
275
291
  TRIM_HORIZON = "TRIM_HORIZON",
276
292
  }
277
293
  export interface GetShardIteratorInput {
278
- StreamName: string | undefined;
294
+ StreamName?: string;
279
295
  ShardId: string | undefined;
280
296
  ShardIteratorType: ShardIteratorType | string | undefined;
281
297
  StartingSequenceNumber?: string;
282
298
  Timestamp?: Date;
299
+ StreamARN?: string;
283
300
  }
284
301
  export interface GetShardIteratorOutput {
285
302
  ShardIterator?: string;
286
303
  }
287
304
  export interface IncreaseStreamRetentionPeriodInput {
288
- StreamName: string | undefined;
305
+ StreamName?: string;
289
306
  RetentionPeriodHours: number | undefined;
307
+ StreamARN?: string;
290
308
  }
291
309
  export declare class InternalFailureException extends __BaseException {
292
310
  readonly name: "InternalFailureException";
@@ -315,6 +333,7 @@ export interface ListShardsInput {
315
333
  MaxResults?: number;
316
334
  StreamCreationTimestamp?: Date;
317
335
  ShardFilter?: ShardFilter;
336
+ StreamARN?: string;
318
337
  }
319
338
  export interface ListShardsOutput {
320
339
  Shards?: Shard[];
@@ -333,15 +352,26 @@ export interface ListStreamConsumersOutput {
333
352
  export interface ListStreamsInput {
334
353
  Limit?: number;
335
354
  ExclusiveStartStreamName?: string;
355
+ NextToken?: string;
356
+ }
357
+ export interface StreamSummary {
358
+ StreamName: string | undefined;
359
+ StreamARN: string | undefined;
360
+ StreamStatus: StreamStatus | string | undefined;
361
+ StreamModeDetails?: StreamModeDetails;
362
+ StreamCreationTimestamp?: Date;
336
363
  }
337
364
  export interface ListStreamsOutput {
338
365
  StreamNames: string[] | undefined;
339
366
  HasMoreStreams: boolean | undefined;
367
+ NextToken?: string;
368
+ StreamSummaries?: StreamSummary[];
340
369
  }
341
370
  export interface ListTagsForStreamInput {
342
- StreamName: string | undefined;
371
+ StreamName?: string;
343
372
  ExclusiveStartTagKey?: string;
344
373
  Limit?: number;
374
+ StreamARN?: string;
345
375
  }
346
376
  export interface Tag {
347
377
  Key: string | undefined;
@@ -352,9 +382,10 @@ export interface ListTagsForStreamOutput {
352
382
  HasMoreTags: boolean | undefined;
353
383
  }
354
384
  export interface MergeShardsInput {
355
- StreamName: string | undefined;
385
+ StreamName?: string;
356
386
  ShardToMerge: string | undefined;
357
387
  AdjacentShardToMerge: string | undefined;
388
+ StreamARN?: string;
358
389
  }
359
390
  export declare class ValidationException extends __BaseException {
360
391
  readonly name: "ValidationException";
@@ -364,11 +395,12 @@ export declare class ValidationException extends __BaseException {
364
395
  );
365
396
  }
366
397
  export interface PutRecordInput {
367
- StreamName: string | undefined;
398
+ StreamName?: string;
368
399
  Data: Uint8Array | undefined;
369
400
  PartitionKey: string | undefined;
370
401
  ExplicitHashKey?: string;
371
402
  SequenceNumberForOrdering?: string;
403
+ StreamARN?: string;
372
404
  }
373
405
  export interface PutRecordOutput {
374
406
  ShardId: string | undefined;
@@ -382,7 +414,8 @@ export interface PutRecordsRequestEntry {
382
414
  }
383
415
  export interface PutRecordsInput {
384
416
  Records: PutRecordsRequestEntry[] | undefined;
385
- StreamName: string | undefined;
417
+ StreamName?: string;
418
+ StreamARN?: string;
386
419
  }
387
420
  export interface PutRecordsResultEntry {
388
421
  SequenceNumber?: string;
@@ -403,23 +436,27 @@ export interface RegisterStreamConsumerOutput {
403
436
  Consumer: Consumer | undefined;
404
437
  }
405
438
  export interface RemoveTagsFromStreamInput {
406
- StreamName: string | undefined;
439
+ StreamName?: string;
407
440
  TagKeys: string[] | undefined;
441
+ StreamARN?: string;
408
442
  }
409
443
  export interface SplitShardInput {
410
- StreamName: string | undefined;
444
+ StreamName?: string;
411
445
  ShardToSplit: string | undefined;
412
446
  NewStartingHashKey: string | undefined;
447
+ StreamARN?: string;
413
448
  }
414
449
  export interface StartStreamEncryptionInput {
415
- StreamName: string | undefined;
450
+ StreamName?: string;
416
451
  EncryptionType: EncryptionType | string | undefined;
417
452
  KeyId: string | undefined;
453
+ StreamARN?: string;
418
454
  }
419
455
  export interface StopStreamEncryptionInput {
420
- StreamName: string | undefined;
456
+ StreamName?: string;
421
457
  EncryptionType: EncryptionType | string | undefined;
422
458
  KeyId: string | undefined;
459
+ StreamARN?: string;
423
460
  }
424
461
  export interface StartingPosition {
425
462
  Type: ShardIteratorType | string | undefined;
@@ -618,14 +655,16 @@ export declare enum ScalingType {
618
655
  UNIFORM_SCALING = "UNIFORM_SCALING",
619
656
  }
620
657
  export interface UpdateShardCountInput {
621
- StreamName: string | undefined;
658
+ StreamName?: string;
622
659
  TargetShardCount: number | undefined;
623
660
  ScalingType: ScalingType | string | undefined;
661
+ StreamARN?: string;
624
662
  }
625
663
  export interface UpdateShardCountOutput {
626
664
  StreamName?: string;
627
665
  CurrentShardCount?: number;
628
666
  TargetShardCount?: number;
667
+ StreamARN?: string;
629
668
  }
630
669
  export interface UpdateStreamModeInput {
631
670
  StreamARN: string | undefined;
@@ -733,6 +772,9 @@ export declare const ListStreamConsumersOutputFilterSensitiveLog: (
733
772
  export declare const ListStreamsInputFilterSensitiveLog: (
734
773
  obj: ListStreamsInput
735
774
  ) => any;
775
+ export declare const StreamSummaryFilterSensitiveLog: (
776
+ obj: StreamSummary
777
+ ) => any;
736
778
  export declare const ListStreamsOutputFilterSensitiveLog: (
737
779
  obj: ListStreamsOutput
738
780
  ) => any;
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@aws-sdk/types";
2
+ import {
3
+ ListStreamsCommandInput,
4
+ ListStreamsCommandOutput,
5
+ } from "../commands/ListStreamsCommand";
6
+ import { KinesisPaginationConfiguration } from "./Interfaces";
7
+ export declare function paginateListStreams(
8
+ config: KinesisPaginationConfiguration,
9
+ input: ListStreamsCommandInput,
10
+ ...additionalArguments: any
11
+ ): Paginator<ListStreamsCommandOutput>;
@@ -1,2 +1,3 @@
1
1
  export * from "./Interfaces";
2
2
  export * from "./ListStreamConsumersPaginator";
3
+ export * from "./ListStreamsPaginator";
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.231.0",
4
+ "version": "3.232.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",