@aws-sdk/client-kinesis 3.1137.0 → 3.1139.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 (29) hide show
  1. package/README.md +7 -0
  2. package/dist-cjs/index.js +36 -13
  3. package/dist-es/Kinesis.js +2 -0
  4. package/dist-es/commands/UpdateStreamRecordDistributionStrategyCommand.js +4 -0
  5. package/dist-es/commands/index.js +1 -0
  6. package/dist-es/models/enums.js +4 -0
  7. package/dist-es/schemas/schemas_0.js +23 -12
  8. package/dist-types/Kinesis.d.ts +102 -89
  9. package/dist-types/KinesisClient.d.ts +3 -2
  10. package/dist-types/commands/CreateStreamCommand.d.ts +1 -0
  11. package/dist-types/commands/DeleteChannelCommand.d.ts +1 -1
  12. package/dist-types/commands/DescribeStreamSummaryCommand.d.ts +1 -0
  13. package/dist-types/commands/GetRecordsCommand.d.ts +1 -1
  14. package/dist-types/commands/PutRecordCommand.d.ts +1 -1
  15. package/dist-types/commands/PutRecordsCommand.d.ts +1 -1
  16. package/dist-types/commands/SubscribeToShardCommand.d.ts +1 -1
  17. package/dist-types/commands/UpdateStreamRecordDistributionStrategyCommand.d.ts +127 -0
  18. package/dist-types/commands/index.d.ts +1 -0
  19. package/dist-types/models/enums.d.ts +12 -0
  20. package/dist-types/models/models_0.d.ts +107 -20
  21. package/dist-types/schemas/schemas_0.d.ts +2 -0
  22. package/dist-types/ts3.4/Kinesis.d.ts +109 -88
  23. package/dist-types/ts3.4/KinesisClient.d.ts +6 -0
  24. package/dist-types/ts3.4/commands/UpdateStreamRecordDistributionStrategyCommand.d.ts +38 -0
  25. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  26. package/dist-types/ts3.4/models/enums.d.ts +6 -0
  27. package/dist-types/ts3.4/models/models_0.d.ts +11 -3
  28. package/dist-types/ts3.4/schemas/schemas_0.d.ts +2 -0
  29. package/package.json +8 -8
@@ -191,6 +191,10 @@ import {
191
191
  UpdateStreamModeCommandInput,
192
192
  UpdateStreamModeCommandOutput,
193
193
  } from "./commands/UpdateStreamModeCommand";
