@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.
- package/README.md +7 -0
- package/dist-cjs/index.js +36 -13
- 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 +23 -12
- package/dist-types/Kinesis.d.ts +102 -89
- 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 +109 -88
- 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 +8 -8
|
@@ -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;
|