@aws-sdk/client-kinesis 3.1138.0 → 3.1140.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/README.md +7 -0
- package/dist-cjs/index.js +34 -11
- package/dist-es/Kinesis.js +2 -0
- package/dist-es/commands/UpdateStreamRecordDistributionStrategyCommand.js +4 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/enums.js +4 -0
- package/dist-es/schemas/schemas_0.js +21 -10
- package/dist-types/Kinesis.d.ts +7 -0
- package/dist-types/KinesisClient.d.ts +3 -2
- package/dist-types/commands/CreateStreamCommand.d.ts +1 -0
- package/dist-types/commands/DeleteChannelCommand.d.ts +1 -1
- package/dist-types/commands/DescribeStreamSummaryCommand.d.ts +1 -0
- package/dist-types/commands/GetRecordsCommand.d.ts +1 -1
- package/dist-types/commands/PutRecordCommand.d.ts +1 -1
- package/dist-types/commands/PutRecordsCommand.d.ts +1 -1
- package/dist-types/commands/SubscribeToShardCommand.d.ts +1 -1
- package/dist-types/commands/UpdateStreamRecordDistributionStrategyCommand.d.ts +127 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/enums.d.ts +12 -0
- package/dist-types/models/models_0.d.ts +107 -20
- package/dist-types/schemas/schemas_0.d.ts +2 -0
- package/dist-types/ts3.4/Kinesis.d.ts +17 -0
- package/dist-types/ts3.4/KinesisClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/UpdateStreamRecordDistributionStrategyCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/enums.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +11 -3
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -484,6 +484,13 @@ UpdateStreamMode
|
|
|
484
484
|
</details>
|
|
485
485
|
<details>
|
|
486
486
|
<summary>
|
|
487
|
+
UpdateStreamRecordDistributionStrategy
|
|
488
|
+
</summary>
|
|
489
|
+
|
|
490
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/kinesis/command/UpdateStreamRecordDistributionStrategyCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-kinesis/Interface/UpdateStreamRecordDistributionStrategyCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-kinesis/Interface/UpdateStreamRecordDistributionStrategyCommandOutput/)
|
|
491
|
+
</details>
|
|
492
|
+
<details>
|
|
493
|
+
<summary>
|
|
487
494
|
UpdateStreamWarmThroughput
|
|
488
495
|
</summary>
|
|
489
496
|
|
package/dist-cjs/index.js
CHANGED
|
@@ -73,7 +73,7 @@ const commonParams = {
|
|
|
73
73
|
AccountIdEndpointMode: { type: "builtInParams", name: "accountIdEndpointMode" },
|
|
74
74
|
};
|
|
75
75
|
|
|
76
|
-
var version = "3.
|
|
76
|
+
var version = "3.1139.0";
|
|
77
77
|
var packageInfo = {
|
|
78
78
|
version: version};
|
|
79
79
|
|
|
@@ -830,6 +830,7 @@ const _PTEE = "ProvisionedThroughputExceededException";
|
|
|
830
830
|
const _R = "Records";
|
|
831
831
|
const _RARN = "ResourceARN";
|
|
832
832
|
const _RC = "RecordConfiguration";
|
|
833
|
+
const _RDS = "RecordDistributionStrategy";
|
|
833
834
|
const _RFT = "RecordFormatType";
|
|
834
835
|
const _RIUE = "ResourceInUseException";
|
|
835
836
|
const _RL = "RecordList";
|
|
@@ -931,6 +932,8 @@ const _USCI = "UpdateShardCountInput";
|
|
|
931
932
|
const _USCO = "UpdateShardCountOutput";
|
|
932
933
|
const _USM = "UpdateStreamMode";
|
|
933
934
|
const _USMI = "UpdateStreamModeInput";
|
|
935
|
+
const _USRDS = "UpdateStreamRecordDistributionStrategy";
|
|
936
|
+
const _USRDSI = "UpdateStreamRecordDistributionStrategyInput";
|
|
934
937
|
const _USWT = "UpdateStreamWarmThroughput";
|
|
935
938
|
const _USWTI = "UpdateStreamWarmThroughputInput";
|
|
936
939
|
const _USWTO = "UpdateStreamWarmThroughputOutput";
|
|
@@ -1138,8 +1141,8 @@ var CreateChannelOutput$ = [3, n0, _CCO,
|
|
|
1138
1141
|
];
|
|
1139
1142
|
var CreateStreamInput$ = [3, n0, _CSIr,
|
|
1140
1143
|
0,
|
|
1141
|
-
[_SN, _SC, _SMD, _T, _WTMB, _MRSIKB],
|
|
1142
|
-
[0, 1, () => StreamModeDetails$, 128 | 0, 1, 1], 1
|
|
1144
|
+
[_SN, _SC, _SMD, _T, _WTMB, _MRSIKB, _RDS],
|
|
1145
|
+
[0, 1, () => StreamModeDetails$, 128 | 0, 1, 1, 0], 1
|
|
1143
1146
|
];
|
|
1144
1147
|
var DeadLetterQueueS3Configuration$ = [3, n0, _DLQSC,
|
|
1145
1148
|
0,
|
|
@@ -1378,8 +1381,8 @@ var PartitionSpec$ = [3, n0, _PSa,
|
|
|
1378
1381
|
];
|
|
1379
1382
|
var PutRecordInput$ = [3, n0, _PRI,
|
|
1380
1383
|
0,
|
|
1381
|
-
[_D,
|
|
1382
|
-
[21, 0, 0, 0, 0, 0, 0, 2],
|
|
1384
|
+
[_D, _SN, _PK, _EHKx, _SNFO, _SARN, _SI, _DR],
|
|
1385
|
+
[21, 0, 0, 0, 0, 0, 0, 2], 1
|
|
1383
1386
|
];
|
|
1384
1387
|
var PutRecordOutput$ = [3, n0, _PRO,
|
|
1385
1388
|
0,
|
|
@@ -1398,8 +1401,8 @@ var PutRecordsOutput$ = [3, n0, _PROu,
|
|
|
1398
1401
|
];
|
|
1399
1402
|
var PutRecordsRequestEntry$ = [3, n0, _PRRE,
|
|
1400
1403
|
0,
|
|
1401
|
-
[_D,
|
|
1402
|
-
[21, 0, 0],
|
|
1404
|
+
[_D, _EHKx, _PK],
|
|
1405
|
+
[21, 0, 0], 1
|
|
1403
1406
|
];
|
|
1404
1407
|
var PutRecordsResultEntry$ = [3, n0, _PRREu,
|
|
1405
1408
|
0,
|
|
@@ -1413,8 +1416,8 @@ var PutResourcePolicyInput$ = [3, n0, _PRPI,
|
|
|
1413
1416
|
];
|
|
1414
1417
|
var _Record$ = [3, n0, _Re,
|
|
1415
1418
|
0,
|
|
1416
|
-
[_SNe, _D,
|
|
1417
|
-
[0, 21,
|
|
1419
|
+
[_SNe, _D, _AAT, _PK, _ET],
|
|
1420
|
+
[0, 21, 4, 0, 0], 2
|
|
1418
1421
|
];
|
|
1419
1422
|
var RecordConfiguration$ = [3, n0, _RC,
|
|
1420
1423
|
0,
|
|
@@ -1518,8 +1521,8 @@ var StreamDescription$ = [3, n0, _SD,
|
|
|
1518
1521
|
];
|
|
1519
1522
|
var StreamDescriptionSummary$ = [3, n0, _SDS,
|
|
1520
1523
|
0,
|
|
1521
|
-
[_SN, _SARN, _SSt, _RPH, _SCT, _EMn, _OSC, _SI, _SMD, _ET, _KI, _CCo, _WT, _MRSIKB, _CC],
|
|
1522
|
-
[0, 0, 0, 1, 4, () => EnhancedMonitoringList, 1, 0, () => StreamModeDetails$, 0, 0, 1, () => WarmThroughputObject$, 1, 1], 7
|
|
1524
|
+
[_SN, _SARN, _SSt, _RPH, _SCT, _EMn, _OSC, _SI, _SMD, _ET, _KI, _CCo, _WT, _MRSIKB, _CC, _RDS],
|
|
1525
|
+
[0, 0, 0, 1, 4, () => EnhancedMonitoringList, 1, 0, () => StreamModeDetails$, 0, 0, 1, () => WarmThroughputObject$, 1, 1, 0], 7
|
|
1523
1526
|
];
|
|
1524
1527
|
var StreamFilter$ = [3, n0, _SF,
|
|
1525
1528
|
0,
|
|
@@ -1606,6 +1609,11 @@ var UpdateStreamModeInput$ = [3, n0, _USMI,
|
|
|
1606
1609
|
[_SARN, _SMD, _SI, _WTMB],
|
|
1607
1610
|
[0, () => StreamModeDetails$, 0, 1], 2
|
|
1608
1611
|
];
|
|
1612
|
+
var UpdateStreamRecordDistributionStrategyInput$ = [3, n0, _USRDSI,
|
|
1613
|
+
0,
|
|
1614
|
+
[_SARN, _RDS, _SI],
|
|
1615
|
+
[0, 0, 0], 2
|
|
1616
|
+
];
|
|
1609
1617
|
var UpdateStreamWarmThroughputInput$ = [3, n0, _USWTI,
|
|
1610
1618
|
0,
|
|
1611
1619
|
[_WTMB, _SARN, _SN, _SI],
|
|
@@ -1804,6 +1812,9 @@ var UpdateShardCount$ = [9, n0, _USC,
|
|
|
1804
1812
|
var UpdateStreamMode$ = [9, n0, _USM,
|
|
1805
1813
|
0, () => UpdateStreamModeInput$, () => __Unit
|
|
1806
1814
|
];
|
|
1815
|
+
var UpdateStreamRecordDistributionStrategy$ = [9, n0, _USRDS,
|
|
1816
|
+
0, () => UpdateStreamRecordDistributionStrategyInput$, () => __Unit
|
|
1817
|
+
];
|
|
1807
1818
|
var UpdateStreamWarmThroughput$ = [9, n0, _USWT,
|
|
1808
1819
|
0, () => UpdateStreamWarmThroughputInput$, () => UpdateStreamWarmThroughputOutput$
|
|
1809
1820
|
];
|
|
@@ -2127,6 +2138,9 @@ class UpdateShardCountCommand extends command(_ep0, _mw0, "UpdateShardCount", Up
|
|
|
2127
2138
|
class UpdateStreamModeCommand extends command(_ep0, _mw0, "UpdateStreamMode", UpdateStreamMode$) {
|
|
2128
2139
|
}
|
|
2129
2140
|
|
|
2141
|
+
class UpdateStreamRecordDistributionStrategyCommand extends command(_ep0, _mw0, "UpdateStreamRecordDistributionStrategy", UpdateStreamRecordDistributionStrategy$) {
|
|
2142
|
+
}
|
|
2143
|
+
|
|
2130
2144
|
class UpdateStreamWarmThroughputCommand extends command(_ep0, _mw0, "UpdateStreamWarmThroughput", UpdateStreamWarmThroughput$) {
|
|
2131
2145
|
}
|
|
2132
2146
|
|
|
@@ -2300,6 +2314,7 @@ const commands = {
|
|
|
2300
2314
|
UpdateMaxRecordSizeCommand,
|
|
2301
2315
|
UpdateShardCountCommand,
|
|
2302
2316
|
UpdateStreamModeCommand,
|
|
2317
|
+
UpdateStreamRecordDistributionStrategyCommand,
|
|
2303
2318
|
UpdateStreamWarmThroughputCommand,
|
|
2304
2319
|
};
|
|
2305
2320
|
const paginators = {
|
|
@@ -2359,6 +2374,10 @@ const ConsumerStatus = {
|
|
|
2359
2374
|
CREATING: "CREATING",
|
|
2360
2375
|
DELETING: "DELETING",
|
|
2361
2376
|
};
|
|
2377
|
+
const RecordDistributionStrategy = {
|
|
2378
|
+
AUTO: "AUTO",
|
|
2379
|
+
USER_PARTITION_KEY: "USER_PARTITION_KEY",
|
|
2380
|
+
};
|
|
2362
2381
|
const StreamMode = {
|
|
2363
2382
|
ON_DEMAND: "ON_DEMAND",
|
|
2364
2383
|
PROVISIONED: "PROVISIONED",
|
|
@@ -2584,6 +2603,7 @@ exports.PutResourcePolicy$ = PutResourcePolicy$;
|
|
|
2584
2603
|
exports.PutResourcePolicyCommand = PutResourcePolicyCommand;
|
|
2585
2604
|
exports.PutResourcePolicyInput$ = PutResourcePolicyInput$;
|
|
2586
2605
|
exports.RecordConfiguration$ = RecordConfiguration$;
|
|
2606
|
+
exports.RecordDistributionStrategy = RecordDistributionStrategy;
|
|
2587
2607
|
exports.RecordFormatType = RecordFormatType;
|
|
2588
2608
|
exports.RegisterStreamConsumer$ = RegisterStreamConsumer$;
|
|
2589
2609
|
exports.RegisterStreamConsumerCommand = RegisterStreamConsumerCommand;
|
|
@@ -2661,6 +2681,9 @@ exports.UpdateShardCountOutput$ = UpdateShardCountOutput$;
|
|
|
2661
2681
|
exports.UpdateStreamMode$ = UpdateStreamMode$;
|
|
2662
2682
|
exports.UpdateStreamModeCommand = UpdateStreamModeCommand;
|
|
2663
2683
|
exports.UpdateStreamModeInput$ = UpdateStreamModeInput$;
|
|
2684
|
+
exports.UpdateStreamRecordDistributionStrategy$ = UpdateStreamRecordDistributionStrategy$;
|
|
2685
|
+
exports.UpdateStreamRecordDistributionStrategyCommand = UpdateStreamRecordDistributionStrategyCommand;
|
|
2686
|
+
exports.UpdateStreamRecordDistributionStrategyInput$ = UpdateStreamRecordDistributionStrategyInput$;
|
|
2664
2687
|
exports.UpdateStreamWarmThroughput$ = UpdateStreamWarmThroughput$;
|
|
2665
2688
|
exports.UpdateStreamWarmThroughputCommand = UpdateStreamWarmThroughputCommand;
|
|
2666
2689
|
exports.UpdateStreamWarmThroughputInput$ = UpdateStreamWarmThroughputInput$;
|
package/dist-es/Kinesis.js
CHANGED
|
@@ -42,6 +42,7 @@ import { UpdateChannelCommand, } from "./commands/UpdateChannelCommand";
|
|
|
42
42
|
import { UpdateMaxRecordSizeCommand, } from "./commands/UpdateMaxRecordSizeCommand";
|
|
43
43
|
import { UpdateShardCountCommand, } from "./commands/UpdateShardCountCommand";
|
|
44
44
|
import { UpdateStreamModeCommand, } from "./commands/UpdateStreamModeCommand";
|
|
45
|
+
import { UpdateStreamRecordDistributionStrategyCommand, } from "./commands/UpdateStreamRecordDistributionStrategyCommand";
|
|
45
46
|
import { UpdateStreamWarmThroughputCommand, } from "./commands/UpdateStreamWarmThroughputCommand";
|
|
46
47
|
import { KinesisClient } from "./KinesisClient";
|
|
47
48
|
import { paginateListChannels } from "./pagination/ListChannelsPaginator";
|
|
@@ -94,6 +95,7 @@ const commands = {
|
|
|
94
95
|
UpdateMaxRecordSizeCommand,
|
|
95
96
|
UpdateShardCountCommand,
|
|
96
97
|
UpdateStreamModeCommand,
|
|
98
|
+
UpdateStreamRecordDistributionStrategyCommand,
|
|
97
99
|
UpdateStreamWarmThroughputCommand,
|
|
98
100
|
};
|
|
99
101
|
const paginators = {
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { _ep0, _mw0, command } from "../commandBuilder";
|
|
2
|
+
import { UpdateStreamRecordDistributionStrategy$ } from "../schemas/schemas_0";
|
|
3
|
+
export class UpdateStreamRecordDistributionStrategyCommand extends command(_ep0, _mw0, "UpdateStreamRecordDistributionStrategy", UpdateStreamRecordDistributionStrategy$) {
|
|
4
|
+
}
|
|
@@ -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";
|
package/dist-es/models/enums.js
CHANGED
|
@@ -41,6 +41,10 @@ export const ConsumerStatus = {
|
|
|
41
41
|
CREATING: "CREATING",
|
|
42
42
|
DELETING: "DELETING",
|
|
43
43
|
};
|
|
44
|
+
export const RecordDistributionStrategy = {
|
|
45
|
+
AUTO: "AUTO",
|
|
46
|
+
USER_PARTITION_KEY: "USER_PARTITION_KEY",
|
|
47
|
+
};
|
|
44
48
|
export const StreamMode = {
|
|
45
49
|
ON_DEMAND: "ON_DEMAND",
|
|
46
50
|
PROVISIONED: "PROVISIONED",
|
|
@@ -202,6 +202,7 @@ const _PTEE = "ProvisionedThroughputExceededException";
|
|
|
202
202
|
const _R = "Records";
|
|
203
203
|
const _RARN = "ResourceARN";
|
|
204
204
|
const _RC = "RecordConfiguration";
|
|
205
|
+
const _RDS = "RecordDistributionStrategy";
|
|
205
206
|
const _RFT = "RecordFormatType";
|
|
206
207
|
const _RIUE = "ResourceInUseException";
|
|
207
208
|
const _RL = "RecordList";
|
|
@@ -303,6 +304,8 @@ const _USCI = "UpdateShardCountInput";
|
|
|
303
304
|
const _USCO = "UpdateShardCountOutput";
|
|
304
305
|
const _USM = "UpdateStreamMode";
|
|
305
306
|
const _USMI = "UpdateStreamModeInput";
|
|
307
|
+
const _USRDS = "UpdateStreamRecordDistributionStrategy";
|
|
308
|
+
const _USRDSI = "UpdateStreamRecordDistributionStrategyInput";
|
|
306
309
|
const _USWT = "UpdateStreamWarmThroughput";
|
|
307
310
|
const _USWTI = "UpdateStreamWarmThroughputInput";
|
|
308
311
|
const _USWTO = "UpdateStreamWarmThroughputOutput";
|
|
@@ -513,8 +516,8 @@ export var CreateChannelOutput$ = [3, n0, _CCO,
|
|
|
513
516
|
];
|
|
514
517
|
export var CreateStreamInput$ = [3, n0, _CSIr,
|
|
515
518
|
0,
|
|
516
|
-
[_SN, _SC, _SMD, _T, _WTMB, _MRSIKB],
|
|
517
|
-
[0, 1, () => StreamModeDetails$, 128 | 0, 1, 1], 1
|
|
519
|
+
[_SN, _SC, _SMD, _T, _WTMB, _MRSIKB, _RDS],
|
|
520
|
+
[0, 1, () => StreamModeDetails$, 128 | 0, 1, 1, 0], 1
|
|
518
521
|
];
|
|
519
522
|
export var DeadLetterQueueS3Configuration$ = [3, n0, _DLQSC,
|
|
520
523
|
0,
|
|
@@ -753,8 +756,8 @@ export var PartitionSpec$ = [3, n0, _PSa,
|
|
|
753
756
|
];
|
|
754
757
|
export var PutRecordInput$ = [3, n0, _PRI,
|
|
755
758
|
0,
|
|
756
|
-
[_D,
|
|
757
|
-
[21, 0, 0, 0, 0, 0, 0, 2],
|
|
759
|
+
[_D, _SN, _PK, _EHKx, _SNFO, _SARN, _SI, _DR],
|
|
760
|
+
[21, 0, 0, 0, 0, 0, 0, 2], 1
|
|
758
761
|
];
|
|
759
762
|
export var PutRecordOutput$ = [3, n0, _PRO,
|
|
760
763
|
0,
|
|
@@ -773,8 +776,8 @@ export var PutRecordsOutput$ = [3, n0, _PROu,
|
|
|
773
776
|
];
|
|
774
777
|
export var PutRecordsRequestEntry$ = [3, n0, _PRRE,
|
|
775
778
|
0,
|
|
776
|
-
[_D,
|
|
777
|
-
[21, 0, 0],
|
|
779
|
+
[_D, _EHKx, _PK],
|
|
780
|
+
[21, 0, 0], 1
|
|
778
781
|
];
|
|
779
782
|
export var PutRecordsResultEntry$ = [3, n0, _PRREu,
|
|
780
783
|
0,
|
|
@@ -788,8 +791,8 @@ export var PutResourcePolicyInput$ = [3, n0, _PRPI,
|
|
|
788
791
|
];
|
|
789
792
|
export var _Record$ = [3, n0, _Re,
|
|
790
793
|
0,
|
|
791
|
-
[_SNe, _D,
|
|
792
|
-
[0, 21,
|
|
794
|
+
[_SNe, _D, _AAT, _PK, _ET],
|
|
795
|
+
[0, 21, 4, 0, 0], 2
|
|
793
796
|
];
|
|
794
797
|
export var RecordConfiguration$ = [3, n0, _RC,
|
|
795
798
|
0,
|
|
@@ -893,8 +896,8 @@ export var StreamDescription$ = [3, n0, _SD,
|
|
|
893
896
|
];
|
|
894
897
|
export var StreamDescriptionSummary$ = [3, n0, _SDS,
|
|
895
898
|
0,
|
|
896
|
-
[_SN, _SARN, _SSt, _RPH, _SCT, _EMn, _OSC, _SI, _SMD, _ET, _KI, _CCo, _WT, _MRSIKB, _CC],
|
|
897
|
-
[0, 0, 0, 1, 4, () => EnhancedMonitoringList, 1, 0, () => StreamModeDetails$, 0, 0, 1, () => WarmThroughputObject$, 1, 1], 7
|
|
899
|
+
[_SN, _SARN, _SSt, _RPH, _SCT, _EMn, _OSC, _SI, _SMD, _ET, _KI, _CCo, _WT, _MRSIKB, _CC, _RDS],
|
|
900
|
+
[0, 0, 0, 1, 4, () => EnhancedMonitoringList, 1, 0, () => StreamModeDetails$, 0, 0, 1, () => WarmThroughputObject$, 1, 1, 0], 7
|
|
898
901
|
];
|
|
899
902
|
export var StreamFilter$ = [3, n0, _SF,
|
|
900
903
|
0,
|
|
@@ -981,6 +984,11 @@ export var UpdateStreamModeInput$ = [3, n0, _USMI,
|
|
|
981
984
|
[_SARN, _SMD, _SI, _WTMB],
|
|
982
985
|
[0, () => StreamModeDetails$, 0, 1], 2
|
|
983
986
|
];
|
|
987
|
+
export var UpdateStreamRecordDistributionStrategyInput$ = [3, n0, _USRDSI,
|
|
988
|
+
0,
|
|
989
|
+
[_SARN, _RDS, _SI],
|
|
990
|
+
[0, 0, 0], 2
|
|
991
|
+
];
|
|
984
992
|
export var UpdateStreamWarmThroughputInput$ = [3, n0, _USWTI,
|
|
985
993
|
0,
|
|
986
994
|
[_WTMB, _SARN, _SN, _SI],
|
|
@@ -1184,6 +1192,9 @@ export var UpdateShardCount$ = [9, n0, _USC,
|
|
|
1184
1192
|
export var UpdateStreamMode$ = [9, n0, _USM,
|
|
1185
1193
|
0, () => UpdateStreamModeInput$, () => __Unit
|
|
1186
1194
|
];
|
|
1195
|
+
export var UpdateStreamRecordDistributionStrategy$ = [9, n0, _USRDS,
|
|
1196
|
+
0, () => UpdateStreamRecordDistributionStrategyInput$, () => __Unit
|
|
1197
|
+
];
|
|
1187
1198
|
export var UpdateStreamWarmThroughput$ = [9, n0, _USWT,
|
|
1188
1199
|
0, () => UpdateStreamWarmThroughputInput$, () => UpdateStreamWarmThroughputOutput$
|
|
1189
1200
|
];
|
package/dist-types/Kinesis.d.ts
CHANGED
|
@@ -43,6 +43,7 @@ import { type UpdateChannelCommandInput, type UpdateChannelCommandOutput } from
|
|
|
43
43
|
import { type UpdateMaxRecordSizeCommandInput, type UpdateMaxRecordSizeCommandOutput } from "./commands/UpdateMaxRecordSizeCommand";
|
|
44
44
|
import { type UpdateShardCountCommandInput, type UpdateShardCountCommandOutput } from "./commands/UpdateShardCountCommand";
|
|
45
45
|
import { type UpdateStreamModeCommandInput, type UpdateStreamModeCommandOutput } from "./commands/UpdateStreamModeCommand";
|
|
46
|
+
import { type UpdateStreamRecordDistributionStrategyCommandInput, type UpdateStreamRecordDistributionStrategyCommandOutput } from "./commands/UpdateStreamRecordDistributionStrategyCommand";
|
|
46
47
|
import { type UpdateStreamWarmThroughputCommandInput, type UpdateStreamWarmThroughputCommandOutput } from "./commands/UpdateStreamWarmThroughputCommand";
|
|
47
48
|
import { KinesisClient } from "./KinesisClient";
|
|
48
49
|
import type { ResourceNotFoundException } from "./models/errors";
|
|
@@ -322,6 +323,12 @@ export interface Kinesis {
|
|
|
322
323
|
updateStreamMode(args: UpdateStreamModeCommandInput, options?: KinesisRequestOptions): Promise<UpdateStreamModeCommandOutput>;
|
|
323
324
|
updateStreamMode(args: UpdateStreamModeCommandInput, cb: (err: any, data?: UpdateStreamModeCommandOutput) => void): void;
|
|
324
325
|
updateStreamMode(args: UpdateStreamModeCommandInput, options: KinesisRequestOptions, cb: (err: any, data?: UpdateStreamModeCommandOutput) => void): void;
|
|
326
|
+
/**
|
|
327
|
+
* @see {@link UpdateStreamRecordDistributionStrategyCommand}
|
|
328
|
+
*/
|
|
329
|
+
updateStreamRecordDistributionStrategy(args: UpdateStreamRecordDistributionStrategyCommandInput, options?: KinesisRequestOptions): Promise<UpdateStreamRecordDistributionStrategyCommandOutput>;
|
|
330
|
+
updateStreamRecordDistributionStrategy(args: UpdateStreamRecordDistributionStrategyCommandInput, cb: (err: any, data?: UpdateStreamRecordDistributionStrategyCommandOutput) => void): void;
|
|
331
|
+
updateStreamRecordDistributionStrategy(args: UpdateStreamRecordDistributionStrategyCommandInput, options: KinesisRequestOptions, cb: (err: any, data?: UpdateStreamRecordDistributionStrategyCommandOutput) => void): void;
|
|
325
332
|
/**
|
|
326
333
|
* @see {@link UpdateStreamWarmThroughputCommand}
|
|
327
334
|
*/
|
|
@@ -51,6 +51,7 @@ import type { UpdateChannelCommandInput, UpdateChannelCommandOutput } from "./co
|
|
|
51
51
|
import type { UpdateMaxRecordSizeCommandInput, UpdateMaxRecordSizeCommandOutput } from "./commands/UpdateMaxRecordSizeCommand";
|
|
52
52
|
import type { UpdateShardCountCommandInput, UpdateShardCountCommandOutput } from "./commands/UpdateShardCountCommand";
|
|
53
53
|
import type { UpdateStreamModeCommandInput, UpdateStreamModeCommandOutput } from "./commands/UpdateStreamModeCommand";
|
|
54
|
+
import type { UpdateStreamRecordDistributionStrategyCommandInput, UpdateStreamRecordDistributionStrategyCommandOutput } from "./commands/UpdateStreamRecordDistributionStrategyCommand";
|
|
54
55
|
import type { UpdateStreamWarmThroughputCommandInput, UpdateStreamWarmThroughputCommandOutput } from "./commands/UpdateStreamWarmThroughputCommand";
|
|
55
56
|
import { type ClientInputEndpointParameters, type ClientResolvedEndpointParameters, type EndpointParameters } from "./endpoint/EndpointParameters";
|
|
56
57
|
import { type RuntimeExtension, type RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
@@ -58,11 +59,11 @@ export { __Client };
|
|
|
58
59
|
/**
|
|
59
60
|
* @public
|
|
60
61
|
*/
|
|
61
|
-
export type ServiceInputTypes = AddTagsToStreamCommandInput | CreateChannelCommandInput | CreateStreamCommandInput | DecreaseStreamRetentionPeriodCommandInput | DeleteChannelCommandInput | DeleteResourcePolicyCommandInput | DeleteStreamCommandInput | DeregisterStreamConsumerCommandInput | DescribeAccountSettingsCommandInput | DescribeChannelCommandInput | DescribeLimitsCommandInput | DescribeStreamCommandInput | DescribeStreamConsumerCommandInput | DescribeStreamSummaryCommandInput | DisableEnhancedMonitoringCommandInput | EnableEnhancedMonitoringCommandInput | GetRecordsCommandInput | GetResourcePolicyCommandInput | GetShardIteratorCommandInput | IncreaseStreamRetentionPeriodCommandInput | ListChannelsCommandInput | ListShardsCommandInput | ListStreamConsumersCommandInput | ListStreamsCommandInput | ListTagsForResourceCommandInput | ListTagsForStreamCommandInput | MergeShardsCommandInput | PutRecordCommandInput | PutRecordsCommandInput | PutResourcePolicyCommandInput | RegisterStreamConsumerCommandInput | RemoveTagsFromStreamCommandInput | SplitShardCommandInput | StartStreamEncryptionCommandInput | StopStreamEncryptionCommandInput | SubscribeToShardCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAccountSettingsCommandInput | UpdateChannelCommandInput | UpdateMaxRecordSizeCommandInput | UpdateShardCountCommandInput | UpdateStreamModeCommandInput | UpdateStreamWarmThroughputCommandInput;
|
|
62
|
+
export type ServiceInputTypes = AddTagsToStreamCommandInput | CreateChannelCommandInput | CreateStreamCommandInput | DecreaseStreamRetentionPeriodCommandInput | DeleteChannelCommandInput | DeleteResourcePolicyCommandInput | DeleteStreamCommandInput | DeregisterStreamConsumerCommandInput | DescribeAccountSettingsCommandInput | DescribeChannelCommandInput | DescribeLimitsCommandInput | DescribeStreamCommandInput | DescribeStreamConsumerCommandInput | DescribeStreamSummaryCommandInput | DisableEnhancedMonitoringCommandInput | EnableEnhancedMonitoringCommandInput | GetRecordsCommandInput | GetResourcePolicyCommandInput | GetShardIteratorCommandInput | IncreaseStreamRetentionPeriodCommandInput | ListChannelsCommandInput | ListShardsCommandInput | ListStreamConsumersCommandInput | ListStreamsCommandInput | ListTagsForResourceCommandInput | ListTagsForStreamCommandInput | MergeShardsCommandInput | PutRecordCommandInput | PutRecordsCommandInput | PutResourcePolicyCommandInput | RegisterStreamConsumerCommandInput | RemoveTagsFromStreamCommandInput | SplitShardCommandInput | StartStreamEncryptionCommandInput | StopStreamEncryptionCommandInput | SubscribeToShardCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAccountSettingsCommandInput | UpdateChannelCommandInput | UpdateMaxRecordSizeCommandInput | UpdateShardCountCommandInput | UpdateStreamModeCommandInput | UpdateStreamRecordDistributionStrategyCommandInput | UpdateStreamWarmThroughputCommandInput;
|
|
62
63
|
/**
|
|
63
64
|
* @public
|
|
64
65
|
*/
|
|
65
|
-
export type ServiceOutputTypes = AddTagsToStreamCommandOutput | CreateChannelCommandOutput | CreateStreamCommandOutput | DecreaseStreamRetentionPeriodCommandOutput | DeleteChannelCommandOutput | DeleteResourcePolicyCommandOutput | DeleteStreamCommandOutput | DeregisterStreamConsumerCommandOutput | DescribeAccountSettingsCommandOutput | DescribeChannelCommandOutput | DescribeLimitsCommandOutput | DescribeStreamCommandOutput | DescribeStreamConsumerCommandOutput | DescribeStreamSummaryCommandOutput | DisableEnhancedMonitoringCommandOutput | EnableEnhancedMonitoringCommandOutput | GetRecordsCommandOutput | GetResourcePolicyCommandOutput | GetShardIteratorCommandOutput | IncreaseStreamRetentionPeriodCommandOutput | ListChannelsCommandOutput | ListShardsCommandOutput | ListStreamConsumersCommandOutput | ListStreamsCommandOutput | ListTagsForResourceCommandOutput | ListTagsForStreamCommandOutput | MergeShardsCommandOutput | PutRecordCommandOutput | PutRecordsCommandOutput | PutResourcePolicyCommandOutput | RegisterStreamConsumerCommandOutput | RemoveTagsFromStreamCommandOutput | SplitShardCommandOutput | StartStreamEncryptionCommandOutput | StopStreamEncryptionCommandOutput | SubscribeToShardCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAccountSettingsCommandOutput | UpdateChannelCommandOutput | UpdateMaxRecordSizeCommandOutput | UpdateShardCountCommandOutput | UpdateStreamModeCommandOutput | UpdateStreamWarmThroughputCommandOutput;
|
|
66
|
+
export type ServiceOutputTypes = AddTagsToStreamCommandOutput | CreateChannelCommandOutput | CreateStreamCommandOutput | DecreaseStreamRetentionPeriodCommandOutput | DeleteChannelCommandOutput | DeleteResourcePolicyCommandOutput | DeleteStreamCommandOutput | DeregisterStreamConsumerCommandOutput | DescribeAccountSettingsCommandOutput | DescribeChannelCommandOutput | DescribeLimitsCommandOutput | DescribeStreamCommandOutput | DescribeStreamConsumerCommandOutput | DescribeStreamSummaryCommandOutput | DisableEnhancedMonitoringCommandOutput | EnableEnhancedMonitoringCommandOutput | GetRecordsCommandOutput | GetResourcePolicyCommandOutput | GetShardIteratorCommandOutput | IncreaseStreamRetentionPeriodCommandOutput | ListChannelsCommandOutput | ListShardsCommandOutput | ListStreamConsumersCommandOutput | ListStreamsCommandOutput | ListTagsForResourceCommandOutput | ListTagsForStreamCommandOutput | MergeShardsCommandOutput | PutRecordCommandOutput | PutRecordsCommandOutput | PutResourcePolicyCommandOutput | RegisterStreamConsumerCommandOutput | RemoveTagsFromStreamCommandOutput | SplitShardCommandOutput | StartStreamEncryptionCommandOutput | StopStreamEncryptionCommandOutput | SubscribeToShardCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAccountSettingsCommandOutput | UpdateChannelCommandOutput | UpdateMaxRecordSizeCommandOutput | UpdateShardCountCommandOutput | UpdateStreamModeCommandOutput | UpdateStreamRecordDistributionStrategyCommandOutput | UpdateStreamWarmThroughputCommandOutput;
|
|
66
67
|
/**
|
|
67
68
|
* @public
|
|
68
69
|
*/
|
|
@@ -78,6 +78,7 @@ declare const CreateStreamCommand_base: {
|
|
|
78
78
|
* },
|
|
79
79
|
* WarmThroughputMiBps: Number("int"),
|
|
80
80
|
* MaxRecordSizeInKiB: Number("int"),
|
|
81
|
+
* RecordDistributionStrategy: "AUTO" || "USER_PARTITION_KEY",
|
|
81
82
|
* };
|
|
82
83
|
* const command = new CreateStreamCommand(input);
|
|
83
84
|
* const response = await client.send(command);
|
|
@@ -25,7 +25,7 @@ declare const DeleteChannelCommand_base: {
|
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
27
27
|
* <p>Deletes the specified channel. Deleting a channel stops delivery from the source stream to the destination. Data already delivered to the destination is not deleted.</p>
|
|
28
|
-
* <p>A stream cannot be deleted while it has active channels.
|
|
28
|
+
* <p>A stream cannot be deleted while it has active channels. Use <a>ListChannels</a> with a stream filter to find the channels attached to a stream before deleting it.</p>
|
|
29
29
|
* <p>This operation has a call limit of 5 transactions per second (TPS) for each Amazon Web Services account. Exceeding 5 TPS results in a <code>LimitExceededException</code>.</p>
|
|
30
30
|
* @example
|
|
31
31
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -103,7 +103,7 @@ declare const GetRecordsCommand_base: {
|
|
|
103
103
|
* // SequenceNumber: "STRING_VALUE", // required
|
|
104
104
|
* // ApproximateArrivalTimestamp: new Date("TIMESTAMP"),
|
|
105
105
|
* // Data: new Uint8Array(), // required
|
|
106
|
-
* // PartitionKey: "STRING_VALUE",
|
|
106
|
+
* // PartitionKey: "STRING_VALUE",
|
|
107
107
|
* // EncryptionType: "NONE" || "KMS",
|
|
108
108
|
* // },
|
|
109
109
|
* // ],
|
|
@@ -76,7 +76,7 @@ declare const PutRecordCommand_base: {
|
|
|
76
76
|
* const input = { // PutRecordInput
|
|
77
77
|
* StreamName: "STRING_VALUE",
|
|
78
78
|
* Data: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") // required
|
|
79
|
-
* PartitionKey: "STRING_VALUE",
|
|
79
|
+
* PartitionKey: "STRING_VALUE",
|
|
80
80
|
* ExplicitHashKey: "STRING_VALUE",
|
|
81
81
|
* SequenceNumberForOrdering: "STRING_VALUE",
|
|
82
82
|
* StreamARN: "STRING_VALUE",
|
|
@@ -98,7 +98,7 @@ declare const PutRecordsCommand_base: {
|
|
|
98
98
|
* { // PutRecordsRequestEntry
|
|
99
99
|
* Data: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") // required
|
|
100
100
|
* ExplicitHashKey: "STRING_VALUE",
|
|
101
|
-
* PartitionKey: "STRING_VALUE",
|
|
101
|
+
* PartitionKey: "STRING_VALUE",
|
|
102
102
|
* },
|
|
103
103
|
* ],
|
|
104
104
|
* StreamName: "STRING_VALUE",
|
|
@@ -76,7 +76,7 @@ declare const SubscribeToShardCommand_base: {
|
|
|
76
76
|
* // SequenceNumber: "STRING_VALUE", // required
|
|
77
77
|
* // ApproximateArrivalTimestamp: new Date("TIMESTAMP"),
|
|
78
78
|
* // Data: new Uint8Array(), // required
|
|
79
|
-
* // PartitionKey: "STRING_VALUE",
|
|
79
|
+
* // PartitionKey: "STRING_VALUE",
|
|
80
80
|
* // EncryptionType: "NONE" || "KMS",
|
|
81
81
|
* // },
|
|
82
82
|
* // ],
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { UpdateStreamRecordDistributionStrategyInput } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link UpdateStreamRecordDistributionStrategyCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface UpdateStreamRecordDistributionStrategyCommandInput extends UpdateStreamRecordDistributionStrategyInput {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link UpdateStreamRecordDistributionStrategyCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface UpdateStreamRecordDistributionStrategyCommandOutput extends __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const UpdateStreamRecordDistributionStrategyCommand_base: {
|
|
22
|
+
new (input: UpdateStreamRecordDistributionStrategyCommandInput): import("@smithy/core/client").CommandImpl<UpdateStreamRecordDistributionStrategyCommandInput, UpdateStreamRecordDistributionStrategyCommandOutput, import("..").KinesisClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: UpdateStreamRecordDistributionStrategyCommandInput): import("@smithy/core/client").CommandImpl<UpdateStreamRecordDistributionStrategyCommandInput, UpdateStreamRecordDistributionStrategyCommandOutput, import("..").KinesisClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Updates the record distribution strategy for the specified Amazon Kinesis Data Streams
|
|
28
|
+
* on-demand data stream. The record distribution strategy determines how Amazon Kinesis
|
|
29
|
+
* Data Streams distributes records across the shards in a stream.</p>
|
|
30
|
+
* <note>
|
|
31
|
+
* <p>You must specify the stream using the <code>StreamARN</code> parameter.</p>
|
|
32
|
+
* </note>
|
|
33
|
+
* <p>The record distribution strategy is a stream-level setting. You can switch between the
|
|
34
|
+
* following strategies at any time, and the change takes effect immediately without
|
|
35
|
+
* downtime, data loss, or disruption to producer or consumer applications:</p>
|
|
36
|
+
* <ul>
|
|
37
|
+
* <li>
|
|
38
|
+
* <p>
|
|
39
|
+
* <code>AUTO</code> – Amazon Kinesis Data Streams distributes records evenly
|
|
40
|
+
* across shards using service-managed algorithms, and ignores any partition key
|
|
41
|
+
* and <code>ExplicitHashKey</code> that a producer provides. Use this strategy for
|
|
42
|
+
* stateless workloads that do not require partition-key ordering.</p>
|
|
43
|
+
* </li>
|
|
44
|
+
* <li>
|
|
45
|
+
* <p>
|
|
46
|
+
* <code>USER_PARTITION_KEY</code> – Producers must provide a partition key, and
|
|
47
|
+
* Amazon Kinesis Data Streams uses the partition key to determine shard placement.
|
|
48
|
+
* Records that share a partition key are sent to the same shard. This is the
|
|
49
|
+
* default strategy.</p>
|
|
50
|
+
* </li>
|
|
51
|
+
* </ul>
|
|
52
|
+
* <p>This operation is only supported for data streams that use the on-demand capacity
|
|
53
|
+
* mode. Provisioned capacity mode streams do not support the record distribution strategy
|
|
54
|
+
* setting. Attempting to set <code>AUTO</code> on a provisioned stream results in an
|
|
55
|
+
* <code>InvalidArgumentException</code>.</p>
|
|
56
|
+
* <p>New records that arrive after the change are distributed according to the new
|
|
57
|
+
* strategy. Records already in the stream keep their original shard assignments and are
|
|
58
|
+
* not redistributed.</p>
|
|
59
|
+
* @example
|
|
60
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
61
|
+
* ```javascript
|
|
62
|
+
* import { KinesisClient, UpdateStreamRecordDistributionStrategyCommand } from "@aws-sdk/client-kinesis"; // ES Modules import
|
|
63
|
+
* // const { KinesisClient, UpdateStreamRecordDistributionStrategyCommand } = require("@aws-sdk/client-kinesis"); // CommonJS import
|
|
64
|
+
* // import type { KinesisClientConfig } from "@aws-sdk/client-kinesis";
|
|
65
|
+
* const config = {}; // type is KinesisClientConfig
|
|
66
|
+
* const client = new KinesisClient(config);
|
|
67
|
+
* const input = { // UpdateStreamRecordDistributionStrategyInput
|
|
68
|
+
* StreamARN: "STRING_VALUE", // required
|
|
69
|
+
* StreamId: "STRING_VALUE",
|
|
70
|
+
* RecordDistributionStrategy: "AUTO" || "USER_PARTITION_KEY", // required
|
|
71
|
+
* };
|
|
72
|
+
* const command = new UpdateStreamRecordDistributionStrategyCommand(input);
|
|
73
|
+
* const response = await client.send(command);
|
|
74
|
+
* // {};
|
|
75
|
+
*
|
|
76
|
+
* ```
|
|
77
|
+
*
|
|
78
|
+
* @param UpdateStreamRecordDistributionStrategyCommandInput - {@link UpdateStreamRecordDistributionStrategyCommandInput}
|
|
79
|
+
* @returns {@link UpdateStreamRecordDistributionStrategyCommandOutput}
|
|
80
|
+
* @see {@link UpdateStreamRecordDistributionStrategyCommandInput} for command's `input` shape.
|
|
81
|
+
* @see {@link UpdateStreamRecordDistributionStrategyCommandOutput} for command's `response` shape.
|
|
82
|
+
* @see {@link KinesisClientResolvedConfig | config} for KinesisClient's `config` shape.
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
85
|
+
* <p>Specifies that you do not have the permissions required to perform this
|
|
86
|
+
* operation.</p>
|
|
87
|
+
*
|
|
88
|
+
* @throws {@link InvalidArgumentException} (client fault)
|
|
89
|
+
* <p>A specified parameter exceeds its restrictions, is not supported, or can't be used.
|
|
90
|
+
* For more information, see the returned message.</p>
|
|
91
|
+
*
|
|
92
|
+
* @throws {@link LimitExceededException} (client fault)
|
|
93
|
+
* <p>The requested resource exceeds the maximum number allowed, or the number of concurrent
|
|
94
|
+
* stream requests exceeds the maximum number allowed. </p>
|
|
95
|
+
*
|
|
96
|
+
* @throws {@link ResourceInUseException} (client fault)
|
|
97
|
+
* <p>The resource is not available for this operation. For successful operation, the
|
|
98
|
+
* resource must be in the <code>ACTIVE</code> state.</p>
|
|
99
|
+
*
|
|
100
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
101
|
+
* <p>The requested resource could not be found. The stream might not be specified
|
|
102
|
+
* correctly.</p>
|
|
103
|
+
*
|
|
104
|
+
* @throws {@link ValidationException} (client fault)
|
|
105
|
+
* <p>Specifies that you tried to invoke this API for a data stream with the on-demand
|
|
106
|
+
* capacity mode. This API is only supported for data streams with the provisioned capacity
|
|
107
|
+
* mode. </p>
|
|
108
|
+
*
|
|
109
|
+
* @throws {@link KinesisServiceException}
|
|
110
|
+
* <p>Base exception class for all service exceptions from Kinesis service.</p>
|
|
111
|
+
*
|
|
112
|
+
*
|
|
113
|
+
* @public
|
|
114
|
+
*/
|
|
115
|
+
export declare class UpdateStreamRecordDistributionStrategyCommand extends UpdateStreamRecordDistributionStrategyCommand_base {
|
|
116
|
+
/** @internal type navigation helper, not in runtime. */
|
|
117
|
+
protected static __types: {
|
|
118
|
+
api: {
|
|
119
|
+
input: UpdateStreamRecordDistributionStrategyInput;
|
|
120
|
+
output: {};
|
|
121
|
+
};
|
|
122
|
+
sdk: {
|
|
123
|
+
input: UpdateStreamRecordDistributionStrategyCommandInput;
|
|
124
|
+
output: UpdateStreamRecordDistributionStrategyCommandOutput;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
}
|
|
@@ -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";
|
|
@@ -113,6 +113,18 @@ export declare const ConsumerStatus: {
|
|
|
113
113
|
* @public
|
|
114
114
|
*/
|
|
115
115
|
export type ConsumerStatus = (typeof ConsumerStatus)[keyof typeof ConsumerStatus];
|
|
116
|
+
/**
|
|
117
|
+
* @public
|
|
118
|
+
* @enum
|
|
119
|
+
*/
|
|
120
|
+
export declare const RecordDistributionStrategy: {
|
|
121
|
+
readonly AUTO: "AUTO";
|
|
122
|
+
readonly USER_PARTITION_KEY: "USER_PARTITION_KEY";
|
|
123
|
+
};
|
|
124
|
+
/**
|
|
125
|
+
* @public
|
|
126
|
+
*/
|
|
127
|
+
export type RecordDistributionStrategy = (typeof RecordDistributionStrategy)[keyof typeof RecordDistributionStrategy];
|
|
116
128
|
/**
|
|
117
129
|
* @public
|
|
118
130
|
* @enum
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ChannelDestinationType, ChannelEncryptionType, ChannelStatus, ConsumerStatus, EncryptionType, MetricsName, MinimumThroughputBillingCommitmentInputStatus, MinimumThroughputBillingCommitmentOutputStatus, PartitionTransform, RecordFormatType, S3CompressionType, S3StorageClass, S3TablesCompressionType, ScalingType, ShardFilterType, ShardIteratorType, StreamMode, StreamStatus } from "./enums";
|
|
1
|
+
import type { ChannelDestinationType, ChannelEncryptionType, ChannelStatus, ConsumerStatus, EncryptionType, MetricsName, MinimumThroughputBillingCommitmentInputStatus, MinimumThroughputBillingCommitmentOutputStatus, PartitionTransform, RecordDistributionStrategy, RecordFormatType, S3CompressionType, S3StorageClass, S3TablesCompressionType, ScalingType, ShardFilterType, ShardIteratorType, StreamMode, StreamStatus } from "./enums";
|
|
2
2
|
import type { InternalFailureException, KMSAccessDeniedException, KMSDisabledException, KMSInvalidStateException, KMSNotFoundException, KMSOptInRequired, KMSThrottlingException, ResourceInUseException, ResourceNotFoundException } from "./errors";
|
|
3
3
|
/**
|
|
4
4
|
* <p>Represents the input for <code>AddTagsToStream</code>.</p>
|
|
@@ -120,7 +120,7 @@ export interface S3StorageConfiguration {
|
|
|
120
120
|
* <ul>
|
|
121
121
|
* <li>
|
|
122
122
|
* <p>
|
|
123
|
-
* <code>STANDARD</code> -
|
|
123
|
+
* <code>STANDARD</code> - The default storage class, for frequently accessed data.</p>
|
|
124
124
|
* </li>
|
|
125
125
|
* <li>
|
|
126
126
|
* <p>
|
|
@@ -297,7 +297,7 @@ export interface RecordConfiguration {
|
|
|
297
297
|
*/
|
|
298
298
|
RecordFormatType: RecordFormatType | undefined;
|
|
299
299
|
/**
|
|
300
|
-
* <p>The Amazon Resource Name (ARN) of the Amazon Web Services Glue Schema Registry schema used to validate records. Required when the channel destination is a streaming table
|
|
300
|
+
* <p>The Amazon Resource Name (ARN) of the Amazon Web Services Glue Schema Registry schema used to validate records. Required when the channel destination is a streaming table.</p>
|
|
301
301
|
* @public
|
|
302
302
|
*/
|
|
303
303
|
GSRSchemaARN?: string | undefined;
|
|
@@ -401,7 +401,7 @@ export interface ChannelDescription {
|
|
|
401
401
|
*/
|
|
402
402
|
S3TablesDestinationConfiguration?: S3TablesDestinationDescription | undefined;
|
|
403
403
|
/**
|
|
404
|
-
* <p>The
|
|
404
|
+
* <p>The Amazon Web Services KMS key configuration that Amazon Kinesis Data Streams uses to encrypt data delivered to the channel's destination.</p>
|
|
405
405
|
* @public
|
|
406
406
|
*/
|
|
407
407
|
EncryptionConfiguration?: ChannelEncryptionConfiguration | undefined;
|
|
@@ -438,7 +438,7 @@ export interface CloudWatchLogsUpdateInput {
|
|
|
438
438
|
*/
|
|
439
439
|
export interface ChannelLoggingUpdateInput {
|
|
440
440
|
/**
|
|
441
|
-
* <p>The updated Amazon CloudWatch Logs settings
|
|
441
|
+
* <p>The updated Amazon CloudWatch Logs settings, including whether logging is enabled and the target log group and log stream.</p>
|
|
442
442
|
* @public
|
|
443
443
|
*/
|
|
444
444
|
CloudWatchLogs: CloudWatchLogsUpdateInput | undefined;
|
|
@@ -670,7 +670,7 @@ export interface ConsumerDescription {
|
|
|
670
670
|
*/
|
|
671
671
|
export interface S3DestinationConfiguration {
|
|
672
672
|
/**
|
|
673
|
-
* <p>The maximum age, in seconds, of undelivered data
|
|
673
|
+
* <p>The maximum age, in seconds, of undelivered data before the channel delivers it to the destination. The default value is 300 seconds.</p>
|
|
674
674
|
* @public
|
|
675
675
|
*/
|
|
676
676
|
DataFreshnessInSeconds?: number | undefined;
|
|
@@ -691,7 +691,7 @@ export interface S3DestinationConfiguration {
|
|
|
691
691
|
*/
|
|
692
692
|
export interface S3TablesDestinationConfiguration {
|
|
693
693
|
/**
|
|
694
|
-
* <p>The maximum age, in seconds, of undelivered data
|
|
694
|
+
* <p>The maximum age, in seconds, of undelivered data before the channel delivers it to the destination. The default value is 300 seconds.</p>
|
|
695
695
|
* @public
|
|
696
696
|
*/
|
|
697
697
|
DataFreshnessInSeconds?: number | undefined;
|
|
@@ -726,12 +726,12 @@ export interface CreateChannelInput {
|
|
|
726
726
|
*/
|
|
727
727
|
StreamConfigurationList: ChannelStreamConfiguration[] | undefined;
|
|
728
728
|
/**
|
|
729
|
-
* <p>The configuration for delivery to a general purpose Amazon S3 bucket.
|
|
729
|
+
* <p>The configuration for delivery to a general purpose Amazon S3 bucket. Specify this parameter when <code>S3TablesDestinationConfiguration</code> is not specified.</p>
|
|
730
730
|
* @public
|
|
731
731
|
*/
|
|
732
732
|
S3DestinationConfiguration?: S3DestinationConfiguration | undefined;
|
|
733
733
|
/**
|
|
734
|
-
* <p>The configuration for delivery to streaming tables on Apache Iceberg in Amazon S3 Tables.
|
|
734
|
+
* <p>The configuration for delivery to streaming tables on Apache Iceberg in Amazon S3 Tables. Specify this parameter when <code>S3DestinationConfiguration</code> is not specified.</p>
|
|
735
735
|
* @public
|
|
736
736
|
*/
|
|
737
737
|
S3TablesDestinationConfiguration?: S3TablesDestinationConfiguration | undefined;
|
|
@@ -756,7 +756,7 @@ export interface CreateChannelInput {
|
|
|
756
756
|
*/
|
|
757
757
|
export interface CreateChannelOutput {
|
|
758
758
|
/**
|
|
759
|
-
* <p>The configuration and current status of the channel
|
|
759
|
+
* <p>The configuration and current status of the channel, including its ARN, destination configuration, and lifecycle state. Immediately after creation, the state is <code>CREATING</code>.</p>
|
|
760
760
|
* @public
|
|
761
761
|
*/
|
|
762
762
|
ChannelDescription: ChannelDescription | undefined;
|
|
@@ -817,6 +817,31 @@ export interface CreateStreamInput {
|
|
|
817
817
|
* @public
|
|
818
818
|
*/
|
|
819
819
|
MaxRecordSizeInKiB?: number | undefined;
|
|
820
|
+
/**
|
|
821
|
+
* <p>The record distribution strategy for the stream, which determines how Amazon Kinesis
|
|
822
|
+
* Data Streams distributes records across shards. Specify one of the following
|
|
823
|
+
* values:</p>
|
|
824
|
+
* <ul>
|
|
825
|
+
* <li>
|
|
826
|
+
* <p>
|
|
827
|
+
* <code>AUTO</code> – Amazon Kinesis Data Streams distributes records evenly
|
|
828
|
+
* across shards and ignores any partition key and <code>ExplicitHashKey</code>
|
|
829
|
+
* that producers supply. Use this value for stateless workloads that do not
|
|
830
|
+
* require partition-key ordering.</p>
|
|
831
|
+
* </li>
|
|
832
|
+
* <li>
|
|
833
|
+
* <p>
|
|
834
|
+
* <code>USER_PARTITION_KEY</code> – Producers must supply a partition key, which
|
|
835
|
+
* Amazon Kinesis Data Streams uses to determine shard placement. This is the
|
|
836
|
+
* default.</p>
|
|
837
|
+
* </li>
|
|
838
|
+
* </ul>
|
|
839
|
+
* <p>The record distribution strategy is only supported for streams that use the on-demand
|
|
840
|
+
* capacity mode. If you do not specify this parameter, the stream uses
|
|
841
|
+
* <code>USER_PARTITION_KEY</code>.</p>
|
|
842
|
+
* @public
|
|
843
|
+
*/
|
|
844
|
+
RecordDistributionStrategy?: RecordDistributionStrategy | undefined;
|
|
820
845
|
}
|
|
821
846
|
/**
|
|
822
847
|
* <p>Represents the input for <a>DecreaseStreamRetentionPeriod</a>.</p>
|
|
@@ -985,7 +1010,7 @@ export interface DescribeChannelInput {
|
|
|
985
1010
|
*/
|
|
986
1011
|
export interface DescribeChannelOutput {
|
|
987
1012
|
/**
|
|
988
|
-
* <p>The configuration and current status of the channel.</p>
|
|
1013
|
+
* <p>The configuration and current status of the channel, including its ARN, source stream, destination configuration, and lifecycle state.</p>
|
|
989
1014
|
* @public
|
|
990
1015
|
*/
|
|
991
1016
|
ChannelDescription: ChannelDescription | undefined;
|
|
@@ -1542,6 +1567,15 @@ export interface StreamDescriptionSummary {
|
|
|
1542
1567
|
* @public
|
|
1543
1568
|
*/
|
|
1544
1569
|
ChannelCount?: number | undefined;
|
|
1570
|
+
/**
|
|
1571
|
+
* <p>The record distribution strategy that the stream currently uses. A value of
|
|
1572
|
+
* <code>AUTO</code> indicates that Amazon Kinesis Data Streams distributes records across
|
|
1573
|
+
* shards using service-managed algorithms. A value of <code>USER_PARTITION_KEY</code>
|
|
1574
|
+
* indicates that shard placement is determined by the partition key that producers supply.
|
|
1575
|
+
* This field is only present for streams that use the on-demand capacity mode.</p>
|
|
1576
|
+
* @public
|
|
1577
|
+
*/
|
|
1578
|
+
RecordDistributionStrategy?: RecordDistributionStrategy | undefined;
|
|
1545
1579
|
}
|
|
1546
1580
|
/**
|
|
1547
1581
|
* @public
|
|
@@ -1790,9 +1824,13 @@ export interface _Record {
|
|
|
1790
1824
|
Data: Uint8Array | undefined;
|
|
1791
1825
|
/**
|
|
1792
1826
|
* <p>Identifies which shard in the stream the data record is assigned to.</p>
|
|
1827
|
+
* <p>For a stream that uses the <code>AUTO</code> record distribution strategy, this value
|
|
1828
|
+
* is not returned if the producer did not provide a partition key when writing the record.
|
|
1829
|
+
* If the producer provided a partition key, the original value is returned even though it
|
|
1830
|
+
* was not used to determine shard placement.</p>
|
|
1793
1831
|
* @public
|
|
1794
1832
|
*/
|
|
1795
|
-
PartitionKey
|
|
1833
|
+
PartitionKey?: string | undefined;
|
|
1796
1834
|
/**
|
|
1797
1835
|
* <p>The encryption type used on the record. This parameter can be one of the following
|
|
1798
1836
|
* values:</p>
|
|
@@ -2019,7 +2057,7 @@ export interface ListChannelsInput {
|
|
|
2019
2057
|
*/
|
|
2020
2058
|
MaxResults?: number | undefined;
|
|
2021
2059
|
/**
|
|
2022
|
-
* <p>The pagination token returned by a previous call. Specify this token to retrieve the next page of results
|
|
2060
|
+
* <p>The pagination token returned by a previous call. Specify this token to retrieve the next page of results.</p>
|
|
2023
2061
|
* @public
|
|
2024
2062
|
*/
|
|
2025
2063
|
NextToken?: string | undefined;
|
|
@@ -2562,9 +2600,16 @@ export interface PutRecordInput {
|
|
|
2562
2600
|
* function is used to map partition keys to 128-bit integer values and to map associated
|
|
2563
2601
|
* data records to shards. As a result of this hashing mechanism, all data records with the
|
|
2564
2602
|
* same partition key map to the same shard within the stream.</p>
|
|
2603
|
+
* <p>If the stream uses the <code>USER_PARTITION_KEY</code> record distribution strategy
|
|
2604
|
+
* (the default), a partition key is required. If the stream uses the <code>AUTO</code>
|
|
2605
|
+
* record distribution strategy, the partition key is optional and any value you provide is
|
|
2606
|
+
* ignored, along with any <code>ExplicitHashKey</code> you provide. In that case, Amazon
|
|
2607
|
+
* Kinesis Data Streams distributes the record across shards using service-managed
|
|
2608
|
+
* algorithms. For more information, see
|
|
2609
|
+
* <code>UpdateStreamRecordDistributionStrategy</code>.</p>
|
|
2565
2610
|
* @public
|
|
2566
2611
|
*/
|
|
2567
|
-
PartitionKey
|
|
2612
|
+
PartitionKey?: string | undefined;
|
|
2568
2613
|
/**
|
|
2569
2614
|
* <p>The hash value used to explicitly determine the shard the data record is assigned to
|
|
2570
2615
|
* by overriding the partition key hash.</p>
|
|
@@ -2659,9 +2704,16 @@ export interface PutRecordsRequestEntry {
|
|
|
2659
2704
|
* function is used to map partition keys to 128-bit integer values and to map associated
|
|
2660
2705
|
* data records to shards. As a result of this hashing mechanism, all data records with the
|
|
2661
2706
|
* same partition key map to the same shard within the stream.</p>
|
|
2707
|
+
* <p>If the stream uses the <code>USER_PARTITION_KEY</code> record distribution strategy
|
|
2708
|
+
* (the default), a partition key is required for each record. If the stream uses the
|
|
2709
|
+
* <code>AUTO</code> record distribution strategy, the partition key is optional and any
|
|
2710
|
+
* value you provide is ignored, along with any <code>ExplicitHashKey</code> you provide.
|
|
2711
|
+
* In that case, Amazon Kinesis Data Streams distributes records across shards using
|
|
2712
|
+
* service-managed algorithms. For more information, see
|
|
2713
|
+
* <code>UpdateStreamRecordDistributionStrategy</code>.</p>
|
|
2662
2714
|
* @public
|
|
2663
2715
|
*/
|
|
2664
|
-
PartitionKey
|
|
2716
|
+
PartitionKey?: string | undefined;
|
|
2665
2717
|
}
|
|
2666
2718
|
/**
|
|
2667
2719
|
* <p>A <code>PutRecords</code> request.</p>
|
|
@@ -3451,7 +3503,7 @@ export interface UpdateAccountSettingsOutput {
|
|
|
3451
3503
|
*/
|
|
3452
3504
|
export interface S3DestinationUpdateInput {
|
|
3453
3505
|
/**
|
|
3454
|
-
* <p>The maximum age, in seconds, of undelivered data
|
|
3506
|
+
* <p>The maximum age, in seconds, of undelivered data before the channel delivers it to the destination.</p>
|
|
3455
3507
|
* @public
|
|
3456
3508
|
*/
|
|
3457
3509
|
DataFreshnessInSeconds: number | undefined;
|
|
@@ -3462,7 +3514,7 @@ export interface S3DestinationUpdateInput {
|
|
|
3462
3514
|
*/
|
|
3463
3515
|
export interface S3TablesDestinationUpdateInput {
|
|
3464
3516
|
/**
|
|
3465
|
-
* <p>The maximum age, in seconds, of undelivered data
|
|
3517
|
+
* <p>The maximum age, in seconds, of undelivered data before the channel delivers it to the destination.</p>
|
|
3466
3518
|
* @public
|
|
3467
3519
|
*/
|
|
3468
3520
|
DataFreshnessInSeconds: number | undefined;
|
|
@@ -3477,12 +3529,12 @@ export interface UpdateChannelInput {
|
|
|
3477
3529
|
*/
|
|
3478
3530
|
ChannelARN: string | undefined;
|
|
3479
3531
|
/**
|
|
3480
|
-
* <p>The updated configuration for a general purpose Amazon S3 destination. Only <code>DataFreshnessInSeconds</code> can be updated.</p>
|
|
3532
|
+
* <p>The updated configuration for a general purpose Amazon S3 destination. Specify this parameter when the channel delivers to a general purpose Amazon S3 bucket. Only <code>DataFreshnessInSeconds</code> can be updated.</p>
|
|
3481
3533
|
* @public
|
|
3482
3534
|
*/
|
|
3483
3535
|
S3DestinationConfiguration?: S3DestinationUpdateInput | undefined;
|
|
3484
3536
|
/**
|
|
3485
|
-
* <p>The updated configuration for a streaming table destination. Only <code>DataFreshnessInSeconds</code> can be updated.</p>
|
|
3537
|
+
* <p>The updated configuration for a streaming table destination. Specify this parameter when the channel delivers to streaming tables on Apache Iceberg in Amazon S3 Tables. Only <code>DataFreshnessInSeconds</code> can be updated.</p>
|
|
3486
3538
|
* @public
|
|
3487
3539
|
*/
|
|
3488
3540
|
S3TablesDestinationConfiguration?: S3TablesDestinationUpdateInput | undefined;
|
|
@@ -3497,7 +3549,7 @@ export interface UpdateChannelInput {
|
|
|
3497
3549
|
*/
|
|
3498
3550
|
export interface UpdateChannelOutput {
|
|
3499
3551
|
/**
|
|
3500
|
-
* <p>The configuration and current status of the
|
|
3552
|
+
* <p>The configuration and current status of the channel after the update, including its ARN, destination configuration, and lifecycle state. Immediately after the request, the state is <code>UPDATING</code>.</p>
|
|
3501
3553
|
* @public
|
|
3502
3554
|
*/
|
|
3503
3555
|
ChannelDescription: ChannelDescription | undefined;
|
|
@@ -3622,6 +3674,41 @@ export interface UpdateStreamModeInput {
|
|
|
3622
3674
|
*/
|
|
3623
3675
|
WarmThroughputMiBps?: number | undefined;
|
|
3624
3676
|
}
|
|
3677
|
+
/**
|
|
3678
|
+
* @public
|
|
3679
|
+
*/
|
|
3680
|
+
export interface UpdateStreamRecordDistributionStrategyInput {
|
|
3681
|
+
/**
|
|
3682
|
+
* <p>The Amazon Resource Name (ARN) of the stream to update.</p>
|
|
3683
|
+
* @public
|
|
3684
|
+
*/
|
|
3685
|
+
StreamARN: string | undefined;
|
|
3686
|
+
/**
|
|
3687
|
+
* <p>Not Implemented. Reserved for future use.</p>
|
|
3688
|
+
* @public
|
|
3689
|
+
*/
|
|
3690
|
+
StreamId?: string | undefined;
|
|
3691
|
+
/**
|
|
3692
|
+
* <p>The record distribution strategy to apply to the stream. Specify one of the following
|
|
3693
|
+
* values:</p>
|
|
3694
|
+
* <ul>
|
|
3695
|
+
* <li>
|
|
3696
|
+
* <p>
|
|
3697
|
+
* <code>AUTO</code> – Amazon Kinesis Data Streams distributes records evenly
|
|
3698
|
+
* across shards and ignores any partition key and <code>ExplicitHashKey</code>
|
|
3699
|
+
* that producers supply.</p>
|
|
3700
|
+
* </li>
|
|
3701
|
+
* <li>
|
|
3702
|
+
* <p>
|
|
3703
|
+
* <code>USER_PARTITION_KEY</code> – Producers must supply a partition key, which
|
|
3704
|
+
* Amazon Kinesis Data Streams uses to determine shard placement. This is the
|
|
3705
|
+
* default.</p>
|
|
3706
|
+
* </li>
|
|
3707
|
+
* </ul>
|
|
3708
|
+
* @public
|
|
3709
|
+
*/
|
|
3710
|
+
RecordDistributionStrategy: RecordDistributionStrategy | undefined;
|
|
3711
|
+
}
|
|
3625
3712
|
/**
|
|
3626
3713
|
* @public
|
|
3627
3714
|
*/
|
|
@@ -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;
|
|
@@ -154,6 +154,10 @@ import {
|
|
|
154
154
|
UpdateStreamModeCommandInput,
|
|
155
155
|
UpdateStreamModeCommandOutput,
|
|
156
156
|
} from "./commands/UpdateStreamModeCommand";
|
|
157
|
+
import {
|
|
158
|
+
UpdateStreamRecordDistributionStrategyCommandInput,
|
|
159
|
+
UpdateStreamRecordDistributionStrategyCommandOutput,
|
|
160
|
+
} from "./commands/UpdateStreamRecordDistributionStrategyCommand";
|
|
157
161
|
import {
|
|
158
162
|
UpdateStreamWarmThroughputCommandInput,
|
|
159
163
|
UpdateStreamWarmThroughputCommandOutput,
|
|
@@ -734,6 +738,19 @@ export interface Kinesis {
|
|
|
734
738
|
options: KinesisRequestOptions,
|
|
735
739
|
cb: (err: any, data?: UpdateStreamModeCommandOutput) => void,
|
|
736
740
|
): void;
|
|
741
|
+
updateStreamRecordDistributionStrategy(
|
|
742
|
+
args: UpdateStreamRecordDistributionStrategyCommandInput,
|
|
743
|
+
options?: KinesisRequestOptions,
|
|
744
|
+
): Promise<UpdateStreamRecordDistributionStrategyCommandOutput>;
|
|
745
|
+
updateStreamRecordDistributionStrategy(
|
|
746
|
+
args: UpdateStreamRecordDistributionStrategyCommandInput,
|
|
747
|
+
cb: (err: any, data?: UpdateStreamRecordDistributionStrategyCommandOutput) => void,
|
|
748
|
+
): void;
|
|
749
|
+
updateStreamRecordDistributionStrategy(
|
|
750
|
+
args: UpdateStreamRecordDistributionStrategyCommandInput,
|
|
751
|
+
options: KinesisRequestOptions,
|
|
752
|
+
cb: (err: any, data?: UpdateStreamRecordDistributionStrategyCommandOutput) => void,
|
|
753
|
+
): void;
|
|
737
754
|
updateStreamWarmThroughput(
|
|
738
755
|
args: UpdateStreamWarmThroughputCommandInput,
|
|
739
756
|
options?: KinesisRequestOptions,
|
|
@@ -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
|
|
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
|
|
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
|
|
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.
|
|
3
|
+
"version": "3.1140.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",
|