194
+ import {
195
+ UpdateStreamRecordDistributionStrategyCommandInput,
196
+ UpdateStreamRecordDistributionStrategyCommandOutput,
197
+ } from "./commands/UpdateStreamRecordDistributionStrategyCommand";
194
198
  import {
195
199
  UpdateStreamWarmThroughputCommandInput,
196
200
  UpdateStreamWarmThroughputCommandOutput,
@@ -246,6 +250,7 @@ export type ServiceInputTypes =
246
250
  | UpdateMaxRecordSizeCommandInput
247
251
  | UpdateShardCountCommandInput
248
252
  | UpdateStreamModeCommandInput
253
+ | UpdateStreamRecordDistributionStrategyCommandInput
249
254
  | UpdateStreamWarmThroughputCommandInput;
250
255
  export type ServiceOutputTypes =
251
256
  | AddTagsToStreamCommandOutput
@@ -291,6 +296,7 @@ export type ServiceOutputTypes =
291
296
  | UpdateMaxRecordSizeCommandOutput
292
297
  | UpdateShardCountCommandOutput
293
298
  | UpdateStreamModeCommandOutput
299
+ | UpdateStreamRecordDistributionStrategyCommandOutput
294
300
  | UpdateStreamWarmThroughputCommandOutput;
295
301
  export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
296
302
  requestHandler?: __HttpHandlerUserInput;
@@ -0,0 +1,38 @@
1
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import { UpdateStreamRecordDistributionStrategyInput } from "../models/models_0";
3
+ export { __MetadataBearer };
4
+ export interface UpdateStreamRecordDistributionStrategyCommandInput extends UpdateStreamRecordDistributionStrategyInput {}
5
+ export interface UpdateStreamRecordDistributionStrategyCommandOutput extends __MetadataBearer {}
6
+ declare const UpdateStreamRecordDistributionStrategyCommand_base: {
7
+ new (
8
+ input: UpdateStreamRecordDistributionStrategyCommandInput,
9
+ ): import("@smithy/core/client").CommandImpl<
10
+ UpdateStreamRecordDistributionStrategyCommandInput,
11
+ UpdateStreamRecordDistributionStrategyCommandOutput,
12
+ import("..").KinesisClientResolvedConfig,
13
+ import("..").ServiceInputTypes,
14
+ import("..").ServiceOutputTypes
15
+ >;
16
+ new (
17
+ input: UpdateStreamRecordDistributionStrategyCommandInput,
18
+ ): import("@smithy/core/client").CommandImpl<
19
+ UpdateStreamRecordDistributionStrategyCommandInput,
20
+ UpdateStreamRecordDistributionStrategyCommandOutput,
21
+ import("..").KinesisClientResolvedConfig,
22
+ import("..").ServiceInputTypes,
23
+ import("..").ServiceOutputTypes
24
+ >;
25
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
26
+ };
27
+ export declare class UpdateStreamRecordDistributionStrategyCommand extends UpdateStreamRecordDistributionStrategyCommand_base {
28
+ protected static __types: {
29
+ api: {
30
+ input: UpdateStreamRecordDistributionStrategyInput;
31
+ output: {};
32
+ };
33
+ sdk: {
34
+ input: UpdateStreamRecordDistributionStrategyCommandInput;
35
+ output: UpdateStreamRecordDistributionStrategyCommandOutput;
36
+ };
37
+ };
38
+ }
@@ -41,4 +41,5 @@ export * from "./UpdateChannelCommand";
41
41
  export * from "./UpdateMaxRecordSizeCommand";
42
42
  export * from "./UpdateShardCountCommand";
43
43
  export * from "./UpdateStreamModeCommand";
44
+ export * from "./UpdateStreamRecordDistributionStrategyCommand";
44
45
  export * from "./UpdateStreamWarmThroughputCommand";
@@ -53,6 +53,12 @@ export declare const ConsumerStatus: {
53
53
  readonly DELETING: "DELETING";
54
54
  };
55
55
  export type ConsumerStatus = (typeof ConsumerStatus)[keyof typeof ConsumerStatus];
56
+ export declare const RecordDistributionStrategy: {
57
+ readonly AUTO: "AUTO";
58
+ readonly USER_PARTITION_KEY: "USER_PARTITION_KEY";
59
+ };
60
+ export type RecordDistributionStrategy =
61
+ (typeof RecordDistributionStrategy)[keyof typeof RecordDistributionStrategy];
56
62
  export declare const StreamMode: {
57
63
  readonly ON_DEMAND: "ON_DEMAND";
58
64
  readonly PROVISIONED: "PROVISIONED";
@@ -8,6 +8,7 @@ import {
8
8
  MinimumThroughputBillingCommitmentInputStatus,
9
9
  MinimumThroughputBillingCommitmentOutputStatus,
10
10
  PartitionTransform,
11
+ RecordDistributionStrategy,
11
12
  RecordFormatType,
12
13
  S3CompressionType,
13
14
  S3StorageClass,
@@ -187,6 +188,7 @@ export interface CreateStreamInput {
187
188
  Tags?: Record<string, string> | undefined;
188
189
  WarmThroughputMiBps?: number | undefined;
189
190
  MaxRecordSizeInKiB?: number | undefined;
191
+ RecordDistributionStrategy?: RecordDistributionStrategy | undefined;
190
192
  }
191
193
  export interface DecreaseStreamRetentionPeriodInput {
192
194
  StreamName?: string | undefined;
@@ -309,6 +311,7 @@ export interface StreamDescriptionSummary {
309
311
  WarmThroughput?: WarmThroughputObject | undefined;
310
312
  MaxRecordSizeInKiB?: number | undefined;
311
313
  ChannelCount?: number | undefined;
314
+ RecordDistributionStrategy?: RecordDistributionStrategy | undefined;
312
315
  }
313
316
  export interface DescribeStreamSummaryOutput {
314
317
  StreamDescriptionSummary: StreamDescriptionSummary | undefined;
@@ -342,7 +345,7 @@ export interface _Record {
342
345
  SequenceNumber: string | undefined;
343
346
  ApproximateArrivalTimestamp?: Date | undefined;
344
347
  Data: Uint8Array | undefined;
345
- PartitionKey: string | undefined;
348
+ PartitionKey?: string | undefined;
346
349
  EncryptionType?: EncryptionType | undefined;
347
350
  }
348
351
  export interface GetRecordsOutput {
@@ -470,7 +473,7 @@ export interface MergeShardsInput {
470
473
  export interface PutRecordInput {
471
474
  StreamName?: string | undefined;
472
475
  Data: Uint8Array | undefined;
473
- PartitionKey: string | undefined;
476
+ PartitionKey?: string | undefined;
474
477
  ExplicitHashKey?: string | undefined;
475
478
  SequenceNumberForOrdering?: string | undefined;
476
479
  StreamARN?: string | undefined;
@@ -485,7 +488,7 @@ export interface PutRecordOutput {
485
488
  export interface PutRecordsRequestEntry {
486
489
  Data: Uint8Array | undefined;
487
490
  ExplicitHashKey?: string | undefined;
488
- PartitionKey: string | undefined;
491
+ PartitionKey?: string | undefined;
489
492
  }
490
493
  export interface PutRecordsInput {
491
494
  Records: PutRecordsRequestEntry[] | undefined;
@@ -795,6 +798,11 @@ export interface UpdateStreamModeInput {
795
798
  StreamModeDetails: StreamModeDetails | undefined;
796
799
  WarmThroughputMiBps?: number | undefined;
797
800
  }
801
+ export interface UpdateStreamRecordDistributionStrategyInput {
802
+ StreamARN: string | undefined;
803
+ StreamId?: string | undefined;
804
+ RecordDistributionStrategy: RecordDistributionStrategy | undefined;
805
+ }
798
806
  export interface UpdateStreamWarmThroughputInput {
799
807
  StreamARN?: string | undefined;
800
808
  StreamName?: string | undefined;
@@ -134,6 +134,7 @@ export declare var UpdateMaxRecordSizeInput$: StaticStructureSchema;
134
134
  export declare var UpdateShardCountInput$: StaticStructureSchema;
135
135
  export declare var UpdateShardCountOutput$: StaticStructureSchema;
136
136
  export declare var UpdateStreamModeInput$: StaticStructureSchema;
137
+ export declare var UpdateStreamRecordDistributionStrategyInput$: StaticStructureSchema;
137
138
  export declare var UpdateStreamWarmThroughputInput$: StaticStructureSchema;
138
139
  export declare var UpdateStreamWarmThroughputOutput$: StaticStructureSchema;
139
140
  export declare var WarmThroughputObject$: StaticStructureSchema;
@@ -181,4 +182,5 @@ export declare var UpdateChannel$: StaticOperationSchema;
181
182
  export declare var UpdateMaxRecordSize$: StaticOperationSchema;
182
183
  export declare var UpdateShardCount$: StaticOperationSchema;
183
184
  export declare var UpdateStreamMode$: StaticOperationSchema;
185
+ export declare var UpdateStreamRecordDistributionStrategy$: StaticOperationSchema;
184
186
  export declare var UpdateStreamWarmThroughput$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-kinesis",
3
- "version": "3.1137.0",
3
+ "version": "3.1139.0",
4
4
  "description": "AWS SDK for JavaScript Kinesis Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-kinesis",
6
6
  "license": "Apache-2.0",
@@ -52,13 +52,13 @@
52
52
  "test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
53
53
  },
54
54
  "dependencies": {
55
- "@aws-sdk/core": "^3.978.0",
56
- "@aws-sdk/credential-provider-node": "^3.972.83",
57
- "@aws-sdk/types": "^3.974.5",
58
- "@smithy/core": "^3.33.3",
59
- "@smithy/fetch-http-handler": "^5.7.2",
60
- "@smithy/node-http-handler": "^4.11.3",
61
- "@smithy/types": "^4.17.2",
55
+ "@aws-sdk/core": "^3.978.1",
56
+ "@aws-sdk/credential-provider-node": "^3.972.84",
57
+ "@aws-sdk/types": "^3.974.6",
58
+ "@smithy/core": "^3.35.0",
59
+ "@smithy/fetch-http-handler": "^5.8.0",
60
+ "@smithy/node-http-handler": "^4.12.1",
61
+ "@smithy/types": "^4.19.0",
62
62
  "tslib": "^2.6.2"
63
63
  },
64
64
  "devDependencies": {